/* =========================================================
   Športové Centrum Mariána Troligu — redesign
   ========================================================= */

:root {
    --ink: #0a0b0d;
    --ink-2: #131519;
    --ink-3: #1d2026;
    --line: rgba(255, 255, 255, .12);
    --ice: #eef1f4;
    --ice-2: #dfe4ea;
    --muted: #8b929c;
    --red: #f00617;
    --red-deep: #b8000f;

    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --display: 'Archivo', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;

    --wrap: 1360px;
    --gutter: clamp(20px, 4vw, 56px);
    --nav-h: 104px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--ink);
    color: var(--ice);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
sup { font-size: .6em; line-height: 0; }

::selection { background: var(--red); color: #fff; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.mono {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ========== NAV ========== */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    height: var(--nav-h);
    transition: height .4s var(--ease);
}
/* pozadie lišty je na pseudo-elemente – backdrop-filter priamo na .nav by „uväznil“ mobilné menu */
.nav::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(10, 11, 13, .72);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transition: opacity .4s var(--ease);
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-scrolled { height: 76px; }
.nav__inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
}
.nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    font-family: var(--display);
    font-stretch: 112%;
    text-transform: uppercase;
    letter-spacing: -.01em;
    font-size: 18px;
    white-space: nowrap;
}
.nav__brand img { width: 80px; height: auto; transition: width .4s var(--ease); filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); }
.nav.is-scrolled .nav__brand img { width: 60px; }
.nav__brand b { color: var(--red); font-weight: 800; }

.nav__links {
    display: flex;
    gap: 6px;
    margin-left: auto;
}
.nav__links a {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--display);
    font-stretch: 112%;
    font-size: 19px;
    text-transform: uppercase;
    letter-spacing: -.005em;
    border-radius: 999px;
    transition: background .25s, color .25s;
}
.nav__links a i {
    font-style: normal;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--red);
}
.nav__links a:hover,
.nav__links a.is-active { background: rgba(255, 255, 255, .16); }

.nav__foot { display: none; }

.nav__toggle {
    display: none;
    width: 48px; height: 48px;
    margin-left: auto;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.04);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    z-index: 2;
}
.nav__toggle span {
    position: absolute;
    left: 14px; right: 14px;
    height: 2px;
    background: #fff;
    transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 16px; }
.nav__toggle span:nth-child(2) { top: 23px; transition: opacity .2s; }
.nav__toggle span:nth-child(3) { top: 30px; }
.nav.is-open .nav__toggle span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* ========== HERO ========== */
.hero {
    position: relative;
    background: var(--ink);
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}
/* fotka aj tmavé prechody v jednej vrstve – žiadne presvitajúce švy pri zmene šírky */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: var(--ink);
    background-image:
        linear-gradient(180deg, rgba(10,11,13,.55) 0%, rgba(10,11,13,.1) 30%, rgba(10,11,13,.35) 60%, var(--ink) 96%),
        linear-gradient(90deg, rgba(10,11,13,.85) 0%, rgba(10,11,13,.2) 65%, transparent 100%),
        url('../img/cover_img.webp');
    background-size: 100% 100%, 100% 100%, cover;
    background-position: 0 0, 0 0, 62% 60%;
    background-repeat: no-repeat;
}
.hero__inner {
    padding-top: calc(var(--nav-h) + 60px);
    padding-bottom: clamp(72px, 12vh, 140px);
}
.hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(10,11,13,.4);
    backdrop-filter: blur(8px);
    margin-bottom: 28px;
}
.dot {
    position: relative;
    flex: none;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--red);
    animation: dot-beat 1.6s ease-in-out infinite;
}
.dot::before,
.dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--red);
    animation: dot-ring 1.6s cubic-bezier(.2,.6,.3,1) infinite;
}
.dot::after { animation-delay: .8s; }
@keyframes dot-beat {
    0%, 100% { transform: scale(1); box-shadow: 0 0 6px 1px rgba(240,6,23,.8); }
    50% { transform: scale(.75); box-shadow: 0 0 2px 0 rgba(240,6,23,.4); }
}
@keyframes dot-ring {
    0% { transform: scale(1); opacity: .7; }
    100% { transform: scale(3.4); opacity: 0; }
}

.hero__title {
    margin: 0;
    font-weight: 900;
    font-family: var(--display);
    font-stretch: 125%;
    text-transform: uppercase;
    font-size: clamp(42px, 8vw, 128px);
    line-height: .9;
    letter-spacing: -.04em;
}
.hero__title .line { display: block; overflow: hidden; padding-top: .1em; margin-top: -.1em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line--small {
    display: flex;
    align-items: center;
    gap: .5em;
    font-size: clamp(18px, 2.2vw, 34px);
    font-weight: 600;
    font-family: var(--display);
    font-stretch: 112%;
    letter-spacing: .02em;
    line-height: 1.3;
    margin: 0 0 .5em;
    color: rgba(238,241,244,.85);
}
.hero__title .line--small::before {
    content: '';
    flex: none;
    width: 2.2em; height: .18em;
    background: var(--red);
}
.hero__title .line--accent { color: var(--red); }

.hero__bottom {
    margin-top: clamp(32px, 5vh, 56px);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.hero__lead {
    max-width: 520px;
    color: rgba(238,241,244,.8);
    font-size: clamp(16px, 1.3vw, 19px);
}

.hero__logo {
    position: absolute;
    /* zarovnané s pravým okrajom obsahu (tlačidlo „Viac informácií“) */
    right: calc(max(0px, (100% - var(--wrap)) / 2) + var(--gutter));
    top: calc(var(--nav-h) + 40px);
    width: clamp(150px, 19vw, 300px);
    aspect-ratio: 827 / 760;           /* rovnaký rozmer ako pôvodné logo */
    pointer-events: none;
    will-change: transform, opacity;
}
/* tieň je zapečený v obrázku (CSS drop-shadow Safari na iPhone počas animácie nestíha).
   Obrázok má okolo loga rezervu na tieň: 20 % šírky zo strán, 21,78 % výšky hore/dole. */
.hero__logo img {
    position: absolute;
    left: -20%;
    top: -21.78%;
    width: 140%;
    max-width: none;
    height: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 18px 18px 28px;
    border-radius: 999px;
    background: var(--ice);
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
}
.btn__icon {
    position: relative;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--red);
    overflow: hidden;
    flex: none;
}
.btn__icon svg {
    position: absolute;
    left: 8px; top: 8px;
    width: 20px; height: 20px;
    fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

/* ========== MARQUEE ========== */
.marquee {
    background: var(--red);
    color: #fff;
    overflow: hidden;
    padding: 18px 0;
    transform: rotate(-1.2deg) scale(1.03);
    margin: clamp(48px, 7vw, 110px) 0 0;
    position: relative;
    z-index: 2;
}
.marquee__track {
    display: flex;
    width: max-content;
    gap: 32px;
    align-items: center;
    animation: marquee 45s linear infinite;
    font-weight: 900;
    font-family: var(--display);
    font-stretch: 125%;
    text-transform: uppercase;
    font-size: clamp(22px, 3vw, 40px);
    letter-spacing: -.02em;
    line-height: 1;
}
.marquee em { font-style: normal; font-size: .6em; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ========== SECTIONS ========== */
.section {
    padding: clamp(96px, 14vw, 180px) 0;
    position: relative;
    scroll-margin-top: 40px;
}
.section__head {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: clamp(48px, 7vw, 96px);
}
.section__num {
    color: var(--red);
    padding-top: 1.2em;
    border-top: 2px solid currentColor;
    display: inline-block;
}
.section__title {
    margin: 0;
    font-weight: 900;
    font-family: var(--display);
    font-stretch: 120%;
    text-transform: uppercase;
    font-size: clamp(36px, 6.2vw, 96px);
    line-height: .92;
    letter-spacing: -.035em;
}

/* --- Úvod na pôvodnej sivej --- */
.section--slate {
    --slate: rgb(51, 63, 72);
    --line: rgba(255, 255, 255, .14);
    --muted: rgba(238, 241, 244, .62);
    background: var(--slate);
    border-radius: 40px 40px 0 0;
    margin-top: clamp(48px, 6vw, 80px);
}
.section--slate .stats { background: rgba(10, 11, 13, .28); }
.section--slate .shot__img { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }

/* --- Intro --- */
.intro {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
    margin-left: 244px;
}
.intro__text {
    font-size: clamp(19px, 1.7vw, 24px);
    line-height: 1.5;
    font-weight: 400;
    color: rgba(238,241,244,.88);
}
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: var(--ink-2);
}
.stat {
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat b {
    font-family: var(--display);
    font-stretch: 112%;
    font-weight: 800;
    font-size: clamp(20px, 1.7vw, 26px);
    line-height: 1;
    letter-spacing: -.02em;
}
.stat span { color: var(--muted); font-size: 13px; line-height: 1.3; }
.stat b small { font-size: .6em; font-weight: 700; margin-left: .2em; letter-spacing: 0; }
.stat:first-child { background: var(--red); }
.stat:first-child span { color: rgba(255,255,255,.85); }

/* --- Features --- */
.features {
    list-style: none;
    padding: 0;
    margin: clamp(64px, 8vw, 112px) 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}
.features li {
    position: relative;
    padding: 32px 32px 40px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-height: 200px;
    transition: color .3s;
}
.features li:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.features li:not(:nth-child(3n+1)) { padding-left: 32px; }
.features li span { color: var(--red); }
.features li p {
    font-size: clamp(18px, 1.5vw, 22px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.01em;
}
.features li::after {
    content: '';
    position: absolute;
    left: 0; bottom: -1px;
    height: 2px; width: 0;
    background: var(--red);
    transition: width .6s var(--ease);
}
.features li:hover::after { width: 100%; }


/* --- Gallery --- */
.gallery {
    margin-top: clamp(64px, 8vw, 112px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
.shot { margin: 0; cursor: zoom-in; }
.shot__img {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 16 / 10;
    background: var(--ink-3);
}
.shot__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.08); /* orezanie rámika vo vizualizáciách */
    transition: transform 1.1s var(--ease);
}
.shot:hover .shot__img img { transform: scale(1.14); }
.shot__img::after {
    content: '+';
    position: absolute;
    right: 18px; top: 18px;
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--ice);
    color: var(--ink);
    font-size: 26px;
    font-weight: 300;
    transform: scale(0) rotate(-90deg);
    transition: transform .45s var(--ease);
}
.shot:hover .shot__img::after { transform: scale(1) rotate(0); }
.shot figcaption {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-top: 16px;
    font-weight: 600;
    font-size: 17px;
}
.shot figcaption .mono { color: var(--red); }
.shot figcaption i { font-style: normal; color: var(--muted); font-weight: 400; margin-left: auto; }

/* --- Light section: Aktuality --- */
.section--light {
    background: var(--ice);
    margin-top: -40px;
    color: var(--ink);
    border-radius: 40px 40px 0 0;
}
.docs-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 24px;
    margin-left: 244px;
    color: #4a515b;
}
.badge {
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--ice);
}
.docs {
    list-style: none;
    padding: 0;
    margin: 0 0 0 244px;
    border-top: 2px solid var(--ink);
}
.docs li { border-bottom: 1px solid rgba(10,11,13,.15); }
.docs a {
    display: grid;
    grid-template-columns: 80px 1fr auto 52px;
    align-items: center;
    gap: 24px;
    padding: 26px 16px;
    text-decoration: none;
}
.docs a:hover { background: var(--ink); color: var(--ice); }
.docs__type {
    justify-self: start;
    padding: 6px 10px;
    border: 1.5px solid var(--red);
    color: var(--red);
    border-radius: 6px;
    font-weight: 500;
}
.docs__name {
    font-weight: 700;
    font-size: clamp(17px, 1.6vw, 22px);
    letter-spacing: -.015em;
    line-height: 1.25;
}
.docs__size { color: #7a828c; }
.docs__arrow {
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    display: grid; place-items: center;
}
.docs__arrow svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.docs a:hover .docs__arrow { background: var(--red); border-color: var(--red); color: #fff; }

.support-wrap {
    display: flex;
    justify-content: center;
    margin: clamp(72px, 9vw, 120px) 0 0 244px; /* stred v rámci stĺpca s dokumentmi */
}
.support {
    width: fit-content;
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 340px) auto;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    padding: 20px 48px 20px 20px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(10,11,13,.08);
    text-decoration: none;
    color: var(--ink);
}
.support__img img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}
.support__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.support__title {
    font-family: var(--display);
    font-stretch: 115%;
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(17px, 1.5vw, 22px);
    letter-spacing: -.02em;
    line-height: 1.1;
}

/* --- Contact --- */
.section--contact {
    background:
        var(--ink);
}
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 80px);
    margin-left: 244px;
}
.contact__block h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.01em;
}
.contact__block p { color: rgba(238,241,244,.72); }
.label { display: block; color: var(--red); margin-bottom: 12px; }
.contact__big .label { margin: 18px 0 2px; }
.contact__big .label:first-child { margin-top: 0; }
.subhead {
    margin: 0 0 20px 244px;
    font-family: var(--display);
    font-stretch: 115%;
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(22px, 2.4vw, 34px);
    letter-spacing: -.02em;
    line-height: 1.1;
}
.contact__big {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 48px 0;
    padding: 36px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.contact__big a {
    text-decoration: none;
    font-weight: 800;
    font-family: var(--display);
    font-stretch: 110%;
    font-size: clamp(24px, 2.8vw, 40px);
    letter-spacing: -.03em;
    line-height: 1.15;
    background: linear-gradient(var(--red), var(--red)) 0 100% / 0 3px no-repeat;
    transition: background-size .5s var(--ease), color .3s;
    width: fit-content;
    word-break: break-word;
}
.contact__big a:hover { background-size: 100% 3px; }
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.contact__map {
    border-radius: 24px;
    overflow: hidden;
    min-height: 480px;
    border: 1px solid var(--line);
}
.contact__map iframe {
    width: 100%; height: 100%;
    min-height: 480px;
    border: 0;
    display: block;
}

/* ========== FOOTER ========== */
.footer {
    padding: 40px 0 32px;
    border-top: 1px solid var(--line);
    overflow: hidden;
}
.footer__word {
    font-weight: 900;
    font-family: var(--display);
    font-stretch: 125%;
    font-size: min(14vw, 200px);
    line-height: .8;
    letter-spacing: -.05em;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: 1px rgba(238,241,244,.38);
    user-select: none;
    margin-bottom: 32px;
}
.footer__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--muted);
}
.footer__row a { color: var(--ice); text-decoration: none; border-bottom: 1px solid var(--red); }
.footer__row a:hover { color: var(--red); }

/* ========== TO TOP ========== */
.to-top {
    position: fixed;
    right: 24px; bottom: 24px;
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 0;
    background: var(--red);
    cursor: pointer;
    z-index: 40;
    display: grid; place-items: center;
    opacity: 0;
    transform: translateY(20px) scale(.8);
    pointer-events: none;
    transition: opacity .35s, transform .35s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top__arrow { width: 24px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* prstenec okolo tlačidla – koľko % stránky je prečítaných */
.to-top__ring {
    position: absolute;
    inset: -6px;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    transform: rotate(-90deg);
    pointer-events: none;
}
.to-top__ring circle { fill: none; stroke-width: 2.5; }
.to-top__track { stroke: rgba(240, 6, 23, .2); }
.to-top__progress {
    stroke: var(--red);
    stroke-linecap: round;
    stroke-dasharray: 194.78;
    stroke-dashoffset: 194.78;
}

/* tenký pásik priebehu úplne hore */
.progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 60;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: 0 50%;
    pointer-events: none;
}

/* ========== MODAL ========== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(6,7,9,.92);
    backdrop-filter: blur(12px);
    display: grid;
    place-items: center;
    padding: 4vw;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal figure { margin: 0; max-width: 1400px; transform: scale(.96); transition: transform .45s var(--ease); }
.modal.is-open figure { transform: none; }
.modal img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 16px; }
.modal figcaption { text-align: center; margin-top: 16px; color: var(--muted); }
.modal__close {
    position: absolute;
    top: 20px; right: 20px;
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: background .3s, transform .3s var(--ease);
}
.modal__close:hover { background: var(--red); transform: rotate(90deg); }

/* ========== COOKIES ========== */
.cookie {
    position: fixed;
    left: 24px; bottom: 24px;
    z-index: 90;
    width: min(460px, calc(100% - 48px));
    padding: 24px;
    border-radius: 20px;
    background: var(--ink-2);
    border: 1px solid rgba(255, 255, 255, .12);
    border-top: 3px solid var(--red);
    color: var(--ice);
    animation: cookie-in .7s cubic-bezier(.2, .8, .2, 1) both;
}
.cookie[hidden] { display: none; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.cookie .label { margin-bottom: 10px; }
.cookie__title {
    font-family: var(--display);
    font-stretch: 112%;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 19px;
    letter-spacing: -.01em;
    line-height: 1.15;
    margin-bottom: 8px;
}
.cookie__text { font-size: 14px; line-height: 1.55; color: rgba(238, 241, 244, .7); }

.cookie__prefs {
    margin-top: 18px;
    border-top: 1px solid var(--line);
}
.cookie__prefs[hidden] { display: none; }
.cookie__row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
}
.cookie__row b { display: block; font-size: 14px; font-weight: 700; }
.cookie__row small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.cookie__row input { position: absolute; opacity: 0; pointer-events: none; }
.switch {
    position: relative;
    flex: none;
    width: 42px; height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    transition: background .2s;
}
.switch::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s;
}
.cookie__row input:checked + .switch { background: var(--red); }
.cookie__row input:checked + .switch::after { transform: translateX(18px); }
.cookie__row input:disabled + .switch { opacity: .55; }
.cookie__row input:focus-visible + .switch { outline: 2px solid var(--red); outline-offset: 3px; }

.cookie__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}
.cbtn {
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    color: var(--ice);
    background: none;
}
.cbtn--primary { background: var(--red); color: #fff; margin-left: auto; }
.cbtn--primary:hover { background: #ff1f2e; }
.cbtn--ghost { border-color: rgba(255, 255, 255, .28); }
.cbtn--ghost:hover { border-color: rgba(255, 255, 255, .6); }
.cbtn--text { padding-left: 4px; padding-right: 4px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .35); }
.cbtn--text:hover { text-decoration-color: var(--red); }

.footer__link {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
}
.footer__link:hover { color: var(--ice); }

@media (max-width: 640px) {
    .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 20px; }
    .cbtn { flex: 1 1 auto; text-align: center; }
    .cbtn--text { flex: 0 0 100%; order: 3; }
}

/* ========== REVEAL ========== */
.js .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .intro, .docs-meta, .docs, .contact, .subhead, .support-wrap { margin-left: 0; }
    .section__head { grid-template-columns: 1fr; gap: 20px; }
    .section__num { width: fit-content; min-width: 96px; }
    .section__title { font-size: clamp(34px, 5.4vw, 56px); }
}

@media (max-width: 980px) {
    /* na mobile/tablete má lišta stále rovnakú výšku – nezmenšuje sa pri scrollovaní */
    :root { --nav-h: 76px; }
    .nav, .nav.is-scrolled { height: var(--nav-h); }
    .nav__toggle { display: block; }
    .nav__links {
        position: fixed;
        inset: 0;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: var(--nav-h) var(--gutter) 28px;
        overflow-y: auto;
        background: var(--ink);
        /* jednoduché prelínanie – plynulé aj na slabších telefónoch */
        opacity: 0;
        visibility: hidden;
        transition: opacity .28s ease, visibility 0s linear .28s;
        will-change: opacity;
    }
    .nav.is-open .nav__links {
        opacity: 1;
        visibility: visible;
        transition: opacity .28s ease, visibility 0s;
    }
    /* položky v strede obrazovky – prázdne miesto hore (::before) a pätička dole (.nav__foot) majú rovnakú váhu */
    .nav__links::before { content: ''; flex: 1 1 0; }
    .nav__links a {
        flex-direction: column;
        align-items: center;
        text-align: center;
        font-size: clamp(28px, 4.6vw, 40px);
        font-weight: 900;
        font-family: var(--display);
        font-stretch: 120%;
        text-transform: uppercase;
        letter-spacing: -.03em;
        padding: 24px 0;
        border-radius: 0;
        gap: 4px;
    }
    /* čiara presne na spodnom okraji lišty (rovnaká ako pri zatvorenom menu) */
    .nav.is-open::after {
        content: '';
        position: absolute;
        left: 0; right: 0; bottom: 0;
        height: 1px;
        background: var(--line);
        z-index: 3;
    }
    .nav__foot {
        flex: 1 1 0;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        width: 100%;
        padding-top: 32px;
        text-align: center;
        font-size: 13px;
        color: var(--muted);
    }
    .nav__links a i { display: none; }
    .nav__links a:hover, .nav__links a.is-active { background: none; color: var(--red); }
    .nav__brand { position: relative; z-index: 2; }

    .intro { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr 1fr; }
    .features li, .features li:nth-child(n) { padding: 28px 24px 32px 0; border-right: 0; }
    .features li:nth-child(2n) { padding-left: 24px; }
    .features li:nth-child(2n+1) { border-right: 1px solid var(--line); }
    .gallery { grid-template-columns: 1fr; }
    .contact { grid-template-columns: 1fr; }
    .footer__row { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
    .hero__logo { top: calc(var(--nav-h) + 10px); left: 0; right: 0; margin: 0 auto; }
    .hero__inner { padding-top: calc(var(--nav-h) + clamp(150px, 19vw, 300px) + 30px); }
}

/* tablety (iPad na výšku) */
@media (min-width: 641px) and (max-width: 1200px) {
    .footer__word { font-size: 8.5vw; }
}
@media (min-width: 641px) and (max-width: 980px) {
    .gallery { grid-template-columns: 1fr 1fr; gap: 16px; }
    .shot figcaption { font-size: 15px; }
    .hero__logo { top: calc(var(--nav-h) + 28px); }
    .hero__inner { padding-top: calc(var(--nav-h) + clamp(150px, 19vw, 300px) + 48px); }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .nav__links a { font-size: clamp(20px, 6vw, 24px); padding: 18px 0; }
    .support { grid-template-columns: 1fr; padding: 14px 14px 22px; width: 100%; }
    .support__body { padding: 0 8px; }
    .nav__brand { font-size: 14px; gap: 10px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat:first-child { grid-column: 1 / -1; }
    .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
    .stat:last-child { border-left: 1px solid var(--line); }
    .nav__brand img, .nav.is-scrolled .nav__brand img { width: 52px; }
    .hero__logo { width: 120px; top: calc(var(--nav-h) + 16px); bottom: auto; }
    .hero__inner { padding-top: calc(var(--nav-h) + 140px); }
    .btn { padding: 11px 11px 11px 20px; gap: 12px; font-size: 14px; }
    .btn__icon { width: 30px; height: 30px; }
    .btn__icon svg { left: 7px; top: 7px; width: 16px; height: 16px; }
    .features { grid-template-columns: 1fr; }
    .features li, .features li:nth-child(n) { padding: 24px 0; border-right: 0; min-height: 0; gap: 12px; }
    .docs a { grid-template-columns: 1fr 44px; gap: 10px 16px; padding: 22px 12px; }
    .docs__type { grid-column: 1; grid-row: 1; }
    .docs__name { grid-column: 1; grid-row: 2; }
    .docs__size { grid-column: 1; grid-row: 3; }
    .docs__arrow { grid-column: 2; grid-row: 1 / 4; width: 44px; height: 44px; }
    .contact__grid { grid-template-columns: 1fr; }
    .hero__title { font-size: 13.8vw; }
    .section--contact { padding-bottom: 48px; }
    .hero__kicker { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
    .contact__map, .contact__map iframe { min-height: 340px; }
    .section--light, .section--slate { border-radius: 24px 24px 0 0; }
    .to-top { right: 14px; bottom: 14px; width: 36px; height: 36px; }
    .to-top__arrow { width: 16px; }
    .to-top__ring { inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); }
}

@media (max-width: 420px) {
    .nav__brand { font-size: 13px; line-height: 1.05; }
    .nav__brand > span { display: flex; flex-direction: column; }
    .nav__brand img, .nav.is-scrolled .nav__brand img { width: 46px; }
    .hero__kicker { font-size: 10px; letter-spacing: .05em; padding: 7px 12px; white-space: nowrap; }
    .hero__title .line--small { font-size: 16px; }
    .section__title { font-size: clamp(32px, 11vw, 44px); }
}

@media (prefers-reduced-motion: reduce) {
    *:not(.dot), *:not(.dot)::before, *:not(.dot)::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; }
}
