/* =============================================================================
   WAPP by Progity - teaser landing
   -----------------------------------------------------------------------------
   Jeden soubor, zadny build. Web ma par sablon a jeden formular; bundler by tu
   pridal krok navic a nic neusetril.

   --- JAK FUNGUJE HERO SCENA -------------------------------------------------
   Cela scena visi na jedinem ubezniku (--w-vp-x / --w-vp-y). Koleje, zar
   i souprava se ridi temito dvema cisly, takze presunout scenu jinam znamena
   zmenit dve promenne, ne prepsat pet pravidel. Prave rozjeti ubezniku a SVG
   geometrie bylo v predchozi verzi duvodem, proc na mobilu vypadal vlak jako
   by prijizdel z boku.

   Souprava je JEDEN uzel (.w-train). Pri priblizovani se zaroven skaluje
   a posouva od ubezniku dolu po ose koleji, takze svetla nejen rostou, ale
   skutecne postupuji k divakovi. Vsechno uvnitr - obe svetla, halo i kuzel -
   sdili stejny pohyb. Diky tomu roste soucasne velikost svetel, jejich
   rozestup i delka kuzelu a kuzel se od svetel nemuze odpojit.
   ========================================================================== */

:root {
    /* --- barvy odvozene z loga -------------------------------------------
       #0044BD = tmave modra W, #2C99FC = svetla modra "app". Na temer cerne
       ma originalni #0044BD kontrast jen 2,5:1, proto ma logo pro tmave
       pozadi W posunute na #1550DC (3,4:1) - stejny odstin, jen citelny.  */
    --w-blue-deep: #1550DC;
    --w-blue: #2C99FC;
    --w-blue-bright: #63B6FF;
    --w-blue-glow: rgba(44, 153, 252, 0.35);

    /* Tunel je temer absolutne cerny. Uplna cerna ale na OLED "spolkne"
       gradient, takze je v pozadi stopa modre - scena si tim udrzi hloubku. */
    --w-bg: #02040A;
    --w-bg-2: #05080F;
    --w-surface: #0A0E17;
    --w-surface-2: #101623;
    --w-line: rgba(122, 162, 220, 0.10);
    --w-line-strong: rgba(122, 162, 220, 0.24);

    --w-text: #E8EEF7;
    --w-text-dim: #93A2B8;
    --w-text-faint: #64748B;

    /* Svetla soupravy jsou tepla bila, ne oranzova - oranzova patri
       vyhradne navestidlu, kde ma fyzicky vyznam. */
    --w-headlight: #FFFDF7;
    --w-signal-amber: #fbb83c;
    --w-signal-green: #51db46;

    --w-radius: 14px;
    --w-radius-lg: 22px;
    --w-max: 1120px;
    --w-max-narrow: 720px;
    --w-section-space: 88px;
    --w-section-transition-space: 112px;
    --w-content-block-gap: 82px;

    --w-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    /* Podpis "by Progity". Kurzivni patkove pismo pusobi jako signature
       a nevyzaduje stahovani zadneho fontu. */
    --w-font-signature: Georgia, "Iowan Old Style", "Times New Roman", serif;

    /* Ubeznik tunelu. Desktop: vpravo od stredu, aby svetla nikdy neskoncila
       za headlinem. Mobil si ho v media query posouva nahoru a na stred. */
    --w-vp-x: 74%;
    --w-vp-y: 44%;
    /* Delka jedne jizdy soupravy. */
    --w-ride: 15s;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--w-bg);
    color: var(--w-text);
    font-family: var(--w-font);
    font-size: 17px;
    line-height: 1.65;
    overflow-x: hidden;
}

img, svg { max-width: 100%; }

a { color: var(--w-blue-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #8CCBFF; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 800; }
p { margin: 0 0 1em; }

:focus-visible {
    outline: 2px solid var(--w-blue-bright);
    outline-offset: 3px;
    border-radius: 4px;
}

.w-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    padding: 12px 18px;
    background: var(--w-surface);
    color: var(--w-text);
    border-radius: 0 0 var(--w-radius) 0;
}
.w-skip:focus { left: 0; }

.w-wrap { width: 100%; max-width: var(--w-max); margin: 0 auto; padding: 0 22px; }
.w-wrap--narrow { max-width: var(--w-max-narrow); }
.w-visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── LOGO A PODPIS ────────────────────────────────────────────────────────── */

.w-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.w-logo img { display: block; height: 30px; width: auto; }
/* Podpis nesmi konkurovat logu: mensi, svetle sedy, kurzivni patkovy. */
.w-signature {
    font-family: var(--w-font-signature);
    font-style: italic;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.01em;
    color: rgba(232, 238, 247, 0.52);
    white-space: nowrap;
}
.w-logo:hover .w-signature { color: rgba(232, 238, 247, 0.72); }

/* ── HLAVICKA ─────────────────────────────────────────────────────────────── */

.w-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(2, 4, 10, 0.74);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--w-line);
}
.w-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}
.w-header__nav { display: flex; align-items: center; gap: 6px; }

/* ── PREPINAC JAZYKA ──────────────────────────────────────────────────────────
   Rozbalovaci nabidka stoji na <details>, ne na vlastni JS komponente: stav
   otevreno/zavreno, ovladani klavesnici i chovani bez JavaScriptu resi
   prohlizec. Proto tu neni zadny [hidden] ani display:none prepinany
   skriptem - viditelnost seznamu ridi jedine atribut [open].               */

.w-lang { position: relative; }

.w-lang__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 6px;
    border: 1px solid var(--w-line-strong);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--w-text-dim);
    cursor: pointer;
    user-select: none;
    /* Vychozi trojuhelnicek <summary> nahrazujeme vlastni sipkou. */
    list-style: none;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.w-lang__toggle::-webkit-details-marker { display: none; }
.w-lang__toggle::marker { content: ""; }
.w-lang__toggle:hover { color: var(--w-text); border-color: rgba(122, 162, 220, 0.42); }
.w-lang[open] .w-lang__toggle {
    color: var(--w-text);
    background: rgba(44, 153, 252, 0.12);
    border-color: rgba(99, 182, 255, 0.45);
}

.w-lang__flag {
    display: block;
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.w-lang__caret { flex: none; width: 10px; height: 8px; transition: transform 0.18s ease; }
.w-lang[open] .w-lang__caret { transform: rotate(180deg); }

.w-lang__list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 70;
    min-width: 172px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--w-surface);
    border: 1px solid var(--w-line-strong);
    border-radius: var(--w-radius);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}
.w-lang__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--w-text-dim);
    text-decoration: none;
    white-space: nowrap;
}
.w-lang__item:hover { background: rgba(122, 162, 220, 0.08); color: var(--w-text); }
.w-lang__item[aria-current="true"] { background: rgba(44, 153, 252, 0.16); color: var(--w-blue-bright); }

/* ── TLACITKA ─────────────────────────────────────────────────────────────── */

.w-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.w-btn:hover { transform: translateY(-1px); }
.w-btn:active { transform: translateY(0); }
.w-btn[disabled] { opacity: 0.55; cursor: progress; transform: none; }

/* Tmavy text na svetle modre: bila by na #2C99FC mela kontrast jen 3,1:1. */
.w-btn--primary {
    background: var(--w-blue);
    color: #04101F;
    box-shadow: 0 8px 30px rgba(44, 153, 252, 0.22);
}
.w-btn--primary:hover {
    background: var(--w-blue-bright);
    color: #04101F;
    box-shadow: 0 10px 40px rgba(44, 153, 252, 0.42), 0 0 0 1px rgba(99, 182, 255, 0.5);
}

.w-btn--ghost {
    background: rgba(122, 162, 220, 0.06);
    border-color: var(--w-line-strong);
    color: var(--w-text);
}
.w-btn--ghost:hover {
    background: rgba(44, 153, 252, 0.10);
    border-color: rgba(44, 153, 252, 0.45);
    color: var(--w-text);
}

.w-btn--block { width: 100%; }

/* ── HERO ─────────────────────────────────────────────────────────────────── */

.w-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    /* svh, ne vh: na mobilu se s adresnim radkem 100vh preteka. */
    min-height: 94svh;
    display: flex;
    align-items: center;
    padding: 90px 0 70px;
    background: var(--w-bg);
}

.w-hero__stage { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* Scena je zakotvena v ubezniku: SVG ma ubeznik ve sve strede (viewBox
   -600 -400 1200 800), takze staci vystredit element na --w-vp-*. Tim je
   geometrie kolejí a pozice svetel z definice stejna na kazdem viewportu. */
.w-tunnel { position: absolute; inset: 0; }
.w-tunnel__rails {
    position: absolute;
    left: var(--w-vp-x);
    top: var(--w-vp-y);
    width: 260vmax;
    aspect-ratio: 3 / 2;
    transform: translate(-50%, -50%);
}

/* Slaba zar samotneho tunelu v dalce. Radial-gradient misto blur():
   stejny vysledek, ale bez rasterizace velke plochy na kazdy snimek. */
.w-tunnel__ambient {
    position: absolute;
    left: var(--w-vp-x);
    top: var(--w-vp-y);
    width: min(90vw, 780px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
        rgba(86, 132, 210, 0.16) 0%,
        rgba(40, 70, 130, 0.07) 30%,
        transparent 66%);
    animation: w-ambient var(--w-ride) linear infinite;
}

/* --- souprava ------------------------------------------------------------ */

.w-train {
    position: absolute;
    left: var(--w-vp-x);
    top: var(--w-vp-y);
    width: 0;
    height: 0;
    transform: translate3d(0, 0, 0) scale(0.045);
    animation: w-approach var(--w-ride) linear infinite;
    will-change: transform, opacity;
}

/* Vsechny casti soupravy jsou vystredene na jejim stredu, takze skalovani
   rodice s nimi hybe presne tak, jak vyzaduje perspektiva. */
.w-train > * {
    position: absolute;
    left: 50%;
    top: 50%;
}

.w-train__lamp {
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border-radius: 50%;
    background: radial-gradient(circle,
        #ffffff 0%,
        var(--w-headlight) 34%,
        rgba(255, 246, 224, 0.55) 58%,
        rgba(255, 240, 210, 0) 72%);
}
.w-train__lamp:nth-of-type(1) { transform: translateX(-38px); }
.w-train__lamp:nth-of-type(2) { transform: translateX(38px); }

/* Spolecne halo obou svetel - to, co v tunelu skutecne osvetli okoli. */
.w-train__halo {
    width: 420px;
    height: 420px;
    margin: -210px 0 0 -210px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 248, 232, 0.42) 0%,
        rgba(255, 236, 200, 0.13) 26%,
        rgba(180, 205, 255, 0.04) 48%,
        transparent 70%);
    animation: w-halo var(--w-ride) linear infinite;
}

/*
 * Kuzel svetla. Vrchol je presne mezi svetly, rozevira se smerem k divakovi
 * (dolu po kolejich). Protoze je uvnitr .w-train, roste s ni jeho delka
 * i sirka a nikdy se od svetel neodpoji - to byl problem predchozi verze,
 * kde kuzel animoval vlastni, nezavislou opacitou.
 */
.w-train__beam {
    width: 900px;
    height: 760px;
    margin: -3px 0 0 -450px;
    background: linear-gradient(180deg,
        rgba(255, 244, 220, 0.19) 0%,
        rgba(255, 238, 205, 0.07) 34%,
        rgba(210, 225, 255, 0.018) 68%,
        transparent 100%);
    clip-path: polygon(46.5% 0%, 53.5% 0%, 100% 100%, 0% 100%);
    transform-origin: 50% 0;
    animation: w-beam var(--w-ride) linear infinite;
}

/* Odlesk na kolejich - objevi se az kdyz je souprava dost blizko, aby bylo
   co odrazet. Vlastni animace, ale stejny takt jako .w-train. */
.w-tunnel__gleam {
    position: absolute;
    left: var(--w-vp-x);
    top: var(--w-vp-y);
    width: 170vmax;
    aspect-ratio: 3 / 2;
    transform: translate(-50%, -50%);
    /* Uhly nejsou odhad: koleje jdou v SVG z (0,0) do (+-450, 400), tedy
       48,4 stupne od svislice. Ve stupnici conic-gradientu (0 = nahoru,
       po smeru hodin) to je 131,6 a 228,4 stupne. Bez toho klin mirí nad
       ubeznik a odlesk se objevi na strope misto na kolejích. */
    background:
        conic-gradient(from 0deg at 50% 50%,
            transparent 0deg 124deg,
            rgba(196, 224, 255, 0.34) 131.6deg,
            transparent 140deg 220deg,
            rgba(196, 224, 255, 0.34) 228.4deg,
            transparent 237deg 360deg);
    opacity: 0;
    animation: w-gleam var(--w-ride) linear infinite;
}

/* --- navestidlo ---------------------------------------------------------- */

/*
 * Obe lampy sdileji presne stejny 15s takt jako souprava. Behem prvnich
 * 7,5 s (prijezd a prujezd) oranzova petkrat blikne v 1,5s cyklu. Po prujezdu
 * se na zhruba 6,9 s rozsviti zelena a pred dalsim loopem zhasne.
 */
.w-signal {
    position: absolute;
    right: 8%;
    top: 28%;
    width: 62px;
    filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.9));
}
@media (max-width: 1550px) {
    .w-signal {
        right: 5%;
    }
}
@media (max-width: 1320px) {
    .w-signal {
        right: 3%;
    }
}
@media (max-width: 1120px) {
    .w-signal {
        right: 1%;
    }
}
.w-signal__head {
    padding: 9px 0 10px;
    border: 1px solid rgba(150, 175, 210, 0.24);
    border-radius: 12px;
    background: linear-gradient(180deg, #0c1119 0%, #06090f 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.w-signal__lamp {
    display: block;
    width: 26px;
    height: 26px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}
.w-signal__lamp + .w-signal__lamp { margin-top: 10px; }
.w-signal__lamp--amber {
    background: var(--w-signal-amber);
    opacity: 0.12;
    animation: w-signal-amber var(--w-ride) linear infinite;
}
.w-signal__lamp--green {
    background: var(--w-signal-green);
    opacity: 0.10;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    animation: w-signal-green var(--w-ride) linear infinite;
}
.w-signal__mast {
    display: block;
    width: 3px;
    height: 26vh;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(150, 175, 210, 0.26), rgba(150, 175, 210, 0));
}

/* --- prach ve svetle ------------------------------------------------------ */

.w-tunnel__dust { position: absolute; inset: 0; }
.w-tunnel__dust i {
    position: absolute;
    width: 2px; height: 2px;
    border-radius: 50%;
    background: rgba(255, 240, 214, 0.55);
    animation: w-float 22s linear infinite;
}
.w-tunnel__dust i:nth-child(1) { left: 62%; top: 70%; animation-delay: -3s; }
.w-tunnel__dust i:nth-child(2) { left: 78%; top: 58%; animation-delay: -9s; }
.w-tunnel__dust i:nth-child(3) { left: 69%; top: 82%; animation-delay: -14s; }
.w-tunnel__dust i:nth-child(4) { left: 85%; top: 74%; animation-delay: -19s; }

/* --- citelnost textu ------------------------------------------------------ */

/*
 * Scrim, ne panel. Zadani vylucuje vyrazny neprusvitny podklad za headlinem,
 * takze textova plocha se drzi tmava plynulym gradientem. Diky nemu je copy
 * citelne i v okamziku, kdy svetla sviti naplno - a to bez toho, aby bylo
 * potreba tlumit samotnou animaci.
 */
.w-hero__scrim {
    position: absolute;
    inset: 0;
    /* Zlom az za koncem nejdelsiho radku headline (cca 52 % sirky), jinak
       se v nejjasnejsi fazi animace ztrati posledni slova nadpisu. */
    background: linear-gradient(100deg,
        rgba(2, 4, 10, 0.97) 0%,
        rgba(2, 4, 10, 0.94) 32%,
        rgba(2, 4, 10, 0.82) 48%,
        rgba(2, 4, 10, 0.42) 62%,
        rgba(2, 4, 10, 0.10) 74%,
        transparent 84%);
}
.w-hero__vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 92% 76% at var(--w-vp-x) var(--w-vp-y), transparent 34%, rgba(2, 4, 10, 0.55) 76%, var(--w-bg) 100%),
        linear-gradient(180deg, rgba(2, 4, 10, 0.85) 0%, transparent 20%, transparent 64%, var(--w-bg) 100%);
}

.w-hero__content { position: relative; max-width: 640px; }
.w-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 7px 15px;
    border: 1px solid rgba(44, 153, 252, 0.30);
    border-radius: 999px;
    background: rgba(44, 153, 252, 0.10);
    color: var(--w-blue-bright);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.w-eyebrow::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--w-blue);
    box-shadow: 0 0 10px 2px var(--w-blue-glow);
    animation: w-pulse 2.8s ease-in-out infinite;
}

.w-hero h1 {
    font-size: clamp(2.3rem, 5.6vw, 4rem);
    margin-bottom: 22px;
    text-wrap: balance;
    text-shadow: 0 2px 30px rgba(2, 4, 10, 0.9);
}
.w-hero__lead {
    max-width: 560px;
    font-size: clamp(1rem, 2.1vw, 1.13rem);
    color: var(--w-text-dim);
    margin-bottom: 30px;
    text-shadow: 0 1px 18px rgba(2, 4, 10, 0.9);
}
.w-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.w-hero__note { margin: 18px 0 0; font-size: 14px; color: var(--w-text-faint); max-width: 480px; }

/* ── SEKCE ────────────────────────────────────────────────────────────────── */

.w-section { padding: var(--w-section-space) 0; border-top: 1px solid var(--w-line); }
.w-section--flush { border-top: 0; }
.w-section--alt { background: linear-gradient(180deg, var(--w-bg) 0%, var(--w-bg-2) 100%); }
/* Hlavni obsah pred newsletterem dostava o jeden rytmicky krok vic. Stejne
   utility funguji pro plnosirkovou sekci i pro obsah uvnitr .w-doc. */
.w-section.w-section--before-signup { padding-bottom: var(--w-section-transition-space); }
.w-content-before-signup { padding-bottom: var(--w-section-transition-space); }
.w-label {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--w-blue);
}
.w-section h2 { font-size: clamp(1.65rem, 3.6vw, 2.4rem); margin-bottom: 20px; text-wrap: balance; }
.w-section p { color: var(--w-text-dim); max-width: 62ch; }
.w-section p strong { color: var(--w-text); font-weight: 700; }

.w-teasers { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.w-teaser {
    position: relative;
    padding: 30px 26px;
    background: var(--w-surface);
    border: 1px solid var(--w-line);
    border-radius: var(--w-radius-lg);
    overflow: hidden;
}
.w-teaser::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(44, 153, 252, 0.65), transparent);
}
.w-teaser h3 { font-size: 1.15rem; margin-bottom: 10px; }
.w-teaser p { margin: 0; font-size: 15px; color: var(--w-text-dim); }

.w-reveal { opacity: 1; transform: none; }
.js .w-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .w-reveal.is-revealed { opacity: 1; transform: none; }

/* ── PROJEKTY ─────────────────────────────────────────────────────────────── */

/* Strucny seznam historickych titulu na homepage. Nazvy her jsou odkazy,
   takze je crawler najde i bez navstevy podstranky. */
.w-inline-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 6px 0 22px;
    padding: 0;
    list-style: none;
}
.w-inline-list a {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid var(--w-line-strong);
    border-radius: 999px;
    font-size: 14.5px;
    color: var(--w-text-dim);
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.w-inline-list a:hover {
    background: rgba(44, 153, 252, 0.10);
    border-color: rgba(44, 153, 252, 0.45);
    color: var(--w-blue-bright);
}

.w-projects { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
.w-project {
    display: flex;
    flex-direction: column;
    background: var(--w-surface);
    border: 1px solid var(--w-line);
    border-radius: var(--w-radius-lg);
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.w-project:hover { border-color: rgba(44, 153, 252, 0.40); transform: translateY(-2px); }
.w-project__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--w-bg-2); }
.w-project__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.w-project:hover .w-project__media img { transform: scale(1.025); }
.w-project__media--pending,
.w-project-detail-hero__media--pending {
    background:
        radial-gradient(circle at 75% 34%, rgba(44, 153, 252, .22), transparent 34%),
        linear-gradient(145deg, #0b1220, #03060c 72%);
}
.w-project-cover-placeholder {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(118deg, transparent 42%, rgba(122, 196, 255, .08) 50%, transparent 58%),
        repeating-linear-gradient(135deg, transparent 0 38px, rgba(255, 255, 255, .025) 39px 40px);
}
.w-project-cover-caption {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: clamp(36px, 8vw, 72px) clamp(18px, 3vw, 30px) clamp(18px, 3vw, 28px);
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(2, 4, 10, .88));
    pointer-events: none;
    text-shadow: 0 1px 16px rgba(0, 0, 0, .7);
}
.w-project-cover-caption strong,
.w-project-cover-caption span { display: block; }
.w-project-cover-caption strong { font-size: clamp(1rem, 2vw, 1.35rem); line-height: 1.15; }
.w-project-cover-caption span { margin-top: 6px; color: rgba(240, 246, 255, .82); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.w-project__body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 22px 22px 24px; }
.w-project h3 { font-size: 1.1rem; margin-bottom: 9px; }
.w-project h3 a { color: var(--w-text); text-decoration: none; }
.w-project h3 a:hover { color: var(--w-blue-bright); }
.w-project p { font-size: 15px; color: var(--w-text-dim); margin-bottom: 14px; }
.w-project .w-project__status { margin-bottom: 10px; color: var(--w-blue); font-size: 11px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.w-project__more { margin-top: auto; font-size: 14px; font-weight: 700; }

/* ── FORMULAR ─────────────────────────────────────────────────────────────── */

.w-signup {
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(44, 153, 252, 0.09), transparent 62%),
        var(--w-bg-2);
    border-top: 1px solid var(--w-line);
}
.w-form {
    margin-top: 34px;
    padding: 30px;
    background: var(--w-surface);
    border: 1px solid var(--w-line);
    border-radius: var(--w-radius-lg);
}
.w-field { margin-bottom: 26px; }
.w-field:last-of-type { margin-bottom: 18px; }
.w-field > label,
.w-fieldset > legend {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--w-text);
}
.w-hint { margin: -4px 0 10px; font-size: 13px; color: var(--w-text-faint); }
.w-req { color: var(--w-blue); }

.w-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--w-bg);
    border: 1px solid var(--w-line-strong);
    border-radius: var(--w-radius);
    color: var(--w-text);
    font: inherit;
    font-size: 16px; /* pod 16px zoomuje iOS pri fokusu */
}
.w-input::placeholder { color: var(--w-text-faint); }
.w-input:focus { border-color: var(--w-blue); }
.w-input[aria-invalid="true"] { border-color: #F2695C; }

.w-fieldset { margin: 0 0 26px; padding: 0; border: 0; }
.w-options { display: flex; flex-wrap: wrap; gap: 10px; }

/* Vizualni "chip", ale pod nim je skutecny radio/checkbox - kvuli klavesnici
   i ctecce obrazovky. Vstup se neschovava display:none (to ho vyradi
   z tab poradi), ale je pruhledny pres celou plochu chipu. */
.w-option { position: relative; }
.w-option input {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.w-option span {
    display: block;
    padding: 11px 18px;
    background: var(--w-bg);
    border: 1px solid var(--w-line-strong);
    border-radius: 999px;
    font-size: 15px;
    color: var(--w-text-dim);
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.w-option input:checked + span {
    background: rgba(44, 153, 252, 0.16);
    border-color: rgba(44, 153, 252, 0.6);
    color: var(--w-blue-bright);
}
.w-option input:focus-visible + span { outline: 2px solid var(--w-blue-bright); outline-offset: 3px; }
.w-option input:hover + span { color: var(--w-text); }

/* Souhlasy jsou zamerne obycejne checkboxy, ne prepinace: musi byt na prvni
   pohled videt, ze nejsou predem zaskrtnute. */
.w-check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 4px; margin-top: 8px; }
.w-check input {
    flex: 0 0 auto;
    width: 20px; height: 20px;
    margin: 2px 0 0;
    accent-color: #2C99FC;
}
.w-check label { font-size: 15px; color: var(--w-text-dim); }
.w-check--consent label { color: var(--w-text); }

.w-error { display: block; margin-top: 8px; margin-bottom: 16px; font-size: 14px; color: #FF9D94; }
.w-form__note { margin: 14px 0 0; font-size: 13px; color: var(--w-text-faint); }
.w-form__altcha { margin: 6px 0 20px; }
.w-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.w-result {
    margin-top: 34px;
    padding: 30px;
    background: var(--w-surface);
    border: 1px solid var(--w-line);
    border-left: 3px solid var(--w-blue);
    border-radius: var(--w-radius-lg);
}
.w-result h3 { font-size: 1.3rem; margin-bottom: 10px; }
.w-result p { color: var(--w-text-dim); }
.w-result--error { border-left-color: #F2695C; }
.w-result__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ── SDILENI ──────────────────────────────────────────────────────────────── */

.w-share { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--w-line); }
.w-share h2, .w-share h3 { font-size: 1.05rem; margin-bottom: 8px; }
.w-share p { font-size: 15px; color: var(--w-text-dim); }
.w-share__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ── OBSAHOVE STRANKY ─────────────────────────────────────────────────────── */

.w-doc { padding: 60px 0 90px; }
.w-doc h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin-bottom: 8px; }
.w-doc__meta { margin-bottom: 34px; color: var(--w-text-faint); font-size: 14px; }
.w-doc h2 { font-size: 1.35rem; margin: 42px 0 14px; }
.w-doc h3 { font-size: 1.08rem; margin: 26px 0 10px; color: var(--w-text); }
.w-doc p, .w-doc li { color: var(--w-text-dim); }
.w-doc ul { padding-left: 20px; margin: 0 0 1em; }
.w-doc li { margin-bottom: 6px; }
.w-doc__box {
    margin: 26px 0;
    padding: 20px 22px;
    background: var(--w-surface);
    border: 1px solid var(--w-line);
    border-radius: var(--w-radius);
}
.w-doc__box p:last-child { margin-bottom: 0; }
.w-doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; }
.w-doc th, .w-doc td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--w-line); vertical-align: top; }
.w-doc th { color: var(--w-text); font-weight: 700; }
.w-doc td { color: var(--w-text-dim); }
.w-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.w-breadcrumb { margin-bottom: 18px; font-size: 13px; color: var(--w-text-faint); }
.w-breadcrumb a { color: var(--w-text-dim); text-decoration: none; }
.w-breadcrumb a:hover { color: var(--w-blue-bright); }

.w-status { display: flex; align-items: center; min-height: 70svh; padding: 60px 0; text-align: center; }
.w-status__inner { max-width: 560px; margin: 0 auto; }
.w-status h1 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); }
.w-status p { color: var(--w-text-dim); }
.w-status__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.w-status__mark {
    width: 56px; height: 56px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(44, 153, 252, 0.12);
    border: 1px solid rgba(44, 153, 252, 0.35);
}
.w-status--error .w-status__mark { background: rgba(242, 105, 92, 0.12); border-color: rgba(242, 105, 92, 0.4); }

/* ── PATICKA ──────────────────────────────────────────────────────────────── */

.w-footer { padding: 46px 0 38px; border-top: 1px solid var(--w-line); background: var(--w-bg); }
.w-footer__grid { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; }
.w-footer__brand { max-width: 340px; }
.w-footer__brand .w-logo img { height: 26px; }
.w-footer__tagline { margin: 12px 0 0; font-size: 14px; color: var(--w-text-faint); }
.w-footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: flex-start; }
.w-footer__links a, .w-footer__links button {
    padding: 0;
    background: none;
    border: 0;
    font: inherit;
    font-size: 14px;
    color: var(--w-text-dim);
    text-decoration: none;
    cursor: pointer;
}
.w-footer__links a:hover, .w-footer__links button:hover { color: var(--w-text); text-decoration: underline; }
.w-footer__legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--w-line); font-size: 13px; color: var(--w-text-faint); }

/* ── COOKIE CONSENT ───────────────────────────────────────────────────────── */

/* Vyrazny modal, ktery vyzaduje volbu. Obe tlacitka jsou zamerne stejne
   velka, stejne citelna a vedle sebe - odmitnuti nesmi byt schovane ani
   podane jako "odkaz". Po jakekoli volbe se web chova uplne stejne. */
.w-consent {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    border: 0;
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    background: rgba(1, 3, 7, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.w-consent::backdrop { background: rgba(1, 3, 7, 0.82); }
/* display:grid vyse prebiji vychozi display:none, ktere <dialog> ma v UA
   stylu. Skript sice zavreny dialog rovnou odstranuje z DOM, ale bez teto
   pojistky by kazda budouci zmena toho chovani nechala modal viset na
   strance natrvalo. */
.w-consent:not([open]) { display: none; }
.w-consent__box {
    width: 100%;
    max-width: 520px;
    padding: 30px;
    background: var(--w-surface);
    border: 1px solid var(--w-line-strong);
    border-radius: var(--w-radius-lg);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
    color: var(--w-text);
}
.w-consent__box h2 { font-size: 1.4rem; margin-bottom: 12px; }
.w-consent__box p { font-size: 15px; color: var(--w-text-dim); }
.w-consent__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
/* flex: 1 1 200px = obe tlacitka maji stejnou vahu i po zalomeni na mobilu. */
.w-consent__actions .w-btn { flex: 1 1 200px; }
.w-consent__note { margin: 14px 0 0; font-size: 13px; color: var(--w-text-faint); }
.w-consent__state { margin: 0 0 12px; font-size: 13px; color: var(--w-blue-bright); }
body.w-consent-open { overflow: hidden; }

/* ── ANIMACE ──────────────────────────────────────────────────────────────── */

/*
 * Prijizdejici souprava.
 *
 * Hodnoty scale nejsou linearni ani "hezke" - kopiruji 1/vzdalenost, protoze
 * presne tak roste zdanliva velikost objektu, ktery se blizi konstantni
 * rychlosti. Dlouho se skoro nic nedeje, pak to zrychli a nakonec souprava
 * projede za kameru. Vsimnete si, ze na konci je opacita 0 driv, nez scale
 * dosahne maxima: vlak "projede", nezmizi skokem.
 */
@keyframes w-approach {
    0%    { transform: translate3d(0, 0, 0) scale(0.045); opacity: 0.34; }
    8%    { transform: translate3d(0, 1px, 0) scale(0.055); opacity: 0.48; }
    16%   { transform: translate3d(0, 2px, 0) scale(0.070); opacity: 0.60; }
    24%   { transform: translate3d(0, 5px, 0) scale(0.095); opacity: 0.70; }
    32%   { transform: translate3d(0, 10px, 0) scale(0.140); opacity: 0.79; }
    38%   { transform: translate3d(0, 18px, 0) scale(0.220); opacity: 0.87; }
    42%   { transform: translate3d(0, 32px, 0) scale(0.360); opacity: 0.94; }
    45%   { transform: translate3d(0, 54px, 0) scale(0.620); opacity: 1; }
    47%   { transform: translate3d(0, 86px, 0) scale(1.050); opacity: 0.94; }
    48.5% { transform: translate3d(0, 135px, 0) scale(1.800); opacity: 0.70; }
    49.3% { transform: translate3d(0, 210px, 0) scale(3.100); opacity: 0.32; }
    50%   { transform: translate3d(0, 320px, 0) scale(5.200); opacity: 0; }
    100%  { transform: translate3d(0, 320px, 0) scale(5.200); opacity: 0; }
}

@keyframes w-approach-mobile {
    0%    { transform: translate3d(0, 0, 0) scale(0.045); opacity: 0.34; }
    8%    { transform: translate3d(0, 1px, 0) scale(0.055); opacity: 0.48; }
    16%   { transform: translate3d(0, 2px, 0) scale(0.070); opacity: 0.60; }
    24%   { transform: translate3d(0, 4px, 0) scale(0.092); opacity: 0.69; }
    32%   { transform: translate3d(0, 7px, 0) scale(0.130); opacity: 0.77; }
    38%   { transform: translate3d(0, 12px, 0) scale(0.200); opacity: 0.84; }
    42%   { transform: translate3d(0, 20px, 0) scale(0.300); opacity: 0.90; }
    45%   { transform: translate3d(0, 34px, 0) scale(0.500); opacity: 0.94; }
    47%   { transform: translate3d(0, 52px, 0) scale(0.820); opacity: 0.84; }
    48.5% { transform: translate3d(0, 82px, 0) scale(1.300); opacity: 0.57; }
    49.3% { transform: translate3d(0, 125px, 0) scale(2.200); opacity: 0.24; }
    50%   { transform: translate3d(0, 190px, 0) scale(3.800); opacity: 0; }
    100%  { transform: translate3d(0, 190px, 0) scale(3.800); opacity: 0; }
}

/* V dalce je kuzel skoro neviditelny. S priblizenim se rozevira a prodluzuje
   dolu po kolejich; po prujezdu zmizi spolu se svetly. */
@keyframes w-beam {
    0%, 8% { opacity: 0.015; transform: scale(0.18, 0.24); }
    24%    { opacity: 0.03;  transform: scale(0.28, 0.42); }
    38%    { opacity: 0.07;  transform: scale(0.48, 0.70); }
    45%    { opacity: 0.12;  transform: scale(0.72, 0.96); }
    48.5%  { opacity: 0.10;  transform: scale(0.96, 1.08); }
    50%, 100% { opacity: 0; transform: scale(1.12, 1.16); }
}

@keyframes w-halo {
    0%, 12% { opacity: 0.12; }
    38%     { opacity: 0.48; }
    46%     { opacity: 0.88; }
    49%     { opacity: 0.42; }
    50%, 100% { opacity: 0; }
}

/* Odlesk na kolejich ma smysl az kdyz je co odrazet. */
@keyframes w-gleam {
    0%, 32%   { opacity: 0; }
    42%       { opacity: 0.20; }
    47%       { opacity: 0.36; }
    49%       { opacity: 0.24; }
    50%, 100% { opacity: 0; }
}

/* Tunel v dalce se rozsviti spolu s blizici se soupravou. */
@keyframes w-ambient {
    0%, 10%  { opacity: 0.35; }
    38%      { opacity: 0.72; }
    48%      { opacity: 0.92; }
    52%, 100% { opacity: 0.35; }
}

@keyframes w-float {
    0%   { transform: translate3d(0, 0, 0); opacity: 0; }
    15%  { opacity: 0.5; }
    85%  { opacity: 0.3; }
    100% { transform: translate3d(22px, -140px, 0); opacity: 0; }
}

@keyframes w-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

/* Pet synchronizovanych 1,5s zablesku v prvni polovine 15s loopu. */
@keyframes w-signal-amber {
    0%, 6%, 10%, 16%, 20%, 26%, 30%, 36%, 40%, 46%, 50%, 100% {
        opacity: 0.12;
        box-shadow: 0 0 0 0 rgba(247, 169, 59, 0), inset 0 0 0 1px rgba(255, 255, 255, 0.10);
    }
    2%, 4%, 12%, 14%, 22%, 24%, 32%, 34%, 42%, 44% {
        opacity: 1;
        box-shadow: 0 0 22px 5px rgba(247, 169, 59, 0.50), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    }
}

@keyframes w-signal-green {
    0%, 49.5% {
        opacity: 0.10;
        box-shadow: 0 0 0 0 rgba(47, 174, 106, 0), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    }
    50.5%, 96% {
        opacity: 1;
        box-shadow: 0 0 22px 5px rgba(47, 174, 106, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    }
    100% {
        opacity: 0.10;
        box-shadow: 0 0 0 0 rgba(47, 174, 106, 0), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    }
}

/* ── MOBIL ────────────────────────────────────────────────────────────────── */

/*
 * Mobilni hero neni zmenseny desktop. Ubeznik jde na stred a nahoru, obsah
 * se zarovna dolu - tunel tak zabira horni tretinu obrazovky a souprava
 * prijizdi proti divakovi, ne zboku. Scrim se meni z vodorovneho gradientu
 * na svisly, protoze text uz neni vlevo, ale dole.
 */
@media (max-width: 860px) {
    :root { --w-vp-x: 50%; --w-vp-y: 15%; }

    /*
     * Mobil ma vlastni prubeh prujezdu, ne jen zmenseny desktop.
     * Duvod je konkretni: na 390 px sirky zabere souprava v posledni fazi
     * celou obrazovku vcetne headlinu. Vrchol je proto nizsi (4,5 misto 6,8)
     * a opacita klesa driv - vlak porad projede az za kameru, ale nepreexponuje
     * text. Ranni faze zustava stejna, aby prichod pusobil identicky.
     */
    .w-train { animation-name: w-approach-mobile; }
    /* Mensi halo i kuzel: na uzkem displeji je jejich desktopova velikost
       fakticky celoplosny zablesk. */
    .w-train__halo { width: 300px; height: 300px; margin: -150px 0 0 -150px; }
    .w-train__beam { width: 620px; height: 620px; margin: -2px 0 0 -310px; }
    .w-train__lamp:nth-of-type(1) { transform: translateX(-30px); }
    .w-train__lamp:nth-of-type(2) { transform: translateX(30px); }

    .w-hero {
        align-items: flex-end;
        min-height: 92svh;
        padding: 74px 0 54px;
    }
    .w-hero__content { max-width: none; }
    .w-hero h1 { font-size: clamp(2rem, 8.4vw, 2.9rem); }
    .w-hero__lead { font-size: 1rem; }

    /* Svisly gradient misto vodorovneho: text uz neni vlevo, ale dole.
       Zlom zacina nad ocnim radkem - eyebrow i headline tak lezi na tmave
       plose i v okamziku, kdy souprava sviti naplno. */
    .w-hero__scrim {
        background: linear-gradient(180deg,
            transparent 0%,
            rgba(2, 4, 10, 0.06) 15%,
            rgba(2, 4, 10, 0.48) 25%,
            rgba(2, 4, 10, 0.86) 34%,
            rgba(2, 4, 10, 0.97) 46%,
            var(--w-bg) 62%);
    }
    .w-hero__vignette {
        background:
            radial-gradient(ellipse 120% 46% at var(--w-vp-x) var(--w-vp-y), transparent 30%, rgba(2, 4, 10, 0.5) 78%, var(--w-bg) 100%),
            linear-gradient(180deg, rgba(2, 4, 10, 0.9) 0%, transparent 16%);
    }

    /* Kolej i souprava jsou uz zakotvene v ubezniku, takze staci scenu
       zmensit - perspektiva zustava. */
    .w-tunnel__rails { width: 210vmax; }
    .w-tunnel__ambient { width: min(150vw, 520px); }
    .w-tunnel__gleam { width: 150vmax; }
    .w-tunnel__dust { display: none; }

    .w-signal { right: 6%; top: 9%; width: 40px; }
    .w-signal__lamp { width: 16px; height: 16px; }
    .w-signal__lamp + .w-signal__lamp { margin-top: 7px; }
    .w-signal__mast { height: 14vh; }
}

@media (max-width: 720px) {
    body { font-size: 16px; }
    .w-section { padding: 64px 0; }
    .w-form { padding: 22px; }
    .w-header__inner { min-height: 58px; }
    .w-logo img { height: 24px; }
    .w-signature { font-size: 11px; }
    /* V tlacitku staci vlajka - cely nazev je videt hned po rozbaleni. */
    .w-lang__toggle .w-lang__name { display: none; }
    .w-lang__toggle { padding: 5px 8px 5px 6px; }
    .w-btn { width: 100%; }
    .w-hero__actions .w-btn { width: auto; flex: 1 1 210px; }
}

/* Velmi uzke telefony (375 px a mene): souprava se musi vejit nad text
   i v nejjasnejsi fazi, takze ubeznik jde jeste vys. */
@media (max-width: 400px) {
    :root { --w-vp-y: 12%; }
    .w-hero { min-height: 96svh; }
    .w-signal { right: 5%; top: 7%; width: 34px; }
    .w-signal__lamp { width: 14px; height: 14px; }
}

/* ── PRISTUPNOST: OMEZENY POHYB ───────────────────────────────────────────── */

/*
 * Nezastavujeme jen animace - to by nechalo scenu v nahodnem snimku (napr.
 * svetla uplne pruhledna). Misto toho se prvky nastavi do stavu, ktery dava
 * smysl staticky: souprava v prijatelne vzdalenosti, navestidlo sviti.
 */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .w-train,
    .w-train__beam,
    .w-train__halo,
    .w-tunnel__ambient,
    .w-tunnel__gleam,
    .w-signal__lamp { animation: none !important; }
    .w-train { transform: translate3d(0, 20px, 0) scale(0.30); opacity: 0.82; }
    .w-train__beam { opacity: 0.055; transform: scale(0.44, 0.62); }
    .w-train__halo { opacity: 0.34; }
    .w-tunnel__ambient { opacity: 0.8; }
    .w-tunnel__gleam { opacity: 0.18; }
    .w-tunnel__dust { display: none; }
    .w-signal__lamp--amber { opacity: 0.10; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
    .w-signal__lamp--green {
        opacity: 1;
        box-shadow: 0 0 22px 5px rgba(47, 174, 106, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    }
    .js .w-reveal { opacity: 1; transform: none; }
}

/* Web je zamerne temna scena, ne motiv - svetly rezim ho neprebarvuje. */
@media (prefers-color-scheme: light) {
    body { background: var(--w-bg); color: var(--w-text); }
}
.altcha-footer {
    display: none !important;
}
fieldset {
    border: none;
}
altcha-widget {
    width: 100% !important;
    max-width: unset !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}
.altcha {
    max-width: unset !important;
    width: 100% !important;
    border-radius: 5px !important;
}
.altcha-main {
    max-width: unset !important;
    width: 100% !important;
    background-color: #0A0E17 !important;
    color: #ffffff !important;
}
.altcha-error {
    color: #ffffff !important;
    font-weight: bold;
    margin-top: 10px;
}
.altcha-checkbox input:checked {
    background-color: #2C99FC !important;
    border-color: #1550DC !important;
}
.altcha-checkbox input:checked + svg {
    color: #000 !important;
}
.altcha-spinner {
    border: 1px solid #2C99FC !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NOVY WEB - komponenty, ktere teaser landing nemel
   ───────────────────────────────────────────────────────────────────────────
   Vsechno nize stoji na stejnych promennych jako zbytek souboru (--w-*), takze
   zmena barvy nebo poloměru se dal dela na jednom miste. Zadny novy font,
   zadna nova knihovna: web ma zustat rychly a bez blokujicich zavislosti.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── HLAVNI NAVIGACE ─────────────────────────────────────────────────────── */

.w-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.w-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.w-nav__item {
    position: relative;
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--w-text-dim);
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.18s ease, background-color 0.18s ease;
}
.w-nav__item::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--w-blue);
    transform: scaleX(0);
    transition: transform 0.18s ease;
}
.w-nav__item:hover { color: var(--w-text); background: rgba(122, 162, 220, 0.055); }
/* Aktivni polozka se nepozna jen barvou: podtrzeni ji odlisi i tomu, kdo
   rozdil odstinu nevidi. */
.w-nav__item[aria-current="page"] {
    color: var(--w-text);
    background: rgba(44, 153, 252, 0.055);
}
.w-nav__item[aria-current="page"]::after { transform: scaleX(1); }
.w-nav-cta {
    padding: 7px 12px;
    border: 1px solid rgba(44, 153, 252, 0.26);
    border-radius: 999px;
    color: var(--w-text-dim);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.w-nav-cta:hover,
.w-nav-cta[aria-current="page"] { color: var(--w-text); border-color: rgba(44, 153, 252, 0.52); background: rgba(44, 153, 252, 0.08); }
.w-menu { display: none; position: relative; }
.w-menu__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid var(--w-line-strong);
    border-radius: 10px;
    color: var(--w-text-dim);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.w-menu__toggle::-webkit-details-marker { display: none; }
.w-menu__toggle svg { width: 16px; height: 13px; }
.w-menu[open] .w-menu__toggle { color: var(--w-text); border-color: rgba(44, 153, 252, 0.45); background: var(--w-surface); }
.w-menu__panel {
    position: absolute;
    z-index: 90;
    top: calc(100% + 10px);
    right: 0;
    width: min(260px, calc(100vw - 32px));
    padding: 8px;
    background: rgba(7, 11, 19, 0.98);
    border: 1px solid var(--w-line-strong);
    border-radius: var(--w-radius);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
}
.w-menu__panel ul { margin: 0; padding: 0; list-style: none; }
.w-menu__panel a {
    display: block;
    padding: 11px 12px;
    border-radius: 8px;
    color: var(--w-text-dim);
    font-size: 15px;
    font-weight: 650;
    text-decoration: none;
}
.w-menu__panel a:hover { color: var(--w-text); background: rgba(122, 162, 220, 0.08); }
.w-menu__panel a[aria-current="page"] { color: var(--w-blue-bright); background: rgba(44, 153, 252, 0.09); }

/* ── HLAVICKA SEKCE ──────────────────────────────────────────────────────── */

.w-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 8px;
}
.w-section__head h2 { margin-bottom: 0; }
.w-section__more { font-size: 14px; font-weight: 700; white-space: nowrap; }
.w-section__lead { margin: 14px 0 0; }

/* ── HLAVNI PROJEKT NA HOMEPAGE ──────────────────────────────────────────── */

.w-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: clamp(42px, 7vw, 84px);
    align-items: center;
    margin-top: 12px;
    padding: 34px 0 12px;
    border-top: 1px solid var(--w-line);
}
.w-featured__title { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 16px; }
.w-featured__title h2 { margin: 0; }
.w-featured__actions { margin: 22px 0 10px; }
.w-featured__showcase { padding-left: clamp(30px, 5vw, 58px); border-left: 1px solid var(--w-line-strong); }
.w-featured__preview { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 8; margin-bottom: 24px; border: 1px solid var(--w-line); border-radius: var(--w-radius); background: var(--w-surface); color: var(--w-text); text-decoration: none; }
.w-featured__preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.w-featured__preview span { position: absolute; left: 14px; bottom: 12px; padding: 6px 9px; border-radius: 6px; background: rgba(2, 4, 10, .78); color: var(--w-text); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(8px); }
.w-featured__meter { padding-top: 20px; border-top: 1px solid var(--w-line); }
.w-featured__progress { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--w-text-dim); }
.w-featured__progress strong { color: var(--w-text); }
.w-card__glyph {
    position: absolute;
    left: 50%;
    top: 58%;
    width: 62%;
    height: 2px;
    transform: translate(-50%, -50%);
    background: linear-gradient(90deg, transparent, var(--w-blue-glow) 45%, var(--w-blue-bright) 50%, var(--w-blue-glow) 55%, transparent);
    box-shadow: 0 0 26px 6px rgba(44, 153, 252, 0.18);
}

.w-badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--w-text-dim);
    background: var(--w-surface);
    border: 1px solid var(--w-line-strong);
    border-radius: 999px;
}
.w-badge--live {
    color: #06121f;
    background: var(--w-blue);
    border-color: transparent;
}

.w-progress {
    display: block;
    width: 100%;
    height: 12px;
    margin: 10px 0 12px;
    overflow: hidden;
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: var(--w-surface-2);
}
.w-progress::-webkit-progress-bar { background: var(--w-surface-2); border-radius: 999px; }
.w-progress::-webkit-progress-value { background: linear-gradient(90deg, var(--w-blue-deep), var(--w-blue-bright)); border-radius: 999px; }
.w-progress::-moz-progress-bar { background: linear-gradient(90deg, var(--w-blue-deep), var(--w-blue-bright)); border-radius: 999px; }

/* ── KARTY AKTUALIT ──────────────────────────────────────────────────────── */

.w-cards {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    margin-top: 28px;
}
.w-card {
    background: var(--w-surface);
    border: 1px solid var(--w-line);
    border-radius: var(--w-radius-lg);
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.w-card:hover { border-color: rgba(44, 153, 252, 0.40); transform: translateY(-2px); }
/* Klikaci je cela karta, ale odkaz je jen jeden - dva odkazy na tentyz cil
   (obrazek a titulek) by ctecka obrazovky precetla dvakrat. */
.w-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.w-card__link:hover .w-card__title { color: var(--w-blue-bright); }
.w-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--w-bg-2); overflow: hidden; }
.w-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w-card__media--placeholder {
    background:
        radial-gradient(ellipse 50% 40% at 50% 60%, rgba(44, 153, 252, 0.14), transparent 70%),
        linear-gradient(180deg, var(--w-surface-2) 0%, var(--w-bg) 100%);
}
.w-card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 22px 22px 24px; }
.w-card__date { font-size: 13px; color: var(--w-text-faint); }
.w-card__title { font-size: 1.08rem; margin: 8px 0 10px; transition: color 0.18s ease; }
.w-card__excerpt { font-size: 15px; color: var(--w-text-dim); margin-bottom: 16px; }
.w-card__more { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--w-blue); }

/* ── HLAVICKA STRANKY, PRAZDNY STAV, STRANKOVANI ─────────────────────────── */

.w-page-head { margin-bottom: 10px; }
.w-page-head h1 { margin-bottom: 10px; }
.w-page-head__lead { font-size: 1.05rem; color: var(--w-text-dim); max-width: 62ch; }

.w-empty {
    margin: 34px 0;
    padding: 34px 26px;
    text-align: center;
    background: var(--w-surface);
    border: 1px dashed var(--w-line-strong);
    border-radius: var(--w-radius-lg);
}
.w-empty p { color: var(--w-text-dim); margin-bottom: 18px; }
.w-empty p:last-child { margin-bottom: 0; }

.w-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--w-line);
}
.w-pager__link { font-size: 14px; font-weight: 700; }
.w-pager__state { font-size: 14px; color: var(--w-text-faint); margin-left: auto; }
.w-pager__link[rel="next"] { margin-left: 0; }

/* ── CLANEK ──────────────────────────────────────────────────────────────── */

.w-article__head { margin-bottom: 28px; }
.w-article__head--with-image {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(34px, 6vw, 58px) clamp(24px, 5vw, 48px);
    background: var(--w-surface);
    border: 1px solid var(--w-line);
    border-radius: var(--w-radius-lg);
}
.w-article__head--with-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(3, 6, 12, 0.95) 0%, rgba(3, 6, 12, 0.80) 58%, rgba(3, 6, 12, 0.88) 100%),
        linear-gradient(180deg, rgba(3, 6, 12, 0.20), rgba(3, 6, 12, 0.68));
}
.w-article__head--with-image > :not(.w-article__head-image) { position: relative; z-index: 2; }
.w-article__head-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.72) contrast(0.92);
}
.w-article__date { display: block; font-size: 14px; color: var(--w-text-faint); margin-bottom: 10px; }
.w-article__perex { font-size: 1.08rem; color: var(--w-text-dim); max-width: 62ch; }
/* Telo clanku pise redakce v sanitizovanem HTML nebo ve starsim Markdownu. */
.w-article__body { font-size: 1.02rem; }
.w-article__body p, .w-article__body li { color: var(--w-text-dim); }
.w-article__body p { margin-bottom: 1.1em; }
.w-article__body h2 { font-size: 1.35rem; margin: 40px 0 14px; }
.w-article__body h3 { font-size: 1.1rem; margin: 28px 0 10px; }
.w-article__body h4 { font-size: 1rem; margin: 24px 0 8px; }
.w-article__body ul, .w-article__body ol { padding-left: 22px; margin: 0 0 1.2em; }
.w-article__body li { margin-bottom: 7px; }
.w-article__body img { max-width: 100%; height: auto; border-radius: var(--w-radius); margin: 10px 0; }
.w-article__body figure { margin: 28px 0; }
.w-article__body figure img { display: block; margin-bottom: 9px; }
.w-article__body figcaption { font-size: 13px; color: var(--w-text-faint); }
.w-article__body blockquote {
    margin: 26px 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--w-blue-deep);
    color: var(--w-text);
}
.w-article__body blockquote p:last-child { margin-bottom: 0; }
.w-article__body code {
    padding: 2px 6px;
    font-size: 0.92em;
    background: var(--w-surface-2);
    border: 1px solid var(--w-line);
    border-radius: 6px;
}
.w-article__body pre {
    margin: 0 0 1.2em;
    padding: 18px 20px;
    overflow-x: auto;
    background: var(--w-surface-2);
    border: 1px solid var(--w-line);
    border-radius: var(--w-radius);
}
.w-article__body pre code { padding: 0; background: none; border: 0; }
.w-article__body hr { border: 0; border-top: 1px solid var(--w-line); margin: 34px 0; }
.w-article__back { margin-top: 40px; font-weight: 700; }

/* Konzistentni mezera mezi poslednim obsahovym blokem dokumentu a nasledujici
   plnosirkovou sekci (aktuality -> newsletter je prvni pouziti). */
.w-doc__section-end { padding-bottom: 72px; }

/* ── AKTIVNI PROJEKT ─────────────────────────────────────────────────────── */
.w-development-page { padding-bottom: 0; }
.w-development-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: clamp(44px, 7vw, 84px);
    align-items: center;
    padding: 26px 0 76px;
}
.w-development-hero h1 { margin: 18px 0 12px; }
.w-development-hero__lead { font-size: 1.15rem; color: var(--w-text); }
.w-development-visual {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid rgba(122, 162, 220, 0.14);
    border-radius: var(--w-radius-lg);
    background:
        radial-gradient(circle at 68% 52%, rgba(68, 175, 255, 0.20), transparent 4%),
        radial-gradient(ellipse 48% 28% at 65% 52%, rgba(44, 153, 252, 0.13), transparent 70%),
        linear-gradient(145deg, #080d17, #02040a 72%);
}
.w-development-visual::before,
.w-development-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(118deg, transparent 43%, rgba(122, 196, 255, 0.08) 50%, transparent 57%);
}
.w-development-visual::after { transform: scaleX(-1); opacity: 0.45; }
.w-development-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.w-development-visual::before,
.w-development-visual::after { z-index: 1; pointer-events: none; }
.w-development-progress {
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid var(--w-line-strong);
}
.w-development-progress__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.w-development-progress__head .w-label { margin-bottom: 6px; }
.w-development-progress__head h2 { margin: 0; }
.w-development-progress__value { flex: 0 0 auto; font-size: 1.6rem; color: var(--w-text); }
.w-development-content {
    display: grid;
    grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(52px, 8vw, 96px);
    padding-top: 70px;
    border-top: 1px solid var(--w-line);
}
.w-development-content > section > h2 { margin-top: 0; }
.w-reveal-list { margin: 0; }
.w-reveal-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--w-line); }
.w-reveal-list dt { color: var(--w-text-dim); }
.w-reveal-list dd { margin: 0; font-weight: 700; color: var(--w-text); }
.w-reveal-list .is-secret dd { color: var(--w-text-faint); }
.w-roadmap { position: relative; margin: 4px 0 0; padding: 0 0 0 34px; list-style: none; }
.w-roadmap::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 12px; width: 1px; background: var(--w-line-strong); }
.w-roadmap__item { position: relative; padding: 0 0 38px 24px; }
.w-roadmap__item:last-child { padding-bottom: 24px; }
.w-roadmap__item::before { content: ""; position: absolute; left: -34px; top: 6px; width: 13px; height: 13px; border: 2px solid var(--w-text-faint); border-radius: 50%; background: var(--w-bg); }
.w-roadmap__item--current::before { border-color: var(--w-blue-bright); background: var(--w-blue); box-shadow: 0 0 16px var(--w-blue-glow); }
.w-roadmap__item--completed::before { border-color: #71d59a; background: #71d59a; }
.w-roadmap__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; margin-bottom: 7px; }
.w-roadmap__date { font-size: 14px; font-weight: 700; color: var(--w-text); }
.w-roadmap__content h3 { margin: 0 0 7px; font-size: 1.12rem; }
.w-roadmap__content p { margin: 0; max-width: 52ch; }
.w-roadmap__status { font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: var(--w-text-faint) !important; }
.w-roadmap__item--current .w-roadmap__status,
.w-roadmap__item--current .w-roadmap__content h3 { color: var(--w-blue-bright) !important; }
.w-roadmap-note { margin: 8px 0 0 34px; padding: 4px 0 4px 18px; font-size: 14px; }
.w-history-context { margin-top: 88px; padding-top: 70px; border-top: 1px solid var(--w-line); }

/* ── FAKTA, GALERIE, ODRAZKY SE ZASKRTNUTIM ──────────────────────────────── */

.w-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 26px 0; font-size: 15px; }
.w-facts dt { color: var(--w-text-faint); }
.w-facts dd { margin: 0; color: var(--w-text-dim); }

.w-project-fact-table { display: grid; margin: 28px 0 0; border-top: 1px solid var(--w-line); }
.w-project-fact-table > div { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(0, 1.3fr); gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--w-line); }
.w-project-fact-table dt { color: var(--w-text-faint); font-size: 13px; }
.w-project-fact-table dd { margin: 0; color: var(--w-text); font-size: 14px; font-weight: 650; text-align: right; }

/* FAQ je bez JavaScriptu cele citelne. Skript po inicializaci odpovedi sbali
   a dale meni pouze hidden + aria-expanded na nativnim buttonu. */
.w-faq { margin-top: var(--w-content-block-gap); padding-top: var(--w-content-block-gap); border-top: 1px solid var(--w-line); }
.w-faq-page { padding-bottom: var(--w-section-transition-space); }
.w-faq-page .w-faq:first-of-type { margin-top: 28px; }
.w-faq > h2 { margin: 0 0 20px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.w-faq__items { border-top: 1px solid var(--w-line-strong); }
.w-faq__item { border-bottom: 1px solid var(--w-line-strong); }
.w-faq__item h3 { margin: 0; }
.w-faq__question { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 2px; border: 0; background: transparent; color: var(--w-text); font: inherit; font-size: 1rem; font-weight: 720; text-align: left; cursor: pointer; }
.w-faq__question:hover { color: var(--w-blue-bright); }
.w-faq__question:focus-visible { outline: 2px solid var(--w-blue); outline-offset: 4px; border-radius: 3px; }
.w-faq__icon { position: relative; flex: 0 0 16px; width: 16px; height: 16px; }
.w-faq__icon::before, .w-faq__icon::after { content: ""; position: absolute; left: 1px; top: 7px; width: 14px; height: 2px; background: currentColor; transition: transform .18s ease; }
.w-faq__question[aria-expanded="false"] .w-faq__icon::after { transform: rotate(90deg); }
.w-faq__answer { max-width: 72ch; padding: 0 44px 20px 2px; }
.w-faq__answer p { margin: 0; color: var(--w-text-dim); }

.w-gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin: 26px 0; }
.w-gallery__item { margin: 0; }
.w-gallery__item img { width: 100%; height: auto; border-radius: var(--w-radius); border: 1px solid var(--w-line); }

.w-checklist { list-style: none; padding: 0; margin: 26px 0; }
.w-checklist li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--w-text-dim); }
.w-checklist li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.55em;
    width: 12px;
    height: 6px;
    border-left: 2px solid var(--w-blue);
    border-bottom: 2px solid var(--w-blue);
    transform: rotate(-45deg);
}

.w-doc__links { margin-top: 40px; }
.w-newsletter-cta { text-align: left; }
.w-newsletter-cta p { margin-bottom: 18px; }

/* ── CHYBOVA STRANKA ─────────────────────────────────────────────────────── */

.w-status__code {
    font-size: clamp(3.4rem, 12vw, 6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
    /* Cislo je dekorace, ne sdeleni: odsud ho ctecka obrazovky necte
       (aria-hidden v sablone) a barvou ustupuje nadpisu. */
    color: transparent;
    background: linear-gradient(180deg, rgba(44, 153, 252, 0.55), rgba(44, 153, 252, 0.08));
    -webkit-background-clip: text;
    background-clip: text;
}

/* ── PROJECT-ORIENTED PORTFOLIO A DETAILY ───────────────────────────────── */

.w-projects-page,
.w-project-detail-page { padding-top: 54px; }
.w-portfolio-head { max-width: 760px; padding: 30px 0 34px; }
.w-portfolio-head h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); margin-bottom: 16px; }
.w-portfolio-head p { max-width: 64ch; color: var(--w-text-dim); font-size: 1.08rem; }
.w-portfolio-section { padding: var(--w-content-block-gap) 0 0; }
.w-portfolio-section + .w-portfolio-section { margin-top: var(--w-content-block-gap); border-top: 1px solid var(--w-line); }
.w-portfolio-section__head { max-width: 720px; }
.w-portfolio-section__head h2 { font-size: clamp(1.65rem, 3.6vw, 2.35rem); margin-bottom: 12px; }
.w-portfolio-section__head p { color: var(--w-text-dim); }

.w-active-project {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    margin-top: 28px;
    overflow: hidden;
    background: linear-gradient(125deg, rgba(10, 14, 23, 0.98), rgba(5, 8, 15, 0.96));
    border: 1px solid var(--w-line-strong);
    border-radius: var(--w-radius-lg);
}
.w-active-project__media { position: relative; min-height: 390px; overflow: hidden; background: var(--w-bg); }
.w-active-project__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w-active-project__body { align-self: center; padding: clamp(30px, 5vw, 58px); }
.w-active-project__body h2 { margin: 16px 0 14px; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.w-active-project__body h2 a { color: var(--w-text); text-decoration: none; }
.w-active-project__lead { color: var(--w-text-dim); }
.w-active-project__progress { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--w-line); }
.w-active-project__progress > div { display: grid; grid-template-columns: auto 1fr auto; gap: 10px 16px; align-items: baseline; margin-bottom: 11px; font-size: 13px; }
.w-active-project__progress span { color: var(--w-text-faint); }
.w-active-project__progress strong:first-of-type { color: var(--w-text); font-size: 14px; }
.w-active-project__progress strong:last-of-type { color: var(--w-blue-bright); font-size: 1.1rem; }
.w-active-project__actions { margin: 24px 0 0; }

.w-project-story { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); gap: clamp(40px, 8vw, 110px); margin-top: var(--w-content-block-gap); padding-top: var(--w-content-block-gap); border-top: 1px solid var(--w-line); }
.w-project-story > header { position: sticky; top: 96px; align-self: start; }
.w-project-story > header h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
.w-project-story__content.w-doc { padding: 0; }
.w-project-story__content.w-doc h2:first-of-type { margin-top: 0; }
.w-project-story__content .w-doc__box { background: transparent; border-width: 0 0 0 2px; border-radius: 0; padding: 2px 0 2px 24px; }

.w-project-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
    gap: clamp(36px, 7vw, 86px);
    align-items: center;
    padding: 34px 0 var(--w-content-block-gap);
}
.w-project-detail-hero__media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--w-radius-lg); border: 1px solid var(--w-line); background: var(--w-surface); }
.w-project-detail-hero__media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.w-project-detail-hero__status { color: var(--w-blue); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.w-project-detail-hero h1 { margin: 14px 0 18px; font-size: clamp(2rem, 4.5vw, 3.25rem); }
.w-project-detail-hero__lead { color: var(--w-text-dim); font-size: 1.08rem; }
.w-project-detail-hero__platforms { margin-top: 24px; color: var(--w-text-faint); font-size: 14px; }
.w-project-detail-hero__platforms strong { color: var(--w-text); }
.w-project-detail-content { max-width: 760px; margin: 0 auto; padding: var(--w-content-block-gap) 0; border-top: 1px solid var(--w-line); }
.w-project-status-note { margin-top: 46px; padding: 24px 0 0 24px; border-top: 1px solid var(--w-line); border-left: 2px solid var(--w-blue); }
.w-project-status-note strong { color: var(--w-text); }
.w-project-status-note p { margin: 8px 0 0; }
.w-project-detail-tail { padding-top: 4px; }
.w-related-news { margin-top: var(--w-content-block-gap); padding-top: var(--w-content-block-gap); border-top: 1px solid var(--w-line); }
.w-related-news h2,
.w-other-projects h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.w-other-projects { margin-top: var(--w-content-block-gap); padding-top: var(--w-content-block-gap); border-top: 1px solid var(--w-line); }
.w-project-detail-tail > .w-related-news:first-child,
.w-project-detail-tail > .w-other-projects:first-child { margin-top: 0; }
.w-project-detail-page > .w-newsletter-cta,
.w-projects-page > .w-newsletter-cta { margin-top: 0; }

.w-card__project,
.w-article__project { color: var(--w-blue-bright); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.w-card__project { margin-bottom: 4px; }
.w-article__project { display: inline-block; margin-bottom: 12px; text-decoration: none; }
.w-card__project + .w-card__date { margin-top: 2px; }
.w-doc__section-end.w-content-before-signup { padding-bottom: var(--w-section-transition-space); }

/* Homepage strida velmi jemne vrstvy a sirku obsahu. Hero zustava nedotcene. */
.w-home-featured { background: radial-gradient(circle at 82% 50%, rgba(44, 153, 252, .055), transparent 38%), var(--w-bg-2); }
.w-home-news { background: linear-gradient(180deg, var(--w-bg) 0%, #040710 100%); }
.w-home-history { background: radial-gradient(circle at 12% 15%, rgba(21, 80, 220, .045), transparent 32%), var(--w-bg); }
.w-home-history .w-section__head { max-width: 940px; }

/* ── UZKE DISPLEJE ───────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
    .w-featured { grid-template-columns: 1fr; gap: 30px; }
    .w-featured__showcase { padding: 28px 0 0; border-top: 1px solid var(--w-line-strong); border-left: 0; }
    .w-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .w-development-hero { grid-template-columns: 1fr; }
    .w-development-visual { max-width: 680px; width: 100%; }
    .w-development-content { grid-template-columns: 1fr; gap: 58px; }
    .w-active-project { grid-template-columns: 1fr; }
    .w-active-project__media { min-height: 0; aspect-ratio: 16 / 8; }
    .w-project-detail-hero { grid-template-columns: 1fr; }
    .w-project-detail-hero__media { max-width: 760px; }
}

@media (max-width: 860px) {
    .w-nav { display: none; }
    .w-nav-cta { display: none; }
    .w-menu { display: block; }
    .w-section__head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .w-project-story { grid-template-columns: 1fr; gap: 30px; }
    .w-project-story > header { position: static; }
}

@media (max-width: 720px) {
    :root {
        --w-section-space: 64px;
        --w-section-transition-space: 82px;
        --w-content-block-gap: 62px;
    }
    .w-cards { grid-template-columns: 1fr; }
    .w-projects { grid-template-columns: 1fr; }
    .w-development-hero { padding-bottom: 44px; }
    .w-development-progress { margin-top: 28px; padding-top: 22px; }
    .w-development-progress__head { align-items: flex-start; }
    .w-development-progress__value { font-size: 1.3rem; }
    .w-development-content { padding-top: 52px; gap: 48px; }
    .w-roadmap { padding-left: 27px; }
    .w-roadmap__item { padding-left: 18px; }
    .w-roadmap__item::before { left: -27px; }
    .w-roadmap-note { margin-left: 27px; }
    .w-history-context { margin-top: 68px; padding-top: 54px; }
    .w-doc__section-end { padding-bottom: 54px; }
    .w-doc__section-end.w-content-before-signup { padding-bottom: var(--w-section-transition-space); }
    .w-article__head--with-image { padding: 30px 22px; }
    .w-facts { grid-template-columns: 1fr; gap: 2px 0; }
    .w-facts dd { margin-bottom: 12px; }
    .w-pager { flex-wrap: wrap; }
    .w-pager__state { width: 100%; margin-left: 0; order: 3; text-align: center; }
    /* .w-btn ma na teto sirce width:100%; v prazdnem stavu a na chybove
       strance by se tim tlacitka roztahla pres celou sirku karty. */
    .w-empty .w-btn, .w-status__actions .w-btn { width: auto; }
    .w-projects-page, .w-project-detail-page { padding-top: 34px; }
    .w-portfolio-head { padding-top: 18px; }
    .w-active-project__media { aspect-ratio: 16 / 10; }
    .w-active-project__body { padding: 28px 24px 30px; }
    .w-active-project__progress > div { grid-template-columns: 1fr auto; }
    .w-active-project__progress span { grid-column: 1 / -1; }
    .w-project-detail-hero { padding-top: 20px; }
    .w-project-detail-content { padding-left: 0; padding-right: 0; }
    .w-project-status-note { padding-left: 18px; }
    .w-project-fact-table > div { grid-template-columns: 105px minmax(0, 1fr); gap: 12px; }
    .w-faq__question { padding: 18px 0; }
    .w-faq__answer { padding-right: 24px; }
}
