/* Primecam — 2026 refresh */

@font-face {
    font-family: 'Roboto Condensed';
    src: url('../fonts/RobotoCondensed-Regular85d2.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

:root {
    --brand: #0057ff;
    --brand-dark: #0043c4;
    --accent: #1ae5c8;
    --ink: #101a26;
    --ink-2: #2e3d4d;
    --muted: #637e99;
    --line: #dbe2ef;
    --bg: #f4f7fb;
    --surface: #ffffff;
    --dark: #0e1620;
    --dark-2: #16212e;

    --grad: linear-gradient(135deg, #0057ff 0%, #1ae5c8 100%);
    --shadow-sm: 0 1px 2px rgba(16, 32, 56, .06), 0 4px 12px -6px rgba(16, 32, 56, .12);
    --shadow-md: 0 2px 4px rgba(16, 32, 56, .05), 0 18px 40px -18px rgba(16, 32, 56, .28);
    --shadow-lg: 0 4px 8px rgba(16, 32, 56, .06), 0 32px 64px -24px rgba(16, 32, 56, .35);
    --shadow-brand: 0 12px 28px -10px rgba(0, 87, 255, .55);

    --r-sm: 12px;
    --r: 18px;
    --r-lg: 26px;

    --head: 'Roboto Condensed', 'Arial Narrow', system-ui, sans-serif;
    --body: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    --wrap: 1180px;
    --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
    font-family: var(--head);
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -.01em;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 104px 0; position: relative; }
.section--tight { padding: 72px 0; }

.section-head { text-align: center; margin-bottom: 56px; }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand);
    font-weight: 600;
    margin-bottom: 18px;
}

.kicker::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
}

.section h2 {
    font-size: clamp(30px, 4.4vw, 50px);
    color: var(--ink);
}

.section .lead {
    margin: 18px auto 0;
    max-width: 640px;
    color: var(--muted);
    font-size: 18px;
}

.dark-section {
    background:
        radial-gradient(900px 500px at 12% -10%, rgba(0, 87, 255, .28), transparent 60%),
        radial-gradient(760px 460px at 92% 8%, rgba(26, 229, 200, .18), transparent 60%),
        var(--dark);
    color: #fff;
}

.dark-section h2, .dark-section h3 { color: #fff; }
.dark-section .lead { color: rgba(255, 255, 255, .66); }
.dark-section .kicker { color: var(--accent); }

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 17px 34px;
    border: 0;
    border-radius: 999px;
    font-family: var(--body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .25s cubic-bezier(.2, .8, .3, 1), box-shadow .25s ease, background-color .25s ease;
    will-change: transform;
}

.btn--primary {
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.btn--primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad);
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 0;
}

.btn--primary > * { position: relative; z-index: 1; }

.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -12px rgba(0, 87, 255, .65); }
.btn--primary:hover::after { opacity: 1; }
.btn:active { transform: translateY(-1px); }

.btn--ghost {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(8px);
}

.btn--ghost:hover { background: rgba(255, 255, 255, .16); transform: translateY(-3px); }

.btn--light {
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-md);
}

.btn--light:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ---------- header ---------- */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background-color .35s ease, box-shadow .35s ease, height .35s ease, backdrop-filter .35s ease;
}

.site-header.is-stuck {
    height: 64px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(16px) saturate(1.5);
    box-shadow: 0 1px 0 rgba(16, 32, 56, .08), 0 12px 30px -20px rgba(16, 32, 56, .5);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--head);
    font-size: 22px;
    letter-spacing: .04em;
    color: #fff;
    transition: color .35s ease;
}

.logo__mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--grad);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-brand);
    flex: none;
}

.logo__mark svg { width: 21px; height: 21px; }
.logo__text b { font-weight: 400; }
.logo__text span { display: block; font-family: var(--body); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }

.is-stuck .logo { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 34px; }

.nav a {
    font-size: 15px;
    color: rgba(255, 255, 255, .84);
    position: relative;
    padding: 6px 0;
    transition: color .25s ease;
}

.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s cubic-bezier(.2, .8, .3, 1);
}

.nav a:hover::after { transform: scaleX(1); }
.nav a:hover { color: #fff; }
.is-stuck .nav a { color: var(--ink-2); }
.is-stuck .nav a:hover { color: var(--brand); }

.header-phone {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--head);
    font-size: 20px;
    color: #fff;
    white-space: nowrap;
}

.is-stuck .header-phone { color: var(--ink); }
.header-phone svg { width: 17px; height: 17px; }

.burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: rgba(255, 255, 255, .12);
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(8px);
}

.burger span {
    position: absolute;
    left: 12px;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .3s ease, opacity .2s ease, background-color .35s ease;
}

.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }

.is-stuck .burger { background: rgba(16, 32, 56, .07); }
.is-stuck .burger span { background: var(--ink); }

.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(14, 22, 32, .97);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 90px 32px 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.mobile-nav.is-open { opacity: 1; visibility: visible; }

.mobile-nav a {
    color: #fff;
    font-family: var(--head);
    font-size: 30px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    transform: translateY(16px);
    opacity: 0;
    transition: transform .4s cubic-bezier(.2, .8, .3, 1), opacity .4s ease;
}

.mobile-nav.is-open a { transform: translateY(0); opacity: 1; transition-delay: calc(.05s * var(--i, 0) + .08s); }
.mobile-nav .btn { margin-top: 26px; }

/* ---------- hero ---------- */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    padding: calc(var(--header-h) + 40px) 0 60px;
}

.hero__media {
    position: absolute;
    inset: -8% 0 0 0;
    height: 116%;
    z-index: 0;
    will-change: transform;
}

.hero__media video, .hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(14, 22, 32, .82) 0%, rgba(14, 22, 32, .55) 38%, rgba(14, 22, 32, .92) 100%),
        radial-gradient(700px 460px at 78% 26%, rgba(0, 87, 255, .38), transparent 65%);
}

.hero__grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: .16;
    background-image:
        linear-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .35) 1px, transparent 1px);
    background-size: 74px 74px;
    mask-image: radial-gradient(closest-side at 50% 40%, #000 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(closest-side at 50% 40%, #000 20%, transparent 100%);
}

.hero .wrap { position: relative; z-index: 2; }

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(10px);
    font-size: 14px;
    color: rgba(255, 255, 255, .9);
    margin-bottom: 26px;
}

.hero__badge i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(26, 229, 200, .7);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(26, 229, 200, .6); }
    70% { box-shadow: 0 0 0 12px rgba(26, 229, 200, 0); }
    100% { box-shadow: 0 0 0 0 rgba(26, 229, 200, 0); }
}

.hero h1 {
    font-size: clamp(36px, 7vw, 82px);
    margin-bottom: 22px;
}

/* nowrap держит «Мы устанавливаем» в одну строку; нижняя граница clamp подобрана так,
   чтобы строка влезала даже на 320 px. */
.hero h1 .line { display: block; overflow: hidden; white-space: nowrap; }

.hero h1 .line > span {
    display: block;
    transform: translateY(105%);
    animation: rise .9s cubic-bezier(.2, .8, .25, 1) forwards;
}

.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }

@keyframes rise { to { transform: translateY(0); } }

.hero h1 em {
    font-style: normal;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__sub {
    font-size: clamp(17px, 2vw, 21px);
    color: rgba(255, 255, 255, .78);
    max-width: 44ch;
    margin: 0 0 38px;
    opacity: 0;
    animation: fade-up .8s ease .35s forwards;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    opacity: 0;
    animation: fade-up .8s ease .5s forwards;
}

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 46px;
    margin-top: 64px;
    opacity: 0;
    animation: fade-up .8s ease .68s forwards;
}

.hero__stats div b {
    display: block;
    font-family: var(--head);
    font-size: clamp(30px, 3.6vw, 42px);
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__stats div span {
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
    letter-spacing: .04em;
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 2;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-radius: 14px;
}

.scroll-cue::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 8px;
    width: 3px;
    height: 8px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: #fff;
    animation: cue 1.9s ease-in-out infinite;
}

@keyframes cue {
    0% { transform: translateY(0); opacity: 0; }
    35% { opacity: 1; }
    100% { transform: translateY(16px); opacity: 0; }
}

/* ---------- reveal ---------- */

/* Скрываем только когда JS точно отработает: без него секции остаются видимыми,
   иначе отключённый или упавший скрипт оставляет пустую страницу. */
.js .reveal { opacity: 0; }

/* ---------- feature cards ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
}

.card {
    position: relative;
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: 38px 32px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform .4s cubic-bezier(.2, .8, .3, 1), box-shadow .4s ease;
    will-change: transform;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s cubic-bezier(.2, .8, .3, 1);
}

.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card:hover::before { transform: scaleX(1); }

.card__icon {
    width: 74px;
    height: 74px;
    border-radius: 20px;
    background: linear-gradient(150deg, rgba(0, 87, 255, .1), rgba(26, 229, 200, .16));
    display: grid;
    place-items: center;
    margin-bottom: 24px;
}

.card__icon img { width: 42px; height: 42px; object-fit: contain; }
.card h3 { font-size: 23px; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- use cases ---------- */

.usecase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    margin-bottom: 96px;
}

.usecase:last-child { margin-bottom: 0; }
.usecase:nth-child(even) .usecase__text { order: 2; }

.usecase__media {
    position: relative;
    border-radius: var(--r-lg);
    background: linear-gradient(150deg, #eaf1fb, #ffffff);
    box-shadow: var(--shadow-md);
    padding: 34px;
    display: grid;
    place-items: center;
    min-height: 300px;
    overflow: hidden;
}

.usecase__media::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    right: -80px;
    top: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 87, 255, .16), transparent 70%);
}

.usecase__media img { position: relative; z-index: 1; max-height: 260px; }

.usecase h3 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 20px; }

.usecase ul { list-style: none; margin: 0 0 28px; padding: 0; }

.usecase li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 13px;
    color: var(--ink-2);
}

.usecase li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--grad);
    box-shadow: 0 4px 10px -4px rgba(0, 87, 255, .7);
}

.usecase li::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 11px;
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.counter {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 999px;
    background: rgba(0, 87, 255, .07);
    border: 1px solid rgba(0, 87, 255, .14);
}

.counter b {
    font-family: var(--head);
    font-size: 34px;
    line-height: 1;
    color: var(--brand);
}

.counter span { font-size: 15px; color: var(--muted); }

/* ---------- cameras / streams ---------- */

.stream-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin-bottom: 30px;
}

.stream {
    position: relative;
    border-radius: var(--r);
    overflow: hidden;
    background: #0d151f;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow-md);
    display: grid;
    place-items: center;
}

.stream video { width: 100%; height: 100%; object-fit: cover; }

.stream__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, .62);
    background:
        radial-gradient(600px 300px at 50% 0%, rgba(0, 87, 255, .22), transparent 70%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .022) 0 12px, transparent 12px 24px),
        #111c28;
    font-size: 15px;
}

.stream__placeholder svg { width: 46px; height: 46px; opacity: .55; }

.stream__label {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 15px;
    border-radius: 999px;
    background: rgba(10, 16, 24, .62);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 14px;
}

.stream__label i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff6c6c;
}

.stream__label.is-live i { background: var(--accent); animation: pulse 2.4s infinite; }

/* ---------- tabs ---------- */

.tabs { max-width: 940px; margin: 0 auto; }

.tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 7px;
    border-radius: 999px;
    background: rgba(16, 26, 38, .05);
    margin-bottom: 32px;
}

.tabs__nav button {
    flex: 1 1 auto;
    border: 0;
    background: transparent;
    padding: 14px 22px;
    border-radius: 999px;
    font-family: var(--body);
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
    transition: color .25s ease, background-color .3s ease, box-shadow .3s ease;
}

.tabs__nav button:hover { color: var(--ink); }

.tabs__nav button.is-active {
    background: #fff;
    color: var(--brand);
    box-shadow: var(--shadow-sm);
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: panel-in .45s cubic-bezier(.2, .8, .3, 1); }

@keyframes panel-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

.specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.specs li {
    background: #fff;
    border-radius: var(--r-sm);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid transparent;
    border-image: var(--grad) 1;
    transition: transform .3s ease;
}

.specs li:hover { transform: translateY(-4px); }
.specs li b { display: block; font-family: var(--head); font-size: 20px; }
.specs li span { font-size: 14px; color: var(--muted); }

/* ---------- pricing ---------- */

.price-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 44px 48px;
    border-radius: var(--r-lg);
    background: var(--grad);
    color: #fff;
    box-shadow: 0 28px 60px -28px rgba(0, 87, 255, .8);
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.price-hero::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: -180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.price-hero > * { position: relative; z-index: 1; }
.price-hero h3 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.price-hero p { margin: 0; opacity: .85; }
.price-hero b { font-size: 1.25em; }

/* ---------- steps ---------- */

.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
    margin-top: 20px;
}

.steps::before {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    top: 44px;
    height: 2px;
    background: rgba(255, 255, 255, .12);
}

.steps__progress {
    position: absolute;
    left: 8%;
    top: 44px;
    height: 2px;
    width: 84%;
    background: var(--grad);
    box-shadow: 0 0 16px rgba(26, 229, 200, .7);
    transform: scaleX(0);
    transform-origin: left center;
}

.step { position: relative; text-align: center; z-index: 1; }

.step__num {
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .93);
    border: 1px solid rgba(255, 255, 255, .5);
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    position: relative;
    transition: transform .4s cubic-bezier(.2, .8, .3, 1), border-color .4s ease, background-color .4s ease;
}

.step:hover .step__num { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 16px 34px -14px rgba(26, 229, 200, .8); }
.step__num img { width: 52px; height: 52px; object-fit: contain; }

.step__num b {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    font-family: var(--head);
    font-size: 16px;
    display: grid;
    place-items: center;
}

.step p { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .74); }

/* ---------- advantages ---------- */

.adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.adv {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 26px 28px;
    border-radius: var(--r);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: transform .35s cubic-bezier(.2, .8, .3, 1), background-color .35s ease, border-color .35s ease;
}

.adv:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .09); border-color: rgba(26, 229, 200, .35); }

.adv__ico {
    width: 62px;
    height: 62px;
    flex: none;
    border-radius: 18px;
    background: rgba(255, 255, 255, .93);
    display: grid;
    place-items: center;
}

.adv__ico img { width: 36px; height: 36px; object-fit: contain; }
.adv p { margin: 0; font-size: 16px; color: rgba(255, 255, 255, .86); }

/* ---------- form ---------- */

.cta-section { padding: 104px 0; }

.cta-card {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 0;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #fff;
}

.cta-card__info {
    padding: 56px 52px;
    background:
        radial-gradient(600px 400px at 10% 0%, rgba(0, 87, 255, .35), transparent 65%),
        linear-gradient(160deg, #16212e, #0e1620);
    color: #fff;
}

.cta-card__info h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 18px; }
.cta-card__info p { color: rgba(255, 255, 255, .7); margin: 0 0 34px; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }

.contact-list li { display: flex; gap: 15px; align-items: flex-start; font-size: 16px; }

.contact-list svg { width: 20px; height: 20px; flex: none; margin-top: 4px; color: var(--accent); }
.contact-list span { color: rgba(255, 255, 255, .66); font-size: 14px; display: block; }
.contact-list a:hover { color: var(--accent); }

.form { padding: 56px 52px; }

.field { position: relative; margin-bottom: 22px; }

.field input {
    width: 100%;
    padding: 20px 20px 20px 18px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    background: #fff;
    font-family: var(--body);
    font-size: 16px;
    color: var(--ink);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.field input::placeholder { color: transparent; }

.field label {
    position: absolute;
    left: 18px;
    top: 20px;
    color: var(--muted);
    font-size: 16px;
    pointer-events: none;
    transition: transform .22s cubic-bezier(.2, .8, .3, 1), font-size .22s ease, color .22s ease;
    background: #fff;
    padding: 0 6px;
}

.field input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 87, 255, .12); }

.field input:focus + label,
.field input:not(:placeholder-shown) + label {
    transform: translateY(-30px);
    font-size: 13px;
    color: var(--brand);
}

.field--hp { position: absolute; left: -9999px; opacity: 0; }

.consent {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
    line-height: 1.5;
    cursor: pointer;
}

.consent input { position: absolute; opacity: 0; width: 0; height: 0; }

.consent__box {
    width: 22px;
    height: 22px;
    flex: none;
    border: 1.5px solid var(--line);
    border-radius: 7px;
    display: grid;
    place-items: center;
    transition: background-color .22s ease, border-color .22s ease;
    margin-top: 1px;
}

.consent__box svg { width: 13px; height: 13px; opacity: 0; transform: scale(.5); transition: opacity .2s ease, transform .25s cubic-bezier(.2, .8, .3, 1); color: #fff; }
.consent input:checked + .consent__box { background: var(--brand); border-color: var(--brand); }
.consent input:checked + .consent__box svg { opacity: 1; transform: scale(1); }
.consent input:focus-visible + .consent__box { box-shadow: 0 0 0 4px rgba(0, 87, 255, .18); }
.consent a { color: var(--brand); text-decoration: underline; }

.form .btn { width: 100%; }

.form__msg { margin: 16px 0 0; font-size: 15px; min-height: 22px; }
.form__msg--error { color: #e3342f; }
.form__msg--ok { color: #17a673; }

.form.is-sent .form__body { display: none; }

.form__done { display: none; text-align: center; padding: 30px 0; }
.form.is-sent .form__done { display: block; animation: fade-up .5s ease; }

.form__done .tick {
    width: 78px;
    height: 78px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: rgba(23, 166, 115, .1);
    display: grid;
    place-items: center;
    color: #17a673;
}

.form__done .tick svg { width: 34px; height: 34px; }

/* ---------- footer ---------- */

.site-footer { background: #0a121b; color: rgba(255, 255, 255, .62); padding: 66px 0 26px; font-size: 15px; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 44px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.site-footer h4 { font-family: var(--body); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 18px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.site-footer a:hover { color: var(--accent); }
.site-footer .logo { color: #fff; margin-bottom: 18px; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 30px;
    justify-content: space-between;
    padding-top: 22px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .45);
}

.requisites { margin: 16px 0 0; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, .45); }

/* ---------- floating bits ---------- */

.to-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 90;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-4px); }
.to-top svg { width: 20px; height: 20px; color: var(--brand); }

.mobile-bar { display: none; }

.cookie {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 95;
    max-width: 430px;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    padding: 20px 22px;
    font-size: 14px;
    color: var(--ink-2);
    display: none;
    align-items: center;
    gap: 16px;
}

.cookie.is-open { display: flex; animation: fade-up .5s ease; }
.cookie a { color: var(--brand); text-decoration: underline; }

.cookie button {
    flex: none;
    border: 0;
    background: var(--brand);
    color: #fff;
    padding: 11px 22px;
    border-radius: 999px;
    font-family: var(--body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .25s ease;
}

.cookie button:hover { background: var(--brand-dark); }

/* ---------- legal page ---------- */

.legal { padding: calc(var(--header-h) + 60px) 0 90px; }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 12px; }
.legal .updated { color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.legal h2 { font-size: 26px; margin: 42px 0 14px; }
.legal h3 { font-size: 20px; margin: 26px 0 10px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 8px; }

.legal-header { background: #0e1620; }
.legal-header .logo { color: #fff; }

/* ---------- trust strip ---------- */

.trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 54px;
}

.trust__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow-sm);
}

.trust__ico {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(0, 87, 255, .08);
    color: var(--brand);
}

.trust__ico svg { width: 21px; height: 21px; }

.trust__item b {
    display: block;
    font-family: var(--head);
    font-size: 19px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.trust__item span { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* ---------- FAQ ---------- */

.faq { max-width: 860px; margin: 0 auto; }

.faq__item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.faq__item.is-open { border-color: rgba(0, 87, 255, .38); box-shadow: var(--shadow-md); }

.faq__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-family: var(--head);
    font-size: 21px;
    line-height: 1.25;
    color: var(--ink);
}

.faq__q:hover { color: var(--brand); }

.faq__q::after {
    content: '';
    flex: none;
    width: 13px;
    height: 13px;
    border-right: 2.2px solid currentColor;
    border-bottom: 2.2px solid currentColor;
    border-radius: 2px;
    transform: rotate(45deg) translate(-3px, -3px);
    transition: transform .32s cubic-bezier(.2, .8, .3, 1);
    color: var(--brand);
}

.faq__item.is-open .faq__q::after { transform: rotate(-135deg) translate(-3px, -3px); }

.faq__a {
    height: 0;
    opacity: 0;
    overflow: hidden;
}

.faq__a > div { padding: 0 26px 26px; color: var(--ink-2); font-size: 16.5px; }
.faq__a p { margin: 0 0 12px; }
.faq__a p:last-child { margin-bottom: 0; }

/* ---------- inline form errors ---------- */

.field__err {
    display: block;
    margin-top: 7px;
    font-size: 14px;
    line-height: 1.4;
    color: #d64545;
}

.field.has-error input,
.field.has-error input:focus { border-color: #d64545; box-shadow: 0 0 0 4px rgba(214, 69, 69, .12); }

.consent.has-error .consent__box { border-color: #d64545; }
.consent .field__err { margin-left: 0; }

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
    .nav, .header-phone { display: none; }
    .burger { display: block; }
    .usecase { grid-template-columns: 1fr; gap: 34px; }
    .usecase:nth-child(even) .usecase__text { order: 0; }
    .cta-card { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
    .steps::before, .steps__progress { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .trust { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .trust { grid-template-columns: 1fr; margin-top: 40px; }
    .faq__q { font-size: 19px; padding: 20px 20px; }
    .faq__a > div { padding: 0 20px 22px; }
    .section { padding: 72px 0; }
    .wrap { padding: 0 20px; }
    .hero { min-height: 92svh; padding-bottom: 96px; }
    .hero__stats { gap: 26px; margin-top: 42px; }
    .hero__cta .btn { flex: 1 1 100%; }
    .stream-grid { grid-template-columns: 1fr; }
    .price-hero { padding: 32px 26px; }
    .cta-card__info, .form { padding: 40px 26px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .card { padding: 30px 26px; }
    .scroll-cue { display: none; }
    .to-top { bottom: 88px; right: 16px; }
    .cookie { left: 12px; right: 12px; bottom: 86px; max-width: none; flex-wrap: wrap; }

    .mobile-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 96;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .94);
        backdrop-filter: blur(14px);
        box-shadow: 0 -6px 24px -12px rgba(16, 32, 56, .4);
    }

    .mobile-bar .btn { padding: 14px 10px; font-size: 15px; box-shadow: none; }
    .mobile-bar .btn--light { border: 1.5px solid var(--line); }
    .site-footer { padding-bottom: 92px; }
}

@media (max-width: 460px) {
    .steps { grid-template-columns: 1fr; }
    .price-hero { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .js .reveal { opacity: 1; transform: none; }
    .faq__q::after { transition: none; }
    .hero h1 .line > span { transform: none; }
    .hero__sub, .hero__cta, .hero__stats { opacity: 1; }
}


/* ---------- отзывы ---------- */
.reviews-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    font-size: 14px;
    color: var(--ink-2);
}
.reviews-badge b { font-family: var(--head); font-size: 17px; color: var(--ink); }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}
.review {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px 28px;
    border-radius: var(--r);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.review__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review__stars { color: #ffb400; font-size: 15px; letter-spacing: 3px; }
.review__date { font-size: 13px; color: var(--muted); }
.review__text p { margin: 0 0 10px; font-size: 15px; line-height: 1.62; color: var(--ink-2); }
.review__text p:last-child { margin-bottom: 0; }
.review__author {
    margin-top: auto;
    font-family: var(--head);
    font-weight: 600;
    font-size: 17px;
    color: var(--ink);
}
.reviews-foot { margin-top: 44px; text-align: center; }
.reviews-foot .btn { margin-bottom: 14px; }
.reviews-note { font-size: 13px; color: var(--muted); }

@media (max-width: 1024px) {
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .reviews-grid { grid-template-columns: 1fr; gap: 16px; }
    .review { padding: 22px 22px; }
}
