/* Andrea Pročová – funnel pre rodičov detí 8–14
   Farby podľa webu rodinnaklinika.sk (LYRIUS klinika):
   tmavozelená #327866 · zelená #449781 · šalviová #4D7369 · mint #CFF4EC · teplá sivá #EAEAE8
   Písmo: Playfair Display (nadpisy, náhrada Didot) + Nunito Sans (text, náhrada Avenir) */

:root {
  --bg: #fbfbf9;
  --surface: #ffffff;
  --surface-2: #f1f1ee;     /* teplá sivá – jemne tónované plochy */
  --mint: #cff4ec;
  --mint-2: #94d6c8;
  --green-900: #1f4a3f;
  --green-800: #327866;     /* hlavná farba – hlavička, pásy, pätička */
  --green-700: #4d7369;
  --accent: #2c6b5b;        /* zvýraznený text na svetlom pozadí */
  --cta: #449781;           /* tlačidlá */
  --cta-2: #3a8572;
  --cta-ink: #ffffff;
  --line: rgba(50, 120, 102, 0.28);
  --line-soft: rgba(50, 120, 102, 0.12);
  --text: #2f2f2e;
  --muted: #55605c;
  --muted-2: #7f8a86;
  --on-dark: #ffffff;
  --on-dark-muted: #d8efe9;
  --ok: #2c7a5c;
  --no: #b5482f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 44px -22px rgba(31, 74, 63, 0.38);
  --max: 1120px;
  --font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.68;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }

/* ---------- Typografia ---------- */
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; color: var(--green-900); font-weight: 600; }
h1 { font-size: clamp(32px, 4.8vw, 52px); }
h2 { font-size: clamp(27px, 3.4vw, 38px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--muted); }
.gold { color: var(--accent); font-style: italic; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted-2); }

/* ---------- Hlavička ---------- */
.top { padding: 14px 0; background: #fff; border-top: 4px solid var(--green-800); box-shadow: 0 1px 0 var(--line-soft); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; flex-direction: column; line-height: 1.15; text-decoration: none; }
.brand-name { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--green-800); }
.brand-sub { font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); }
.top-note { font-size: 14px; font-weight: 700; color: var(--muted); }

/* ---------- Tlačidlá ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 800; font-size: 17px; letter-spacing: .03em;
  padding: 18px 34px; border-radius: 999px; border: 0;
  background: var(--cta); color: var(--cta-ink); text-decoration: none; cursor: pointer;
  box-shadow: 0 14px 28px -12px rgba(50, 120, 102, 0.65);
  transition: transform .15s ease, background .15s ease; text-align: center;
}
.btn:hover { background: var(--cta-2); transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--green-900); outline-offset: 3px; }
.btn[disabled] { opacity: .75; cursor: wait; }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); box-shadow: none; font-weight: 700; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-block { width: 100%; }
.cta-note { margin-top: 14px; font-size: 14px; color: var(--muted-2); }

/* ---------- Sekcie ---------- */
section { padding: 64px 0; }
.section-tight { padding: 36px 0; }
.section-mint { background: linear-gradient(180deg, rgba(207, 244, 236, .55), rgba(207, 244, 236, .2)); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); border: 0; margin: 0; }

/* Hero */
.hero { padding: 48px 0 60px; }
.hero-eyebrow { display: block; margin-bottom: 22px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr .8fr; gap: 56px; align-items: center; }
.hero .headline h1 { font-size: clamp(28px, 3.3vw, 41px); line-height: 1.25; }
/* Titulok: úvod tmavý, kľúčová fráza farbou kliniky s jemným mint podčiarknutím,
   záver rovnakým písmom titulku, len menší a svetlejší (nie ako podtitulok) */
.hero .headline h1 { color: var(--green-900); }
.hero .headline h1 .hl {
  color: var(--green-800);
  background: linear-gradient(transparent 62%, rgba(148, 214, 200, .55) 62%, rgba(148, 214, 200, .55) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 .08em;
}
.hero .headline h1 .h1-tail { display: block; margin-top: .5em; font-size: .7em; font-weight: 500; line-height: 1.4; color: var(--green-700); }
.hero .headline h1 .h1-lead { display: block; margin-bottom: .15em; }
.h1-sub { display: block; margin-top: 16px; font-family: var(--font); font-size: clamp(17px, 1.6vw, 20px); font-weight: 400; line-height: 1.55; color: var(--muted); }
.headline { display: none; }
html:not([data-v]) .headline[data-variant="a"],
html[data-v="a"] .headline[data-variant="a"],
html[data-v="b"] .headline[data-variant="b"],
html[data-v="c"] .headline[data-variant="c"] { display: block; }
.hero .lead { max-width: 600px; }
.center .lead { margin-left: auto; margin-right: auto; }
.hero-cta { margin-top: 32px; }

/* Portrét */
.portrait {
  position: relative; aspect-ratio: 1; width: 100%; max-width: 400px; margin-left: auto;
  border-radius: 50%; padding: 8px;
  background: conic-gradient(from 210deg, var(--mint-2), var(--green-800), var(--mint), var(--green-700), var(--mint-2));
}
.portrait-inner {
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: var(--mint); border: 4px solid var(--bg);
  display: grid; place-items: center; text-align: center; color: var(--green-700);
}
.portrait-inner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.portrait-initials { font-family: var(--serif); font-style: italic; font-size: clamp(64px, 9vw, 110px); line-height: 1; }
.portrait-badge {
  position: absolute; left: -10px; bottom: 6%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; box-shadow: var(--shadow); font-size: 14px; line-height: 1.35; color: var(--muted);
}
.portrait-badge strong { display: block; color: var(--green-900); font-size: 15px; }

/* Karty */
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 30px; box-shadow: 0 10px 30px -22px rgba(31, 74, 63, 0.4); }
.card-accent { border-top: 4px solid var(--cta); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.pillar .num { font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 12px; }
.pillar h3 { font-size: 23px; }
.pillar p:last-child { margin-bottom: 0; }
.pillar .muted { font-size: 16px; }

/* VSL úvod na landing page */
.vsl-title { font-size: clamp(25px, 3vw, 36px); line-height: 1.3; max-width: 760px; margin: 0 auto; }
.vsl-title .gold { display: block; margin-top: 10px; }
.secrets { margin-top: 36px; }
.secrets h3 { font-size: 22px; line-height: 1.3; }
.secrets .muted { font-style: italic; }

/* Fakty o programe */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.fact { text-align: center; padding: 22px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line-soft); }
.fact b { display: block; font-family: var(--serif); font-size: 26px; color: var(--green-800); line-height: 1.2; margin-bottom: 6px; }
.fact span { font-size: 15px; color: var(--muted); line-height: 1.45; display: block; }

/* Zoznamy */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 36px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); border: 1px solid var(--mint-2); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 9px; width: 8px; height: 5px; border-left: 2px solid var(--green-800); border-bottom: 2px solid var(--green-800); transform: rotate(-45deg); }
.checks-no li::before { background: rgba(181, 72, 47, 0.07); border-color: rgba(181, 72, 47, 0.3); }
.checks-no li::after { content: "×"; left: 0; top: 4px; width: 22px; height: 22px; border: 0; transform: none; text-align: center; line-height: 21px; font-size: 17px; font-weight: 700; color: var(--no); }

/* Výrok */
.statement {
  border-left: 4px solid var(--cta); padding: 8px 0 8px 26px; margin: 0;
  font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.45; color: var(--green-800);
}
.statement-by { padding-left: 30px; margin-top: 10px; }

/* Príbeh */
.story { display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: center; }
.story .portrait { max-width: 240px; margin: 0; }
.story p { font-size: 18px; }

/* Záverečný pás */
.closing { text-align: center; background: var(--green-800); color: var(--on-dark); border-radius: 24px; padding: 56px 32px; box-shadow: var(--shadow); }
.closing .eyebrow { color: var(--mint); }
.closing p.big { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 29px); line-height: 1.45; max-width: 760px; margin: 0 auto 30px; color: var(--on-dark); }
.closing .btn { background: #fff; color: var(--green-900); }
.closing .btn:hover { background: var(--mint); }

/* O Andrei */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.about .portrait { max-width: 220px; margin: 0; }
.signature { font-style: italic; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--muted); margin: 0; }
.signature strong { font-style: normal; font-weight: 800; color: var(--green-900); }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--green-900); box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--on-dark-muted); }
.play { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px; background: var(--cta); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(207, 244, 236, 0.25); }
.play::after { content: ""; border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }

/* Upozornenie */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius-sm); background: rgba(207, 244, 236, .6); border: 1px solid var(--mint-2); font-size: 15px; color: var(--green-900); text-align: left; }
.notice .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--cta); margin-top: 7px; box-shadow: 0 0 0 4px rgba(68, 151, 129, 0.22); }

/* Kroky (potvrdenie) */
.step { display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start; }
.step-num { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 26px; color: #fff; background: var(--cta); }
.step + .step { margin-top: 40px; }
.reflect { display: grid; gap: 14px; margin-top: 18px; }
.reflect div { padding: 18px 22px; border-radius: var(--radius-sm); border: 1px solid var(--line-soft); border-left: 4px solid var(--cta); background: var(--surface); font-weight: 700; font-size: 18px; }

/* Kalendár */
.calendly-box { min-width: 320px; height: 760px; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.calendly-box iframe { border: 0; }
/* Cal.com si výšku nastavuje sám podľa obsahu */
.calendly-box.cal-box { height: auto; min-height: 560px; overflow: visible; }
.calendar-slot { min-height: 420px; border-radius: var(--radius); border: 2px dashed var(--line); background: var(--surface); display: grid; place-items: center; text-align: center; padding: 30px; color: var(--muted); }

/* Odznak úspechu */
.badge-ok { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--mint); border: 1px solid var(--mint-2); color: var(--ok); font-size: 14px; font-weight: 800; margin-bottom: 22px; }
.badge-ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

/* Značka „doplniť“ – vidno, čo ešte chýba */
.placeholder-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); border: 1px dashed var(--line); padding: 3px 8px; border-radius: 6px; }

/* ---------- Modálne okno ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 45, 38, 0.6); backdrop-filter: blur(3px); }
.modal.open { display: flex; }
.modal-box { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--bg); border-top: 6px solid var(--cta); border-radius: 18px; padding: 40px 34px 32px; box-shadow: 0 30px 70px -20px rgba(20, 45, 38, 0.6); animation: pop .22s ease-out; }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: transparent; border: 0; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.modal-close:hover { color: #000; background: var(--surface-2); }
.modal h2 { font-size: 27px; }

/* ---------- Formuláre ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.input, textarea.input { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 14px 16px; transition: border-color .15s ease, box-shadow .15s ease; }
textarea.input { min-height: 130px; resize: vertical; }
.input::placeholder { color: #9aa5a1; }
.input:focus { outline: none; border-color: var(--cta); box-shadow: 0 0 0 3px rgba(68, 151, 129, 0.22); }
.form-error { color: var(--no); font-size: 14px; margin: 10px 0 0; min-height: 1em; }
.consent-note { margin: 12px 0 0; text-align: center; line-height: 1.5; }
.hp { position: absolute !important; left: -9999px !important; }

/* Dotazník */
.quiz-progress { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-bottom: 10px; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--cta); transition: width .3s ease; }
.quiz-count { font-size: 13px; font-weight: 700; color: var(--muted-2); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: pop .2s ease-out; }
.quiz-step h3 { font-family: var(--font); font-weight: 800; font-size: 20px; margin-bottom: 18px; line-height: 1.4; color: var(--text); }
.options { display: grid; gap: 10px; margin-bottom: 8px; }
.option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px; border: 1.5px solid var(--line-soft); background: #fff; cursor: pointer; transition: border-color .15s ease, background .15s ease; font-size: 16px; }
.option:hover { border-color: var(--mint-2); }
.option input { accent-color: var(--green-800); width: 18px; height: 18px; flex: none; margin: 0; }
.option:has(input:checked) { border-color: var(--cta); background: rgba(207, 244, 236, .5); }
.quiz-nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 22px; }
.quiz-nav .btn { padding: 15px 26px; font-size: 16px; }
.quiz-nav .btn-ghost { visibility: hidden; }
.quiz-nav .btn-ghost.show { visibility: visible; }

/* ---------- Právna stránka ---------- */
.legal { padding: 48px 0 64px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; color: var(--green-800); }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; padding: 20px 24px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--surface); }
.legal-dl dt { font-weight: 800; }
.legal-dl dd { margin: 0; }

/* ---------- Pätička ---------- */
footer { padding: 40px 0 48px; background: var(--green-900); font-size: 13px; color: var(--on-dark-muted); text-align: center; }
footer p { margin: 0 0 8px; }
footer a { color: var(--on-dark); }

/* ---------- Responzívne ---------- */
@media (min-width: 901px) { .hero-eyebrow { white-space: nowrap; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-grid .portrait { margin: 0 auto; max-width: 280px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .about, .story { grid-template-columns: 1fr; text-align: center; }
  .about .portrait, .story .portrait { margin: 0 auto; max-width: 200px; }
  section { padding: 46px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 32px 0 40px; }
  .btn { width: 100%; padding: 17px 22px; font-size: 16px; }
  .quiz-nav .btn { width: auto; flex: 1; }
  .card { padding: 24px 20px; }
  .closing { padding: 40px 20px; }
  .modal-box { padding: 36px 20px 24px; }
  .top-note { display: none; }
  .brand-name { font-size: 20px; }
  .portrait-badge { left: 0; }
  .step { grid-template-columns: 1fr; gap: 14px; }
  .calendly-box { height: 1000px; }
}

/* Bez animácií, ak si ich používateľ vypol */
@media (prefers-reduced-motion: reduce) { .modal-box, .quiz-step.active { animation: none; } html { scroll-behavior: auto; } }

/* Pod kalendárom: iný termín cez WhatsApp + úloha */
.after-cal { margin: 44px auto 0; max-width: 680px; }
.after-cal-title { font-size: clamp(24px, 3vw, 32px); line-height: 1.3; margin-bottom: 22px; }
.btn-stack { flex-direction: column; gap: 2px; line-height: 1.25; }
.btn-stack small { font-size: 14px; font-weight: 700; opacity: .9; }

.hero .headline + .lead { margin-top: 22px; }

/* Wistia prehrávač: výšku si určuje sám (aspect), tu len zaoblenie a tieň */
.video.video-wistia { aspect-ratio: auto; background: transparent; }
.video.video-wistia wistia-player { display: block; width: 100%; }
