/* Здоровый образ жизни — единый файл стилей */

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

/* ---------- Реєстровані властивості для mesh-градієнта ---------- */
@property --wl-mx { syntax: '<percentage>'; inherits: false; initial-value: 12%; }
@property --wl-my { syntax: '<percentage>'; inherits: false; initial-value: 22%; }

/* ---------- Тематична палітра ---------- */
:root {
  --wl-bg: #0B1D1F;
  --wl-deep: #08292A;
  --wl-tone: #0F766E;
  --wl-tone-hover: #0B5C56;
  --wl-mint: #A7F0DC;
  --wl-sun: #F6B93B;
  --wl-sun-hover: #FFCC66;
  --wl-surface: #F4F7F3;
  --wl-cream: #FBF8EF;
  --wl-ink: #10201F;
  --wl-line: rgba(16, 32, 31, 0.14);
  --wl-gradient: linear-gradient(120deg, #0F766E 0%, #0B3B3A 60%, #0B1D1F 100%);
  --wl-shadow: 0 12px 32px rgba(8, 41, 42, 0.18);
  --wl-radius: 14px;
  --wl-pad: 10dvh;
  --wl-gutter: 8vw;
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--wl-ink);
  background: var(--wl-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
:focus-visible { outline: 3px solid var(--wl-sun); outline-offset: 3px; }

.wl-skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--wl-sun);
  color: var(--wl-ink);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  z-index: 100;
  font-weight: 700;
}
.wl-skip:focus { top: 1rem; }

figure { margin: 0; }

/* ---------- Шапка ---------- */
.wl-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 6vw;
  background: var(--wl-tone);
  color: #fff;
}
.wl-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: var(--wl-sun);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .wl-progress {
    animation: wl-grow linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes wl-grow { to { transform: scaleX(1); } }

.wl-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.wl-logo { width: 40px; height: 40px; flex: 0 0 40px; }

.wl-menu-check {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.wl-menu-check:focus-visible ~ .wl-burger { outline: 3px solid var(--wl-sun); outline-offset: 3px; }

.wl-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.wl-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.wl-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 6vw 1.5rem;
  background: var(--wl-tone-hover);
}
.wl-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.wl-nav a:hover { text-decoration: underline; }
.wl-menu-check:checked ~ .wl-nav { display: flex; }

@media (min-width: 900px) {
  .wl-burger { display: none; }
  .wl-nav {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 1.75rem;
    padding: 0;
    background: none;
  }
  .wl-nav a { border: 0; padding: 0.25rem 0; }
}

/* ---------- Кнопки ---------- */
.wl-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.wl-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  background: var(--wl-sun);
  color: var(--wl-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.wl-pill:hover { background: var(--wl-sun-hover); transform: scale(1.03); }
.wl-pill:active { transform: scale(0.98); }
.wl-pill-dark { background: var(--wl-bg); color: #fff; }
.wl-pill-dark:hover { background: var(--wl-tone); color: #fff; }
.wl-pill-line { background: transparent; color: inherit; border-color: currentColor; box-shadow: none; }
.wl-pill-line:hover { background: rgba(255, 255, 255, 0.12); color: inherit; }

/* ---------- Hero ---------- */
.wl-hero {
  position: relative;
  overflow: clip;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: var(--wl-pad) var(--wl-gutter);
  color: #fff;
}
.wl-hero-gradient { background: var(--wl-gradient); }
.wl-hero-solid { background: var(--wl-bg); color: var(--wl-surface); min-height: 60vh; }
.wl-hero-tone { background: var(--wl-tone); color: #fff; min-height: 50vh; }
.wl-hero-inner { position: relative; z-index: 1; max-width: 900px; }
.wl-hero p { font-size: 1.2rem; max-width: 56ch; color: #E6F5F1; }
.wl-hero-solid p { color: #D4E9E4; }
.wl-hero h1 { text-wrap: balance; }

.wl-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--wl-mx) var(--wl-my), rgba(167, 240, 220, 0.38), transparent 42%),
    radial-gradient(circle at 85% 15%, rgba(246, 185, 59, 0.35), transparent 38%),
    radial-gradient(circle at 15% 90%, rgba(8, 41, 42, 0.9), transparent 55%);
  animation: wl-mesh-move 26s ease-in-out infinite alternate;
}
@keyframes wl-mesh-move {
  from { --wl-mx: 12%; --wl-my: 22%; }
  to { --wl-mx: 72%; --wl-my: 64%; }
}

.wl-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--wl-mint);
  margin-bottom: 1rem;
}
.wl-band-light .wl-eyebrow,
.wl-band-cream .wl-eyebrow { color: var(--wl-tone); }

/* ---------- Marquee ---------- */
.wl-marquee {
  overflow: hidden;
  background: var(--wl-sun);
  color: var(--wl-ink);
  padding: 0.9rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.wl-marquee-track { display: inline-flex; animation: wl-run 38s linear infinite; }
.wl-marquee-set { display: inline-flex; gap: 2.5rem; padding-right: 2.5rem; }
.wl-marquee:hover .wl-marquee-track { animation-play-state: paused; }
@keyframes wl-run { to { transform: translateX(-50%); } }

/* ---------- Смуги кольору ---------- */
.wl-section { padding: var(--wl-pad) var(--wl-gutter); }
.wl-band-dark { background: var(--wl-bg); color: var(--wl-cream); }
.wl-band-deep { background: var(--wl-deep); color: var(--wl-cream); }
.wl-band-tone { background: var(--wl-tone); color: #fff; }
.wl-band-mint { background: var(--wl-mint); color: var(--wl-ink); }
.wl-band-light { background: var(--wl-surface); color: var(--wl-ink); }
.wl-band-cream { background: var(--wl-cream); color: var(--wl-ink); }
.wl-band-sun { background: var(--wl-sun); color: var(--wl-ink); }
.wl-band-deep .wl-eyebrow,
.wl-band-dark .wl-eyebrow { color: var(--wl-mint); }

.wl-strip { height: 40vh; min-height: 220px; overflow: hidden; }
.wl-strip img { width: 100%; height: 100%; object-fit: cover; }

.wl-section-head { padding: calc(var(--wl-pad) * 0.6) var(--wl-gutter) 0; }
.wl-section-head p { color: inherit; }

.wl-split {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.wl-split figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--wl-radius);
  box-shadow: var(--wl-shadow);
}
.wl-pull {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.25;
  border-left: 6px solid var(--wl-sun);
  padding-left: 1.5rem;
  margin: 2rem 0 0;
  color: #fff;
}

@media (min-width: 900px) {
  .wl-split { grid-template-columns: 55fr 45fr; }
}

/* ---------- Фічі-смуги ---------- */
.wl-feature {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  padding: 5dvh var(--wl-gutter);
}
.wl-band-tone.wl-feature,
.wl-band-tone.wl-feature h3 { color: #fff; }
.wl-feature-icon { width: 64px; height: 64px; flex: 0 0 64px; }
.wl-feature-body { flex: 1 1 300px; max-width: 60ch; }
.wl-feature-body p { margin: 0; }
.wl-icon { width: 64px; height: 64px; display: block; }
.wl-icon-line {
  fill: none;
  stroke: #fff;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (min-width: 900px) {
  .wl-feature { gap: 4rem; }
}

/* ---------- Кроки ---------- */
.wl-steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 2rem;
}
.wl-step h3 { margin-top: 0.5rem; }
.wl-step p { margin: 0; }
.wl-step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--wl-sun);
}
@media (min-width: 900px) {
  .wl-steps { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Principles (about) ---------- */
.wl-principles { display: grid; gap: 1.5rem; margin-top: 2rem; }
.wl-principle {
  background: var(--wl-cream);
  color: var(--wl-ink);
  border-radius: var(--wl-radius);
  padding: 1.75rem;
  box-shadow: var(--wl-shadow);
}
.wl-principle p { margin: 0; }
.wl-lead {
  margin-top: 2.5rem;
  font-size: 1.1rem;
  max-width: 70ch;
  border-top: 2px solid var(--wl-ink);
  padding-top: 1.25rem;
}
@media (min-width: 900px) {
  .wl-principles { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- CTA ---------- */
.wl-cta { text-align: center; }
.wl-cta h2 { margin-left: auto; margin-right: auto; max-width: 22ch; }
.wl-cta p { margin-left: auto; margin-right: auto; }

/* ---------- Картки ---------- */
.wl-card-grid { display: grid; gap: 2rem; margin-top: 2rem; }
.wl-card {
  background: #fff;
  color: var(--wl-ink);
  border-radius: var(--wl-radius);
  padding: 2rem;
  box-shadow: var(--wl-shadow);
}
.wl-card p { margin-bottom: 1rem; }
.wl-card h3 { margin-top: 0.75rem; }
.wl-card-icon { width: 56px; height: 56px; display: block; }
.wl-card .wl-icon-line { stroke: #fff; }
@media (min-width: 900px) {
  .wl-card-grid { grid-template-columns: repeat(3, 1fr); }
  .wl-card-grid:has(> :nth-child(4)) { grid-template-columns: repeat(2, 1fr); }
}

.wl-badges {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  counter-reset: wl-n;
  display: grid;
  gap: 0.75rem;
}
.wl-badges li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.wl-badges li::before {
  counter-increment: wl-n;
  content: counter(wl-n);
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: var(--wl-tone);
}
.wl-badges li:nth-child(2)::before { background: #6D28D9; }
.wl-badges li:nth-child(3)::before { background: #B45309; }
.wl-badges li:nth-child(4)::before { background: #0B5C56; }

/* ---------- Форма ---------- */
.wl-form {
  display: grid;
  gap: 1.25rem;
  max-width: 560px;
  margin: 2rem auto 0;
  background: #fff;
  color: var(--wl-ink);
  padding: 2.25rem;
  border-radius: var(--wl-radius);
  box-shadow: var(--wl-shadow);
}
.wl-field label,
.wl-form > label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.wl-field input,
.wl-field textarea {
  width: 100%;
  font: inherit;
  padding: 0.85rem 1rem;
  border: 2px solid #5E7F7C;
  border-radius: 10px;
  background: #fff;
  color: var(--wl-ink);
}
.wl-field textarea { resize: vertical; min-height: 120px; }
.wl-form .wl-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.95rem;
  margin: 0;
}
.wl-check input {
  width: 22px;
  height: 22px;
  margin-top: 0.2rem;
  flex: 0 0 22px;
  accent-color: var(--wl-tone);
}
.wl-form button { justify-self: start; }
.wl-form a { color: var(--wl-tone); font-weight: 600; }

/* ---------- FAQ ---------- */
.wl-faq { margin-top: 2rem; max-width: 820px; }
.wl-faq details {
  background: #fff;
  color: var(--wl-ink);
  border: 1px solid var(--wl-line);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}
.wl-faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
}
.wl-faq details p { margin: 0.75rem 0 0; }

/* ---------- Thank page ---------- */
.wl-thanks { min-height: 60vh; padding: var(--wl-pad) var(--wl-gutter); display: flex; align-items: center; }
.wl-thanks-inner { max-width: 640px; }
.wl-thanks-inner .wl-pill { margin-top: 1rem; }

/* ---------- Legal ---------- */
.wl-legal {
  min-height: 100vh;
  padding: 8dvh var(--wl-gutter);
  background: var(--wl-cream);
}
.wl-legal h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
.wl-legal section { margin-bottom: 2.5rem; }
.wl-legal h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* ---------- Footer ---------- */
.wl-foot {
  background: var(--wl-bg);
  color: #D7EAE6;
  padding: 4rem var(--wl-gutter) 2rem;
}
.wl-foot a { color: #fff; }
.wl-foot .wl-brand { color: #fff; }
.wl-foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.wl-foot-nav a { text-decoration: underline; text-underline-offset: 3px; }
.wl-disclaimer {
  font-size: 0.95rem;
  color: #C7E3DD;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.wl-copy { font-size: 0.9rem; color: #B6D6CF; margin: 0; }

/* ---------- Cookie-банер ---------- */
.wl-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 6vw;
  background: var(--wl-bg);
  color: #fff;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3);
}
.wl-cookie[hidden] { display: none; }
.wl-cookie-text { margin: 0; font-size: 0.97rem; max-width: 60ch; }
.wl-cookie-text a { color: var(--wl-mint); }
.wl-cookie-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.wl-cookie .wl-pill { padding: 0.7rem 1.4rem; font-size: 0.95rem; }
.wl-cookie .wl-pill-line { color: #fff; }

/* ---------- Reveal (лише з JS) ---------- */
.js .wl-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .wl-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Адаптивність ---------- */
@media (max-width: 899px) {
  .wl-hero { min-height: 70vh; }
  .wl-split figure img { aspect-ratio: 3 / 4; }
}
@media (max-width: 380px) {
  .wl-pill { padding: 0.85rem 1.25rem; }
  .wl-brand-text { font-size: 0.95rem; }
}

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