/* =========================================================
   1) Base / Reset
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
    line-height: 1.5;
    color: var(--text);
    background: var(--c-bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 2px solid var(--focus-ring-dark);
    outline-offset: 3px;
}

/* =========================================================
   Unified field states: base -> focus (keep existing colors)
   ========================================================= */
/* 1) Плавность переходов для всех полей */
.calc__select,
.calc__months-input,
.calc-cselect__trigger,
.cta__input,
.cta__select,
.cta__textarea {
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

/* 2) CALC: фокус = фиолетовый акцент (как у калькулятора) */
.calc__select:focus-visible,
.calc__months-input:focus-visible,
.calc-cselect__trigger:focus-visible {
    border-color: var(--field-border-strong);
    box-shadow: 0 0 0 4px rgba(153, 136, 221, 0.16);
}

/* 2.1) CALC: “активно открыто” (даже если фокус ушёл) */
.calc-cselect.is-open .calc-cselect__trigger {
    border-color: var(--field-border-strong);
    box-shadow: 0 0 0 4px rgba(153, 136, 221, 0.10);
}

/* 3) CTA: фокус = white-glass акцент (как у CTA полей) */
.cta__input:focus-visible,
.cta__select:focus-visible,
.cta__textarea:focus-visible {
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
}

/* 3.1) CTA: кастомный селект в CTA тоже по той же логике */
.cta .calc-cselect__trigger:focus-visible,
.cta .calc-cselect.is-open .calc-cselect__trigger {
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

/* =========================================================
   2) Design tokens 
   ========================================================= */
:root {
    /* container width similar to “clean corporate” sites */
    --container-max: 1240px;

    /* side gutters: mobile 16 → desktop 64 */
    --gutter: clamp(16px, 4vw, 64px);

    /* vertical rhythm */
    --section-py: clamp(56px, 7vw, 120px);
    --section-py-sm: clamp(40px, 5vw, 88px);

    /* spacing (vertical rhythm) */
    --space-xs: 0.75rem;

    /* 12px */
    --space-sm: 1rem;

    /* 16px */
    --space-md: 1.5rem;

    /* 24px */
    --space-lg: 2.5rem;

    /* 40px */
    --space-xl: 4rem;
    --space-2xl: 5rem;
    --process-rail-gap: clamp(24px, 4vw, 40px);

    /* header spacing */
    --header-height: clamp(52px, 6vh, 60px);
    --header-py: clamp(8px, 1vh, 12px);

    /* internal paddings */
    --card-p: clamp(16px, 2vw, 28px);

    /* gaps */
    --gap: clamp(14px, 2vw, 24px);
    --gap-lg: clamp(18px, 2.6vw, 32px);

    /* radius */
    --radius: 16px;
    --radius-lg: 24px;

    /* card padding */
    --card-p-lg: clamp(22px, 2.5vw, 34px);

    /* form fields */
    --radius-sm: 14px;

    /* form fields (calculator left card) */
    --field-h-sm: 3.5rem;

    /* 64px */
    /* common field sizing */
    --field-h: 78px;
    --field-px: 20px;

    /* field colors on white surfaces (calculator left card) */
    --field-bg: #fff;
    --field-border: rgba(153, 136, 221, 0.45);
    --field-border-strong: rgba(153, 136, 221, 0.75);

    /* calculator controls */
    --calc-control-h: 3.5rem;

    /* 56px: ниже, чем было */
    --calc-control-r: 0.75rem;
    --glass-field-bg: rgba(255, 255, 255, 0.08);
    --glass-field-border: rgba(255, 255, 255, 0.55);
    --glass-placeholder: rgba(255, 255, 255, 0.75);

    /* focus ring */
    --focus-ring: rgba(255, 255, 255, 0.65);
    --focus-ring-dark: rgba(15, 23, 42, 0.35);

    /* Platforms icon tile */
    --platforms-icon-tile: 4.5rem;
    --team-logo-height: 3.375rem;

    /* Team */
    --team-cards-gap: 3.75rem;
    --platforms-icon-size: 3rem;

    /* 48px */
    --platforms-icon-radius: 1rem;

    /* 20px */
    --platforms-icon-fill: #F9F9FF;

    /* Partners */
    --partners-gap: clamp(24px, 5vw, 72px);

    /* между текстом и логотипами */
    --partners-logos-gap: clamp(18px, 3.2vw, 56px);

    /* =====================================================
   Shadows 
   ===================================================== */
    --shadow-100: 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-200: 0 2px 4px 1px rgba(0, 0, 0, 0.08);

    /* colors — palette */
    --c-black: #242424;
    --c-gray: #6A6A6A;
    --c-violet: #9988DD;

    /* primary */
    --c-violet-mid: #8D7ECC;
    --c-bg: #FFFFFF;
    --c-bg-soft: #F6F6FA;
    --c-green: #45E5AD;
    --c-footer: #43386D;

    /* Tape / Promo */
    --tape-height: 4.625rem;

    /* 74px */
    --tape-speed: 26s;
    --tape-gap: 1.25rem;

    /* colors — semantic */
    --text: var(--c-black);
    --muted: var(--c-gray);
    --border: rgba(36, 36, 36, 0.16);
    --bg-soft: var(--c-bg-soft);

    /* accents */
    --accent: var(--c-violet);
    --highlight: var(--c-green);

    /* buttons */
    --btn-py: 0.875rem;
    --btn-px: 1.5rem;
    --fs-btn: 1rem;

    /* 16px */
    --lh-btn: 1.1;

    /* =========================
   Typography tokens (Figma)
   ========================= */
    /* Headings */
    --fs-h1: clamp(36px, 7.5vw, 56px);
    --fs-hero-lead: clamp(17.5px, 4.6vw, 21px);
    --lh-hero-lead: 1.45;

    /* 56px */
    --lh-h1: 1.18;
    --ls-h1: 0.02em;

    /* ≈ 1px */
    --fs-h2: clamp(2rem, 4vw, 2.75rem);

    /* 38px */
    --lh-h2: 1.2;
    --fs-h3: 1.5rem;

    /* 24px */
    --lh-h3: 1.25;

    /* Text */
    --fs-body: 1.125rem;

    /* 18px */
    --lh-body: 1.5;
    --fs-middle: 1.375rem;

    /* 22px */
    --lh-middle: 1.45;
    --fs-subtitle: 1.375rem;

    /* 20px */
    --lh-subtitle: 1.5;
    --fs-small: 0.875rem;

    /* 14px */
    --lh-small: 1.35;

    /* Buttons */
    --fs-btn: 1.125rem;

    /* 18px */
    --lh-btn: 1.1;
    --mnav-link: var(--c-footer);
}

/* =========================================================
   3) Layout helpers
   ========================================================= */
.container {
    width: min(var(--container-max), 100% - (var(--gutter) * 2));
    margin-inline: auto;
}

/* text measure */
.prose {
    max-width: 66ch;
}

.prose--sm {
    max-width: 56ch;
}

.center {
    text-align: center;
}

.section {
    padding-block: var(--section-py);
}

.section--sm {
    padding-block: var(--section-py-sm);
}

.process {
    padding-bottom: calc(var(--section-py) * 0.6);
}

.h1 {
    margin: 0;
    font-size: var(--fs-h1);
    line-height: var(--lh-h1);
    font-weight: 400;
    letter-spacing: var(--ls-h1);
    overflow-wrap: anywhere;
}

.h1__highlight {
    position: relative;
    font-weight: 600;
    z-index: 0;
}

.h1__highlight::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: -0.10em;
    right: -0.10em;
    top: -0.004em;
    bottom: -0.1em;
    background: var(--highlight);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.h2 {
    margin: 0;
    font-size: var(--fs-h2);
    line-height: var(--lh-h2);
    font-weight: 500;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.h3 {
    margin: 0;
    font-size: var(--fs-h3);
    line-height: var(--lh-h3);
    font-weight: 600;
}

.subtitle {
    margin: 0;
    font-size: var(--fs-subtitle);
    line-height: var(--lh-subtitle);
    font-weight: 400;
    color: var(--muted);
}

.text-body {
    margin: 0;
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    font-weight: 400;
    color: var(--muted);
}

.text-middle {
    margin: 0;
    font-size: var(--fs-middle);
    line-height: var(--lh-middle);
    font-weight: 400;
    color: var(--muted);
}

.small {
    font-size: var(--fs-small);
    line-height: var(--lh-small);
    font-weight: 400;
    color: var(--muted);
}

/* vertical rhythm (stack) */
.stack > * + * {
    margin-top: 1rem;
}

/* 16px */
.stack--why > * + * {
    margin-top: 0.75rem;
}

/* 12px */
.stack--why > :first-child + * {
    margin-top: 1rem;
}

/* num → h3 = 16px */
/* Hero vertical rhythm (explicit composition) */
.stack--hero > h1 {
    margin-bottom: 2.75rem;
}

.stack--hero > .hero__lead {
    margin-bottom: 4.375rem;
}

.stack--hero > .hero__actions {
    margin-bottom: 4.375rem;
}

/* =========================================================
   Text links (content only)
   ========================================================= */
.text-body a,
.prose a,
p a,
li a {
    color: currentColor;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    text-decoration-thickness: 1px;
    transition: color 160ms ease;
}

.text-body a:hover,
.prose a:hover,
p a:hover,
li a:hover {
    color: var(--accent);
}

/* =========================================================
   5) Components
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: var(--btn-py) var(--btn-px);
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease,
    border-color 160ms ease;
    font-size: var(--fs-btn);
    line-height: var(--lh-btn);
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.btn--primary:hover {
    background: var(--c-violet-mid);
    border-color: var(--c-violet-mid);
}

.btn--outline {
    background: transparent;
    border-color: rgba(36, 36, 36, 0.35);
}

.card {
    padding: var(--card-p);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: #ffffff;
    font-size: var(--fs-body);
    line-height: var(--lh-body);
}

.card__footer {
    margin-top: auto;
    padding-top: 0.75rem;
}

.card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.card__link:hover {
    text-decoration: underline;
}

.card--column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Platforms icon tile (72x72) + icon (48x48) */
.platforms__icon {
    width: var(--platforms-icon-tile);
    height: var(--platforms-icon-tile);
    border-radius: var(--platforms-icon-radius);
    background: var(--platforms-icon-fill);
    box-shadow: var(--shadow-200);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

/* More air inside slider cards (Platforms + Expertise) */
/* 1) icon -> title */
.platforms .gallery__item.stack > .platforms__icon + .h3,
.expertise .gallery__item.stack > .platforms__icon + .h3 {
    margin-top: 1.5rem;
}

.platforms .card__footer,
.expertise .card__footer {
    padding-top: 2rem;
}

.platforms__icon img,
.platforms__icon svg {
    width: var(--platforms-icon-size);
    height: var(--platforms-icon-size);
    object-fit: contain;
}

/* Icon card */
.icon-card {
    display: grid;
    justify-items: center;
    gap: 0.75rem;

    /* 12px */
    text-align: center;
}

.icon-card__icon {
    width: clamp(6rem, 10vw, 8.75rem);

    /* max ≈ 140px */
    height: clamp(6rem, 10vw, 8.75rem);
    display: grid;
    place-items: center;
}

.icon-card__icon img,
.icon-card__icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.audience .card.icon-card {
    border: 0;
}

.icon-card__title {
    margin: 0;
    font-size: var(--fs-h3);
    line-height: var(--lh-h3);
    font-weight: 600;
    color: var(--text);
}

.icon-card__text {
    margin: 0;
}

/* Why cards (numbered) */
.card--why {
    border-color: rgba(153, 136, 221, 0.35);

    /* фиолетовый бордер из палитры */
    border-radius: var(--radius-lg);
    padding: clamp(20px, 2.4vw, 32px);
    min-height: 260px;
    justify-items: center;
}

.why__num {
    font-size: 3rem;
    line-height: 1;
    font-weight: 700;
    color: rgba(153, 136, 221, 0.8);
}

.grid {
    display: grid;
    gap: var(--gap);
}

.grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* =========================================================
   Gallery (horizontal cards)
   ========================================================= */
.gallery {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-bottom: 0.25rem;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
}

.gallery__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(20rem, 22vw, 24rem);
    gap: var(--gap);
}

.gallery.is-dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
    cursor: grabbing;
}

.gallery.is-paused .gallery__track {
    animation-play-state: paused;
}

/* optional: nicer scrolling */
.gallery {
    scroll-snap-type: x proximity;
}

.gallery.is-dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.gallery__item {
    scroll-snap-align: start;
    height: 100%;
}

.platforms,
.expertise {
    overflow-x: hidden;
    overflow-y: visible;
}

.gallery[data-proton-slider] img {
    -webkit-user-drag: none;
    user-drag: none;
}

.gallery[data-proton-slider] {
    touch-action: pan-y;
}

.gallery[data-proton-slider] {
    cursor: auto;
}

.gallery[data-proton-slider].is-dragging * {
    user-select: none;
}

.tape {
    background: var(--accent);
    color: #fff;
    min-height: var(--tape-height);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.tape__viewport {
    width: 100%;
    overflow: hidden;
}

.tape__marquee {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: tape-scroll var(--tape-speed) linear infinite;
}

.tape__track {
    display: inline-flex;
    align-items: center;
    gap: var(--tape-gap);
    padding-inline: var(--tape-gap);
    white-space: nowrap;
    flex: 0 0 auto;
}

.tape__item {
    font-size: 1.125rem;

    /* 18px */
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
}

.tape__icon {
    font-size: 1.25rem;

    /* 20px */
    line-height: 1;
    transform: translateY(1px);
}

@keyframes tape-scroll{
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce){
    .tape__marquee {
        animation: none;
    }
}

.platforms__note {
    margin-top: clamp(1.75rem, 3.5vw, 2.5rem);

    /* ~40–52px */
    max-width: 72ch;
    color: var(--text);
    margin-inline: auto;
    text-align: center;
}

/* =========================================================
   Gallery shell + arrows (Platforms + Expertise)
   ========================================================= */
.gallery-shell {
    position: relative;
    padding-inline: 24px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(36, 36, 36, 0.14);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--shadow-100);
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.gallery-nav:not([disabled]):hover {
    border-color: rgba(36, 36, 36, 0.22);
    background: rgba(255, 255, 255, 0.92);
}

.gallery-nav svg {
    width: 20px;
    height: 20px;
}

.gallery-nav--prev {
    left: 0;
    transform: translate(-100%, -50%);
}

.gallery-nav--next {
    right: 0;
    transform: translate(100%, -50%);
}

.gallery-nav[disabled] {
    opacity: 0.28;
    cursor: default;
}

.gallery-nav[disabled]:hover {
    border-color: rgba(36, 36, 36, 0.14);
    background: rgba(255, 255, 255, 0.82);
}

@media (hover: none) and (pointer: coarse) {
    .gallery-nav {
        opacity: 0;
        pointer-events: none;
    }
}

/* =========================================================
   6) Header / Navigation
   ========================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding-block: var(--header-py);
    --btn-py: 0.625rem;
    --btn-px: 1.375rem;
    --fs-btn: 0.9375rem;
    --lh-btn: 1.1;
}

main {
    padding-top: calc(var(--header-height) + (var(--header-py) * 2));
}

.nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: var(--gap-lg);
    min-height: var(--header-height);
}

.logo-lockup {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

.logo-lockup__img {
    height: clamp(28px, 3vh, 32px);
    width: auto;
}

.logo-lockup__x {
    height: 16px;
    width: auto;
    opacity: 0.55;
}

.nav__links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
}

.nav__link {
    color: var(--muted);
    padding: 10px 12px;
    border-radius: 999px;
    transition: background 140ms ease, color 140ms ease;
}

.nav__link:hover {
    background: var(--bg-soft);
    color: var(--text);
}

.nav__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Burger button (hidden on desktop, shown in responsive) */
.nav__burger {
    display: none;
    justify-content: flex-end;
}

/* Burger button */
.burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: auto;
    height: auto;
    padding: 8px;
    background: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
}

/* ===== No focus outlines for mobile menu controls (per request) ===== */
.burger:focus,
.burger:focus-visible,
.mnav__close:focus,
.mnav__close:focus-visible,
.mnav__actions .btn:focus,
.mnav__actions .btn:focus-visible {
    outline: none;
    box-shadow: none;
}

/* iOS/Android tap highlight */
.burger,
.mnav__close,
.mnav__actions .btn {
    -webkit-tap-highlight-color: transparent;
}

.burger__line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* =========================================================
   6.1) Mobile nav (drawer) — right panel
   ========================================================= */
.mnav {
    position: fixed;
    inset: 0;
    z-index: 2000;
    visibility: hidden;
    pointer-events: none;
}

.mnav.is-mounted {
    visibility: visible;
    pointer-events: auto;
}

/* show/hide (visual) */
.mnav.is-active {
    visibility: visible;
    pointer-events: auto;
}

/* overlay */
.mnav__overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
    opacity: 0;
    transition: opacity 180ms ease;
}

/* panel */
.mnav__panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(420px, 92vw);
    background: #fff;
    border-left: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
    padding: calc(16px + env(safe-area-inset-top))
      16px
      calc(16px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 14px;
    transform: translate3d(100%, 0, 0);
    will-change: transform;
    transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);

    /* panel internal scroll if needed */
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/* open state anim */
.mnav.is-active .mnav__overlay {
    opacity: 1;
}

.mnav.is-active .mnav__panel {
    transform: translate3d(0, 0, 0);
}

/* header row inside panel */
.mnav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--header-height);
    padding-inline: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

/* close button */
.mnav__close {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
}

/* links */
.mnav__links {
    display: grid;
    gap: 10px;
    padding-top: 6px;
}

.mnav__link {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 8px 0;
    min-height: auto;
    font-size: clamp(22px, 6.4vw, 30px);
    line-height: 1.15;
    font-weight: 700;
    color: var(--mnav-link, var(--c-footer));
    text-decoration: none;
}

.mnav__link:hover,
.mnav__link:focus-visible {
    color: var(--accent);
    outline: none;
}

.mnav__link:active {
    transform: none;
    color: var(--accent);
    opacity: 0.9;
}

/* current page / active item */
.mnav__link[aria-current="page"] {
    color: var(--accent);
}

/* actions pinned to bottom */
.mnav__actions {
    margin-top: auto;
    padding-top: 20px;
    padding-bottom: env(safe-area-inset-bottom);
    display: grid;
    gap: 16px;
}

/* buttons in drawer should be full width */
.mnav__actions .btn {
    width: 100%;
}

/* lock scroll on body when open */
body.is-nav-open {
    overflow: hidden;
}

/* =========================================================
   Mobile menu — typography list (like screenshot)
   ========================================================= */
.mnav__panel {
    gap: 22px;
    padding-inline: var(--gutter);
    padding-top: calc(env(safe-area-inset-top) + var(--header-py));
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.mnav__links {
    gap: 18px;
    padding-top: 18px;
}

.mnav__link {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 10px 0;
    min-height: auto;
    font-size: clamp(18px, 5.2vw, 24px);
    line-height: 1.25;
    font-weight: 500;
    color: var(--c-footer);
}

.mnav__link:hover {
    text-decoration: none;
}

.mnav__link:active {
    transform: none;
    opacity: 0.75;
}

/* =========================================================
   8) Sections — safe defaults
   ========================================================= */
.hero,
.why,
.team,
.partners,
.audience,
.platforms,
.process,
.tech,
.calculator,
.cta,
.footer {
    padding-inline: 0;

    /* container controls horizontal spacing */
}

.hero {
    padding-top: clamp(24px, 6vw, 48px);
    padding-bottom: clamp(6.75rem, 13vh, 11rem);
    margin-top: calc(var(--space-2xl) * 0.5);
}

/* Optional subtle alternation */
.why,
.partners,
.platforms,
.expertise,
.calculator {
    background: var(--bg-soft);
}

.partners {
    background: var(--c-bg);
}

.footer {
    padding-block: clamp(40px, 6vw, 96px);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: var(--c-footer);
    color: #ffffff;
}

.section__head {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-bottom: clamp(var(--space-lg), 5vw, var(--space-xl));
}

.process + .tech {
    padding-top: calc(var(--section-py) / 2);
}

/* =========================================================
   Team
   ========================================================= */
.team__list {
    display: grid;
    gap: var(--team-cards-gap);
}

:root {
    --team-card-p: clamp(20px, 5vw, 64px);
}

.team__card {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    padding: var(--team-card-p);
    gap: var(--gap-lg);
    align-items: start;
}

.team__brand {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.team__logo {
    height: var(--team-logo-height);
    width: auto;
    display: block;
}

.team__main .text-body {
    font-size: var(--fs-middle);

    /* 22px */
    line-height: var(--lh-middle);

    /* 1.45 */
    color: var(--text);
}

.team__stats {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

.team__stat {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: clamp(18px, 2.2vw, 30px);
    min-height: clamp(150px, 15vw, 190px);
    background: transparent;
    border: 0;
    border-radius: 0;
}

.team__stat-value {
    order: 0;
}

.team__stat-label {
    order: 1;
    margin-top: 12px;
}

.team__stat:nth-child(2n) {
    border-left: 1px solid rgba(15, 23, 42, 0.22);
}

.team__stat:nth-child(n + 3) {
    border-top: 1px solid rgba(15, 23, 42, 0.22);
}

.team__stat-label {
    margin: 0;
    margin-top: 12px;
    color: var(--text);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
}

.team__stat-value {
    margin: 0;
    font-size: clamp(3.5rem, 5.5vw, 6rem);
    line-height: 1;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: rgb(153, 136, 221);
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.team__checks {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.team__check {
    border: 1px solid rgba(36, 36, 36, 0.10);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    background: #fff;
    color: var(--text);
    font-weight: 500;
}

@media (max-width: 1100px) {
    .team__card {
        grid-template-columns: 1fr;
    }
}

/* =========================
   Team checks — vertical marquee
   ========================= */
.team__checks {
    position: relative;
    overflow: hidden;
    height: clamp(220px, 18vw, 300px);
    padding-block: 6px;
}

.team__checks.is-marquee {
    display: block;
}

.team__checks.is-marquee .team__checks-track {
    display: grid;
    gap: 0.75rem;
    will-change: transform;
    animation: teamChecksUp var(--checks-dur, 10s) linear infinite;
}

.team__checks.is-marquee:hover .team__checks-track {
    animation-play-state: paused;
}

.team__checks::before,
.team__checks::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 28px;
    pointer-events: none;
    z-index: 2;
}

.team__checks::before {
    top: 0;
    background: linear-gradient(to bottom, #fff, rgba(255,255,255,0));
}

.team__checks::after {
    bottom: 0;
    background: linear-gradient(to top, #fff, rgba(255,255,255,0));
}

@keyframes teamChecksUp {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(0, calc(-1 * var(--checks-shift, 0px)), 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .team__checks.is-marquee .team__checks-track {
        animation: none;
        transform: none;
    }
}

/* =========================================================
   Partners
   ========================================================= */
.partners__grid {
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: var(--partners-gap);
    margin-top: var(--team-cards-gap);
    align-items: center;
}

.partners__logos {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--partners-logos-gap);
    align-items: center;
}

.partners__logos > li {
    display: grid;
    place-items: center;
    min-width: 0;
}

.partners__logos img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 32px;
    width: auto;
    opacity: 0.9;
}

.partners__logos img {
    max-height: 32px;
    width: auto;
    opacity: 0.9;
}

/* =========================================================
   Process (timeline)
   ========================================================= */
.process__rail {
    position: relative;
    margin-top: var(--space-xl);
    padding-block: var(--space-lg);
    overflow: visible;
}

.process__rail::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 1;
    background-image: radial-gradient(circle, #dcdbee 1px, transparent 1.5px);
    background-size: 2.5rem 0.875rem;
    background-position: 0 0;
}

.process__track {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-xs);
}

.process__step {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    margin-top: var(--step-y, 0rem);
    background: color-mix(in srgb, var(--c-green) 20%, transparent);

    /* 20% */
    border-radius: var(--radius);
    padding: var(--space-md);
    color: var(--text);
}

.process__step::before {
    content: "";
    position: absolute;
    top: 0.75rem;
    bottom: 0.75rem;
    left: 0;
    width: 0.375rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--c-green) 60%, transparent);
}

.process__text {
    margin: 0;
    font-size: var(--fs-small);
    line-height: 1.45;
    color: var(--text);
}

.process__text strong {
    font-weight: 700;
}

.process__step--wide {
    flex-grow: 1.2;
}

@media (max-width: 1100px) {
    .process__track {
        flex-direction: column;
        justify-content: flex-start;
        gap: var(--process-rail-gap);
    }

    .process__step {
        transform: none;
        width: 100%;
        flex-basis: auto;
        margin-top: 0;
    }

    .process__rail::before {
        opacity: 0.6;
    }
}

/* =========================================================
   9) Hero layout
   ========================================================= */
.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--gap-lg);
    align-items: start;
}

.hero__lead {
    margin-top: 0;
    max-width: 56ch;
    font-size: var(--fs-hero-lead);
    line-height: var(--lh-hero-lead);
}

.hero__actions {
    margin-top: 0;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.hero__meta {
    margin-top: 26px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.75);
    color: var(--muted);
    font-size: 14px;
}

.hero__visual {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.hero__art {
    height: clamp(340px, 56vw, 620px);
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    object-position: top right;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.hero__note {
    margin-top: 0;
    max-width: 52ch;
}

@media (max-width: 1100px) {
    .hero {
        margin-top: var(--space-md);
        padding-top: clamp(20px, 4vw, 36px);
        padding-bottom: clamp(4.5rem, 10vh, 7rem);
    }
}

/* =========================================================
   Tech base (Технологическая база)
   ========================================================= */
.tech-card {
    background: #F9F9FF;
    border: none;
    padding-top: calc(var(--card-p) * 1.5);
    padding-bottom: calc(var(--card-p) * 1.5);
}

.tech-card__title {
    text-align: center;
    margin-bottom: clamp(16px, 2vw, 24px);
}

.tech-card__body {
    max-width: 78ch;
    margin-inline: auto;
}

.tech-card__text {
    color: color-mix(in srgb, var(--text) 72%, var(--muted));
}

.tech-card__subtitle {
    margin: clamp(18px, 2.5vw, 26px) 0 10px;
    font-weight: 700;
    color: var(--text);
}

.tech-card__list {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.5rem;
    color: color-mix(in srgb, var(--text) 72%, var(--muted));
}

.tech-card__list li::marker {
    color: color-mix(in srgb, var(--accent) 65%, var(--muted));
}

.tech-card__foot {
    margin-top: clamp(18px, 2.5vw, 26px);
    color: color-mix(in srgb, var(--text) 78%, var(--muted));
}

/* =========================================================
   No brief (Если у вас нет техзадания)
   ========================================================= */
.card--flat {
    border: 0;
    box-shadow: var(--shadow-100);
}

.no-brief__card {
    padding: 0;
    overflow: hidden;
    box-shadow: none;
}

.no-brief__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--gap-lg);
    align-items: center;
    padding: var(--space-xl);
}

.no-brief__content {
    min-width: 0;
}

.no-brief__text {
    color: var(--text);
    margin-bottom: 2rem;
}

.no-brief__content > p.text-body {
    color: var(--text);
}

.no-brief__list {
    margin-bottom: 3rem;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.75rem;
    color: var(--text);
}

.no-brief__list li::marker {
    color: color-mix(in srgb, var(--accent) 70%, transparent);
}

.no-brief__actions {
    margin-top: 0.5rem;
}

.no-brief__visual {
    display: flex;
    justify-content: flex-end;
}

.no-brief__visual img {
    width: min(520px, 100%);
    height: auto;
}

@media (max-width: 1100px) {
    .no-brief__grid {
        grid-template-columns: 1fr;
    }

    .no-brief__visual {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .no-brief__grid {
        padding: clamp(18px, 4.5vw, 28px);
    }
}

@media (max-width: 520px) {
    .stack--hero > h1 {
        margin-bottom: 1.75rem;
    }

    @media (max-width: 520px) {
        /* Prevent horizontal overflow from long words (mobile only) */
        :where(p, li, dd, dt, blockquote, .subtitle) {
            overflow-wrap: break-word;
            hyphens: auto;
        }

        :where(h1, h2, h3) {
            overflow-wrap: anywhere;
            hyphens: auto;
        }
    }

    .stack--hero > .hero__lead {
        margin-bottom: 2.25rem;
    }

    .stack--hero > .hero__actions {
        margin-bottom: 2.25rem;
    }
}

/* =========================================================
   Footer
   ========================================================= */
.footer__grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
}

.footer__logos {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.footer__logo {
    height: 32px;
    width: auto;
}

.footer__x {
    height: 16px;
    width: auto;
    opacity: 0.7;
    filter: brightness(0) invert(1);
}

.footer__logo-link {
    display: inline-flex;
    align-items: center;
}

.footer__note {
    margin: 0;
    max-width: 48ch;
    color: rgba(255, 255, 255, 0.78);
    font-size: var(--fs-small);
    line-height: var(--lh-small);
}

.footer__nav {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.footer__link {
    color: rgba(255, 255, 255, 0.86);
    padding: 6px 0;
    transition: opacity 160ms ease, transform 160ms ease;
}

.footer__link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.footer__link--muted {
    color: rgba(255, 255, 255, 0.70);
}

.footer__actions {
    display: grid;
    justify-items: end;
    gap: 14px;
}

.footer__cta {
    width: fit-content;
}

.footer__top {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.9);
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.footer__top:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.32);
}

.footer__top-icon {
    font-size: 1.1em;
    transform: translateY(-1px);
}

.footer__bottom {
    margin-top: clamp(22px, 3.5vw, 44px);
    padding-top: clamp(18px, 2.5vw, 28px);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer__legal {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: var(--fs-small);
    line-height: var(--lh-small);
}

.footer__meta {
    display: inline-flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

@media (max-width: 1100px) {
    .footer__grid {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: var(--space-xl);
    }

    .footer__brand {
        display: grid;
        justify-items: center;
    }

    .footer__logos {
        justify-content: center;
        margin-bottom: 0;
    }

    .footer__nav {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        flex-wrap: nowrap;
        gap: var(--space-md);
    }

    .footer__actions {
        justify-items: center;
    }

    .footer__top {
        justify-content: center;
    }
}

/* =========================================================
   Calculator
   ========================================================= */
.calc__grid {
    display: grid;
    grid-template-columns: 1fr 0.95fr;
    gap: var(--gap-lg);
    align-items: stretch;
}

.calc__form {
    background: #ffffff;
    padding: var(--card-p-lg);
}

.calc__form,
.calc__result {
    height: 100%;
}

.calc__fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

.calc__fieldset + .calc__fieldset {
    margin-top: clamp(28px, 3.2vw, 40px);
}

.calc__legend {
    margin-bottom: 14px;
    color: var(--text);
}

.calc__label {
    display: block;
}

.calc__select {
    width: 100%;
    height: var(--calc-control-h);
    border-radius: var(--calc-control-r);
    border: 1px solid rgba(153, 136, 221, 0.45);
    background: #fff;
    padding: 0 1.25rem;
    font-size: var(--fs-middle);
    line-height: var(--lh-middle);
    color: var(--text);
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(67, 56, 109, 0.9) 50%),
    linear-gradient(135deg, rgba(67, 56, 109, 0.9) 50%, transparent 50%);
    background-position: calc(100% - 2.125rem) 50%,
    calc(100% - 1.5rem) 50%;
    background-size: 0.625rem 0.625rem, 0.625rem 0.625rem;
    background-repeat: no-repeat;
}

/* FIX: stable paint for dropdown on first open (Chrome/Safari) */
.calc-cselect__panel {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.calc-cselect__panel-inner {
    transform: translateZ(0);
}

.calc__timeline {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
}

.calc__range {
    --range-pct: 0%;
    width: 100%;
    height: 1.875rem;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
}

.calc__months {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.calc__months-input {
    width: 92px;
    height: var(--calc-control-h);
    border-radius: var(--calc-control-r);
    border: 1px solid var(--field-border);
    text-align: center;
    font-size: var(--fs-middle);
    line-height: var(--lh-middle);
    color: var(--text);
    background: var(--field-bg);
}

.calc__select:focus-visible,
.calc__months-input:focus-visible {
    outline: 2px solid var(--field-border-strong);
    outline-offset: 3px;
}

.calc__months-suffix {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--text);
}

/* Checkbox */
.calc__check {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    user-select: none;
}

.calc__check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.calc__check-box {
    position: relative;
    width: 24px;
    height: 24px;
    border: 1.5px solid var(--accent);
    border-radius: 6px;
    background: #fff;
    flex-shrink: 0;
}

.calc__check-input:checked + .calc__check-box {
    background: rgba(153, 136, 221, 0.18);
    border-color: var(--field-border-strong);
}

.calc__check-input:checked + .calc__check-box::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 4px;
    width: 7px;
    height: 12px;
    border-right: 2px solid rgba(67, 56, 109, 0.95);
    border-bottom: 2px solid rgba(67, 56, 109, 0.95);
    transform: rotate(40deg);
}

.calc__check-text {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--text);
}

/* Right card (purple) */
.calc__result {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(153, 136, 221, 0.25);
    background: linear-gradient(180deg, rgba(153, 136, 221, 0.95), rgba(141, 126, 204, 0.92));
    color: #fff;
    overflow: hidden;
}

.calc__result-inner {
    padding: var(--card-p-lg);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.calc__result-inner > * + * {
    margin-top: 16px;
}

.calc__spacer {
    flex: 1 1 auto;
}

.calc__result-title {
    margin: 0 0 0.75rem;

    /* ~12px */
    font-size: var(--fs-h3);
    line-height: var(--lh-h3);
    font-weight: 600;
    color: #fff;
}

.calc__result-info {
    margin: 0;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 46ch;
}

.calc-cselect__trigger,
.calc-cselect__option {
    line-height: var(--lh-body);
}

.calc__result-filled {
    margin-top: 10px;
}

.calc__price {
    font-size: clamp(2.2rem, 3.2vw, 3.2rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
}

.calc__meta {
    margin-top: 8px;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.92);
}

.calc__base {
    margin-top: 10px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.92);
}

/* Discount block */
.calc__discount {
    margin-top: 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.16);
    padding: 16px 16px;
}

.calc__discount-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.calc__discount-row {
    display: grid;
    grid-template-columns: 1.6em 1fr;
    column-gap: 12px;
    align-items: baseline;
}

.calc__discount-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform: translateY(0.05em);
}

.calc__discount-saving {
    margin-top: 8px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
}

.calc__discount-time {
    margin-top: 10px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
}

/* CTA */
.calc__cta {
    width: 100%;
    margin-top: 16px;
    background: #fff;
    color: rgba(67, 56, 109, 1);
    border-color: rgba(255, 255, 255, 0.55);
}

.calc__cta:hover {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.75);
}

.calc__cta-note {
    margin: 10px 0 0;
    text-align: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.calc__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive */
@media (max-width: 1100px) {
    .calc__grid {
        grid-template-columns: 1fr;
    }

    .calc__timeline {
        grid-template-columns: 1fr;
    }

    .calc__months {
        justify-content: flex-start;
    }
}

/* ===== Range (custom) ===== */
.calc__range {
    --range-pct: 50%;
    width: 100%;
    height: 1.875rem;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
}

/* Track */
.calc__range::-webkit-slider-runnable-track {
    height: 0.75rem;
    border-radius: 999px;
    background: linear-gradient(
    to right,
    var(--accent) 0%,
    var(--accent) var(--range-pct),
    #D4D2E3 var(--range-pct),
    #D4D2E3 100%
  );
}

.calc__range::-moz-range-track {
    height: 0.75rem;
    border-radius: 999px;
    background: #D4D2E3;
}

.calc__range::-moz-range-progress {
    height: 0.75rem;
    border-radius: 999px;
    background: var(--accent);
}

/* Thumb */
.calc__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 999px;
    background: var(--accent);
    border: none;
    box-shadow: 0 0 0 0.25rem #fff,             
    0 0 0 0.5rem rgba(152, 149, 183, 0.2);
    margin-top: calc((0.75rem - 1.625rem) / 2);
}

.calc__range::-moz-range-thumb {
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 999px;
    background: var(--accent);
    border: none;
    box-shadow: 0 0 0 0.25rem #fff,
    0 0 0 0.5rem rgba(152, 149, 183, 0.2);
}

/* =========================================================
   CTA form (glass)
   ========================================================= */
.cta {
    background: linear-gradient(180deg, var(--c-violet), var(--c-violet-mid));
    color: #fff;
}

.cta__head {
    margin-bottom: var(--gap-lg);
    display: grid;
    justify-items: center;
    gap: 12px;
}

.cta__title {
    color: #fff;
}

.cta__subtitle {
    color: rgba(255, 255, 255, 0.9);
    max-width: 70ch;
    margin-inline: auto;
}

.cta__form {
    margin-top: var(--space-xl);
}

.cta__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-lg);
}

.cta__field--full {
    grid-column: 1 / -1;
}

.cta__input,
.cta__select,
.cta__textarea {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-field-border);
    background: var(--glass-field-bg);
    color: #fff;
    padding: 18px var(--field-px);
    outline: none;
    scrollbar-gutter: stable;
}

/* =========================================================
   CTA: fix Chrome autofill (keeps glass background)
   ========================================================= */
.cta__input:-webkit-autofill,
.cta__input:-webkit-autofill:hover,
.cta__input:-webkit-autofill:focus,
.cta__textarea:-webkit-autofill,
.cta__textarea:-webkit-autofill:hover,
.cta__textarea:-webkit-autofill:focus,
.cta__select:-webkit-autofill,
.cta__select:-webkit-autofill:hover,
.cta__select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--glass-field-bg) inset;
    box-shadow: 0 0 0 1000px var(--glass-field-bg) inset;
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
    transition: background-color 999999s ease-in-out 0s;
}

.cta__input:-webkit-autofill,
.cta__textarea:-webkit-autofill,
.cta__select:-webkit-autofill {
    filter: none;
}

.cta__input:autofill,
.cta__textarea:autofill,
.cta__select:autofill {
    box-shadow: 0 0 0 1000px var(--glass-field-bg) inset;
    caret-color: #fff;
}

.cta__input,
.cta__select {
    height: var(--field-h);
}

.cta__textarea {
    min-height: 180px;
    padding: 22px var(--field-px) 18px;
    resize: none;
    overflow: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-field-border);
    background: var(--glass-field-bg);
    color: #fff;
    clip-path: inset(0 round var(--radius-sm));
    -webkit-mask-image: -webkit-radial-gradient(white, black);

    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.55) rgba(255,255,255,0.12);
}

/* Chrome / Edge / Safari */
.cta__textarea::-webkit-scrollbar {
    width: 18px;
}

.cta__textarea::-webkit-scrollbar-track {
    margin: 8px 0;
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
}

.cta__textarea::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.55);
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.12);
}

.cta__textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.70);
}

.cta__textarea::-webkit-scrollbar-thumb:active {
    background: #fff;
    border-color: rgba(255,255,255,0.22);
}

.cta__textarea::-webkit-resizer {
    display: none;
}

.cta__textarea::-webkit-scrollbar-corner {
    background: transparent;
}

.cta__textarea::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}

.cta__textarea::-webkit-scrollbar-button:single-button {
    display: none;
}

.cta__textarea::-webkit-scrollbar-button:start:decrement,
.cta__textarea::-webkit-scrollbar-button:end:increment,
.cta__textarea::-webkit-scrollbar-button:vertical:start:decrement,
.cta__textarea::-webkit-scrollbar-button:vertical:end:increment {
    display: none;
    width: 0;
    height: 0;
}

.cta__input::placeholder,
.cta__textarea::placeholder {
    color: var(--glass-placeholder);
}

.cta__select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.95) 50%),
    linear-gradient(135deg, rgba(255,255,255,0.95) 50%, transparent 50%);
    background-position: calc(100% - 34px) 50%,
    calc(100% - 24px) 50%;
    background-size: 10px 10px, 10px 10px;
    background-repeat: no-repeat;
}

.cta__input:focus-visible,
.cta__select:focus-visible,
.cta__textarea:focus-visible {
    outline: none;
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
}

.cta__actions {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--gap-lg);
    align-items: center;
    margin-top: var(--gap-lg);
}

.cta__submit {
    background: #fff;
    color: var(--c-footer);
    border-color: rgba(255, 255, 255, 0.6);
    min-width: 260px;
}

.cta__submit:hover {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.75);
}

.cta__legal {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.35;
}

.cta__legal a {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .cta__grid {
        grid-template-columns: 1fr;
    }

    .cta__actions {
        grid-template-columns: 1fr;
    }

    .cta__submit {
        width: 100%;
        min-width: 0;
    }
}

/* =========================================================
   CTA: purple dropdown (same component, CTA color logic)
   ========================================================= */
.cta__select.is-enhanced {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.cta .calc-cselect__trigger {
    height: var(--field-h);
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-field-border);
    background: var(--glass-field-bg);
    color: #fff;
    padding: 0 var(--field-px);
}

.cta .calc-cselect__value.is-placeholder {
    color: var(--glass-placeholder);
}

.cta .calc-cselect__trigger::after {
    border-right-color: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.95);
}

.cta .calc-cselect__panel {
    background: #5c4e90;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.35);
}

.cta .calc-cselect__option {
    color: #fff;
}

.cta .calc-cselect__option:hover,
.cta .calc-cselect__option[aria-selected="true"] {
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 920px) {
    .partners__grid {
        grid-template-columns: 1fr;
        align-items: start;
        gap: var(--space-lg);
    }

    .partners__logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-lg);
    }
}

@media (max-width: 900px) {
    .cta__grid {
        grid-template-columns: 1fr;
    }

    .cta__actions {
        grid-template-columns: 1fr;
    }

    .cta__submit {
        width: 100%;
        min-width: 0;
    }
}

/* Controls for horizontal galleries */
:root {
    --pslider-gray: #a8a5b7;
}

.pslider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
    height: 94px;
}

.pslider__pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 58px;
    padding: 0 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    overflow: hidden;
}

.pslider__bar {
    display: none;
    width: 120px;
    height: 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pslider-gray) 30%, transparent);
    overflow: hidden;
    flex: 0 0 auto;
}

.pslider__bar > i {
    display: block;
    height: 100%;
    width: var(--pslider-progress, 0%);
    border-radius: 999px;
    background: var(--pslider-gray);
}

/* dots */
.pslider__dots {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-left: 18px;
    margin-left: 0;
}

.pslider__dot {
    -webkit-appearance: none;
    appearance: none;
    width: 9px;
    height: 9px;
    padding: 0;
    margin: 0;
    border: 0;
    min-width: 0;
    min-height: 0;
    line-height: 0;
    border-radius: 999px;
    background: rgba(168, 165, 183, 0.45);
    cursor: pointer;
    display: inline-block;
    flex: 0 0 auto;
}

.pslider__dot[aria-current="true"] {
    background: var(--pslider-gray);
}

/* play / pause button */
.pslider__toggle {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    border: 0;
    color: var(--pslider-gray);
    background: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* icons */
.pslider__toggle svg {
    width: 30px;
    height: 30px;
    opacity: 0.7;
    display: block;
    transform-origin: 50% 50%;
}

/* optical compensation for play */
.pslider__toggle svg[data-icon="play"] {
    transform: scale(1.15) translateX(0.04em);
}

/* Hide horizontal scrollbar (keeps scrolling) */
.gallery {
    scrollbar-width: none;

    /* Firefox */
    -ms-overflow-style: none;
}

.gallery::-webkit-scrollbar {
    height: 0;
    display: none;
}

/* =========================
   Card modal
   ========================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

.modal[aria-hidden="false"] {
    display: block;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.modal__dialog {
    position: relative;
    width: min(860px, calc(100vw - 48px));
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: var(--radius-lg);
}

.modal__content {
    padding: 50px;
    display: flex;
    gap: 30px;
}

.modal__icon {
    flex: 0 0 auto;
}

.modal__text {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0;
}

/* close */
.modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    opacity: 0.6;
    display: grid;
    place-items: center;
}

.modal__close:hover {
    opacity: 1;
}

.modal__close svg {
    width: 22px;
    height: 22px;
    display: block;
}

.modal__body p {
    margin: 0;
}

.modal__body p + p {
    margin-top: 1rem;
}

/* mobile */
@media (max-width: 640px){
    .modal__content {
        padding: 28px;
        flex-direction: column;
        gap: 18px;
    }
}

/* =========================
   Custom dropdown for .calc__select 
   ========================= */
.calc__label {
    position: relative;
}

.calc__select.is-enhanced {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.calc-cselect {
    position: relative;
    width: 100%;
}

.calc-cselect__trigger {
    width: 100%;
    height: var(--calc-control-h);
    border-radius: var(--calc-control-r);
    border: 1px solid rgba(153, 136, 221, 0.45);
    background: #fff;
    padding: 0 1.25rem;
    font-size: var(--fs-body);
    line-height: var(--lh-middle);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.calc-cselect__value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calc-cselect__trigger::after {
    content: "";
    width: 0.7rem;
    height: 0.7rem;
    box-sizing: border-box;
    border-right: 2px solid rgba(67, 56, 109, 0.9);
    border-bottom: 2px solid rgba(67, 56, 109, 0.9);
    margin-left: auto;
    transform-origin: 50% 50%;
    transform: translateY(0) rotate(45deg);
    transition: transform 180ms ease;
}

.calc-cselect.is-open .calc-cselect__trigger::after {
    transform: translateY(2px) rotate(-135deg);
}

.calc-cselect__trigger:focus-visible {
    outline: 2px solid var(--field-border-strong);
    outline-offset: 3px;
}

.calc-cselect__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.5rem);
    z-index: 200;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 0.875rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 240ms ease, transform 220ms ease, opacity 0ms linear;
    pointer-events: none;
}

.calc-cselect.is-open .calc-cselect__panel {
    max-height: 22rem;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ===== Flip dropdown up if near viewport bottom ===== */
.calc-cselect.is-open-up .calc-cselect__panel {
    top: auto;
    bottom: calc(100% + 0.5rem);
    transform: translateY(6px);

    /* вместо -6px при открытии вверх */
}

.calc-cselect.is-open-up.is-open .calc-cselect__panel {
    transform: translateY(0);
}

.calc-cselect__panel-inner {
    max-height: 22rem;
    overflow: auto;
    padding: 0.25rem;
}

.calc-cselect__option {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 0.75rem 0.9rem;
    border-radius: 0.7rem;
    font-size: var(--fs-body);
    line-height: var(--lh-middle);
    color: var(--text);
    cursor: pointer;
}

.calc-cselect__option:hover,
.calc-cselect__option[aria-selected="true"] {
    background: rgba(153, 136, 221, 0.14);
}

.calc-cselect__option:focus-visible {
    outline: 2px solid var(--field-border-strong);
    outline-offset: 2px;
}

.calc-cselect__value.is-placeholder {
    color: rgba(15, 23, 42, 0.55);
}

/* =========================================================
   Motion: reveal on scroll (IntersectionObserver)
   ========================================================= */
:root {
    --reveal-y: 14px;
    --reveal-dur: 520ms;
    --reveal-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal {
    opacity: 0;
    transform: translate3d(0, var(--reveal-y), 0);
    transition: transform var(--reveal-dur) var(--reveal-ease), opacity var(--reveal-dur) var(--reveal-ease);
    will-change: transform, opacity;
}

.reveal.is-in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.reveal[data-reveal-delay] {
    transition-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
}

/* =========================
   Hero motion
   ========================= */
.hero__content {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    animation: heroIn 1100ms cubic-bezier(0.2, 0.8, 0.2, 1) 180ms forwards;
}

.hero__visual {
    opacity: 0;
    transform: translate3d(18px, 0, 0) scale(0.98);
    animation: heroInVisual 1700ms cubic-bezier(0.2, 0.8, 0.2, 1) 280ms forwards;
}

.hero__art {
    transform-origin: 80% 30%;
    animation: heroFloat 6.5s ease-in-out 1.1s infinite;
    will-change: transform;
}

/* keyframes */
@keyframes heroIn {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes heroInVisual {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes heroFloat {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    50% {
        transform: translate3d(0, -10px, 0) rotate(-0.6deg);
    }

    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero__content,
    .hero__visual {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .hero__art {
        animation: none;
        will-change: auto;
    }
}

/* =========================================================
   Motion: Process steps reveal (right -> left)
   ========================================================= */
.reveal-x {
    opacity: 0;
    transform: translate3d(18px, 0, 0);
    transition: transform var(--reveal-dur, 520ms) var(--reveal-ease, cubic-bezier(0.2, 0.8, 0.2, 1)),
                opacity var(--reveal-dur, 520ms) var(--reveal-ease, cubic-bezier(0.2, 0.8, 0.2, 1));
    will-change: transform, opacity;
}

.reveal-x.is-in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.reveal-x[data-reveal-delay] {
    transition-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-x {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
}

/* HERO SVG blocks reveal */
.hero__visual svg [id^="hero-block_hero-block--"] {
    opacity: 0;
    transform: translate3d(0, 32px, 0) scale(0.97);
    transform-origin: 50% 50%;
    will-change: transform, opacity;
}

.hero__visual.is-in svg [id^="hero-block_hero-block--"] {
    animation: heroSvgBlockIn 1200ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__visual.is-in svg #hero-block_hero-block--1 {
    animation-delay: 120ms;
}

.hero__visual.is-in svg #hero-block_hero-block--2 {
    animation-delay: 360ms;
}

.hero__visual.is-in svg #hero-block_hero-block--3 {
    animation-delay: 600ms;
}

@keyframes heroSvgBlockIn {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__visual svg [id^="hero-block_hero-block--"] {
        opacity: 1;
        transform: none;
        animation: none;
        will-change: auto;
    }
}

/* =========================================
   Calculator reveal cascade
   ========================================= */
.calc__form.reveal {
    transition-delay: 0s;
}

.calc__result.reveal {
    transition-delay: 0.2s;
}

/* =========================================================
   10) Responsive
   ========================================================= */
/* Tablet & below: header + grids + hero */
@media (max-width: 1100px) {
    /* Grids */
    .grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .no-brief__grid {
        gap: var(--space-lg);
    }
}

@media (max-width: 520px) {
    .no-brief__grid {
        gap: var(--space-xl);
    }
}

/* =========================================================
   Mobile: gallery arrows above (left), hide dots
   ========================================================= */
@media (max-width: 768px) {
    .gallery-shell {
        --gallery-pad: 24px;
        padding-top: 58px;
    }

    /* показываем стрелки на таче */
    .gallery-nav {
        opacity: 1 !important;
        pointer-events: auto !important;
        top: 0;
        transform: none;
    }

    .gallery-nav--prev {
        left: var(--gallery-pad);
        right: auto;
    }

    .gallery-nav--next {
        left: calc(var(--gallery-pad) + 56px);
        right: auto;
        transform: none;
    }

    .pslider {
        display: none;
    }
}

@media (max-width: 980px) {
    .grid--3 {
        grid-template-columns: 1fr;
    }

    .grid--2 {
        grid-template-columns: 1fr;
    }

    .nav {
        grid-template-columns: auto auto;
    }

    .nav__links {
        display: none;
    }

    .nav__actions {
        display: none;
    }

    .nav__burger {
        display: flex;
        justify-content: flex-end;
    }

    .team__card {
        grid-template-columns: 1fr;
    }

    .process__track {
        flex-direction: column;
    }

    .process__step {
        transform: none;
        width: 100%;
    }
}

@media (max-width: 940px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .partners__grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .partners__logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-lg);
    }
}

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

@media (max-width: 420px){
    .team__stats {
        grid-template-columns: 1fr;
    }

    .team__stat {
        min-height: auto;
        padding: 16px 18px;
    }

    .team__stat:nth-child(2n) {
        border-left: 0;
    }

    .team__stat:nth-child(n + 2) {
        border-top: 1px solid rgba(15, 23, 42, 0.22);
    }

    .team__stat-value {
        font-size: clamp(2.75rem, 14vw, 3.5rem);
    }
}

@media (max-width: 520px){
    :root {
        --fs-body: 1rem;
        --lh-body: 1.55;
        --fs-middle: 1rem;
    }
}

@media (max-width: 520px) {
    .grid--4 {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 768px){
    .gallery__track {
        grid-auto-columns: clamp(16rem, 70vw, 18rem);
    }
}

@media (max-width: 767px) {
    .section__head + .process__rail {
        margin-top: 12px;
    }

    .process__rail {
        margin-bottom: 4px;
    }
}

@media (max-width: 768px) {
    .footer__bottom {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    .footer__meta {
        justify-content: center;
    }
}

/* =========================================================
   Reduce spacing between Platforms and Expertise sections
   ========================================================= */
@media (min-width: 769px) {
    .platforms + .expertise {
        padding-top: calc(var(--section-py) / 3);
    }
}

@media (max-width: 768px) {
    .platforms + .expertise {
        padding-top: calc(var(--section-py) / 2);
    }
}

