/* =====================================================================
   CyberCert Lab – hlavní styly
   Struktura: 1) písmo a proměnné  2) základ  3) pozadí a efekty
   4) navigace  5) společné prvky  6) sekce  7) patička  8) přístupnost
   ===================================================================== */

/* ---------- 1) Písmo a proměnné ---------- */
@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
    font-weight: 100 800;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
    font-weight: 100 800;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@property --spin {
    syntax: "<angle>";
    inherits: true;
    initial-value: 0deg;
}

@property --boot {
    syntax: "<integer>";
    inherits: false;
    initial-value: 0;
}

:root {
    --bg: #0f051a;
    --bg-2: #1a0b2e;
    --surface: rgba(24, 12, 44, 0.72);
    --surface-solid: #160a29;
    --line: rgba(0, 255, 255, 0.16);
    --line-2: rgba(229, 231, 235, 0.1);

    --cyan: #00ffff;
    --pink: #ff00ff;
    --purple: #7c3aed;
    --violet: #a855f7;
    --orange: #f97316;
    --amber: #fbbf24;

    --text: #ecebf5;
    --text-2: #c9c7d8;
    --muted: #a1a1aa;
    --dim: #71717a;

    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --nav-h: 68px;
    --radius: 16px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 2) Základ ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    scrollbar-color: var(--purple) var(--bg);
    scrollbar-width: thin;
    overflow-x: clip;
}

body {
    position: relative;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

img,
svg,
canvas,
picture {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

[hidden] {
    display: none !important;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

h1,
h2,
h3 {
    font-family: var(--mono);
    line-height: 1.2;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

ul {
    padding: 0;
    list-style: none;
}

address {
    font-style: normal;
}

::selection {
    background: var(--pink);
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--cyan), var(--pink));
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.muted {
    color: var(--muted);
}

/* Ikony (SVG sprite z Lucide) */
.ic {
    width: 22px;
    height: 22px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ic--sm {
    width: 18px;
    height: 18px;
}

.ic--xs {
    width: 14px;
    height: 14px;
}

/* ---------- 3) Pozadí a efekty ---------- */
.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg);
}

/* Barevné záře – velké měkké gradienty, které se pomalu pohybují (bez drahého filter: blur) */
.bg__glow {
    position: absolute;
    inset: -25%;
    background:
        radial-gradient(closest-side at 20% 25%, rgba(0, 255, 255, 0.11), transparent),
        radial-gradient(closest-side at 80% 70%, rgba(255, 0, 255, 0.1), transparent),
        radial-gradient(closest-side at 40% 85%, rgba(124, 58, 237, 0.13), transparent),
        radial-gradient(closest-side at 70% 15%, rgba(249, 115, 22, 0.06), transparent);
    animation: glowDrift 40s ease-in-out infinite alternate;
}

@keyframes glowDrift {
    to {
        transform: translate3d(4%, -3%, 0) rotate(8deg) scale(1.05);
    }
}

/* Uprostřed (kde je text) je déšť znaků tlumenější, po stranách výraznější */
.bg__fx {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2) 28%, rgba(0, 0, 0, 0.2) 72%, rgba(0, 0, 0, 0.8));
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2) 28%, rgba(0, 0, 0, 0.2) 72%, rgba(0, 0, 0, 0.8));
}

.bg__grid {
    position: absolute;
    inset: -60px 0 0;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.032) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
    animation: gridMove 6s linear infinite;
}

@keyframes gridMove {
    to {
        transform: translate3d(0, 60px, 0);
    }
}

.bg__scan {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px);
}

.bg__scan::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 140px;
    background: linear-gradient(transparent, rgba(0, 255, 255, 0.035), transparent);
    animation: scanMove 9s linear infinite;
}

@keyframes scanMove {
    from {
        transform: translate3d(0, -140px, 0);
    }

    to {
        transform: translate3d(0, 100vh, 0);
    }
}

/* Záře za kurzorem (jen myš) */
.cursor-glow {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 0;
    width: 520px;
    height: 520px;
    margin: -260px 0 0 -260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.09), transparent 65%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    transform: translate3d(var(--cx, -999px), var(--cy, -999px), 0);
}

.cursor-glow.is-on {
    opacity: 1;
}

/* Vyskakující slova – vrstva přes celou stránku; JS je umisťuje jen na volná místa */
.floaters {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.floater {
    position: absolute;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
    white-space: nowrap;
    opacity: 0;
    animation: floatWord 3.4s var(--ease) forwards;
}

.floater:nth-child(even) {
    color: #ff7bff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.6);
}

@keyframes floatWord {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }

    15%,
    70% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateY(-36px);
    }
}

main,
.footer {
    position: relative;
    z-index: 2;
}

/* Úvodní „boot“ animace – jen při první návštěvě v relaci, max. ~1 s */
html.boot body::before,
html.boot body::after {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
    animation: bootOut 0.35s ease 0.85s forwards;
}

html.boot body::before {
    content: "";
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.12), transparent 40%),
        var(--bg);
}

html.boot body::after {
    content: counter(boot) "%";
    counter-reset: boot var(--boot);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--mono);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    color: var(--cyan);
    text-shadow: 0 0 24px rgba(0, 255, 255, 0.7), 0 0 60px rgba(255, 0, 255, 0.35);
    animation: bootCount 0.75s cubic-bezier(0.3, 0.6, 0.4, 1) forwards, bootOut 0.35s ease 0.85s forwards;
}

@keyframes bootCount {
    to {
        --boot: 100;
    }
}

@keyframes bootOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Při anglické verzi schováme stránku, dokud se nepřeloží (záložně se ukáže nejpozději po 1,5 s) */
html.i18n-pending body {
    opacity: 0;
    animation: i18nFallback 0s 1.5s forwards;
}

@keyframes i18nFallback {
    to {
        opacity: 1;
    }
}

/* ---------- 4) Navigace ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--nav-h);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.is-scrolled,
html.menu-open .nav {
    background: rgba(15, 5, 26, 0.82);
    border-bottom-color: var(--line);
    box-shadow: 0 10px 40px -20px rgba(0, 255, 255, 0.35);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.nav__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
}

.brand {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--cyan);
    text-shadow: 0 0 14px rgba(0, 255, 255, 0.55);
    white-space: nowrap;
}

.brand__prompt {
    color: var(--orange);
    margin-right: 0.5ch;
    text-shadow: 0 0 12px rgba(249, 115, 22, 0.6);
}

.brand__cursor {
    animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.nav__links > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-2);
    background: none;
    border: 0;
    border-radius: 8px;
    transition: color 0.2s ease;
}

.nav__links > a::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.2rem;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--pink));
    box-shadow: 0 0 10px var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.nav__links > a:hover,
.nav__links > a.is-active {
    color: var(--cyan);
}

.nav__links > a:hover::after,
.nav__links > a.is-active::after {
    transform: scaleX(1);
}

.ext {
    margin-left: auto;
    opacity: 0.6;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
}

.lang button {
    padding: 0.3rem 0.65rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--muted);
    background: none;
    border: 0;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.lang button:hover {
    color: var(--text);
}

.lang button[aria-pressed="true"] {
    color: var(--bg);
    background: var(--cyan);
    box-shadow: 0 0 14px rgba(0, 255, 255, 0.5);
}

.burger {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.burger span {
    position: absolute;
    left: 11px;
    width: 20px;
    height: 2px;
    background: var(--cyan);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
    transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.burger span:nth-child(1) {
    top: 14px;
}

.burger span:nth-child(2) {
    top: 20px;
}

.burger span:nth-child(3) {
    top: 26px;
}

.burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobilní menu – odhalí se kruhovým „scanem“ z rohu */
.mnav {
    position: fixed;
    inset: var(--nav-h) 0 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 255, 255, 0.12), transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(255, 0, 255, 0.1), transparent 50%),
        rgba(12, 4, 22, 0.98);
    overflow-y: auto;
    clip-path: circle(0 at calc(100% - 40px) 0);
    visibility: hidden;
    transition: clip-path 0.55s var(--ease), visibility 0s 0.55s;
}

.mnav.is-open {
    clip-path: circle(150% at calc(100% - 40px) 0);
    visibility: visible;
    transition: clip-path 0.6s var(--ease), visibility 0s;
}

.mnav__links {
    display: flex;
    flex-direction: column;
}

.mnav__links a {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line-2);
    font-family: var(--mono);
    font-size: clamp(1.15rem, 5vw, 1.5rem);
    font-weight: 600;
    color: var(--text);
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.4s ease, transform 0.4s var(--ease), color 0.2s ease;
}

.mnav.is-open .mnav__links a {
    opacity: 1;
    transform: none;
}

.mnav.is-open .mnav__links a:nth-child(2) { transition-delay: 0.05s; }
.mnav.is-open .mnav__links a:nth-child(3) { transition-delay: 0.1s; }
.mnav.is-open .mnav__links a:nth-child(4) { transition-delay: 0.15s; }
.mnav.is-open .mnav__links a:nth-child(5) { transition-delay: 0.2s; }
.mnav.is-open .mnav__links a:nth-child(6) { transition-delay: 0.25s; }

.mnav__links a:hover,
.mnav__links a[aria-current="page"] {
    color: var(--cyan);
}

.mnav__links .ext {
    align-self: center;
}

.mnav__no {
    font-size: 0.72rem;
    color: var(--pink);
    letter-spacing: 0.1em;
}

.mnav__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mnav__foot .lang button {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.mnav__mail {
    font-family: var(--mono);
    color: var(--cyan);
}

html.menu-open {
    overflow: hidden;
}

/* ---------- 5) Společné prvky ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 48px;
    padding: 0.85rem 1.5rem;
    overflow: hidden;
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn--sm {
    min-height: 40px;
    padding: 0.55rem 1.05rem;
    font-size: 0.74rem;
    border-radius: 10px;
}

.btn--primary {
    color: #0b0418;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    box-shadow: 0 0 0 rgba(0, 255, 255, 0);
}

/* Odlesk, který přejede přes tlačítko */
.btn--primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.6s var(--ease);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -8px rgba(0, 255, 255, 0.6), 0 0 24px -6px rgba(168, 85, 247, 0.7);
}

.btn--primary:hover::after {
    transform: translateX(120%);
}

.btn--ghost {
    color: var(--cyan);
    background: rgba(0, 255, 255, 0.04);
    border-color: rgba(0, 255, 255, 0.45);
}

.btn--ghost:hover {
    transform: translateY(-2px);
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--cyan);
    box-shadow: 0 0 24px -4px rgba(0, 255, 255, 0.45);
}

.btn .ic {
    transition: transform 0.25s var(--ease);
}

.btn:hover .ic {
    transform: translateX(3px);
}

.linklike {
    padding: 0;
    background: none;
    border: 0;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.linklike:hover {
    color: var(--cyan);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.95rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.pulse-dot {
    position: relative;
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
}

.pulse-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--cyan);
    animation: ping 2s ease-out infinite;
}

@keyframes ping {
    to {
        transform: scale(3);
        opacity: 0;
    }
}

.kicker {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--mono);
    font-size: clamp(0.82rem, 1.1vw, 0.95rem);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
}

.kicker::before {
    content: "";
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--pink), var(--cyan));
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.kicker span:first-child {
    color: var(--pink);
}

/* Nadpisy sekcí jsou na desktopu na jednom řádku; na menších displejích se vyváženě zalomí */
.h2 {
    margin-top: 0.75rem;
    font-size: clamp(1.75rem, 3.4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(100deg, #fff 30%, #9ffcff 70%, var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 700;
    color: var(--cyan);
    text-shadow: 0 0 18px rgba(0, 255, 255, 0.35);
}

.h3 .ic {
    color: var(--pink);
    filter: drop-shadow(0 0 6px rgba(255, 0, 255, 0.6));
}

.section {
    padding-block: clamp(72px, 10vw, 128px);
}

.section--tight {
    padding-top: 1rem;
}

.section__head {
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* Panel – společný vzhled karet */
.panel,
.card,
.service,
.feature__text,
.partner,
.contact__item {
    position: relative;
    background: linear-gradient(160deg, rgba(36, 18, 66, 0.72), rgba(16, 7, 30, 0.82));
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
}

/* 3D náklon – hodnoty --rx/--ry nastavuje JS podle pozice myši */
.tilt {
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.5s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.tilt.is-tilting {
    transition: transform 0.08s linear, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Odlesk sledující kurzor */
.tilt::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 255, 255, 0.12), transparent 45%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tilt:hover::after {
    opacity: 1;
}

/* Animace při posunu – jen když běží JS a uživatel nemá vypnuté animace.
   Používá vlastnost translate, aby se nepřepisovala s 3D náklonem (transform). */
html.js .reveal {
    opacity: 0;
    translate: 0 28px;
    transition: opacity 0.8s var(--ease), translate 0.8s var(--ease), transform 0.5s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
    transition-delay: var(--d, 0s);
}

html.js .reveal.is-in {
    opacity: 1;
    translate: none;
}

html.js .tilt.is-tilting {
    transition: transform 0.08s linear, opacity 0.8s var(--ease), translate 0.8s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Glitch efekt nadpisu */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.glitch::before {
    color: var(--cyan);
    animation: glitchA 7s steps(1) infinite;
}

.glitch::after {
    color: var(--pink);
    animation: glitchB 7s steps(1) infinite;
}

.glitch:hover::before,
.glitch:hover::after {
    animation-duration: 0.9s;
}

@keyframes glitchA {
    0%, 88%, 100% { opacity: 0; transform: none; clip-path: none; }
    89% { opacity: 0.9; transform: translate(-4px, 1px); clip-path: inset(10% 0 60% 0); }
    91% { opacity: 0.9; transform: translate(3px, -2px); clip-path: inset(55% 0 20% 0); }
    93% { opacity: 0.9; transform: translate(-2px, 2px); clip-path: inset(30% 0 45% 0); }
    95% { opacity: 0; }
}

@keyframes glitchB {
    0%, 88%, 100% { opacity: 0; transform: none; clip-path: none; }
    90% { opacity: 0.85; transform: translate(4px, -1px); clip-path: inset(65% 0 10% 0); }
    92% { opacity: 0.85; transform: translate(-3px, 2px); clip-path: inset(20% 0 55% 0); }
    94% { opacity: 0.85; transform: translate(2px, 0); clip-path: inset(40% 0 35% 0); }
    96% { opacity: 0; }
}

.hud-tag {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.7rem;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.15em;
    color: var(--cyan);
    background: rgba(8, 3, 16, 0.75);
    border: 1px solid var(--line);
    border-radius: 6px;
}

/* ---------- 6) Sekce ---------- */

/* Hero */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    /* Úvod vyplní celou obrazovku; další sekce se objeví až po posunutí */
    min-height: 100vh;
    min-height: 100svh;
    padding-top: calc(var(--nav-h) + 1.5rem);
    padding-bottom: 4.5rem;
    /* 3D oběžná dráha je v perspektivě širší než svůj rámeček – nesmí rozšířit stránku */
    overflow-x: clip;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.hero__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.35rem;
}

.hero__title {
    font-size: clamp(2.6rem, 6.4vw, 5.4rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.t-cyan {
    color: var(--cyan);
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.55);
}

.t-pink {
    color: var(--pink);
    text-shadow: 0 0 30px rgba(255, 0, 255, 0.55);
}

/* „Lab“ přilepené k nápisu jako přípona, zarovnané na účaří */
.hero__lab {
    margin-left: 0.12em;
    font-size: 0.34em;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.75);
    text-shadow: none;
}

.hero__lead {
    max-width: 36ch;
    font-size: clamp(1.08rem, 1.6vw, 1.3rem);
    color: var(--text-2);
}

/* Pevná výška, aby střídání citátů neposouvalo tlačítka; text je svisle na středu */
.quote {
    display: flex;
    align-items: center;
    max-width: 46ch;
    min-height: 3.6em;
    padding-left: 1rem;
    border-left: 2px solid var(--pink);
    font-style: italic;
    color: var(--muted);
}

.quote p {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.quote p.is-out {
    opacity: 0;
    transform: translateY(6px);
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero__visual {
    position: relative;
    width: 100%;
    max-width: 580px;
    aspect-ratio: 1;
    /* Plátno má kolem koule volný okraj pro oblouky – opticky ho ubereme */
    margin: -5% auto;
    container-type: inline-size;
    perspective: 1000px;
}

.globe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    touch-action: pan-y;
}

@media (hover: hover) and (pointer: fine) {
    .globe {
        cursor: grab;
    }

    .globe.is-dragging {
        cursor: grabbing;
    }
}

.orbit,
.mark,
.globe-hud {
    pointer-events: none;
}

/* Znak uprostřed glóbu – štít se „vykreslí“, ciferník a prstenec se otáčejí */
.mark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 21%;
    margin: -10.5% 0 0 -10.5%;
    overflow: visible;
    /* Záře je záměrně jemná – znak má být klidná kotva, ne nejjasnější prvek glóbu */
    filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.3)) drop-shadow(0 0 18px rgba(255, 0, 255, 0.16));
    opacity: 0.92;
    animation: markFloat 7s ease-in-out infinite;
}

@keyframes markFloat {
    0%, 100% { transform: translateY(0) rotateY(-12deg); }
    50% { transform: translateY(-10px) rotateY(12deg); }
}

.mark__shield {
    fill: rgba(15, 5, 26, 0.78);
    stroke: url(#mark-grad);
    stroke-width: 2.2;
    stroke-linejoin: round;
    stroke-dasharray: 330;
    stroke-dashoffset: 330;
    animation: markDraw 1.6s var(--ease) 0.3s forwards;
}

@keyframes markDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.mark__dial,
.mark__ring {
    fill: none;
    transform-origin: 60px 58px;
}

.mark__dial {
    stroke: rgba(0, 255, 255, 0.42);
    stroke-width: 1.3;
    stroke-dasharray: 1.6 4.6;
    animation: markSpin 24s linear infinite;
}

.mark__ring {
    stroke: url(#mark-grad);
    stroke-width: 2.5;
    stroke-linecap: round;
    opacity: 0.85;
    stroke-dasharray: 98 28;
    animation: markSpin 9s linear infinite reverse;
}

@keyframes markSpin {
    to {
        transform: rotate(360deg);
    }
}

.mark__key {
    fill: rgba(170, 255, 255, 0.85);
}

/* Ukazatel simulace pod glóbem */
.globe-hud {
    position: absolute;
    left: 50%;
    bottom: 2%;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.4rem 0.85rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--text-2);
    background: rgba(10, 4, 20, 0.8);
    border: 1px solid var(--line);
    border-radius: 999px;
    translate: -50% 0;
}

.hero__visual.is-paused .globe-hud {
    opacity: 0;
}

/* Panel s vysvětlením pojmu */
.globe-info {
    position: absolute;
    left: 50%;
    bottom: 4%;
    z-index: 5;
    width: min(360px, calc(100vw - 2 * var(--gutter)));
    padding: 1.1rem 1.25rem 1.2rem;
    background: rgba(12, 5, 24, 0.94);
    border: 1px solid var(--line);
    border-top: 2px solid var(--cyan);
    border-radius: 14px;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9), 0 0 40px -12px rgba(0, 255, 255, 0.45);
    translate: -50% 0;
    animation: infoIn 0.35s var(--ease);
}

@keyframes infoIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

.globe-info--top {
    top: 4%;
    bottom: auto;
}

.globe-info__tag {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--pink);
}

.globe-info h3 {
    margin: 0.3rem 2rem 0.5rem 0;
    font-size: 1rem;
    color: var(--cyan);
}

.globe-info p:not(.globe-info__tag) {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-2);
}

.globe-info__close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--muted);
    background: none;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.globe-info__close:hover {
    color: var(--cyan);
    border-color: var(--cyan);
}

/* Oběžná dráha s popisky – skutečné 3D v CSS */
.orbit {
    position: absolute;
    inset: 6%;
    border: 1px dashed rgba(0, 255, 255, 0.28);
    border-radius: 50%;
    transform-style: preserve-3d;
    /* Úhel --spin nastavuje globe.js – díky tomu se dráha zastavuje a rozjíždí plynule */
    transform: rotateX(72deg) rotateZ(var(--spin));
}

.orbit::before {
    content: "";
    position: absolute;
    inset: 9%;
    border: 1px solid rgba(255, 0, 255, 0.22);
    border-radius: 50%;
}

.orbit__tag {
    --r: 44cqi;
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 0.25rem 0.55rem;
    font-family: var(--mono);
    font-size: clamp(0.58rem, 1.6cqi, 0.75rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    white-space: nowrap;
    color: var(--cyan);
    background: rgba(10, 4, 20, 0.85);
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 6px;
    box-shadow: 0 0 14px rgba(0, 255, 255, 0.35);
    translate: -50% -50%;
    transform: rotateZ(var(--a)) translateX(var(--r)) rotateZ(calc(-1 * var(--a) - var(--spin))) rotateX(-72deg);
    pointer-events: auto;
    cursor: pointer;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

/* Neviditelně větší plocha pro kliknutí */
.orbit__tag::before {
    content: "";
    position: absolute;
    inset: -8px -6px;
}

/* Při najetí se štítek jen rozzáří – nemění velikost (změna velikosti způsobovala „odskakování“) */
.orbit__tag:hover,
.orbit__tag:focus-visible,
.orbit__tag.is-active {
    background: rgba(30, 12, 54, 0.95);
    box-shadow: 0 0 24px currentColor, inset 0 0 10px rgba(255, 255, 255, 0.08);
}

.orbit__tag.is-active {
    outline: 1px solid currentColor;
    outline-offset: 3px;
}

/* 8 štítků rovnoměrně po 45° */
.orbit__tag:nth-child(1) { --a: 0deg; }
.orbit__tag:nth-child(2) { --a: 45deg; color: #ff8bff; border-color: rgba(255, 0, 255, 0.5); box-shadow: 0 0 14px rgba(255, 0, 255, 0.35); }
.orbit__tag:nth-child(3) { --a: 90deg; }
.orbit__tag:nth-child(4) { --a: 135deg; color: var(--amber); border-color: rgba(251, 191, 36, 0.5); box-shadow: 0 0 14px rgba(251, 191, 36, 0.3); }
.orbit__tag:nth-child(5) { --a: 180deg; color: #ff8bff; border-color: rgba(255, 0, 255, 0.5); box-shadow: 0 0 14px rgba(255, 0, 255, 0.35); }
.orbit__tag:nth-child(6) { --a: 225deg; }
.orbit__tag:nth-child(7) { --a: 270deg; color: var(--amber); border-color: rgba(251, 191, 36, 0.5); box-shadow: 0 0 14px rgba(251, 191, 36, 0.3); }
.orbit__tag:nth-child(8) { --a: 315deg; color: #ff8bff; border-color: rgba(255, 0, 255, 0.5); box-shadow: 0 0 14px rgba(255, 0, 255, 0.35); }

.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: -22px;
    color: var(--cyan);
    animation: bounce 2.2s ease-in-out infinite;
}

@keyframes bounce {
    50% {
        transform: translateY(8px);
    }
}

/* Podstránka – menší hero */
.hero--sub {
    min-height: 0;
    padding-top: calc(var(--nav-h) + clamp(1.75rem, 4vw, 3rem));
    padding-bottom: clamp(2rem, 4vw, 3rem);
}

.hero--sub .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
}

.hero__title--sub {
    font-size: clamp(2.4rem, 7vw, 4.75rem);
}

.hero__title--sub .glitch > span {
    background: linear-gradient(100deg, var(--cyan), #9ffcff 40%, var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 22px rgba(0, 255, 255, 0.3));
}

.hero--sub .hero__lead {
    max-width: 56ch;
}

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

.res {
    margin-top: calc(1.4rem - clamp(2rem, 4vw, 3rem));
    padding-top: 0;
}

.res__nav {
    margin-bottom: calc(clamp(2rem, 4vw, 3rem) + 1rem);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    font-family: var(--mono);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.chip .ic {
    color: var(--pink);
}

.chip:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    background: rgba(0, 255, 255, 0.07);
    transform: translateY(-2px);
}

/* Stav laboratoře + služby */
.status__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.terminal {
    position: relative;
    overflow: hidden;
    background: rgba(7, 3, 14, 0.9);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 40px 90px -40px rgba(0, 255, 255, 0.35), inset 0 0 60px rgba(0, 255, 255, 0.03);
}

.terminal__bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--line-2);
}

.terminal__dots {
    display: flex;
    gap: 6px;
}

.terminal__dots i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--pink);
}

.terminal__dots i:nth-child(2) { background: var(--amber); }
.terminal__dots i:nth-child(3) { background: var(--cyan); }

.terminal__title {
    margin-inline: auto;
    padding-right: 45px;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--dim);
}

.terminal__body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.4rem 1.4rem 1.6rem;
    font-family: var(--mono);
    font-size: 0.86rem;
    line-height: 1.5;
}

.t-prompt {
    color: var(--pink);
}

.t-type {
    color: var(--text);
}

.t-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.t-row {
    display: grid;
    grid-template-columns: 13.5rem 1fr;
    gap: 0.75rem;
}

.t-row dt {
    display: flex;
    gap: 0.75rem;
    color: var(--muted);
}

.t-row dd {
    margin: 0;
    color: var(--text);
}

.t-ok {
    color: var(--cyan);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
    white-space: pre;
}

.t-caret {
    display: inline-block;
    width: 0.6em;
    height: 1.1em;
    vertical-align: text-bottom;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    animation: blink 1s steps(1) infinite;
}

/* Řádky terminálu se „vypisují“ postupně, když se terminál objeví na obrazovce */
html.js .terminal .t-line {
    clip-path: inset(0 100% 0 0);
}

html.js .terminal.is-in .t-line {
    animation: typeLine 0.55s steps(24, end) forwards;
    animation-delay: calc(0.35s + var(--i, 0) * 0.32s);
}

@keyframes typeLine {
    to {
        clip-path: inset(0 0 0 0);
    }
}

/* Proč my – 4 body vedle sebe */
.services.services--4 {
    grid-template-columns: repeat(4, 1fr);
}

.services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.service {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    transition: border-color 0.3s ease, transform 0.3s var(--ease), translate 0.8s var(--ease), opacity 0.8s var(--ease);
}

.service:hover {
    border-color: rgba(0, 255, 255, 0.4);
    transform: translateY(-3px);
}

.service h3 {
    font-size: 0.95rem;
    color: #fff;
}

.service p {
    margin-top: 0.35rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.service__icon,
.card__icon,
.contact__icon,
.callout__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: none;
    color: var(--cyan);
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.14), rgba(124, 58, 237, 0.22));
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 0 20px -6px rgba(0, 255, 255, 0.5);
}

/* O projektu – karty */
.cards.cards--3 {
    grid-template-columns: repeat(3, 1fr);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.25rem;
}

.card {
    padding: 1.75rem;
}

/* HUD rohy karty */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(var(--cyan), var(--cyan)) 10px 10px / 16px 2px,
        linear-gradient(var(--cyan), var(--cyan)) 10px 10px / 2px 16px,
        linear-gradient(var(--pink), var(--pink)) calc(100% - 10px) calc(100% - 10px) / 16px 2px,
        linear-gradient(var(--pink), var(--pink)) calc(100% - 10px) calc(100% - 10px) / 2px 16px;
    background-repeat: no-repeat;
    opacity: 0.55;
    transition: opacity 0.3s ease;
}

.card:hover,
.partner:hover,
.feature__media:hover {
    border-color: rgba(0, 255, 255, 0.45);
    box-shadow: 0 30px 60px -30px rgba(0, 255, 255, 0.4);
}

.card:hover::before {
    opacity: 1;
}

.card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.card__no {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--dim);
    letter-spacing: 0.15em;
}

.card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.08rem;
    color: #b9fdff;
}

.card p {
    font-size: 0.97rem;
    color: var(--text-2);
}

.card p + p {
    margin-top: 0.6rem;
}

/* O laboratoři / zdroje – střídající se řádky obrázek + text */
.features {
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 7vw, 6rem);
}

.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
}

.feature--flip .feature__media {
    order: 2;
}

.feature__media {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 30px 70px -35px rgba(124, 58, 237, 0.7);
}

.feature__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Barevný nádech + přejíždějící skenovací paprsek */
.feature__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, transparent 40%, rgba(15, 5, 26, 0.65)),
        linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
    pointer-events: none;
}

.feature__media picture::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 2;
    height: 30%;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 255, 0.16) 85%, rgba(0, 255, 255, 0.55) 100%);
    border-bottom: 1px solid rgba(0, 255, 255, 0.7);
    pointer-events: none;
    animation: imgScan 5s ease-in-out infinite;
}

@keyframes imgScan {
    0% { transform: translateY(-100%); opacity: 0; }
    15% { opacity: 1; }
    70% { opacity: 1; }
    100% { transform: translateY(340%); opacity: 0; }
}

.feature__text {
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.feature__text p {
    color: var(--text-2);
}

.feature__text p + p {
    margin-top: 0.85rem;
}

/* Fakta v odrážkách */
.ticks {
    display: grid;
    gap: 0.55rem;
    margin-top: 1.1rem;
}

.ticks li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--text);
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: 0.6em;
    width: 8px;
    height: 8px;
    border: 1.5px solid var(--cyan);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
    transform: rotate(45deg);
}

/* Jak spolupráce probíhá – 4 kroky spojené svítící linkou */
.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0;
    list-style: none;
}

/* Linka mezi kroky se „nabije“, když se sekce objeví na obrazovce */
.steps::before {
    content: "";
    position: absolute;
    top: 23px;
    left: 24px;
    /* pokračuje i za poslední ikonou až na konec řádku – stejně jako svislá linka na mobilu */
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
    transform-origin: left;
}

html.js .steps::before {
    transform: scaleX(0);
    transition: transform 1.4s var(--ease) 0.3s;
}

html.js .steps.is-in::before {
    transform: scaleX(1);
}

.step {
    position: relative;
}

.step__icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--cyan);
    background: var(--surface-solid);
    border: 1px solid rgba(0, 255, 255, 0.45);
    border-radius: 50%;
    box-shadow: 0 0 22px -4px rgba(0, 255, 255, 0.6);
}

.step__no {
    display: block;
    margin: 1.25rem 0 0.35rem;
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--pink);
}

.step h3 {
    font-size: 1.05rem;
    color: #fff;
}

.step p {
    margin-top: 0.45rem;
    font-size: 0.95rem;
    color: var(--text-2);
}

/* Užitečné zdroje – seznam odkazů */
.resource {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
}

.resource.feature--flip {
    grid-template-columns: 1.15fr 0.85fr;
}

.resource .feature__media {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
}

.links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
    gap: 0.6rem;
    margin-top: 1.4rem;
}

.links a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    height: 100%;
    padding: 0.75rem 0.9rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--text);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--line-2);
    border-left: 2px solid var(--line);
    border-radius: 10px;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}

.links a .ic:first-child {
    color: var(--cyan);
}

.links a:hover {
    color: var(--cyan);
    background: rgba(0, 255, 255, 0.07);
    border-color: rgba(0, 255, 255, 0.45);
    border-left-color: var(--pink);
    transform: translateX(4px);
}

/* Partneři */
.partners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.partner {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.75rem;
}

.partner__logo {
    display: flex;
    align-items: center;
    height: 88px;
    margin-bottom: 0.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line-2);
}

/* Loga jsou přímo v bílé verzi (soubory), takže je není potřeba přebarvovat filtrem.
   Při najetí se rozzáří samotné logo – mění se jen záře, barva loga zůstává. */
.partner__logo img {
    width: auto;
    max-width: 100%;
    max-height: 62px;
    opacity: 0.88;
    filter: drop-shadow(0 0 0 rgba(0, 255, 255, 0));
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.partner__logo .partner__img--ezu {
    height: 52px;
}

.partner:hover .partner__logo img {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.75));
}

.partner__role {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
}

.partner__desc {
    font-size: 0.95rem;
    color: var(--text-2);
}

.partner__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.5rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--pink);
}

.partner__link .ic {
    transition: transform 0.25s var(--ease);
}

.partner:hover .partner__link .ic {
    transform: translate(3px, -3px);
}

/* Kontakt */
.contact {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 1.5rem;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact__list {
    display: grid;
    gap: 1rem;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
}

.contact__label {
    display: block;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
}

.contact__item a,
.contact__item address {
    font-size: 1.05rem;
    color: var(--text);
    overflow-wrap: anywhere;
}

.contact__item a:hover {
    color: var(--cyan);
}

.callout {
    display: flex;
    gap: 1rem;
    padding: 1.4rem;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.09), rgba(124, 58, 237, 0.06) 60%, transparent);
    border: 1px solid var(--line);
    border-left: 3px solid var(--cyan);
    border-radius: 14px;
}

.callout h3 {
    font-size: 1rem;
    color: var(--cyan);
}

.callout p {
    margin: 0.4rem 0 1rem;
    color: var(--text-2);
}

/* Mapa s dvoukrokovým načtením (kvůli cookies Googlu) */
.map {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #0b0416;
}

.map__placeholder {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 55% 45%, rgba(0, 255, 255, 0.18), transparent 35%),
        linear-gradient(28deg, transparent 48%, rgba(0, 255, 255, 0.22) 49%, rgba(0, 255, 255, 0.22) 50.5%, transparent 51.5%),
        linear-gradient(-62deg, transparent 47%, rgba(255, 0, 255, 0.2) 48%, rgba(255, 0, 255, 0.2) 49%, transparent 50%),
        linear-gradient(95deg, transparent 63%, rgba(124, 58, 237, 0.28) 64%, rgba(124, 58, 237, 0.28) 66%, transparent 67%),
        linear-gradient(rgba(0, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 34px 34px,
        linear-gradient(90deg, rgba(0, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 34px 34px;
}

.map__ping {
    position: absolute;
    top: 45%;
    left: 55%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 20px var(--pink);
}

.map__ping::before,
.map__ping::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--pink);
    animation: ping 2.2s ease-out infinite;
}

.map__ping::after {
    animation-delay: 1.1s;
}

.map__consent {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
    padding: 2rem 1.5rem;
    text-align: center;
    background: linear-gradient(180deg, transparent 20%, rgba(11, 4, 22, 0.92) 62%);
}

.map__consent h3 {
    font-size: 1.05rem;
    color: var(--cyan);
}

.map__consent p {
    max-width: 44ch;
    font-size: 0.92rem;
    color: var(--text-2);
}

.map__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
    cursor: pointer;
}

.check input {
    width: 16px;
    height: 16px;
    accent-color: var(--cyan);
}

.map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    /* Tmavá „kyber“ varianta mapy */
    filter: invert(0.92) hue-rotate(180deg) saturate(0.7) contrast(0.95);
}

.map.is-loaded .map__consent,
.map.is-loaded .map__placeholder {
    display: none;
}

/* ---------- 7) Patička ---------- */
.footer {
    padding: clamp(3rem, 7vw, 5rem) 0 2rem;
    background: linear-gradient(180deg, rgba(8, 3, 15, 0.6), rgba(8, 3, 15, 0.95));
    border-top: 1px solid var(--line);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    max-width: 46ch;
}

.footer__brand .brand {
    font-size: 1.35rem;
}

.footer__brand p {
    font-size: 0.95rem;
    color: var(--text-2);
}

.footer__brand p.muted {
    color: var(--muted);
}

.footer__col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.95rem;
}

.footer__col h2 {
    margin-bottom: 0.5rem;
    font-size: 0.74rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
}

.footer__col a {
    color: var(--text-2);
    transition: color 0.2s ease;
}

.footer__col a:hover {
    color: var(--cyan);
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-2);
    font-size: 0.85rem;
    color: var(--dim);
}

.footer__bottom a {
    color: var(--cyan);
}

.footer__bottom .linklike {
    font-size: 0.85rem;
}

/* ---------- 8) Přístupnost ---------- */
.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 200;
    padding: 0.6rem 1rem;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--bg);
    background: var(--cyan);
    border-radius: 8px;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
}

/* Sekce dostávají fokus jen programově (po kliknutí v menu) – bez rámečku */
[tabindex="-1"]:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------- Responzivita ---------- */
@media (max-width: 1080px) {
    .nav__links {
        display: none;
    }

    .burger {
        display: block;
    }

    .nav__actions {
        margin-left: auto;
    }

    .t-row {
        grid-template-columns: 11.5rem 1fr;
    }
}

@media (max-width: 960px) {
    .hero__inner,
    .status__grid,
    .feature,
    .resource,
    .resource.feature--flip,
    .contact {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
        padding-bottom: 4rem;
    }

    /* Nejdřív nadpis a tlačítka, glóbus až pod nimi */
    .hero__visual {
        max-width: 420px;
    }

    .feature--flip .feature__media {
        order: 0;
    }

    .resource .feature__media {
        position: relative;
        top: 0;
    }

    .resource .feature__media img {
        aspect-ratio: 16 / 9;
    }

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

    /* Kroky pod sebou se svislou linkou */
    .steps {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .steps::before {
        top: 24px;
        bottom: 24px;
        left: 23px;
        right: auto;
        width: 2px;
        height: auto;
        background: linear-gradient(180deg, var(--cyan), var(--violet), var(--pink));
        transform-origin: top;
    }

    html.js .steps::before {
        transform: scaleY(0);
    }

    html.js .steps.is-in::before {
        transform: scaleY(1);
    }

    .step {
        display: grid;
        grid-template-columns: 48px 1fr;
        column-gap: 1.1rem;
    }

    .step__icon {
        grid-row: span 3;
    }

    .step__no {
        margin-top: 0.1rem;
    }

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

    .partner__logo {
        height: 76px;
    }

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

    .footer__brand {
        grid-column: 1 / -1;
    }

    .scroll-hint {
        display: none;
    }
}

@media (max-width: 640px) {
    :root {
        --nav-h: 62px;
    }

    .nav__cta {
        display: none;
    }

    .section {
        padding-block: 56px;
    }

    /* Úvod: nadpis, text i obě tlačítka hned v první obrazovce, glóbus pod nimi */
    .hero {
        padding-top: calc(var(--nav-h) + 1.25rem);
        padding-bottom: 1rem;
    }

    .hero__inner {
        gap: 0;
    }

    .hero__text {
        gap: 1rem;
    }

    .eyebrow {
        padding: 0.4rem 0.8rem;
        font-size: 0.62rem;
        letter-spacing: 0.1em;
    }

    .hero__title {
        font-size: min(3.3rem, 13.5vw);
    }

    .hero__lead {
        font-size: 1.02rem;
    }

    /* Delší nadpis podstránky se smí zalomit */
    .hero__title--sub {
        font-size: min(2.6rem, 11.5vw);
        white-space: normal;
    }

    /* Citáty na mobilu vynecháme – tlačítka jsou důležitější */
    .quote {
        display: none;
    }

    .hero__visual {
        max-width: 380px;
        margin: -0.5rem auto -1.5rem;
    }

    /* Užší oběžná dráha, aby se delší štítky (ISO/IEC 17025) vešly na displej */
    .orbit {
        inset: 12%;
    }

    .orbit__tag {
        --r: 38cqi;
    }

    .globe-hud {
        bottom: 4%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem 0.6rem;
        width: max-content;
        max-width: calc(100vw - 2 * var(--gutter));
        padding: 0.35rem 0.75rem;
        font-size: 0.6rem;
        letter-spacing: 0.06em;
        white-space: normal;
        border-radius: 14px;
    }

    .hero__cta {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0.6rem;
        width: 100%;
    }

    .hero__cta .btn {
        justify-content: center;
        padding-inline: 0.9rem;
        font-size: 0.78rem;
        letter-spacing: 0.04em;
        white-space: nowrap;
    }

    .cards.cards--3,
    .services.services--4 {
        grid-template-columns: 1fr;
    }

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

    .service {
        flex-direction: row;
        align-items: flex-start;
    }

    .terminal__body {
        padding: 1.1rem;
        font-size: 0.8rem;
    }

    .t-row {
        grid-template-columns: 1fr;
        gap: 0.1rem;
    }

    .t-row dd {
        padding-left: calc(6ch + 0.75rem);
    }

    .map {
        min-height: 380px;
    }

    .feature__media img {
        aspect-ratio: 16 / 10;
    }

    .card,
    .partner {
        padding: 1.4rem;
    }

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

@media (max-width: 380px) {
    .brand {
        font-size: 1rem;
    }

    .lang button {
        padding: 0.3rem 0.5rem;
    }

    /* Na nejužších displejích by se šipka do tlačítka nevešla */
    .hero__cta .btn .ic {
        display: none;
    }
}

/* ---------- 9) Mobil: karty do stran, záložky, lišta s kontaktem ---------- */
.hint-touch,
.swipe-dots,
.dock {
    display: none;
}

@media (hover: none) {
    .hint-mouse {
        display: none;
    }

    .hint-touch {
        display: inline;
    }
}

/* Vysvětlení pojmu z glóbu jako panel vysunutý zespodu (třídu přidává globe.js jen na mobilu) */
.globe-info.globe-info--sheet {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 95;
    width: auto;
    padding: 1.7rem 1.35rem calc(1.5rem + env(safe-area-inset-bottom));
    background: rgba(12, 5, 24, 0.98);
    border-width: 2px 0 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -24px 60px -10px rgba(0, 0, 0, 0.85), 0 -4px 30px -14px rgba(0, 255, 255, 0.55);
    translate: none;
    animation: sheetIn 0.4s var(--ease);
}

/* „Úchyt“ – naznačuje, že panel jde stáhnout dolů */
.globe-info--sheet::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 38px;
    height: 4px;
    margin-left: -19px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 2px;
}

@keyframes sheetIn {
    from {
        transform: translateY(100%);
    }
}

/* Úhel obíhajícího impulzu kolem aktivní karty */
@property --ring {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@keyframes ringRun {
    to {
        --ring: 360deg;
    }
}

@keyframes tabFromRight {
    from {
        opacity: 0;
        transform: translateX(32px);
    }
}

@keyframes tabFromLeft {
    from {
        opacity: 0;
        transform: translateX(-32px);
    }
}

@media (max-width: 640px) {
    /* Karty vedle sebe, listují se prstem; okraj další karty naznačuje, že je čím listovat */
    [data-swipe] {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 12px;
        margin-inline: calc(-1 * var(--gutter));
        padding: 4px var(--gutter) 10px;
        overflow-x: auto;
        /* jen do stran – svisle se posouvá celá stránka, ne pás s kartami */
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--gutter);
        scrollbar-width: none;
    }

    [data-swipe]::-webkit-scrollbar {
        display: none;
    }

    /* Karty v pásu se při objevení jen rozsvítí – posun zespodu by vytvořil svislý přesah */
    html.js [data-swipe] .reveal {
        translate: none;
    }

    [data-swipe] > * {
        flex: 0 0 86%;
        min-width: 0;
        scroll-snap-align: start;
    }

    .swipe-dots {
        display: flex;
        justify-content: center;
        margin-top: 0.25rem;
    }

    /* Tlačítko je větší než viditelná tečka, aby se do něj dalo pohodlně trefit */
    .swipe-dots button {
        display: grid;
        place-items: center;
        width: 28px;
        height: 28px;
        padding: 0;
        background: none;
        border: 0;
        cursor: pointer;
    }

    .swipe-dots button::before {
        content: "";
        width: 6px;
        height: 6px;
        background: rgba(255, 255, 255, 0.22);
        border-radius: 3px;
        transition: width 0.3s var(--ease), background-color 0.3s ease, box-shadow 0.3s ease;
    }

    .swipe-dots button.is-on::before {
        width: 20px;
        background: var(--cyan);
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
    }

    /* Laboratoř: obrázek a text jako jedna karta */
    #lab [data-swipe] > .feature {
        position: relative;
        align-content: start;
        align-items: start;
        gap: 0;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius);
    }

    #lab .feature__media {
        border: 0;
        border-radius: var(--radius) var(--radius) 0 0;
        box-shadow: none;
    }

    /* Text je součástí karty – bez vlastního rámečku (jinak vypadal jako druhý obdélník v kartě) */
    #lab .feature__text {
        padding: 1.1rem 1.15rem 1.3rem;
        background: none;
        border: 0;
        border-radius: 0;
    }

    /* Aktivní karta: kolem okraje obíhá světelný impulz (náhrada 3D náklonu, který na dotyku nefunguje) */
    [data-swipe] > .is-shown {
        box-shadow: 0 0 34px -14px rgba(0, 255, 255, 0.55);
        transition: box-shadow 0.4s ease;
    }

    [data-swipe] > .is-shown::after {
        content: "";
        position: absolute;
        inset: -1px;
        z-index: 3;
        padding: 1.5px;
        border-radius: inherit;
        background: conic-gradient(from var(--ring), transparent 0deg 290deg, rgba(255, 0, 255, 0.7) 330deg, var(--cyan) 352deg, #fff 358deg, transparent 360deg);
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
        opacity: 1;
        pointer-events: none;
        animation: ringRun 4.5s linear infinite;
    }

    /* Užitečné odkazy: kategorie jako záložky přilepené pod menu */
    .res {
        margin-top: 0;
    }

    .res__nav {
        position: sticky;
        top: var(--nav-h);
        z-index: 20;
        flex-wrap: nowrap;
        margin: 0 calc(-1 * var(--gutter)) 1.25rem;
        padding: 0.7rem var(--gutter);
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        background: rgba(15, 5, 26, 0.88);
        border-bottom: 1px solid var(--line-2);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }

    .res__nav::-webkit-scrollbar {
        display: none;
    }

    .res__nav .chip {
        flex: none;
    }

    .res__nav .chip:hover {
        transform: none;
    }

    .res__nav .chip[aria-current="true"] {
        color: var(--bg);
        background: var(--cyan);
        border-color: var(--cyan);
        box-shadow: 0 0 18px rgba(0, 255, 255, 0.45);
    }

    .res__nav .chip[aria-current="true"] .ic {
        color: var(--bg);
    }

    .features.is-tabbed > .resource {
        display: none;
    }

    .features.is-tabbed > .resource.is-current {
        display: grid;
        gap: 1.1rem;
    }

    html.js .is-tabbed .reveal {
        opacity: 1;
        translate: none;
    }

    /* Mobilní výřezy obrázků (…-m-*) mají přesně tento poměr stran */
    .is-tabbed .resource .feature__media img {
        aspect-ratio: 16 / 9;
    }

    .is-tabbed > .from-right {
        animation: tabFromRight 0.35s var(--ease);
    }

    .is-tabbed > .from-left {
        animation: tabFromLeft 0.35s var(--ease);
    }

    /* Lišta s rychlým kontaktem */
    .dock {
        position: fixed;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        left: 12px;
        z-index: 90;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px;
        background: rgba(15, 5, 26, 0.9);
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.9), 0 0 30px -12px rgba(0, 255, 255, 0.45);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        opacity: 0;
        transform: translateY(calc(100% + 30px));
        transition: transform 0.45s var(--ease), opacity 0.3s ease;
    }

    .dock.is-visible {
        opacity: 1;
        transform: none;
    }

    html.menu-open .dock {
        opacity: 0;
        pointer-events: none;
    }

    .dock__icon {
        display: grid;
        place-items: center;
        flex: none;
        width: 46px;
        height: 46px;
        color: var(--cyan);
        background: rgba(0, 255, 255, 0.06);
        border: 1px solid var(--line);
        border-radius: 12px;
    }

    .dock__cta {
        flex: 1;
        justify-content: center;
        min-height: 46px;
        padding-inline: 0.8rem;
        font-size: 0.76rem;
        letter-spacing: 0.04em;
        white-space: nowrap;
    }
}

/* Uživatel si v systému vypnul animace → vše statické */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    html {
        scroll-behavior: auto;
    }

    html.js .reveal {
        opacity: 1;
        translate: none;
    }

    html.js .terminal .t-line {
        clip-path: none;
    }

    .feature__media picture::after,
    .bg__scan::after {
        display: none;
    }
}

/* Background motion at 50% visual intensity; foreground stays unchanged. */
.bg > .bg__glow,
.bg > .bg__fx,
.bg > .bg__grid,
.bg > .bg__scan,
.floaters { opacity: 0.5; }
