/* ==========================================================================
   NEVZOROV LABS — design system
   Шрифты: Unbounded (заголовки), Golos Text (текст), JetBrains Mono (подписи)
   ========================================================================== */

:root {
    --bg: #070a08;
    --bg-2: #0b0f0d;
    --surface: #101512;
    --surface-2: #151b18;
    --line: rgba(255, 255, 255, 0.07);
    --line-2: rgba(255, 255, 255, 0.14);

    --text: #eef2ee;
    --text-2: #a8b1ab;
    --text-3: #6e7772;

    --green: #00d67d;
    --green-2: #6df5b6;
    --cyan: #00c6d4;
    --grad: linear-gradient(120deg, #00d67d 0%, #00c6d4 100%);
    --glow: rgba(0, 214, 125, 0.35);

    --font-display: 'Unbounded', 'Golos Text', sans-serif;
    --font-body: 'Golos Text', -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --container: 1180px;
    --gutter: 24px;
    --radius: 20px;
    --radius-sm: 12px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --t-fast: 0.2s ease;
    --t: 0.5s var(--ease);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

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

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

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

ul,
ol {
    list-style: none;
}

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

::selection {
    background: var(--green);
    color: #04140c;
}

:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --- Фоновая атмосфера: сетка, зерно, свет за курсором ---------------- */
.bg-atmo {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-atmo::before {
    /* точечная сетка */
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
}

.bg-atmo::after {
    /* зерно */
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.045;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.bg-glow {
    position: absolute;
    width: 900px;
    height: 900px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    background: radial-gradient(circle, rgba(0, 214, 125, 0.45), rgba(0, 198, 212, 0.15) 45%, transparent 70%);
    top: -420px;
    left: 50%;
    transform: translateX(-30%);
    animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
    to {
        transform: translateX(-70%) translateY(80px);
    }
}

.cursor-light {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(600px circle at var(--mx, -1000px) var(--my, -1000px), rgba(0, 214, 125, 0.07), transparent 60%);
    transition: opacity 0.4s;
}

main,
header,
footer {
    position: relative;
    z-index: 1;
}

/* --- Контейнер и секции ------------------------------------------------ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: clamp(72px, 9vw, 128px) 0;
}

.section--tight {
    padding: clamp(48px, 6vw, 80px) 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 20px;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--green);
}

.eyebrow b {
    font-weight: 500;
    color: var(--text-3);
}

.section-head {
    max-width: 760px;
    margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head--center .eyebrow {
    justify-content: center;
}

h1,
h2,
h3,
.display {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.2rem, 5.2vw, 4.2rem);
}

h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
}

h3 {
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    line-height: 1.25;
}

.lead {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    color: var(--text-2);
    max-width: 640px;
}

.section-head h2+.lead {
    margin-top: 18px;
}

.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mono {
    font-family: var(--font-mono);
}

.muted {
    color: var(--text-2);
}

/* --- Кнопки ------------------------------------------------------------ */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
    will-change: transform;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.btn-primary {
    background: var(--green);
    color: #04140c;
    box-shadow: 0 0 0 0 var(--glow);
}

.btn-primary:hover {
    background: var(--green-2);
    transform: translateY(-2px);
    box-shadow: 0 12px 34px -8px var(--glow);
}

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

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--line-2);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 32px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 11px 18px;
    font-size: 0.9rem;
}

.btn[disabled] {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

/* --- Шапка ------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 0;
    transition: background var(--t), border-color var(--t), padding var(--t), backdrop-filter var(--t);
    border-bottom: 1px solid transparent;
}

.header.is-scrolled {
    padding: 10px 0;
    background: rgba(7, 10, 8, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: var(--line);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.brand-mark {
    width: 34px;
    height: 34px;
    flex: none;
}

.brand span small {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.18em;
    color: var(--text-3);
    margin-top: 2px;
}

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

.nav a {
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 0.95rem;
    color: var(--text-2);
    transition: color var(--t-fast), background var(--t-fast);
}

.nav a:hover,
.nav a.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.burger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    background: transparent;
    cursor: pointer;
    position: relative;
}

.burger span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--t), opacity var(--t-fast), top var(--t);
}

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

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

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

.burger.is-open span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.burger.is-open span:nth-child(2) {
    opacity: 0;
}

.burger.is-open span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* --- Герой ------------------------------------------------------------- */
.hero {
    padding: clamp(130px, 16vw, 190px) 0 clamp(56px, 7vw, 96px);
    position: relative;
}

.hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.hero-copy h1 {
    margin: 0 0 22px;
}

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

.hero-price {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 0 22px;
    font-family: var(--font-mono);
    color: var(--text-2);
}

.hero-price strong {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--text);
    letter-spacing: -0.02em;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.hero-note {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-3);
    letter-spacing: 0.02em;
}

.hero-note span::before {
    content: "▸ ";
    color: var(--green);
}

/* Анимация появления героя при загрузке */
.hero-copy>* {
    animation: rise 0.9s var(--ease) both;
}

.hero-copy>*:nth-child(1) {
    animation-delay: 0.05s;
}

.hero-copy>*:nth-child(2) {
    animation-delay: 0.15s;
}

.hero-copy>*:nth-child(3) {
    animation-delay: 0.25s;
}

.hero-copy>*:nth-child(4) {
    animation-delay: 0.35s;
}

.hero-copy>*:nth-child(5) {
    animation-delay: 0.45s;
}

.hero-copy>*:nth-child(6) {
    animation-delay: 0.55s;
}

.hero-visual {
    animation: rise 1.1s var(--ease) 0.35s both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(26px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* --- Визуал героя: сайт собирается за день ----------------------------- */
.build {
    --cycle: 12s;
    position: relative;
    border-radius: 22px;
    border: 1px solid var(--line-2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.4) inset;
    padding: 14px;
    transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
    transform-style: preserve-3d;
}

.build-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
}

.build-bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--line-2);
}

.build-bar i:first-child {
    background: #ff5f57;
}

.build-bar i:nth-child(2) {
    background: #febc2e;
}

.build-bar i:nth-child(3) {
    background: #28c840;
}

.build-url {
    margin-left: 8px;
    flex: 1;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--line);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.build-screen {
    position: relative;
    border-radius: 12px;
    background: #0a0d0b;
    border: 1px solid var(--line);
    padding: 16px;
    min-height: 330px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* элементы-«кубики» будущего сайта */
.bk {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    animation: bk-in var(--cycle) var(--ease) infinite;
}

.bk-nav {
    height: 26px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    animation-delay: 0.6s;
}

.bk-nav i {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.18);
}

.bk-nav i:first-child {
    width: 44px;
    background: var(--green);
}

.bk-nav i:nth-child(2) {
    width: 30px;
    margin-left: auto;
}

.bk-nav i:nth-child(3),
.bk-nav i:nth-child(4) {
    width: 30px;
}

.bk-hero {
    padding: 18px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 16px;
    animation-delay: 1.8s;
}

.bk-hero .t {
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.22);
    margin-bottom: 8px;
}

.bk-hero .t.w2 {
    width: 70%;
}

.bk-hero .t.w3 {
    width: 45%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 12px;
}

.bk-hero .b {
    width: 74px;
    height: 20px;
    border-radius: 10px;
    background: var(--green);
    margin-top: 16px;
}

.bk-hero .img {
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 214, 125, 0.35), rgba(0, 198, 212, 0.15));
    min-height: 72px;
}

.bk-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: none;
    border: none;
    animation-delay: 3.2s;
}

.bk-cards div {
    height: 58px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.bk-cards div::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 10px;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: var(--cyan);
    opacity: 0.8;
}

.bk-cards div::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 24px;
    bottom: 12px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.16);
}

.bk-form {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    animation-delay: 4.4s;
}

.bk-form i {
    flex: 1;
    height: 20px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--line);
}

.bk-form b {
    width: 56px;
    height: 20px;
    border-radius: 6px;
    background: var(--green);
}

@keyframes bk-in {

    0%,
    2% {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }

    8%,
    82% {
        opacity: 1;
        transform: none;
    }

    90%,
    100% {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
}

.build-stamp {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--green);
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: rgba(0, 214, 125, 0.08);
    transform: rotate(-6deg) scale(1.4);
    opacity: 0;
    animation: stamp var(--cycle) var(--ease) infinite;
    animation-delay: 6.2s;
}

@keyframes stamp {

    0% {
        opacity: 0;
        transform: rotate(-6deg) scale(1.5);
    }

    3%,
    40% {
        opacity: 1;
        transform: rotate(-6deg) scale(1);
    }

    48%,
    100% {
        opacity: 0;
        transform: rotate(-6deg) scale(1);
    }
}

/* шкала дня под макетом */
.build-day {
    margin-top: 14px;
    padding: 0 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
}

.build-track {
    position: relative;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    margin: 8px 0 10px;
    overflow: hidden;
}

.build-track i {
    position: absolute;
    inset: 0;
    background: var(--grad);
    transform-origin: left;
    animation: fill var(--cycle) linear infinite;
}

@keyframes fill {
    0% {
        transform: scaleX(0);
    }

    55%,
    85% {
        transform: scaleX(1);
    }

    92%,
    100% {
        transform: scaleX(0);
    }
}

.build-ticks {
    display: flex;
    justify-content: space-between;
}

.build-ticks span {
    position: relative;
}

.build-ticks span:last-child {
    color: var(--green);
}

/* парящие карточки рядом с макетом */
.float-card {
    position: absolute;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(16, 21, 18, 0.9);
    border: 1px solid var(--line-2);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    animation: hover-y 6s ease-in-out infinite;
}

.float-card b {
    font-family: var(--font-mono);
    color: var(--green);
    font-weight: 500;
}

.float-card--a {
    left: -34px;
    top: 96px;
    animation-delay: -2s;
}

.float-card--b {
    right: -22px;
    bottom: 70px;
}

@keyframes hover-y {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* --- Бегущая строка ---------------------------------------------------- */
.ticker {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.015);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: ticker 40s linear infinite;
}

.ticker:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-track span {
    display: inline-flex;
    align-items: center;
    gap: 48px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-2);
    white-space: nowrap;
}

.ticker-track span::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

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

/* --- Услуги ------------------------------------------------------------ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    position: relative;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--line);
    padding: 30px 28px 28px;
    overflow: hidden;
    transition: transform var(--t), border-color var(--t), background var(--t);
}

.card::before {
    /* мягкий свет, который следует за курсором внутри карточки */
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--cx, 50%) var(--cy, 0%), rgba(0, 214, 125, 0.12), transparent 55%);
    opacity: 0;
    transition: opacity var(--t);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 214, 125, 0.35);
}

.card:hover::before {
    opacity: 1;
}

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

.service-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(0, 214, 125, 0.1);
    border: 1px solid rgba(0, 214, 125, 0.25);
    color: var(--green);
}

.service-icon svg {
    width: 26px;
    height: 26px;
}

.service-index {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
    letter-spacing: 0.14em;
}

.service h3 {
    margin-bottom: 10px;
}

.service p {
    color: var(--text-2);
    font-size: 0.98rem;
}

.service-price {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px dashed var(--line-2);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.price small {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 12px;
    color: var(--text-3);
    letter-spacing: 0.06em;
    margin-right: 6px;
}

.service-term {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-2);
}

.service-more {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--green);
}

.service-more svg {
    width: 16px;
    height: 16px;
    transition: transform var(--t-fast);
}

.card:hover .service-more svg {
    transform: translateX(4px);
}

.service--featured {
    background: linear-gradient(160deg, rgba(0, 214, 125, 0.16), rgba(0, 198, 212, 0.05) 60%, rgba(255, 255, 255, 0.02));
    border-color: rgba(0, 214, 125, 0.35);
}

.service-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--green);
    color: #04140c;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
}

.service-list {
    margin-top: 16px;
    display: grid;
    gap: 8px;
    font-size: 0.93rem;
    color: var(--text-2);
}

.service-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.service-list li::before {
    content: "";
    flex: none;
    width: 14px;
    height: 14px;
    margin-top: 5px;
    border-radius: 50%;
    background: rgba(0, 214, 125, 0.15);
    border: 1px solid rgba(0, 214, 125, 0.5);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300d67d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5L20 7'/></svg>");
    background-size: 9px;
    background-position: center;
    background-repeat: no-repeat;
}

/* --- Один рабочий день: таймлайн -------------------------------------- */
.day {
    position: relative;
}

.day-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 22px;
    height: 2px;
    background: var(--line);
    overflow: hidden;
}

.day-line i {
    position: absolute;
    inset: 0;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 2.2s var(--ease);
}

.is-visible .day-line i {
    transform: scaleX(1);
}

.day-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.day-step {
    position: relative;
    padding-top: 56px;
}

.day-step::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--line-2);
    transition: border-color var(--t), box-shadow var(--t);
    transition-delay: calc(var(--i) * 0.35s);
}

.is-visible .day-step::before {
    border-color: var(--green);
    box-shadow: 0 0 0 5px rgba(0, 214, 125, 0.15);
}

.day-time {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--green);
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.day-step h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.day-step p {
    font-size: 0.93rem;
    color: var(--text-2);
}

/* --- Цифры ------------------------------------------------------------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat {
    padding: 26px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.stat b {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 10px;
}

.stat b sup {
    font-size: 0.5em;
    vertical-align: super;
    color: var(--green);
}

.stat span {
    font-size: 0.93rem;
    color: var(--text-2);
}

/* --- Работы ------------------------------------------------------------ */
.works {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.work {
    position: relative;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
    transition: transform var(--t), border-color var(--t);
}

.work:hover {
    transform: translateY(-4px);
    border-color: var(--line-2);
}

.work-shot {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    position: relative;
}

.work-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 6s linear;
}

.work:hover .work-shot img {
    transform: translateY(calc(-1 * var(--pan, 0px)));
}

.work-shot--empty {
    display: grid;
    place-items: center;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 18px 18px;
}

.work-body {
    padding: 18px 20px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.work-body h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.work-body p {
    font-size: 0.9rem;
    color: var(--text-2);
}

.work-tag {
    flex: none;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green);
    padding: 5px 9px;
    border-radius: 6px;
    border: 1px solid rgba(0, 214, 125, 0.3);
}

.works--cards {
    grid-template-columns: repeat(6, 1fr);
}

.works--cards .work-shot {
    aspect-ratio: 3 / 4;
}

/* --- Цены -------------------------------------------------------------- */
.pricing {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.plan {
    display: flex;
    flex-direction: column;
}

.plan-name {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: 14px;
}

.plan .price {
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    margin-bottom: 6px;
}

.plan-sub {
    color: var(--text-2);
    font-size: 0.95rem;
    margin-bottom: 22px;
}

.plan .service-list {
    margin-top: 0;
    margin-bottom: 26px;
}

.plan .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* --- Основатель --------------------------------------------------------- */
.founder {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.founder-photo {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--line-2);
    aspect-ratio: 3 / 4;
    max-width: 420px;
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.05);
}

.founder-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(7, 10, 8, 0.9));
}

.founder-caption {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 1;
}

.founder-caption b {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
}

.founder-caption span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-2);
}

.founder-text p {
    color: var(--text-2);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.founder-text p strong {
    color: var(--text);
    font-weight: 600;
}

.founder-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 26px 0;
}

.founder-facts li {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.93rem;
    color: var(--text-2);
}

.founder-facts li b {
    display: block;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 2px;
}

.photo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}

.photo-link:hover {
    border-color: var(--green);
    background: rgba(0, 214, 125, 0.06);
    transform: translateY(-2px);
}

.photo-link i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(0, 214, 125, 0.12);
    color: var(--green);
    flex: none;
}

.photo-link i svg {
    width: 20px;
    height: 20px;
}

.photo-link b {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

.photo-link span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
}

/* --- FAQ --------------------------------------------------------------- */
.faq {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 10px;
}

.faq details {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color var(--t-fast), background var(--t-fast);
}

.faq details[open] {
    border-color: rgba(0, 214, 125, 0.35);
    background: rgba(0, 214, 125, 0.04);
}

.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 600;
    font-size: 1.02rem;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    color: var(--green);
    transition: transform var(--t);
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq-body {
    padding: 0 24px 22px;
    color: var(--text-2);
    max-width: 680px;
}

.faq-body p+p {
    margin-top: 10px;
}

/* --- Контакты ---------------------------------------------------------- */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 18px;
}

.contact-info .lead {
    margin-bottom: 30px;
}

.contact-links {
    display: grid;
    gap: 10px;
}

.contact-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}

.contact-links a:hover {
    border-color: rgba(0, 214, 125, 0.4);
    background: rgba(0, 214, 125, 0.05);
    transform: translateX(4px);
}

.contact-links i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--green);
    flex: none;
}

.contact-links i svg {
    width: 20px;
    height: 20px;
}

.contact-links b {
    display: block;
    font-weight: 600;
    font-size: 0.97rem;
}

.contact-links span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
}

.form {
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--line-2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    display: grid;
    gap: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
}

.field input,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-3);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(0, 214, 125, 0.15);
}

.form-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    position: relative;
    cursor: pointer;
}

.chip input {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.chip span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    font-size: 0.9rem;
    color: var(--text-2);
    transition: all var(--t-fast);
}

.chip input:checked+span {
    background: rgba(0, 214, 125, 0.15);
    border-color: var(--green);
    color: var(--text);
}

.chip input:focus-visible+span {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.form-consent {
    font-size: 12.5px;
    color: var(--text-3);
    max-width: 320px;
}

.form-consent a {
    color: var(--text-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-status {
    font-size: 0.93rem;
    min-height: 1.4em;
}

.form-status.ok {
    color: var(--green);
}

.form-status.err {
    color: #ff7a6b;
}

.hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* --- Подвал ------------------------------------------------------------ */
.footer {
    border-top: 1px solid var(--line);
    padding: 48px 0 32px;
    font-size: 0.93rem;
    color: var(--text-2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.footer h4 {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
    font-weight: 500;
    margin-bottom: 14px;
}

.footer ul {
    display: grid;
    gap: 8px;
}

.footer a:hover {
    color: var(--text);
}

.footer-about p {
    margin-top: 14px;
    max-width: 320px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
}

.footer-bottom a {
    color: var(--text-2);
}

/* --- Внутренние страницы ----------------------------------------------- */
.page-hero {
    padding: clamp(130px, 16vw, 180px) 0 clamp(40px, 5vw, 64px);
}

.page-hero h1 {
    max-width: 900px;
    margin-bottom: 20px;
}

.page-hero .lead {
    max-width: 720px;
}

.crumbs {
    display: flex;
    gap: 10px;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.crumbs a:hover {
    color: var(--text);
}

.crumbs li+li::before {
    content: "/";
    margin-right: 10px;
    color: var(--line-2);
}

.prose {
    max-width: 760px;
}

.prose>*+* {
    margin-top: 1.1em;
}

.prose h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    margin-top: 2em;
}

.prose h3 {
    margin-top: 1.6em;
}

.prose p,
.prose li {
    color: var(--text-2);
}

.prose strong {
    color: var(--text);
}

.prose a {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose ul,
.prose ol {
    padding-left: 0;
    display: grid;
    gap: 8px;
}

.prose ul li {
    padding-left: 24px;
    position: relative;
}

.prose ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    opacity: 0.8;
}

.prose ol {
    counter-reset: n;
}

.prose ol li {
    padding-left: 36px;
    position: relative;
    counter-increment: n;
}

.prose ol li::before {
    content: counter(n, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.15em;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--green);
}

.prose blockquote {
    padding: 20px 24px;
    border-left: 3px solid var(--green);
    border-radius: 0 14px 14px 0;
    background: rgba(0, 214, 125, 0.05);
    color: var(--text);
    font-size: 1.05rem;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.prose th,
.prose td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.prose th {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
    font-weight: 500;
}

.prose td {
    color: var(--text-2);
}

.callout {
    margin-top: 48px;
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 214, 125, 0.35);
    background: linear-gradient(160deg, rgba(0, 214, 125, 0.12), rgba(0, 198, 212, 0.04));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.callout h3 {
    margin-bottom: 6px;
}

.callout p {
    color: var(--text-2);
}

/* Услуги: секция «что входит» */
.includes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.includes li {
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.includes li i {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--green);
    background: rgba(0, 214, 125, 0.1);
    border: 1px solid rgba(0, 214, 125, 0.25);
}

.includes li b {
    display: block;
    font-weight: 600;
    margin-bottom: 3px;
}

.includes li span {
    font-size: 0.93rem;
    color: var(--text-2);
}

/* Сравнение «до / после» */
.compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.compare>div {
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.compare>div:last-child {
    border-color: rgba(0, 214, 125, 0.35);
    background: rgba(0, 214, 125, 0.05);
}

.compare h3 {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--text-3);
    margin-bottom: 14px;
}

.compare>div:last-child h3 {
    color: var(--green);
}

.compare li {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
    color: var(--text-2);
}

.compare li:last-child {
    border-bottom: 0;
}

/* Блог */
.posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.post {
    display: flex;
    flex-direction: column;
    padding: 26px;
    min-height: 260px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 18px;
}

.post-meta b {
    color: var(--green);
    font-weight: 500;
}

.post h3 {
    margin-bottom: 12px;
}

.post p {
    color: var(--text-2);
    font-size: 0.95rem;
}

.post .service-more {
    margin-top: auto;
    padding-top: 20px;
}

.article-head {
    padding: clamp(130px, 16vw, 180px) 0 clamp(32px, 4vw, 48px);
}

.article-head h1 {
    max-width: 900px;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
    letter-spacing: 0.06em;
}

.article-meta b {
    color: var(--green);
    font-weight: 500;
}

.related {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.related h3 {
    margin-bottom: 16px;
}

.related ul {
    display: grid;
    gap: 8px;
}

.related a {
    color: var(--text-2);
}

.related a:hover {
    color: var(--green);
}

/* --- Виджет чата ------------------------------------------------------- */
.chat-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px 12px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 214, 125, 0.5);
    background: rgba(16, 21, 18, 0.92);
    color: var(--text);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.93rem;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9), 0 0 0 0 var(--glow);
    backdrop-filter: blur(10px);
    transition: transform var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast);
    animation: fab-pulse 3s ease-in-out infinite;
}

.chat-fab:hover {
    transform: translateY(-2px);
}

.chat-fab i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--green);
    color: #04140c;
}

.chat-fab i svg {
    width: 16px;
    height: 16px;
}

.chat-fab.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

@keyframes fab-pulse {

    0%,
    100% {
        box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9), 0 0 0 0 rgba(0, 214, 125, 0.35);
    }

    50% {
        box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9), 0 0 0 10px rgba(0, 214, 125, 0);
    }
}

.chat {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 95;
    width: min(380px, calc(100vw - 32px));
    height: min(560px, calc(100vh - 40px));
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    border: 1px solid var(--line-2);
    background: rgba(12, 16, 14, 0.96);
    backdrop-filter: blur(20px);
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    pointer-events: none;
    transition: opacity var(--t), transform var(--t);
}

.chat.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.chat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.chat-head i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--grad);
    color: #04140c;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
}

.chat-head b {
    display: block;
    font-size: 0.95rem;
}

.chat-head span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
}

.chat-head span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}

.chat-close {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
    color: var(--text-2);
    display: grid;
    place-items: center;
}

.chat-close:hover {
    color: var(--text);
    border-color: var(--line-2);
}

.chat-log {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}

.msg {
    max-width: 86%;
    padding: 11px 14px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    animation: msg-in 0.35s var(--ease);
}

@keyframes msg-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

.msg--ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-bottom-left-radius: 6px;
}

.msg--user {
    align-self: flex-end;
    background: var(--green);
    color: #04140c;
    border-bottom-right-radius: 6px;
}

.msg--typing {
    display: flex;
    gap: 5px;
    padding: 14px 16px;
}

.msg--typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-2);
    animation: blink 1.2s infinite;
}

.msg--typing i:nth-child(2) {
    animation-delay: 0.2s;
}

.msg--typing i:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {

    0%,
    80%,
    100% {
        opacity: 0.25;
    }

    40% {
        opacity: 1;
    }
}

.chat-quick {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 0 16px 10px;
}

.chat-quick button {
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: transparent;
    color: var(--text-2);
    font-size: 12.5px;
    cursor: pointer;
    transition: all var(--t-fast);
}

.chat-quick button:hover {
    border-color: var(--green);
    color: var(--text);
}

.chat-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--line);
}

.chat-form input {
    flex: 1;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    background: rgba(0, 0, 0, 0.35);
}

.chat-form input:focus {
    outline: none;
    border-color: var(--green);
}

.chat-form button {
    width: 46px;
    border-radius: 12px;
    border: none;
    background: var(--green);
    color: #04140c;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.chat-form button svg {
    width: 18px;
    height: 18px;
}

.chat-foot {
    padding: 0 14px 10px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-3);
    text-align: center;
}

/* --- Появление при скролле ------------------------------------------- */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: calc(var(--d, 0) * 90ms);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* --- Адаптив ------------------------------------------------------------ */
@media (max-width: 1080px) {

    .services-grid,
    .works,
    .posts {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .day-steps {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 36px;
    }

    .day-line {
        display: none;
    }

    .day-step {
        padding-top: 0;
        padding-left: 30px;
    }

    .day-step::before {
        top: 4px;
    }
}

@media (max-width: 900px) {
    .nav {
        position: fixed;
        top: 68px;
        left: 16px;
        right: 16px;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        border-radius: 18px;
        background: rgba(12, 16, 14, 0.97);
        border: 1px solid var(--line-2);
        box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity var(--t-fast), transform var(--t);
    }

    .nav.is-open {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .nav a {
        padding: 13px 16px;
        font-size: 1.05rem;
    }

    .header-cta .btn {
        display: none;
    }

    .burger {
        display: block;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        max-width: 560px;
    }

    .build {
        transform: none;
    }

    .float-card--a {
        left: 8px;
        top: -18px;
    }

    .float-card--b {
        right: 8px;
        bottom: -14px;
    }

    .founder,
    .contact {
        grid-template-columns: 1fr;
    }

    .founder-photo {
        max-width: 360px;
    }

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

    .compare,
    .includes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    :root {
        --gutter: 16px;
    }

    .services-grid,
    .works,
    .posts,
    .pricing {
        grid-template-columns: 1fr;
    }

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

    .day-steps {
        grid-template-columns: 1fr;
        row-gap: 26px;
    }

    .stats,
    .founder-facts,
    .footer-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .build-screen {
        min-height: 260px;
    }

    .float-card {
        display: none;
    }

    .chat {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
        height: min(600px, calc(100vh - 24px));
    }

    .card,
    .form {
        padding: 22px 20px;
    }
}

/* Меньше движения для тех, кто попросил */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }

    .bk,
    .build-stamp {
        opacity: 1;
        transform: none;
    }
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.prose hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 2em 0;
}

/* --- Мелкие мобильные правки ---------------------------------------- */
@media (max-width: 640px) {
    .hero .eyebrow b {
        display: none;
    }

    .build-ticks span:nth-child(2),
    .build-ticks span:nth-child(3) {
        display: none;
    }

    .chat-fab {
        padding: 0;
        width: 56px;
        height: 56px;
        justify-content: center;
        right: 16px;
        bottom: 16px;
    }

    .chat-fab i {
        width: 32px;
        height: 32px;
    }

    .chat-fab i svg {
        width: 18px;
        height: 18px;
    }

    .chat-fab span {
        display: none;
    }
}
