:root {
    --bg: #06141f;
    --bg-soft: #0c2335;
    --surface: rgba(12, 35, 53, 0.72);
    --surface-solid: #0f2a3f;
    --paper: #f4f8fb;
    --text: #eaf4ff;
    --muted: #a6bfd5;
    --accent: #ff7a18;
    --accent-2: #ffd04c;
    --line: rgba(162, 197, 226, 0.26);
    --ok: #5ad493;
    --err: #ff6b6b;
    --shadow: 0 22px 60px rgba(2, 8, 16, 0.38);
    --radius: 22px;
    --container: 1240px;
    --tr: 0.28s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    font-size: clamp(16px, 0.9vw, 18px);
    background: #06141f;
    overscroll-behavior-y: none;
    overflow-x: clip;
}
body {
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    position: relative;
    isolation: isolate;
    min-width: 320px;
    background-color: #06141f;
    background:
        radial-gradient(1300px 760px at -12% 8%, rgba(255, 142, 44, 0.24), transparent 60%),
        radial-gradient(980px 620px at 108% 22%, rgba(133, 220, 255, 0.2), transparent 64%),
        radial-gradient(980px 620px at 20% 54%, rgba(28, 106, 174, 0.28), transparent 68%),
        radial-gradient(980px 620px at 88% 76%, rgba(16, 86, 149, 0.27), transparent 70%),
        radial-gradient(1180px 680px at 36% 98%, rgba(7, 64, 111, 0.34), transparent 74%),
        linear-gradient(180deg, #030a14 0%, #071a2d 22%, #0a2740 44%, #08233a 66%, #0a2b46 84%, #08233b 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(920px 360px at 42% 14%, rgba(255, 255, 255, 0.07), transparent 72%),
        radial-gradient(880px 340px at 62% 48%, rgba(150, 222, 255, 0.07), transparent 74%),
        radial-gradient(900px 340px at 28% 84%, rgba(123, 194, 248, 0.06), transparent 76%),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.02) 0 1px,
            transparent 1px 110px
        );
    mix-blend-mode: soft-light;
    opacity: 0.46;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }

.container {
    width: min(var(--container), 100% - 2.2rem);
    margin-inline: auto;
}

.section {
    padding: clamp(3.4rem, 6.2vw, 6.1rem) 0;
}

.skip-link {
    position: absolute;
    left: 10px;
    top: -80px;
    background: #fff;
    color: #0b2234;
    padding: 0.55rem 0.8rem;
    border-radius: 10px;
    z-index: 9999;
}
.skip-link:focus-visible { top: 10px; }

:focus-visible {
    outline: 2px solid #9fd4ff;
    outline-offset: 3px;
}

.eyebrow {
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffcf78;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1, h2, h3 {
    font-family: "Unbounded", "Manrope", sans-serif;
    letter-spacing: -0.03em;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 90;
    transition: background var(--tr), box-shadow var(--tr), border-color var(--tr);
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(6, 20, 31, 0.86);
    backdrop-filter: blur(8px);
    border-bottom-color: var(--line);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

/* Firefox: backdrop-filter может давать светлый flash при инерционном overscroll */
@supports (-moz-appearance: none) {
    .site-header {
        background: rgba(6, 20, 31, 0.54);
    }

    .site-header.scrolled {
        background: rgba(6, 20, 31, 0.96);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
}
.brand img {
    width: clamp(192px, 14vw, 236px);
    height: auto;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}
.desktop-nav a {
    position: relative;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--tr);
}
.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.38rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(120deg, #8dcfff, #ffd37e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.24s ease;
}
.desktop-nav a:hover { color: #fff; }
.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after { transform: scaleX(1); }

.header-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.phone {
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: transform var(--tr), box-shadow var(--tr), background var(--tr), color var(--tr);
    padding: 0.82rem 1.35rem;
    font-size: 0.92rem;
    font-weight: 700;
}
.btn:hover { transform: translateY(-1px); }

.btn-accent {
    background: linear-gradient(120deg, var(--accent), #ff9a2a 52%, var(--accent-2));
    color: #0b1d2c;
    box-shadow: 0 10px 26px rgba(255, 122, 24, 0.35);
}

.btn-light {
    background: #f7fbff;
    color: #0a2234;
}

.btn-ghost {
    border: 1px solid var(--line);
    color: #d5e6f6;
    background: rgba(9, 29, 44, 0.55);
}

.menu-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: rgba(9, 29, 44, 0.8);
    border-radius: 12px;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 11px;
}
.menu-toggle span {
    height: 2px;
    border-radius: 99px;
    background: #fff;
    transition: transform var(--tr), opacity var(--tr);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
}
.mobile-menu a {
    color: #deecfa;
    font-weight: 600;
}
.mobile-menu .btn {
    width: 100%;
    justify-content: center;
}

.hero {
    position: relative;
    min-height: 100svh;
    padding-top: 8rem;
    display: flex;
    align-items: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
    filter: saturate(1.1) contrast(1.08);
    transform: scale(1);
    clip-path: inset(0 round 0);
    transition:
        opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        filter 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        clip-path 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero:not(.hero-intro-ready) .hero-bg video {
    opacity: 0;
    transform: scale(1.14);
    filter: saturate(1.32) contrast(1.14) blur(13px);
    clip-path: inset(14% 8% 14% 8% round 24px);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 13, 22, 0.89) 0%, rgba(4, 13, 22, 0.75) 36%, rgba(4, 13, 22, 0.44) 100%),
        radial-gradient(700px 350px at 85% 22%, rgba(255, 122, 24, 0.2), transparent 70%);
}
.hero-overlay::after {
    content: "";
    position: absolute;
    inset: -18% -42%;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-56%) skewX(-16deg);
    background: linear-gradient(
        112deg,
        transparent 36%,
        rgba(168, 223, 255, 0.42) 50%,
        transparent 64%
    );
    mix-blend-mode: screen;
}
.hero.hero-intro-ready .hero-overlay::after {
    animation: hero-overlay-sweep 1.45s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(1.2rem, 3vw, 2.8rem);
    align-items: start;
}

.hero-copy h1 {
    font-size: clamp(2rem, 4.8vw, 4.1rem);
    line-height: 1.03;
    margin-bottom: 1rem;
}
.lead {
    color: #c4dbef;
    font-size: clamp(1rem, 1.2vw, 1.22rem);
    max-width: 60ch;
    line-height: 1.58;
}

.hero-actions {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}
.hero-points {
    margin-top: 1.3rem;
    list-style: none;
    display: grid;
    gap: 0.7rem;
}
.hero-points li {
    position: relative;
    padding-left: 1.2rem;
    color: #bfd4e7;
}
.hero-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.52rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: linear-gradient(140deg, #ff9b31, #ffd36e);
}

.hero-card {
    background: linear-gradient(145deg, rgba(14, 40, 59, 0.9), rgba(9, 29, 44, 0.76));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.55rem;
    box-shadow: var(--shadow);
}
.hero-card h2 {
    font-size: clamp(1.85rem, 2.6vw, 2.45rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 0.9rem;
}
.hero-card p {
    color: var(--muted);
    font-size: clamp(1.08rem, 1.2vw, 1.2rem);
    line-height: 1.55;
    margin-bottom: 1.2rem;
}
.hero-card .btn {
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
}
.hero-metrics {
    margin-top: 1.3rem;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, 1fr);
}
.hero-metrics div {
    padding: 0.95rem;
    border-radius: 14px;
    background: rgba(9, 28, 42, 0.68);
    border: 1px solid var(--line);
}
.hero-metrics strong {
    display: flex;
    align-items: baseline;
    gap: 0.16em;
    margin-bottom: 0.28rem;
    font-size: clamp(1.95rem, 2.6vw, 2.6rem);
    line-height: 1;
    font-variant-numeric: tabular-nums lining-nums;
}
.hero-metrics .metric-num {
    font-size: 1em;
    line-height: 1;
    letter-spacing: -0.014em;
}
.hero-metrics .metric-sign {
    display: inline-block;
    font-size: 0.72em;
    font-weight: 800;
    line-height: 1;
    margin-left: 0.03em;
    transform: translateY(-0.03em);
    color: #dbe9f7;
}
.hero-metrics > div > span {
    color: #b5ccdf;
    font-size: 0.93rem;
    line-height: 1.35;
}

.hero-card,
.hero-metrics div,
.service-card,
.case,
.steps li,
.contacts-card,
.contacts-map,
.cta-band-inner {
    transition:
        transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.36s ease,
        border-color 0.3s ease,
        background-color 0.3s ease;
}

.service-card img,
.case img {
    transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
    .hero-card:hover,
    .hero-metrics div:hover,
    .service-card:hover,
    .case:hover,
    .steps li:hover,
    .contacts-card:hover,
    .contacts-map:hover,
    .cta-band-inner:hover {
        transform: translateY(-4px);
        border-color: rgba(190, 230, 255, 0.45);
        box-shadow: 0 20px 42px rgba(2, 10, 20, 0.35);
    }

    .service-card:hover img,
    .case:hover img {
        transform: scale(1.045);
        filter: saturate(1.14) contrast(1.05);
    }
}

.trust-strip {
    position: relative;
    isolation: isolate;
    padding-top: clamp(0.9rem, 2vw, 1.6rem);
    padding-bottom: clamp(1.2rem, 2.8vw, 2.2rem);
    overflow: visible;
}
.trust-strip::before,
.trust-strip::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
    filter: blur(16px);
    opacity: 0.45;
}
.trust-strip::before {
    width: 340px;
    height: 340px;
    top: -140px;
    right: -90px;
    background: radial-gradient(circle, rgba(255, 208, 76, 0.28) 0%, rgba(255, 208, 76, 0) 72%);
    animation: trust-aurora 9.5s ease-in-out infinite;
}
.trust-strip::after {
    width: 300px;
    height: 300px;
    left: -70px;
    bottom: -180px;
    background: radial-gradient(circle, rgba(107, 186, 246, 0.26) 0%, rgba(107, 186, 246, 0) 70%);
    animation: trust-aurora 8.8s ease-in-out infinite reverse;
}
.services {
    padding-top: clamp(1.6rem, 3vw, 2.8rem);
}
.trust-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
}
.trust-grid.slide-deck {
    overflow: visible;
}
.trust-grid article {
    position: relative;
    overflow: hidden;
    z-index: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.2rem;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.trust-grid article::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(112deg, transparent 20%, rgba(177, 218, 247, 0.32) 48%, transparent 76%);
    transform: translateX(-130%);
    opacity: 0;
}
.trust-grid article.in-view::after {
    animation: trust-shine 1.1s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--reveal-delay, 0ms) + 160ms) 1 both;
}
.trust-grid article:hover {
    z-index: 3;
    transform: translateY(-5px);
    border-color: rgba(181, 223, 253, 0.45);
    box-shadow: 0 18px 34px rgba(2, 12, 24, 0.34);
}
.trust-grid h3 {
    font-size: 1.03rem;
    margin-bottom: 0.5rem;
}
.trust-grid p {
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.92rem;
}

.section-head {
    margin-bottom: 1.5rem;
}
.section-head h2 {
    font-size: clamp(1.5rem, 3.1vw, 2.75rem);
    max-width: 22ch;
}

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

.service-card,
.case {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(170deg, rgba(13, 38, 56, 0.74), rgba(8, 25, 38, 0.88));
}
.service-card img,
.case img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.service-card h3,
.case h3 {
    font-size: 1.05rem;
    padding: 1rem 1rem 0.45rem;
}
.service-card p,
.case p {
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.9rem;
    padding: 0 1rem 1rem;
}

.process-wrap {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1.1rem;
    align-items: start;
}
.process-head h2 {
    font-size: clamp(1.5rem, 2.8vw, 2.5rem);
    line-height: 1.08;
    margin-bottom: 1rem;
}

.steps {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}
.steps li {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
}
.steps strong {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 0.9rem;
    background: linear-gradient(145deg, #ff9a2a, #ffd25f);
    color: #10283a;
    font-family: "Unbounded", sans-serif;
}
.steps h3 {
    font-size: 0.94rem;
    margin-bottom: 0.3rem;
}
.steps p {
    color: var(--muted);
    line-height: 1.52;
    font-size: 0.88rem;
}

.cta-band-inner {
    border-radius: 28px;
    border: 1px solid rgba(255, 214, 131, 0.34);
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 208, 76, 0.28), transparent 45%),
        linear-gradient(115deg, #ff8a24 0%, #ffb338 48%, #ffd96b 100%);
    color: #13293a;
    text-align: center;
    padding: clamp(2rem, 5vw, 3.6rem);
    box-shadow: 0 18px 55px rgba(255, 122, 24, 0.26);
}
.cta-band-inner h2 {
    font-size: clamp(1.45rem, 3vw, 2.5rem);
    margin-bottom: 0.75rem;
}
.cta-band-inner p {
    font-weight: 600;
    margin-bottom: 1.05rem;
}
.cta-band {
    padding-top: clamp(2.6rem, 5vw, 4rem);
    padding-bottom: clamp(1.9rem, 4vw, 3rem);
}
.contacts {
    padding-top: clamp(1.4rem, 3.2vw, 2.4rem);
    padding-bottom: clamp(2.1rem, 4.5vw, 3.4rem);
}

.contacts-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 0.9fr 1.1fr;
}
.contacts-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem;
}
.contacts-card h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.3rem, 2.3vw, 2rem);
}
.contacts-card ul {
    list-style: none;
    display: grid;
    gap: 0.72rem;
}
.contacts-card li {
    color: #d7e7f5;
    line-height: 1.45;
}
.contacts-card span {
    color: #9fbbd1;
}

.contacts-map {
    min-height: clamp(270px, 34vw, 360px);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    overflow: hidden;
    background: rgba(8, 25, 39, 0.72);
}
.contacts-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: clamp(270px, 34vw, 360px);
    border: 0;
}
.map-placeholder {
    height: 100%;
    min-height: clamp(270px, 34vw, 360px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #98b5cc;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
}
.map-placeholder__inner {
    width: min(100%, 460px);
    display: grid;
    gap: 0.72rem;
    justify-items: center;
}
.map-placeholder__title {
    font-size: 1rem;
    line-height: 1.4;
}
.map-placeholder__preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(162, 197, 226, 0.35);
}
.map-placeholder.is-error {
    color: #bfd4e6;
}
.map-placeholder__link {
    color: #ffd37e;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 1.4rem 0 1.7rem;
    background: rgba(4, 14, 23, 0.86);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #aac3d7;
    font-size: 0.88rem;
}
.footer-inner a { color: #ffd37e; }

.mobile-sticky-cta {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 1rem;
    z-index: 85;
    display: none;
    width: min(92vw, 420px);
    padding: 0.95rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #0f293c;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 16px 40px rgba(255, 122, 24, 0.34);
}

@supports (width: 1dvw) {
    .site-header,
    .popup-overlay {
        width: 100dvw;
    }

    .mobile-sticky-cta {
        left: 50dvw;
        width: min(92dvw, 420px);
    }
}

.slide-deck {
    overflow: hidden;
    overflow: clip;
}
.slide-deck-item {
    transform-origin: 50% 65%;
    backface-visibility: hidden;
}

.reveal {
    opacity: 0;
    filter: blur(1.4px);
    transform: translate3d(0, 44px, 0) scale(0.985);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
        filter 0.65s ease var(--reveal-delay, 0ms);
    will-change: transform, opacity;
}
.reveal.reveal-left { transform: translate3d(-60px, 22px, 0) scale(0.98); }
.reveal.reveal-right { transform: translate3d(60px, 22px, 0) scale(0.98); }
.reveal.in-view {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
}

@keyframes trust-shine {
    0% {
        opacity: 0;
        transform: translateX(-130%);
    }
    34% {
        opacity: 0.75;
    }
    100% {
        opacity: 0;
        transform: translateX(120%);
    }
}

@keyframes trust-aurora {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -12px, 0) scale(1.08);
    }
}

@keyframes hero-overlay-sweep {
    0% {
        opacity: 0;
        transform: translateX(-56%) skewX(-16deg);
    }
    32% {
        opacity: 0.75;
    }
    100% {
        opacity: 0;
        transform: translateX(56%) skewX(-16deg);
    }
}

.popup-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    background: rgba(5, 14, 23, 0.76);
    backdrop-filter: blur(4px);
    display: grid;
    place-items: center;
    padding: 1rem;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--tr), visibility var(--tr);
}
.popup-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.popup {
    width: min(540px, 100%);
    background: #f7fbff;
    color: #132a3a;
    border-radius: 20px;
    border: 1px solid rgba(9, 31, 49, 0.16);
    box-shadow: 0 22px 65px rgba(6, 14, 22, 0.35);
    transform: translateY(16px) scale(0.98);
    opacity: 0;
    transition: transform var(--tr), opacity var(--tr);
    display: none;
}
.popup-overlay.is-open .popup.is-active {
    display: block;
    opacity: 1;
    transform: none;
}
.popup-header {
    padding: 1rem 1rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(17, 49, 74, 0.12);
}
.popup-header h2 {
    font-size: 1rem;
    font-family: "Unbounded", sans-serif;
    line-height: 1.3;
}
.popup-close {
    border: 0;
    font-size: 1.6rem;
    line-height: 1;
    background: transparent;
    color: #173550;
    cursor: pointer;
}
.popup-body {
    padding: 1rem;
}

.popup--lead {
    width: min(620px, 100%);
    background: #e9eef4;
    color: #1a364f;
    border-radius: 24px;
    border: 1px solid rgba(25, 63, 92, 0.24);
    box-shadow: 0 26px 70px rgba(3, 11, 19, 0.46);
}
.popup--lead .popup-header {
    padding: 1.2rem 1.2rem 0.95rem;
    border-bottom: 1px solid rgba(45, 82, 111, 0.2);
}
.popup--lead .popup-header h2 {
    font-size: clamp(1.5rem, 2.3vw, 2rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}
.popup--lead .popup-close {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.35rem;
    color: #173650;
}
.popup--lead .popup-close:hover {
    background: rgba(26, 56, 80, 0.08);
}
.popup--lead .popup-body {
    padding: 1.05rem 1.2rem 1.2rem;
}
.popup--lead .request-form {
    gap: 0.85rem;
}
.popup--lead .form-group {
    gap: 0.38rem;
}
.popup--lead .form-group label {
    font-size: 1.02rem;
    color: #2a4f69;
    font-weight: 700;
}
.popup--lead .form-group input {
    border: 1px solid #a7bfd4;
    border-radius: 15px;
    padding: 0.92rem 1rem;
    color: #193349;
    background: #edf2f7;
    font-size: 1.02rem;
}
.popup--lead .form-group input::placeholder {
    color: #7f95a9;
}
.popup--lead .form-group input:focus-visible {
    outline: none;
    border-color: #7aa7cc;
    box-shadow: 0 0 0 3px rgba(122, 167, 204, 0.23);
}
.popup--lead .form-group small {
    font-size: 0.82rem;
}
.popup--lead .btn.btn-accent {
    width: 100%;
    justify-content: center;
    min-height: 58px;
    margin-top: 0.2rem;
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 14px 32px rgba(255, 122, 24, 0.38);
}
.popup--lead .lead-disclaimer {
    margin-top: 0.2rem;
    font-size: 0.92rem;
    color: #5a748c;
    line-height: 1.42;
}
.popup--lead .lead-disclaimer a {
    color: #4a6e90;
}
.popup--lead .form-status {
    min-height: 1.4em;
    font-size: 0.9rem;
}

.request-form {
    display: grid;
    gap: 0.8rem;
}
.form-group {
    display: grid;
    gap: 0.32rem;
}
.form-group label {
    font-size: 0.84rem;
    color: #26425a;
    font-weight: 600;
}
.form-group input {
    border: 1px solid #bfd4e5;
    border-radius: 12px;
    padding: 0.72rem 0.8rem;
    color: #153046;
    background: #fff;
}
.form-group small {
    display: none;
    font-size: 0.75rem;
    color: #d94242;
}
.form-group.error input {
    border-color: #ff8d8d;
    background: #fff3f3;
}
.form-group.error small { display: block; }
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.lead-disclaimer {
    font-size: 0.75rem;
    color: #506882;
    line-height: 1.45;
}
.lead-disclaimer a {
    text-decoration: underline;
}
.form-status {
    min-height: 1.3em;
    font-size: 0.82rem;
    font-weight: 600;
}
.form-status.success { color: #228f61; }
.form-status.error { color: #d94242; }

.page-content {
    color: #173047;
    font-size: 0.92rem;
    line-height: 1.55;
    display: grid;
    gap: 0.55rem;
}
.page-content h3 {
    font-size: 0.93rem;
    margin-top: 0.55rem;
}
.page-content a {
    color: #0e5f93;
    text-decoration: underline;
}

body.popup-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .desktop-nav,
    .phone,
    .header-cta .btn { display: none; }

    .menu-toggle { display: flex; }
    .site-header { overflow: visible; }

    .mobile-menu {
        position: absolute;
        top: calc(100% + 0.55rem);
        right: 1rem;
        width: min(325px, calc(100vw - 2rem));
        display: flex;
        gap: 0.45rem;
        padding: 0.88rem;
        border-radius: 18px;
        border: 1px solid rgba(170, 212, 240, 0.34);
        background:
            linear-gradient(155deg, rgba(11, 34, 52, 0.98), rgba(6, 22, 36, 0.96));
        box-shadow:
            0 24px 56px rgba(1, 8, 16, 0.46),
            inset 0 1px 0 rgba(201, 229, 255, 0.14);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform-origin: 100% 0;
        transform: translate3d(24px, -16px, 0) scale(0.92) rotate(-3.2deg);
        clip-path: polygon(100% 0, 100% 0, 100% 100%, 0 100%, 0 18%, 84% 18%);
        filter: blur(1.6px);
        transition:
            opacity 0.32s ease,
            transform 0.46s cubic-bezier(0.22, 1, 0.36, 1),
            clip-path 0.46s cubic-bezier(0.22, 1, 0.36, 1),
            filter 0.34s ease,
            visibility 0s linear 0.46s;
        z-index: 95;
    }

    .mobile-menu a {
        color: #e7f2fc;
        font-weight: 600;
        padding: 0.78rem 0.9rem;
        border-radius: 12px;
        border: 1px solid transparent;
        background: rgba(8, 27, 41, 0.5);
        opacity: 0;
        transform: translate3d(12px, -7px, 0);
        transition:
            transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.26s ease,
            background 0.24s ease,
            border-color 0.24s ease,
            color 0.24s ease;
    }

    .mobile-menu a:not(.btn):hover,
    .mobile-menu a:not(.btn):focus-visible {
        background: rgba(18, 51, 74, 0.7);
        border-color: rgba(170, 212, 240, 0.3);
        color: #ffffff;
        outline: none;
    }

    .mobile-menu .btn {
        margin-top: 0.15rem;
        min-height: 48px;
        background: linear-gradient(120deg, var(--accent), #ff9a2a 52%, var(--accent-2));
        color: #0b1d2c;
        border-color: transparent;
        box-shadow: 0 12px 26px rgba(255, 122, 24, 0.34);
    }

    .mobile-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate3d(0, 0, 0) scale(1) rotate(0);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        filter: blur(0);
        transition-delay: 0s, 0s, 0s, 0s, 0s;
    }

    .mobile-menu.active a {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

    .mobile-menu.active a:nth-child(1) { transition-delay: 70ms; }
    .mobile-menu.active a:nth-child(2) { transition-delay: 110ms; }
    .mobile-menu.active a:nth-child(3) { transition-delay: 150ms; }
    .mobile-menu.active a:nth-child(4) { transition-delay: 190ms; }
    .mobile-menu.active a:nth-child(5) { transition-delay: 230ms; }

    @supports (width: 1dvw) {
        .mobile-menu {
            width: min(325px, calc(100dvw - 2rem));
        }
    }

    .hero-grid,
    .process-wrap,
    .contacts-grid,
    .services-grid,
    .cases-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 6.6rem;
        padding-bottom: 2rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .mobile-sticky-cta { display: block; }
    .hero-metrics { grid-template-columns: 1fr; }
    .hero-metrics .metric-sign {
        font-size: 0.76em;
        transform: translateY(-0.02em);
    }
    .brand img { width: 186px; }
    .site-footer { padding-bottom: 5.5rem; }
    .popup--lead {
        border-radius: 20px;
    }
    .popup--lead .popup-header {
        padding: 1rem 1rem 0.8rem;
    }
    .popup--lead .popup-header h2 {
        font-size: 1.32rem;
    }
    .popup--lead .popup-body {
        padding: 0.9rem 1rem 1rem;
    }
    .popup--lead .form-group label {
        font-size: 0.95rem;
    }
    .popup--lead .form-group input {
        padding: 0.82rem 0.9rem;
        font-size: 0.97rem;
    }
    .popup--lead .btn.btn-accent {
        min-height: 52px;
        font-size: 1.04rem;
    }
    .popup--lead .lead-disclaimer {
        font-size: 0.84rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu,
    .mobile-menu a {
        transition: none !important;
        transform: none !important;
        clip-path: none !important;
        filter: none !important;
    }

    .hero-bg video,
    .hero:not(.hero-intro-ready) .hero-bg video {
        transition: none !important;
        transform: none !important;
        clip-path: none !important;
        filter: saturate(1.1) contrast(1.08) !important;
        opacity: 0.32 !important;
    }

    .hero-overlay::after {
        animation: none !important;
        display: none !important;
    }

    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
