@charset "UTF-8";
/* ==========================================================================
   pour-feliciter.eu — designový systém
   Jeden stylesheet pro celý web. Bez frameworků, bez závislostí.
   Sekce: 1 tokeny · 2 reset · 3 typografie · 4 layout · 5 komponenty
          6 hero · 7 sekce · 8 animace · 9 reduced-motion · 10 print
   ========================================================================== */

/* ---------- 1. TOKENY ---------------------------------------------------- */
:root {
  /* Barvy — základ */
  --bg:            #070a09;
  --bg-elev:       #0b1110;
  --bg-deep:       #040706;

  /* Barvy — text (kontrast ověřen na --bg) */
  --text:          #e9efec;   /* 15.8:1 */
  --text-2:        #a7b4af;   /*  8.3:1 */
  --text-3:        #869691;   /*  5.6:1 */

  /* Barvy — akcent (odpovídá značce MarekStejskal.cz) */
  --green:         #5ebb32;   /* primární brand */
  --green-lift:    #86d95c;   /* světlejší, pro drobný text */
  --green-deep:    #34811c;   /* brand tmavý */
  --teal:          #35d6b0;   /* technologický protipól */
  --warm:          #e6b98a;   /* teplý protiváha, velmi sporadicky */

  /* Plochy a linky */
  --line:          rgba(233, 239, 236, .10);
  --line-strong:   rgba(233, 239, 236, .18);
  --surface:       rgba(233, 239, 236, .035);
  --surface-hover: rgba(233, 239, 236, .06);

  /* Spacing scale (jediná stupnice pro celý web) */
  --s-1: .25rem;  --s-2: .5rem;   --s-3: .75rem;  --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;    --s-10: 8rem;   --s-11: 10rem;

  /* Rytmus sekcí */
  --section-y: clamp(4.5rem, 11vw, 10rem);

  /* Radiusy */
  --r-sm:   .5rem;
  --r:      .875rem;
  --r-lg:   1.375rem;
  --r-full: 999px;

  /* Šířky */
  --wrap:      75rem;   /* 1200px */
  --wrap-slim: 46rem;   /* 736px  */
  --measure:   62ch;    /* max. délka řádku pro čitelnost */

  /* Typografie — systémové fonty (nula requestů, plná diakritika) */
  --font: "Segoe UI Variable Display", -apple-system, BlinkMacSystemFont,
          "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Typografická stupnice — fluidní přes clamp()
     41vw drží „2027“ dominantní i na 320px displeji (přes 80 % šířky obsahu).
     Strop 30rem je odvozený od šířky obsahu při maximálním --wrap: číslo tak
     zabírá ~86 % a nezůstává vpravo prázdná třetina. Výš už jít nelze, jinak
     se na 900px vysokém okně vytlačí CTA pod ohyb. */
  --t-display: clamp(6.5rem, 41vw, 30rem);
  --t-pf:      clamp(1.375rem, 5.5vw, 2.75rem);
  --t-h2:      clamp(1.75rem, 1.4rem + 2.2vw, 3.25rem);
  --t-h3:      clamp(1.0625rem, 1rem + .35vw, 1.3125rem);
  --t-lead:    clamp(1.0625rem, 1rem + .55vw, 1.375rem);
  --t-body:    clamp(1rem, .96rem + .25vw, 1.125rem);
  --t-small:   .875rem;
  /* 13px, ne 12 — jde o prostrkaný kapitálkový text (eyebrow, výčet služeb)
     a na telefonu byl na hranici čitelnosti. */
  --t-micro:   .8125rem;

  /* Pohyb */
  --ease:      cubic-bezier(.22, .61, .36, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --dur:       .55s;
  --dur-fast:  .22s;

  color-scheme: dark;
}

/* ---------- 2. RESET ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.7;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Pojistka proti horizontálnímu scrollu z dekorativních prvků */
  overflow-x: clip;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* Viditelný focus všude, ale bez rámečků při kliknutí myší */
:focus-visible {
  outline: 2px solid var(--green-lift);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection { background: rgba(94, 187, 50, .3); color: #fff; }

/* Skip link */
.skip {
  position: absolute; left: var(--s-4); top: var(--s-4);
  z-index: 100;
  padding: var(--s-3) var(--s-5);
  background: var(--green); color: #05100a;
  font-weight: 650; border-radius: var(--r-sm);
  transform: translateY(-160%);
  transition: transform var(--dur-fast) var(--ease);
}
.skip:focus { transform: translateY(0); }

/* Pouze pro čtečky */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- 3. TYPOGRAFIE ----------------------------------------------- */
.h2 {
  font-size: var(--t-h2);
  line-height: 1.1;
  letter-spacing: -.025em;
  font-weight: 600;
  text-wrap: balance;
}

.h3 {
  font-size: var(--t-h3);
  line-height: 1.35;
  letter-spacing: -.01em;
  font-weight: 600;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.62;
  color: var(--text);
  letter-spacing: -.005em;
}

.body { color: var(--text-2); }
.body + .body { margin-top: var(--s-4); }
.measure { max-width: var(--measure); }

/* Malý oddělovací nadpis sekce */
.eyebrow {
  display: flex; align-items: center; gap: var(--s-3);
  font-size: var(--t-micro);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}
.eyebrow::before {
  content: ""; inline-size: 1.75rem; block-size: 1px;
  background: var(--green); opacity: .7; flex: none;
}

/* Podpis */
.sign {
  margin-top: var(--s-5);
  font-size: var(--t-body);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
}
.sign::before {
  content: ""; display: block;
  inline-size: 2.5rem; block-size: 1px;
  background: var(--line-strong);
  margin-bottom: var(--s-4);
}

/* Zdůraznění jednoho slova akcentem */
.accent      { color: var(--green-lift); }
.accent-warm { color: var(--warm); }

/* ---------- 4. LAYOUT --------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.wrap--slim { max-width: var(--wrap-slim); }

.section { padding-block: var(--section-y); position: relative; }

/* Jemná dělící linka mezi sekcemi — místo rámečků */
.section--ruled { border-top: 1px solid var(--line); }

/* ---------- 5. KOMPONENTY ----------------------------------------------- */

/* --- Značka (autentický node-mark z loga MarekStejskal.cz) --- */
.brand {
  display: inline-flex; align-items: center; gap: .625rem;
  /* Text je záměrně drobný, ale klikatelná plocha musí zůstat dost velká
     (WCAG 2.5.8) — proto min-height a svislý padding, ne jen řádek textu. */
  min-height: 2.75rem;
  padding-block: .5rem;
  font-size: var(--t-micro);
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color var(--dur-fast) var(--ease);
}
.brand:hover { color: var(--text); }
.brand__mark { inline-size: 1.125rem; block-size: 1.125rem; color: var(--green); flex: none; }
.brand:hover .brand__mark { color: var(--green-lift); }

/* --- Tlačítka: pouze dvě varianty pro celý web --- */
.btn {
  --btn-pad-x: clamp(1.375rem, 3vw, 1.875rem);
  display: inline-flex; align-items: center; gap: .625rem;
  min-height: 3rem;                 /* dotykový cíl ≥ 48px */
  padding: .8125rem var(--btn-pad-x);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text);
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
/* Světelný přejezd zleva doprava při hoveru */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg,
    transparent 0%, rgba(94, 187, 50, .22) 45%, rgba(53, 214, 176, .18) 70%, transparent 100%);
  transform: translateX(-105%);
  transition: transform .7s var(--ease-out);
}
.btn:hover { border-color: rgba(94, 187, 50, .5); background: var(--surface-hover); }
.btn:hover::before { transform: translateX(0); }
.btn:active { transform: translateY(1px); }
.btn__arrow { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  border-color: transparent;
  color: #04140a;
  font-weight: 700;
}
.btn--primary:hover { background: linear-gradient(135deg, var(--green-lift) 0%, var(--green) 100%); }
.btn--primary::before { display: none; }

/* --- Textový odkaz se šipkou --- */
.link {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 2.75rem;
  color: var(--green-lift);
  font-weight: 600;
  font-size: var(--t-small);
  letter-spacing: .01em;
}
.link__u {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--dur-fast) var(--ease);
  padding-bottom: 2px;
}
.link:hover .link__u { background-size: 100% 1px; }
.link__arrow { transition: transform var(--dur-fast) var(--ease); }
.link:hover .link__arrow { transform: translateX(4px); }

/* --- Metařádek se službami (tečkovaný oddělovač) --- */
.services-line {
  display: flex; flex-wrap: wrap;
  gap: .375rem var(--s-3);
  font-size: var(--t-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}
.services-line li { display: flex; align-items: center; gap: var(--s-3); }
.services-line li:not(:last-child)::after {
  content: ""; inline-size: 3px; block-size: 3px;
  border-radius: 50%; background: currentColor; opacity: .55;
}

/* ---------- 6. HERO ----------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: clip;
  isolation: isolate;
}

/* Vrstva 1 — canvas s datovou sítí (dekorace) */
.hero__net {
  position: absolute; inset: 0; z-index: -3;
  inline-size: 100%; block-size: 100%;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero__net.is-ready { opacity: 1; }

/* Vrstva 2 — pomalu plující světelný gradient */
.hero__glow {
  position: absolute; inset: -20%; z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38rem 30rem at 22% 18%, rgba(94, 187, 50, .16), transparent 65%),
    radial-gradient(32rem 26rem at 82% 72%, rgba(53, 214, 176, .12), transparent 62%),
    radial-gradient(26rem 22rem at 62% 8%,  rgba(230, 185, 138, .055), transparent 60%);
  animation: drift 34s var(--ease) infinite alternate;
  will-change: transform;
}

/* Vrstva 3 — vinětace, aby text vždy držel kontrast */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 85% at 50% 42%, transparent 40%, rgba(7, 10, 9, .72) 100%),
    linear-gradient(to bottom, rgba(7, 10, 9, .55) 0%, transparent 22%, transparent 72%, var(--bg) 100%);
}

/* Header v heru */
.hero__top {
  padding-block: clamp(1.25rem, 3.5vw, 2.25rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
}
.hero__year-tag {
  font-size: var(--t-micro);
  letter-spacing: .2em;
  color: var(--text-3);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Střed heru */
.hero__body {
  display: grid;
  align-content: center;
  padding-block: var(--s-6);
}

/*  Na širokých displejích dvousloupcová kompozice: číslo vlevo, přání vpravo.

    Pod sebou (číslo → text → CTA) se výšky sčítají a na 1440×900 vycházel
    hero 1150 px vysoký, takže text přání i CTA končily pod ohybem — a přání
    je to hlavní, co má návštěvník vidět. Ve dvou sloupcích se výška bere
    z vyššího sloupce, ne jako součet, a zároveň se zaplní pravá polovina.

    --t-display se tady musí přepsat: strop je odvozený od šířky levého
    sloupce, ne celé stránky. vw jednotka sama nestačí — jakmile --wrap
    narazí na svoje maximum, obsah se dál nerozšiřuje, ale vw roste dál. */
@media (min-width: 62rem) {
  .hero__body {
    --t-display: min(19rem, 20vw);
    grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
    grid-template-areas:
      "year wish"
      "year cta";
    column-gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }
  .pf         { grid-area: year; align-self: center; margin-bottom: 0; }
  .hero__wish { grid-area: wish; align-self: end; }
  .hero__cta  { grid-area: cta; }
}

/* Velké PF 2027 */
.pf {
  display: grid;
  justify-items: start;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}
.pf__label {
  display: block;
  font-size: var(--t-pf);
  font-weight: 300;
  letter-spacing: .42em;
  text-indent: .42em;         /* opticky vyrovná letter-spacing vpravo */
  color: var(--text-2);
  line-height: 1;
  margin-bottom: clamp(.25rem, 1.5vw, .75rem);
}
.pf__year {
  display: block;
  font-size: var(--t-display);
  font-weight: 700;
  line-height: .82;
  letter-spacing: -.055em;
  text-indent: -.03em;        /* optické zarovnání "2" k levému okraji */
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--text);
  /* Světelný přechod — nahoře jasné, dole se rozplývá do zelené */
  background: linear-gradient(168deg,
      #f4faf7 0%, #dfeee6 26%, #9fd489 58%, rgba(94, 187, 50, .78) 82%, rgba(52, 129, 28, .62) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 3.5rem rgba(94, 187, 50, .22));
}
/* Fallback tam, kde background-clip:text není podporován */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .pf__year { -webkit-text-fill-color: currentColor; background: none; color: #eef6f1; }
}

.hero__wish { max-width: 40rem; }
.hero__wish .lead { text-wrap: pretty; }
.hero__wish .body { margin-top: var(--s-4); }

.hero__cta {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-5); align-items: center;
}
/* Na širokých displejích ať řádek s CTA sahá k pravému okraji obsahu —
   vyváží to velké číslo a plocha vpravo nezůstane prázdná. */
@media (min-width: 62rem) {
  .hero__cta { justify-content: space-between; }
}

/* Spodek heru */
.hero__bottom {
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  display: flex; align-items: end; justify-content: space-between;
  gap: var(--s-5);
}

/* Scroll indikátor */
.scroll-hint {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-size: var(--t-micro);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}
.scroll-hint__line {
  position: relative;
  inline-size: 1px; block-size: 2.75rem;
  background: var(--line-strong);
  overflow: hidden;
}
.scroll-hint__line::after {
  content: ""; position: absolute; inset-inline: 0; block-size: 45%;
  background: linear-gradient(to bottom, transparent, var(--green));
  animation: trickle 2.6s var(--ease) infinite;
}

/* ---------- 7. SEKCE --------------------------------------------------- */

/* --- Motto --- */
.motto { text-align: center; }
.motto__text {
  font-size: clamp(1.75rem, 1.1rem + 3.6vw, 4rem);
  line-height: 1.14;
  letter-spacing: -.03em;
  font-weight: 300;
  text-wrap: balance;
  max-width: 34rem;
  margin-inline: auto;
}
.motto__text strong { font-weight: 600; color: var(--text); }
.motto__text .accent-warm { font-weight: 600; }

/* --- Dvousloupcová sekce (poděkování, osobní část) --- */
.duo {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (min-width: 62rem) {
  .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(3rem, 7vw, 7rem); }
  .duo--reverse > :first-child { order: 2; }
}
.duo__head { position: relative; }
@media (min-width: 62rem) {
  .duo__head { position: sticky; top: var(--s-8); }
}

/* --- Služby --- */
.services {
  display: grid;
  gap: 1px;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  background: var(--line);
  border-block: 1px solid var(--line);
}
@media (min-width: 40rem)  { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem)  { .services { grid-template-columns: repeat(4, 1fr); } }

.service {
  background: var(--bg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
  display: grid;
  align-content: start;
  gap: var(--s-4);
  position: relative;
  transition: background-color var(--dur) var(--ease);
}
.service:hover { background: var(--bg-elev); }
/* Zelená hairline, která při hoveru vyjede zdola */
.service::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; block-size: 1px;
  background: linear-gradient(to right, var(--green), var(--teal));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.service:hover::after { transform: scaleX(1); }

.service__icon {
  inline-size: 1.75rem; block-size: 1.75rem;
  color: var(--green);
  transition: color var(--dur-fast) var(--ease), transform var(--dur) var(--ease-out);
}
.service:hover .service__icon { color: var(--green-lift); transform: translateY(-2px); }
.service__title { font-size: var(--t-h3); font-weight: 600; letter-spacing: -.01em; }
.service__text { font-size: var(--t-small); line-height: 1.62; color: var(--text-2); }

/* --- Portrét --- */
.portrait { position: relative; }

/* Rámeček obklopuje POUZE fotku. Kdyby byl na .portrait (které obsahuje
   i popisek), překryl by rámeček a tmavý gradient text pod fotkou. */
.portrait__frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  line-height: 0;          /* žádná mezera pod inline obrázkem */
}
.portrait__img {
  inline-size: 100%;
  /* Fotografie je barevně sladěna s tmavým webem, ne surový snapshot */
  filter: grayscale(.24) contrast(1.04) brightness(.92);
  transition: filter var(--dur) var(--ease);
}
.portrait:hover .portrait__img { filter: grayscale(0) contrast(1.02) brightness(1); }
/* Zelený závoj sjednocující foto se zbytkem webu */
.portrait__frame::after {
  content: ""; position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(200deg, rgba(94, 187, 50, .10) 0%, transparent 42%, rgba(7, 10, 9, .5) 100%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.portrait__caption {
  margin-top: var(--s-4);
  font-size: var(--t-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}

/* --- Karta odkazu (přání k svátku) --- */
.card-link {
  display: grid;
  gap: var(--s-5);
  padding: clamp(1.75rem, 4.5vw, 3.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(28rem 18rem at 88% 12%, rgba(230, 185, 138, .08), transparent 70%),
    var(--surface);
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}
.card-link:hover { border-color: rgba(230, 185, 138, .32); transform: translateY(-3px); }
@media (min-width: 48rem) {
  .card-link { grid-template-columns: 1fr auto; align-items: center; gap: var(--s-7); }
}

/* --- Závěrečné CTA --- */
.outro { text-align: center; }
.outro__title {
  font-size: clamp(2rem, 1.2rem + 4.4vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.04;
  background: linear-gradient(150deg, #f2f8f5 0%, #a9dc91 62%, rgba(94, 187, 50, .8) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .outro__title { -webkit-text-fill-color: currentColor; background: none; }
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  background: var(--bg-deep);
}
.footer__grid {
  display: grid; gap: var(--s-6);
  align-items: start;
}
@media (min-width: 48rem) {
  .footer__grid { grid-template-columns: 1fr auto; gap: var(--s-8); }
}
.footer__name { font-weight: 600; letter-spacing: -.01em; }
.footer__meta { font-size: var(--t-small); color: var(--text-3); margin-top: var(--s-2); }
.footer__meta a { color: var(--text-2); }
.footer__meta a:hover { color: var(--green-lift); }
.footer__nav { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); font-size: var(--t-small); }
.footer__nav a { color: var(--text-3); min-height: 2.75rem; display: inline-flex; align-items: center; }
.footer__nav a:hover { color: var(--text); }

/* ---------- 8. ANIMACE -------------------------------------------------- */
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.5%, -2%, 0) scale(1.06); }
  100% { transform: translate3d(-2%, 2.5%, 0) scale(1.03); }
}

@keyframes trickle {
  0%   { transform: translateY(-100%); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translateY(240%); opacity: 0; }
}

/* Intro reveal — řízený class .is-loaded na <html> */
.intro { opacity: 0; transform: translateY(1.25rem); }
.js .intro {
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
html.is-loaded .intro { opacity: 1; transform: none; }
/* Bez JS musí být obsah okamžitě vidět */
html:not(.js) .intro { opacity: 1; transform: none; }

/* Velké 2027 přijíždí s rozostřením — dojem rozsvícení */
.pf__year.intro { transform: translateY(2rem) scale(.97); filter: blur(14px); }
.js .pf__year.intro { transition: opacity 1.3s var(--ease-out), transform 1.3s var(--ease-out), filter 1.3s var(--ease-out); }
html.is-loaded .pf__year.intro {
  transform: none;
  filter: drop-shadow(0 0 3.5rem rgba(94, 187, 50, .22));
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(1.75rem); }
.js .reveal {
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* Velmi jemný parallax — řízený z JS proměnnou --py */
.parallax { transform: translate3d(0, var(--py, 0), 0); will-change: transform; }

/* ---------- 9. REDUCED MOTION ------------------------------------------ */
/* Při reduced-motion je stránka plně použitelná a statická. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  /* Vše je hned vidět, nic se nikam neposouvá */
  .intro, .reveal, .pf__year.intro {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .parallax { transform: none !important; }
  .hero__glow { animation: none; }
  .scroll-hint__line::after { animation: none; opacity: .5; transform: none; block-size: 100%; }
  .hero__net { display: none; }   /* canvas se v JS ani nespouští */
}

/* ---------- 10. PRINT -------------------------------------------------- */
@media print {
  :root { --bg: #fff; --text: #111; --text-2: #333; --text-3: #555; }
  body { background: #fff; color: #111; }
  .hero { min-height: auto; }
  .hero__net, .hero__glow, .scroll-hint, .skip { display: none !important; }
  .hero::after { display: none; }
  .pf__year { -webkit-text-fill-color: #34811c; background: none; filter: none; }
  .outro__title { -webkit-text-fill-color: #34811c; background: none; }
  .service, .footer { background: #fff; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .75em; color: #555; }
}

/* ==========================================================================
   11. STRÁNKY PŘÁNÍ  (/svatek/, /pf-YYYY/)
   Navazují na hlavní PF web — stejné tokeny, jen jiný kompoziční rytmus.
   ========================================================================== */
.wish {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: clip;
  isolation: isolate;
}
.wish::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 85% at 50% 45%, transparent 42%, rgba(7, 10, 9, .74) 100%),
    linear-gradient(to bottom, rgba(7, 10, 9, .5) 0%, transparent 24%, transparent 78%, var(--bg) 100%);
}

/* Teplá varianta pro přání k svátku — odliší ji od zeleného novoročního PF */
.page-wish--warm .hero__glow {
  background:
    radial-gradient(38rem 30rem at 26% 20%, rgba(230, 185, 138, .15), transparent 64%),
    radial-gradient(32rem 26rem at 78% 74%, rgba(94, 187, 50, .10), transparent 62%);
}

.wish__body {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: var(--s-5);
  padding-block: clamp(3rem, 9vw, 6rem);
}

.wish__title {
  font-size: clamp(2.125rem, 1.1rem + 6.4vw, 5.25rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 300;
  text-wrap: balance;
  max-width: 22ch;
  margin: 0;
}
.wish__name {
  display: block;
  font-weight: 650;
  background: linear-gradient(140deg, #f6f1e8 0%, var(--warm) 62%, rgba(230, 185, 138, .78) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .wish__name { -webkit-text-fill-color: currentColor; background: none; color: var(--warm); }
}

.wish__text { margin-top: var(--s-3); }
.wish__foot { margin-top: var(--s-5); }
.wish__bottom { padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }

/* --- Generátor odkazu se jménem (nástroj pro odesílatele) --- */
.namegen {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
  padding-top: var(--s-5);
  width: 100%;
  max-width: 34rem;
}
.namegen__summary {
  cursor: pointer;
  display: inline-flex; align-items: center; gap: var(--s-3);
  min-height: 2.75rem;
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--text-3);
  list-style: none;
  transition: color var(--dur-fast) var(--ease);
}
.namegen__summary::-webkit-details-marker { display: none; }
.namegen__summary::before {
  content: ""; inline-size: .5rem; block-size: .5rem; flex: none;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur-fast) var(--ease);
}
.namegen[open] .namegen__summary::before { transform: rotate(225deg) translateY(-2px); }
.namegen__summary:hover { color: var(--text); }

.namegen__body { padding-top: var(--s-4); }
.namegen__label {
  display: block;
  font-size: var(--t-micro);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: var(--s-3);
}
.namegen__row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.namegen__input {
  flex: 1 1 11rem;
  min-height: 3rem;
  padding: .75rem 1rem;
  font: inherit;
  font-size: var(--t-small);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  transition: border-color var(--dur-fast) var(--ease);
}
.namegen__input::placeholder { color: var(--text-3); }
.namegen__input:focus { border-color: rgba(94, 187, 50, .5); outline: none; }
.namegen__input:focus-visible { outline: 2px solid var(--green-lift); outline-offset: 2px; }

.namegen__out {
  margin-top: var(--s-3);
  min-height: 1.5rem;
  font-size: var(--t-small);
  color: var(--text-3);
  overflow-wrap: anywhere;
}
.namegen__out a { color: var(--green-lift); }

/* ==========================================================================
   12. ARCHIV PF
   ========================================================================== */
.arch-head { padding-block: clamp(4rem, 10vw, 7rem) clamp(2rem, 5vw, 3rem); }

.years { border-top: 1px solid var(--line); }

.year {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: var(--s-2) clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(1.5rem, 3.5vw, 2.25rem);
  align-items: baseline;
  transition: background-color var(--dur) var(--ease);
}
@media (min-width: 48rem) {
  .year { grid-template-columns: 6.5rem minmax(0, 1fr); }
}
.year:hover { background: var(--surface); }

.year__n {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  transition: color var(--dur) var(--ease);
}
.year:hover .year__n { color: var(--green-lift); }
.year--current .year__n { color: var(--green); }

.year__text { color: var(--text-2); font-size: var(--t-small); line-height: 1.68; max-width: var(--measure); }
.year__meta {
  margin-top: var(--s-3);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4);
  font-size: var(--t-micro);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}
.year__badge {
  display: inline-flex; align-items: center;
  padding: .1875rem .5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  color: var(--green-lift);
  border-color: rgba(94, 187, 50, .3);
}
