/*
 * ------------------------------------------------------------------
 * VAJNORY EDITORIAL — design tokens
 * Všetky nové komponenty stoja na týchto premenných.
 * ------------------------------------------------------------------
 */
:root {
    --color-navy: #1F3340;
    --color-blue: #2F6F94;
    --color-sky: #7EB8D4;
    --color-cream: #F7F3EA;
    --color-white: #FFFDF8;
    --color-gold: #C4A35A;
    --color-vine: #70835A;
    --color-ink: #1F3340;
    --color-muted: #69777E;

    --font-serif: Fraunces, Georgia, serif;
    --font-sans: Manrope, system-ui, sans-serif;

    --container: 1240px;
    --content-width: 680px;

    --space-section: 140px;
    --space-section-mobile: 72px;

    --line-color: rgba(31, 51, 64, 0.16);

    /* Skratky, ktoré používajú staršie pravidlá v tomto súbore. */
    --navy: var(--color-blue);
    --cream: var(--color-cream);
    --gold: var(--color-gold);
    --ink: var(--color-ink);
    --mute: var(--color-muted);
    --sky: var(--color-sky);
    --ice: #EFE9DA;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Plocha za bezpečnými zónami a pri prepnutí cez okraj (rubber band) na iOS. */
    background-color: var(--ice);
}

body {
    font-family: Manrope, system-ui, sans-serif;
    color: var(--ink);
    background: var(--cream);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 80;
    background: #fff;
    color: var(--navy);
    padding: 0.6rem 1rem;
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    padding-top: env(safe-area-inset-top, 0px);
    /* Pri vrchu stránky len veľmi jemný cream, po scrolle plné podložie. */
    background: linear-gradient(180deg, rgba(247, 243, 234, 0.62) 0%, rgba(247, 243, 234, 0.34) 70%, rgba(247, 243, 234, 0) 100%);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid transparent;
    transition: background 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

/* KDH nesmie byť vizuálne dominantné. */
.brand-kdh {
    height: 1.4rem;
    width: auto;
    opacity: 0.85;
}

.brand {
    font-family: Fraunces, Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy);
    white-space: nowrap;
    font-optical-sizing: none;
}

@media (max-width: 420px) {
    .brand {
        font-size: 0.92rem;
        letter-spacing: 0.06em;
    }
}

.site-header.is-scrolled,
.site-header.is-open,
.site-header.is-inner {
    background: rgba(247, 243, 234, 0.92);
    border-bottom-color: var(--line-color);
    box-shadow: none;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.nav-link {
    color: var(--navy);
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--gold);
}

.nav-cta {
    border: 1px solid rgba(31, 51, 64, 0.4);
    color: var(--color-navy);
    padding: 0.5rem 1.05rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-cta:hover,
.nav-cta:focus-visible {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: var(--color-cream);
}

.menu-toggle {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    -webkit-tap-highlight-color: transparent;
}

.menu-bar,
.menu-bar::before,
.menu-bar::after {
    display: block;
    width: 1.35rem;
    height: 1.5px;
    background: var(--navy);
    position: relative;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-bar::before,
.menu-bar::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-bar::before { top: -6px; }
.menu-bar::after { top: 6px; }

.menu-toggle.is-open .menu-bar {
    background: transparent;
}

.menu-toggle.is-open .menu-bar::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.is-open .menu-bar::after {
    top: 0;
    transform: rotate(-45deg);
}

.mobile-menu {
    background: var(--ice);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.32s ease, opacity 0.22s ease, transform 0.22s ease;
}

.mobile-menu.is-open {
    max-height: 32rem;
    opacity: 1;
    transform: translateY(0);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-menu a {
    display: block;
    color: var(--ink);
    padding: 0.95rem 0.25rem;
    min-height: 2.75rem;
    border-bottom: 1px solid rgba(47, 111, 148, 0.12);
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
    color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu {
        transition: none;
    }
}

/*
 * ------------------------------------------------------------------
 * SIGNATURE COMPONENT — .location-mark
 * ──── BRATISLAVA ────
 *        VAJNORY
 * Opakuje sa v hero, vo vízii a v pätičke. Je to hlavný prvok identity.
 * ------------------------------------------------------------------
 */
.location-mark {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
}

.location-mark-city {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--color-blue);
}

/* Posledná medzera z letter-spacingu sa oreže, aby značka lícovala s nadpisom. */
.location-mark-city > span:not(.location-line) {
    margin-right: -0.42em;
}

.location-line {
    display: block;
    width: clamp(2rem, 6vw, 5.5rem);
    height: 1px;
    background: var(--color-gold);
    transform-origin: left center;
}

.location-mark-city > .location-line:last-child {
    transform-origin: right center;
}

.location-mark-district {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.4vw, 3rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.2em;
    /* Bez text-indent: pri zarovnaní vľavo by značku odsunul od hrany nadpisu. */
    text-indent: 0;
    margin-right: -0.2em;
    text-transform: uppercase;
    color: var(--color-navy);
    font-optical-sizing: none;
}

.location-mark.is-centered {
    align-items: center;
}

/* Pri centrovaní treba koncovú medzeru naopak dorovnať, inak text ujde vľavo. */
.location-mark.is-centered .location-mark-district {
    margin-right: 0;
    text-indent: 0.2em;
}

.location-mark.is-light .location-mark-city {
    color: var(--color-sky);
}

.location-mark.is-light .location-mark-district {
    color: var(--color-white);
}

/* Rozsvietenie liniek pri načítaní: čiara vyrastie zo stredu von. */
.js.is-loaded .hero .location-line {
    animation: line-grow 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

/*
 * ------------------------------------------------------------------
 * HERO — full-bleed scéna Vajnôr
 * ------------------------------------------------------------------
 */
.hero {
    position: relative;
    width: 100%;
    min-height: 92vh;
    /* svh, nie dvh: výška sa nemení pri skrývaní adresného riadka na mobile. */
    min-height: 92svh;
    color: var(--color-ink);
    overflow: hidden;
    background: var(--color-cream);
}

.hero-scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-scene img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 52%;
}

/* Veľmi jemné dýchanie scenérie. Žiadny parallax, ktorý ruší čítanie. */
.js.is-loaded .hero-scene img {
    animation: scene-settle 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/*
 * Svetlý závoj, nie tmavý dramatický overlay. Cream zľava pod text,
 * zospodu prechod do farby nasledujúcej sekcie.
 */
.hero-wash {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(264deg, rgba(247, 243, 234, 0.96) 0%, rgba(247, 243, 234, 0.88) 26%, rgba(247, 243, 234, 0.42) 50%, rgba(247, 243, 234, 0) 72%),
        linear-gradient(180deg, rgba(247, 243, 234, 0.55) 0%, rgba(247, 243, 234, 0) 26%),
        linear-gradient(0deg, var(--color-cream) 0%, rgba(247, 243, 234, 0.6) 8%, rgba(247, 243, 234, 0) 24%);
}

.hero-stage {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    /* Portrét stojí vľavo, textový stĺpec vpravo. */
    justify-content: flex-end;
    width: 100%;
    min-height: 92vh;
    min-height: 92svh;
    padding: 7.5rem clamp(1.5rem, 6vw, 7rem) 4rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 0 1 42rem;
    max-width: 44vw;
}

.hero-title {
    margin-top: 2.25rem;
    font-family: var(--font-serif);
    font-size: clamp(4.5rem, 8vw, 8rem);
    font-weight: 600;
    line-height: 0.94;
    letter-spacing: 0.01em;
    color: var(--color-navy);
    font-optical-sizing: none;
}

.hero-slogan {
    margin-top: 1.75rem;
    max-width: 22ch;
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.1vw, 1.95rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.35;
    color: var(--color-blue);
    font-optical-sizing: none;
}

/* Funkcia kandidáta ako drobný redakčný údaj, nie ako titulok. */
.hero-role {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.6rem;
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.hero-role::before {
    content: "";
    display: block;
    width: 2.5rem;
    height: 1px;
    background: var(--line-color);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-top: 2.75rem;
}

/* Portrét je druhý najsilnejší prvok hero — musí siahať takmer po celej výške. */
.hero-photo {
    position: absolute;
    left: clamp(-1rem, 0.5vw, 2rem);
    right: auto;
    bottom: 0;
    z-index: 2;
    height: 100%;
    width: auto;
    max-width: 56vw;
    object-fit: contain;
    object-position: left bottom;
    pointer-events: none;
    filter: drop-shadow(0 28px 48px rgba(31, 51, 64, 0.24));
}

.hero-kdh {
    height: 2.1rem;
    width: auto;
    margin-top: 2.25rem;
    opacity: 0.85;
}

/*
 * Desktop: text leží priamo na fotografii, preto silnejší závoj sprava,
 * takmer čierne písmo a svetlý halo namiesto tmavého overlayu.
 */
@media (min-width: 1024px) {
    .hero-wash {
        background:
            linear-gradient(264deg, rgba(247, 243, 234, 0.98) 0%, rgba(247, 243, 234, 0.94) 30%, rgba(247, 243, 234, 0.72) 48%, rgba(247, 243, 234, 0.24) 66%, rgba(247, 243, 234, 0) 84%),
            linear-gradient(180deg, rgba(247, 243, 234, 0.55) 0%, rgba(247, 243, 234, 0) 26%),
            linear-gradient(0deg, var(--color-cream) 0%, rgba(247, 243, 234, 0.6) 8%, rgba(247, 243, 234, 0) 24%);
    }

    .hero-title,
    .hero .location-mark-district {
        color: #111A21;
        text-shadow: 0 1px 0 rgba(255, 253, 248, 0.85), 0 2px 24px rgba(255, 253, 248, 0.9);
    }

    .hero .location-mark-city {
        color: #1B2A34;
        text-shadow: 0 1px 12px rgba(255, 253, 248, 0.95);
    }

    .hero-slogan {
        color: #111A21;
        text-shadow: 0 1px 0 rgba(255, 253, 248, 0.8), 0 2px 18px rgba(255, 253, 248, 0.95);
    }

    .hero-role {
        color: #263540;
        text-shadow: 0 1px 12px rgba(255, 253, 248, 0.95);
    }

    .hero-role::before {
        background: rgba(17, 26, 33, 0.4);
    }

    /* Priehľadné tlačidlo potrebuje na fotke vlastné podložie. */
    .hero .btn-outline {
        background: rgba(255, 253, 248, 0.72);
        border-color: rgba(17, 26, 33, 0.5);
        color: #111A21;
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
    }

    .hero .scroll-hint {
        left: auto;
        right: clamp(1.5rem, 6vw, 7rem);
        transform: none;
        align-items: flex-end;
        color: #263540;
        text-shadow: 0 1px 10px rgba(255, 253, 248, 0.95);
    }

    .js.is-loaded .hero .scroll-hint {
        animation-name: hint-float-left;
    }
}

/* Tablet: kompozícia pod sebou, scenéria ostáva na pozadí celého hero. */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-stage {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        padding: 8rem 2.5rem 0;
        gap: 2rem;
    }

    .hero-content {
        max-width: none;
        flex: none;
    }

    .hero-title {
        margin-top: 1.75rem;
        font-size: clamp(3.6rem, 8vw, 5.25rem);
    }

    .hero-photo {
        position: relative;
        left: auto;
        right: auto;
        align-self: center;
        height: auto;
        width: min(78vw, 32rem);
        max-width: none;
        object-position: center bottom;
    }

    .hero-wash {
        background:
            linear-gradient(180deg, rgba(247, 243, 234, 0.94) 0%, rgba(247, 243, 234, 0.8) 38%, rgba(247, 243, 234, 0.15) 62%, rgba(247, 243, 234, 0) 80%),
            linear-gradient(0deg, var(--color-cream) 0%, rgba(247, 243, 234, 0) 22%);
    }
}

/*
 * Telefón: scenéria zostáva ako pozadie, značka VAJNORY je hore ako brand
 * element, portrét stojí v spodnej časti pred vinicami.
 */
@media (max-width: 767px) {
    .hero,
    .hero-stage {
        min-height: 100svh;
    }

    .hero-stage {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        padding: calc(5.6rem + env(safe-area-inset-top, 0px)) 1.35rem 0;
    }

    .hero-scene img {
        object-position: 50% 46%;
    }

    .hero-wash {
        background:
            linear-gradient(180deg, rgba(247, 243, 234, 0.97) 0%, rgba(247, 243, 234, 0.9) 30%, rgba(247, 243, 234, 0.3) 52%, rgba(247, 243, 234, 0) 68%),
            linear-gradient(0deg, var(--color-cream) 0%, rgba(247, 243, 234, 0.55) 10%, rgba(247, 243, 234, 0) 30%);
    }

    .hero-content {
        flex: 0 0 auto;
        z-index: 3;
        width: 100%;
        /* Bez tohto by tu ostalo desktopové max-width: 44vw a text by pretekal. */
        max-width: 100%;
        min-width: 0;
        text-align: center;
    }

    .hero .location-mark {
        align-items: center;
        width: 100%;
        max-width: 100%;
    }

    .hero .location-mark-city {
        gap: 0.6rem;
        font-size: 0.62rem;
        letter-spacing: 0.3em;
    }

    .hero .location-mark-city > span:not(.location-line) {
        margin-right: -0.3em;
    }

    .hero .location-mark-district {
        font-size: clamp(1.9rem, 9.5vw, 2.9rem);
        letter-spacing: 0.14em;
        text-indent: 0.14em;
        margin-right: 0;
    }

    .hero-title {
        margin-top: 0.85rem;
        font-size: clamp(2.1rem, 11vw, 3.4rem);
        line-height: 1;
        letter-spacing: 0;
    }

    .hero .hero-slogan {
        max-width: 20rem;
        margin: 0.85rem auto 0;
        font-size: clamp(1.1rem, 5.2vw, 1.45rem);
        line-height: 1.3;
        text-wrap: balance;
    }

    /* Bez vodorovnej linky — pri zalomení na dva riadky skončí uprostred textu. */
    .hero .hero-role {
        display: block;
        max-width: 21rem;
        margin: 0.85rem auto 0;
        font-size: 0.62rem;
        line-height: 1.7;
        letter-spacing: 0.14em;
        text-wrap: balance;
    }

    .hero .hero-role::before {
        display: none;
    }

    .hero .hero-actions,
    .hero .hero-kdh {
        display: none;
    }

    /*
     * cover, nie contain: portrét vyplní celú šírku a tvár ostane veľká.
     * Spodok sa oreže hranou hero sekcie, rovnako ako na desktope.
     */
    .hero-photo {
        position: relative;
        left: auto;
        right: auto;
        flex: 1 1 auto;
        align-self: stretch;
        width: 118%;
        max-width: none;
        height: 100%;
        min-height: 44svh;
        margin: 0.75rem -9% 0;
        object-fit: cover;
        object-position: center top;
        filter: drop-shadow(0 14px 28px rgba(31, 51, 64, 0.22));
    }

    /* Nad fotkou musí ostať náznak, že stránka pokračuje. */
    .scroll-hint {
        bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px));
        gap: 0.3rem;
        justify-content: center;
        min-height: 2.75rem;
        padding: 0.5rem 0.95rem;
        font-size: 0.6rem;
        color: var(--color-navy);
        background: rgba(255, 253, 248, 0.78);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        border-radius: 4px;
        box-shadow: 0 8px 22px rgba(31, 51, 64, 0.12);
    }

    /* Posun zdola by sa na úzkom displeji bil s fotkou — stačí prelínanie. */
    .js .hero-content .reveal,
    .js .hero-content .reveal-load {
        transform: none;
        animation-name: hero-fade;
    }
}

/* Telefón na šírku a nízke displeje: text zmenšiť, aby ostalo miesto na portrét. */
@media (max-width: 767px) and (max-height: 620px) {
    .hero-stage {
        padding-top: calc(4.4rem + env(safe-area-inset-top, 0px));
    }

    .hero .location-mark-district {
        font-size: 1.7rem;
    }

    .hero-title {
        margin-top: 0.6rem;
        font-size: 2rem;
    }

    .hero .hero-slogan {
        margin-top: 0.55rem;
        font-size: 1.05rem;
    }

    .hero .hero-role {
        display: none;
    }

    .scroll-hint {
        display: none;
    }
}

@keyframes hero-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (min-width: 1600px) {
    .hero-photo {
        max-width: 50vw;
    }
}

.eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--gold);
}

.eyebrow-sep {
    opacity: 0.65;
}

/*
 * Tlačidlá: seriózne a hranaté. Zlatá je len detail pri hover, nie výplň.
 */
.btn-gold,
.btn-outline,
.btn-navy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.8rem 1.6rem;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-gold,
.btn-navy {
    background: var(--color-navy);
    color: var(--color-cream);
    border: 1px solid var(--color-navy);
}

.btn-gold:hover,
.btn-gold:focus-visible,
.btn-navy:hover,
.btn-navy:focus-visible {
    background: var(--color-blue);
    border-color: var(--color-blue);
    box-shadow: inset 0 -2px 0 0 var(--color-gold);
}

.btn-outline {
    border: 1px solid rgba(31, 51, 64, 0.45);
    color: var(--color-navy);
    background: transparent;
}

.btn-outline:hover,
.btn-outline:focus-visible {
    border-color: var(--color-gold);
    color: var(--color-blue);
    background: rgba(255, 253, 248, 0.6);
}

.scroll-hint {
    position: absolute;
    bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    color: var(--mute);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    -webkit-tap-highlight-color: transparent;
}

.scroll-hint:hover,
.scroll-hint:focus-visible {
    color: var(--navy);
}

.scroll-hint-arrow {
    display: block;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 1.5px solid var(--gold);
    border-bottom: 1.5px solid var(--gold);
    transform: rotate(45deg);
}

.js.is-loaded .scroll-hint {
    animation: hint-float 1.8s ease-in-out 1.3s infinite;
}

.js.is-loaded .scroll-hint-arrow {
    animation: hint-bounce 1.15s ease-in-out 1.3s infinite;
}

/*
 * ------------------------------------------------------------------
 * SEKCIE — rytmus, kickery a redakčné linky
 * ------------------------------------------------------------------
 */
section {
    scroll-margin-top: 5rem;
}

/* Väčší dych medzi sekciami, než dávajú pôvodné Tailwind triedy. */
main > section.px-5,
main > section > .px-5 {
    padding-top: var(--space-section-mobile);
    padding-bottom: var(--space-section-mobile);
}

@media (min-width: 768px) {
    main > section.px-5 {
        padding-top: 96px;
        padding-bottom: 96px;
    }
}

@media (min-width: 1024px) {
    main > section.px-5 {
        padding-top: var(--space-section);
        padding-bottom: var(--space-section);
    }
}

/* Krátke prepojovacie pásy nepotrebujú plný rytmus sekcie. */
main > section.section-tight {
    padding-top: 56px;
    padding-bottom: 56px;
}

@media (min-width: 1024px) {
    main > section.section-tight {
        padding-top: 88px;
        padding-bottom: 88px;
    }
}

/* Kicker s linkou vľavo — redakčný štítok, nie farebný odznak. */
.section-kicker {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--color-blue);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 600;
}

.section-kicker::before {
    content: "";
    display: block;
    width: 2.75rem;
    height: 1px;
    flex: 0 0 auto;
    background: var(--color-gold);
}

.text-center > .section-kicker,
.section-kicker.is-centered {
    justify-content: center;
}

.gold-rule {
    width: 3.5rem;
    height: 1px;
    background: var(--color-gold);
}

/* Nadpisy sekcií podľa editorial škály. */
main h2 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.01em;
    color: var(--color-navy);
    font-optical-sizing: none;
}

main h3 {
    font-optical-sizing: none;
}

@media (max-width: 767px) {
    main h2 {
        font-size: clamp(2.1rem, 9vw, 2.9rem);
    }
}

/* Fotografia v sekcii O mne: editorial rám s posunutou linkou za ňou. */
.portrait-figure {
    position: relative;
    margin: 0;
}

.portrait-figure::before {
    content: "";
    position: absolute;
    left: -1.25rem;
    top: -1.25rem;
    width: 62%;
    height: 62%;
    border-left: 1px solid var(--color-gold);
    border-top: 1px solid var(--color-gold);
    pointer-events: none;
}

.portrait-frame {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 12%;
    border-radius: 2px;
}

.portrait-caption {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--color-muted);
}

.portrait-caption::before {
    content: "";
    display: block;
    width: 1.75rem;
    height: 1px;
    flex: 0 0 auto;
    background: var(--line-color);
}

/* Pull quote — malý serifový citát vedľa textu. */
.pull-quote {
    margin: 2.5rem 0 0;
    padding-left: 1.5rem;
    border-left: 1px solid var(--color-gold);
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.45;
    color: var(--color-blue);
}

/* Text pätičky nesmie skončiť pod indikátorom domovskej obrazovky na iPhone. */
.footer-bar {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.footer-kdh {
    height: 2.4rem;
    width: auto;
    margin-top: 1rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line-color);
    background: var(--color-white);
    color: var(--color-blue);
    padding: 0.45rem 0.85rem;
    border-radius: 2px;
    font-size: 0.84rem;
}

/*
 * ------------------------------------------------------------------
 * PRIORITY — redakčný grid, nie SaaS karty
 * Číslo, gold linka, line ikona, veľký serif názov, krátky text.
 * ------------------------------------------------------------------
 */
.priority-grid {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line-color);
}

.priority-card {
    position: relative;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line-color);
    box-shadow: none;
    padding: 2.25rem 0;
    transition: background 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.priority-card summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 0 1.5rem;
    align-items: start;
}

.priority-card summary::-webkit-details-marker {
    display: none;
}

.priority-num {
    grid-row: 1 / span 4;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-gold);
    padding-top: 0.35rem;
}

.priority-icon {
    color: var(--color-blue);
    transition: color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.priority-title {
    margin-top: 0.9rem;
    font-family: var(--font-serif);
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-navy);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.priority-text {
    margin-top: 0.75rem;
    max-width: 46ch;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-muted);
}

.priority-card .more-label {
    margin-top: 1.1rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-blue);
}

.priority-card .more-label::after {
    content: "Viac";
}

.priority-card[open] .more-label::after {
    content: "Menej";
}

.priority-more {
    max-width: 52ch;
    margin: 1.25rem 0 0 5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line-color);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-ink);
}

/* Hover: jemný posun a zmena linky. Žiadne scale. */
.priority-card:hover {
    background: rgba(255, 253, 248, 0.7);
    box-shadow: none;
    transform: none;
}

.priority-card:hover .priority-title {
    transform: translateX(5px);
}

.priority-card:hover .priority-icon {
    color: var(--color-gold);
}

@media (min-width: 768px) {
    .priority-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 4rem;
    }

    .priority-card summary {
        grid-template-columns: 3rem 1fr;
    }

    .priority-more {
        margin-left: 4.5rem;
    }
}

@media (min-width: 1280px) {
    .priority-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 3.5rem;
    }
}

/*
 * ------------------------------------------------------------------
 * KPI — veľký redakčný counter s vlasovými separátormi
 * ------------------------------------------------------------------
 */
.kpi-grid {
    display: grid;
    gap: 3rem 0;
    border-top: 1px solid var(--line-color);
    padding-top: 3rem;
}

.kpi-item {
    padding-right: 2rem;
}

.kpi-number {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: var(--color-navy);
    font-optical-sizing: none;
}

/* Slovné KPI nesmie prerásť susedné čísla. */
.kpi-number.is-word {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1;
}

.kpi-rule {
    width: 3rem;
    height: 1px;
    margin: 1.25rem 0 1rem;
    background: var(--color-gold);
}

.kpi-label {
    max-width: 22ch;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--color-muted);
}

@media (min-width: 640px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kpi-item + .kpi-item {
        border-left: 1px solid var(--line-color);
        padding-left: 2rem;
    }

    .kpi-item:nth-child(odd) {
        border-left: 0;
        padding-left: 0;
    }
}

@media (min-width: 1024px) {
    .kpi-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .kpi-item:nth-child(odd) {
        border-left: 1px solid var(--line-color);
        padding-left: 2rem;
    }

    .kpi-item:first-child {
        border-left: 0;
        padding-left: 0;
    }
}

/*
 * ------------------------------------------------------------------
 * VÍZIA — druhá vizuálne najsilnejšia sekcia
 * Ornament je watermark orezaný na pravom okraji, nie folklórne logo.
 * ------------------------------------------------------------------
 */
.vision {
    position: relative;
    color: var(--color-ink);
    min-height: 40rem;
    overflow: hidden;
    background: var(--color-navy);
}

/* Ornament je orezaný pravým okrajom a slúži ako textúra, nie ako logo. */
.vision-photo {
    position: absolute;
    top: 50%;
    right: -14%;
    left: auto;
    width: 62%;
    height: auto;
    max-height: none;
    transform: translateY(-50%);
    object-fit: contain;
    opacity: 0.12;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
}

@media (min-width: 1024px) {
    .vision-photo {
        right: -8%;
        width: 46%;
    }
}

.vision-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(80% 90% at 12% 40%, rgba(47, 111, 148, 0.35) 0%, transparent 65%),
        linear-gradient(180deg, rgba(31, 51, 64, 0.35) 0%, rgba(31, 51, 64, 0.6) 100%);
}

.vision-statement {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 5vw, 4.75rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.01em;
    color: var(--color-white);
    font-optical-sizing: none;
}

.vision-lead {
    max-width: 52ch;
    color: rgba(255, 253, 248, 0.78);
}

.vision-list {
    display: grid;
    gap: 0;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 253, 248, 0.2);
}

.vision-list li {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 253, 248, 0.2);
    color: rgba(255, 253, 248, 0.92);
}

.vision-list li::before {
    content: "";
    display: block;
    width: 1.5rem;
    height: 1px;
    flex: 0 0 auto;
    background: var(--color-gold);
    transform: translateY(-0.35rem);
}

@media (min-width: 768px) {
    .vision-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 3rem;
    }
}

.poll-option {
    width: 100%;
    text-align: left;
    border: 1px solid var(--line-color);
    background: var(--color-white);
    padding: 1rem 1.1rem;
    border-radius: 2px;
    transition: border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.poll-option:hover,
.poll-option:focus-visible {
    border-color: var(--color-gold);
    background: var(--color-cream);
}

.poll-bar {
    height: 0.35rem;
    background: rgba(31, 51, 64, 0.08);
    overflow: hidden;
}

.poll-bar > span {
    display: block;
    height: 100%;
    background: var(--color-gold);
    width: 0;
    transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.field {
    width: 100%;
    border: 1px solid var(--line-color);
    background: var(--color-white);
    padding: 0.9rem 1rem;
    border-radius: 2px;
    color: var(--color-ink);
    font-size: 1rem;
}

.field:focus {
    outline: 2px solid var(--color-gold);
    outline-offset: 1px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* Karty sú ploché, s vlasovým rámom a minimálnym rádiusom. */
.news-card,
.media-card {
    background: var(--color-white);
    border: 1px solid var(--line-color);
    border-radius: 3px;
    box-shadow: none;
}

.news-card:hover,
.media-card:hover,
.metro-card:hover,
.step-card:hover {
    transform: translateY(-3px);
    border-color: rgba(196, 163, 90, 0.6);
    box-shadow: 0 14px 30px rgba(31, 51, 64, 0.07);
}

.news-link,
.media-card button {
    text-align: left;
}

.news-link {
    position: relative;
    display: inline-block;
    padding-bottom: 0.35rem;
    color: var(--color-blue);
}

.news-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--color-gold);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-card:hover .news-link::after,
.news-link:focus-visible::after {
    transform: scaleX(1);
}

.footer-link {
    color: var(--color-blue);
}

.footer-link:hover,
.footer-link:focus-visible {
    color: var(--color-gold);
}

.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-play-state: paused;
}

.js .reveal.reveal-left {
    transform: translateX(-32px);
    animation-name: fade-left;
}

.js .reveal.reveal-right {
    transform: translateX(32px);
    animation-name: fade-right;
}

.js .reveal.reveal-scale {
    transform: translateY(18px) scale(0.94);
    animation-name: fade-scale;
}

.js .reveal.is-visible,
.js .reveal.reveal-load {
    animation-play-state: running;
}

/* Na úzkych displejoch by posun do strán vyrobil vodorovné rolovanie. */
@media (max-width: 1023px) {
    .js .reveal.reveal-left,
    .js .reveal.reveal-right {
        transform: translateY(26px);
        animation-name: fade-up;
    }
}

.js .hero-content > .reveal-load:nth-child(1) { animation-delay: 0.12s; }
.js .hero-content > .reveal-load:nth-child(2) { animation-delay: 0.26s; }
.js .hero-content > .reveal-load:nth-child(3) { animation-delay: 0.4s; }
.js .hero-content > .reveal-load:nth-child(4) { animation-delay: 0.54s; }
.js .hero-content > .reveal-load:nth-child(5) { animation-delay: 0.68s; }
.js .hero-content > .reveal-load:nth-child(6) { animation-delay: 0.82s; }

.js.is-loaded .hero-photo {
    animation: hero-rise 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.js.is-loaded .site-header {
    animation: header-in 0.55s ease both;
}

/* Bounce sa v editorial jazyku nepoužíva — trieda ostáva bez efektu. */

.social-btn:hover:not(.is-disabled),
.social-btn:focus-visible:not(.is-disabled) {
    animation: bounce-once 0.55s ease;
}

.priority-card,
.tag,
.metro-card,
.step-card,
.news-card,
.media-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.priority-card:hover,
.news-card:hover,
.media-card:hover,
.metro-card:hover,
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(47, 111, 148, 0.12);
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.social-btn {
    width: 3.25rem;
    height: 3.25rem;
    border: 1px solid rgba(47, 111, 148, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    background: #fff;
}

.social-btn:hover,
.social-btn:focus-visible {
    border-color: var(--gold);
    color: var(--gold);
}

.social-btn.is-disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(47, 111, 148, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    max-width: min(1100px, 92vw);
    max-height: 86vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-close,
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    width: 2.5rem;
    height: 2.5rem;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(47, 111, 148, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.modal.is-open {
    display: flex;
}

.modal-panel {
    background: #fff;
    max-width: 42rem;
    width: 100%;
    max-height: 88vh;
    overflow: auto;
    position: relative;
    padding: 2.25rem 1.75rem;
}

.modal .modal-close {
    color: var(--navy);
}

.video-facade {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--navy);
    color: #fff;
    width: 100%;
}

@media (min-width: 768px) {
    .video-facade {
        min-height: 28rem;
    }
}

.video-facade:hover {
    color: var(--gold);
}

.form-status {
    min-height: 1.4rem;
}

.metro-figure {
    width: 100%;
    height: auto;
    display: block;
    background: #fff;
    border: 1px solid rgba(47, 111, 148, 0.12);
    box-shadow: 0 12px 34px rgba(47, 111, 148, 0.07);
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.75rem;
    border-left: 1px solid rgba(47, 111, 148, 0.18);
}

.timeline > li {
    position: relative;
    padding-bottom: 1.6rem;
}

.timeline > li:last-child {
    padding-bottom: 0;
}

.timeline > li::before {
    content: "";
    position: absolute;
    left: -2.1rem;
    top: 0.45rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: #fff;
    border: 2px solid var(--gold);
}

.timeline-year {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

.metro-card {
    background: #fff;
    border: 1px solid rgba(47, 111, 148, 0.1);
    border-left: 3px solid var(--gold);
    box-shadow: 0 10px 30px rgba(47, 111, 148, 0.06);
    padding: 1.5rem 1.6rem;
}

.metro-note {
    max-width: 60ch;
    border-top: 1px solid rgba(47, 111, 148, 0.14);
    padding-top: 1.4rem;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--mute);
}

/* --- Podstránka metro.php --- */

.page-head {
    background: linear-gradient(180deg, var(--ice) 0%, var(--cream) 100%);
    border-bottom: 1px solid rgba(47, 111, 148, 0.1);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mute);
}

.breadcrumb a {
    color: var(--navy);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.anchor-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.anchor-chips a {
    border: 1px solid rgba(47, 111, 148, 0.2);
    background: #fff;
    color: var(--navy);
    padding: 0.5rem 0.9rem;
    font-size: 0.86rem;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.anchor-chips a:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.kpi-strip {
    display: grid;
    gap: 2rem;
    border-top: 1px solid rgba(47, 111, 148, 0.14);
    padding-top: 2.5rem;
    margin: 0;
}

.kpi-strip-value {
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1;
    color: var(--gold);
}

.kpi-strip-label {
    margin: 0.6rem 0 0;
    max-width: 24ch;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--mute);
}

@media (min-width: 640px) {
    .kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .kpi-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.gantt {
    background: #fff;
    border: 1px solid rgba(47, 111, 148, 0.12);
    box-shadow: 0 12px 34px rgba(47, 111, 148, 0.07);
    padding: 1.75rem 1.5rem;
}

.gantt-scroll {
    overflow-x: auto;
}

.gantt-inner {
    min-width: 40rem;
}

.gantt-head,
.gantt-row {
    display: grid;
    grid-template-columns: 13rem 1fr;
    align-items: center;
    gap: 1rem;
}

.gantt-head {
    padding-bottom: 0.65rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid rgba(47, 111, 148, 0.14);
}

.gantt-head-label,
.gantt-scale {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mute);
}

.gantt-scale {
    position: relative;
    display: block;
    height: 1rem;
}

.gantt-scale span {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
}

.gantt-scale span:first-child {
    transform: none;
}

.gantt-scale span:last-child {
    transform: translateX(-100%);
}

.gantt-row {
    padding: 0.28rem 0;
}

.gantt-label {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--ink);
}

.gantt-num {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--gold);
}

.gantt-track {
    position: relative;
    display: block;
    height: 1.15rem;
    background-color: rgba(47, 111, 148, 0.05);
    background-image: linear-gradient(90deg, rgba(47, 111, 148, 0.14) 1px, transparent 1px);
    background-size: 25% 100%;
}

.gantt-bar {
    position: absolute;
    top: 0.2rem;
    bottom: 0.2rem;
    min-width: 0.4rem;
}

.gantt-bar.is-prep,
.gantt-legend i.is-prep {
    background: var(--sky);
}

.gantt-bar.is-perm,
.gantt-legend i.is-perm {
    background: var(--navy);
}

.gantt-bar.is-build,
.gantt-legend i.is-build {
    background: var(--gold);
}

.gantt-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(47, 111, 148, 0.12);
    font-size: 0.82rem;
    color: var(--mute);
}

.gantt-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.gantt-legend i {
    display: inline-block;
    width: 1.6rem;
    height: 0.5rem;
}

@media (max-width: 640px) {
    .gantt {
        padding: 1.25rem 1rem;
    }

    .gantt-inner {
        min-width: 34rem;
    }

    .gantt-head,
    .gantt-row {
        grid-template-columns: 9.5rem 1fr;
        gap: 0.75rem;
    }

    .gantt-label {
        font-size: 0.8rem;
    }
}

.callout {
    background: #fff;
    border: 1px solid rgba(47, 111, 148, 0.1);
    border-left: 3px solid var(--gold);
    box-shadow: 0 10px 30px rgba(47, 111, 148, 0.06);
    padding: 1.9rem 2rem;
    max-width: 78ch;
}

.callout-lead {
    font-family: Fraunces, Georgia, serif;
    font-size: 1.5rem;
    line-height: 1.35;
    color: var(--navy);
}

.milestone {
    display: grid;
    gap: 1.5rem;
    border-top: 1px solid rgba(47, 111, 148, 0.14);
    padding: 2.25rem 0;
}

.milestone:last-child {
    border-bottom: 1px solid rgba(47, 111, 148, 0.14);
}

.milestone-num {
    font-family: Fraunces, Georgia, serif;
    font-size: 2.75rem;
    line-height: 1;
    color: var(--gold);
}

.milestone-window {
    margin-top: 0.5rem;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--navy);
}

.milestone-dur {
    margin-top: 0.35rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--mute);
}

.milestone-facts {
    display: grid;
    gap: 1.25rem;
    border-top: 1px solid rgba(47, 111, 148, 0.12);
    padding-top: 1.25rem;
}

.milestone-facts dt {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

.milestone-facts dd {
    margin: 0.4rem 0 0;
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--ink);
}

@media (min-width: 640px) {
    .milestone-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem;
    }
}

@media (min-width: 900px) {
    .milestone {
        grid-template-columns: 13rem minmax(0, 1fr);
        gap: 3rem;
    }
}

.step-card {
    background: #fff;
    border: 1px solid rgba(47, 111, 148, 0.1);
    box-shadow: 0 10px 30px rgba(47, 111, 148, 0.06);
    padding: 2rem;
}

.step-horizon {
    display: inline-block;
    border: 1px solid rgba(196, 163, 90, 0.5);
    padding: 0.35rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

.step-who-label {
    color: var(--navy);
    font-weight: 600;
}

.role-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.role-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid rgba(47, 111, 148, 0.12);
    padding: 1.15rem 0;
    line-height: 1.7;
    color: var(--ink);
}

.role-list li:first-child {
    border-top: 1px solid rgba(47, 111, 148, 0.12);
}

.role-list li > span {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1px;
    margin-top: 0.85rem;
    background: var(--gold);
}

.metro-preview {
    background: #fff;
    border: 1px solid rgba(47, 111, 148, 0.12);
    box-shadow: 0 12px 34px rgba(47, 111, 148, 0.07);
    padding: 2rem;
}

.metro-preview-steps {
    counter-reset: stage;
    display: grid;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.metro-preview-steps li {
    border-top: 2px solid var(--sky);
    padding-top: 1rem;
}

.metro-preview-steps li:nth-child(2) {
    border-top-color: var(--navy);
}

.metro-preview-steps li:nth-child(3) {
    border-top-color: var(--navy);
}

.metro-preview-steps li:nth-child(4) {
    border-top-color: var(--gold);
}

.metro-preview-years {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mute);
}

.metro-preview-title {
    margin-top: 0.4rem;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.35rem;
    line-height: 1.3;
    color: var(--navy);
}

@media (min-width: 768px) {
    .metro-preview {
        padding: 2.75rem;
    }

    .metro-preview-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .metro-preview-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fade-left {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fade-right {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fade-scale {
    to {
        opacity: 1;
        transform: none;
    }
}

/* Scenéria sa pri načítaní usadí z 1.05 na 1 — žiadny rušivý parallax. */
@keyframes scene-settle {
    from { transform: scale(1.05); opacity: 0.5; }
    to { transform: scale(1); opacity: 1; }
}

/* Redakčná linka vyrastie zo svojho začiatku. */
@keyframes line-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(2.25rem);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes header-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes hint-float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes hint-float-left {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@keyframes hint-bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(5px); }
}

@keyframes pop-bounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.08) translateY(-4px); }
    70% { transform: scale(0.97); }
    100% { transform: scale(1); }
}

@keyframes bounce-once {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
    70% { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal,
    .js .reveal.is-visible,
    .js .hero-photo,
    .js.is-loaded .hero-photo,
    .js .site-header,
    .js.is-loaded .site-header,
    .js.is-loaded .scroll-hint,
    .js.is-loaded .scroll-hint-arrow,
    .js.is-loaded .btn-bounce,
    .social-btn:hover:not(.is-disabled) {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .poll-bar > span,
    .priority-card,
    .news-card,
    .media-card,
    .metro-card,
    .step-card {
        transition: none;
    }
    .js.is-loaded .hero-scene img,
    .js.is-loaded .hero .location-line {
        animation: none;
        transform: none;
    }
}

/*
 * ------------------------------------------------------------------
 * Veľké obrazovky: 1080p (1920), 2K/1440p (2560) a 4K (3840 a viac).
 * Obsah je inak zarovnaný na max-w-6xl (1152px), čo je na širokom
 * monitore zbytočne úzke a necháva veľké prázdne okraje. Kontajner
 * postupne rozširujeme, dĺžka odsekov (max-w-prose = 680px) ostáva
 * nedotknutá, aby sa text stále dobre čítal.
 * ------------------------------------------------------------------
 */
@media (min-width: 1920px) {
    .max-w-6xl {
        max-width: 82rem; /* 1312px */
    }
}

@media (min-width: 2560px) {
    .max-w-6xl {
        max-width: 92rem; /* 1472px */
    }
    .kpi-number {
        font-size: clamp(3rem, 4.5vw, 6rem);
    }
}

@media (min-width: 3440px) {
    .max-w-6xl {
        max-width: 100rem; /* 1600px */
    }
}

@media (min-width: 3840px) {
    .max-w-6xl {
        max-width: 110rem; /* 1760px */
    }
    /* Jemné zväčšenie základného textu, aby písmo nepôsobilo drobne na 4K paneli. */
    body {
        font-size: 1.0625rem;
    }
}
