/* --- CSS RESET, NORMALIZATION & BASE --- */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.5;
  background: #F4F6FB;
  color: #222;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: #184476; text-decoration: none; transition: color 0.18s; }
a:hover, a:focus { color: #18A674; text-decoration: underline; }
ul, ol { margin-left: 2em; margin-bottom: 1em; }
img { max-width: 100%; height: auto; display: block; }

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Roboto:wght@400;500;700&display=swap');

:root {
  --color-primary: #184476;
  --color-secondary: #18A674;
  --color-accent: #F4F6FB;
  --color-electric-blue: #1D8EFF;
  --color-violet: #8000FF;
  --color-pink: #FF34A9;
  --color-orange: #FFB300;
  --color-dark: #181E26;
  --color-light: #ffffff;
  --color-bg: #F4F6FB;
  --color-card: #ffffff;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --shadow-card: 0 4px 28px 0px rgba(24,68,118,0.15);
  --shadow-strong: 0 8px 30px 4px rgba(24,68,118,0.20);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --gap-section: 60px;
  --gap-card: 24px;
  --gap-content: 20px;
}

/* --- CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* --- HEADER & NAV --- */
header {
  background: var(--color-light);
  box-shadow: 0 2px 12px 0 rgba(24,68,118,0.05);
  position: sticky; top: 0; z-index: 1001;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 12px 20px;
  gap: 24px;
  min-height: 66px;
}
header nav {
  display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-dark);
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  transition: color 0.18s, background 0.18s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-electric-blue);
  color: #fff;
}
.cta-btn {
  background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-electric-blue) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-md);
  padding: 11px 36px;
  margin-left: 10px;
  cursor: pointer;
  transition: box-shadow 0.18s, transform 0.15s, background 0.15s;
  box-shadow: 0 3px 18px 0 rgba(24,68,118,0.15);
  letter-spacing: .01em;
  text-transform: uppercase;
}
.cta-btn:hover, .cta-btn:focus {
  transform: translateY(-2px) scale(1.04);
  box-shadow: var(--shadow-strong);
  background: linear-gradient(90deg, var(--color-pink) 0%, var(--color-electric-blue) 100%);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 36px;
  color: var(--color-primary);
  cursor: pointer;
  margin-left: 12px;
  z-index: 1021;
  transition: color 0.14s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--color-pink);
}
.mobile-menu {
  position: fixed;
  z-index: 1200;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(12,26,38,0.93);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.78,-0.07,.26,1.12);
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 36px;
  color: #fff;
  margin: 32px 12px 0 24px;
  align-self: flex-start;
  cursor: pointer;
  z-index: 1301;
  transition: color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-orange);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 48px 0 0 32px;
  width: calc(100vw - 44px);
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.02em;
  padding: 7px 0 7px 0;
  border-radius: var(--radius-sm);
  transition: background 0.16s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-violet);
  color: var(--color-orange);
}

/* Hide desktop nav and show mobile toggle on narrow screens */
@media (max-width: 991px) {
  header nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 992px) {
  .mobile-menu { display: none !important; }
}

/* --- MAIN SECTION SPACING --- */
main {
  width: 100%;
  margin: 0 auto;
  min-height: 60vh;
}
.section, main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.promo-banner, .promo-duration {
  background: linear-gradient(90deg, var(--color-violet), var(--color-electric-blue) 85%);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  margin: 18px 0 26px 0;
  box-shadow: 0 3px 18px 0 rgba(24,68,118,0.13);
  font-size: 18px;
  letter-spacing: 0.02em;
}

/* --- DYNAMIC TYPOGRAPHY --- */
h1, .main-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}
h2, .section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}
h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-electric-blue);
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
}
p {
  font-size: 17px;
  color: #2a2a2a;
  margin-bottom: 12px;
}
strong, b {
  font-weight: 700;
}

/* --- FLEXBOX LAYOUTS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: flex-start;
  margin-bottom: 24px;
}
.card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  flex: 1 1 280px;
  min-width: 260px;
  margin-bottom: 20px; /* Mandatory */
  position: relative;
  transition: box-shadow 0.2s, transform 0.18s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-strong);
  transform: translateY(-3px) scale(1.02);
  z-index: 2;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-left: 6px solid var(--color-violet);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 18px 0 rgba(24,68,118,0.11);
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #212529;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .01em;
  margin-bottom: 6px;
}
.testimonial-card span {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin-left: 9px;
}
.testimonial-card div {
  color: var(--color-secondary);
  display: flex; align-items: center; gap: 3px;
}

/* --- NEWSLETTER INFO --- */
.newsletter-info {
  background: var(--color-electric-blue);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 15px 22px;
  font-size: 16px;
  margin-top: 12px;
  box-shadow: 0 3px 16px 0 rgba(24,68,118,0.09);
}
.newsletter-info a, .newsletter-info a:visited {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

/* --- FOOTER --- */
footer {
  background: linear-gradient(90deg, var(--color-primary) 75%, var(--color-electric-blue) 120%);
  color: #fff;
  font-size: 15px;
  padding: 32px 0 16px 0;
}
footer .container {
  flex-direction: column;
  gap: 22px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 5px;
}
footer nav a {
  color: #fff;
  font-family: var(--font-body);
  padding: 5px 8px;
  opacity: 0.92;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: background 0.18s, color 0.18s, opacity 0.13s;
}
footer nav a:hover {
  background: var(--color-violet);
  color: var(--color-orange);
  opacity: 1;
}
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  color: #fff;
  opacity: 0.93;
}
.contact-info a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

/* --- LIST & BULLETS --- */
ul {
  list-style: disc inside;
  margin-bottom: 1.1em;
}
ul li {
  margin-bottom: 9px;
  font-size: 16px;
}
ol {
  list-style: decimal inside;
  margin-bottom: 1em;
}
ol li {
  margin-bottom: 10px;
}

/* --- ICONS INSIDE LI --- */
li > img {
  width: 24px;
  height: 24px;
  margin-right: 11px;
  vertical-align: middle;
  display: inline-block;
}
li { display: flex; align-items: center; gap: 10px; }

/* --- THANK YOU MESSAGE --- */
.thank-you-msg {
  background: var(--color-violet);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 18px 24px;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
  box-shadow: 0 5px 14px 0 rgba(128,0,255,0.10);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  z-index: 4000;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: #1e2440;
  box-shadow: 0 -2px 36px 0 rgba(128,0,255,0.15);
  border-top: 4px solid var(--color-electric-blue);
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  align-items: center;
  padding: 28px 20px 24px 20px;
  font-size: 1rem;
  width: 100vw;
  max-width: 100vw;
  animation: cookieBannerIn 0.6s cubic-bezier(.54,0,0,1.18);
}
@keyframes cookieBannerIn {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 7px;
}
.cookie-btn {
  padding: 10px 22px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: box-shadow 0.14s, background 0.13s, color 0.13s;
  box-shadow: 0 3px 15px 0 rgba(24,68,118,0.09);
  margin-right: 0;
  background: #ececec;
}
.cookie-btn--accept {
  background: linear-gradient(90deg, var(--color-secondary), var(--color-electric-blue) 90%);
  color: #fff;
}
.cookie-btn--accept:hover, .cookie-btn--accept:focus {
  background: linear-gradient(90deg, var(--color-pink), var(--color-electric-blue) 100%);
}
.cookie-btn--reject {
  background: var(--color-dark);
  color: #fff;
}
.cookie-btn--reject:hover, .cookie-btn--reject:focus {
  background: var(--color-pink);
  color: #fff;
}
.cookie-btn--settings {
  background: #ececec;
  color: var(--color-violet);
}
.cookie-btn--settings:hover, .cookie-btn--settings:focus {
  background: #d6d6ff;
  color: var(--color-primary);
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal {
  position: fixed;
  z-index: 4300;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(12,28,42,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.23s;
}
.cookie-modal.active {
  pointer-events: all;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff;
  min-width: 300px;
  max-width: 98vw;
  padding: 32px 22px 24px 22px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 32px 0 rgba(24,68,118,0.21);
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  animation: cookieModalIn 0.38s cubic-bezier(.8,0,.2,1);
}
@keyframes cookieModalIn {
  from { transform: scale(0.82) translateY(40px); opacity: 0; }
  to   { transform: scale(1) translateY(0);    opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 32px;
  color: var(--color-violet);
  cursor: pointer;
  z-index: 4401;
}
.cookie-prefs-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-prefs-item {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 17px;
}
.cookie-toggle {
  width: 42px;
  height: 24px;
  background: #ddd;
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .19s;
}
.cookie-toggle[data-checked="true"] {
  background: var(--color-secondary);
}
.cookie-toggle-circle {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.17s;
}
.cookie-toggle[data-checked="true"] .cookie-toggle-circle {
  left: 20px;
}
.cookie-prefs-description {
  color: #5d5d5d;
  font-size: 13px;
  margin-left: 6px;
}

/* --- INTERACTIVE STATES & BUTTONS --- */
button, .cta-btn, input[type="button"], input[type="submit"] {
  outline: none;
  transition: box-shadow 0.17s, transform 0.13s, background 0.13s;
}
button:focus, .cta-btn:focus, .cookie-btn:focus {
  box-shadow: 0 0 0 3px #1D8EFF44;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
  h1, .main-title { font-size: 32px; }
  h2 { font-size: 24px; }
  .container { max-width: 99vw; }
}
@media (max-width: 768px) {
  .container, .content-wrapper { padding: 0 10px; }
  .section, main > section { padding: 36px 7px; }

  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .card {
    min-width: 0;
    max-width: 98vw;
    padding: 20px 12px;
  }
  .feature-item {
    gap: 9px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }
  .testimonial-card {
    padding: 13px 9px;
    font-size: 15px;
  }
  h1, .main-title { font-size: 23px; margin-bottom: 9px; }
  h2 { font-size: 18px; }
  h3 { font-size: 16px; }
}

/* Hide testimonial div stars on too narrow viewports for clarity */
@media (max-width: 480px) {
  .testimonial-card div {
    flex-direction: column;
    gap: 1px;
  }
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 10px; background: #e1e7f6; }
::-webkit-scrollbar-thumb { background: var(--color-electric-blue); border-radius: 15px; }

/* --- ANIMATION: SECTION APPEARANCE --- */
@media (prefers-reduced-motion: no-preference) {
  section, .card, .testimonial-card {
    animation: sectionInUp 0.5s 1 cubic-bezier(.66,0,.34,1.06);
  }
  @keyframes sectionInUp {
    0% { transform: translateY(45px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
  }
}

/* --- UTILITY CLASSES --- */
.mb-20 { margin-bottom: 20px !important; }
.mt-18 { margin-top: 18px !important; }
.d-flex { display: flex !important; }
.hide { display: none !important; }

/*--- HIGH CONTRAST FOR TESTIMONIAL TEXTS ---*/
.testimonial-card, .testimonial-card p, .testimonial-card span {
  color: #181e26 !important;
  background: #fff !important;
}

/* ================================================
   === (END) Vibrant Energetic Style for Struktura Fresh ===
   ================================================ */
