/* =========================================================
   SHRAMKO — Clean Tech с характером: тёплый почти-чёрный,
   акцент — закат (orange → gold), а не типовой tech-градиент.
   ========================================================= */

:root {
    --bg: #0b0a08;
    --bg-alt: #131009;
    --surface: #19140e;
    --surface-2: #221b12;
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.15);
    --text: #f8f5ef;
    --text-dim: #ab9d8c;
    --text-faint: #756a5b;

    --accent-1: #ff6a3d;
    --accent-2: #ffc94a;
    --gradient: linear-gradient(120deg, var(--accent-1), var(--accent-2));
    --accent-solid: #ff8c42;

    --success: #34d399;
    --danger: #ff5470;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 0 1px rgba(255, 140, 66, 0.25), 0 20px 50px rgba(255, 106, 61, 0.2);

    --font-display: 'Unbounded', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --container: 1240px;
    --header-h: 76px;
}

@media (min-width: 1700px) {
    :root { --container: 1380px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3,
.logo, .hero__stat-num, .founder-card__name, .case-metric__value,
.chat-window__title, .stat-card__num {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

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

/* =================== PRELOADER =================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(circle at 50% 30%, #12162238 0%, var(--bg) 70%), var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: min(280px, 80vw);
}
.preloader__bar-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: var(--surface-2);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--border);
}
.preloader__bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: var(--gradient);
    box-shadow: 0 0 16px rgba(108, 92, 255, 0.7);
    transition: width 0.15s ease-out;
}
.preloader__percent {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
}
.preloader__text {
    font-size: 14px;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

/* =================== HEADER =================== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 500;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(10, 12, 17, 0.7);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.header.is-scrolled {
    border-bottom-color: var(--border);
    background: rgba(10, 12, 17, 0.92);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.logo__dot { color: var(--accent-2); }
.nav { display: flex; gap: 28px; }
.nav__link {
    font-size: 14.5px;
    color: var(--text-dim);
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}
.nav__link:hover { color: var(--text); }
.header__actions { display: flex; align-items: center; gap: 16px; }
.header__phone {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-dim);
    transition: color 0.2s ease;
    white-space: nowrap;
}
.header__phone:hover { color: var(--text); }

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    padding: 0;
}
.burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =================== BUTTONS =================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
}
.btn--primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 10px 30px rgba(108, 92, 255, 0.35);
}
.btn--primary:hover {
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 16px 40px rgba(108, 92, 255, 0.5);
}
.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn--ghost:hover {
    border-color: var(--accent-solid);
    background: rgba(124, 108, 251, 0.08);
    transform: translateY(-2px);
}
.btn--sm { padding: 9px 18px; font-size: 13.5px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { width: 100%; }

/* =================== HERO =================== */
.hero {
    position: relative;
    padding: calc(var(--header-h) + 96px) 0 90px;
    overflow: hidden;
}
.hero__glow {
    position: absolute;
    top: -220px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 620px;
    background: radial-gradient(closest-side, rgba(108, 92, 255, 0.35), rgba(0, 212, 255, 0.12) 55%, transparent 75%);
    filter: blur(10px);
    pointer-events: none;
}
.hero__inner {
    position: relative;
    max-width: 960px;
    text-align: center;
    margin: 0 auto;
}
.eyebrow {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(255,255,255,0.03);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 24px;
    letter-spacing: 0.01em;
}
.hero__title {
    font-size: clamp(32px, 5.2vw, 56px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 22px;
}
.hero__subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 auto 36px;
}
.hero__cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}
.hero__stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.hero__stat { display: flex; flex-direction: column; gap: 4px; }
.hero__stat-num {
    font-size: 26px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__stat-label {
    font-size: 13px;
    color: var(--text-faint);
    max-width: 160px;
}

.hero__visual {
    position: relative;
    margin: 56px auto 0;
    max-width: 760px;
    height: 180px;
}
.hero__chart { width: 100%; height: 100%; display: block; }
.hero__chart-line {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: heroLineDraw 2.2s 0.4s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes heroLineDraw { to { stroke-dashoffset: 0; } }

.hero__chip {
    position: absolute;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-dim);
    white-space: nowrap;
    opacity: 0;
    animation: heroChipIn 0.6s ease forwards;
}
.hero__chip--1 { top: 46%; left: 14%; animation-delay: 1.1s; }
.hero__chip--2 { top: 30%; left: 46%; animation-delay: 1.5s; }
.hero__chip--3 { top: 2%; left: 72%; animation-delay: 1.9s; color: var(--accent-2); }
@keyframes heroChipIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =================== SECTION SHARED =================== */
.section { padding: 90px 0; }
.section--dev { background: var(--bg-alt); }
.section__eyebrow {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-2);
    margin: 0 0 12px;
}
.section__title {
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
    max-width: 760px;
}
.section__lead {
    color: var(--text-dim);
    font-size: 16.5px;
    max-width: 640px;
    margin: 0 0 48px;
}

/* =================== CARDS / SERVICES (bento) =================== */
.grid { display: grid; gap: 20px; }
.grid--services {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(150px, auto);
    grid-auto-flow: dense;
}

.card {
    background: linear-gradient(180deg, var(--surface), var(--bg-alt));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-glow);
}
.card__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 140, 66, 0.14);
    color: var(--accent-2);
    margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; }
.card__title { font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.card__text { font-size: 14.5px; color: var(--text-dim); margin: 0; }

.card--featured {
    grid-column: span 2;
    grid-row: span 2;
    padding: 36px;
    background: linear-gradient(160deg, rgba(255, 106, 61, 0.1), var(--surface) 55%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.card--featured .card__icon--lg {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--gradient);
    color: #17110a;
}
.card--featured .card__icon--lg svg { width: 30px; height: 30px; }
.card__tag {
    align-self: flex-start;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-2);
    margin-bottom: 10px;
}
.card--featured .card__title { font-size: 26px; margin-bottom: 14px; }
.card--featured .card__text { font-size: 15.5px; max-width: 420px; }

/* =================== CASES (bento) =================== */
.section--cases { background: var(--bg-alt); }
.grid--cases {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(150px, auto);
    grid-auto-flow: dense;
}
.case-card { display: flex; flex-direction: column; }
.case-card__tag {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 201, 74, 0.14);
    color: var(--accent-2);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}
.case-card__title { font-size: 16.5px; font-weight: 700; margin: 0 0 8px; }
.case-card__desc { font-size: 13.5px; color: var(--text-dim); margin: 0 0 18px; flex-grow: 1; }
.case-card__metrics {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.case-metric { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.case-metric__label { font-size: 12px; color: var(--text-faint); }
.case-metric__value { font-size: 13.5px; font-weight: 700; color: var(--text); white-space: nowrap; }

.case-card--featured {
    grid-column: span 2;
    grid-row: span 2;
    padding: 34px;
    background: linear-gradient(160deg, rgba(255, 106, 61, 0.1), var(--surface) 55%);
}
.case-card--featured .case-card__title { font-size: 22px; }
.case-card--featured .case-card__desc { font-size: 14.5px; max-width: 380px; }
.case-card--featured .case-metric__value { font-size: 17px; }
.case-card--featured .case-metric__label { font-size: 13px; }

.case-card--medium { grid-column: span 2; }
.case-card--medium .case-card__metrics--row {
    flex-direction: row;
    justify-content: space-between;
    border-top: 1px solid var(--border);
}
.case-card--medium .case-metric { flex-direction: column; gap: 4px; }

/* =================== DEV SECTION =================== */
.dev__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
}
.check-list { display: flex; flex-direction: column; gap: 14px; margin: 28px 0 34px; }
.check-list li {
    display: flex;
    gap: 12px;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.5;
}
.check-list__icon {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(46, 230, 166, 0.15);
    color: var(--success);
    font-size: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-top: 2px;
}
/* premium hub-and-flow illustration: clients in, leads out, growth trend */
.dev__anim {
    background: linear-gradient(180deg, var(--surface), var(--bg-alt));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.dev__anim-svg { width: 100%; height: auto; display: block; aspect-ratio: 600 / 480; }

.dev__anim-path {
    fill: none;
    stroke: var(--border-strong);
    stroke-width: 1.4;
    stroke-linecap: round;
    opacity: 0.3;
}

.dev__anim-glow {
    filter: blur(8px);
    animation: devGlowPulse 8s ease-in-out infinite;
}
@keyframes devGlowPulse {
    0%, 100% { opacity: 0.45; }
    40% { opacity: 0.85; }
    60% { opacity: 0.55; }
}

.dev__anim-pulse {
    fill: none;
    stroke: var(--accent-solid);
    stroke-width: 1.5;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: devPulseRing 8s ease-out infinite;
}
@keyframes devPulseRing {
    0%, 34% { transform: scale(0.65); opacity: 0; }
    38% { opacity: 0.55; }
    55% { transform: scale(1.3); opacity: 0; }
    100% { opacity: 0; }
}

.dev__anim-hub {
    fill: rgba(34, 27, 18, 0.75);
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 1;
}
.dev__anim-hub-mark {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 30px;
    fill: var(--text);
    letter-spacing: -0.02em;
}

.dev__anim-dot--client { fill: var(--text-faint); }
.dev__anim-dot--lead { filter: drop-shadow(0 0 5px rgba(255, 140, 66, 0.5)); }

.dev__anim-trend {
    fill: none;
    stroke: var(--accent-2);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    opacity: 0;
    animation: devTrendDraw 8s ease-in-out infinite;
}
@keyframes devTrendDraw {
    0%, 62% { opacity: 0; stroke-dashoffset: 150; }
    68% { opacity: 1; }
    85%, 92% { opacity: 1; stroke-dashoffset: 0; }
    100% { opacity: 0; stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .dev__anim-glow, .dev__anim-pulse, .dev__anim-trend { animation: none !important; opacity: 0; }
}

/* =================== APPROACH =================== */
.founder-card {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    background: linear-gradient(180deg, var(--surface), var(--bg-alt));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    margin-bottom: 28px;
}
.founder-card__head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.founder-card__avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(255, 106, 61, 0.35);
}
.founder-card__avatar-initials { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #1a1208; }
.founder-card__avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.founder-card__name { font-size: 22px; font-weight: 800; margin: 0 0 2px; }
.founder-card__role { font-size: 13.5px; color: var(--accent-2); font-weight: 600; margin: 0; }
.founder-card__bio { font-size: 14.5px; color: var(--text-dim); line-height: 1.6; margin: 0 0 20px; }
.founder-card__facts { display: flex; flex-direction: column; gap: 10px; }
.founder-card__facts li { font-size: 14px; color: var(--text-dim); }
.founder-card__facts strong { color: var(--text); font-weight: 700; }
.founder-card__certs {
    border-left: 1px solid var(--border);
    padding-left: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.founder-card__certs-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-faint);
    margin-bottom: 14px;
}
.cert-badges { display: flex; flex-direction: column; gap: 8px; }
.cert-badge {
    font-size: 13px;
    color: var(--text-dim);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    border: 1px solid var(--border);
}

.grid--approach { grid-template-columns: 1fr 1fr; gap: 24px; }
.approach__col {
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
}
.approach__col--pain { background: linear-gradient(180deg, rgba(255,93,122,0.06), transparent); }
.approach__col--solve { background: linear-gradient(180deg, rgba(46,230,166,0.06), transparent); }
.approach__col-title { font-size: 18px; font-weight: 700; margin: 0 0 20px; }

/* =================== GUARANTEES =================== */
.guarantees { margin-top: 48px; }
.guarantees__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--text);
}
.grid--guarantees { grid-template-columns: repeat(3, 1fr); }
.card--guarantee .card__icon { background: rgba(52, 211, 153, 0.14); color: var(--success); }
.guarantees__note {
    margin: 24px 0 0;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border-strong);
    font-size: 13.5px;
    color: var(--text-dim);
}
.pain-list li, .solve-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text-dim);
    line-height: 1.5;
}
.pain-list li::before {
    content: "✕";
    position: absolute; left: 0; top: 0;
    color: var(--danger);
    font-weight: 700;
    font-size: 13px;
}
.solve-list li::before {
    content: "✓";
    position: absolute; left: 0; top: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 13px;
}

/* =================== FORMS (shared) =================== */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-dim); }
.field__optional { font-weight: 400; color: var(--text-faint); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="url"],
.field select {
    background: var(--bg-alt);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ab9d8c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 42px;
    cursor: pointer;
}
.field select:invalid { color: var(--text-dim); }
.field input:focus,
.field select:focus {
    border-color: var(--accent-solid);
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.2);
}
.field input.is-invalid { border-color: var(--danger); }
.field__error {
    display: none;
    font-size: 12.5px;
    color: var(--danger);
}
.field__error.is-visible { display: block; }

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-faint);
    margin-bottom: 22px;
    cursor: pointer;
}
.consent input { margin-top: 3px; }
.consent a,
.modal-form__consent a { color: var(--accent-solid); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover,
.modal-form__consent a:hover { color: var(--accent-2); }

.modal-form__consent {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-faint);
    margin: -6px 0 18px;
}

/* Плавное скрытие полей формы после успешной отправки */
.form-fields {
    display: block;
    transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.4s ease;
    opacity: 1;
    max-height: 900px;
    overflow: hidden;
}
.form-fields.is-hidden {
    opacity: 0;
    transform: translateY(-6px);
    max-height: 0;
    pointer-events: none;
}

/* =================== FORM STATUS (уведомление после отправки) =================== */
.form-status {
    display: none;
    align-items: flex-start;
    gap: 12px;
    margin: 16px 0 0;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    text-align: left;
    background: var(--surface);
    animation: statusIn 0.35s ease;
}
.form-status.is-visible { display: flex; }
.form-status__icon {
    flex: none;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.form-status__icon svg { width: 100%; height: 100%; }
.form-status__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.form-status__title {
    font-family: var(--font-display);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.form-status__subtext {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-faint);
}
.form-status.is-pending {
    border-color: var(--border);
    color: var(--text-dim);
}
.form-status.is-pending .form-status__icon { color: var(--text-dim); }
.form-status.is-success {
    border-color: rgba(52, 211, 153, 0.35);
    background: rgba(52, 211, 153, 0.09);
    color: var(--success);
}
.form-status.is-success .form-status__icon { color: var(--success); }
.form-status.is-error {
    border-color: rgba(255, 84, 112, 0.35);
    background: rgba(255, 84, 112, 0.09);
    color: var(--danger);
}
.form-status.is-error .form-status__icon { color: var(--danger); }
.form-status__spinner { animation: statusSpin 0.9s linear infinite; }

@keyframes statusIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes statusSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =================== FAQ =================== */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px 24px;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.faq-item[open] { border-color: var(--border-strong); background: var(--surface-2); }
.faq-item__q {
    list-style: none;
    cursor: pointer;
    padding: 20px 36px 20px 0;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    display: block;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: var(--accent-2);
    transition: transform 0.25s ease;
}
.faq-item[open] .faq-item__q::after { transform: translateY(-50%) rotate(135deg); }
.faq-item__a {
    margin: 0 0 22px;
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.6;
    max-width: 680px;
}

/* =================== LEAD FORM SECTION =================== */
.section--form { background: var(--bg-alt); }
.form-section__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.lead-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-lg);
}

/* =================== FOOTER =================== */
.footer { padding: 70px 0 28px; border-top: 1px solid var(--border); }
.footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.logo--footer { display: inline-block; margin-bottom: 14px; }
.footer__desc { color: var(--text-faint); font-size: 14px; max-width: 320px; }
.footer__title { font-size: 14px; font-weight: 700; margin: 0 0 16px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.footer__link { display: block; color: var(--text-faint); font-size: 14.5px; margin-bottom: 12px; transition: color 0.2s ease; }
.footer__link:hover { color: var(--accent-2); }
.footer__bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 13px;
}
.footer__bottom a { color: var(--text-faint); text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s ease; }
.footer__bottom a:hover { color: var(--accent-2); }

/* =================== STICKY WIDGETS =================== */
.sticky-widgets {
    position: fixed;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.25s ease;
}
.sticky-widgets.is-hidden {
    opacity: 0;
    pointer-events: none;
}
.sticky-btn {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--text);
    box-shadow: var(--shadow-lg);
    transition: transform 0.25s cubic-bezier(.2,.8,.2,1), background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.sticky-btn svg { width: 22px; height: 22px; }
.sticky-btn:hover {
    transform: scale(1.12) translateX(-2px);
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 10px 30px rgba(108, 92, 255, 0.5);
}

/* =================== MODAL (callback popup) =================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.is-open { visibility: visible; opacity: 1; }
.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 7, 11, 0.72);
    backdrop-filter: blur(4px);
}
.modal__box {
    position: relative;
    width: min(420px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 36px 30px 30px;
    box-shadow: var(--shadow-lg);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.modal.is-open .modal__box { transform: translateY(0) scale(1); }
.modal__close {
    position: absolute;
    top: 14px; right: 14px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--surface-2);
    border: none;
    color: var(--text-dim);
    font-size: 15px;
    transition: background 0.2s ease, color 0.2s ease;
}
.modal__close:hover { background: var(--gradient); color: #fff; }
.modal__title { font-size: 20px; font-weight: 700; margin: 0 0 10px; }
.modal__text { font-size: 14px; color: var(--text-dim); margin: 0 0 24px; }

/* =================== AI CHAT WIDGET =================== */
.chat-toggle {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 700;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 34px rgba(108, 92, 255, 0.5);
    transition: transform 0.25s cubic-bezier(.2,.8,.2,1);
}
.chat-toggle:hover { transform: scale(1.08); }
.chat-toggle svg { width: 24px; height: 24px; position: absolute; transition: opacity 0.2s ease, transform 0.2s ease; }
.chat-toggle__icon-close { opacity: 0; transform: rotate(-45deg); }
.chat-toggle.is-open .chat-toggle__icon-open { opacity: 0; transform: rotate(45deg); }
.chat-toggle.is-open .chat-toggle__icon-close { opacity: 1; transform: rotate(0); }

.chat-window {
    position: fixed;
    right: 22px;
    bottom: 92px;
    z-index: 699;
    width: min(360px, 90vw);
    height: min(480px, 65vh);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.97);
    transform-origin: bottom right;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(.2,.8,.2,1), visibility 0.25s ease;
}
.chat-window.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.chat-window__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}
.chat-window__avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; color: #fff;
    flex-shrink: 0;
}
.chat-window__title { font-size: 14.5px; font-weight: 700; }
.chat-window__status { font-size: 12px; color: var(--text-faint); display: flex; align-items: center; gap: 6px; }
.chat-window__status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); display: inline-block; }

.chat-window__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13.8px;
    line-height: 1.45;
    animation: msgIn 0.25s ease;
}
.chat-msg--bot {
    align-self: flex-start;
    background: var(--surface-2);
    border-bottom-left-radius: 4px;
}
.chat-msg--user {
    align-self: flex-end;
    background: var(--gradient);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-msg--typing {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 12px 14px;
}
.chat-msg--typing span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--text-faint);
    animation: typingBounce 1s infinite ease-in-out;
}
.chat-msg--typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-msg--typing span:nth-child(3) { animation-delay: 0.3s; }

.chat-window__form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}
.chat-window__form input {
    flex: 1;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--text);
    font-size: 13.8px;
    outline: none;
}
.chat-window__form input:focus { border-color: var(--accent-solid); }
.chat-window__form button {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.chat-window__form button:hover { transform: scale(1.08); }
.chat-window__form button svg { width: 17px; height: 17px; }

/* =================== ANIMATIONS =================== */
@keyframes msgIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
}
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =================== RESPONSIVE =================== */
@media (max-width: 960px) {
    .grid--services { grid-template-columns: repeat(2, 1fr); }
    .card--featured { grid-column: span 2; grid-row: span 1; }
    .grid--cases { grid-template-columns: repeat(2, 1fr); }
    .case-card--featured { grid-column: span 2; grid-row: span 1; }
    .case-card--medium { grid-column: span 2; }
    .dev__inner { grid-template-columns: 1fr; gap: 40px; }
    .dev__visual { order: -1; }
    .grid--approach { grid-template-columns: 1fr; }
    .grid--guarantees { grid-template-columns: 1fr 1fr; }
    .founder-card { grid-template-columns: 1fr; }
    .founder-card__certs { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 24px; }
    .form-section__inner { grid-template-columns: 1fr; gap: 36px; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .nav { display: none; }
    .burger { display: flex; }
    .header__phone { display: none; }
    .grid--services { grid-template-columns: 1fr; }
    .card--featured { grid-column: span 1; }
    .grid--cases { grid-template-columns: 1fr; }
    .case-card--featured, .case-card--medium { grid-column: span 1; }
    .grid--guarantees { grid-template-columns: 1fr; }
    .founder-card { padding: 26px 22px; }
    .hero { padding-top: calc(var(--header-h) + 56px); }
    .hero__stats { gap: 28px; }
    .hero__visual { height: 130px; margin-top: 40px; }
    .hero__chip { font-size: 11px; padding: 6px 12px; }
    .hero__chip--3 { left: 58%; }
    .footer__inner { grid-template-columns: 1fr; gap: 30px; }
    .footer__bottom { flex-direction: column; }
    .sticky-widgets {
        top: auto;
        bottom: 16px;
        right: 82px;
        transform: none;
        flex-direction: row;
        gap: 10px;
    }
    .sticky-btn { width: 44px; height: 44px; }
    .sticky-btn svg { width: 19px; height: 19px; }
    .chat-window { right: 12px; left: 12px; width: auto; bottom: 84px; }
    .chat-toggle { right: 16px; bottom: 16px; }
    .modal__box { padding: 28px 20px 24px; }
}

.nav.is-open {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(10, 12, 17, 0.98);
    backdrop-filter: blur(14px);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
}
.nav.is-open .nav__link { padding: 12px 4px; border-bottom: 1px solid var(--border); }
