/* ==========================================================
   Здоровый образ жизни — стилі (тема: DARK, пресет L)
   ========================================================== */

@property --hzl-x { syntax: '<percentage>'; inherits: false; initial-value: 20%; }
@property --hzl-y { syntax: '<percentage>'; inherits: false; initial-value: 30%; }

:root {
  --hzl-bg: #0D1117;
  --hzl-surface: #161E27;
  --hzl-band: #111A23;
  --hzl-header: #0E4A46;
  --hzl-foot: #070B10;
  --hzl-tone: #2EE6C5;
  --hzl-tone-hover: #7FF7E0;
  --hzl-on-tone: #0D1117;
  --hzl-deep-ink: #F2FBF9;
  --hzl-ink: #F0F6FC;
  --hzl-muted: #B9C4D0;
  --hzl-line: rgba(46, 230, 197, 0.28);
  --hzl-field: #0D1117;
  --hzl-gradient: linear-gradient(125deg, #0E4A46 0%, #0D1117 58%, #13262E 100%);
  --hzl-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  --hzl-radius: 16px;
  --hzl-pad: 10dvh;
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--hzl-bg);
  color: var(--hzl-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: clip;
}
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
a { color: var(--hzl-tone); }
:focus-visible { outline: 3px solid var(--hzl-tone); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
ol { margin: 0; padding: 0; }
figure { margin: 0; }

.hzl-wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 6vw; }
.hzl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hzl-center { text-align: center; }
.hzl-head { margin-bottom: 2.4rem; }
.hzl-head p { color: var(--hzl-muted); max-width: 680px; }

/* ---------- Header (пресет L: акцентна смуга) ---------- */
.hzl-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 6vw;
  background: var(--hzl-header);
  color: #fff;
}
.hzl-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.hzl-links {
  display: flex;
  gap: 1.8rem;
  margin-left: auto;
}
.hzl-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
}
.hzl-links a:hover,
.hzl-links a[aria-current="page"] { color: var(--hzl-tone); }
.hzl-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.hzl-toggle-input:focus-visible ~ .hzl-burger { outline: 3px solid var(--hzl-tone); outline-offset: 3px; }
.hzl-burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
  cursor: pointer;
}
.hzl-burger span,
.hzl-burger::before,
.hzl-burger::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.hzl-burger::before { top: 14px; }
.hzl-burger span { top: 21px; }
.hzl-burger::after { top: 28px; }
.hzl-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--hzl-tone);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .hzl-progress {
    animation: hzl-grow linear both;
    animation-timeline: scroll(root);
  }
}
@keyframes hzl-grow { to { transform: scaleX(1); } }

/* ---------- Hero (mesh-gradient, пресет L) ---------- */
.hzl-stage {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 10dvh 6vw;
  background: var(--hzl-gradient);
  overflow: clip;
}
.hzl-stage--accent {
  background: linear-gradient(120deg, var(--hzl-header) 0%, var(--hzl-bg) 80%);
}
.hzl-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--hzl-x) var(--hzl-y), rgba(46, 230, 197, 0.32), transparent 42%),
    radial-gradient(circle at calc(100% - var(--hzl-x)) 85%, rgba(14, 74, 70, 0.95), transparent 55%),
    radial-gradient(circle at 25% calc(100% - var(--hzl-y)), rgba(111, 245, 220, 0.18), transparent 38%);
  animation: hzl-drift 26s ease-in-out infinite alternate;
}
@keyframes hzl-drift {
  from { --hzl-x: 15%; --hzl-y: 25%; }
  to { --hzl-x: 72%; --hzl-y: 62%; }
}
.hzl-stage-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
}
.hzl-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hzl-tone);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.hzl-lead {
  font-size: 1.15rem;
  max-width: 640px;
  color: var(--hzl-ink);
}
.hzl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

/* ---------- Кнопки (статичні, hover лише кольором) ---------- */
.hzl-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.8rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--hzl-tone);
  color: var(--hzl-on-tone);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--hzl-shadow);
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.hzl-pill:hover { background: var(--hzl-tone-hover); }
.hzl-pill:active { transform: scale(0.98); }
.hzl-pill--ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
  box-shadow: none;
}
.hzl-pill--ghost:hover {
  background: #fff;
  color: var(--hzl-header);
}
.hzl-band--tone .hzl-pill {
  background: var(--hzl-on-tone);
  color: var(--hzl-tone);
}
.hzl-band--tone .hzl-pill:hover { background: #1F2A36; color: var(--hzl-tone-hover); }
.hzl-submit { margin-top: 0.6rem; width: 100%; }
.hzl-pill:focus-visible { outline: 3px solid var(--hzl-tone); outline-offset: 3px; }

/* ---------- Marquee (пресет L, смуга теми) ---------- */
.hzl-marquee {
  overflow: hidden;
  background: var(--hzl-tone);
  color: var(--hzl-on-tone);
  padding: 1.1rem 0;
  border-block: 1px solid var(--hzl-line);
}
.hzl-marquee-track {
  display: flex;
  width: max-content;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  animation: hzl-run 36s linear infinite;
}
.hzl-marquee:hover .hzl-marquee-track { animation-play-state: paused; }
.hzl-marquee-group {
  display: flex;
  flex-shrink: 0;
}
.hzl-marquee-group span {
  padding-right: 2.5rem;
}
.hzl-marquee-group span::after {
  content: "✦";
  margin-left: 2.5rem;
  opacity: 0.6;
}
@keyframes hzl-run { to { transform: translateX(-50%); } }

/* ---------- Фото-смуги ---------- */
.hzl-photo img {
  width: 100%;
  height: 40vh;
  min-height: 220px;
  object-fit: cover;
}
.hzl-col-img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--hzl-radius);
  box-shadow: var(--hzl-shadow);
}

/* ---------- Смуги (кольорові зони) ---------- */
.hzl-band {
  position: relative;
  padding: var(--hzl-pad) 0;
  background: var(--hzl-bg);
  overflow: clip;
  color: var(--hzl-ink);
}
.hzl-band--alt { background: var(--hzl-band); }
.hzl-band--deep {
  background: var(--hzl-header);
  color: var(--hzl-deep-ink);
}
.hzl-band--deep .hzl-head p { color: var(--hzl-deep-ink); opacity: 0.9; }
.hzl-band--tone {
  background: var(--hzl-tone);
  color: var(--hzl-on-tone);
}
.hzl-band--tone h2,
.hzl-band--tone p { color: var(--hzl-on-tone); }
.hzl-band--tone a { color: var(--hzl-on-tone); }
.hzl-cta-strip { padding-block: calc(var(--hzl-pad) * 1.3); }
.hzl-cta-strip .hzl-wrap > * + * { margin-top: 1.4rem; }

/* Split: pull-quote + зображення 45% */
.hzl-split {
  display: grid;
  grid-template-columns: 1fr 45%;
  gap: 4rem;
  align-items: center;
}
.hzl-pull {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.2;
  font-weight: 700;
  border-left: 6px solid var(--hzl-tone);
  padding-left: 1.5rem;
  margin-bottom: 1.6rem;
}
.hzl-band p { color: var(--hzl-ink); }
.hzl-band--alt p { color: var(--hzl-ink); }

/* ---------- Strips (features) ---------- */
.hzl-strip {
  display: flex;
  gap: 4rem;
  align-items: center;
  padding: 5dvh 8vw;
  border-top: 1px solid var(--hzl-line);
}
.hzl-strip--surface { background: var(--hzl-surface); }
.hzl-strip--bg { background: var(--hzl-bg); }
.hzl-strip-mark { flex: 0 0 64px; }
.hzl-strip-body { max-width: 720px; }
.hzl-strip-body p { color: var(--hzl-muted); margin: 0; }

/* ---------- Кроки ---------- */
.hzl-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.hzl-step {
  padding: 1.8rem;
  border-radius: var(--hzl-radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.hzl-step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--hzl-tone);
  margin-bottom: 0.8rem;
}
.hzl-step p { color: var(--hzl-deep-ink); opacity: 0.92; margin: 0; }

/* ---------- Послуги / принципи ---------- */
.hzl-services,
.hzl-principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
.hzl-services { grid-template-columns: repeat(4, 1fr); }
.hzl-service,
.hzl-principle {
  padding: 2rem;
  background: var(--hzl-surface);
  border-radius: var(--hzl-radius);
  border: 1px solid var(--hzl-line);
  box-shadow: var(--hzl-shadow);
}
.hzl-service p,
.hzl-principle p { color: var(--hzl-muted); margin: 0; }
.hzl-icon { margin-bottom: 1rem; }
.hzl-principle h3 { color: var(--hzl-tone); }

/* ---------- Картки бронювання ---------- */
.hzl-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.hzl-tile {
  padding: 2rem;
  background: var(--hzl-surface);
  border-radius: var(--hzl-radius);
  border: 1px solid var(--hzl-line);
  box-shadow: var(--hzl-shadow);
}
.hzl-tile p { color: var(--hzl-muted); }
.hzl-numlist {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}
.hzl-numlist li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.hzl-dot {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--hzl-tone);
  color: var(--hzl-on-tone);
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

/* ---------- Форма ---------- */
.hzl-form {
  max-width: 560px;
  margin-inline: auto;
  padding: 2.2rem;
  background: var(--hzl-surface);
  border-radius: var(--hzl-radius);
  border: 1px solid var(--hzl-line);
  box-shadow: var(--hzl-shadow);
}
.hzl-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.hzl-form input[type="text"],
.hzl-form input[type="tel"],
.hzl-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  margin-bottom: 1.1rem;
  border-radius: 10px;
  border: 1.5px solid #3A4A58;
  background: var(--hzl-field);
  color: var(--hzl-ink);
  font: inherit;
}
.hzl-form input::placeholder,
.hzl-form textarea::placeholder { color: #8A97A6; }
.hzl-consent {
  display: flex !important;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 400 !important;
  font-size: 0.95rem;
  margin-bottom: 1.3rem !important;
}
.hzl-consent input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  accent-color: var(--hzl-tone);
}
.hzl-consent a { color: var(--hzl-tone); }

/* ---------- FAQ ---------- */
.hzl-faq { display: grid; gap: 0.8rem; max-width: 820px; }
.hzl-faq details {
  background: var(--hzl-surface);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  border-left: 4px solid var(--hzl-tone);
}
.hzl-faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.hzl-faq summary::-webkit-details-marker { display: none; }
.hzl-faq details p { margin: 0.7rem 0 0; color: var(--hzl-muted); }

/* ---------- Документи (privacy / terms / thank) ---------- */
.hzl-doc { min-height: 100vh; }
.hzl-doc .hzl-wrap { max-width: 880px; }
.hzl-doc h2 {
  font-size: 1.6rem;
  margin-top: 2.2rem;
  color: var(--hzl-tone);
}
.hzl-doc p { color: var(--hzl-ink); max-width: 820px; }
#cookies { scroll-margin-top: 2rem; }

/* ---------- Footer ---------- */
.hzl-foot {
  background: var(--hzl-foot);
  color: var(--hzl-muted);
  padding: 5dvh 6vw 4dvh;
}
.hzl-foot-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}
.hzl-foot .hzl-wrap { padding-inline: 0; }
.hzl-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}
.hzl-foot-links a { color: var(--hzl-tone); text-decoration: none; }
.hzl-foot-links a:hover { text-decoration: underline; }
.hzl-disclaimer {
  font-size: 0.9rem;
  border: 1px solid var(--hzl-line);
  padding: 0.8rem 1rem;
  border-radius: 10px;
  color: var(--hzl-muted);
}
.hzl-copy { margin: 0; font-size: 0.9rem; color: var(--hzl-muted); }

/* ---------- Cookie-банер (статичний, без transform) ---------- */
.hzl-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: 1rem 6vw;
  background: var(--hzl-foot);
  color: #fff;
  border-top: 3px solid var(--hzl-tone);
}
.hzl-cookie[hidden] { display: none; }
.hzl-cookie p { margin: 0; max-width: 680px; font-size: 0.95rem; }
.hzl-cookie a { color: var(--hzl-tone); }
.hzl-cookie-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hzl-cookie .hzl-pill { min-height: 44px; padding: 0.6rem 1.3rem; }

/* ---------- Декоративні шари ---------- */
.hzl-mesh,
.hzl-marquee,
.hzl-progress { pointer-events: none; }
.hzl-marquee { pointer-events: auto; }

/* ---------- Reveal (JS stagger, опційно) ---------- */
.js .hzl-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .hzl-reveal.is-in {
  opacity: 1;
  transform: none;
}
.js .hzl-fade {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.js .hzl-fade.is-in { opacity: 1; }

/* ---------- Scroll-driven поява заголовків ---------- */
@supports (animation-timeline: view()) {
  .hzl-head {
    animation: hzl-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }
}
@keyframes hzl-rise {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: none; }
}

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

@media (max-width: 820px) {
  .hzl-burger { display: block; }
  .hzl-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0.6rem 6vw 1.4rem;
    background: var(--hzl-header);
    box-shadow: var(--hzl-shadow);
    z-index: 5;
  }
  .hzl-links a {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--hzl-line);
  }
  .hzl-toggle-input:checked ~ .hzl-links { display: flex; }
  .hzl-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    padding: 5dvh 6vw;
  }
  .hzl-split { grid-template-columns: 1fr; gap: 2.4rem; }
  .hzl-steps,
  .hzl-services,
  .hzl-principles { grid-template-columns: 1fr; }
  .hzl-foot-grid { flex-direction: column; align-items: flex-start; }
  .hzl-cookie { flex-direction: column; align-items: stretch; }
}

@media (max-width: 380px) {
  .hzl-form { padding: 1.5rem; }
  .hzl-stage { padding-inline: 5vw; }
  .hzl-actions .hzl-pill { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html { view-transition-name: none; }
}