/* =========================================================
   RD Stav RPK s.r.o. — Styles
   ========================================================= */

/* =========================================================
   TOKENS
========================================================= */
:root {
    --g-950: #081a10;
    --g-900: #0f2b1d;
    --g-800: #1e4620;
    --g-700: #1e5621;
    --g-600: #2b6e2f;
    --g-500: #3a8a3f;
    --g-200: #cfe3cf;
    --g-100: #e9f5e9;
    --g-50:  #f4f8f2;
    --accent: #f0b43c;

    --ink: #1e2a3e;
    --ink-2: #3e5a6c;
    --muted: #587082;
    --bg: #ffffff;
    --bg-soft: #f7faf6;
    --line: #e3eae3;

    --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ff-head: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --r-sm: 14px;
    --r-md: 20px;
    --r-lg: 26px;
    --r-xl: 34px;

    --sh-sm: 0 2px 8px rgba(15, 43, 29, 0.06);
    --sh-md: 0 14px 32px -14px rgba(15, 43, 29, 0.22);
    --sh-lg: 0 34px 70px -28px rgba(15, 43, 29, 0.45);

    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --container: 1240px;
    --pad: clamp(16px, 4.5vw, 32px);
    --header-h: 76px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* =========================================================
   BASE
========================================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + var(--safe-top));
}

body {
    font-family: var(--ff-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-wrap: break-word;
}

body.menu-open,
body.lb-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
strong { font-weight: 700; }

:where(a, button, [tabindex]):focus-visible {
    outline: 3px solid var(--g-500);
    outline-offset: 3px;
    border-radius: 8px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--pad);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 9999;
    background: var(--g-600);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 12px 12px;
    font-weight: 700;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* =========================================================
   BUTTONS
========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
                border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn i { transition: transform 0.25s var(--ease); }
.btn:active { transform: scale(0.97); }

.btn--primary {
    background: var(--g-600);
    color: #fff;
    box-shadow: 0 12px 26px -12px rgba(43, 110, 47, 0.65);
}
.btn--ghost {
    background: #fff;
    color: var(--g-900);
    border-color: var(--line);
}
.btn--light {
    background: #fff;
    color: var(--g-900);
}
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 0.92rem; }

@media (hover: hover) and (pointer: fine) {
    .btn--primary:hover { background: var(--g-700); transform: translateY(-2px); box-shadow: 0 18px 30px -12px rgba(43, 110, 47, 0.7); }
    .btn--ghost:hover { border-color: var(--g-600); color: var(--g-700); transform: translateY(-2px); }
    .btn--light:hover { background: var(--accent); transform: translateY(-2px); }
    .btn:hover i { transform: translateX(3px); }
}

/* =========================================================
   HEADER
========================================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding-top: var(--safe-top);
}
.header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255, 255, 255, 0.84);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.header.is-scrolled::before {
    border-color: var(--line);
    box-shadow: 0 8px 28px -16px rgba(15, 43, 29, 0.25);
}
body.menu-open .header::before { background: #fff; }

.header__inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
    min-width: 0;
}
.logo__mark {
    position: relative;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, var(--g-800), var(--g-600));
    color: #fff;
    font-family: var(--ff-head);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.03em;
    box-shadow: 0 8px 18px -8px rgba(30, 70, 32, 0.6);
}
.logo__mark::after {
    content: "";
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
}
.logo__text { min-width: 0; }
.logo__text strong {
    display: block;
    font-family: var(--ff-head);
    font-weight: 800;
    font-size: 1.12rem;
    line-height: 1.15;
    color: var(--g-900);
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.logo__text small {
    display: block;
    font-size: 0.74rem;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
}

.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--ink);
    transition: color 0.2s, background-color 0.2s;
}
.nav__link:hover,
.nav__link.is-active { color: var(--g-700); background: var(--g-100); }
.nav__extra { display: none; }

.header__phone {
    display: none;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.94rem;
    color: var(--g-900);
    white-space: nowrap;
}
.header__phone i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--g-100);
    color: var(--g-600);
    font-size: 0.85rem;
}

.burger {
    display: none;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 14px;
    border: 1.5px solid var(--line);
    background: #fff;
    align-items: center;
    justify-content: center;
    color: var(--g-900);
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s, border-color 0.2s;
}
.burger__icon {
    width: 20px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.burger__icon span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger__icon span:nth-child(2) { width: 70%; margin-left: auto; }
.burger[aria-expanded="true"] { background: var(--g-100); border-color: var(--g-600); color: var(--g-700); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 1180px) {
    .header__phone { display: inline-flex; }
}

/* ---------- Mobile navigation ---------- */
@media (max-width: 960px) {
    :root { --header-h: 66px; }

    .burger { display: inline-flex; }
    .header__cta { display: none; }

    .nav {
        position: fixed;
        top: calc(var(--header-h) + var(--safe-top));
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99;
        background: #fff;
        display: flex;
        flex-direction: column;
        gap: 28px;
        padding: 12px var(--pad) calc(24px + var(--safe-bottom));
        overflow-y: auto;
        overscroll-behavior: contain;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
    }
    .nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    }

    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav__list li { border-bottom: 1px solid var(--line); }
    .nav__link {
        width: 100%;
        min-height: 66px;
        padding: 0 4px;
        border-radius: 0;
        justify-content: space-between;
        font-family: var(--ff-head);
        font-weight: 800;
        font-size: clamp(1.35rem, 1rem + 2vw, 1.7rem);
        letter-spacing: -0.02em;
        color: var(--g-900);
        background: none !important;
    }
    .nav__link::after {
        content: "→";
        font-size: 1.2rem;
        color: var(--g-600);
        transition: transform 0.25s var(--ease);
    }
    .nav__link.is-active { color: var(--g-600); }
    .nav__link.is-active::after { transform: translateX(4px); }

    .nav.is-open .nav__list li { animation: navIn 0.45s var(--ease) both; }
    .nav.is-open .nav__list li:nth-child(2) { animation-delay: 0.04s; }
    .nav.is-open .nav__list li:nth-child(3) { animation-delay: 0.08s; }
    .nav.is-open .nav__list li:nth-child(4) { animation-delay: 0.12s; }
    .nav.is-open .nav__list li:nth-child(5) { animation-delay: 0.16s; }

    .nav__extra {
        display: grid;
        gap: 10px;
        margin-top: auto;
    }
    .nav__contact {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 16px;
        border-radius: var(--r-md);
        background: var(--bg-soft);
        border: 1px solid var(--line);
        font-weight: 600;
        color: var(--g-900);
    }
    .nav__contact i {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        background: #fff;
        color: var(--g-600);
        box-shadow: var(--sh-sm);
    }
    .nav__contact small { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 500; }
    .nav__extra .btn { width: 100%; margin-top: 6px; }
}

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

@media (max-width: 380px) {
    .logo__mark { width: 40px; height: 40px; font-size: 0.9rem; }
    .logo__text strong { font-size: 1rem; }
    .logo__text small { font-size: 0.68rem; }
}

/* =========================================================
   HERO
========================================================= */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 6vw, 80px) 0 clamp(56px, 8vw, 104px);
    background:
        radial-gradient(900px 480px at 88% -5%, rgba(207, 227, 207, 0.85), transparent 62%),
        linear-gradient(180deg, var(--bg-soft), #fff);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(43, 110, 47, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43, 110, 47, 0.07) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 72% 30%, #000 10%, transparent 65%);
    mask-image: radial-gradient(ellipse at 72% 30%, #000 10%, transparent 65%);
    pointer-events: none;
}

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--sh-sm);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--g-700);
    margin-bottom: 22px;
}
.pill__dot {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--g-500);
}
.pill__dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--g-500);
    animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
    from { opacity: 0.8; transform: scale(0.6); }
    to { opacity: 0; transform: scale(1.6); }
}

.hero h1 {
    font-family: var(--ff-head);
    font-size: clamp(2rem, 1.25rem + 3.4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--g-900);
    margin-bottom: 22px;
    text-wrap: balance;
}
.hl {
    color: var(--g-600);
    background: linear-gradient(transparent 64%, rgba(240, 180, 60, 0.38) 64%, rgba(240, 180, 60, 0.38) 92%, transparent 92%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.hero__lead {
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem);
    color: var(--ink-2);
    max-width: 560px;
    margin-bottom: 32px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px dashed var(--g-200);
}
.hero__facts li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--g-900);
}
.hero__facts i { color: var(--g-500); }

.hero__media { position: relative; }
.hero__media::before {
    content: "";
    position: absolute;
    inset: 28px -20px -20px 28px;
    border-radius: var(--r-xl);
    background: repeating-linear-gradient(-45deg, var(--g-600) 0 12px, var(--g-700) 12px 24px);
    opacity: 0.95;
}
.hero__frame {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: #d9e6d4;
    border: 6px solid #fff;
    box-shadow: var(--sh-lg);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--sh-md);
    animation: float 6s ease-in-out infinite;
}
.float-card i {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--g-100);
    color: var(--g-600);
    font-size: 1.05rem;
}
.float-card strong { display: block; font-family: var(--ff-head); font-size: 0.95rem; color: var(--g-900); line-height: 1.2; }
.float-card small { display: block; font-size: 0.76rem; color: var(--muted); }
.float-card--a { left: -28px; bottom: 36px; }
.float-card--b { right: -14px; top: 28px; animation-delay: -3s; }
.float-card--b i { background: var(--accent); color: var(--g-900); }

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

@media (max-width: 960px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__content { max-width: 680px; }
    .hero__media { max-width: 640px; width: 100%; margin-inline: auto; }
}

@media (max-width: 600px) {
    .hero { padding-top: 22px; }
    .pill { margin-bottom: 18px; font-size: 0.76rem; }
    .hero__lead { margin-bottom: 26px; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; }
    .hero__facts { flex-direction: column; gap: 10px; margin-top: 26px; }
    .hero__media::before { inset: 16px -8px -10px 16px; border-radius: var(--r-lg); }
    .hero__frame { border-width: 4px; border-radius: var(--r-lg); }
    .float-card { padding: 9px 12px 9px 9px; gap: 10px; border-radius: 14px; }
    .float-card i { width: 34px; height: 34px; font-size: 0.9rem; border-radius: 10px; }
    .float-card strong { font-size: 0.84rem; }
    .float-card small { font-size: 0.7rem; }
    .float-card--a { left: 10px; bottom: -18px; }
    .float-card--b { right: 8px; top: 12px; }
}
@media (max-width: 360px) {
    .float-card--b { display: none; }
}

/* =========================================================
   MARQUEE
========================================================= */
.marquee {
    background: var(--g-900);
    color: #fff;
    overflow: hidden;
    padding: 18px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee 45s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; }
.marquee__group li {
    display: flex;
    align-items: center;
    gap: 36px;
    padding-right: 36px;
    font-family: var(--ff-head);
    font-weight: 700;
    font-size: clamp(0.98rem, 0.9rem + 0.5vw, 1.25rem);
    white-space: nowrap;
}
.marquee__group li::after { content: "✦"; color: var(--accent); font-size: 0.85em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SECTIONS – shared
========================================================= */
.section { padding: clamp(60px, 9vw, 116px) 0; }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4.5vw, 52px); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head p {
    margin-top: 16px;
    color: var(--muted);
    font-size: clamp(0.98rem, 0.94rem + 0.2vw, 1.08rem);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--g-600);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
}

.h2 {
    font-family: var(--ff-head);
    font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--g-900);
    text-wrap: balance;
}

/* Reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal {
        opacity: 0;
        transform: translateY(26px);
        transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
        transition-delay: var(--d, 0s);
    }
    .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* =========================================================
   BENEFITS
========================================================= */
.benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.benefit {
    position: relative;
    padding: 34px 28px 30px;
    border-radius: var(--r-lg);
    background: var(--bg-soft);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: background-color 0.3s, box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.benefit__num {
    position: absolute;
    top: 14px;
    right: 20px;
    font-family: var(--ff-head);
    font-weight: 800;
    font-size: 3.6rem;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--g-200);
    user-select: none;
}
.benefit__icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--g-600);
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 24px;
    box-shadow: 0 12px 22px -10px rgba(43, 110, 47, 0.7);
}
.benefit h3 {
    font-family: var(--ff-head);
    font-size: 1.32rem;
    font-weight: 800;
    color: var(--g-900);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.benefit p { color: var(--ink-2); font-size: 0.95rem; }

@media (hover: hover) and (pointer: fine) {
    .benefit:hover { background: #fff; box-shadow: var(--sh-md); transform: translateY(-4px); }
}

@media (max-width: 900px) {
    .benefits__grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 600px) {
    .benefit {
        display: grid;
        grid-template-columns: 52px 1fr;
        column-gap: 16px;
        padding: 22px 20px;
    }
    .benefit__icon { width: 52px; height: 52px; border-radius: 15px; font-size: 1.2rem; margin: 0; grid-row: span 2; }
    .benefit h3 { font-size: 1.14rem; margin-bottom: 6px; padding-right: 40px; }
    .benefit p { font-size: 0.92rem; }
    .benefit__num { font-size: 2.4rem; top: 12px; right: 14px; }
}

/* =========================================================
   PROJECTS
========================================================= */
.projects { background: var(--g-50); position: relative; }

.projects__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 40px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.projects__top .section-head { margin-bottom: 0; }

.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip__count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--g-100);
    color: var(--g-700);
}
.chip:hover { border-color: var(--g-600); }
.chip.is-active { background: var(--g-900); border-color: var(--g-900); color: #fff; }
.chip.is-active .chip__count { background: var(--accent); color: var(--g-900); }

.projects__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.project {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.project[hidden] { display: none !important; }
.project.is-entering { animation: cardIn 0.5s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } }

.project__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #cbdcd0;
    cursor: zoom-in;
    -webkit-tap-highlight-color: transparent;
}
.project__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}
.project__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 43, 29, 0.35), transparent 40%);
    pointer-events: none;
}
.project__tag {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 1;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(15, 43, 29, 0.78);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.project__zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 1;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--g-700);
    box-shadow: var(--sh-md);
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s, transform 0.3s var(--ease);
}

.project__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px 22px;
}
.project__year {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--g-600);
}
.project h3 {
    font-family: var(--ff-head);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--g-900);
    letter-spacing: -0.01em;
}
.project p { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

@media (hover: hover) and (pointer: fine) {
    .project:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
    .project:hover .project__media img { transform: scale(1.06); }
    .project:hover .project__zoom { opacity: 1; transform: none; }
}
@media (hover: none) {
    .project__zoom { opacity: 1; transform: none; width: 36px; height: 36px; font-size: 0.85rem; }
}

.projects__nav { display: none; }

.projects__more {
    margin-top: clamp(28px, 4vw, 44px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px 28px;
    flex-wrap: wrap;
    padding: 22px 26px;
    border-radius: var(--r-lg);
    background: #fff;
    border: 1px dashed var(--g-200);
}
.projects__more p {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    color: var(--g-900);
}
.projects__more p i {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: var(--g-900);
}

@media (max-width: 1199px) {
    .projects__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
    .projects__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile carousel */
@media (max-width: 767px) {
    .projects__top { margin-bottom: 20px; }

    .filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        width: calc(100% + var(--pad) * 2);
        margin-inline: calc(var(--pad) * -1);
        padding: 2px var(--pad);
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .filters::-webkit-scrollbar { display: none; }

    .projects__grid {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--pad);
        margin-inline: calc(var(--pad) * -1);
        padding: 4px var(--pad) 14px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }
    .projects__grid::-webkit-scrollbar { display: none; }

    .project {
        flex: 0 0 min(84%, 340px);
        scroll-snap-align: start;
    }
    .project__body { padding: 16px 18px 20px; }

    .projects__nav {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-top: 8px;
    }
    .projects__progress {
        position: relative;
        flex: 1;
        height: 4px;
        border-radius: 4px;
        background: var(--g-200);
        overflow: hidden;
    }
    .projects__progress span {
        position: absolute;
        top: 0;
        bottom: 0;
        left: var(--left, 0%);
        width: var(--width, 30%);
        border-radius: 4px;
        background: var(--g-600);
        transition: left 0.15s linear, width 0.2s;
    }
    .carousel-btn {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: #fff;
        border: 1.5px solid var(--line);
        color: var(--g-900);
        -webkit-tap-highlight-color: transparent;
        transition: opacity 0.2s, background-color 0.2s;
    }
    .carousel-btn:active { background: var(--g-100); }
    .carousel-btn:disabled { opacity: 0.35; cursor: default; }

    .projects__more { flex-direction: column; align-items: stretch; padding: 20px; }
    .projects__more .btn { width: 100%; }
}

/* =========================================================
   PROCESS
========================================================= */
.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.steps::before {
    content: "";
    position: absolute;
    top: 55px;
    left: 6%;
    right: 6%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--g-200) 0 10px, transparent 10px 18px);
}
.step {
    position: relative;
    padding: 30px 24px 28px;
    border-radius: var(--r-lg);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--sh-sm);
}
.step__num {
    position: relative;
    z-index: 1;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    background: var(--g-100);
    color: var(--g-700);
    font-family: var(--ff-head);
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 0 0 6px #fff;
}
.step:last-child .step__num { background: var(--g-600); color: #fff; }
.step h3 {
    font-family: var(--ff-head);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--g-900);
    margin-bottom: 8px;
}
.step p { font-size: 0.92rem; color: var(--muted); }

@media (max-width: 960px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
    .steps::before { display: none; }
}
@media (max-width: 600px) {
    .steps { grid-template-columns: 1fr; gap: 0; }
    .steps::before {
        display: block;
        top: 26px;
        bottom: 26px;
        left: 24px;
        right: auto;
        width: 2px;
        height: auto;
        background: repeating-linear-gradient(180deg, var(--g-200) 0 8px, transparent 8px 14px);
    }
    .step {
        padding: 0 0 30px 72px;
        background: none;
        border: 0;
        box-shadow: none;
        border-radius: 0;
    }
    .step:last-child { padding-bottom: 0; }
    .step__num { position: absolute; left: 0; top: 0; margin: 0; }
    .step h3 { padding-top: 11px; }
}

/* =========================================================
   TECH DOZOR
========================================================= */
.tech { padding-top: 0; }
.tech__card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(28px, 4vw, 60px);
    align-items: center;
    padding: clamp(28px, 5.5vw, 68px);
    border-radius: var(--r-xl);
    background: var(--g-900);
    color: rgba(232, 241, 234, 0.82);
    isolation: isolate;
}
.tech__card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 36px 36px;
}
.tech__card::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 520px;
    height: 520px;
    right: -180px;
    top: -200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(58, 138, 63, 0.55), transparent 65%);
}
.tech .eyebrow { color: var(--accent); }
.tech .h2 { color: #fff; }
.tech__icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--accent);
    font-size: 1.5rem;
}
.tech__text { margin-top: 18px; font-size: clamp(0.96rem, 0.93rem + 0.2vw, 1.05rem); }
.tech__quote {
    margin-top: 26px;
    padding: 18px 20px;
    border-left: 4px solid var(--accent);
    border-radius: 0 16px 16px 0;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-family: var(--ff-head);
    font-weight: 700;
    font-size: 1.05rem;
}
.tech__content .btn { margin-top: 28px; }

.tech__list { display: grid; gap: 12px; }
.tech__list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.tech__list i {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--g-600);
    color: #fff;
    font-size: 0.9rem;
}
.tech__list strong { display: block; color: #fff; font-family: var(--ff-head); font-size: 1rem; margin-bottom: 2px; }
.tech__list span { font-size: 0.88rem; }

@media (max-width: 900px) {
    .tech__card { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .tech .container { padding-inline: 10px; }
    .tech__card { padding: 30px 20px; border-radius: var(--r-lg); }
    .tech__content .btn { width: 100%; }
    .tech__list li { padding: 14px; }
}

/* =========================================================
   SERVICES (SEO)
========================================================= */
.services { background: #fff; border-top: 1px solid var(--line); }
.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.service {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: var(--r-md);
    background: var(--bg-soft);
    border: 1px solid var(--line);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.35;
    color: var(--g-900);
    transition: border-color 0.25s, background-color 0.25s;
}
.service i {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--g-600);
    box-shadow: var(--sh-sm);
    transition: background-color 0.25s, color 0.25s;
}
@media (hover: hover) and (pointer: fine) {
    .service:hover { border-color: var(--g-200); background: #fff; }
    .service:hover i { background: var(--g-600); color: #fff; }
}
.services__outro {
    margin-top: clamp(24px, 4vw, 40px);
    max-width: 820px;
    color: var(--muted);
}

@media (max-width: 1024px) {
    .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .services__grid { grid-template-columns: 1fr; gap: 10px; }
    .service { padding: 14px; font-size: 0.93rem; }
    .service i { width: 40px; height: 40px; }
}

/* =========================================================
   CONTACT — RD STAV RPK
   Styly pro sekci .contact-v2 (HTML bez inline CSS)
========================================================= */
.contact-v2 {
    --cv-green: var(--g-900);
    --cv-accent: var(--g-200);
    --cv-text: var(--ink);
    --cv-border: var(--line);

    position: relative;
    padding: clamp(60px, 8vw, 96px) 0 clamp(70px, 8.5vw, 104px);
    background: var(--g-50);
    overflow: hidden;
}

.contact-v2 *,
.contact-v2 *::before,
.contact-v2 *::after {
    box-sizing: border-box;
}

.contact-v2__container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: var(--pad);
}

.contact-v2__header {
    max-width: 650px;
    margin-bottom: clamp(28px, 4vw, 42px);
}

.contact-v2__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--g-600);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.contact-v2__eyebrow span {
    width: 26px;
    height: 2px;
    flex: 0 0 26px;
    background: var(--accent);
}

.contact-v2__header h2 {
    margin: 0 0 14px;
    color: var(--g-900);
    font-family: var(--ff-head);
    font-size: clamp(2rem, 1.35rem + 2.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.contact-v2__header p {
    max-width: 540px;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}

.contact-v2__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 28px);
    align-items: stretch;
}

.contact-v2__info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: clamp(26px, 3.2vw, 38px);
    color: #fff;
    background: var(--g-900);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-md);
}

.contact-v2__main { width: 100%; }

.contact-v2__label {
    display: inline-block;
    margin-bottom: 17px;
    color: var(--g-200);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.contact-v2__intro h3 {
    max-width: 370px;
    margin: 0 0 12px;
    color: #fff;
    font-family: var(--ff-head);
    font-size: clamp(1.55rem, 1.2rem + 1.1vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.contact-v2__intro p {
    max-width: 420px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    line-height: 1.8;
}

.contact-v2__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.contact-v2__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 83px;
    padding: 15px;
    color: var(--ink);
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-sm);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
                border-color 0.25s var(--ease);
}

.contact-v2__item--address { grid-column: 1 / -1; }

.contact-v2__icon {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--g-700);
    background: var(--g-100);
    border-radius: 12px;
    font-size: 1rem;
}

.contact-v2__item-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.contact-v2__item-text small {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.contact-v2__item-text strong {
    color: var(--g-900);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.contact-v2__arrow {
    flex: 0 0 auto;
    color: #9aa79c;
    font-size: 0.72rem;
    transition: color 0.2s, transform 0.2s var(--ease);
}

.contact-v2__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.contact-v2__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: color 0.25s var(--ease), background-color 0.25s var(--ease),
                border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.contact-v2__btn--primary {
    color: var(--g-900);
    background: var(--g-200);
}

.contact-v2__btn--outline {
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-v2__bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-v2__bottom-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.contact-v2__bottom-item > i {
    margin-top: 3px;
    color: var(--accent);
    font-size: 1rem;
}

.contact-v2__bottom-item div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-v2__bottom-item small {
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.68rem;
}

.contact-v2__bottom-item strong {
    color: #fff;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.45;
}

.contact-v2__map {
    position: relative;
    min-width: 0;
    min-height: 520px;
    overflow: hidden;
    background: #e7ebe5;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-md);
}

.contact-v2__map iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-v2__map-link {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 19px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--r-sm);
    box-shadow: var(--sh-md);
    text-decoration: none;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.contact-v2__map-pin {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #fff;
    background: var(--g-700);
    border-radius: 12px;
    font-size: 1.05rem;
}

.contact-v2__map-link > span:nth-child(2) {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.contact-v2__map-link small {
    color: var(--muted);
    font-size: 0.62rem;
    letter-spacing: 0.07em;
}

.contact-v2__map-link strong {
    color: var(--g-900);
    font-size: 0.84rem;
    font-weight: 800;
}

.contact-v2__map-arrow {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.8rem;
}

@media (hover: hover) and (pointer: fine) {
    .contact-v2__item:hover {
        transform: translateY(-3px);
        border-color: var(--g-200);
        box-shadow: 0 9px 22px rgba(0, 0, 0, 0.13);
    }

    .contact-v2__item:hover .contact-v2__arrow {
        color: var(--g-700);
        transform: translate(2px, -2px);
    }

    .contact-v2__btn--primary:hover {
        background: #fff;
        transform: translateY(-2px);
    }

    .contact-v2__btn--outline:hover {
        color: var(--g-900);
        background: #fff;
        border-color: #fff;
    }

    .contact-v2__map-link:hover {
        transform: translateY(-3px);
        box-shadow: var(--sh-lg);
    }
}

.contact-v2 :where(a, button):focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 960px) {
    .contact-v2__layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .contact-v2__info { padding: 34px; }
    .contact-v2__map { min-height: 390px; }
    .contact-v2__intro h3 { max-width: 500px; }
}

@media (max-width: 600px) {
    .contact-v2__header { margin-bottom: 27px; }
    .contact-v2__header p { font-size: 0.9rem; }
    .contact-v2__info { padding: 25px 19px; border-radius: var(--r-md); }
    .contact-v2__intro h3 { font-size: 1.6rem; }
    .contact-v2__intro p { font-size: 0.82rem; }

    .contact-v2__items {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 24px;
    }

    .contact-v2__item {
        min-height: 75px;
        padding: 13px;
    }

    .contact-v2__item--address { grid-column: auto; }
    .contact-v2__item-text strong { font-size: 0.8rem; }

    .contact-v2__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .contact-v2__btn {
        min-height: 46px;
        padding-inline: 10px;
        font-size: 0.72rem;
    }

    .contact-v2__bottom {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 26px;
        padding-top: 22px;
    }

    .contact-v2__map {
        min-height: 340px;
        border-radius: var(--r-md);
    }

    .contact-v2__map-link {
        right: 10px;
        bottom: 10px;
        left: 10px;
        padding: 13px;
    }

    .contact-v2__map-link strong { font-size: 0.78rem; }
}

@media (max-width: 360px) {
    .contact-v2__actions { grid-template-columns: 1fr; }
    .contact-v2__info { padding: 22px 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .contact-v2 *,
    .contact-v2 *::before,
    .contact-v2 *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* =========================================================
   FOOTER
========================================================= */
.footer {
    background: var(--g-950);
    color: rgba(255, 255, 255, 0.66);
    padding: clamp(48px, 7vw, 72px) 0 calc(28px + var(--safe-bottom));
    font-size: 0.92rem;
}
.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
}
.footer .logo__text strong { color: #fff; }
.footer .logo__text small { color: rgba(255, 255, 255, 0.55); }
.footer__claim { margin-top: 18px; max-width: 380px; }
.footer h3 {
    font-family: var(--ff-head);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.footer__links { display: grid; gap: 4px; }
.footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.2s;
}
.footer__links a:hover { color: #fff; }
.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 10px 24px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .footer__top { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: span 2; }
}
@media (max-width: 767px) {
    .footer { padding-bottom: calc(110px + var(--safe-bottom)); }
}
@media (max-width: 420px) {
    .footer__top { grid-template-columns: 1fr; gap: 28px; }
    .footer__brand { grid-column: auto; }
    .footer__bottom { flex-direction: column; }
}

/* =========================================================
   MOBILE ACTION BAR
========================================================= */
.mobile-bar { display: none; }

@media (max-width: 767px) {
    .mobile-bar {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(10px + var(--safe-bottom));
        z-index: 90;
        display: grid;
        grid-template-columns: 1fr 1.35fr;
        gap: 8px;
        padding: 8px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.9);
        -webkit-backdrop-filter: saturate(180%) blur(16px);
        backdrop-filter: saturate(180%) blur(16px);
        border: 1px solid var(--line);
        box-shadow: 0 20px 40px -16px rgba(15, 43, 29, 0.45);
        transform: translateY(calc(100% + 40px));
        transition: transform 0.45s var(--ease);
    }
    .mobile-bar.is-visible { transform: none; }
    body.menu-open .mobile-bar,
    body.lb-open .mobile-bar { transform: translateY(calc(100% + 40px)); }

    .mobile-bar a {
        min-height: 50px;
        border-radius: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-weight: 700;
        font-size: 0.95rem;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.15s;
    }
    .mobile-bar a:active { transform: scale(0.96); }
    .mobile-bar__call { background: var(--g-100); color: var(--g-800); }
    .mobile-bar__mail { background: var(--g-600); color: #fff; }
}

/* =========================================================
   LIGHTBOX
========================================================= */
.lightbox {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(6, 18, 11, 0.94);
    color: #fff;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] {
    display: flex;
    flex-direction: column;
    animation: lbIn 0.3s var(--ease);
}
@keyframes lbIn { from { opacity: 0; } }

.lightbox__close {
    position: absolute;
    top: calc(14px + var(--safe-top));
    right: 14px;
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.15rem;
    transition: background-color 0.2s;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.24); }

.lightbox__stage {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(76px + var(--safe-top)) clamp(12px, 5vw, 80px) 12px;
}
.lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 260px);
    max-height: calc(100dvh - 260px);
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
    touch-action: pan-y;
}
.lightbox__img.is-switching { animation: imgIn 0.35s var(--ease); }
@keyframes imgIn { from { opacity: 0; transform: scale(0.97); } }

.lightbox__caption {
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
    padding: 8px var(--pad) calc(22px + var(--safe-bottom));
    text-align: center;
}
.lightbox__caption h3 {
    font-family: var(--ff-head);
    font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
    font-weight: 800;
    margin-bottom: 4px;
}
.lightbox__caption p { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }
.lightbox__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 16px;
}
.lightbox__arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transition: background-color 0.2s;
}
.lightbox__arrow:hover { background: var(--g-600); }
.lightbox__count {
    min-width: 64px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.8);
}

/* =========================================================
   REDUCED MOTION
========================================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
    .marquee__group[aria-hidden="true"] { display: none; }
}