/* ===== Witaminy i Minerały — style.css ===== */

/* ---- Міжсторінкові переходи ---- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.35s ease both vt-out; }
::view-transition-new(root) { animation: 0.45s ease both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---- Властивості для mesh-градієнта ---- */
@property --mesh-x { syntax: '<percentage>'; inherits: false; initial-value: 18%; }
@property --mesh-y { syntax: '<percentage>'; inherits: false; initial-value: 25%; }

/* ---- Тематичні змінні (темна тема, акцент — зелено-бірюзовий та золото) ---- */
:root {
  --vit-bg: #0D1117;
  --vit-surface: #161D29;
  --vit-band: #13704F;
  --vit-band-deep: #0B4A34;
  --vit-tone: #F5B942;
  --vit-tone-hover: #FFD27A;
  --vit-ink: #F2F4F8;
  --vit-muted: #B9C2D0;
  --vit-line: #2A3445;
  --vit-foot: #070A0F;
  --vit-gradient: linear-gradient(120deg, #13704F 0%, #0B4A34 50%, #0D1117 100%);
  --vit-glow: linear-gradient(135deg, #F5B942 0%, #F08A4B 100%);
  --vit-radius-soft: 16px;
  --vit-radius-pill: 999px;
  --vit-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  --vit-section-y: 10dvh;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Lato', sans-serif;
}

/* ---- База ---- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--vit-bg);
  color: var(--vit-ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  font-weight: 700;
}
p { margin: 0 0 1rem; }
img { display: block; max-width: 100%; height: auto; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, label:focus-visible {
  outline: 3px solid var(--vit-tone);
  outline-offset: 3px;
}
.vit-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--vit-tone);
  color: #1A1A2A;
  padding: 0.6rem 1rem;
  z-index: 100;
  font-weight: 700;
}
.vit-skip:focus { left: 1rem; top: 1rem; }
.vit-kicker {
  display: block;
  color: var(--vit-tone);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

/* ---- Header ---- */
.vit-masthead {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 6vw;
  background: var(--vit-band);
  color: #fff;
}
.vit-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.vit-brand svg { width: 40px; height: 40px; flex: 0 0 auto; }
.vit-links { display: flex; gap: 2rem; }
.vit-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s ease;
}
.vit-links a:hover { border-color: var(--vit-tone); }
.vit-burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
}
.vit-burger span { display: block; width: 26px; height: 3px; background: #fff; border-radius: 2px; }
.vit-nav-toggle {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.vit-nav-toggle:focus-visible + .vit-burger { outline: 3px solid var(--vit-tone); outline-offset: 3px; }
.vit-masthead-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--vit-tone);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
@supports (animation-timeline: scroll()) {
  .vit-masthead-progress {
    animation: vitProgressGrow linear both;
    animation-timeline: scroll(root);
  }
}
@keyframes vitProgressGrow { to { transform: scaleX(1); } }

/* ---- Hero з mesh-градієнтом ---- */
.vit-hero {
  position: relative;
  overflow: clip;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: var(--vit-gradient);
  isolation: isolate;
}
.vit-hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mesh-x) var(--mesh-y), rgba(245, 185, 66, 0.38), transparent 45%),
    radial-gradient(circle at calc(100% - var(--mesh-x)) 85%, rgba(63, 191, 138, 0.32), transparent 50%),
    radial-gradient(circle at 25% calc(100% - var(--mesh-y)), rgba(240, 138, 75, 0.22), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.08), transparent 40%);
  animation: vitMeshDrift 24s ease-in-out infinite alternate;
}
@keyframes vitMeshDrift {
  from { --mesh-x: 18%; --mesh-y: 25%; }
  to { --mesh-x: 72%; --mesh-y: 62%; }
}
.vit-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12dvh 6vw;
}
.vit-hero-title {
  font-size: clamp(2.4rem, 6vw, 6rem);
  max-width: 14ch;
}
.vit-hero-title span { display: block; }
.vit-hero-lead {
  font-size: 1.2rem;
  max-width: 52ch;
  color: #E9F7F1;
  margin: 1.5rem 0 2rem;
}

/* ---- Marquee ---- */
.vit-marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--vit-tone);
  color: #1A1A2A;
  padding: 0.9rem 0;
}
.vit-marquee-track {
  display: flex;
  width: max-content;
  animation: vitMarqueeRun 36s linear infinite;
}
.vit-marquee:hover .vit-marquee-track { animation-play-state: paused; }
.vit-marquee-track span {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 1.2rem;
  padding-right: 3rem;
}
.vit-marquee-track span::after { content: "✦"; margin-left: 3rem; }
@keyframes vitMarqueeRun { to { transform: translateX(-50%); } }

/* ---- Фото-смуги ---- */
.vit-photo-strip {
  margin: 0;
  height: 40vh;
  min-height: 220px;
  overflow: hidden;
}
.vit-photo-strip img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Смуги секцій ---- */
.vit-band {
  position: relative;
  overflow: clip;
  padding: var(--vit-section-y) 6vw;
}
.vit-band--alt { background: var(--vit-surface); }
.vit-band--deep { background: var(--vit-band-deep); color: #fff; }
.vit-band--deep h2, .vit-band--deep h3 { color: #fff; }
.vit-band--deep p { color: #E3F5EE; }
.vit-band-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}
.vit-band h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.vit-section-intro {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10dvh 6vw 4dvh;
}
.vit-fade-section {
  /* Плавна поява секцій при вході у viewport (лише CSS) */
}
@supports (animation-timeline: view()) {
  .vit-fade-section {
    animation: vitSectionFade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
}
@keyframes vitSectionFade { from { opacity: 0; } to { opacity: 1; } }

/* ---- Split-макет ---- */
.vit-split {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 3rem;
  align-items: center;
}
.vit-split-media {
  margin: 0;
  border-radius: var(--vit-radius-soft);
  overflow: hidden;
  box-shadow: var(--vit-shadow);
}
.vit-split-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.vit-pull-quote {
  margin: 0 0 2rem;
  padding-left: 1.5rem;
  border-left: 6px solid var(--vit-tone);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.3;
  color: #fff;
}

/* ---- Feature-рядки ---- */
.vit-feature-row {
  display: flex;
  gap: 4rem;
  align-items: center;
  padding: 5dvh 8vw;
}
.vit-feature-row--a { background: var(--vit-surface); }
.vit-feature-row--b { background: var(--vit-bg); }
.vit-feature-row--c { background: var(--vit-band-deep); color: #fff; }
.vit-feature-row--c p { color: #E3F5EE; }
.vit-feature-num {
  min-width: 130px;
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--vit-tone);
}
.vit-feature-body h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }

/* ---- Кроки ---- */
.vit-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.vit-step {
  padding: 2rem;
  border-radius: var(--vit-radius-soft);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.vit-step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--vit-tone);
  line-height: 1;
  margin-bottom: 1rem;
}

/* ---- CTA-смуга ---- */
.vit-cta-strip {
  position: relative;
  overflow: clip;
  background: var(--vit-glow);
  color: #1A1A2A;
  padding: 14dvh 6vw;
  text-align: center;
}
.vit-cta-strip h2 {
  color: #1A1A2A;
  font-size: clamp(2rem, 5vw, 3.8rem);
  max-width: 18ch;
  margin: 0 auto 2rem;
}

/* ---- Кнопки (статичні, лише колір/hover) ---- */
.vit-pill-action {
  display: inline-block;
  background: var(--vit-tone);
  color: #1A1A2A;
  font-weight: 700;
  text-decoration: none;
  padding: 0.95rem 2.2rem;
  border-radius: var(--vit-radius-pill);
  box-shadow: var(--vit-shadow);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.3s ease;
}
.vit-pill-action:hover { background: var(--vit-tone-hover); transform: scale(1.03); }
.vit-pill-action:active { transform: scale(0.99); }
.vit-pill-action--light { background: #fff; color: #0B4A34; }
.vit-pill-action--dark { background: #1A1A2A; color: #fff; }
.vit-pill-action--dark:hover { background: #2A2A40; }
.vit-pill-action--pulse { animation: vitPulse 3.2s ease-in-out infinite; }
@keyframes vitPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 185, 66, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(245, 185, 66, 0); }
}

/* ---- Картки ---- */
.vit-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.vit-card-plain {
  background: var(--vit-surface);
  border: 1px solid var(--vit-line);
  border-radius: var(--vit-radius-soft);
  padding: 2rem;
  box-shadow: var(--vit-shadow);
}
.vit-card-plain h3 { font-size: 1.4rem; }
.vit-card-icon { width: 64px; height: 64px; margin-bottom: 1rem; }
.vit-badge-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}
.vit-badge-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 0.7rem;
}
.vit-badge {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--vit-tone);
  color: #1A1A2A;
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}
.vit-badge--leaf { background: #3FBF8A; }
.vit-badge--sky { background: #7FB6FF; }
.vit-badge--rose { background: #F08A4B; }

/* ---- Статистика ---- */
.vit-stat-grid { display: grid; margin-top: 2rem; }
.vit-stat-line {
  display: grid;
  grid-template-columns: minmax(140px, auto) 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.vit-stat-line:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.vit-stat-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--vit-tone);
  line-height: 1;
}
.vit-stat-line p { margin: 0; font-size: 1.15rem; }

/* ---- Reserve ---- */
.vit-reserve-hero {
  position: relative;
  overflow: clip;
  background: var(--vit-gradient);
  padding: 12dvh 6vw 8dvh;
}
.vit-reserve-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  max-width: 16ch;
  margin-bottom: 1rem;
}
.vit-form-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--vit-bg);
  border: 1px solid var(--vit-line);
  border-radius: var(--vit-radius-soft);
  padding: 2.5rem 2rem;
  box-shadow: var(--vit-shadow);
}
.vit-form-card h2 { font-size: 1.8rem; }
.vit-form-field {
  display: block;
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.vit-form-field input,
.vit-form-field textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #3A4659;
  background: #0F141D;
  color: var(--vit-ink);
  font: inherit;
  font-weight: 400;
}
.vit-form-field input:focus,
.vit-form-field textarea:focus { border-color: var(--vit-tone); }
.vit-consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  margin: 1.5rem 0;
}
.vit-consent input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 0.3rem;
  accent-color: var(--vit-tone);
}
.vit-consent a { color: var(--vit-tone); }
.vit-form-submit { width: 100%; border: 0; cursor: pointer; font: inherit; font-size: 1.05rem; }
.vit-contact-line { margin: 1.5rem 0 0; text-align: center; }
.vit-contact-line a { color: var(--vit-tone); font-weight: 700; }

/* ---- FAQ ---- */
.vit-faq details {
  border-bottom: 1px solid var(--vit-line);
  padding: 1.1rem 0;
}
.vit-faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.vit-faq details p { margin: 0.8rem 0 0; color: var(--vit-muted); }

/* ---- Footer ---- */
.vit-foot {
  background: var(--vit-foot);
  color: var(--vit-muted);
  padding: 6dvh 6vw 3dvh;
}
.vit-foot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.vit-foot .vit-brand { color: var(--vit-ink); }
.vit-foot-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.vit-foot-links a,
.vit-foot address a { color: var(--vit-ink); }
.vit-foot address { font-style: normal; }
.vit-disclaimer {
  max-width: 1200px;
  margin: 3dvh auto 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--vit-line);
  border-radius: var(--vit-radius-soft);
  font-size: 0.95rem;
}
.vit-copy { text-align: center; margin: 0; font-size: 0.9rem; }

/* ---- Cookie-банер ---- */
.vit-cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 6vw;
  background: var(--vit-surface);
  color: var(--vit-ink);
  border-top: 3px solid var(--vit-tone);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
}
.vit-cookie-bar[hidden] { display: none; }
.vit-cookie-bar p { margin: 0; flex: 1 1 320px; }
.vit-cookie-bar a { color: var(--vit-tone); }
.vit-cookie-actions { display: flex; gap: 0.7rem; }
.vit-cookie-accept,
.vit-cookie-decline {
  font: inherit;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: var(--vit-radius-pill);
  cursor: pointer;
  border: 2px solid var(--vit-tone);
}
.vit-cookie-accept { background: var(--vit-tone); color: #1A1A2A; }
.vit-cookie-accept:hover { background: var(--vit-tone-hover); }
.vit-cookie-decline { background: transparent; color: var(--vit-ink); }
.vit-cookie-decline:hover { background: var(--vit-line); }

/* ---- Документи (privacy / terms) ---- */
.vit-doc {
  max-width: 860px;
  margin: 0 auto;
  padding: 8dvh 6vw 10dvh;
  min-height: 100vh;
}
.vit-doc h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 2rem; }
.vit-doc h2 { font-size: 1.6rem; margin-top: 2.5rem; color: var(--vit-tone); }
.vit-doc p { color: #DDE3EC; }
.vit-doc a { color: var(--vit-tone); }

/* ---- Thank-сторінка ---- */
.vit-thanks {
  position: relative;
  overflow: clip;
  isolation: isolate;
  min-height: 75vh;
  display: grid;
  place-items: center;
  padding: 10dvh 6vw;
  background: var(--vit-gradient);
  text-align: center;
}
.vit-thanks-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  pointer-events: none;
  opacity: 0.22;
}
.vit-thanks-photo img { width: 100%; height: 100%; object-fit: cover; }
.vit-thanks-body {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.vit-thanks-body h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.vit-thanks-body .vit-hero-lead { margin-left: auto; margin-right: auto; }

/* ---- Reveal (лише за наявності класу .js) ---- */
.js [data-vit-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js [data-vit-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .vit-burger { display: flex; }
  .vit-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--vit-band-deep);
    padding: 1rem 6vw 1.5rem;
  }
  .vit-links a { padding: 0.8rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
  .vit-nav-toggle:checked ~ .vit-links { display: flex; }
  .vit-split { grid-template-columns: 1fr; }
  .vit-steps { grid-template-columns: 1fr; }
  .vit-cards-grid { grid-template-columns: 1fr; }
  .vit-feature-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 6dvh 6vw;
  }
  .vit-feature-num { min-width: 0; }
  .vit-stat-line { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ---- Prefers-reduced-motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html { view-transition-name: none; }
  .js [data-vit-reveal] { opacity: 1; transform: none; }
}