/* =========================================
   Vida Saludable: style.css
   Тема: light · Шрифти: Playfair Display / Work Sans
   ========================================= */

/* ---------- Міжсторінкові переходи ---------- */
@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; } }

/* ---------- Змінні теми ---------- */
:root {
  --vida-bg: #FBF7EF;
  --vida-surface: #F2EADB;
  --vida-tone: #0F7A6B;
  --vida-tone-hover: #0A5A4E;
  --vida-warm: #E0A526;
  --vida-sky: #2F6A8F;
  --vida-plum: #6B4580;
  --vida-ink: #1A1A2A;
  --vida-muted: #4A4A5A;
  --vida-line: #D6CBB8;
  --vida-night: #1E2A2E;
  --vida-white: #FFFFFF;
  --vida-gradient: linear-gradient(120deg, #0F7A6B 0%, #E0A526 100%);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Work Sans', sans-serif;
  --vida-pad: 10dvh;
  --vida-radius: 3px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--vida-bg);
  color: var(--vida-ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--vida-tone); }
a:hover { color: var(--vida-tone-hover); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  color: var(--vida-ink);
}
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
ol, ul { margin: 0; }

:focus-visible {
  outline: 3px solid var(--vida-warm);
  outline-offset: 3px;
}

.vs-wrap {
  width: min(1200px, 92%);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.vs-section {
  position: relative;
  overflow: clip;
  padding-block: var(--vida-pad);
}

.vs-main { min-height: 100vh; }

.vs-kicker {
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0.16em;
  color: var(--vida-tone);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.vs-btn {
  display: inline-block;
  background: var(--vida-tone);
  color: var(--vida-bg);
  padding: 0.95rem 1.8rem;
  border: 0;
  border-radius: var(--vida-radius);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.vs-btn:hover {
  background: var(--vida-tone-hover);
  color: var(--vida-bg);
  box-shadow: 0 0 0 4px rgba(224, 165, 38, 0.35);
}
.vs-btn:active { background: var(--vida-tone-hover); }

/* ---------- Header ---------- */
.vs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--vida-white);
  border-bottom: 1px solid var(--vida-line);
}

.vs-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--vida-gradient);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
  z-index: 2;
}
@supports (animation-timeline: scroll()) {
  .vs-progress {
    animation: vs-grow linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes vs-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.vs-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
}

.vs-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--vida-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1;
  font-weight: 700;
}
.vs-brand:hover { color: var(--vida-ink); }
.vs-brand svg { width: 36px; height: 36px; flex: none; color: var(--vida-ink); }

.vs-menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.vs-burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.vs-burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--vida-ink);
}
.vs-burger span:nth-child(1) { top: 14px; }
.vs-burger span:nth-child(2) { top: 21px; }
.vs-burger span:nth-child(3) { top: 28px; }
.vs-menu-toggle:focus-visible ~ .vs-burger {
  outline: 3px solid var(--vida-warm);
  outline-offset: 3px;
}

.vs-nav ul {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.vs-nav a {
  color: var(--vida-ink);
  text-decoration: none;
  font-weight: 300;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
}
.vs-nav a:hover {
  color: var(--vida-tone);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* ---------- Hero (index) ---------- */
.vs-hero {
  position: relative;
  overflow: clip;
  padding-block: calc(var(--vida-pad) * 1.2) var(--vida-pad);
}
.vs-hero-bg {
  position: absolute;
  inset: 0;
  background: url("img/bg.webp") center / cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.vs-hero-title {
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 0.98;
  font-weight: 700;
  margin-bottom: 0.4em;
}
.vs-line {
  display: block;
  animation: vs-line-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  animation-delay: calc(var(--vs-i, 0) * 140ms);
}
.vs-line-left { padding-left: 0; }
.vs-line-right {
  text-align: right;
  padding-left: clamp(0px, 14vw, 220px);
}
.vs-line-indent { padding-left: clamp(0px, 6vw, 90px); }
.vs-accent {
  color: var(--vida-tone);
  text-decoration: underline;
  text-decoration-color: var(--vida-warm);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.14em;
}
@keyframes vs-line-up {
  from { opacity: 0; transform: translateY(28px); }
}
.vs-hero-sub {
  max-width: 34rem;
  font-size: 1.15rem;
  color: var(--vida-muted);
  margin-left: clamp(0px, 6vw, 90px);
}
.vs-hero-cta {
  margin-left: clamp(0px, 6vw, 90px);
  margin-top: 1.4rem;
}

/* ---------- Reveal-ефекти ---------- */
.js .vs-stagger {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .vs-stagger.is-in {
  opacity: 1;
  transform: none;
}

@supports (animation-timeline: view()) {
  .vs-view-fade {
    animation: vs-fade-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
  .vs-clip-img {
    animation: vs-clip-open linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }
}
@keyframes vs-fade-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}
@keyframes vs-clip-open {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* ---------- Essay: 3-col масонрі ---------- */
.vs-columns {
  columns: 3;
  column-gap: 3rem;
  column-rule: 1px solid var(--vida-line);
  margin-top: 2.5rem;
}
.vs-col-item {
  break-inside: avoid;
  margin-bottom: 2.2rem;
}
.vs-col-item h3 { font-size: 1.3rem; }
.vs-col-item p { color: var(--vida-muted); }
.vs-mini-icon {
  display: block;
  width: 28px;
  height: 28px;
  color: var(--vida-tone);
  margin-top: 0.8rem;
}
.vs-mini-icon svg,
.vs-manifest-icon,
.vs-tile-icon {
  width: 100%;
  height: 100%;
}

/* ---------- Photo band (bg2) ---------- */
.vs-photo-band {
  position: relative;
  overflow: clip;
  min-height: 50vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(251, 247, 239, 0.96) 0%, rgba(251, 247, 239, 0.82) 45%, rgba(251, 247, 239, 0.25) 100%),
    url("img/bg2.webp") center / cover no-repeat;
  padding-block: var(--vida-pad);
}
.vs-photo-band-alt {
  background:
    linear-gradient(270deg, rgba(251, 247, 239, 0.96) 0%, rgba(251, 247, 239, 0.8) 50%, rgba(251, 247, 239, 0.2) 100%),
    url("img/bg2.webp") center / cover no-repeat;
}
.vs-band-text {
  max-width: 560px;
}

/* ---------- Manifesto rows ---------- */
.vs-manifest-list {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
}
.vs-manifest-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--vida-line);
}
.vs-manifest-row:last-child { border-bottom: 0; }
.vs-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--vida-tone);
  min-width: 2.2rem;
}
.vs-manifest-icon {
  width: 24px;
  height: 24px;
  color: var(--vida-tone);
  flex: none;
  align-self: center;
}
.vs-manifest-row h3 {
  font-size: 1.4rem;
  margin: 0;
}
.vs-manifest-row p {
  margin: 0;
  flex: 1 1 300px;
  color: var(--vida-muted);
}

/* ---------- Steps ---------- */
.vs-step-row {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.vs-step {
  position: relative;
  padding-top: 1rem;
}
.vs-step:nth-child(2) { margin-top: 3.5rem; }
.vs-step:nth-child(3) { margin-top: 1.2rem; }
.vs-step-num {
  position: absolute;
  top: -2.2rem;
  left: -0.4rem;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  font-weight: 700;
  color: var(--vida-tone);
  opacity: 0.15;
  transform: rotate(-10deg);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.vs-step h3,
.vs-step p { position: relative; z-index: 1; }
.vs-step p { color: var(--vida-muted); }

/* ---------- CTA strip ---------- */
.vs-cta-strip {
  background: var(--vida-night);
  color: var(--vida-bg);
  padding-block: calc(var(--vida-pad) * 0.8);
}
.vs-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.vs-slogan {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin: 0;
  max-width: 18ch;
  color: var(--vida-bg);
}
.vs-ghost {
  display: inline-block;
  border: 1.5px solid var(--vida-bg);
  color: var(--vida-bg);
  padding: 0.9rem 1.7rem;
  border-radius: var(--vida-radius);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.vs-ghost:hover {
  background: var(--vida-warm);
  border-color: var(--vida-warm);
  color: var(--vida-ink);
}

/* ---------- Split (expert / thank) ---------- */
.vs-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  position: relative;
  overflow: clip;
}
.vs-split-text {
  padding: var(--vida-pad) clamp(1.25rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.vs-split-text h1 { margin-bottom: 0.6em; }
.vs-split-figure {
  margin: 0;
  position: relative;
  overflow: clip;
  min-height: 420px;
}
.vs-split-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vs-dropcap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 4.6rem;
  line-height: 0.9;
  padding: 0.4rem 0.6rem 0 0;
  color: var(--vida-tone);
  font-weight: 700;
}
.vs-thank-action { margin-top: 1.5rem; }

/* ---------- Expert: підхід і статистика ---------- */
.vs-approach-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 2.5rem;
}
.vs-approach-item {
  border-top: 3px solid var(--vida-tone);
  padding-top: 1.5rem;
}
.vs-approach-item p { color: var(--vida-muted); }
.vs-approach-item .vs-tile-icon {
  width: 40px;
  height: 40px;
  color: var(--vida-tone);
  margin-bottom: 1rem;
}
.vs-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.vs-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--vida-tone);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.vs-stat-label { color: var(--vida-muted); }

/* ---------- Reserve ---------- */
.vs-reserve-title { font-size: clamp(3rem, 8vw, 6.5rem); }
.vs-lead {
  max-width: 40rem;
  font-size: 1.2rem;
  color: var(--vida-muted);
}
.vs-tile-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 2.5rem;
}
.vs-tile {
  border-top: 3px solid var(--vida-tone);
  padding-top: 1.5rem;
}
.vs-tile:nth-child(2) { border-top-color: var(--vida-warm); }
.vs-tile:nth-child(3) { border-top-color: var(--vida-sky); }
.vs-tile-icon {
  width: 40px;
  height: 40px;
  color: var(--vida-tone);
  margin-bottom: 1rem;
}
.vs-tile p { color: var(--vida-muted); }
.vs-tile-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.vs-tile-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.vs-badge {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--vida-bg);
}
.vs-badge-1 { background: var(--vida-tone); }
.vs-badge-2 { background: var(--vida-warm); color: var(--vida-ink); }
.vs-badge-3 { background: var(--vida-sky); }
.vs-badge-4 { background: var(--vida-plum); }

.vs-form-section { background: var(--vida-surface); }
.vs-form-heading {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  text-align: center;
  margin-bottom: 2.5rem;
}
.vs-form {
  display: grid;
  gap: 1.7rem;
  max-width: 640px;
  margin-inline: auto;
}
.vs-field {
  display: grid;
  gap: 0.35rem;
}
.vs-field label,
.vs-consent {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--vida-ink);
}
.vs-form input[type="text"],
.vs-form input[type="tel"],
.vs-form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--vida-ink);
  border-radius: 0;
  padding: 0.6rem 0;
  font: inherit;
  color: var(--vida-ink);
}
.vs-form input:focus,
.vs-form textarea:focus {
  outline: none;
  border-bottom-color: var(--vida-tone);
  box-shadow: 0 2px 0 0 var(--vida-tone);
}
.vs-form textarea {
  resize: vertical;
  min-height: 110px;
}
.vs-consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 400;
}
.vs-consent input {
  margin-top: 0.35rem;
  width: 20px;
  height: 20px;
  flex: none;
  accent-color: var(--vida-tone);
}
.vs-form .vs-btn { justify-self: start; }
.vs-contact-line {
  text-align: center;
  margin: 2rem 0 0;
  color: var(--vida-muted);
}

.vs-faq {
  max-width: 760px;
  margin-inline: auto;
}
.vs-faq details {
  border-bottom: 1px solid var(--vida-line);
  padding: 1.1rem 0;
}
.vs-faq summary {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--vida-ink);
}
.vs-faq details p {
  margin: 0.8rem 0 0;
  color: var(--vida-muted);
}

/* ---------- Legal ---------- */
.vs-legal {
  max-width: 820px;
  margin-inline: auto;
}
.vs-legal h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 1.2rem;
}
.vs-legal h2 {
  font-size: 1.7rem;
  margin-top: 2.4rem;
}
.vs-legal p { color: var(--vida-muted); }
.vs-legal-block { scroll-margin-top: 7rem; }

/* ---------- Footer ---------- */
.vs-footer {
  background: var(--vida-surface);
  border-top: 1px solid var(--vida-line);
  padding-block: 3.5rem 2rem;
}
.vs-footer .vs-brand { font-size: 1.8rem; }
.vs-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.vs-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}
.vs-footer-links a { color: var(--vida-ink); }
.vs-footer address {
  font-style: normal;
}
.vs-disclaimer {
  grid-column: 1 / -1;
  font-size: 0.95rem;
  color: var(--vida-muted);
  border-top: 1px solid var(--vida-line);
  padding-top: 1.5rem;
  margin: 0;
}
.vs-copy {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: var(--vida-muted);
  margin: 0;
}

/* ---------- Cookie-банер ---------- */
.vs-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--vida-night);
  color: var(--vida-bg);
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}
.vs-cookie[hidden] { display: none; }
.vs-cookie p {
  margin: 0;
  max-width: 60ch;
  font-size: 0.95rem;
  color: var(--vida-bg);
}
.vs-cookie a { color: var(--vida-warm); }
.vs-cookie-actions {
  display: flex;
  gap: 0.75rem;
}
.vs-cookie button {
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 1.3rem;
  border-radius: var(--vida-radius);
  cursor: pointer;
  border: 1.5px solid var(--vida-bg);
  background: transparent;
  color: var(--vida-bg);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.vs-cookie button:hover {
  background: var(--vida-bg);
  color: var(--vida-ink);
}
.vs-cookie #accept-cookie {
  background: var(--vida-warm);
  border-color: var(--vida-warm);
  color: var(--vida-ink);
}
.vs-cookie #accept-cookie:hover {
  background: var(--vida-bg);
  border-color: var(--vida-bg);
}

/* ---------- Адаптивність ---------- */
@media (max-width: 1100px) {
  .vs-stat-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .vs-columns { columns: 2; }
  .vs-tile-row,
  .vs-approach-row { grid-template-columns: 1fr; gap: 2.5rem; }
  .vs-split { grid-template-columns: 1fr; }
  .vs-split-figure { min-height: 360px; }
  .vs-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .vs-burger { display: block; }
  .vs-nav {
    display: none;
    width: 100%;
    padding-bottom: 1rem;
  }
  .vs-menu-toggle:checked ~ .vs-nav { display: block; }
  .vs-nav ul {
    flex-direction: column;
    gap: 1rem;
    padding-top: 0.5rem;
  }
  .vs-step-row { grid-template-columns: 1fr; gap: 2.5rem; }
  .vs-step:nth-child(n) { margin-top: 0; }
  .vs-line-right { padding-left: clamp(0px, 10vw, 120px); }
}

@media (max-width: 600px) {
  .vs-columns { columns: 1; }
  .vs-stat-row { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .vs-hero-sub,
  .vs-hero-cta { margin-left: 0; }
  .vs-line-indent { padding-left: 0; }
  .vs-footer-grid { grid-template-columns: 1fr; }
  .vs-cookie { flex-direction: column; align-items: flex-start; }
  .vs-photo-band { background-position: 70% center; }
}

@media (max-width: 380px) {
  .vs-stat-row { grid-template-columns: 1fr; }
}

/* ---------- Доступність руху ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html { view-transition-name: none; }
}