/* Funnel Henrieta Remišová – INNER EVOLUTION
   Svet: „zlatá os“ – tenká zlatá línia ako vnútorný kompas, stanice na nej. Brand: Playfair Display + Open Sans. */

:root {
  --paper: #f9f7f3;
  --sand: #f3ede1;
  --sand-deep: #e9dfcc;
  --ink: #191316;
  --ink-soft: #3a3034;
  --wine: #8a2337;
  --wine-deep: #6c1a2a;
  --magenta: #e82348;
  --brown: #6b5a46;
  --gold: #c6a664;
  --gold-ink: #8c7238;
  --line: #ddd2bf;
  --white: #fffdf9;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;

  --spine-x: 22px;
  --gutter: 20px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--wine); color: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--wine-deep); }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 2px; }
html { scrollbar-color: var(--gold) var(--sand); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
.wine { color: var(--wine); }
.magenta { color: var(--magenta); }
.brown { color: var(--brown); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Hlavička ---------- */
.top { padding: 18px 0 0; }
.top .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.brand { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: .005em; }
.brand-role { font-size: 13px; color: var(--brown); line-height: 1.35; text-align: right; }

/* ---------- Zlatá os ---------- */
.axis { position: relative; padding-left: calc(var(--spine-x) + 26px); }
.axis::before,
.axis::after {
  content: "";
  position: absolute;
  left: var(--spine-x);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--gold);
}
.axis::before { opacity: .38; }
.axis::after { transform-origin: top; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .axis::after {
      animation: axis-fill linear both;
      animation-timeline: scroll(root);
    }
    @keyframes axis-fill { from { transform: scaleY(.04); } to { transform: scaleY(1); } }
  }
}
.axis > * { position: relative; }

/* body na osi */
.mark { position: absolute; left: -26px; top: .55em; width: 0; height: 0; }
.axis > .mark { left: var(--spine-x); top: 22px; }
.mark::before {
  content: "";
  position: absolute;
  left: -5.5px; top: -5.5px;
  width: 11px; height: 11px;
  background: var(--paper);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.mark-dot::before {
  left: -6px; top: -6px; width: 12px; height: 12px;
  border-radius: 50%;
  transform: none;
  background: var(--wine);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--gold);
}
.mark-gold::before { background: var(--gold); }

/* ---------- Hero ---------- */
.hero { padding: 26px 0 44px; overflow-x: clip; }
.hero-grid { display: grid; gap: 34px; }
.hero h1 { font-size: clamp(29px, 7.6vw, 54px); color: var(--ink); }
.hero h1 .wine { font-weight: 600; }
.headline { display: none; }
html[data-v="a"] .headline[data-variant="a"],
html[data-v="b"] .headline[data-variant="b"],
html[data-v="c"] .headline[data-variant="c"],
html:not([data-v]) .headline[data-variant="a"] { display: block; }
.hero-lead { font-size: 17px; color: var(--ink-soft); margin: 18px 0 24px; max-width: 34em; }
.cta-note { font-size: 13.5px; color: var(--brown); margin: 12px 0 0; }

.portrait { position: relative; margin: 0; }
.portrait::before {
  content: "";
  position: absolute;
  inset: 12% -100vw -18px 26%;
  background: var(--brown);
  z-index: 0;
}
.portrait img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; box-shadow: 0 18px 40px -22px rgba(25, 19, 22, .45); }
.portrait figcaption { position: relative; z-index: 1; margin-top: 30px; font-size: 13.5px; line-height: 1.45; color: var(--paper); padding-left: 26%; }
.portrait figcaption strong { display: block; font-family: var(--serif); font-size: 18px; font-weight: 600; }

/* ---------- Tlačidlo ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px;
  padding: 15px 26px;
  background: var(--wine);
  color: var(--paper);
  border: 0;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px -14px rgba(108, 26, 42, .8);
  transition: background-color .25s var(--ease-out), box-shadow .25s var(--ease-out), transform .25s var(--ease-out);
}
.btn:hover { background: var(--wine-deep); color: var(--paper); box-shadow: 0 14px 30px -14px rgba(108, 26, 42, .9); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--wine); box-shadow: none; border: 1px solid var(--wine); }
.btn-ghost:hover { background: var(--wine); color: var(--paper); }

/* ---------- Sekcie ---------- */
.section { padding: 56px 0; }
.section-sand { background: var(--sand); }
.section h2 { font-size: clamp(26px, 5.6vw, 40px); max-width: 21em; }
.intro { font-size: 18px; color: var(--ink-soft); max-width: 36em; margin-top: 16px; }

.stations { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 40px; }
.station { position: relative; }
.station .mark { top: .9em; }
.station-num { display: block; font-family: var(--serif); font-style: italic; font-size: 40px; line-height: 1; color: var(--wine); margin-bottom: 10px; }
.station h3 { font-size: 23px; margin-bottom: 10px; max-width: 24em; }
.station p { color: var(--ink-soft); max-width: 38em; margin: 0; }

.statement {
  font-family: var(--serif);
  font-size: clamp(24px, 5vw, 36px);
  line-height: 1.3;
  font-weight: 500;
  max-width: 24em;
  margin: 0;
}
.statement em { color: var(--wine); }

/* Hlasy klientov */
.voices { display: grid; gap: 34px; margin-top: 34px; }
.voice { margin: 0; position: relative; }
.voice blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.45; color: var(--ink); }
.voice figcaption { margin-top: 12px; font-size: 14px; color: var(--brown); }
.voice figcaption strong { color: var(--ink); font-weight: 600; }
.voice-lead blockquote { font-size: clamp(26px, 5.4vw, 38px); line-height: 1.25; font-style: normal; font-weight: 500; }
.voice-lead blockquote em { color: var(--wine); }

/* Rozhodnutie */
.decision { padding: 56px 0 72px; }
.decision .statement { margin-bottom: 26px; }
.decision-note { color: var(--brown); font-size: 15px; max-width: 34em; }

/* O Henriete */
.about { display: grid; gap: 22px; align-items: start; }
.about img { width: 128px; aspect-ratio: 1; object-fit: cover; }
.about p { color: var(--ink-soft); max-width: 38em; }
.about .sig { font-family: var(--serif); font-size: 20px; color: var(--ink); margin: 0; }

/* ---------- Pätička ---------- */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--brown); }
footer p { margin: 0 0 6px; max-width: 70em; }
footer a { color: var(--brown); }

/* ---------- Video ---------- */
.video-frame { position: relative; background: var(--ink); aspect-ratio: 16 / 9; box-shadow: 0 24px 50px -28px rgba(25, 19, 22, .6); }
.video-frame > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-wait { display: grid; place-items: center; text-align: center; color: var(--paper); padding: 20px; background: linear-gradient(rgba(25,19,22,.55), rgba(25,19,22,.75)), url("/assets/henrieta.jpg") center 22% / cover; }
.video-wait p { margin: 0; font-family: var(--serif); font-size: 20px; }
.video-wait small { display: block; margin-top: 6px; font-family: var(--sans); font-size: 13px; opacity: .85; }

/* ---------- Formuláre ---------- */
.field { margin-bottom: 16px; }
.field label, .q-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 7px; color: var(--ink); }
.input, textarea.input {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  font: 16px/1.5 var(--sans);
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cdbfa8;
  border-radius: 2px;
  transition: border-color .2s, box-shadow .2s;
  caret-color: var(--wine);
}
textarea.input { min-height: 130px; resize: vertical; }
.input::placeholder { color: #75675a; }
.input:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(138, 35, 55, .14); }
.hp { position: absolute; left: -9999px; }
.form-error { color: var(--wine); font-weight: 600; font-size: 14px; min-height: 1.2em; margin: 10px 0 0; }
.consent-note { font-size: 12.5px; color: var(--brown); margin: 12px 0 0; line-height: 1.5; }

/* Modálne okno registrácie */
.modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: flex-end; justify-content: center; background: rgba(25, 19, 22, .55); padding: 0; }
.modal.open { display: flex; animation: fade .3s var(--ease-out); }
.modal-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow: auto;
  background: var(--paper);
  padding: 30px 22px 26px;
  border-top: 3px solid var(--gold);
  animation: rise .45s var(--ease-out);
}
.modal-box h2 { font-size: 26px; margin-bottom: 8px; padding-right: 30px; }
.modal-box .sub { color: var(--ink-soft); font-size: 15px; margin-bottom: 20px; }
.modal-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--brown); }
.modal-close::before, .modal-close::after { content: ""; position: absolute; left: 13px; top: 21px; width: 18px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.modal-close::after { transform: rotate(-45deg); }
.modal-close:hover { color: var(--wine); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .modal.open, .modal-box { animation: none; } }

/* Dotazník */
.quiz { max-width: 640px; }
.quiz-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: var(--brown); margin-bottom: 10px; }
.quiz-progress { height: 2px; background: var(--line); margin-bottom: 28px; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--wine); transition: width .45s var(--ease-out); }
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fade .35s var(--ease-out); }
.q-label { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.q-help { color: var(--ink-soft); font-size: 15px; margin-bottom: 14px; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--white); border: 1px solid #cdbfa8; border-radius: 2px; cursor: pointer; font-size: 16px; transition: border-color .2s; }
.choice:hover { border-color: var(--wine); }
.choice input { accent-color: var(--wine); width: 18px; height: 18px; margin: 0; }
.choice:has(input:checked) { border-color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); }
.quiz-nav { display: flex; gap: 12px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.quiz-back { display: none; background: none; border: 0; color: var(--brown); font: 600 15px var(--sans); cursor: pointer; padding: 12px 6px; text-decoration: underline; text-underline-offset: 3px; }
.quiz-back.show { display: inline-block; }
.quiz-back:hover { color: var(--wine); }

/* Kalendár */
.calendar-box { background: var(--white); border-top: 3px solid var(--gold); min-height: 680px; }
.calendar-wait { padding: 34px 24px; text-align: left; }
.calendar-wait h2 { font-size: 24px; margin-bottom: 10px; }

/* Úloha */
.task { counter-reset: q; list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.task li { position: relative; padding-left: 46px; font-family: var(--serif); font-size: 21px; line-height: 1.4; }
.task li::before { counter-increment: q; content: counter(q); position: absolute; left: 0; top: -2px; font-style: italic; font-size: 30px; color: var(--wine); }

/* Text (GDPR) */
.prose { max-width: 70ch; }
.prose h1 { font-size: clamp(30px, 6vw, 44px); margin-bottom: 22px; }
.prose h2 { font-size: 22px; margin: 34px 0 10px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
  :root { --spine-x: 34px; --gutter: 32px; }
  .axis { padding-left: calc(var(--spine-x) + 44px); }
  .mark { left: -44px; }
  .axis > .mark { left: var(--spine-x); top: 30px; }
  .hero { padding: 54px 0 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: center; }
  .hero-lead { font-size: 18.5px; }
  .section { padding: 92px 0; }
  .stations { gap: 54px; }
  .station h3 { font-size: 27px; }
  .voices { grid-template-columns: 1fr 1fr; gap: 44px 56px; }
  .voice-lead { grid-column: 1 / -1; }
  .about { grid-template-columns: 160px 1fr; gap: 34px; }
  .about img { width: 160px; }
  .modal { align-items: center; padding: 24px; }
  .modal-box { padding: 40px 36px 32px; }
  .decision { padding: 92px 0 110px; }
}
@media (min-width: 1100px) {
  .portrait::before { right: -60px; }
}
