/* ==========================================================================
   1. RESET A ZÁKLAD
   ========================================================================== */
html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}
@supports (overflow: clip) {
    html { overflow-x: clip; }
}
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}
@supports (overflow: clip) {
    body { overflow-x: clip; }
}

:root {
    --bg-dark: #0a0a0a; --text-dark: #ffffff; --bg-light: #ffffff; --text-light: #000000;
    --brand-dark-gray: #2b2b2b;
    --placeholder-bg: #aaaaaa; --placeholder-light: #e0e0e0;
}

*, *::before, *::after { box-sizing: border-box; }

body { font-family: 'Mona Sans', sans-serif; background-color: var(--bg-light); color: var(--text-light); }
body.modal-open { overflow: hidden; }

.container { width: 100%; max-width: 100%; padding: 0 20px; margin: 0 auto; }
.text-center { text-align: center; }
.mt-large { margin-top: 80px; }
.mb-small { margin-bottom: 15px; }
.mb-large { margin-bottom: 40px; }

.between-sections-lede {
    max-width: 900px;
    margin: 48px auto 56px;
}

#footer-surname {
	display: none; 
}

/* FLUIDNÍ TYPOGRAFIE */
.font-large { font-size: clamp(32px, 6vw, 86px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.font-heading { font-size: clamp(24px, 4vw, 48px); font-weight: 500; line-height: 1.1; }
.font-small { font-size: clamp(16px, 2.5vw, 36px); font-weight: 500; line-height: 1.3; }

/* ==========================================================================
   2. HLAVIČKA A MENU (Glassmorphism)
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: max(12px, env(safe-area-inset-top)) 20px 16px;
    z-index: 1000;
    transition: transform 0.35s ease, background-color 0.4s ease, border-color 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
    border-bottom: 1px solid transparent;
}
header.header-hidden {
    transform: translateY(-100%);
    pointer-events: none;
}

.logo-img { height: 36px; transition: all 0.4s ease; }
a.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
    -webkit-tap-highlight-color: transparent;
}
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px 7px;
    margin: -6px -7px 0 0;
    cursor: pointer;
    z-index: 1002;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    flex-shrink: 0;
    background-color: var(--text-dark);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    min-height: -webkit-fill-available;
    padding: max(24px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(28px, 8vw, 40px);
    opacity: 0;
    pointer-events: none;
    z-index: 1001;
    transition: opacity 0.3s ease;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    overflow-y: hidden;
}
header.nav-open nav {
    overflow-y: auto;
}
nav a { color: var(--text-dark) !important; text-decoration: none; font-size: 28px; font-weight: 700; text-transform: uppercase; }

header.nav-open nav { opacity: 1; pointer-events: all; }
header.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.nav-open .hamburger span:nth-child(2) { opacity: 0; }
header.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
header.nav-open {
    transform: none;
}

.header-scrolled {
    background-color: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: max(12px, env(safe-area-inset-top)) 20px 14px;
}
.header-scrolled .logo-img { height: 28px; }

/* Světlá lišta - nucená skrze JS třídu */
header.header-light { background-color: rgba(255, 255, 255, 0.85) !important; backdrop-filter: blur(16px) !important; -webkit-backdrop-filter: blur(16px) !important; border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important; }
header.header-light .logo-img { filter: invert(1); }
header.header-light .hamburger span { background-color: var(--text-light); }
header.header-light:not(.nav-open) nav a { color: var(--brand-dark-gray) !important; }

/* ==========================================================================
   3. HERO SEKCE & ANIMACE
   ========================================================================== */
.hero-dark-wrapper {
    background-color: var(--bg-dark);
    color: var(--text-dark);
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-dust-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: 0;
}

.hero-dark-wrapper .hero-viewport,
.hero-dark-wrapper .large-media-overlay { position: relative; z-index: 1; }
.hero-viewport { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding-top: 80px; }

.bg-video { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; display: block; }
.media-item { display: flex; flex-direction: column; gap: 15px; margin-bottom: 60px; position: relative; z-index: 2; }
.overlay-text { text-align: left; width: 100%; }

#rotate-left, #rotate-right { display: inline-block; transition: opacity 0.4s; font-size: clamp(28px, 6vw, 96px); line-height: 1; }
.slide-up-anim { opacity: 0; transform: translateY(40px); filter: blur(10px); transition: 1s cubic-bezier(0.16, 1, 0.3, 1); }
.slide-up-anim.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }

@keyframes scroll-ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Hero ticker — základ mimo breakpointy (mobil musí mít vždy jeden řádek + animaci) */
.hero-text-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.hero-title-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.hero-services-ticker {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 20px auto 0;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.hero-services-ticker .ticker-content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    width: max-content;
    max-width: none;
    box-sizing: border-box;
    gap: 0;
    animation: scroll-ticker 32s linear infinite;
    will-change: transform;
}
.hero-services-ticker .ticker-content span {
    display: block;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.52);
    letter-spacing: 0.06em;
}

/* ==========================================================================
   4. RECENT WORK (Horizontální Scroll na mobilu)
   ========================================================================== */
.recent-work { padding: 60px 0 20px 0; width: 100%; max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) {
    .recent-work { overflow-x: clip; }
}
.recent-work-heading { max-width: 900px; margin-left: auto; margin-right: auto; line-height: 1.4; }

.recent-work--case-png .recent-work-carousel {
    position: relative;
    margin-top: 2px;
}

.recent-work--case-png .recent-work-carousel-controls {
    display: none;
}

.recent-work--case-png .recent-work-carousel .horizontal-scroll-wrapper {
    padding-top: 4px;
}
.horizontal-scroll-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    container-type: inline-size;
    container-name: recent-hscroll;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.horizontal-scroll-wrapper::-webkit-scrollbar { display: none; }
.horizontal-track { display: flex; width: max-content; padding: 0 20px; gap: 15px; box-sizing: border-box; }
.horizontal-item {
    flex: 0 0 auto;
    width: min(320px, 86cqw);
    max-width: 320px;
    scroll-snap-align: center;
}
@supports not (width: 1cqw) {
    .horizontal-item { width: min(320px, 260px); }
}
.work-card { display: block; position: relative; width: 100%; aspect-ratio: 1/1; border-radius: 4px; overflow: hidden; text-decoration: none; color: #fff; cursor: pointer; transition: transform 0.6s ease; }
.work-image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.work-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); display: flex; justify-content: center; }
.case-study-label { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }

/* ==========================================================================
   5. AKORDEON SEKCE (Architecture & Products)
   ========================================================================== */
.advanced-visuals-accordion-section { padding: 40px 0; background-color: var(--bg-light); text-align: center; }
.accordion-wrapper { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 1000px; margin: 0 auto; }

.accordion-panel {
    position: relative; width: 100%; height: 60px; min-height: 60px; max-height: 60px; flex: 0 0 60px;
    background-color: #111; border-radius: 4px; overflow: hidden; cursor: pointer; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.accordion-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.accordion-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.48) 28%, rgba(0,0,0,0.18) 52%, rgba(0,0,0,0.03) 70%, rgba(0,0,0,0) 84%); }
.accordion-content { position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 0 20px; z-index: 3; color: #fff; text-align: left; }
.accordion-content h3 { position: absolute; top: 50%; transform: translateY(-50%); margin: 0; font-size: 16px; font-weight: 700; transition: all 0.4s; }

.accordion-subtitle { font-size: 0.5em; font-weight: 400; margin-left: 10px; opacity: 0.6; letter-spacing: 0.05em; vertical-align: middle; }

.accordion-content p { position: absolute; top: 50%; transform: translateY(10px); margin: 0; font-size: 13px; line-height: 1.3; opacity: 0; transition: all 0.4s; pointer-events: none; }

.accordion-panel.is-active { height: 140px; min-height: 140px; max-height: 140px; flex: 0 0 140px; }
.accordion-panel.is-active .accordion-content h3 { top: 25px; transform: translateY(0); }
.accordion-panel.is-active .accordion-content p { top: 55px; transform: translateY(0); opacity: 1; }

/* ==========================================================================
   5.5. IMAGE GRID & MEDIA (Mobilní zobrazení)
   ========================================================================== */
.image-grid-section { padding: 40px 0; overflow-x: hidden; }
.product-gallery-section { padding-bottom: 16px; }
.media-grid-wrapper { position: relative; padding: 0 20px; width: 100%; }
.media-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 10px; width: 100%; }
.grid-item { background-color: var(--placeholder-light); border-radius: 4px; aspect-ratio: 1/1; overflow: hidden; cursor: pointer; }
.grid-item img, .grid-item video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.extra-desktop { display: none; } 
.extra-item { display: none; }

/* ==========================================================================
   5.55. PROCESS SECTION
   ========================================================================== */
.process-section {
    background: var(--bg-light);
    padding: 80px 0;
}
.image-grid-section + .process-section {
    padding-top: 44px;
}
.process-header {
    max-width: 980px;
    margin: 0 auto 48px;
}
.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: stretch;
    position: relative;
}
.process-card {
    position: relative;
    padding: 36px 28px 32px;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    outline: none;
    box-shadow: 0 4px 18px rgba(17, 17, 17, 0.04);
    transition: border-color 0.35s ease, box-shadow 0.45s ease, transform 0.45s ease;
    -webkit-tap-highlight-color: transparent;
}
.process-step {
    display: block;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.32);
}
.process-step::before {
    content: "STEP ";
}
.process-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 22px;
    color: #111;
}
.process-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.process-card h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text-light);
}
.process-text {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s ease,
                margin-top 0.45s ease;
}
.process-text p {
    margin: 0;
    color: rgba(17, 17, 17, 0.7);
    font-size: 14px;
    line-height: 1.65;
}
.process-card.is-open,
.process-card:focus-visible {
    border-color: rgba(17, 17, 17, 0.22);
    box-shadow: 0 22px 60px rgba(17, 17, 17, 0.08);
    transform: translateY(-3px);
}
.process-card.is-open .process-text {
    max-height: 320px;
    opacity: 1;
    margin-top: 18px;
}
@media (hover: hover) {
    .process-card:hover {
        border-color: rgba(17, 17, 17, 0.22);
        box-shadow: 0 22px 60px rgba(17, 17, 17, 0.08);
        transform: translateY(-3px);
    }
    .process-card:hover .process-text {
        max-height: 320px;
        opacity: 1;
        margin-top: 18px;
    }
}

/* Process cards (About + Homepage): crossfade icon/title ↔ detail text */
.process-section--swap .process-card {
    display: flex;
    flex-direction: column;
    overflow: visible;
}
.process-section--swap .process-card-body {
    display: grid;
    grid-template: 1fr / 1fr;
    align-items: center;
    justify-items: center;
    flex: 1 1 auto;
    min-height: 260px;
    width: 100%;
    overflow: visible;
}
.process-section--swap .process-card-front,
.process-section--swap .process-text {
    grid-area: 1 / 1;
    width: 100%;
    margin: 0;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}
.process-section--swap .process-card-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
}
.process-section--swap .process-card-front h3 {
    margin: 0;
}
.process-section--swap .process-text {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 6px 8px;
    max-height: none;
    overflow: visible;
    z-index: 2;
    pointer-events: none;
}
.process-section--swap .process-text p {
    margin: 0;
    font-size: 16px;
    line-height: 1.62;
    color: rgba(17, 17, 17, 0.9);
}
.process-section--swap .process-card.is-open .process-card-front,
.process-section--swap .process-card:focus-visible .process-card-front,
.process-section--swap .process-card.is-open .process-text,
.process-section--swap .process-card:focus-visible .process-text,
.process-section--swap .process-card:hover .process-card-front,
.process-section--swap .process-card:hover .process-text {
    max-height: none;
    margin-top: 0;
}
.process-section--swap .process-card.is-open .process-card-front,
.process-section--swap .process-card:focus-visible .process-card-front,
.process-section--swap .process-card:hover .process-card-front {
    opacity: 0;
    pointer-events: none;
}
.process-section--swap .process-card.is-open .process-text,
.process-section--swap .process-card:focus-visible .process-text,
.process-section--swap .process-card:hover .process-text {
    opacity: 1;
    pointer-events: auto;
}
@media (hover: hover) {
    .process-section--swap .process-card:hover {
        transform: none;
    }
}
.process-section--swap .process-card.is-open,
.process-section--swap .process-card:focus-visible {
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .process-section--swap .process-card-front,
    .process-section--swap .process-text {
        transition-duration: 0.15s;
    }
}

/* Sekvenční konektor mezi kartami */
.process-card::after {
    content: "";
    position: absolute;
    background: rgba(17, 17, 17, 0.16);
    pointer-events: none;
    opacity: 0;
}
/* Mobil (1 sloupec): vertikální čárka pod kartou kromě poslední */
.process-card:not(:last-child)::after {
    opacity: 1;
    left: 50%;
    bottom: -18px;
    width: 1px;
    height: 18px;
    transform: translateX(-50%);
}
.process-note {
    width: 100%;
    margin: 32px 0 0;
    padding: 28px 28px 24px;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(17, 17, 17, 0.04);
    color: rgba(17, 17, 17, 0.78);
    font-size: 17px;
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}
.process-note-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.process-note-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: var(--placeholder-light);
}
.process-note-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.process-note-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
    line-height: 1.2;
}
.process-note-caption strong {
    color: #111;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.02em;
}
.process-note-caption span {
    color: rgba(17, 17, 17, 0.55);
    font-size: 13px;
    letter-spacing: 0.04em;
}
.process-note-body {
    flex: 1;
    min-width: 0;
    width: 100%;
}
.process-note-title {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text-light);
    text-align: center;
}
.process-note-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.process-note-list li {
    position: relative;
    padding-left: 30px;
    color: rgba(17, 17, 17, 0.78);
}
.process-note-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 16px;
    height: 9px;
    border-left: 1.5px solid #111;
    border-bottom: 1.5px solid #111;
    transform: rotate(-45deg);
    transform-origin: 2px 7px;
}

/* ==========================================================================
   5.6. HOMEPAGE GALLERY LIGHTBOX
   ========================================================================== */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    visibility: hidden;
    pointer-events: none;
    /* Po zavření necháme dojet animaci pozadí, pak schováme vrstvu */
    transition: visibility 0s linear 0.52s;
}
.gallery-lightbox.is-active {
    visibility: visible;
    pointer-events: auto;
    transition: visibility 0s;
}
.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    cursor: zoom-out;
    will-change: opacity, backdrop-filter;
    /* Výchozí stav = „žádný“ efekt; rozjezd řeší pouze tento prvek (plynulý blur + ztmavení) */
    opacity: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition:
        opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        backdrop-filter 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        -webkit-backdrop-filter 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-lightbox.is-active .gallery-lightbox-backdrop {
    opacity: 1;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.gallery-lightbox-stage {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 56px 56px;
    box-sizing: border-box;
    pointer-events: none;
}
@keyframes gallery-lb-media-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.gallery-lightbox-media {
    max-width: min(92vw, 1400px);
    max-height: min(86vh, 900px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    pointer-events: auto;
    animation: gallery-lb-media-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
/* Videa z galerie / services — 1:1 nebo 16:9 v lightboxu */
.gallery-lightbox-media:is(video).gallery-lightbox-media--square {
    aspect-ratio: 1 / 1;
    width: min(92vw, 86vh, 900px);
    max-width: min(92vw, 86vh, 900px);
    height: auto;
    max-height: min(92vw, 86vh, 900px);
    object-fit: contain;
    background: #000;
}

.gallery-lightbox-media:is(video).gallery-lightbox-media--wide {
    aspect-ratio: 16 / 9;
    width: min(92vw, 1400px);
    max-width: min(92vw, 1400px);
    height: auto;
    max-height: min(78vh, 900px);
    object-fit: contain;
    background: #000;
}
.gallery-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.32s ease 0.12s;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.gallery-lightbox.is-active .gallery-lightbox-close {
    opacity: 1;
}
.gallery-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.32s ease 0.14s;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}
.gallery-lightbox.is-active .gallery-lightbox-arrow:not([hidden]) {
    opacity: 1;
}

.gallery-lightbox--single .gallery-lightbox-arrow {
    display: none !important;
    pointer-events: none;
}
.gallery-lightbox-arrow--prev { left: 14px; }
.gallery-lightbox-arrow--next { right: 14px; }
@media (max-width: 767px) {
    .gallery-lightbox-stage { padding: 68px 12px 40px; }
    .gallery-lightbox-arrow { width: 42px; height: 42px; font-size: 24px; }
    .gallery-lightbox-arrow--prev { left: 8px; }
    .gallery-lightbox-arrow--next { right: 8px; }
}

/* ==========================================================================
   6. KLIENTSKÁ LOGA (OPRAVENO: Velikost a zalamování)
   ========================================================================== */
.client-logos-section { padding: 40px 0 60px 0; overflow: hidden; width: 100%; max-width: 100%; display: flex; flex-direction: column; }
.client-logos-wrapper { display: flex; flex-direction: column; gap: 54px; width: 100%; }
.marquee { display: flex; width: 100%; overflow: hidden; }
.marquee-content {
    --logo-width: 198px;
    --gap: 99px;
    /* --items: počet unikátních log v jedné sadě (nastavuje se inline na elementu) */
    display: flex;
    gap: var(--gap);
    width: max-content;
    flex-wrap: nowrap;
    align-items: center;
    will-change: transform;
}
.speed-slow { animation: scroll-marquee-left 70s linear infinite; }
.speed-medium { animation: scroll-marquee-right 85s linear infinite; }
.speed-slower { animation: scroll-marquee-left 95s linear infinite; }
.speed-slow-reverse { animation: scroll-marquee-right 80s linear infinite; }
.speed-fast { animation: scroll-marquee-left 25s linear infinite; }

/* Loga zvětšena a zajištěna proti ustřelení */
.logo-box { width: var(--logo-width, 198px); height: 88px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(100%) opacity(0.6); display: block; }

/* Plynulý loop: animace posune obsah přesně o šířku jedné sady (logo + gap) × N.
   V HTML musí být sada zduplikovaná, aby v okamžiku resetu byl viditelný obsah identický. */
@keyframes scroll-marquee-left {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(calc(-1 * var(--items, 8) * (var(--logo-width) + var(--gap))), 0, 0); }
}
@keyframes scroll-marquee-right {
    0%   { transform: translate3d(calc(-1 * var(--items, 8) * (var(--logo-width) + var(--gap))), 0, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

/* ==========================================================================
   7. STATISTIKY
   ========================================================================== */
.stats-section { padding: 60px 20px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; width: 100%; max-width: 100%; overflow: hidden; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; text-align: center; width: 100%; align-items: start; }
.stat-box { width: 100%; }
.stat-value {
    margin: 0 0 12px;
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #111;
    font-variant-numeric: tabular-nums;
}
.stat-value .counter { font-weight: inherit; }
.stat-label {
    margin: 0;
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: rgba(0, 0, 0, 0.52);
    max-width: 18em;
    margin-left: auto;
    margin-right: auto;
}

.site-footer {
    background: #fff;
    color: #111;
}
.site-footer .stats-section {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: none;
    padding-top: clamp(88px, 12vw, 140px);
    padding-bottom: clamp(48px, 7vw, 88px);
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Patička — tým, formulář, kontakt */
.footer-team-section {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-block: clamp(48px, 8vw, 88px);
    width: 100%;
}
.footer-team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 20px;
    width: 100%;
}
.footer-team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.footer-team-photo-wrap {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    margin-bottom: 18px;
}
.footer-team-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--placeholder-light);
    border: 1px solid rgba(17, 17, 17, 0.1);
}
.footer-team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.footer-team-flag {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 0 12px;
}
.footer-team-flag-inner {
    width: 30px;
    height: 22px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.06);
    background: #fff;
}
.footer-team-flag svg {
    display: block;
    width: 100%;
    height: 100%;
}
.footer-team-name {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #111;
}
.footer-team-meta {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
    color: rgba(17, 17, 17, 0.58);
    max-width: min(340px, 100%);
}
.footer-team-meta a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(17, 17, 17, 0.2);
    transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-team-meta a:hover {
    color: #111;
    border-bottom-color: #111;
}

.footer-form-section {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-block: clamp(48px, 8vw, 96px);
    width: 100%;
}
.footer-form-inner {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}
.footer-form-title {
    margin: 0 0 clamp(28px, 4vw, 40px);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #111;
    text-align: center;
}
.footer-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.footer-form-row {
    display: grid;
    gap: 22px;
}
.footer-form-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.55);
}
.footer-form-files-heading {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.55);
}
.footer-form-field input,
.footer-form-field select,
.footer-form-field textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #111;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.16);
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.footer-form-field input::placeholder,
.footer-form-field textarea::placeholder {
    color: rgba(17, 17, 17, 0.35);
}
.footer-form-field input:focus,
.footer-form-field select:focus,
.footer-form-field textarea:focus {
    outline: none;
    border-color: rgba(17, 17, 17, 0.45);
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}
.footer-form-field textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.5;
}
.footer-file-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 112px;
    padding: 20px 16px;
    border: 1px dashed rgba(17, 17, 17, 0.22);
    border-radius: 6px;
    background: rgba(17, 17, 17, 0.02);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    text-align: center;
    position: relative;
}
.footer-file-drop:hover {
    border-color: rgba(17, 17, 17, 0.35);
    background: rgba(17, 17, 17, 0.04);
}
.footer-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.footer-file-drop-text {
    font-size: 14px;
    font-weight: 500;
    color: rgba(17, 17, 17, 0.55);
}
.footer-form-file-preview {
    font-size: 13px;
    font-weight: 500;
    color: #111;
    word-break: break-word;
    max-width: 100%;
}
.footer-form-submit {
    margin-top: 4px;
    padding: 16px 28px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: #111;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}
.footer-form-submit:hover {
    background: #2b2b2b;
}
.footer-form-submit:active {
    transform: scale(0.99);
}
.footer-form-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.footer-form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.footer-form-status {
    margin: 16px 0 0;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(17, 17, 17, 0.72);
}
.footer-form-status.is-success {
    color: #1b6b3a;
}
.footer-form-status.is-error {
    color: #a12626;
}

.footer-contact-section {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: clamp(48px, 8vw, 96px);
    padding-bottom: max(clamp(56px, 10vw, 120px), env(safe-area-inset-bottom, 0px));
    width: 100%;
}
.footer-contact-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding-inline: 0;
}
.footer-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    width: 100%;
    align-items: start;
}
.footer-contact-col {
    min-width: 0;
}
.footer-contact-col--primary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}
.footer-contact-col--hq {
    text-align: left;
}
.footer-contact-email,
.footer-contact-phone {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    border-bottom: 1px solid rgba(17, 17, 17, 0.25);
    transition: border-color 0.2s ease;
    word-break: break-word;
}
.footer-contact-email:hover,
.footer-contact-phone:hover {
    border-bottom-color: #111;
}
@media (min-width: 640px) {
    .footer-contact-inner {
        max-width: 800px;
    }
    .footer-contact-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 28px clamp(28px, 5vw, 52px);
    }
}
@media (max-width: 639px) {
    .footer-contact-layout {
        justify-items: center;
    }
    .footer-contact-col--primary,
    .footer-contact-col--hq {
        align-items: center;
        text-align: center;
    }
    .footer-contact-col--primary {
        width: 100%;
    }
    .footer-social {
        justify-content: center;
    }
}
.footer-contact-hq-title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.5);
}
.footer-contact-address {
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
    font-style: normal;
    font-weight: 500;
    color: rgba(17, 17, 17, 0.78);
}
.footer-contact-address strong {
    display: block;
    margin-bottom: 4px;
    font-size: 19px;
    font-weight: 700;
    font-style: normal;
    color: #111;
}
.footer-contact-ids {
    margin: 14px 0 0;
    font-size: 16px;
    color: rgba(17, 17, 17, 0.62);
    font-weight: 500;
}
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(17, 17, 17, 0.14);
    color: #111;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.footer-social a:hover {
    background: rgba(17, 17, 17, 0.06);
    border-color: rgba(17, 17, 17, 0.28);
}
.footer-social a svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   8. FOOTER CTA (Mobilní zobrazení - pod sebou)
   ========================================================================== */
.solutions { padding: 60px 20px clamp(56px, 8vw, 96px); width: 100%; max-width: 100%; overflow: hidden; }
.solutions-cta-grid { display: grid; grid-template-columns: 1fr; gap: 20px; width: 100%; }
.aspect-cta { aspect-ratio: 4 / 3; }
.cta-box { position: relative; text-decoration: none; color: #fff; display: block; overflow: hidden; border-radius: 4px; width: 100%; }
.cta-box .work-image { transition: transform 0.55s ease; }
.cta-box:hover .work-image,
.cta-box:focus-visible .work-image { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
    .cta-box:hover .work-image,
    .cta-box:focus-visible .work-image { transform: none; }
}
.cta-box::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 50%; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%); }
.cta-overlay-left, .cta-overlay-right { position: absolute; left: 20px; bottom: 20px; z-index: 2; margin: 0; text-shadow: 0 2px 8px rgba(0,0,0,0.8); text-align: left; }

/* ==========================================================================
   9. CASE STUDY MODAL 
   ========================================================================== */
.modal-overlay { position: fixed; inset: 0; background-color: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 9999; display: flex; justify-content: center; align-items: flex-end; opacity: 0; pointer-events: none; transition: 0.4s; }
.modal-overlay.is-active { opacity: 1; pointer-events: all; }

.modal-content { 
    width: 100%; height: 95vh; background-color: var(--bg-light); border-radius: 20px 20px 0 0; position: relative;
    display: flex; flex-direction: column; overflow: hidden; transform: translateY(100%); transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.is-active .modal-content { transform: translateY(0); }

.modal-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; background: #f0f0f0; border: none; border-radius: 50%; font-size: 24px; cursor: pointer; z-index: 100; }

.modal-scroll-area { overflow-y: auto; flex-grow: 1; padding: 60px 20px; }
.modal-body-inner { max-width: 720px; margin: 0 auto; }
.modal-cs-section { margin-bottom: 112px; }
.modal-cs-text { margin: 0 auto 48px; font-weight: 500; }

.modal-logo-wrap { padding-top: 28px; }
.modal-logo-wrap img.cs-logo { max-width: 220px; height: auto; display: block; margin: 8px auto 56px; }
.case-study-case[data-case="hanscraft"] .modal-logo-wrap img.cs-logo { margin-bottom: 88px; }
.modal-cs-tagline { margin: 0 auto 64px; max-width: 680px; font-weight: 500; line-height: 1.25; }

.cs-media-grid { display: grid; gap: 15px; position: relative; }
.cs-media-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cs-media-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cs-media-grid-1 { grid-template-columns: 1fr; }
.cs-media-grid-centered { max-width: 420px; margin-left: auto; margin-right: auto; }

.cs-placeholder,
.cs-placeholder-wide {
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

/* Malé placeholdery pod kapitolami (odpovídá návrhu: krátké obdélníky s červeným štítkem). */
.cs-placeholder { aspect-ratio: 4 / 3; }
.cs-placeholder-wide { aspect-ratio: 16 / 9; width: 100%; }
.cs-placeholder-wide + .cs-placeholder-wide { margin-top: 18px; }
.cs-placeholder img,
.cs-placeholder video,
.cs-placeholder-wide img,
.cs-placeholder-wide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cs-media-tag {
    display: none;
}

/* Nadpisy kapitol v normálním flow (ne absolutní overlay). */
.cs-heading {
    position: static;
    margin: 0 0 10px;
    font-weight: 700;
    line-height: 1.05;
    pointer-events: none;
}

/* Velké nadpisy sekcí, které vizuálně zasahují do spodní části gridu. */
.cs-heading-overlap {
    margin: -32px 0 20px;
    font-weight: 800;
    font-size: clamp(40px, 8vw, 80px);
    line-height: 0.9;
    position: relative;
    z-index: 3;
    display: inline-block;
    padding: 0.02em 0.16em 0.08em;
    color: #111;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.55);
}

.cs-heading-overlap::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: -0.24em;
    right: -0.24em;
    top: -0.22em;
    bottom: -0.18em;
    border-radius: 999px;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.78) 0%,
        rgba(255, 255, 255, 0.55) 38%,
        rgba(255, 255, 255, 0.22) 62%,
        rgba(255, 255, 255, 0.0) 100%
    );
    filter: blur(8px);
    pointer-events: none;
}

/* Segmentace obsahu:
   - nadpis patří médiím NAD ním (větší odstup pod nadpisem)
   - text patří médiím POD ním (menší odstup k následujícím médiím) */
.cs-heading-overlap + .modal-cs-text {
    margin-top: 42px;
    margin-bottom: 48px;
}

.modal-cs-text + .cs-media-grid,
.modal-cs-text + .cs-placeholder-wide {
    margin-top: 60px;
}

/* ==========================================================================
   MOBILNÍ DOLADĚNÍ (≤767px)
   ========================================================================== */
@media (max-width: 767px) {
    .hero-viewport {
        min-height: 100dvh;
        padding-top: max(76px, calc(env(safe-area-inset-top) + 52px));
        padding-bottom: 24px;
    }
    .hero-title-wrapper {
        padding: 0 6px;
    }
    .hero-text-section .font-heading {
        font-size: clamp(22px, 6.4vw, 32px);
        line-height: 1.18;
        letter-spacing: -0.02em;
    }

    .hero-services-ticker {
        margin-top: 22px;
        -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
        mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    }
    .hero-services-ticker .ticker-content {
        animation-duration: 34s;
    }
    .hero-services-ticker .ticker-content span {
        font-size: 10.5px;
    }

    .large-media-overlay.container {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
    .media-item { margin-bottom: 44px; }
    .media-text-container { padding: 0 4px; }
    #rotate-left,
    #rotate-right {
        font-size: clamp(22px, 8.5vw, 40px);
    }

    .recent-work { padding: 48px 0 16px; }
    .recent-work-heading {
        padding: 0 8px;
        line-height: 1.45;
        font-size: clamp(15px, 4.2vw, 22px);
    }
    .horizontal-scroll-wrapper {
        padding-bottom: 16px;
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
        /* pan-x alone blocks vertical scroll when gesture starts on the strip (Safari/Chrome). */
        touch-action: pan-x pan-y;
    }
    .horizontal-track {
        padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right));
    }
    .horizontal-item {
        width: min(320px, 86cqw);
        max-width: 320px;
    }
    @supports not (width: 1cqw) {
        .horizontal-item { width: min(320px, 260px); }
    }

    .advanced-visuals-accordion-section {
        padding: 28px 0 44px;
    }
    .visuals-header {
        text-align: center;
        margin-bottom: 28px;
        padding: 0 8px;
    }
    .visuals-header .font-large {
        font-size: clamp(26px, 8.5vw, 52px);
        line-height: 1.05;
    }
    .visuals-header .desc {
        margin: 14px auto 0;
        max-width: 34rem;
        font-size: clamp(14px, 3.8vw, 17px);
        line-height: 1.45;
        opacity: 0.92;
    }
    .accordion-wrapper {
        padding: 0 8px;
        max-width: 100%;
    }
    .accordion-panel {
        border-radius: 6px;
    }
    .accordion-content {
        padding: 0 max(14px, env(safe-area-inset-left)) 0 max(14px, env(safe-area-inset-right));
    }
    .accordion-content h3 {
        font-size: clamp(14px, 3.8vw, 17px);
        line-height: 1.25;
        padding-right: 4px;
    }
    .accordion-panel.is-active {
        height: 152px;
        min-height: 152px;
        max-height: 152px;
        flex: 0 0 152px;
    }
    .accordion-panel.is-active .accordion-content p {
        font-size: 12.5px;
        line-height: 1.35;
        max-width: 100%;
    }

    .image-grid-section {
        padding: 32px 0;
    }
    .media-grid-wrapper {
        padding: 0 max(12px, env(safe-area-inset-left)) 0 max(12px, env(safe-area-inset-right));
    }

    .client-logos-section {
        padding: 32px 0 48px;
    }
    .client-logos-wrapper {
        gap: 36px;
    }
    .marquee-content {
        --logo-width: 145px;
        --gap: 66px;
    }
    .logo-box {
        height: 66px;
    }

    .solutions {
        padding: 48px max(16px, env(safe-area-inset-left)) 56px max(16px, env(safe-area-inset-right));
    }
    .solutions .font-small {
        font-size: clamp(16px, 4.5vw, 22px);
    }
    .solutions .cta-overlay-left,
    .solutions .cta-overlay-right {
        left: max(16px, env(safe-area-inset-left));
        right: max(16px, env(safe-area-inset-right));
        bottom: 16px;
        font-size: clamp(17px, 5vw, 26px);
        line-height: 1.12;
    }

    .modal-overlay {
        align-items: flex-end;
        padding: 0;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .modal-content {
        border-radius: 16px 16px 0 0;
        max-height: min(96dvh, calc(100dvh - env(safe-area-inset-top)));
    }
    .modal-close {
        min-width: 44px;
        min-height: 44px;
        top: max(10px, env(safe-area-inset-top));
        right: max(10px, env(safe-area-inset-right));
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 120;
    }
    .modal-scroll-area {
        padding: 48px 16px max(24px, env(safe-area-inset-bottom));
    }
    .modal-body-inner {
        max-width: 100%;
    }
    .modal-logo-wrap {
        padding-top: max(4px, env(safe-area-inset-top));
    }
    .modal-cs-section {
        margin-bottom: 72px;
    }
    .modal-cs-text {
        font-size: clamp(15px, 4vw, 18px);
        line-height: 1.45;
        padding: 0 4px;
    }
    .modal-cs-tagline {
        font-size: clamp(15px, 4vw, 18px);
        line-height: 1.35;
        padding: 0 8px;
        margin-bottom: 40px;
    }

    .cs-media-grid {
        gap: 10px;
    }
    .cs-media-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cs-heading-overlap {
        margin: -18px 0 14px;
        font-size: clamp(30px, 11vw, 56px);
        max-width: 100%;
        word-break: break-word;
    }
    .cs-heading-overlap + .modal-cs-text {
        margin-top: 28px;
        margin-bottom: 28px;
    }
    .modal-cs-text + .cs-media-grid,
    .modal-cs-text + .cs-placeholder-wide {
        margin-top: 28px;
    }

    .between-sections-lede {
        font-size: clamp(19px, 5.2vw, 28px);
        line-height: 1.35;
        margin: 40px auto 48px;
        padding: 0 4px;
    }

    nav a {
        font-size: clamp(22px, 5.8vw, 28px);
        padding: 10px 24px;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }

    .hero-dark-wrapper {
        padding-bottom: 44px;
    }
}

@media (max-width: 380px) {
    .cs-media-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   DESKTOP ZOBRAZENÍ
   ========================================================================== */
@media (min-width: 768px) {
    .container { max-width: 1400px; padding: 0 40px; }
    header {
        padding: max(24px, env(safe-area-inset-top)) 40px 24px;
    }
    .header-scrolled {
        padding: max(15px, env(safe-area-inset-top)) 40px 15px !important;
    }
    .logo-img { height: 48px; }
    .header-scrolled .logo-img { height: 36px !important; }
    .hamburger { display: none; }
    nav {
        position: relative;
        width: auto;
        height: auto;
        min-height: 0;
        padding: 0;
        background-color: transparent;
        flex-direction: row;
        gap: 40px;
        opacity: 1;
        pointer-events: all;
    }
    nav a { font-size: 14px; font-weight: 500; letter-spacing: 1px; }

    /* TICKER & PARALAX */
    .hero-services-ticker {
        max-width: 800px;
        margin: 30px auto 0;
        -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
        mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    }
    .hero-services-ticker .ticker-content {
        animation-duration: 30s;
    }
    .hero-services-ticker .ticker-content span {
        font-size: 12px;
    }

    .media-item { display: block; margin-bottom: 150px; }
    .overlay-text { position: absolute; text-shadow: 0 10px 30px rgba(0,0,0,0.6); width: auto; }
    .overlay-text.text-left { bottom: 30px; left: -40px; }
    .overlay-text.text-right { bottom: 30px; right: -20px; }

    .recent-work { padding: 120px 0 60px 0; }
    .horizontal-scroll-wrapper { overflow: hidden; padding-bottom: 0; scroll-snap-type: none; }
    .recent-work--case-png .horizontal-scroll-wrapper {
        overflow-x: clip;
        overflow-y: visible;
        padding-top: 24px;
        padding-bottom: 20px;
    }

    .recent-work--case-png .recent-work-carousel {
        margin-top: 0;
    }

    .recent-work--case-png .recent-work-carousel-controls {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 3;
        margin: 0;
        padding: 0;
        pointer-events: none;
    }

    .recent-work--case-png .recent-work-carousel-controls .about-reviews-btn {
        position: absolute;
        top: clamp(168px, 22vw, 220px);
        transform: translateY(-50%);
        pointer-events: auto;
    }

    .recent-work--case-png .case-studies-btn--prev {
        left: max(2px, env(safe-area-inset-left));
    }

    .recent-work--case-png .case-studies-btn--next {
        right: max(2px, env(safe-area-inset-right));
    }

    .recent-work--case-png .recent-work-carousel .horizontal-scroll-wrapper {
        padding-top: 12px;
    }
    .horizontal-track { padding: 0 40px; gap: 40px; }
    .horizontal-item { width: 400px; }
    .work-info { padding: 40px; }

    /* AKORDEON DESKTOP */
    .visuals-header { text-align: left; margin-bottom: 60px; }
    .accordion-panel { height: 80px; min-height: 80px; max-height: 80px; flex: 0 0 80px; }
    .accordion-content h3 { font-size: 32px; }
    .accordion-content p { font-size: 16px; max-width: 500px; }
    .accordion-panel:hover { height: 280px; min-height: 280px; max-height: 280px; flex: 0 0 280px; }
    .accordion-panel:hover .accordion-content h3 { top: 40px; }
    .accordion-panel:hover .accordion-content p { top: 90px; opacity: 1; }

    /* GRID DESKTOP */
    .image-grid-section { padding: 100px 0; }
    .product-gallery-section { padding-bottom: 40px; }
    .media-grid-wrapper {
        position: relative;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        left: auto;
        right: auto;
        padding: 0;
    }
    .media-row {
        display: flex;
        width: max-content;
        flex-wrap: nowrap;
        gap: 15px;
        margin-bottom: 15px;
        box-sizing: border-box;
    }
    .grid-item {
        flex: 0 0 auto;
        width: 25vw;
        min-width: 0;
        border-radius: 0;
        overflow: hidden;
    }
    .page-real-estate .re-section-trio .grid-item,

    .page-products .re-section-trio .grid-item{
        width: 100%;
        flex: none;
        border-radius: 4px;
    }
    .page-real-estate .re-gallery .grid-item,

    .page-products .re-gallery .grid-item{
        flex: 0 0 clamp(178px, 35.1vw, 297px);
        width: clamp(178px, 35.1vw, 297px);
        border-radius: 4px;
    }
    .grid-item img, .grid-item video { opacity: 0.6; filter: grayscale(40%); transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
    .page-real-estate .re-gallery .grid-item img,,

    .page-products .re-gallery .grid-item img,
    .page-real-estate .re-gallery .grid-item video,,

    .page-products .re-gallery .grid-item video,
    .page-real-estate .re-section-trio .grid-item img,,

    .page-products .re-section-trio .grid-item img,
    .page-real-estate .re-section-trio .grid-item video,

    .page-products .re-section-trio .grid-item video{
        opacity: 1;
        filter: none;
        transform: none;
        transition: none;
    }
    .grid-item:hover img, .grid-item:hover video { opacity: 1; filter: grayscale(0); transform: scale(1.05); }
    .page-real-estate .re-gallery .grid-item:hover img,,

    .page-products .re-gallery .grid-item:hover img,
    .page-real-estate .re-gallery .grid-item:hover video,,

    .page-products .re-gallery .grid-item:hover video,
    .page-real-estate .re-section-trio .grid-item:hover img,,

    .page-products .re-section-trio .grid-item:hover img,
    .page-real-estate .re-section-trio .grid-item:hover video,

    .page-products .re-section-trio .grid-item:hover video{
        opacity: 1;
        filter: none;
        transform: none;
    }
    .extra-desktop { display: block; }
    .extra-item { display: block; }
    .row-1, .row-3 { transform: translateX(0); }
    .row-2 { transform: translateX(calc(-12.5vw - 7.5px)); }

    /* PROCESS TABLET+ — vypadá stejně jako desktop (4 sloupce, row Petr blok). */
    .process-section { padding: 100px 0; }
    .process-header { margin-bottom: 56px; }
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
    .process-card { padding: 36px 18px 32px; }
    .process-icon { width: 60px; height: 60px; margin-bottom: 22px; }
    .process-card h3 { font-size: 17px; }
    .process-text p { font-size: 13px; line-height: 1.55; }
    .process-note {
        margin-top: 44px;
        padding: 36px 40px;
        font-size: 18px;
        flex-direction: row;
        align-items: center;
        gap: 36px;
        text-align: left;
    }
    .process-note-photo { width: 170px; height: 170px; }
    .process-note-title { font-size: 24px; margin-bottom: 20px; text-align: left; }
    .process-note-list { gap: 14px; }

    /* Konektory: horizontální mezi všemi sousedy (jako na desktopu) */
    .process-card:not(:last-child)::after {
        opacity: 1;
        top: 50%;
        right: -9px;
        bottom: auto;
        left: auto;
        width: 9px;
        height: 1px;
        transform: translateY(-50%);
    }
    
    /* OPRAVA: FOOTER CTA DESKTOP (Tlačítka vedle sebe) */
    .solutions { padding: 80px 40px clamp(64px, 8vw, 100px); max-width: 1400px; margin: 0 auto; }
    .page-services .services-hero {
        padding: 48px 40px 72px;
        max-width: 1400px;
        margin-inline: auto;
    }
    .page-services .services-hero .container {
        padding-inline: 0;
    }
    .solutions-cta-grid { 
        grid-template-columns: repeat(2, 1fr); /* Tlačítka jsou konečně vedle sebe */
        gap: 40px; 
    }
    .aspect-cta { 
        aspect-ratio: 16 / 9; /* Na velkých obrazovkách hezčí horizontální poměr, nebudou tak humpolácká */
    }

    .stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 48px 32px;
    }

    .site-footer .stats-section {
        padding-left: 40px;
        padding-right: 40px;
    }

    .footer-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 44px 36px;
    }
    .footer-team-photo-wrap {
        width: 160px;
        height: 160px;
    }
    .footer-form-row--split {
        grid-template-columns: 1fr 1fr;
    }

    /* MODAL DESKTOP */
    .modal-overlay { align-items: center; padding: 40px; }
    .modal-content { max-width: 1000px; height: 85vh; border-radius: 12px; opacity: 0; transform: scale(0.95); }
    .modal-overlay.is-active .modal-content { opacity: 1; transform: scale(1); }
    .modal-body-inner { max-width: 800px; }
    .cs-heading { left: -10px; }

    .between-sections-lede {
        margin: 80px auto;
    }
}

@media (min-width: 1024px) {
    .footer-team-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 44px 32px;
    }
}

/* ==========================================================================
   TABLET / iPad — kompaktní horní lišta s inline navigací (zafixovaná výška,
   žádný fullscreen overlay, žádný hamburger)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1200px) {
    header {
        height: 56px !important;
        min-height: 56px !important;
        max-height: 56px !important;
        padding: 0 24px !important;
        align-items: center;
    }
    .header-scrolled {
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
        padding: 0 24px !important;
    }
    .logo-img { height: 28px !important; }
    .header-scrolled .logo-img { height: 24px !important; }

    .hamburger { display: none !important; }

    nav {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 0 !important;
        background-color: transparent !important;
        flex-direction: row !important;
        gap: 24px !important;
        opacity: 1 !important;
        pointer-events: all !important;
        transition: none !important;
        z-index: auto !important;
    }
    nav a {
        font-size: 13px !important;
        font-weight: 600 !important;
        letter-spacing: 1px !important;
        padding: 6px 4px !important;
        min-height: 0 !important;
        text-transform: uppercase;
    }

    /* ----------------------------------------------------------------------
       PROCESS SECTION — iPad (768–1200): vynutit stejný layout jako desktop.
       Stejné rozložení (4 sloupce + řádkový Petr blok), jen mírně menší
       paddingy/typografie pro užší šířku. !important + vyšší specificita
       jako pojistka proti případnému Safari cache / cascade konfliktu.
       ---------------------------------------------------------------------- */
    .process-section { padding: 100px 0 !important; }
    .process-section .process-header { margin: 0 auto 56px !important; }

    .process-section .process-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 18px !important;
        row-gap: 18px !important;
        align-items: stretch !important;
    }
    .process-section .process-card {
        padding: 32px 16px 28px !important;
        text-align: center !important;
    }
    .process-section .process-icon {
        width: 58px !important;
        height: 58px !important;
        margin: 0 auto 20px !important;
    }
    .process-section .process-step { margin-bottom: 16px !important; }
    .process-section .process-card h3 { font-size: 16px !important; line-height: 1.25 !important; }
    .process-section .process-text p { font-size: 13px !important; line-height: 1.55 !important; }
    .process-section .process-card.is-open .process-text {
        max-height: 320px !important;
        margin-top: 14px !important;
    }
    .process-section--swap .process-card.is-open .process-text,
    .process-section--swap .process-card:hover .process-text {
        max-height: none !important;
        margin-top: 0 !important;
    }
    .process-section--swap .process-card-body {
        min-height: 340px !important;
    }
    .process-section--swap .process-text p {
        font-size: 15px !important;
        line-height: 1.58 !important;
        color: rgba(17, 17, 17, 0.9) !important;
    }

    /* Petr Novak blok — fotka vlevo (kruh), text vpravo, jako na desktopu */
    .process-section .process-note {
        margin-top: 40px !important;
        padding: 32px 36px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 32px !important;
        text-align: left !important;
        font-size: 17px !important;
    }
    .process-section .process-note-media {
        display: flex !important;
        flex: 0 0 auto !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }
    .process-section .process-note-photo {
        width: 160px !important;
        height: 160px !important;
        border-radius: 50% !important;
        overflow: hidden !important;
        flex-shrink: 0 !important;
    }
    .process-section .process-note-photo img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .process-section .process-note-body {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    .process-section .process-note-title {
        font-size: 23px !important;
        margin: 0 0 16px !important;
        text-align: left !important;
    }
    .process-section .process-note-list {
        display: grid !important;
        gap: 12px !important;
    }

    /* Konektory mezi kartami v 4-sloupcové řadě (stejně jako desktop) */
    .process-section .process-card:not(:last-child)::after {
        opacity: 1 !important;
        top: 50% !important;
        right: -9px !important;
        bottom: auto !important;
        left: auto !important;
        width: 9px !important;
        height: 1px !important;
        transform: translateY(-50%) !important;
    }
    .process-section .process-card:nth-child(2)::after {
        top: 50% !important;
        bottom: auto !important;
        left: auto !important;
        right: -9px !important;
        width: 9px !important;
        height: 1px !important;
        transform: translateY(-50%) !important;
    }
}

@media (min-width: 1201px) {
    .process-section--swap .process-card-body {
        min-height: 300px;
    }
    .process-section--swap .process-text p {
        font-size: 17px;
        line-height: 1.65;
        color: rgba(17, 17, 17, 0.92);
    }
    .process-section { padding: 130px 0; }
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;
    }
    .process-card { padding: 48px 32px 40px; }
    .process-icon { width: 72px; height: 72px; margin-bottom: 28px; }
    .process-card h3 { font-size: 21px; }
    .process-note {
        margin-top: 52px;
        padding: 44px 56px;
        font-size: 18px;
        gap: 48px;
    }
    .process-note-photo { width: 190px; height: 190px; }
    .process-note-title { font-size: 28px; margin-bottom: 22px; }
    .process-note-list { gap: 14px; }

    /* Horizontální spojnice mezi všemi sousedy kromě poslední */
    .process-card:not(:last-child)::after {
        opacity: 1;
        top: 50%;
        right: -18px;
        bottom: auto;
        left: auto;
        width: 18px;
        height: 1px;
        transform: translateY(-50%);
    }
    .process-card:nth-child(2)::after {
        top: 50%;
        bottom: auto;
        left: auto;
        right: -18px;
        width: 18px;
        height: 1px;
        transform: translateY(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-services-ticker .ticker-content {
        animation: none !important;
        transform: none !important;
    }
    .slide-up-anim {
        transition-duration: 0.35s;
        filter: none;
    }
}

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */
.page-about,
.page-contact {
    background: var(--bg-light);
    color: var(--text-light);
}

/* ==========================================================================
   PROJECTS PAGE
   ========================================================================== */
body.page-projects,
.page-projects-main {
    background: var(--bg-light);
    color: var(--text-light);
}

.page-projects-main {
    padding-top: max(72px, calc(env(safe-area-inset-top) + 52px));
}

.page-projects .recent-work {
    padding-top: 28px;
}

/* Case study náhledy — PNG bez pozadí (homepage + projects) */
.recent-work--case-png {
    overflow: visible;
}

.recent-work--case-png .horizontal-track,
.recent-work--case-png .horizontal-item {
    overflow: visible;
}

.recent-work--case-png .horizontal-scroll-wrapper {
    padding-top: 20px;
    padding-bottom: 16px;
}

.recent-work--case-png .horizontal-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.recent-work--case-png .projects-case-subtitle {
    margin: 0;
    padding: 0 0 0 12px;
    border-left: 1px solid rgba(17, 17, 17, 0.22);
    font-size: clamp(16px, 4.6vw, 19px);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: rgba(17, 17, 17, 0.82);
    text-align: left;
    max-width: 100%;
}

.recent-work--case-png .work-card {
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    aspect-ratio: auto;
}

.recent-work--case-png .work-card .work-image {
    border-radius: 0;
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: scale(1.045);
    transform-origin: center center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.recent-work--case-png .work-card:hover .work-image,
.recent-work--case-png .work-card:focus-visible .work-image {
    transform: scale(1.0925);
}

@media (prefers-reduced-motion: reduce) {
    .recent-work--case-png .work-card .work-image {
        transition: none;
    }

    .recent-work--case-png .work-card:hover .work-image,
    .recent-work--case-png .work-card:focus-visible .work-image {
        transform: scale(1.045);
    }
}

.recent-work--case-png .work-card .work-info {
    display: none;
}

.page-projects .recent-work .container:first-of-type {
    padding-top: 12px;
}

.page-projects .recent-work-heading {
    margin-top: 12px;
    margin-bottom: 56px;
}

@media (min-width: 768px) {
    .page-projects .recent-work-heading {
        margin-bottom: 80px;
    }

    .recent-work--case-png .horizontal-item {
        gap: 18px;
    }

    .recent-work--case-png .projects-case-subtitle {
        padding-left: 14px;
        font-size: clamp(17px, 1.35vw, 20px);
        line-height: 1.42;
    }
}

.page-projects .projects-mosaic.image-grid-section {
    border-top: 1px solid rgba(17, 17, 17, 0.08);
}

/* Mobil 2 sloupce: 5 dlaždic = 2+2+1 → prázdný pravý slot; poslední sahá přes řádek. Desktop .media-row je flex, grid-column se ignoruje. */
@media (max-width: 767px) {
    .projects-mosaic .media-row .projects-mosaic-span-row {
        grid-column: 1 / -1;
    }

    /* Projects page — větší text a výraznější média na mobilu */
    .page-projects .recent-work {
        padding-top: 36px;
    }
    .page-projects .recent-work-heading {
        font-size: clamp(18px, 5.4vw, 26px);
        line-height: 1.38;
        font-weight: 600;
        padding: 0 16px;
        margin-top: 8px;
        margin-bottom: 44px;
        letter-spacing: -0.01em;
    }
    .page-projects .recent-work .horizontal-item {
        gap: 16px;
        width: min(340px, 88cqw);
        max-width: 340px;
    }
    @supports not (width: 1cqw) {
        .page-projects .recent-work .horizontal-item {
            width: min(340px, 90vw);
        }
    }
    .page-projects .case-study-label {
        font-size: 13px;
        letter-spacing: 0.1em;
        opacity: 1;
        font-weight: 600;
    }
    .recent-work--case-png .projects-case-subtitle {
        font-size: clamp(17px, 4.9vw, 21px);
        line-height: 1.48;
        font-weight: 600;
        color: rgba(17, 17, 17, 0.92);
        padding-left: 14px;
        border-left-width: 2px;
        border-left-color: rgba(17, 17, 17, 0.3);
    }

    .recent-work--case-png .horizontal-item {
        width: min(340px, 88cqw);
        max-width: 340px;
    }

    @supports not (width: 1cqw) {
        .recent-work--case-png .horizontal-item {
            width: min(340px, 90vw);
        }
    }
    .page-projects .projects-mosaic.image-grid-section {
        padding: 40px 0 28px;
    }
    .page-projects .projects-mosaic .media-row {
        gap: 12px;
        margin-bottom: 12px;
    }
    .page-projects .projects-mosaic .grid-item {
        border-radius: 6px;
        box-shadow: 0 6px 20px rgba(17, 17, 17, 0.1);
    }
    .page-projects .projects-mosaic .grid-item img,
    .page-projects .projects-mosaic .grid-item video {
        opacity: 1;
        filter: none;
    }
    .page-projects .projects-show-more-wrap {
        padding: 8px 16px 56px;
    }
    .page-projects .projects-show-more-btn {
        font-size: 13px;
        min-height: 56px;
        padding: 16px 28px;
        border-width: 2px;
        border-color: rgba(17, 17, 17, 0.45);
    }
}

.projects-gallery-shell {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 56px;
}

.projects-show-more-wrap {
    text-align: center;
    padding: 0 20px 72px;
}

.projects-show-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 520px);
    min-height: 58px;
    padding: 18px 36px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #111;
    background: #fff;
    border: 2px solid rgba(17, 17, 17, 0.35);
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.projects-show-more-btn:hover {
    border-color: #111;
    background: #fafafa;
}

.projects-show-more-btn:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

@media (min-width: 900px) {
    .page-projects-main {
        padding-top: max(88px, calc(env(safe-area-inset-top) + 64px));
    }
}

.about-timeline-section {
    padding: 64px 0 56px;
    background: var(--bg-light);
    border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.about-timeline-heading {
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.45;
    opacity: 0.92;
}

.about-pillars-headline {
    max-width: min(18em, 100%);
    margin: 96px auto 40px;
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.about-pillars-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 0 auto;
}

.about-pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 22px 30px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(17, 17, 17, 0.04);
}

.about-pillar-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 20px;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-pillar-icon svg {
    width: 100%;
    height: 100%;
}

.about-pillar-text {
    margin: 0;
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.55;
    font-weight: 500;
    color: rgba(17, 17, 17, 0.82);
    max-width: 32rem;
}

/* About — gallery under pillars (same grid as HP) */
.grid-item--crop-wide img,
.grid-item--crop-wide video {
    object-fit: cover;
    object-position: center;
}

.about-timeline {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 760px;
    border-top: 1px solid rgba(17, 17, 17, 0.12);
    border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

.about-timeline-item {
    display: grid;
    grid-template-columns: minmax(76px, 100px) 1fr;
    gap: 10px 28px;
    padding: 26px 0;
    align-items: start;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.about-timeline-item:last-child {
    border-bottom: none;
}

.about-timeline-year {
    font-size: clamp(14px, 1.65vw, 16px);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.42);
    font-variant-numeric: tabular-nums;
    padding-top: 4px;
}

.about-timeline-body {
    border-left: 1px solid rgba(17, 17, 17, 0.12);
    padding: 0 0 2px 28px;
    margin: 0;
}

.about-timeline-body p {
    margin: 0;
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.55;
    color: rgba(17, 17, 17, 0.84);
    font-weight: 500;
}

header nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.nav-knowledge-group,
.nav-lang-group {
    display: inline-flex;
    align-items: center;
    gap: 24px;
}

.nav-divider {
    display: none;
    flex-shrink: 0;
    align-self: center;
    background-color: rgba(255, 255, 255, 0.42);
}

header.header-light:not(.nav-open) .nav-divider {
    background-color: rgba(0, 0, 0, 0.28);
}

@media (min-width: 768px) {
    .nav-divider {
        display: block;
        width: 1px;
        height: 1em;
    }
}

@media (max-width: 767px) {
    header.nav-open .nav-lang-group .nav-divider--lang {
        display: block;
        width: 2.5rem;
        height: 1px;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 767px) {
    .about-timeline-section {
        padding: 48px 0 48px;
    }

    .about-timeline-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 22px 0;
    }

    .about-timeline-year {
        padding-top: 0;
    }

    .about-timeline-body {
        border-left: none;
        padding-left: 0;
        padding-top: 10px;
        border-top: 1px solid rgba(17, 17, 17, 0.07);
    }
}

@media (min-width: 768px) {
    .about-timeline-section {
        padding: 88px 0 72px;
    }

    .about-pillars-headline {
        margin-top: 120px;
        margin-bottom: 56px;
    }

    .about-pillars-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .about-pillar {
        padding: 32px 20px 34px;
        align-items: center;
    }
}

@media (min-width: 1100px) {
    .about-pillars-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }
}

/* ==========================================================================
   SERVICES PAGE
   ========================================================================== */
body.page-services,
.page-services-main {
    background: var(--bg-light);
    color: var(--text-light);
}

.page-services-main {
    padding-top: max(72px, calc(env(safe-area-inset-top) + 52px));
    padding-bottom: 48px;
}

.page-services .services-hero {
    padding: clamp(28px, 4vw, 40px) 20px clamp(44px, 6vw, 64px);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.page-services .services-hero.container,
.page-services .services-hero .container {
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right));
}

.page-services .services-hero .font-small {
    margin-bottom: clamp(24px, 4vw, 36px);
}

.page-services .services-category {
    padding: 64px 0 56px;
    border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.page-services .services-category:first-of-type {
    border-top: none;
    padding-top: clamp(32px, 4vw, 48px);
}

.page-services .services-category-title {
    margin: 0 auto 32px;
    max-width: 52rem;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: rgba(17, 17, 17, 0.92);
    text-align: center;
    text-wrap: balance;
}

.page-services .services-category-title .services-title-name {
    font-weight: 600;
}

.page-services .services-category-title .services-title-accent {
    font-weight: 600;
}

.page-services .services-category-title .services-title-rest {
    font-weight: 400;
}

/* Fotky i videa o 25 % užší než plná šířka kontejneru, vycentrované */
.page-services .services-category .container > .services-square-pair,
.page-services .services-category .container > .services-media-stack,
.page-services .services-category .container > .cs-placeholder-wide {
    width: 75%;
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
}

.page-services .services-media-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.page-services .services-square-pair {
    align-items: stretch;
}

.page-services .services-square-pair > .services-square-slot {
    min-width: 0;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    background-color: #e0e0e0;
}

.page-services .services-square-slot img,
.page-services .services-square-slot video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-services .services-config-distribution {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 50%;
    gap: clamp(16px, 2.5vw, 32px);
    align-items: center;
    width: 100%;
}

.page-services .services-config-distribution-copy {
    margin: 0;
    font-weight: 500;
    line-height: 1.38;
    letter-spacing: -0.01em;
    color: rgba(17, 17, 17, 0.88);
}

.page-services .services-deferred-video {
    position: relative;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: #d8d8d8;
    justify-self: end;
    cursor: pointer;
}

.page-services .services-deferred-video--square {
    aspect-ratio: 1 / 1;
    max-width: none;
}

.page-services .services-deferred-video-poster {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.35s ease;
}

.page-services .services-deferred-video-play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.02) 42%,
        rgba(10, 10, 10, 0.1) 100%
    );
    cursor: pointer;
    transition: background 0.35s ease;
}

.page-services .services-deferred-video-play-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.page-services .services-deferred-video-play-icon::before {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.28);
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-services .services-deferred-video-play-glyph {
    position: relative;
    z-index: 1;
    display: block;
    width: 36px;
    height: 36px;
    margin: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

.page-services .services-deferred-video-play:hover {
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.04) 42%,
        rgba(10, 10, 10, 0.14) 100%
    );
}

.page-services .services-deferred-video-play:hover .services-deferred-video-play-icon {
    transform: scale(1.06);
    background: rgba(255, 255, 255, 0.38);
    border-color: rgba(255, 255, 255, 0.72);
    box-shadow:
        0 14px 48px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.page-services .services-deferred-video-play:hover .services-deferred-video-play-icon::before {
    opacity: 1;
    transform: scale(1);
}

.page-services .services-deferred-video-play:active .services-deferred-video-play-icon {
    transform: scale(0.98);
}

.page-services .services-deferred-video-play:focus-visible {
    outline: none;
}

.page-services .services-deferred-video-play:focus-visible .services-deferred-video-play-icon {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 4px;
}

@media (min-width: 768px) {
    .page-services .services-category {
        padding: 96px 0 88px;
    }

    .page-services .services-category:first-of-type {
        padding-top: 56px;
    }

    .page-services .services-category-title {
        margin-bottom: 44px;
    }
}

/* Services — mobilní čitelnost (větší typografie, média na plnou šířku kontejneru) */
@media (max-width: 767px) {
    .page-services-main {
        padding-top: max(76px, calc(env(safe-area-inset-top) + 52px));
        padding-bottom: 40px;
    }

    .page-services .services-category {
        padding: 52px 0 48px;
    }

    .page-services .services-category:first-of-type {
        padding-top: 32px;
    }

    .page-services .services-category .container {
        padding-left: max(18px, env(safe-area-inset-left));
        padding-right: max(18px, env(safe-area-inset-right));
    }

    /* Přebije .font-small: na úzkém viewportu by jinak zůstalo ~16px */
    .page-services .services-category-title {
        margin-bottom: 28px;
        padding: 0 2px;
        font-size: clamp(20px, 5.6vw, 28px);
        line-height: 1.34;
        letter-spacing: -0.015em;
    }

    .page-services .services-category-title .services-title-name {
        font-weight: 700;
    }

    .page-services .services-category-title .services-title-accent {
        font-weight: 700;
    }

    /* 75 % šířky na telefonu zbytečně zmenšuje galerii */
    .page-services .services-category .container > .services-square-pair,
    .page-services .services-category .container > .services-media-stack,
    .page-services .services-category .container > .cs-placeholder-wide {
        width: 100%;
        max-width: 100%;
    }

    .page-services .services-media-stack {
        gap: 22px;
    }

    .page-services .services-media-stack > .cs-placeholder-wide + .cs-placeholder-wide {
        margin-top: 0;
    }

    .page-services .services-config-distribution {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-services .services-config-distribution-copy {
        font-size: clamp(18px, 5vw, 24px);
        line-height: 1.4;
    }

    .page-services .services-deferred-video--square {
        width: min(88%, 420px);
        max-width: none;
        justify-self: end;
    }

    .page-services .services-square-pair {
        gap: 12px;
    }

    .page-services .services-square-pair > .services-square-slot,
    .page-services .services-category .cs-placeholder-wide {
        border-radius: 8px;
    }
}

/* ==========================================================================
   ABOUT — GOOGLE-STYLE REVIEWS (manual, light cards)
   ========================================================================== */
.about-reviews-section {
    padding: 56px 0 72px;
    background: var(--bg-light);
    border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.about-reviews-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 20px;
    margin-bottom: 10px;
}

.about-reviews-heading {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-light);
    flex: 1 1 12rem;
    min-width: 0;
}

.about-reviews-heading-inner {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.about-reviews-google-mark {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.about-reviews-heading-text {
    line-height: 1.2;
}

.about-reviews-controls {
    display: flex;
    gap: 10px;
}

.about-reviews-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: #fff;
    color: rgba(17, 17, 17, 0.72);
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(17, 17, 17, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.about-reviews-btn:hover {
    border-color: rgba(17, 17, 17, 0.22);
    color: #111;
    background: #fafafa;
    box-shadow: 0 2px 8px rgba(17, 17, 17, 0.08);
}

.about-reviews-btn:focus-visible {
    outline: 2px solid rgba(26, 115, 232, 0.45);
    outline-offset: 2px;
}

.about-reviews-lede {
    margin: 0 0 22px;
    max-width: 40rem;
    font-size: 15px;
    line-height: 1.45;
    color: rgba(17, 17, 17, 0.62);
}

.about-reviews-scroller {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    padding: 4px 2px 14px;
    margin: 0 -4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: rgba(17, 17, 17, 0.22) transparent;
}

.about-reviews-scroller::-webkit-scrollbar {
    height: 6px;
}

.about-reviews-scroller::-webkit-scrollbar-thumb {
    background: rgba(17, 17, 17, 0.18);
    border-radius: 99px;
}

.about-review-card {
    flex: 0 0 clamp(280px, 82vw, 400px);
    scroll-snap-align: start;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 18px 18px 16px;
    border-radius: 12px;
    background: #fff;
    color: #202124;
    border: 1px solid rgba(60, 64, 67, 0.18);
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.12), 0 4px 20px rgba(60, 64, 67, 0.06);
}

.about-review-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.about-review-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    line-height: 1;
}

.about-review-avatar--tv {
    background: linear-gradient(145deg, #3949ab, #1a237e);
}

.about-review-avatar--dd {
    background: linear-gradient(145deg, #546e7a, #37474f);
}

.about-review-avatar--gs {
    background: linear-gradient(145deg, #2e7d32, #1b5e20);
}

.about-review-avatar--mh {
    background: linear-gradient(145deg, #6a1b9a, #4a148c);
}

.about-review-avatar--mr {
    background: linear-gradient(145deg, #c2185b, #880e4f);
}

.about-review-avatar--mp {
    background: linear-gradient(145deg, #00897b, #004d40);
}

.about-review-avatar--dz {
    background: linear-gradient(145deg, #ef6c00, #e65100);
}

.about-review-avatar--kk {
    background: linear-gradient(145deg, #d81b60, #ad1457);
}

.about-review-avatar--db {
    background: linear-gradient(145deg, #5c6bc0, #283593);
}

.about-review-avatar--logo {
    background: #fff;
    border: 1px solid rgba(60, 64, 67, 0.16);
    padding: 6px;
}

.about-review-avatar--logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.about-review-head {
    min-width: 0;
}

.about-review-name {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
    color: #202124;
}

.about-review-meta {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    color: #5f6368;
}

.about-review-rating-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 12px;
}

.about-review-excerpt-wrap {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.about-review-text-wrap {
    flex: 0 1 auto;
    font-size: 14px;
    line-height: 1.55;
    color: #3c4043;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-height: 7.75em;
}

.about-review-card.is-review-expanded .about-review-text-wrap {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.about-review-text-wrap > p {
    margin: 0 0 0.65em;
    font-size: 14px;
    line-height: 1.55;
    color: #3c4043;
}

.about-review-text-wrap > p:last-child {
    margin-bottom: 0;
}

.about-review-text-wrap .about-review-sig {
    margin-top: 0 !important;
}

.about-review-more {
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 6px;
    padding: 2px 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: #1a73e8;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.about-review-more:hover {
    color: #1557b0;
}

.about-review-more:focus-visible {
    outline: 2px solid rgba(26, 115, 232, 0.45);
    outline-offset: 2px;
    border-radius: 2px;
}

.about-review-more[hidden] {
    display: none !important;
}

.about-review-stars {
    margin: 0;
    font-size: 15px;
    line-height: 1;
    letter-spacing: 0.06em;
    color: #fbbc04;
}

.about-review-time {
    margin: 0;
    font-size: 12px;
    color: #70757a;
}

.about-review-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #3c4043;
}

.about-review-sig {
    margin-top: 4px !important;
    font-size: 13px !important;
    color: #5f6368 !important;
    font-style: italic;
}

.about-review-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
}

.about-review-photos--single {
    grid-template-columns: 1fr;
    max-width: min(220px, 72%);
    margin-left: auto;
    margin-right: auto;
}

.about-review-photo-slot {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(60, 64, 67, 0.12);
    background: #f1f3f4;
}

.about-review-photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-reviews-foot {
    margin: 20px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(17, 17, 17, 0.55);
}

.about-reviews-google-link {
    color: #1a73e8;
    font-weight: 500;
    text-decoration: none;
}

.about-reviews-google-link:hover {
    text-decoration: underline;
}

.about-reviews-foot-sep {
    margin: 0 0.35em;
    color: rgba(17, 17, 17, 0.35);
}

.about-reviews-disclaimer {
    display: inline;
}

.about-world-map-section {
    padding: 48px 0 36px;
    background: var(--bg-light);
    border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.about-world-map-figure {
    margin: 0 auto;
    max-width: min(1000px, 100%);
    background: transparent;
}

.about-world-map-figure img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

@media (min-width: 768px) {
    .about-reviews-section {
        padding: 72px 0 96px;
    }

    .about-review-card {
        flex-basis: clamp(300px, 36vw, 420px);
    }

    .about-reviews-lede {
        margin-bottom: 26px;
    }

    .about-reviews-google-mark {
        width: 32px;
        height: 32px;
    }

    .about-world-map-section {
        padding: 64px 0 48px;
    }
}

/* ==========================================================================
   REAL ESTATE & PRODUCTS PAGES
   ========================================================================== */
.page-real-estate,
.page-products,
.page-real-estate-main,
.page-products-main {
    background: var(--bg-light);
    color: var(--text-light);
}

.page-real-estate-main,
.page-products-main {
    display: block;
    padding-top: max(76px, calc(env(safe-area-inset-top) + 52px));
}

.page-real-estate-main > section,
.page-products-main > section {
    display: block;
    width: 100%;
    position: relative;
}

.re-hero {
    padding: clamp(40px, 8vw, 72px) 0 clamp(20px, 3vw, 28px);
    border-bottom: none;
}

.re-hero-video {
    padding: 0 0 clamp(40px, 6vw, 64px);
}

.page-real-estate .re-hero-video-media.cs-placeholder-wide,
.page-products .re-hero-video-media.cs-placeholder-wide {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

    .page-real-estate .re-hero-video-media video,


    .page-products .re-hero-video-media video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.re-hero-inner {
    max-width: 920px;
}

.re-hero-eyebrow {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.5);
}

.re-hero-title {
    margin: 0;
    font-size: clamp(28px, 5.2vw, 52px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.re-hero-lead {
    margin: clamp(16px, 2.5vw, 24px) 0 0;
    max-width: 42em;
    font-size: clamp(17px, 2.2vw, 22px);
    line-height: 1.55;
    font-weight: 400;
    color: rgba(17, 17, 17, 0.78);
}

.re-section {
    padding: clamp(40px, 6vw, 72px) 0;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.re-section--first-impression,
.re-section--presence {
    padding-top: clamp(32px, 5vw, 48px);
}

.re-section-title {
    margin: 0 0 clamp(20px, 3vw, 28px);
    font-size: clamp(32px, 6vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 700;
    max-width: 14ch;
}

.re-section-body {
    max-width: 42em;
    margin-bottom: 0;
}

.re-section-body p {
    margin: 0;
    font-size: clamp(17px, 2.2vw, 22px);
    line-height: 1.55;
    color: rgba(17, 17, 17, 0.78);
}

.re-section-body + .re-section-video,
.re-section-body + .re-gallery {
    margin-top: clamp(24px, 3.5vw, 42px);
}

.re-gallery {
    margin-top: clamp(32px, 5vw, 48px);
}

.re-gallery.image-grid-section {
    padding: 0;
    overflow: visible;
}

.re-gallery-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.re-gallery-controls {
    display: flex;
    gap: 10px;
}

.re-gallery-scroller {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: none;
    scroll-padding-inline: 2px;
    padding: 2px;
    margin: 0 -2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.re-gallery-scroller::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.re-gallery .grid-item {
    flex: 0 0 clamp(178px, 35.1vw, 297px);
    width: clamp(178px, 35.1vw, 297px);
    aspect-ratio: 1 / 1;
    scroll-snap-align: start;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background-color: #e0e0e0;
}

    .page-real-estate .re-gallery .grid-item img,,


    .page-products .re-gallery .grid-item img,
    .page-real-estate .re-gallery .grid-item video,

    .page-products .re-gallery .grid-item video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    opacity: 1;
    filter: none;
    transform: none;
}

    .page-real-estate .re-section-video.cs-placeholder-wide,


    .page-products .re-section-video.cs-placeholder-wide {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    margin-bottom: 0;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

    .page-real-estate .re-section-body + .re-section-video.cs-placeholder-wide,


    .page-products .re-section-body + .re-section-video.cs-placeholder-wide {
    margin-top: clamp(24px, 3.5vw, 42px);
}

    .page-real-estate .re-section-video video,


    .page-products .re-section-video video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.re-section-trio.image-grid-section {
    padding: 0;
    overflow: visible;
}

.re-section-trio {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 18px);
    width: 100%;
    margin-top: clamp(14px, 2.2vw, 20px);
}

    .page-real-estate .re-section-trio .grid-item,


    .page-products .re-section-trio .grid-item{
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: none;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background-color: #e0e0e0;
}

    .page-real-estate .re-section-trio .grid-item img,,


    .page-products .re-section-trio .grid-item img,
    .page-real-estate .re-section-trio .grid-item video,

    .page-products .re-section-trio .grid-item video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    opacity: 1;
    filter: none;
    transform: none;
}

.re-value-blocks {
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 5vw, 56px);
    margin-top: clamp(24px, 3.5vw, 42px);
}

.re-value-block {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
}

.re-value-media {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    justify-self: stretch;
}

    .page-real-estate .re-value-media video,,


    .page-products .re-value-media video,
    .page-real-estate .re-value-media img,

    .page-products .re-value-media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.re-value-caption {
    margin: 0;
    max-width: 42em;
    font-size: clamp(17px, 2.2vw, 22px);
    line-height: 1.55;
    color: rgba(17, 17, 17, 0.78);
}

.re-value-block--media-right .re-value-caption {
    padding-right: clamp(0px, 2vw, 12px);
}

.re-value-block--media-left .re-value-caption {
    padding-left: clamp(0px, 2vw, 12px);
}

.re-ar-intro,
.re-section-followup {
    margin: clamp(24px, 3.5vw, 42px) 0 0;
    max-width: 42em;
    font-size: clamp(17px, 2.2vw, 22px);
    line-height: 1.55;
    color: rgba(17, 17, 17, 0.78);
}

.re-section-followup + .re-section-video.cs-placeholder-wide {
    margin-top: clamp(24px, 3.5vw, 42px);
}

.re-ar-quad {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 18px);
    width: 100%;
    margin-top: clamp(20px, 3vw, 32px);
}

.re-ar-quad-item {
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    background-color: #e0e0e0;
}

.page-real-estate .re-ar-quad-item img,
.page-products .re-ar-quad-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.re-cta-section {
    padding: clamp(48px, 8vw, 96px) 0;
    text-align: center;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.re-cta-link {
    display: inline-block;
    font-size: clamp(22px, 4vw, 36px);
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: -0.02em;
    border-bottom: 2px solid rgba(17, 17, 17, 0.2);
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.re-cta-link:hover {
    border-color: rgba(17, 17, 17, 0.55);
    opacity: 0.85;
}

.nav-icon-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-home,
.nav-chair {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-home-icon,
.nav-chair-icon {
    display: block;
}

header.header-light:not(.nav-open) .nav-home,
header.header-light:not(.nav-open) .nav-chair {
    border-color: rgba(17, 17, 17, 0.14);
    color: rgba(17, 17, 17, 0.72);
}

header.nav-open .nav-home,
header.nav-open .nav-chair {
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.nav-home:hover,
.nav-chair:hover {
    transform: scale(1.04);
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
}

header.header-light:not(.nav-open) .nav-home:hover,
header.header-light:not(.nav-open) .nav-chair:hover {
    border-color: rgba(17, 17, 17, 0.28);
    background: rgba(17, 17, 17, 0.04);
    color: #111;
}

.nav-home[aria-current="page"],
.nav-chair[aria-current="page"] {
    background: rgba(17, 17, 17, 0.06);
    border-color: rgba(17, 17, 17, 0.22);
    color: #111;
}

header:not(.header-light) .nav-home[aria-current="page"],
header:not(.header-light) .nav-chair[aria-current="page"] {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

@media (min-width: 769px) {
    .nav-home,
    .nav-chair {
        width: 36px;
        height: 36px;
    }

    nav {
        align-items: center;
    }

    .page-real-estate .re-hero-video-media.cs-placeholder-wide,
    .page-products .re-hero-video-media.cs-placeholder-wide {
        border-radius: 6px;
    }
}

@media (max-width: 768px) {
    .page-real-estate-main,
    .page-products-main {
        padding-top: max(68px, calc(env(safe-area-inset-top) + 48px));
    }

    .re-hero {
        padding: 36px 0 28px;
    }

    .re-hero-title {
        font-size: clamp(24px, 6.8vw, 32px);
        line-height: 1.18;
    }

    .re-section-title {
        font-size: clamp(28px, 8vw, 40px);
        max-width: none;
    }

    .re-gallery .grid-item {
        flex-basis: clamp(162px, 51.3vw, 227px);
        width: clamp(162px, 51.3vw, 227px);
    }

    .re-value-block {
        grid-template-columns: 1fr;
        gap: clamp(16px, 4vw, 24px);
    }

    .re-value-block--media-right .re-value-caption,
    .re-value-block--media-left .re-value-caption {
        padding: 0;
    }

    .re-value-media {
        max-width: 100%;
    }

    .re-ar-quad {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-home,
    .nav-chair {
        width: 48px;
        height: 48px;
    }
}

/* KNOWLEDGE PAGE */
body.page-knowledge,
.page-knowledge-main {
    background-color: var(--bg-light);
    color: var(--text-light);
}

.page-knowledge-main {
    padding-top: 96px;
}

.knowledge-hero {
    padding: clamp(32px, 6vw, 56px) 0 clamp(24px, 4vw, 40px);
}

.knowledge-faq-section {
    padding: 0 0 clamp(32px, 5vw, 56px);
}

.knowledge-faq-compact {
    max-width: 1080px;
}

.knowledge-faq-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.knowledge-faq-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.knowledge-faq-chip {
    display: flex;
    align-items: center;
    min-height: 0;
    padding: 12px 14px;
    text-align: left;
    color: var(--text-light);
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 6px;
    box-shadow: none;
    opacity: 0.62;
    cursor: pointer;
    transition:
        opacity 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.45s ease,
        transform 0.45s ease;
    -webkit-tap-highlight-color: transparent;
}

.knowledge-faq-chip-title {
    display: block;
    font-size: clamp(13px, 1.25vw, 15px);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: rgba(17, 17, 17, 0.58);
    transition: color 0.35s ease, font-weight 0.2s ease;
}

.knowledge-faq-chip:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

@media (hover: hover) {
    .knowledge-faq-chip:hover {
        opacity: 0.78;
        border-color: rgba(17, 17, 17, 0.16);
    }

    .knowledge-faq-chip:hover .knowledge-faq-chip-title {
        color: rgba(17, 17, 17, 0.72);
    }
}

#kf-1:checked ~ .knowledge-faq-chips label[for="kf-1"],
#kf-2:checked ~ .knowledge-faq-chips label[for="kf-2"],
#kf-3:checked ~ .knowledge-faq-chips label[for="kf-3"],
#kf-4:checked ~ .knowledge-faq-chips label[for="kf-4"],
#kf-5:checked ~ .knowledge-faq-chips label[for="kf-5"],
#kf-6:checked ~ .knowledge-faq-chips label[for="kf-6"],
#kf-7:checked ~ .knowledge-faq-chips label[for="kf-7"],
#kf-8:checked ~ .knowledge-faq-chips label[for="kf-8"] {
    opacity: 1;
    border-color: rgba(17, 17, 17, 0.24);
    box-shadow: 0 22px 60px rgba(17, 17, 17, 0.1);
    transform: translateY(-3px);
}

#kf-1:checked ~ .knowledge-faq-chips label[for="kf-1"] .knowledge-faq-chip-title,
#kf-2:checked ~ .knowledge-faq-chips label[for="kf-2"] .knowledge-faq-chip-title,
#kf-3:checked ~ .knowledge-faq-chips label[for="kf-3"] .knowledge-faq-chip-title,
#kf-4:checked ~ .knowledge-faq-chips label[for="kf-4"] .knowledge-faq-chip-title,
#kf-5:checked ~ .knowledge-faq-chips label[for="kf-5"] .knowledge-faq-chip-title,
#kf-6:checked ~ .knowledge-faq-chips label[for="kf-6"] .knowledge-faq-chip-title,
#kf-7:checked ~ .knowledge-faq-chips label[for="kf-7"] .knowledge-faq-chip-title,
#kf-8:checked ~ .knowledge-faq-chips label[for="kf-8"] .knowledge-faq-chip-title {
    color: var(--text-light);
    font-weight: 700;
}

@media (hover: hover) {
    #kf-1:checked ~ .knowledge-faq-chips label[for="kf-1"]:hover,
    #kf-2:checked ~ .knowledge-faq-chips label[for="kf-2"]:hover,
    #kf-3:checked ~ .knowledge-faq-chips label[for="kf-3"]:hover,
    #kf-4:checked ~ .knowledge-faq-chips label[for="kf-4"]:hover,
    #kf-5:checked ~ .knowledge-faq-chips label[for="kf-5"]:hover,
    #kf-6:checked ~ .knowledge-faq-chips label[for="kf-6"]:hover,
    #kf-7:checked ~ .knowledge-faq-chips label[for="kf-7"]:hover,
    #kf-8:checked ~ .knowledge-faq-chips label[for="kf-8"]:hover {
        opacity: 1;
    }
}

.knowledge-faq-stage {
    position: relative;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(17, 17, 17, 0.04);
    padding: clamp(22px, 2.8vw, 32px);
    min-height: 140px;
}

.knowledge-faq-panel {
    display: none;
    animation: knowledge-faq-in 0.35s ease;
}

@keyframes knowledge-faq-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#kf-1:checked ~ .knowledge-faq-stage .knowledge-faq-panel--1,
#kf-2:checked ~ .knowledge-faq-stage .knowledge-faq-panel--2,
#kf-3:checked ~ .knowledge-faq-stage .knowledge-faq-panel--3,
#kf-4:checked ~ .knowledge-faq-stage .knowledge-faq-panel--4,
#kf-5:checked ~ .knowledge-faq-stage .knowledge-faq-panel--5,
#kf-6:checked ~ .knowledge-faq-stage .knowledge-faq-panel--6,
#kf-7:checked ~ .knowledge-faq-stage .knowledge-faq-panel--7,
#kf-8:checked ~ .knowledge-faq-stage .knowledge-faq-panel--8 {
    display: block;
}

.knowledge-faq-panel-q {
    margin: 0 0 14px;
    font-size: clamp(16px, 1.65vw, 19px);
    font-weight: 600;
    line-height: 1.38;
    letter-spacing: -0.02em;
    color: var(--text-light);
}

.knowledge-faq-panel-a {
    margin: 0;
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.6;
    color: rgba(17, 17, 17, 0.7);
}

@media (min-width: 768px) {
    .knowledge-faq-compact {
        display: grid;
        grid-template-columns: minmax(0, 0.52fr) minmax(0, 1fr);
        gap: clamp(18px, 2.2vw, 28px);
        align-items: start;
    }

    .knowledge-faq-chips {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 0;
    }

    .knowledge-faq-chip {
        padding: 13px 16px;
    }

    .knowledge-faq-chip-title {
        font-size: 15px;
    }

    .knowledge-faq-stage {
        min-height: 160px;
    }

    .knowledge-faq-panel-q {
        font-size: 19px;
    }

    .knowledge-faq-panel-a {
        font-size: 17px;
    }
}

.knowledge-eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.45);
    margin: 0 0 12px;
}

.knowledge-hero-title {
    font-size: clamp(48px, 9vw, 96px);
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
}

.knowledge-hero-lead {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.55;
    max-width: 42em;
    color: rgba(0, 0, 0, 0.62);
    margin: 0;
}

.knowledge-mosaic-section {
    padding: 0 0 clamp(80px, 12vw, 140px);
}

.knowledge-mosaic {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(14px, 1.8vw, 22px);
    grid-auto-flow: dense;
}

.knowledge-card {
    margin: 0;
    min-height: 0;
}

.knowledge-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: #f3f3f3;
    border: 1px solid rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.knowledge-card-link:hover {
    border-color: rgba(0, 0, 0, 0.14);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.knowledge-card-link:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
}

.knowledge-card-media {
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    aspect-ratio: 16 / 10;
}

.knowledge-card--feature .knowledge-card-media {
    aspect-ratio: 16 / 11;
    min-height: clamp(220px, 36vw, 440px);
}

.knowledge-card--tall .knowledge-card-media {
    aspect-ratio: 4 / 5;
    min-height: clamp(240px, 40vw, 460px);
}

.knowledge-card--wide .knowledge-card-media {
    aspect-ratio: 21 / 9;
    min-height: clamp(200px, 28vw, 320px);
}

.knowledge-card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.knowledge-card-link:hover .knowledge-card-img {
    transform: scale(1.05);
}

.knowledge-card-body {
    padding: clamp(18px, 2.2vw, 28px) clamp(20px, 2.4vw, 32px) clamp(22px, 2.6vw, 32px);
}

.knowledge-card-index {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: rgba(0, 0, 0, 0.35);
    margin-bottom: 10px;
}

.knowledge-card-title {
    font-family: 'Mona Sans', sans-serif;
    font-size: clamp(15px, 1.35vw, 19px);
    font-weight: 500;
    line-height: 1.38;
    margin: 0;
    letter-spacing: -0.02em;
}

.knowledge-card--feature .knowledge-card-title {
    font-size: clamp(17px, 1.6vw, 24px);
}

@media (min-width: 768px) {
    .page-knowledge-main {
        padding-top: 110px;
    }

    .knowledge-mosaic {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        grid-auto-rows: minmax(200px, auto);
    }

    .knowledge-card--feature {
        grid-column: span 7;
        grid-row: span 2;
    }

    .knowledge-card:nth-child(2),
    .knowledge-card:nth-child(3) {
        grid-column: span 5;
    }

    .knowledge-card:nth-child(4),
    .knowledge-card:nth-child(5),
    .knowledge-card--wide {
        grid-column: span 4;
    }

    .knowledge-card--half {
        grid-column: span 6;
    }
}

@media (min-width: 1200px) {
    .knowledge-hero .container,
    .knowledge-mosaic-section .container {
        max-width: 1400px;
    }

    .knowledge-mosaic {
        gap: 24px;
    }
}

/* KNOWLEDGE ARTICLE MODAL */
body.knowledge-article-open {
    overflow: hidden;
}

.knowledge-article-modal {
    position: fixed;
    inset: 0;
    z-index: 10060;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 0.48s;
}

.knowledge-article-modal.is-active {
    visibility: visible;
    pointer-events: auto;
    transition: visibility 0s;
}

.knowledge-article-modal-backdrop {
    position: absolute;
    inset: 0;
    cursor: pointer;
    opacity: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition:
        opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.45s ease,
        backdrop-filter 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        -webkit-backdrop-filter 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.knowledge-article-modal.is-active .knowledge-article-modal-backdrop {
    opacity: 1;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.knowledge-article-modal-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -48%) scale(0.97);
    width: min(720px, calc(100vw - 32px));
    max-height: min(88vh, 920px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transition:
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.4s ease;
    pointer-events: auto;
}

.knowledge-article-modal.is-active .knowledge-article-modal-panel {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.knowledge-article-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #f0f0f0;
    color: #111;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.knowledge-article-modal-close:hover {
    background: #e4e4e4;
}

.knowledge-article-modal-scroll {
    overflow-y: auto;
    flex: 1 1 auto;
    padding: 52px 24px 28px;
    -webkit-overflow-scrolling: touch;
}

.knowledge-article-modal-content {
    max-width: 640px;
    margin: 0 auto;
}

.knowledge-article-title {
    margin: 0 0 28px;
    font-size: clamp(22px, 3.2vw, 30px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-light);
}

.knowledge-article-exchange {
    margin-bottom: 24px;
}

.knowledge-article-exchange:last-of-type {
    margin-bottom: 32px;
}

.knowledge-article-moderator {
    margin: 0 0 14px;
    font-size: clamp(15px, 1.5vw, 17px);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--text-light);
}

.knowledge-article-expert {
    margin: 0;
    font-size: clamp(15px, 1.5vw, 17px);
    font-weight: 400;
    line-height: 1.6;
    color: rgba(17, 17, 17, 0.78);
}

.knowledge-article-end-image {
    margin: 0;
    border-radius: 6px;
    overflow: hidden;
}

.knowledge-article-end-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (min-width: 768px) {
    .knowledge-article-modal-scroll {
        padding: 56px 40px 36px;
    }
}

/* ==========================================================================
   Language switcher (EN / CZ)
   ========================================================================== */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}

nav .lang-switch {
    margin: 0;
}
header.header-light .lang-switch {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
}
.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.72);
    transition: background 0.2s ease, color 0.2s ease;
}

/* Přebije nav a { color: … !important } */
nav .lang-switch-btn {
    color: rgba(255, 255, 255, 0.72) !important;
}

nav .lang-switch-btn:hover {
    color: #fff !important;
}

nav .lang-switch-btn.is-active {
    background: #fff !important;
    color: var(--brand-dark-gray) !important;
}

header.header-light:not(.nav-open) nav .lang-switch-btn {
    color: rgba(0, 0, 0, 0.5) !important;
}

header.header-light:not(.nav-open) nav .lang-switch-btn:hover {
    color: var(--brand-dark-gray) !important;
}

header.header-light:not(.nav-open) nav .lang-switch-btn.is-active {
    background: var(--brand-dark-gray) !important;
    color: #fff !important;
}
@media (max-width: 767px) {
    header.nav-open .nav-lang-group {
        flex-direction: column;
        gap: clamp(20px, 5vw, 28px);
    }
}