/* =====================================================================
   CyberCert Lab – sjednocení vzhledu doplněných bloků
   Načítá se jako poslední; navazuje na proměnné a komponenty z main.css.
   1) stavební lišta  2) glóbus  3) služby  4) spouštěče detailu
   5) detailní panel  6) podnadpisy a karty  7) ukázka zprávy
   8) lidé za laboratoří  9) časté dotazy  10) kontakt  11) média
   12) užitečné odkazy  13) mapa pracovišť  14) mobil
   ===================================================================== */

/* ---------- 1) Stavební lišta – na celou šířku pod menu ---------- */
.construction-notice {
    position: absolute;
    top: var(--nav-h);
    right: 0;
    left: 0;
    z-index: 6;
    display: block;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: var(--text-2);
    background: rgba(12, 6, 22, 0.72);
    border: 0;
    border-bottom: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* Výstražná páska ve spodní hraně se pomalu posouvá */
.construction-notice::before {
    top: auto;
    bottom: 0;
    height: 2px;
    background: repeating-linear-gradient(135deg, var(--amber) 0 7px, transparent 7px 14px);
    background-size: 19.8px 2px;
    opacity: 0.75;
    animation: tapeRun 1.4s linear infinite;
}

@keyframes tapeRun {
    to {
        background-position: 19.8px 0;
    }
}

.construction-notice .construction-notice__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 38px;
    padding-block: 0.45rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

.construction-notice .ic {
    width: 16px;
    height: 16px;
    color: var(--amber);
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
    animation: noticeBlink 2.4s ease-in-out infinite;
}

@keyframes noticeBlink {
    50% {
        opacity: 0.45;
    }
}

.construction-notice strong {
    font: 700 0.72rem/1.4 var(--mono);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amber);
}

.construction-notice strong::after {
    content: "//";
    margin-left: 0.6rem;
    color: var(--dim);
    letter-spacing: 0;
}

.construction-notice__inner > span {
    color: var(--text-2);
}

.hero:has(> .construction-notice) {
    padding-top: calc(var(--nav-h) + 38px + 1.5rem);
}

.hero--sub:has(> .construction-notice) {
    padding-top: calc(var(--nav-h) + 38px + clamp(1.75rem, 4vw, 3rem));
}

/* ---------- 2) Glóbus: tažení myší nesmí označovat text ---------- */
.hero__visual {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.hero__visual ::selection {
    background: transparent;
}

.hero__visual .globe-info,
.hero__visual .globe-info ::selection {
    -webkit-user-select: text;
    user-select: text;
}

.hero__visual .globe-info ::selection {
    background: rgba(0, 255, 255, 0.3);
}

/* ---------- 3) Co děláme: terminál uprostřed, karty stejně vysoké ---------- */
@media (min-width: 961px) {
    .status__grid {
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
        align-items: center;
    }

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

.services {
    align-items: stretch;
}

.services:not(.services--4) {
    grid-auto-rows: 1fr;
}

.service > div {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.service > div > p {
    margin-bottom: 1rem;
}

/* Oddělovací linka u karet v jedné řadě sedí ve stejné výšce */
.service .disclosure {
    margin-top: auto;
    padding-top: 0.3rem;
    border-top-color: rgba(0, 255, 255, 0.22);
}

/* ---------- 4) Spouštěče detailu (místo rozbalovacích textů) ---------- */
.disclosure > summary {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 0 0.1rem;
    font-family: var(--sans);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.4;
    list-style: none;
    color: var(--cyan);
    overflow-wrap: normal;
    cursor: pointer;
    transition: color 0.2s ease;
}

.disclosure > summary::-webkit-details-marker {
    display: none;
}

.disclosure > summary::marker {
    content: "";
}

/* Ikonka „+“ v rámečku */
.disclosure > summary::before {
    content: "";
    flex: none;
    width: 26px;
    height: 26px;
    background:
        linear-gradient(var(--cyan), var(--cyan)) center / 10px 1.5px no-repeat,
        linear-gradient(var(--cyan), var(--cyan)) center / 1.5px 10px no-repeat,
        rgba(0, 255, 255, 0.06);
    border: 1px solid rgba(0, 255, 255, 0.35);
    border-radius: 8px;
    transition: transform 0.35s var(--ease), box-shadow 0.25s ease, background-color 0.25s ease;
}

.disclosure > summary::after {
    content: "→";
    margin-left: 0.15rem;
    font-family: var(--mono);
    color: var(--pink);
    transition: transform 0.25s var(--ease);
}

/* V kartách stačí ikonka „+“ – text se tak vejde na jeden řádek */
.service .disclosure > summary,
#lab .disclosure > summary,
.resource__more .disclosure > summary {
    font-size: 0.82rem;
}

.service .disclosure > summary::after,
#lab .disclosure > summary::after,
.resource__more .disclosure > summary::after {
    display: none;
}

.disclosure > summary:hover {
    color: #fff;
}

.disclosure > summary:hover::before {
    box-shadow: 0 0 16px -2px rgba(0, 255, 255, 0.65);
    transform: rotate(90deg);
}

.disclosure > summary:hover::after {
    transform: translateX(4px);
}

.disclosure > summary:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
    border-radius: 6px;
}

.disclosure > summary.no-ring:focus-visible {
    outline: none;
}

.disclosure[open] > summary::before {
    transform: rotate(45deg);
}

/* Samostatný pruh (EUCC u spolupráce, role institucí, ověření certifikátu) */
.disclosure--banner {
    position: relative;
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
    overflow: hidden;
    background: linear-gradient(100deg, rgba(0, 255, 255, 0.08), rgba(124, 58, 237, 0.1) 55%, rgba(255, 0, 255, 0.06));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, translate 0.8s var(--ease), opacity 0.8s var(--ease);
}

/* Světlo, které pomalu přejíždí horní hranou */
.disclosure--banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--pink), transparent);
    animation: bannerSweep 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes bannerSweep {
    60%,
    100% {
        left: 100%;
    }
}

.disclosure--banner:hover {
    border-color: rgba(0, 255, 255, 0.45);
    box-shadow: 0 0 44px -20px rgba(0, 255, 255, 0.7);
}

.disclosure--banner > summary {
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    font-family: var(--mono);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
}

.disclosure--banner > summary::before {
    width: 40px;
    height: 40px;
    background-size: 14px 2px, 2px 14px, auto;
    border-radius: 12px;
    box-shadow: 0 0 20px -6px rgba(0, 255, 255, 0.5);
}

.disclosure--banner > summary::after {
    margin-left: auto;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    flex: none;
    font-size: 1rem;
    border: 1px solid rgba(255, 0, 255, 0.45);
    border-radius: 50%;
}

.disclosure--banner:hover > summary::after {
    color: #fff;
    background: rgba(255, 0, 255, 0.18);
    box-shadow: 0 0 18px -2px rgba(255, 0, 255, 0.6);
}

.disclosure--banner > .disclosure__body {
    padding: 0 1.3rem 1.3rem;
}

/* Nenápadný odkaz pod tlačítkem v kontaktu */
.disclosure--inline {
    margin-top: 0.85rem;
    border-top: 0;
}

.disclosure--inline > summary {
    padding-top: 0.2rem;
    font-size: 0.84rem;
}

.disclosure--inline > summary::after {
    margin-left: 0.2rem;
}

/* ---------- 5) Detailní panel – vysune se z boku (na mobilu zespodu) ---------- */
html.is-locked {
    overflow: hidden;
}

html.is-locked body,
html.is-locked .nav {
    padding-right: var(--sbw, 0px);
}

dialog.detail {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    /* clip, ne hidden: dialog se pak nedá posunout, když prohlížeč zaostří tlačítko
       v panelu, který teprve vyjíždí (jinak panel zprava „poskočí“ dopředu) */
    overflow: hidden;
    overflow: clip;
    color: var(--text);
    background: transparent;
    border: 0;
}

dialog.detail::backdrop {
    background: rgba(6, 2, 12, 0.42);
    animation: fadeIn 0.3s ease;
}

dialog.detail.is-closing::backdrop {
    opacity: 0;
    transition: opacity 0.25s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
}

.detail__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(580px, 94vw);
    background:
        radial-gradient(ellipse at 100% 0, rgba(0, 255, 255, 0.1), transparent 55%),
        radial-gradient(ellipse at 0 100%, rgba(255, 0, 255, 0.09), transparent 55%),
        linear-gradient(170deg, #1d0d36, #0e0519);
    border-left: 1px solid var(--line);
    box-shadow: -40px 0 90px -30px rgba(0, 0, 0, 0.95), 0 0 70px -35px rgba(0, 255, 255, 0.7);
    animation: drawerRight 0.45s var(--ease);
}

dialog.detail--left .detail__panel {
    right: auto;
    left: 0;
    border-right: 1px solid var(--line);
    border-left: 0;
    animation-name: drawerLeft;
}

dialog.detail.is-closing .detail__panel {
    transform: translateX(105%);
    transition: transform 0.26s ease-in;
}

dialog.detail--left.is-closing .detail__panel {
    transform: translateX(-105%);
}

@keyframes drawerRight {
    from {
        transform: translateX(100%);
    }
}

@keyframes drawerLeft {
    from {
        transform: translateX(-100%);
    }
}

/* Svítící hrana panelu na straně u karty */
.detail__panel::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1px;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--cyan) 30%, var(--pink) 70%, transparent);
    box-shadow: 0 0 14px rgba(0, 255, 255, 0.6);
    opacity: 0.8;
}

dialog.detail--left .detail__panel::before {
    right: -1px;
    left: auto;
}

.detail__head {
    position: relative;
    padding: 1.6rem 4.5rem 1.3rem 1.8rem;
    border-bottom: 1px solid var(--line-2);
}

.detail__kicker {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pink);
}

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

.detail__kicker:empty {
    display: none;
}

.detail__title {
    margin-top: 0.55rem;
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 800;
    line-height: 1.3;
    color: var(--cyan);
    text-shadow: 0 0 18px rgba(0, 255, 255, 0.35);
}

.detail__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line-2);
    border-radius: 12px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.3s var(--ease);
}

/* Křížek kreslený čarami (bez ikony, funguje na každé stránce) */
.detail__close::before,
.detail__close::after,
.lightbox__close::before,
.lightbox__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 1.5px;
    margin: -0.75px 0 0 -8px;
    background: currentColor;
    border-radius: 1px;
    transform: rotate(45deg);
}

.detail__close::after,
.lightbox__close::after {
    transform: rotate(-45deg);
}

.detail__close:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    transform: rotate(90deg);
}

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

.detail__body {
    flex: 1;
    padding: 1.6rem 1.8rem 2.4rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--text-2);
    scrollbar-color: rgba(0, 255, 255, 0.3) transparent;
    scrollbar-width: thin;
}

/* Obsah najede postupně – čte se po odstavcích, ne jako jeden blok */
.detail__body > * {
    animation: detailItem 0.55s var(--ease) both;
    animation-delay: calc(0.12s + var(--i, 0) * 0.07s);
}

@keyframes detailItem {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}

.detail__body > p {
    max-width: 62ch;
}

.detail__body > p:first-child {
    font-size: 1.05rem;
    color: var(--text);
}

.detail__body > * + * {
    margin-top: 1rem;
}

.detail__body .detail-list {
    display: grid;
    gap: 0.6rem;
    margin: 1.25rem 0;
    padding: 0;
    list-style: none;
    counter-reset: detail;
}

.detail__body .detail-list li {
    position: relative;
    margin: 0;
    padding: 0.85rem 1rem 0.85rem 3.1rem;
    font-size: 0.94rem;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line-2);
    border-radius: 12px;
    counter-increment: detail;
}

.detail__body .detail-list li::before {
    content: counter(detail, decimal-leading-zero);
    position: absolute;
    top: 0.95rem;
    left: 1rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--pink);
}

.detail__body .detail-list a {
    font-family: var(--mono);
    font-weight: 700;
    color: var(--cyan);
    text-decoration: none;
}

.detail__body .detail-list a:hover {
    color: #fff;
}

.detail__body .reference-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-top: 1.6rem;
    padding-top: 1.4rem;
    border-top: 1px dashed rgba(0, 255, 255, 0.2);
}

.detail__body .reference-links li {
    position: relative;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--line-2);
    border-left: 2px solid var(--pink);
    border-radius: 12px;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.25s var(--ease);
}

.detail__body .reference-links a {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text);
    text-decoration: none;
}

/* Celá dlaždice je klikací */
.detail__body .reference-links a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.detail__body .reference-links .ext-arrow {
    margin-left: auto;
    color: var(--pink);
    transition: transform 0.25s var(--ease);
}

.detail__body .reference-links p {
    margin-top: 0.3rem;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--muted);
}

.detail__body .reference-links li:hover {
    background: rgba(0, 255, 255, 0.06);
    border-color: rgba(0, 255, 255, 0.4);
    border-left-color: var(--cyan);
    transform: translateX(4px);
}

.detail__body .reference-links li:hover a {
    color: var(--cyan);
}

.detail__body .reference-links li:hover .ext-arrow {
    transform: translate(2px, -2px);
}

.detail__body .reference-links li:focus-within {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

.detail__body .reference-links a:focus-visible {
    outline: none;
}

/* Karta, ke které patří otevřený detail: obíhající impulz jako na mobilu */
.is-detail-source {
    position: relative;
    box-shadow: 0 0 40px -14px rgba(0, 255, 255, 0.6);
}

.is-detail-source::after {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: 3;
    padding: 2.5px;
    background: conic-gradient(from var(--ring), transparent 0deg 250deg, rgba(255, 0, 255, 0.8) 310deg, var(--cyan) 350deg, #fff 358deg, transparent 360deg);
    filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.8));
    border-radius: inherit;
    -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);
    pointer-events: none;
    animation: ringRun 3.5s linear infinite;
}

/* ---------- 6) Podnadpisy a karty doplněných bloků ---------- */
.section__addition {
    margin-top: clamp(4rem, 8vw, 6rem);
}

/* Podnadpis je menší obdoba záhlaví sekce: „—— 01.1“ jako u čísel sekcí, pod tím nadpis */
.section__addition > .h3 {
    display: block;
    margin-bottom: 1rem;
    font-size: clamp(1.35rem, 2.6vw, 1.95rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    color: transparent;
    background: linear-gradient(100deg, #fff 35%, #9ffcff 75%, var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: none;
}

.section__addition > .h3[data-sub]::before {
    content: attr(data-sub);
    display: block;
    width: fit-content;
    margin-bottom: 0.65rem;
    padding-left: 2.6rem;
    font: 700 0.82rem/1.4 var(--mono);
    letter-spacing: 0.2em;
    color: var(--pink);
    background: linear-gradient(90deg, var(--pink), var(--cyan)) left center / 1.8rem 2px no-repeat;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: var(--pink);
}

.addition-intro {
    max-width: 72ch;
    margin: 0 0 1.8rem;
}

/* Upozornění „modelové situace“ jako nenápadná poznámka s ikonou */
.addition-intro--note {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--muted);
    background: rgba(0, 255, 255, 0.035);
    border: 1px dashed rgba(0, 255, 255, 0.3);
    border-radius: 10px;
}

.addition-intro--note::before {
    content: "i";
    display: grid;
    flex: none;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-top: 0.05rem;
    font: 700 0.72rem/1 var(--mono);
    color: var(--cyan);
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 50%;
}

.addition-grid {
    gap: 1.25rem;
    margin-top: 0;
}

.addition-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, rgba(36, 18, 66, 0.72), rgba(16, 7, 30, 0.82));
    border: 1px solid var(--line-2);
    transition: border-color 0.3s ease, transform 0.4s var(--ease), box-shadow 0.3s ease, translate 0.8s var(--ease), opacity 0.8s var(--ease);
}

.addition-card:hover {
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 26px 50px -32px rgba(0, 255, 255, 0.55);
    transform: translateY(-4px);
}

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

.addition-card h4 {
    margin-bottom: 0.9rem;
    font: 700 1.05rem/1.4 var(--mono);
    color: #fff;
}

/* Modelová zakázka: Zadání → Postup → Výstup jako malá časová osa */
.scenario-steps {
    position: relative;
    display: grid;
    padding-left: 1.5rem;
}

.scenario-steps::before {
    content: "";
    position: absolute;
    top: 0.45rem;
    bottom: 0.6rem;
    left: 5px;
    width: 2px;
    background: linear-gradient(180deg, var(--cyan), var(--violet), var(--pink));
    border-radius: 2px;
    opacity: 0.55;
}

.scenario-steps dt {
    position: relative;
    margin: 1.1rem 0 0.25rem;
    font: 700 0.7rem/1.4 var(--mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cyan);
}

.scenario-steps dt:first-of-type {
    margin-top: 0;
}

.scenario-steps dt:nth-of-type(2) {
    color: var(--violet);
}

.scenario-steps dt:nth-of-type(3) {
    color: var(--pink);
}

.scenario-steps dt::before {
    content: "";
    position: absolute;
    top: 0.15em;
    left: calc(-1.5rem + 1px);
    width: 10px;
    height: 10px;
    background: var(--bg);
    border: 2px solid currentColor;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.scenario-steps dd {
    font-size: 0.92rem;
    line-height: 1.65;
}

/* Co od nás dostanete: tři kroky propojené šipkou */
.deliverable > p {
    font-size: 0.94rem;
}

@media (min-width: 1001px) {
    .deliverable:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 50%;
        right: calc(-0.625rem - 5px);
        z-index: 2;
        width: 16px;
        height: 16px;
        border: 2px solid var(--pink);
        border-width: 2px 2px 0 0;
        transform: translateY(-50%) rotate(45deg);
        filter: drop-shadow(0 0 6px rgba(255, 0, 255, 0.9));
    }
}

/* ---------- 7) Ukázka zprávy ke stažení ---------- */
.sample-download {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem 1.75rem;
    margin-top: 1.5rem;
    padding: 1.35rem 1.6rem;
    overflow: hidden;
    background: linear-gradient(100deg, rgba(255, 0, 255, 0.09), rgba(124, 58, 237, 0.09) 45%, rgba(0, 255, 255, 0.05));
    border: 1px solid rgba(255, 0, 255, 0.3);
    border-radius: var(--radius);
}

.sample-download__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 64px;
    color: var(--pink);
    background: rgba(255, 0, 255, 0.08);
    border: 1px solid rgba(255, 0, 255, 0.45);
    border-radius: 12px;
    box-shadow: 0 0 26px -8px rgba(255, 0, 255, 0.7);
}

.sample-download__icon .ic {
    width: 26px;
    height: 26px;
}

.sample-download__icon > span {
    position: absolute;
    bottom: -8px;
    left: 50%;
    padding: 1px 6px;
    font: 700 0.6rem/1.5 var(--mono);
    letter-spacing: 0.1em;
    color: var(--bg);
    background: var(--pink);
    border-radius: 4px;
    transform: translateX(-50%);
}

.sample-download p {
    max-width: none;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
}

.sample-download__actions {
    flex-wrap: nowrap;
    gap: 0.6rem;
    margin: 0;
}

.sample-download__actions .btn {
    white-space: nowrap;
}

.sample-download__actions .btn:hover .ic {
    transform: translateY(2px);
}

@media (max-width: 1080px) {
    .sample-download {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .sample-download__actions {
        grid-column: 1 / -1;
        flex-wrap: wrap;
    }
}

/* ---------- 8) Lidé za laboratoří ---------- */
@media (max-width: 1240px) {
    #team .addition-grid--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    #team .addition-grid--two {
        grid-template-columns: 1fr;
    }
}

.team-card__head h4,
.team-card__head .team-role {
    white-space: normal;
}

.team-card__head h4 {
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.team-role {
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    color: var(--cyan);
}

.team-card > p {
    margin-bottom: 1.2rem;
    font-size: 0.93rem;
}

.team-portrait {
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 18px 40px -22px rgba(0, 255, 255, 0.55);
}

.team-card .addition-links {
    margin-top: auto;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line-2);
}

/* Odkazy ve stylu partnerů: růžové, šipka při najetí poskočí */
.addition-links a:not(.btn):not(.link-cta) {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--pink);
    text-decoration: none;
    transition: color 0.2s ease;
}

.addition-links a:not(.btn):not(.link-cta) .ic {
    transition: transform 0.25s var(--ease);
}

.addition-links a:not(.btn):not(.link-cta):hover {
    color: #ff8cff;
}

.addition-links a:not(.btn):not(.link-cta):hover .ic {
    transform: translate(3px, -3px);
}

/* Výraznější odkaz (fotky projektu, mapa areálu) */
.link-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.45rem 1.05rem 0.45rem 0.45rem;
    font: 700 0.76rem/1.3 var(--mono);
    letter-spacing: 0.06em;
    color: var(--pink);
    text-decoration: none;
    background: rgba(255, 0, 255, 0.06);
    border: 1px solid rgba(255, 0, 255, 0.35);
    border-radius: 999px;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.link-cta > .ic:first-child {
    box-sizing: content-box;
    flex: none;
    padding: 7px;
    background: rgba(255, 0, 255, 0.14);
    border-radius: 50%;
}

.link-cta > .ic:last-of-type {
    transition: transform 0.25s var(--ease);
}

.link-cta:hover {
    color: #fff;
    background: rgba(255, 0, 255, 0.14);
    border-color: var(--pink);
    box-shadow: 0 0 26px -6px rgba(255, 0, 255, 0.6);
}

.link-cta:hover > .ic:last-of-type {
    transform: translate(3px, -3px);
}

.link-cta[href^="media"]:hover > .ic:last-of-type {
    transform: translateX(4px);
}

.team-gallery-link {
    justify-content: center;
    margin-top: 2rem;
}

/* ---------- 9) Časté dotazy ---------- */
.faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 0.75rem 1.25rem;
    max-width: none;
    counter-reset: faq;
}

.faq-col {
    display: grid;
    gap: 0.75rem;
}

.faq-list .disclosure {
    margin: 0;
    background: linear-gradient(160deg, rgba(36, 18, 66, 0.6), rgba(16, 7, 30, 0.78));
    border: 1px solid var(--line-2);
    border-radius: 14px;
    counter-increment: faq;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-list .disclosure:hover {
    border-color: rgba(0, 255, 255, 0.3);
}

.faq-list .disclosure[open] {
    border-color: rgba(0, 255, 255, 0.45);
    box-shadow: 0 0 44px -22px rgba(0, 255, 255, 0.65);
}

.faq-list .disclosure > summary {
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    font-size: 1rem;
    color: #fff;
}

/* Pořadové číslo otázky */
.faq-list .disclosure > summary::before {
    content: counter(faq, decimal-leading-zero);
    width: 2rem;
    height: auto;
    font: 700 0.75rem/1 var(--mono);
    letter-spacing: 0.1em;
    color: var(--pink);
    background: none;
    border: 0;
    box-shadow: none !important;
    transform: none !important;
}

/* „+“ v kroužku, po otevření se stočí na křížek */
.faq-list .disclosure > summary::after {
    content: "";
    flex: none;
    margin-left: auto;
    width: 30px;
    height: 30px;
    padding: 0;
    background:
        linear-gradient(var(--cyan), var(--cyan)) center / 11px 1.5px no-repeat,
        linear-gradient(var(--cyan), var(--cyan)) center / 1.5px 11px no-repeat,
        rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.35);
    border-radius: 50%;
    transition: transform 0.35s var(--ease), background-color 0.25s ease;
}

.faq-list .disclosure > summary:hover::after {
    transform: rotate(90deg);
}

.faq-list .disclosure[open] > summary::after {
    background-color: rgba(0, 255, 255, 0.16);
    transform: rotate(45deg);
}

.faq-list .disclosure[open] > summary {
    color: var(--cyan);
}

.faq-list .disclosure__body {
    padding: 0;
    overflow: hidden;
}

.faq-list .disclosure__body > p {
    padding: 0 1.4rem 1.3rem 4.25rem;
    font-size: 0.95rem;
}

/* ---------- 10) Kontakt ---------- */
.contact__item:has(address),
.contact__item--visit {
    align-items: flex-start;
}

.contact__item--visit {
    background: linear-gradient(100deg, rgba(255, 0, 255, 0.1), rgba(124, 58, 237, 0.08) 55%, rgba(16, 7, 30, 0.8));
    border-color: rgba(255, 0, 255, 0.32);
}

.contact__item--visit .contact__icon {
    color: var(--pink);
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.16), rgba(124, 58, 237, 0.22));
    border-color: rgba(255, 0, 255, 0.4);
    box-shadow: 0 0 20px -6px rgba(255, 0, 255, 0.6);
}

.contact__item--visit .visit-label {
    margin: 0 0 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--pink);
}

.contact__item--visit p:not(.visit-label) {
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--text-2);
}

.callout > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact__map-column .map {
    flex: 1;
    min-height: 380px;
}

.map-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem 1.25rem;
    padding: 0.9rem 1rem 0.9rem 1.25rem;
    background: linear-gradient(160deg, rgba(36, 18, 66, 0.55), rgba(16, 7, 30, 0.7));
    border: 1px solid var(--line-2);
    border-radius: 14px;
}

.map-meta p {
    flex: 1 1 260px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--muted);
}

/* ---------- 11) Média ---------- */
.media-video {
    background: linear-gradient(160deg, rgba(36, 18, 66, 0.72), rgba(16, 7, 30, 0.85));
    transition: border-color 0.3s ease, box-shadow 0.3s ease, translate 0.8s var(--ease), opacity 0.8s var(--ease);
}

.media-video:hover {
    border-color: rgba(0, 255, 255, 0.35);
}

.video-stage {
    overflow: hidden;
    border-bottom: 1px solid var(--line-2);
}

/* Mřížka v pozadí náhledu videa */
.video-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(0, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, rgba(0, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    pointer-events: none;
}

.video-stage.is-playing::before {
    display: none;
}

.video-gate {
    position: relative;
    z-index: 1;
    gap: 0.7rem;
}

/* S JavaScriptem je odkaz na YouTube jen pod videem (je tam i bez něj) */
.video-gate.is-enhanced > a {
    display: none;
}

.video-load {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    padding: 0;
    color: var(--cyan);
    background: none;
    border: 0;
    cursor: pointer;
}

.video-load__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    color: #fff;
    background: radial-gradient(circle at 35% 30%, rgba(0, 255, 255, 0.45), rgba(124, 58, 237, 0.5) 70%);
    border: 1px solid rgba(0, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 40px -6px rgba(0, 255, 255, 0.7);
    transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.video-load__icon::after {
    content: "";
    position: absolute;
    inset: -1px;
    border: 1px solid var(--cyan);
    border-radius: 50%;
    animation: playPing 2.4s ease-out infinite;
}

@keyframes playPing {
    to {
        opacity: 0;
        transform: scale(1.6);
    }
}

.video-load__icon .ic {
    width: 26px;
    height: 26px;
    margin-left: 4px;
    fill: currentColor;
}

.video-load__label {
    font: 700 0.74rem/1.3 var(--mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.video-load:hover .video-load__icon {
    box-shadow: 0 0 60px -4px rgba(0, 255, 255, 0.9);
    transform: scale(1.08);
}

.video-load:focus-visible {
    outline: none;
}

.video-load:focus-visible .video-load__icon {
    outline: 2px solid var(--cyan);
    outline-offset: 5px;
}

.video-notice {
    max-width: 44ch;
    font-size: 0.74rem;
    line-height: 1.5;
    color: var(--muted);
}

.video-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--pink);
    text-decoration: none;
}

.video-actions a:hover {
    color: #ff8cff;
}

.video-copy .video-source {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--dim);
}

/* Video, které teprve vzniká – stejná páska jako lišta „Under Construction“ */
.video-stage.video-placeholder {
    gap: 0.6rem;
}

.video-stage.video-placeholder::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: repeating-linear-gradient(135deg, var(--amber) 0 7px, transparent 7px 14px);
    background-size: 19.8px 3px;
    opacity: 0.7;
    animation: tapeRun 1.4s linear infinite;
}

.video-placeholder > * {
    position: relative;
    z-index: 1;
}

.video-placeholder .ic {
    width: 30px;
    height: 30px;
    color: var(--amber);
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.6));
    animation: noticeBlink 2.4s ease-in-out infinite;
}

.video-placeholder__status {
    font: 700 clamp(0.95rem, 1.8vw, 1.2rem)/1.4 var(--mono);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber);
    text-shadow: 0 0 24px rgba(251, 191, 36, 0.35);
}

/* Galerie – mozaika, fotka se otevře ve vlastním prohlížeči přímo na stránce */
.project-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: clamp(190px, 21vw, 280px);
    gap: 1rem;
}

.gallery-card {
    position: relative;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, translate 0.8s var(--ease), opacity 0.8s var(--ease);
}

.gallery-card--sign {
    grid-row: span 2;
}

.gallery-card:nth-child(2) {
    grid-column: span 2;
}

/* Tabule na výšku: celá, s rozmazanou kopií v pozadí */
.gallery-card--sign::before {
    content: "";
    position: absolute;
    inset: -20px;
    background: url("../images/expansion/cybercert-sign.jpg") center / cover;
    filter: blur(22px) brightness(0.45) saturate(1.2);
}

.gallery-card a {
    position: absolute;
    inset: 0;
    display: block;
    cursor: zoom-in;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    transition: transform 0.7s var(--ease), filter 0.4s ease;
}

.gallery-card--sign img {
    position: relative;
    object-fit: contain;
    background: none;
}

.gallery-card figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    padding: 2.6rem 1.1rem 0.95rem;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--text);
    background: linear-gradient(180deg, transparent, rgba(10, 4, 20, 0.92) 65%);
    pointer-events: none;
}

/* Lupa v rohu – objeví se při najetí */
.gallery-card::after {
    content: "";
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 1;
    width: 38px;
    height: 38px;
    background:
        linear-gradient(var(--cyan), var(--cyan)) center / 12px 1.5px no-repeat,
        linear-gradient(var(--cyan), var(--cyan)) center / 1.5px 12px no-repeat,
        rgba(10, 4, 20, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s var(--ease);
    pointer-events: none;
}

.gallery-card:hover {
    border-color: rgba(0, 255, 255, 0.45);
    box-shadow: 0 26px 60px -30px rgba(0, 255, 255, 0.6);
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-card--sign:hover img {
    transform: scale(1.02);
}

.gallery-card:hover::after {
    opacity: 1;
    transform: none;
}

.gallery-card a:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: -4px;
    border-radius: var(--radius);
}

/* Prohlížeč fotek */
.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: var(--text);
    background: rgba(8, 3, 15, 0.94);
    border: 0;
    animation: fadeIn 0.3s ease;
}

.lightbox::backdrop {
    background: rgba(8, 3, 15, 0.6);
}

.lightbox__stage {
    position: absolute;
    inset: 72px 96px 104px;
    display: grid;
    place-items: center;
    margin: 0;
}

.lightbox__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 40px 120px -40px rgba(0, 255, 255, 0.45);
    animation: lightboxIn 0.4s var(--ease);
    touch-action: pan-y pinch-zoom;
}

@keyframes lightboxIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
}

.lightbox__bar {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1rem 1.5rem calc(1.4rem + env(safe-area-inset-bottom));
    text-align: center;
}

.lightbox__count {
    font: 700 0.72rem/1 var(--mono);
    letter-spacing: 0.2em;
    color: var(--pink);
}

.lightbox__caption {
    max-width: 70ch;
    font-size: 0.95rem;
    color: var(--text-2);
}

.lightbox__btn {
    position: absolute;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    color: var(--cyan);
    background: rgba(15, 5, 26, 0.85);
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.25s var(--ease), color 0.2s ease;
}

.lightbox__btn:hover {
    color: #fff;
    border-color: var(--cyan);
    box-shadow: 0 0 24px -4px rgba(0, 255, 255, 0.6);
}

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

.lightbox__prev,
.lightbox__next {
    top: 50%;
    margin-top: -26px;
}

.lightbox__prev {
    left: 24px;
}

.lightbox__next {
    right: 24px;
}

.lightbox__prev:hover {
    transform: translateX(-3px);
}

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

.lightbox__close {
    top: 16px;
    right: 24px;
    color: var(--text-2);
}

.lightbox__close:hover {
    transform: rotate(90deg);
}

/* ---------- 12) Užitečné odkazy ---------- */
.resource--full > .feature__text {
    padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.hud-tag.resource__tag {
    position: static;
    display: inline-flex;
    margin-bottom: 1.1rem;
}

.resource--full h2 {
    margin-bottom: 0.9rem;
}

.resource--full .feature__text > p:not(.hud-tag) {
    max-width: 80ch;
}

/* Normy a schémata jako dlaždice s ikonou dokumentu */
.reference-links--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.6rem;
}

.reference-links--cards li {
    position: relative;
    padding: 1rem 1.1rem 1rem 3.5rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--line-2);
    border-left: 2px solid var(--line);
    border-radius: 12px;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.25s var(--ease);
}

.reference-links--cards li::before {
    content: "";
    position: absolute;
    top: 1.05rem;
    left: 1.15rem;
    width: 20px;
    height: 25px;
    background: linear-gradient(var(--cyan), var(--cyan)) 4px 9px / 10px 1.5px no-repeat, linear-gradient(var(--cyan), var(--cyan)) 4px 14px / 8px 1.5px no-repeat;
    border: 1.5px solid var(--cyan);
    border-radius: 3px 8px 3px 3px;
    box-shadow: 0 0 10px -2px rgba(0, 255, 255, 0.6);
    opacity: 0.85;
}

.reference-links--cards a {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    font-family: var(--mono);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.45;
    color: #fff;
    text-decoration: none;
}

.reference-links--cards a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.reference-links--cards .ext-arrow {
    margin-left: auto;
    color: var(--pink);
    transition: transform 0.25s var(--ease);
}

.reference-links--cards p {
    margin-top: 0.35rem;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--muted);
}

.reference-links--cards li:hover {
    background: rgba(0, 255, 255, 0.06);
    border-color: rgba(0, 255, 255, 0.4);
    border-left-color: var(--pink);
    transform: translateX(4px);
}

.reference-links--cards li:hover a {
    color: var(--cyan);
}

.reference-links--cards li:hover .ext-arrow {
    transform: translate(2px, -2px);
}

.reference-links--cards li:focus-within {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

.reference-links--cards a:focus-visible {
    outline: none;
}

.resource__more {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 2.5rem;
    margin-top: 1.5rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--line-2);
}

.resource__more .disclosure {
    margin-top: 0;
    border-top: 0;
}

/* Tlačítko k mapě pracovišť – odlišené růžovou, šipka ukazuje dolů na kartu */
.chip--europe {
    color: #ffc6ff;
    background: rgba(255, 0, 255, 0.08);
    border-color: rgba(255, 0, 255, 0.45);
    box-shadow: 0 0 18px -8px rgba(255, 0, 255, 0.8);
}

.chip--europe .chip__down {
    color: var(--pink);
    transition: transform 0.25s var(--ease);
}

.chip--europe:hover {
    color: #fff;
    background: rgba(255, 0, 255, 0.16);
    border-color: var(--pink);
}

.chip--europe:hover .chip__down {
    transform: translateY(2px);
}

.europe-cta-wrap {
    scroll-margin-top: calc(var(--nav-h) + 1rem);
}

/* Odkazy v kategoriích: ikona vlevo, šipka vpravo (jako dřív) */
.links a .ext {
    flex: none;
}

/* Mapa evropských pracovišť – výrazná karta pod zdroji */
.europe-cta-wrap {
    padding-top: clamp(1rem, 3vw, 2rem);
}

.europe-cta {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr) auto;
    align-items: center;
    gap: clamp(1.25rem, 4vw, 3rem);
    padding: clamp(1.25rem, 3vw, 2rem);
    overflow: hidden;
    color: var(--text);
    background:
        radial-gradient(ellipse at 15% 50%, rgba(0, 255, 255, 0.12), transparent 60%),
        linear-gradient(120deg, rgba(0, 255, 255, 0.06), rgba(124, 58, 237, 0.14) 50%, rgba(255, 0, 255, 0.08)),
        var(--surface-solid);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: 0 40px 90px -50px rgba(0, 255, 255, 0.55);
}

.europe-cta:hover {
    border-color: rgba(0, 255, 255, 0.5);
}

.europe-cta:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
}

/* Tečková „mapa“ s pulzujícími body pracovišť */
.europe-cta__visual {
    position: relative;
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(circle, rgba(0, 255, 255, 0.42) 1.1px, transparent 1.6px) 0 0 / 13px 13px;
    border: 1px solid var(--line-2);
    border-radius: 14px;
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 52% 48%, #000 55%, transparent 100%);
    mask-image: radial-gradient(ellipse 60% 55% at 52% 48%, #000 55%, transparent 100%);
}

.europe-cta__dot {
    position: absolute;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--cyan);
}

.europe-cta__dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: var(--cyan);
    animation: ping 2.6s ease-out infinite;
}

.europe-cta__dot--1 { top: 38%; left: 34%; }
.europe-cta__dot--2 { top: 56%; left: 26%; animation-delay: 0.4s; }
.europe-cta__dot--3 { top: 30%; left: 58%; }
.europe-cta__dot--4 { top: 62%; left: 66%; }
.europe-cta__dot--5 { top: 46%; left: 44%; }

.europe-cta__dot--2,
.europe-cta__dot--4 {
    background: #f47aff;
    box-shadow: 0 0 12px #f47aff;
}

.europe-cta__dot--2::after,
.europe-cta__dot--4::after {
    color: #f47aff;
    animation-delay: 0.9s;
}

.europe-cta__dot--own {
    top: 44%;
    left: 52%;
    width: 13px;
    height: 13px;
    margin: -6.5px 0 0 -6.5px;
    background: var(--amber);
    box-shadow: 0 0 16px var(--amber);
}

.europe-cta__dot--own::after {
    color: var(--amber);
    animation-delay: 1.4s;
}

.europe-cta__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
}

.europe-cta__title {
    font: 800 clamp(1.15rem, 2.2vw, 1.55rem)/1.3 var(--mono);
    color: var(--cyan);
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.35);
}

.europe-cta__lead {
    color: var(--text-2);
}

.europe-cta__go {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: #0b0418;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    border-radius: 50%;
    box-shadow: 0 0 30px -6px rgba(0, 255, 255, 0.7);
    transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.europe-cta:hover .europe-cta__go {
    box-shadow: 0 0 44px -4px rgba(0, 255, 255, 0.9);
    transform: translateX(5px);
}

/* ---------- 13) Mapa evropských pracovišť ---------- */
.europe-back .ic {
    transition: transform 0.25s var(--ease);
}

.europe-back:hover .ic {
    transform: translateX(-3px);
}

.map-filter {
    font-family: var(--mono);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

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

.map-filter[aria-pressed="true"] .ic {
    color: #071419;
}

.map-shell {
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(124, 58, 237, 0.22), transparent 70%),
        linear-gradient(rgba(0, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(90deg, rgba(0, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 40px 40px,
        #0b0617;
    border-color: var(--line);
    box-shadow: 0 40px 90px -50px rgba(0, 255, 255, 0.5), inset 0 0 80px rgba(0, 0, 0, 0.5);
}

.map-shell .map-popover {
    overflow-y: auto;
}

.map-country {
    fill: #1a1230;
    stroke: #2f2550;
}

.map-country--eu {
    fill: #17284a;
    stroke: rgba(0, 255, 255, 0.4);
}

/* Body pracovišť jemně pulzují */
.map-dot::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 1px solid currentColor;
    border-radius: 50%;
    animation: ping 2.6s ease-out infinite;
    pointer-events: none;
}

.map-dot--cluster::after {
    width: 25px;
    height: 25px;
}

.map-dot:hover::before,
.map-dot.is-selected::before {
    box-shadow: 0 0 22px currentColor, 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.map-dot:hover,
.map-dot:focus-visible,
.map-dot.is-selected {
    outline: 0;
}

.map-dot.is-selected {
    z-index: 5;
}

/* Vybraný bod: bílé jádro a otáčející se zaměřovač – ostatní body jen pulzují */
.map-dot.is-selected::before {
    background: #fff;
    border: 3px solid currentColor;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25), 0 0 26px currentColor;
    transform: scale(1.3);
}

.map-dot.is-selected::after {
    width: 36px;
    height: 36px;
    border: 1.5px dashed #fff;
    opacity: 0.9;
    animation: targetSpin 8s linear infinite;
}

.map-dot--cluster.is-selected::after {
    width: 46px;
    height: 46px;
}

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

/* Bod vybraný ze seznamu se nejdřív třikrát rozzáří, pak zůstane zaměřený */
.map-dot.is-located::after {
    border: 2px solid currentColor;
    animation: locate 0.9s ease-out 3;
}

@keyframes locate {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(4.5);
    }
}

.map-cluster-choice.is-selected {
    color: #fff;
    background: rgba(0, 255, 255, 0.12);
    border-color: var(--cyan);
}

.map-dot:focus-visible::before {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.map-popover {
    background: linear-gradient(170deg, #1d0d36, #0e0519);
    border: 1px solid var(--line);
    border-top: 2px solid var(--cyan);
    box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.9), 0 0 40px -14px rgba(0, 255, 255, 0.5);
}

.map-cluster-choice {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--line-2);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.map-cluster-choice:hover {
    background: rgba(0, 255, 255, 0.08);
    border-color: rgba(0, 255, 255, 0.45);
}

.map-detail {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 100% 0, rgba(0, 255, 255, 0.1), transparent 55%),
        linear-gradient(160deg, rgba(36, 18, 66, 0.75), rgba(16, 7, 30, 0.85));
    border: 1px solid var(--line);
    border-top: 2px solid var(--cyan);
}

.map-detail .map-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    background: rgba(0, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.map-detail .map-category::before {
    content: "";
    width: 7px;
    height: 7px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}

.map-detail .map-status {
    color: var(--text);
    background: rgba(0, 255, 255, 0.04);
    border-left: 2px solid var(--pink);
    border-radius: 0 8px 8px 0;
    padding: 0.6rem 0.9rem;
}

.map-detail .addition-links {
    gap: 0.6rem 1.5rem;
}

.map-detail .addition-links a:not(.btn) {
    color: var(--pink);
}

/* Legenda je přímo v mapě u spodního okraje – lícuje s mapou na obou stranách */
.map-shell .map-legend {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 1.5rem 0.7rem 0.7rem;
    background: linear-gradient(180deg, transparent, rgba(8, 3, 16, 0.85) 45%);
    pointer-events: none;
}

.legend-item {
    flex: none;
    padding: 0.32rem 0.7rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    background: rgba(15, 5, 26, 0.85);
    border: 1px solid var(--line-2);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.map-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.map-directory-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.35rem 2rem;
}

.map-directory-head h2 {
    margin: 0;
}

.map-directory-head .map-search {
    grid-row: 1 / span 2;
    grid-column: 2;
}

.map-directory-head #map-count {
    grid-column: 1;
    margin: 0;
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.map-search__field {
    position: relative;
    display: block;
}

.map-search__field .ic {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    color: var(--cyan);
    transform: translateY(-50%);
    pointer-events: none;
}

.map-search input {
    padding-left: 2.5rem;
    background: rgba(15, 5, 26, 0.85);
    border-color: var(--line);
    border-radius: 12px;
}

.map-search input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(0, 255, 255, 0.12);
    outline: 0;
}

.map-list-item {
    position: relative;
    padding-left: 1.3rem;
    background: linear-gradient(160deg, rgba(36, 18, 66, 0.6), rgba(16, 7, 30, 0.78));
    border-color: var(--line-2);
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}

/* Barevný proužek podle typu pracoviště (barvy jako body na mapě) */
.map-list-item::before {
    content: "";
    position: absolute;
    top: 0.9rem;
    bottom: 0.9rem;
    left: 0;
    width: 3px;
    background: var(--cyan);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 10px var(--cyan);
}

.map-list-item--training::before {
    background: #f47aff;
    box-shadow: 0 0 10px #f47aff;
}

.map-list-item--own::before {
    background: var(--amber);
    box-shadow: 0 0 10px var(--amber);
}

.map-list-item:hover,
.map-list-item[aria-pressed="true"] {
    background: linear-gradient(160deg, rgba(0, 255, 255, 0.1), rgba(16, 7, 30, 0.8));
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 16px 40px -24px rgba(0, 255, 255, 0.6);
    transform: translateY(-2px);
}

.map-list-item span:last-child {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dim);
}

/* ---------- 14) Mobil ---------- */
@media (max-width: 960px) {
    .faq-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 899px) {
    .project-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: clamp(150px, 34vw, 240px);
    }

    .gallery-card:nth-child(2) {
        grid-column: auto;
    }

    .gallery-card:nth-child(4) {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .europe-cta {
        grid-template-columns: 1fr;
    }

    .europe-cta__visual {
        aspect-ratio: 2 / 1;
    }

    .europe-cta__go {
        position: absolute;
        right: 1.25rem;
        bottom: 1.25rem;
        width: 48px;
        height: 48px;
    }

    .europe-cta__text {
        padding-right: 3.5rem;
    }

    .reference-links--cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .construction-notice .construction-notice__inner {
        gap: 0.45rem;
        min-height: 34px;
        font-size: 0.64rem;
        letter-spacing: 0.02em;
    }

    .construction-notice strong {
        font-size: 0.64rem;
        letter-spacing: 0.12em;
    }

    .construction-notice strong::after {
        margin-left: 0.4rem;
    }

    .hero:has(> .construction-notice) {
        padding-top: calc(var(--nav-h) + 34px + 1rem);
    }

    .hero--sub:has(> .construction-notice) {
        padding-top: calc(var(--nav-h) + 34px + 1.5rem);
    }

    /* Úvod: delší text o akreditaci je menší, aby byla tlačítka vidět hned */
    .hero__accreditation {
        margin-top: 0.75rem;
        font-size: 0.84rem;
        line-height: 1.55;
    }

    .services:not(.services--4) {
        grid-auto-rows: auto;
    }

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

    /* Detail jako panel vysunutý zespodu */
    .detail__panel,
    dialog.detail--left .detail__panel {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        max-height: 88dvh;
        border: 0;
        border-top: 2px solid var(--cyan);
        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);
        animation-name: sheetIn;
    }

    dialog.detail.is-closing .detail__panel,
    dialog.detail--left.is-closing .detail__panel {
        transform: translateY(105%);
    }

    .detail__panel::before,
    dialog.detail--left .detail__panel::before {
        top: 8px;
        right: auto;
        bottom: auto;
        left: 50%;
        width: 38px;
        height: 4px;
        margin-left: -19px;
        background: rgba(255, 255, 255, 0.22);
        border-radius: 2px;
        box-shadow: none;
    }

    .detail__head {
        padding: 1.6rem 4rem 1.1rem 1.25rem;
    }

    .detail__close {
        top: 1.15rem;
        right: 1rem;
    }

    .detail__body {
        padding: 1.25rem 1.25rem calc(2rem + env(safe-area-inset-bottom));
        font-size: 0.95rem;
    }

    /* V laboratoři má impulz celá karta (obrázek + text) */
    #lab .feature__text.is-detail-source::after {
        display: none;
    }

    #lab .feature__text.is-detail-source {
        box-shadow: none;
    }

    .disclosure--banner > summary {
        padding: 0.95rem 1rem;
        font-size: 0.86rem;
    }

    .disclosure--banner > summary::before {
        width: 34px;
        height: 34px;
    }

    .disclosure--banner > summary::after {
        width: 32px;
        height: 32px;
    }

    .addition-intro--note {
        font-size: 0.8rem;
    }

    .map-directory-head {
        grid-template-columns: 1fr;
    }

    /* Na telefonu by legenda zakryla malou mapu – je hned pod ní */
    .map-shell {
        overflow: visible;
        margin-bottom: 6.4rem;
    }

    .map-shell .map-legend {
        top: calc(100% + 0.6rem);
        bottom: auto;
        gap: 0.35rem;
        padding: 0;
        background: none;
    }

    .legend-item {
        padding: 0.25rem 0.55rem;
        font-size: 0.6rem;
    }

    .map-directory-head .map-search {
        grid-row: auto;
        grid-column: 1;
        width: 100%;
    }

    .map-directory-head .map-search input {
        width: 100%;
    }

    .map-directory {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .map-list-item {
        padding: 0.8rem 1rem 0.8rem 1.2rem;
    }

    /* Filtry mapy jako tři stejné dlaždice vedle sebe – vždy jsou vidět všechny */
    .europe-toolbar {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .europe-toolbar .chip {
        flex-direction: column;
        justify-content: center;
        gap: 0.4rem;
        min-height: 72px;
        padding: 0.6rem 0.4rem;
        font-size: 0.64rem;
        letter-spacing: 0.03em;
        line-height: 1.3;
        text-align: center;
        white-space: normal;
        border-radius: 14px;
    }

    .europe-toolbar .chip .ic {
        width: 18px;
        height: 18px;
    }

    /* Karty doplněných bloků se na mobilu listují do stran jako ostatní */
    .addition-grid[data-swipe] {
        display: flex;
    }

    [data-swipe] > .addition-card {
        padding: 1.3rem;
    }

    [data-swipe] > .addition-card:hover {
        transform: none;
    }

    .team-card__head {
        flex-direction: row;
        align-items: center;
    }

    .team-card__head {
        gap: 0.85rem;
    }

    .team-portrait {
        width: 76px;
        height: 95px;
    }

    .team-card__head h4 {
        font-size: 0.88rem;
    }

    .team-card__head .team-role {
        font-size: 0.66rem;
    }

    .team-card > p {
        font-size: 0.88rem;
    }

    .sample-download {
        grid-template-columns: 1fr;
        justify-items: start;
        padding: 1.25rem;
    }

    .sample-download__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .sample-download__actions .btn {
        white-space: normal;
    }

    .faq-list .disclosure > summary {
        gap: 0.75rem;
        padding: 1rem;
        font-size: 0.94rem;
    }

    .faq-list .disclosure > summary::before {
        width: 1.6rem;
    }

    .faq-list .disclosure__body > p {
        padding: 0 1rem 1.1rem 3.35rem;
        font-size: 0.9rem;
    }

    .contact__map-column .map {
        min-height: 340px;
    }

    .project-gallery {
        gap: 0.6rem;
    }

    .gallery-card figcaption {
        padding: 2rem 0.75rem 0.65rem;
        font-size: 0.74rem;
    }

    .gallery-card::after {
        display: none;
    }

    .lightbox__stage {
        inset: 64px 12px 132px;
    }

    .lightbox__prev,
    .lightbox__next {
        top: auto;
        bottom: calc(1rem + env(safe-area-inset-bottom));
        width: 46px;
        height: 46px;
        margin: 0;
    }

    .lightbox__prev {
        left: 16px;
    }

    .lightbox__next {
        right: 16px;
    }

    .lightbox__close {
        top: 12px;
        right: 12px;
        width: 46px;
        height: 46px;
    }

    .lightbox__bar {
        padding: 0 4.5rem calc(1.2rem + env(safe-area-inset-bottom));
        min-height: 78px;
        justify-content: center;
    }

    .lightbox__caption {
        font-size: 0.85rem;
    }

    .video-load__icon {
        width: 60px;
        height: 60px;
    }

    .video-gate {
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .video-gate .eyebrow {
        display: none;
    }

    .video-notice {
        font-size: 0.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .construction-notice::before,
    .video-stage.video-placeholder::after,
    .disclosure--banner::before {
        animation: none;
    }

    .detail__panel {
        animation: none;
    }
}

/* =====================================================================
   15) Samostatné stránky – úvod, zázemí, souhlas s videi, soukromí
   ===================================================================== */

/* Úvod podstránek bez velkého hero: místo pod menu a stavební lištou */
.page-main > .section:first-child:has(> .construction-notice) {
    padding-top: calc(var(--nav-h) + 38px + clamp(2.2rem, 5vw, 4rem));
}

/* Hlavní nadpis podstránky je od tabletu výš na jednom řádku; na telefonu se smí zalomit */
@media (min-width: 761px) {
    .page-main > .section:first-child > .container > .section__head h1 {
        max-width: none;
        font-size: clamp(2.2rem, 3.9vw, 3.6rem);
    }

    /* pod nadpisem víc vzduchu, obsah se na něj nelepí */
    .page-main > .section:first-child > .container > .section__head:has(h1) {
        margin-bottom: clamp(2.8rem, 5.5vw, 4.5rem);
    }
}

/* ---- Zázemí: karty pracovišť ---- */
.facility-card {
    gap: 0;
}

.facility-top .ic {
    box-sizing: border-box;
    width: 46px;
    height: 46px;
    padding: 11px;
    color: var(--cyan);
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.12), rgba(124, 58, 237, 0.16));
    border: 1px solid rgba(0, 255, 255, 0.35);
    border-radius: 12px;
    box-shadow: 0 0 24px -8px rgba(0, 255, 255, 0.6);
}

.facility-top .facility-org {
    font: 500 0.7rem/1.5 var(--mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dim);
}

.facility-benefit {
    position: relative;
    padding: 1rem 1.1rem 1.05rem 1.2rem;
    background: linear-gradient(120deg, rgba(0, 255, 255, 0.06), rgba(255, 0, 255, 0.04));
    border: 1px solid rgba(0, 255, 255, 0.14);
    border-left: 2px solid var(--cyan);
    border-radius: 0 12px 12px 0;
}

.facility-benefit h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font: 700 0.68rem/1.4 var(--mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
}

.facility-benefit h4::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan);
}

.facility-source {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.3rem;
    font: 500 0.8rem/1.4 var(--mono);
    color: var(--pink);
    text-decoration: none;
}

.facility-source .ic {
    width: 15px;
    height: 15px;
    transition: transform 0.25s var(--ease);
}

.facility-source:hover {
    color: #ff8cff;
    text-decoration: none;
}

.facility-source:hover .ic {
    transform: translate(2px, -2px);
}

.facilities-note,
#knowledge-network .draft {
    position: relative;
    padding-left: 1.6rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.facilities-note::before,
#knowledge-network .draft::before {
    content: "i";
    position: absolute;
    top: 0.2em;
    left: 0;
    display: grid;
    place-items: center;
    width: 1.05rem;
    height: 1.05rem;
    font: 700 0.62rem/1 var(--mono);
    color: var(--cyan);
    border: 1px solid rgba(0, 255, 255, 0.45);
    border-radius: 50%;
}

/* Podklady sítě: stejný rozbalovací řádek jako jinde na webu */
#knowledge-network .source-note {
    margin-top: 1.1rem;
    padding: 0.2rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line-2);
    border-radius: 12px;
}

#knowledge-network .source-note summary {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 44px;
    font: 500 0.8rem/1.4 var(--mono);
    list-style: none;
}

#knowledge-network .source-note summary::-webkit-details-marker {
    display: none;
}

#knowledge-network .source-note summary::before {
    content: "+";
    display: grid;
    place-items: center;
    flex: none;
    width: 22px;
    height: 22px;
    font: 500 0.95rem/1 var(--mono);
    color: var(--cyan);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 6px;
    transition: transform 0.3s var(--ease);
}

#knowledge-network .source-note[open] summary::before {
    transform: rotate(45deg);
}

#knowledge-network .source-note a {
    display: inline-block;
    margin-bottom: 0.9rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--pink);
}

/* Výzva na konci stránky Zázemí: text vlevo, tlačítko vpravo */
.facility-cta {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 100% 0, rgba(255, 0, 255, 0.16), transparent 60%),
        radial-gradient(ellipse at 0 100%, rgba(0, 255, 255, 0.12), transparent 60%),
        linear-gradient(160deg, rgba(36, 18, 66, 0.85), rgba(16, 7, 30, 0.9));
    border-color: rgba(0, 255, 255, 0.28);
}

@media (min-width: 900px) {
    .facility-cta {
        display: grid;
        grid-template-columns: 1fr auto;
        column-gap: 2.5rem;
        align-items: center;
        padding: 2.2rem 2.5rem;
    }

    .facility-cta > .h3,
    .facility-cta > p {
        grid-column: 1;
    }

    .facility-cta > .btn {
        grid-row: 1 / span 2;
        grid-column: 2;
        margin: 0;
    }
}

.facility-cta > .h3 {
    margin-bottom: 0.6rem;
}

.facility-cta > p {
    margin: 0;
    color: var(--text-2);
}

/* ---- Média: přehrávač před souhlasem ---- */
.video-gate {
    gap: 0.75rem;
}

.video-gate > .video-load__icon {
    width: 64px;
    height: 64px;
    margin-block: 0.1rem 0.2rem;
}

.video-gate .video-notice {
    max-width: 50ch;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--text-2);
}

.video-privacy-link {
    font: 500 0.74rem/1.4 var(--mono);
    letter-spacing: 0.04em;
    color: var(--cyan);
    text-decoration: none;
    border-bottom: 1px dashed rgba(0, 255, 255, 0.5);
}

.video-privacy-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.video-consent-actions {
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.video-consent-actions .btn {
    min-width: 9.5rem;
}

/* Hlavní volba s ikonou přehrání (ikona je jen v CSS, text přepíná překlad) */
.video-consent-actions [data-video-load]::before {
    content: "";
    width: 0;
    height: 0;
    margin-right: 0.15rem;
    border-block: 5px solid transparent;
    border-left: 8px solid currentColor;
}

.video-consent-status {
    padding: 0.45rem 0.8rem;
    font: 500 0.74rem/1.5 var(--mono);
    color: var(--amber);
    background: rgba(251, 191, 36, 0.07);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
}

.video-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1.2rem;
}

.video-actions [data-video-revoke] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    font: 500 0.78rem/1.4 var(--mono);
    color: var(--amber);
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
}

.video-actions [data-video-revoke]::before {
    content: "×";
    display: grid;
    place-items: center;
    width: 1.1rem;
    height: 1.1rem;
    font-size: 0.85rem;
    line-height: 1;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.video-actions [data-video-revoke]:hover {
    color: #fde68a;
}

/* ---- Média: podrobnosti o soukromí ---- */
#youtube-privacy .section__head {
    margin-bottom: 1.6rem;
}

.video-privacy-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 0;
    counter-reset: privacy;
    background: none;
    border: 0;
}

.video-privacy-panel > p[data-i18n^="media.privacy"]:not([data-i18n="media.privacyContact"]) {
    position: relative;
    margin: 0;
    padding: 1.3rem 1.4rem 1.3rem 4rem;
    font-size: 0.92rem;
    line-height: 1.7;
    background: linear-gradient(160deg, rgba(36, 18, 66, 0.6), rgba(16, 7, 30, 0.75));
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    counter-increment: privacy;
}

.video-privacy-panel > p[data-i18n^="media.privacy"]::before {
    content: "0" counter(privacy);
    position: absolute;
    top: 1.25rem;
    left: 1.3rem;
    font: 700 0.8rem/1.6 var(--mono);
    letter-spacing: 0.08em;
    color: var(--pink);
}

/* první odstavec (kdo video poskytuje) na celou šířku jako úvod */
.video-privacy-panel > p[data-i18n="media.privacyProvider"] {
    grid-column: 1 / -1;
    border-color: rgba(0, 255, 255, 0.25);
}

.video-privacy-panel > .video-actions {
    grid-column: 1 / -1;
    gap: 0.6rem;
    margin-top: 0.4rem;
}

.video-privacy-panel > .video-actions a {
    padding: 0.6rem 0.95rem;
    color: var(--cyan);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.video-privacy-panel > .video-actions a:hover {
    color: #fff;
    background: rgba(0, 255, 255, 0.08);
    border-color: var(--cyan);
}

.video-privacy-panel > p:last-child {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.video-privacy-panel > p:last-child a {
    color: var(--pink);
}

@media (max-width: 760px) {
    .video-privacy-panel {
        grid-template-columns: 1fr;
    }

    .video-privacy-panel > p[data-i18n^="media.privacy"]:not([data-i18n="media.privacyContact"]) {
        padding: 2.6rem 1.1rem 1.1rem;
    }

    .video-privacy-panel > p[data-i18n^="media.privacy"]::before {
        top: 0.9rem;
        left: 1.1rem;
    }
}

@media (max-width: 640px) {
    .page-main > .section:first-child:has(> .construction-notice) {
        padding-top: calc(var(--nav-h) + 34px + 1.8rem);
    }

    .facility-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Fotka vedle videa vyplní celou výšku karty místo prázdného místa pod popiskem */
@media (min-width: 901px) {
    .media-gallery > .media-photo > .media-photo__zoom {
        display: flex;
        flex: 1;
        min-height: 0;
    }

    .media-photo__zoom > picture {
        flex: 1;
        min-height: 0;
    }

    .media-gallery > .media-photo .media-photo__zoom img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .media-gallery > .media-photo > figcaption {
        flex: none;
    }
}

@media (max-width: 640px) {
    .video-consent-actions .btn {
        padding-inline: 0.7rem;
        font-size: 0.68rem;
        letter-spacing: 0.06em;
        white-space: nowrap;
    }

    .video-gate > .video-load__icon {
        width: 54px;
        height: 54px;
    }
}

/* Znalostní síť drží stejnou šířku obsahu jako ostatní sekce webu */
#knowledge-network > .container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
}

/* Tok dat po spojnicích je vidět – tlačítko „Pozastavit pohyb“ má co zastavit */
#knowledge-network .flow {
    stroke-width: 2.6;
    stroke-dasharray: 22 103;
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.95));
}

/* „Celá síť“ je aktivní, jen když je vybrané něco jiného než jádro */
#knowledge-network #reset:disabled {
    opacity: 0.4;
    border-color: var(--line-2);
}

#knowledge-network #motion:disabled {
    opacity: 0.4;
    border-color: var(--line-2);
}

/* =====================================================================
   16) Úvodní stránka: rozcestník
   ===================================================================== */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.explore-grid > li {
    display: flex;
}

.explore-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1.6rem 1.6rem 1.4rem;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: linear-gradient(160deg, rgba(36, 18, 66, 0.72), rgba(16, 7, 30, 0.85));
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.35s var(--ease), translate 0.8s var(--ease), opacity 0.8s var(--ease);
}

/* jemný přeliv v rohu karty při najetí */
.explore-card::after {
    content: "";
    position: absolute;
    inset: auto -30% -60% auto;
    width: 70%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(255, 0, 255, 0.22), transparent 65%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

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

.explore-card__title {
    font: 700 1.12rem/1.35 var(--mono);
    color: #fff;
}

.explore-card__desc {
    display: block;
    margin: 0.55rem 0 1.2rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--muted);
}

.explore-card__go {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-top: auto;
    color: var(--pink);
    border: 1px solid rgba(255, 0, 255, 0.35);
    border-radius: 50%;
    transition: transform 0.3s var(--ease), background 0.3s ease, color 0.3s ease;
}

.explore-card__go .ic {
    width: 16px;
    height: 16px;
}

.explore-card:hover,
.explore-card:focus-visible {
    border-color: rgba(0, 255, 255, 0.45);
    box-shadow: 0 26px 50px -32px rgba(0, 255, 255, 0.55);
    transform: translateY(-4px);
}

.explore-card:hover::after,
.explore-card:focus-visible::after {
    opacity: 1;
}

.explore-card:hover .explore-card__go,
.explore-card:focus-visible .explore-card__go {
    color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--pink));
    border-color: transparent;
    transform: translateX(4px);
}

.explore-card:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

/* Partneři na úvodní stránce navazují na rozcestník */
#explore + #partners {
    padding-top: 0;
}

@media (max-width: 960px) {
    .explore-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .explore-grid[data-swipe] {
        display: flex;
    }

    .explore-card {
        padding: 1.3rem;
    }
}

/* Obíhající světlo aktivní karty v pásu na mobilu sedí na zaoblení karty */
.explore-grid > li {
    position: relative;
    border-radius: var(--radius);
}

/* =====================================================================
   17) Nadpisy: přechod barvy se počítá z délky textu, ne z šířky řádku,
       takže krátké i dlouhé nadpisy mají stejný odstín
   ===================================================================== */
.h2,
.section__addition > .h3 {
    width: fit-content;
    max-width: 100%;
    background-image: linear-gradient(100deg, #fff 72%, #e4feff);
}

/* =====================================================================
   18) Média: fotka budovy se po kliknutí zvětší jako v galerii
   ===================================================================== */
.media-photo__zoom {
    position: relative;
    display: block;
    overflow: hidden;
    cursor: zoom-in;
}

.media-photo__zoom img {
    transition: transform 0.7s var(--ease);
}

.media-photo__zoom::after {
    content: "";
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 3;
    width: 38px;
    height: 38px;
    background:
        linear-gradient(var(--cyan), var(--cyan)) center / 12px 1.5px no-repeat,
        linear-gradient(var(--cyan), var(--cyan)) center / 1.5px 12px no-repeat,
        rgba(10, 4, 20, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s var(--ease);
    pointer-events: none;
}

.media-photo__zoom:hover img {
    transform: scale(1.04);
}

.media-photo__zoom:hover::after,
.media-photo__zoom:focus-visible::after {
    opacity: 1;
    transform: none;
}

.media-photo__zoom:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: -4px;
}

/* Prohlížeč s jedinou fotkou nemá šipky ani počítadlo */
.lightbox--single .lightbox__prev,
.lightbox--single .lightbox__next,
.lightbox--single .lightbox__count {
    display: none;
}

/* =====================================================================
   19) Zázemí: kroky ukázkové cesty mají číslo uvnitř svého boxu
   ===================================================================== */
#knowledge-network .detail ol {
    margin: 14px 0;
    padding-left: 0;
    list-style: none;
    counter-reset: path-step;
}

#knowledge-network .detail ol > li {
    margin-bottom: 0;
    counter-increment: path-step;
}

#knowledge-network .detail ol .detail-choice {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

#knowledge-network .detail ol .detail-choice::before {
    content: counter(path-step);
    display: grid;
    place-items: center;
    flex: none;
    width: 24px;
    height: 24px;
    font: 600 0.72rem/1 var(--mono);
    color: var(--cyan);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.06);
}

/* Štítek „// 01“ nad znalostní sítí vypadá jako u ostatních sekcí */
#knowledge-network .network-intro > .kicker {
    margin-top: 0;
    line-height: inherit;
    color: var(--cyan);
}

/* Média: pod sebou (tablet, mobil) má každá karta vlastní výšku – fotka budovy bez prázdného místa pod popiskem */
@media (max-width: 899px) {
    .media-gallery:not(.media-gallery--lab-videos) {
        grid-auto-rows: auto;
    }

    .media-gallery > .media-photo > figcaption {
        flex: none;
    }
}

/* Mapa: na telefonu se seznam pracovišť zkrátí, zbytek odkryje tlačítko */
.map-more {
    display: flex;
    margin: 1rem auto 0;
}

.map-more[hidden] {
    display: none;
}

.map-more .ic {
    transition: transform 0.3s var(--ease);
}

.map-more[aria-expanded="true"] .ic {
    transform: rotate(180deg);
}

@media (max-width: 640px) {
    /* položky seznamu pod sebou mají vlastní výšku, ne výšku té nejvyšší */
    .map-directory {
        grid-auto-rows: auto;
    }
}

/* Média: podrobnosti o soukromí na telefonu po vrstvách */
.video-privacy-panel > p.is-collapsed {
    display: none;
}

.privacy-more {
    display: flex;
    justify-self: center;
    margin-top: 0.2rem;
}

.privacy-more[hidden] {
    display: none;
}

.privacy-more .ic {
    transition: transform 0.3s var(--ease);
}

.privacy-more[aria-expanded="true"] .ic {
    transform: rotate(180deg);
}

/* Kapitola uvnitř první sekce podstránky (dříve podkapitola 01.1) má plnou šířku nadpisu */
.section__addition > .section__head .h2 {
    max-width: none;
}
