/* ==========================================================================
   SATORI – záclony a závesy na mieru
   One-page podľa návrhu „PC – hlavná verzia“; mobil = rovnaký obsah pod sebou.
   Písané mobile-first: základ bez media query, zlomy 640 / 768 / 1024 px.
   ========================================================================== */

:root {
  /* Farby */
  --bg: #efe9e3;          /* béžové pozadie sekcií */
  --white: #ffffff;
  --ink: #1f1b18;         /* text, obrysy tlačidiel a kariet */
  --ink-soft: #4a433d;    /* sekundárny text */
  --muted: #7a7068;       /* tlmený text */
  --line: #ddd5cc;        /* tenké oddeľovacie linky */
  --gold: #e8b23c;        /* tlačidlá, linky, krúžky osi */
  --gold-hover: #d9a22c;
  --gold-dark: #8a6514;   /* malé nadtitulky, zvýraznený text */
  --ph: #d9d0c6;          /* sivý rámček namiesto fotky */
  --danger: #b3261e;
  --danger-soft: #fbe9e7;

  /* Písmo */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-2xs: 11px;
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-nav: 15px;
  --fs-base: 16px;
  --fs-lg: 18px;
  --fs-xl: 20px;
  --fs-2xl: 22px;
  --fs-3xl: 24px;
  --fs-4xl: 28px;
  --fs-5xl: 32px;
  --fs-h2: clamp(30px, 3.4vw, 42px);
  --fs-h1: clamp(38px, 4.6vw, 56px);
  --fs-stat: clamp(56px, 6vw, 72px);

  /* Odstupy (4 px mriežka) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-9: 36px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;

  /* Tvar a tiene */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --shadow-sm: 0 6px 18px rgba(31, 27, 24, .08);
  --shadow: 0 14px 30px rgba(31, 27, 24, .10);
  --shadow-lg: 0 18px 50px rgba(31, 27, 24, .25);

  /* Rozloženie */
  --header-h: 64px;
  --pad: var(--sp-5);   /* okraje stránky */
  --wide: 1400px;       /* hlavička, hero */
  --content: 920px;     /* obsah sekcií – podľa návrhu */

  /* Ochranná zóna medzi ozdobnými stehmi po okrajoch a textom */
  --stitch-safe: 50px;

  /* Zlatý steh pod hero fotkou: rozmer SVG a poloha rohu fotky v ňom */
  --thread-w: 1440px;
  --thread-h: 820px;
  --thread-x: 720px;
  --thread-y: 440px;


  --section-y: var(--sp-16);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; } /* plynulé skrolovanie rieši JS (s odsadením pod hlavičku) */
[hidden] { display: none !important; }

/* Prilepená hlavička: nadpis sekcie sa nesmie schovať pod ňu */
section[id] { scroll-margin-top: calc(var(--header-h) + var(--sp-3)); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; }
/* Sekcia, na ktorú skočí menu, dostane fokus kvôli čítačkám obrazovky – rámik okolo celej sekcie netreba */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--white); padding: var(--sp-3) var(--sp-4); z-index: 200;
}
.skip-link:focus { left: var(--sp-3); top: var(--sp-3); }

/* ---------- Rozloženie ---------- */
.section { padding-block: var(--section-y); }
.section--white { background: var(--white); }
.section--flush-top { padding-top: 0; }   /* pokračuje na rovnakom pozadí ako predchádzajúca */
.wrap { max-width: calc(var(--content) + 2 * var(--pad)); margin: 0 auto; padding-inline: var(--pad); }

/* Hlavička sekcie: nadtitulok → H2 → zlatá linka → podnadpis */
.section-head { text-align: center; margin-bottom: var(--sp-8); }
.eyebrow {
  display: block;
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--sp-3);
}
.section-head h1, .section-head h2 { font-size: var(--fs-h2); }
.section-head h1::after, .section-head h2::after {
  content: ""; display: block; width: 40px; height: 2px;
  background: var(--gold); margin: var(--sp-4) auto 0;
}
.section-head p { color: var(--ink-soft); margin: var(--sp-4) auto 0; max-width: 560px; }
.section-head .section-head__wide { max-width: 640px; }
.section-head--small { margin-top: var(--sp-10); margin-bottom: var(--sp-6); }
.section-head__h3 { font-size: var(--fs-4xl); }

/* ---------- Tlačidlá, odkazy, štítky ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 44px;
  padding: var(--sp-2) var(--sp-6);
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-sm);
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--ink); }
.btn--sm { min-height: 36px; padding: var(--sp-1) var(--sp-4); font-size: var(--fs-xs); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .7; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-8); }

.strong { font-weight: 700; text-decoration: none; }
.strong:hover { text-decoration: underline; }

/* Štítok na fotke („+ 3 fotky“, „+ koľajnica“) */
.tag {
  position: absolute; right: var(--sp-2); bottom: var(--sp-2); z-index: 3;
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-pill); padding: 2px var(--sp-2);
  font-family: var(--sans); font-size: var(--fs-2xs); font-weight: 600; line-height: 1.6;
}

/* Biela karta s odkazom (Napíšte nám →, Instagram, Nenašli ste odpoveď?) */
.link-card {
  display: table; margin: var(--sp-8) auto 0; text-align: center; text-decoration: none;
  background: var(--white); border-radius: var(--radius); padding: var(--sp-5) var(--sp-8);
  font-family: var(--serif); font-size: var(--fs-xl); line-height: 1.3; color: var(--ink);
  transition: transform .3s, box-shadow .3s;
}
.link-card small { display: block; margin-top: var(--sp-1); font-family: var(--sans); font-size: var(--fs-xs); color: var(--ink-soft); }
.link-card--small small { font-weight: 600; color: var(--ink); }

/* ---------- Sivý rámček namiesto fotky (fotka sa vloží ako <img> dovnútra) ---------- */
.ph {
  position: relative;
  background: var(--ph);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: var(--fs-xs); text-align: center; padding: var(--sp-3);
}
.ph::before { content: attr(data-label); }
.ph img, .ph video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph:has(img)::before, .ph:has(video)::before { content: none; }

/* ==========================================================================
   0 · HLAVIČKA
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header__inner {
  height: 100%;
  max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6);
}
.logo {
  font-family: var(--serif);
  font-size: var(--fs-4xl);
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--ink);
}
.main-nav { display: none; }
.header-cta { display: none; }

.menu-toggle {
  width: 48px; height: 48px; margin-right: calc(-1 * var(--sp-3));
  border: 0; background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink);
  position: relative; transition: transform .2s, background .2s;
}
.menu-toggle span::before { position: absolute; top: -7px; }
.menu-toggle span::after { position: absolute; top: 7px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* Otvorené menu (mobil) – cez celú obrazovku */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--white);
  display: flex; flex-direction: column;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.menu-open { overflow: hidden; }
.mobile-menu ul { list-style: none; margin: 0; padding: var(--sp-4) var(--pad); }
.mobile-menu li + li { border-top: 1px solid var(--line); }
.mobile-menu ul a {
  display: block; padding: var(--sp-4) 0; text-align: center;
  font-family: var(--serif); font-size: var(--fs-2xl); text-decoration: none;
}
.mobile-menu__bottom { padding: var(--sp-6) var(--pad) var(--sp-8); text-align: center; }

/* ==========================================================================
   1 · HERO – vľavo text na béžovej, vpravo fotka
   ========================================================================== */
.hero { display: flex; flex-direction: column-reverse; background: var(--bg); }
.hero__content { padding: var(--sp-10) var(--pad) var(--sp-12); }
.hero__kicker { font-family: var(--serif); font-size: var(--fs-lg); color: var(--gold-dark); margin: 0 0 var(--sp-3); }
.hero h1 { font-size: var(--fs-h1); line-height: 1.1; max-width: 9.5em; }   /* zalomenie ako v návrhu: „…závesy / šijeme na mieru“ */
.hero__lead { color: var(--ink-soft); margin: var(--sp-4) 0 var(--sp-6); max-width: 480px; }
.hero__media { aspect-ratio: 4 / 3; border-radius: 0; }
.hero__thread { display: none; }

/* ==========================================================================
   2 · MY V ČÍSLACH
   ========================================================================== */
.stats { display: grid; max-width: 860px; margin: 0 auto; }
.stat { text-align: center; padding: var(--sp-6) var(--sp-4); display: flex; flex-direction: column; align-items: center; }
.stat + .stat { border-top: 1px solid var(--gold); }
.stat__num { font-family: var(--serif); font-size: var(--fs-stat); line-height: 1; color: var(--ink); text-decoration: none; }
.stat__label { margin-top: var(--sp-3); font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.stat__sub { color: var(--ink-soft); font-size: var(--fs-xs); margin: var(--sp-1) 0 var(--sp-4); }
.stars { color: var(--gold); letter-spacing: 2px; }

/* ==========================================================================
   3 · ŠITIE NA MIERU – „Dá sa to aj inak“
   ========================================================================== */
.reality { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.reality__bar { width: 2px; height: 20px; background: var(--gold); }
.reality__a { margin: 0; font-family: var(--serif); font-size: var(--fs-3xl); line-height: 1.2; }
.reality__list { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; }
.reality__list li {
  display: grid; grid-template-columns: 1fr auto 1.15fr; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) 0;
}
.reality__list li + li { border-top: 1px solid var(--line); }
.reality__problem { text-align: right; font-size: var(--fs-xs); color: var(--muted); text-decoration: line-through; }
.reality__arrow { color: var(--gold); font-size: var(--fs-xl); line-height: 1; }
.reality__solution { font-family: var(--serif); font-size: var(--fs-lg); line-height: 1.3; }

/* ==========================================================================
   4 · NAŠA ŠPECIALIZÁCIA
   ========================================================================== */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6) var(--sp-4); }
.spec { text-align: center; }
.spec__btn { all: unset; display: block; width: 100%; cursor: pointer; border-radius: var(--radius); }
.spec__btn:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; }
.spec__img { aspect-ratio: 4 / 5; }
.spec h3 { font-size: var(--fs-xl); margin-top: var(--sp-3); }
.spec p { margin: var(--sp-1) 0 0; font-size: var(--fs-xs); color: var(--ink-soft); line-height: 1.5; }

.feature {
  display: grid; margin-top: var(--sp-8);
  background: var(--white); border-radius: var(--radius); overflow: hidden;
}
.feature__media { border-radius: 0; }
.feature__img { aspect-ratio: 4 / 3; height: 100%; border-radius: 0; }
.feature__body { padding: var(--sp-8) var(--sp-6); align-self: center; }
.feature h3 { font-size: var(--fs-4xl); }
.feature p { margin: var(--sp-3) 0 var(--sp-5); color: var(--ink-soft); font-size: var(--fs-sm); }

/* ==========================================================================
   5 · AKO TO PREBIEHA – časová os
   ========================================================================== */
.timeline { position: relative; max-width: 680px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 19px; width: 1.5px;
  background: var(--ink); transform-origin: top;
}
.tl-phase {
  position: relative; z-index: 1;
  display: table; margin: var(--sp-6) 0 var(--sp-5) 0;
  background: var(--bg); border: 1.5px solid var(--ink); border-radius: var(--radius-pill);
  padding: var(--sp-2) var(--sp-6); text-align: center;
}
.tl-phase:first-child { margin-top: 0; }
.tl-phase small { display: block; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.tl-phase strong { display: block; font-family: var(--serif); font-weight: 400; font-size: var(--fs-xl); line-height: 1.3; }

.tl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.tl-step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: var(--sp-4); align-items: center; }
.tl-dot {
  position: relative; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: var(--fs-lg);
}
.tl-card { background: var(--white); border-radius: var(--radius-sm); padding: var(--sp-4) var(--sp-5); }
.tl-card h3 { font-family: var(--sans); font-weight: 700; font-size: var(--fs-sm); line-height: 1.4; }
.tl-card p { margin: var(--sp-1) 0 0; font-size: var(--fs-xs); color: var(--ink-soft); line-height: 1.5; }

/* ==========================================================================
   6 · REALIZÁCIE
   ========================================================================== */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6) var(--sp-4); }
.work { margin: 0; }
.work__btn { all: unset; display: block; width: 100%; cursor: pointer; border-radius: var(--radius); }
.work__btn:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; }
.work__img { aspect-ratio: 4 / 5; }
.work__cat { display: block; margin-top: var(--sp-3); font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); }
.work h3 { font-size: var(--fs-lg); margin-top: var(--sp-1); }
.work p { margin: var(--sp-1) 0 0; font-size: var(--fs-xs); color: var(--ink-soft); line-height: 1.5; }

/* ==========================================================================
   7 · CENNÍK
   ========================================================================== */
.example { display: grid; gap: var(--sp-6); align-items: center; }
.example__figure { margin: 0; }
.example__img { aspect-ratio: 4 / 3; }
.example__figure figcaption { margin-top: var(--sp-2); font-size: var(--fs-2xs); color: var(--ink-soft); text-align: center; }
.example__variants { display: grid; gap: var(--sp-3); }
.example__spec { margin: 0 0 var(--sp-2); text-align: center; font-size: var(--fs-xs); font-weight: 700; line-height: 1.5; }
.variant {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  background: var(--white); border: 1px solid var(--ink); border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4);
}
.variant--main { border-width: 2px; }
.variant h4 { font-family: var(--sans); font-weight: 600; font-size: var(--fs-sm); line-height: 1.4; }
.variant p { margin: 2px 0 0; font-size: var(--fs-2xs); color: var(--ink-soft); line-height: 1.5; }
.variant .variant__note { margin-top: var(--sp-1); color: var(--gold-dark); font-weight: 600; font-size: var(--fs-2xs); }
.variant__price { font-family: var(--serif); font-size: var(--fs-3xl); white-space: nowrap; }
.example__disclaimer { margin: var(--sp-4) 0 0; text-align: center; font-size: var(--fs-2xs); color: var(--ink-soft); }

/* ==========================================================================
   8 · ČASTÉ OTÁZKY – akordeón v dvoch stĺpcoch
   ========================================================================== */
.faq { display: grid; gap: var(--sp-4); max-width: 840px; margin: 0 auto; align-items: start; }
.faq__col { background: var(--white); border-radius: var(--radius); overflow: hidden; }
.faq__item + .faq__item { border-top: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  font-weight: 600; font-size: var(--fs-sm); line-height: 1.45;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: 0 0 auto; font-size: var(--fs-xl); font-weight: 400; line-height: 1; }
.faq__item[open] summary::after { content: "−"; }
.faq__item summary:hover { color: var(--gold-dark); }
.faq__answer { padding: 0 var(--sp-5) var(--sp-5); }
.faq__answer p { margin: 0 0 var(--sp-3); font-size: var(--fs-sm); color: var(--ink-soft); }

/* ==========================================================================
   9 · KONTAKT
   ========================================================================== */
.contact-cards { display: grid; gap: var(--sp-4); }
.contact-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 136px; text-align: center;
  background: var(--white); border-radius: var(--radius); padding: var(--sp-5);
}
.contact-card small { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.contact-card__value { font-family: var(--serif); font-size: var(--fs-3xl); line-height: 1.2; text-decoration: none; overflow-wrap: anywhere; }
.contact-card__value:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-card--main { background: var(--gold); }
.contact-card--main small { color: var(--ink); }

/* ==========================================================================
   10 · PREDAJŇA
   ========================================================================== */
.shop { display: grid; gap: var(--sp-6); align-items: start; }
.shop__figure { margin: 0; }
.shop__photo { aspect-ratio: 3 / 4; }
.shop__figure figcaption { margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--ink-soft); text-align: center; }
.shop__card { display: grid; gap: var(--sp-5); justify-items: start; background: var(--white); border-radius: var(--radius); padding: var(--sp-6); }
.shop__block small { display: block; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: var(--sp-2); }
.shop__block p { margin: var(--sp-1) 0 0; font-size: var(--fs-sm); color: var(--ink-soft); }
.shop__block .shop__big { margin: 0; font-family: var(--serif); font-size: var(--fs-2xl); line-height: 1.3; color: var(--ink); }
.shop__block .shop__hours { color: var(--ink); }
.shop__billing { width: 100%; border-top: 1px solid var(--line); padding-top: var(--sp-5); }
.shop__billing p { font-size: var(--fs-xs); line-height: 1.7; color: var(--ink); }
.map { margin-top: var(--sp-8); aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ph); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ==========================================================================
   11 · FORMULÁR
   ========================================================================== */
.form-card {
  display: grid; gap: var(--sp-6);
  max-width: 820px; margin: 0 auto;
  background: var(--white); border-radius: var(--radius); padding: var(--sp-8) var(--sp-6);
}
/* Obšitá karta: zlatý steh presne na okraji bielej karty (rovnaká niť ako v hero a po okrajoch).
   Rozmery obdĺžnika rieši CSS (calc), takže steh sedí pri každej veľkosti karty. */
.form-card { position: relative; }
.form-card > * { position: relative; z-index: 1; }
.form-card > .form-card__stitch {
  position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: visible;
}
.form-card__stitch rect {
  x: 0; y: 0; width: 100%; height: 100%; rx: var(--radius);
  fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-dasharray: 10 7; stroke-linecap: round; opacity: .85;
}
.form-card__intro h2 { font-size: var(--fs-5xl); }
.form-card__intro h2::after { content: ""; display: block; width: 40px; height: 2px; background: var(--gold); margin-top: var(--sp-3); }
.form-card__intro p { margin: var(--sp-4) 0 0; color: var(--ink-soft); font-size: var(--fs-sm); }

.form-alert { background: var(--danger-soft); color: var(--danger); border-radius: var(--radius-sm); padding: var(--sp-3) var(--sp-4); margin: 0 0 var(--sp-4); font-size: var(--fs-sm); font-weight: 600; }
.form { display: grid; gap: var(--sp-4); }
.field label, .field__label { display: block; font-size: var(--fs-xs); font-weight: 600; margin-bottom: var(--sp-1); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%; border: 1.5px solid transparent; border-radius: var(--radius-sm);
  background: var(--bg); padding: var(--sp-2) var(--sp-3); font: inherit; font-size: var(--fs-base); color: var(--ink);
  min-height: 44px;
  transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-dark); background: var(--white); }
.field--error input, .field--error textarea { border-color: var(--danger); }
.field__error { display: none; color: var(--danger); font-size: var(--fs-xs); margin-top: var(--sp-1); }
.field__error::before { content: "! "; font-weight: 700; }
.field--error .field__error { display: block; }

.upload {
  position: relative; display: block;
  border: 1.5px dashed var(--muted); border-radius: var(--radius-sm);
  background: var(--bg); padding: var(--sp-4); text-align: center; font-size: var(--fs-xs); color: var(--ink-soft);
  transition: border-color .2s, background .2s;
}
.upload:hover { border-color: var(--gold-dark); }
.upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload:focus-within { border-color: var(--gold-dark); border-style: solid; }
.upload.is-drag { border-color: var(--gold); background: var(--white); }
.upload__name { display: block; color: var(--ink); font-weight: 600; margin-top: var(--sp-1); }
.upload__name:empty { display: none; }
.field--error .upload { border-color: var(--danger); }

.field .check { display: flex; gap: var(--sp-3); align-items: center; font-size: var(--fs-xs); font-weight: 400; margin: 0; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); flex: 0 0 auto; }
.form__submit .btn { padding-inline: var(--sp-8); }
.hp { position: absolute; left: -9999px; }

/* ==========================================================================
   PÄTIČKA
   ========================================================================== */
.site-footer { background: var(--white); padding: var(--sp-12) var(--pad) var(--sp-6); text-align: center; }
.site-footer--beige { background: var(--bg); border-top: 1px solid var(--line); }
.site-footer__inner { max-width: var(--content); margin: 0 auto; display: grid; gap: var(--sp-8); }
.footer-brand .logo { font-size: var(--fs-5xl); }
.footer-brand p { font-family: var(--serif); font-size: var(--fs-sm); margin: var(--sp-2) 0 var(--sp-4); }
.socials { display: flex; justify-content: center; gap: var(--sp-2); }
.socials a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-2xs); font-weight: 600; text-decoration: none; transition: background .2s, color .2s;
}
.socials a:hover { background: var(--ink); color: var(--white); }
.footer-col h2 { font-size: var(--fs-xl); margin-bottom: var(--sp-3); }
.footer-col p { margin: 0 0 var(--sp-2); font-size: var(--fs-xs); color: var(--ink-soft); line-height: 1.6; }
.footer-col p .strong { color: var(--ink); font-size: var(--fs-sm); }
.footer-col ul { list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); }
.footer-col li { margin: 0 0 var(--sp-2); }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.copyright { margin: 0; border-top: 1px solid var(--line); padding-top: var(--sp-5); font-size: var(--fs-2xs); color: var(--ink-soft); text-align: center; }
.link-btn { all: unset; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; }

/* ==========================================================================
   ĎAKOVNÁ STRÁNKA
   ========================================================================== */
.thanks .section-head p { max-width: 640px; }
.thanks__next { margin-top: var(--sp-12); margin-bottom: 0; }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(20, 17, 15, .94);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--sp-16) var(--sp-3) var(--sp-5);
}
.lightbox__stage { width: 100%; max-width: 1000px; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.lightbox__stage .ph, .lightbox__stage img { width: 100%; max-height: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.lightbox__stage img { user-select: none; -webkit-user-drag: none; }
.lightbox__caption { color: var(--white); text-align: center; margin-top: var(--sp-3); font-size: var(--fs-sm); }
.lightbox__caption strong { font-family: var(--serif); font-weight: 400; font-size: var(--fs-xl); display: block; }
.lightbox__close, .lightbox__nav {
  position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: var(--white);
  width: 48px; height: 48px; border-radius: 50%; font-size: var(--fs-2xl); line-height: 1;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .24); }
.lightbox__close { top: var(--sp-3); right: var(--sp-3); }
.lightbox__nav--prev { left: var(--sp-3); top: 50%; }
.lightbox__nav--next { right: var(--sp-3); top: 50%; }

/* ==========================================================================
   ≥ 640 px
   ========================================================================== */
@media (min-width: 640px) {
  .form { grid-template-columns: 1fr 1fr; gap: var(--sp-4) var(--sp-3); }
  .form .field--full, .form .form__submit { grid-column: 1 / -1; }
  .reality__problem { font-size: var(--fs-sm); }
  .reality__solution { font-size: var(--fs-xl); }
}

/* ==========================================================================
   ≥ 768 px
   ========================================================================== */
@media (min-width: 768px) {
  :root { --pad: var(--sp-9); --header-h: 72px; --section-y: var(--sp-20); }

  /* Hero: dva stĺpce, fotka siaha po pravý okraj okna */
  .hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 500px; }
  .hero__content {
    align-self: center;
    padding: var(--sp-12) var(--sp-10) var(--sp-12) max(var(--pad), calc((100vw - var(--wide)) / 2 + var(--pad)));
  }
  .hero__media { aspect-ratio: auto; height: 100%; }

  /* Fotka nekončí „useknutá“: zaoblený ľavý spodný roh a zlatý steh (niť). Vychádza
     spod fotky vpravo, prevísa, ide popod fotku, okolo rohu hore k nadpisu a potom doľava
     nadol do sekcie „My v číslach“, kde sa stráca. SVG .hero__thread má pevnú veľkosť
     a jeho bod (720, 440) sedí vždy na rohu fotky (stred šírky, --sp-20 nad spodkom hero).
     Čo presahuje do strán, orezáva overflow-x: clip. */
  .hero { position: relative; isolation: isolate; padding-bottom: var(--sp-20); overflow-x: clip; }
  .hero__media { border-bottom-left-radius: var(--radius-lg); }
  .hero__thread {
    display: block; position: absolute; z-index: -1; pointer-events: none;
    width: var(--thread-w); height: var(--thread-h);
    left: calc(50% - var(--thread-x));
    top: calc(100% - var(--sp-20) - var(--thread-y));
  }

  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: var(--sp-2) var(--sp-6); }
  .stat + .stat { border-top: 0; border-left: 1px solid var(--gold); }

  .spec-grid { grid-template-columns: repeat(4, 1fr); }

  .feature { grid-template-columns: 1.1fr 1fr; }
  .feature__body { padding: var(--sp-8) var(--sp-9); }
  .feature__img { aspect-ratio: auto; min-height: 340px; }

  .gallery { grid-template-columns: repeat(4, 1fr); gap: var(--sp-8) var(--sp-5); }

  /* Obrázok má výšku pravého stĺpca: parametre sú hore pri hornej hrane obrázka,
     karty s cenou dole pri spodnej hrane. Popis obrázka visí pod ním mimo zarovnania. */
  .example { grid-template-columns: 1fr 1.1fr; gap: var(--sp-9); align-items: stretch; margin-bottom: var(--sp-8); }
  .example__figure { position: relative; display: flex; }
  .example__img { flex: 1; aspect-ratio: auto; min-height: 280px; }
  .example__figure figcaption { position: absolute; top: 100%; left: 0; right: 0; }
  .example__variants { display: flex; flex-direction: column; gap: var(--sp-3); }
  .example__spec { margin-bottom: auto; padding-bottom: var(--sp-2); }

  .faq { grid-template-columns: 1fr 1fr; }

  .contact-cards { grid-template-columns: repeat(3, 1fr); }

  .shop { grid-template-columns: 1fr 1.1fr; }

  .form-card { grid-template-columns: 1fr 1.3fr; gap: var(--sp-9); padding: var(--sp-10); }

  /* Časová os: linka v strede, kroky striedavo vľavo a vpravo */
  .timeline::before { left: 50%; margin-left: -.75px; }
  .tl-phase { margin: var(--sp-6) auto var(--sp-5); }
  .tl-step { grid-template-columns: 1fr 40px 1fr; gap: var(--sp-3); }
  .tl-step .tl-dot { grid-column: 2; grid-row: 1; }
  .tl-step .tl-card { grid-column: 1; grid-row: 1; text-align: right; }
  .tl-step--right .tl-card { grid-column: 3; text-align: left; }
}

/* ==========================================================================
   ≥ 1024 px – desktop
   ========================================================================== */
@media (min-width: 1024px) {
  .hero { min-height: 520px; }

  .site-footer { text-align: left; }
  .site-footer__inner { grid-template-columns: 1.5fr 1.1fr 1.1fr .8fr; gap: var(--sp-8); }
  .socials { justify-content: flex-start; }
  .copyright { grid-column: 1 / -1; }
}

/* ==========================================================================
   ≥ 1200 px – plné menu (6 položiek sa pod touto šírkou zalamuje, preto do 1200 px hamburger)
   ========================================================================== */
@media (min-width: 1200px) {
  .menu-toggle, .mobile-menu { display: none; }
  .main-nav { display: block; }
  .main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--sp-6); }
  .main-nav a { display: block; white-space: nowrap; text-decoration: none; font-weight: 500; font-size: var(--fs-sm); padding: var(--sp-2) 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
  .main-nav a:hover, .main-nav a.is-active { border-bottom-color: var(--gold); }
  .header-cta { display: inline-flex; }
}

/* ==========================================================================
   ANIMÁCIE – odhalenie pri skrolovaní, odlesky, hover
   ========================================================================== */

/* Odhalenie: prvky vplávajú zdola (trieda .reveal sa pridá až cez JS) */
.reveal:not(.is-visible) { opacity: 0; }
.reveal.is-visible { animation: reveal-in .85s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms) backwards; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Zlatá linka pod nadpisom sa „roztiahne“ */
.section-head.reveal h2::after { transform: scaleX(0); transition: transform .9s cubic-bezier(.2, .7, .2, 1) .3s; }
.section-head.is-visible h2::after { transform: scaleX(1); }

/* Časová os: linka sa „nakreslí“ zhora nadol, krúžky „vyskočia“ */
.timeline.reveal:not(.is-visible) { opacity: 1; }
.timeline.reveal.is-visible { animation: none; }
.timeline.reveal::before { transform: scaleY(0); transition: transform 2.4s cubic-bezier(.3, .6, .3, 1) .2s; }
.timeline.is-visible::before { transform: scaleY(1); }
.tl-step.reveal .tl-dot { transform: scale(.4); transition: transform .6s cubic-bezier(.3, 1.6, .5, 1) calc(var(--d, 0ms) + 150ms); }
.tl-step.is-visible .tl-dot { transform: none; }

/* Odlesk – svetelný pás prejde cez fotku alebo kartu */
.spec__img, .feature__img, .work__img, .variant, .contact-card, .shop__card, .shine {
  position: relative; overflow: hidden; isolation: isolate;
}
.spec__img::after, .feature__img::after, .work__img::after, .variant::after,
.contact-card::after, .shop__card::after, .shine::after {
  content: ""; position: absolute; z-index: 2; pointer-events: none;
  top: -50%; bottom: -50%; left: -60%; width: 45%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-120%) skewX(-18deg);
}
@media (hover: hover) {
  .spec__btn:hover .spec__img::after, .feature:hover .feature__img::after, .work__btn:hover .work__img::after,
  .variant:hover::after, .contact-card:hover::after, .shop__card:hover::after, .shine:hover::after {
    animation: shine 1s cubic-bezier(.3, .6, .3, 1);
  }
}
/* na dotykových zariadeniach raz pri zobrazení */
@media (hover: none) {
  .spec.is-visible .spec__img::after, .work.is-visible .work__img::after,
  .variant.is-visible::after, .contact-card.is-visible::after {
    animation: shine 1.2s cubic-bezier(.3, .6, .3, 1) calc(var(--d, 0ms) + 450ms) 1 both;
  }
}
/* zlaté tlačidlo v hlavičke – občasný odlesk */
.btn--gold.shine::after { animation: shine-loop 5s ease-in-out 2.5s infinite; }
@keyframes shine { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(420%) skewX(-18deg); } }
@keyframes shine-loop {
  0% { transform: translateX(-120%) skewX(-18deg); }
  25%, 100% { transform: translateX(420%) skewX(-18deg); }
}

/* Karty – tieň len pri hoveri, jemné nadvihnutie a zoom fotky */
.spec__img, .work__img { transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s; }
.spec__img img, .work__img img, .feature__img img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.variant, .contact-card, .shop__card, .tl-card { transition: transform .35s, box-shadow .35s; }
@media (hover: hover) {
  .spec__btn:hover .spec__img, .work__btn:hover .work__img { transform: translateY(-4px); box-shadow: var(--shadow); }
  .spec__btn:hover .spec__img img, .work__btn:hover .work__img img, .feature:hover .feature__img img { transform: scale(1.05); }
  .variant:hover, .contact-card:hover, .shop__card:hover, .tl-card:hover, .link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .btn:hover { transform: translateY(-1px); }
}

/* Hero – pomalé priblíženie fotky */
.hero__media img { animation: hero-zoom 14s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ==========================================================================
   STEHY PO OKRAJOCH – jemná zlatá niť, ktorá sa raz ukáže vpravo, raz vľavo
   Stehy vytvára main.js pri každom načítaní náhodne a rovnomerne po celej
   stránke (strana, výška, medzery, tvar). Šírka je obmedzená tak, aby steh vždy ostal aspoň --stitch-safe (50 px)
   od textu – čo sa nezmestí, odreže okraj okna. Len od 1200 px.
   ========================================================================== */
.stitch { display: none; }
@media (min-width: 1200px) {
  main.has-stitch { position: relative; overflow-x: clip; }
  .stitch {
    display: block; position: absolute; z-index: 0; pointer-events: none; overflow: hidden;
    max-width: calc((100% - var(--content)) / 2 - var(--stitch-safe));
  }
  .stitch svg { position: absolute; top: 0; right: 0; display: block; overflow: visible; }
  .stitch path { fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-dasharray: 10 7; stroke-linecap: round; opacity: .8; }
  .stitch--r { right: 0; }
  .stitch--l { left: 0; transform: scaleX(-1); }
}

/* Používateľ nechce animácie */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal:not(.is-visible) { opacity: 1; }
  .timeline.reveal::before { transform: none; }
  .tl-step.reveal .tl-dot { transform: none; }
  .section-head.reveal h2::after { transform: none; }
}
