/* ============================================================
   Анна Галушко — директолог · лингвистика × ИИ
   Светлая «редакторская» тема. Mobile-first.
   ============================================================ */

:root {
    /* бумага и чернила */
    --paper: #FBFAF5;
    --paper-2: #F3F0E7;
    --card: #FFFFFF;
    --ink: #16150F;
    --muted: #6B675C;
    --line: #E7E3D6;
    --line-strong: #D4CFBD;

    /* акценты */
    --yellow: #FFCC00;
    --yellow-marker: #FFDE4D;
    --yellow-bg: rgba(255, 204, 0, .16);
    --red: #E0442C;
    --green: #178A4E;
    --green-bg: rgba(23, 138, 78, .11);

    /* тёмная карточка-«терминал» */
    --dark: #191712;
    --dark-2: #221F16;
    --dark-line: #35311F;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow-card: 0 8px 26px rgba(45, 38, 15, .07);
    --shadow-pop: 0 24px 60px rgba(45, 38, 15, .18);

    --gutter: 16px;
    --header-h: 64px;
    --t: .25s ease;

    --font-head: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, p { margin: 0; }
input, textarea, select { font: inherit; color: inherit; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }

::selection { background: var(--yellow-marker); color: var(--ink); }

:focus-visible {
    outline: 3px solid rgba(255, 204, 0, .95);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- ТИПОГРАФИЧЕСКИЕ АКЦЕНТЫ ---------- */
/* жёлтый маркер */
.hl {
    background: linear-gradient(102deg,
        rgba(255, 222, 77, 0) 0%, rgba(255, 222, 77, .95) 3%,
        rgba(255, 222, 77, .95) 97%, rgba(255, 222, 77, 0) 100%);
    padding: .02em .14em;
    margin: 0 -.04em;
    border-radius: .3em .5em .4em .35em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
/* правка корректора: зачёркнутое слово (hero, анимировано) */
.strike-draw {
    position: relative;
    text-decoration: none;
    color: var(--muted);
}
.strike-draw::after {
    content: '';
    position: absolute;
    left: -3%; right: -3%;
    top: 52%;
    height: .09em;
    min-height: 3px;
    background: var(--red);
    border-radius: 2px;
    rotate: -2deg;
    transform: scaleX(0);
    transform-origin: left center;
    animation: strikeDraw .45s ease .7s forwards;
}
/* маркер, «проведённый» после зачёркивания (hero) */
.mark-draw {
    position: relative;
    white-space: nowrap;
    z-index: 0;
}
.mark-draw::before {
    content: '';
    position: absolute;
    inset: .04em -.12em -.02em -.1em;
    background: var(--yellow-marker);
    border-radius: .3em .55em .4em .35em;
    rotate: -1deg;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left center;
    animation: strikeDraw .4s ease 1.25s forwards;
}
@keyframes strikeDraw { to { transform: scaleX(1); } }

/* ---------- LAYOUT ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}
.section { padding: 56px 0; position: relative; }
.section--alt { background: var(--paper-2); }
.section__head { text-align: center; margin-bottom: 32px; }
.section__eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 6px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--card);
}
.section__eyebrow b { color: var(--red); font-weight: 600; margin-right: 4px; }
.section__title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(26px, 6.4vw, 46px);
    line-height: 1.14;
    margin-top: 16px;
    letter-spacing: -.015em;
    text-wrap: balance;
}
.section__title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0;
}
.section__lead {
    color: var(--muted);
    margin-top: 14px;
    font-size: 16px;
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: pretty;
}

/* ---------- КНОПКИ ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.15;
    text-align: center;
    border: 2px solid var(--ink);
    color: var(--ink);
    background: var(--card);
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--primary { background: var(--yellow); }
.btn--primary:hover { background: var(--yellow-marker); }
.btn--ghost { background: var(--card); }
.btn--ghost:hover { background: var(--paper-2); }
.btn--lg { min-height: 54px; padding: 15px 26px; font-size: 16px; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); border-radius: 11px; }
.btn--block { width: 100%; }
.btn--header { display: none; }

/* ---------- ШАПКА ---------- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(251, 250, 245, .88);
    backdrop-filter: saturate(150%) blur(10px);
    -webkit-backdrop-filter: saturate(150%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: box-shadow var(--t), border-color var(--t);
}
.header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 8px 24px rgba(45, 38, 15, .07);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 12px;
}
.logo { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.logo__name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -.01em;
}
.logo__tag {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: .05em;
    color: var(--muted);
    margin-top: 3px;
    white-space: nowrap;
}

.burger {
    flex: 0 0 auto;
    width: 44px; height: 44px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 12px;
    border: 2px solid var(--ink);
    background: var(--card);
    box-shadow: 3px 3px 0 var(--ink);
    transition: transform var(--t), box-shadow var(--t);
}
.burger:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.burger span {
    width: 20px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform var(--t), opacity var(--t);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* мобильное меню-панель */
.nav { display: none; }
.nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: var(--paper);
    padding: 12px var(--gutter) 28px;
    gap: 2px;
    overflow-y: auto;
    z-index: 49;
    animation: navIn .22s ease;
}
@keyframes navIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.nav.is-open .nav__link {
    display: block;
    padding: 16px 6px;
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    border-bottom: 1px solid var(--line);
    transition: color var(--t), padding-left var(--t);
}
.nav.is-open .nav__link:hover,
.nav.is-open .nav__link:active { color: var(--red); padding-left: 12px; }
.nav.is-open .nav__cta { margin-top: 20px; }
.nav__cta { display: none; }
.nav.is-open .nav__cta { display: inline-flex; }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    padding: calc(var(--header-h) + 36px) 0 56px;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(22, 21, 15, .07) 1px, transparent 1.5px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
    mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
}
.hero__bg::before,
.hero__bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
}
.hero__bg::before {
    width: 380px; height: 380px;
    background: rgba(255, 204, 0, .28);
    top: -120px; right: -120px;
}
.hero__bg::after {
    width: 300px; height: 300px;
    background: rgba(224, 68, 44, .12);
    bottom: -140px; left: -120px;
}
.hero__grid { position: relative; z-index: 1; }
.hero__pill {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 7px 14px;
    box-shadow: var(--shadow-card);
}
.hero__title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(32px, 9.4vw, 72px);
    line-height: 1.07;
    letter-spacing: -.025em;
    margin-top: 20px;
}
.hero__sub {
    color: var(--muted);
    font-size: 16px;
    margin-top: 18px;
    max-width: 560px;
    text-wrap: pretty;
}
.hero__cta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
}
.hero__cta .btn { width: 100%; }
.hero__trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid var(--line-strong);
}
.hero__trust li { display: flex; flex-direction: column; }
.hero__trust b {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -.01em;
}
.hero__trust span { color: var(--muted); font-size: 13px; }

/* терминал-разбор запроса */
.hero__demo { margin-top: 36px; }
.parser {
    background: var(--dark);
    border: 1px solid var(--dark-line);
    border-radius: 20px;
    box-shadow: var(--shadow-pop);
    overflow: hidden;
    font-family: var(--font-mono);
    color: #F0EDE0;
}
.parser__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--dark-line);
}
.parser__dot { width: 11px; height: 11px; border-radius: 50%; }
.parser__dot--r { background: #FF5F57; }
.parser__dot--y { background: #FEBC2E; }
.parser__dot--g { background: #28C840; }
.parser__name {
    margin-left: auto;
    font-size: 11.5px;
    color: #8F8A74;
    letter-spacing: .04em;
}
.parser__body {
    padding: 18px 18px 20px;
    min-height: 236px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.parser__label {
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #8F8A74;
}
.parser__query {
    font-size: 15px;
    line-height: 1.5;
    color: var(--yellow-marker);
    min-height: 48px;
}
.parser__caret {
    display: inline-block;
    width: 8px;
    height: 1.05em;
    background: var(--yellow-marker);
    margin-left: 3px;
    vertical-align: text-bottom;
    animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }
.parser__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 66px;
    align-content: flex-start;
}
.parser__tags li {
    font-size: 12px;
    padding: 5px 11px;
    border: 1px solid var(--dark-line);
    border-radius: 999px;
    background: var(--dark-2);
    color: #D9D4C0;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .3s ease, transform .3s ease;
}
.parser__tags li.is-on { opacity: 1; transform: none; }
.parser__verdict {
    font-size: 14px;
    font-weight: 600;
    min-height: 24px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .3s ease, transform .3s ease;
}
.parser__verdict.is-on { opacity: 1; transform: none; }
.parser__verdict.is-ok { color: #5AD07E; }
.parser__verdict.is-no { color: #FF8A72; }
.hero__demo-caption {
    margin-top: 12px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
}

/* ---------- ОБО МНЕ ---------- */
.about {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}
.about__photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.about__avatar {
    width: 210px;
    height: 210px;
    border-radius: 26px;
    overflow: hidden;
    border: 3px solid var(--ink);
    box-shadow: 8px 8px 0 var(--yellow);
    background: var(--paper-2);
    rotate: -2deg;
}
.about__avatar img { width: 100%; height: 100%; object-fit: cover; }
.about__badge {
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    box-shadow: var(--shadow-card);
}
.about__text {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    text-wrap: pretty;
}
.about__text + .about__text { margin-top: 14px; }
.about__text b { color: var(--ink); }

.facts {
    margin-top: 26px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.fact {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 14px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform var(--t), border-color var(--t);
}
.fact:hover { transform: translateY(-3px); border-color: var(--ink); }
.fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
.fact__num {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -.01em;
}
.fact__num small { font-size: 14px; color: var(--muted); font-weight: 700; }
.fact__num--accent { color: var(--red); }
.fact__label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
}

/* ---------- ЛИНГВИСТИЧЕСКИЙ ПОДХОД ---------- */
.principles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.principle {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 20px;
    box-shadow: var(--shadow-card);
    transition: transform var(--t), border-color var(--t);
}
.principle:hover { transform: translateY(-3px); border-color: var(--ink); }
.principle__op {
    display: inline-grid;
    place-items: center;
    min-width: 52px;
    height: 52px;
    padding: 0 10px;
    border-radius: 14px;
    background: var(--dark);
    color: var(--yellow-marker);
    font-family: var(--font-mono);
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 14px;
}
.principle__title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -.01em;
    margin-bottom: 10px;
}
.principle__ex {
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.7;
    background: var(--paper-2);
    border: 1px dashed var(--line-strong);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 12px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.principle__ex::-webkit-scrollbar { display: none; }
.principle__ex code { font-family: inherit; }
.principle__ex .is-bad {
    color: var(--red);
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}
.principle__vs { color: var(--muted); margin: 0 2px; }
.principle__text { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---------- МЕТОД: ШАГИ ---------- */
.steps {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.step {
    position: relative;
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
}
.step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 52px;
    bottom: -18px;
    width: 2px;
    background: var(--line-strong);
}
.step__num {
    width: 46px; height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--card);
    border: 2px solid var(--ink);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 14px;
    box-shadow: 3px 3px 0 var(--yellow);
    position: relative;
    z-index: 1;
}
.step__body {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    box-shadow: var(--shadow-card);
}
.step__title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 10px;
    letter-spacing: -.01em;
}
.step__row {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
    padding: 7px 0;
}
.step__row + .step__row { border-top: 1px dashed var(--line); }
.who {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    padding: 2px 9px;
    border-radius: 7px;
    margin-right: 8px;
    vertical-align: 1px;
}
.who--ai { background: var(--dark); color: var(--yellow-marker); }
.who--me { background: var(--yellow); color: var(--ink); }

/* ---------- УСЛУГИ ---------- */
.services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.service {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-card);
    transition: transform var(--t), border-color var(--t);
}
.service:hover { transform: translateY(-3px); border-color: var(--ink); }
.service--featured {
    background: linear-gradient(180deg, #FFF6D2, var(--card) 70%);
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 var(--yellow);
}
.service__tag {
    position: absolute;
    top: -12px; right: 18px;
    background: var(--ink);
    color: var(--yellow-marker);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
}
.service__top { display: flex; align-items: center; gap: 14px; }
.service__num {
    flex: 0 0 auto;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--yellow-bg);
    border: 1px solid var(--yellow);
    display: grid; place-items: center;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 15px;
}
.service__title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -.01em;
}
.service__list {
    display: flex; flex-direction: column; gap: 8px;
    color: var(--muted);
    font-size: 15px;
}
.service__list li { position: relative; padding-left: 22px; }
.service__list li::before {
    content: '';
    position: absolute;
    left: 0; top: .6em;
    width: 12px; height: 3px;
    background: var(--yellow);
    border: 1px solid rgba(22, 21, 15, .25);
    border-radius: 2px;
}
.service__meta {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0;
    border-top: 1px dashed var(--line-strong);
    border-bottom: 1px dashed var(--line-strong);
    flex-wrap: wrap;
    gap: 8px;
}
.service__term { color: var(--muted); font-size: 13px; }
.service__price {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 18px;
}

/* ---------- КЕЙСЫ ---------- */
.cases {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.cases::-webkit-scrollbar { display: none; }
.case {
    flex: 0 0 min(320px, 85%);
    scroll-snap-align: center;
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 20px;
    display: flex; flex-direction: column; gap: 12px;
    box-shadow: var(--shadow-card);
    transition: transform var(--t), border-color var(--t);
}
.case:hover { transform: translateY(-3px); border-color: var(--ink); }
.case--nda {
    background: linear-gradient(180deg, #FDEFE0, var(--card) 65%);
}
.case--nda .case__head { padding-right: 56px; }
.case__nda {
    position: absolute;
    top: 14px; right: 14px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(224, 68, 44, .1);
    border: 1px solid rgba(224, 68, 44, .5);
    color: var(--red);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
}
.case__head { display: flex; flex-direction: column; gap: 5px; }
.case__name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 21px;
    line-height: 1.15;
    letter-spacing: -.01em;
}
.case__niche {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #8F7300;
    text-transform: uppercase;
    letter-spacing: .07em;
}
.case__task { color: var(--muted); font-size: 14.5px; }
.case__task b { color: var(--ink); }
.case__metrics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.metric {
    display: inline-block;
    background: var(--green-bg);
    border: 1px solid rgba(23, 138, 78, .4);
    color: var(--green);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}
.metric b { font-weight: 800; margin-left: 3px; }
.case__term {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: .04em;
}
.cases__hint {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

/* ---------- СТАТИСТИКА ---------- */
.stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 28px;
}
.stat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 18px;
    text-align: center;
    box-shadow: var(--shadow-card);
}
.stat__num {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(36px, 9vw, 54px);
    line-height: 1;
    letter-spacing: -.02em;
}
.stat__num--down { color: var(--green); }
.stat__label {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.charts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.chart-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 16px;
    box-shadow: var(--shadow-card);
}
.chart-card__title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 12px;
}
.chart-card__canvas { position: relative; height: 220px; }
.stats__note {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    font-style: italic;
}

/* ---------- FAQ ---------- */
.faq {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq__item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    transition: border-color var(--t);
    overflow: hidden;
}
.faq__item[open] { border-color: var(--ink); }
.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15.5px;
    line-height: 1.4;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.faq__icon {
    flex: 0 0 auto;
    position: relative;
    width: 26px; height: 26px;
    border-radius: 8px;
    background: var(--yellow);
    border: 1.5px solid var(--ink);
    transition: transform var(--t);
}
.faq__icon::before,
.faq__icon::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 11px; height: 2px;
    background: var(--ink);
    translate: -50% -50%;
}
.faq__icon::after { rotate: 90deg; transition: rotate var(--t); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 18px 16px; }
.faq__a p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.faq__more {
    text-align: center;
    margin-top: 22px;
    color: var(--muted);
    font-size: 14.5px;
}
.faq__more a {
    color: var(--ink);
    font-weight: 700;
    background: linear-gradient(transparent 60%, var(--yellow-marker) 60%);
}

/* ---------- ФОРМЫ ---------- */
.forms__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.form-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-card);
}
.form-card__eyebrow {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    background: var(--dark);
    color: var(--yellow-marker);
    padding: 5px 12px;
    border-radius: 999px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.form-card__title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(21px, 5vw, 26px);
    line-height: 1.15;
    letter-spacing: -.01em;
}
.form-card__sub { color: var(--muted); font-size: 14.5px; margin-bottom: 4px; }
.form-card__hint { font-size: 12px; color: var(--muted); text-align: center; }
.form-card__hint a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 2px;
    cursor: pointer;
}

.field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.field__label { font-size: 13px; color: var(--muted); font-weight: 600; }
.field__input {
    width: 100%;
    min-height: 50px;
    padding: 13px 16px;
    background: var(--paper);
    border: 1.5px solid var(--line-strong);
    border-radius: 12px;
    font-size: 16px;
    color: var(--ink);
    transition: border-color var(--t), box-shadow var(--t);
}
.field__input:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, .4);
}
.field__input--area { min-height: 96px; resize: vertical; }
.field__input::placeholder { color: #A6A192; }

.field__error {
    display: none;
    color: var(--red);
    font-size: 12px;
    font-weight: 600;
}
.field.is-invalid .field__input { border-color: var(--red); }
.field.is-invalid .field__error { display: block; }

/* ---------- КОНТАКТЫ ---------- */
.contacts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 540px;
    margin: 0 auto;
}
.contact {
    display: grid;
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow-card);
    transition: border-color var(--t), transform var(--t);
}
.contact:hover { border-color: var(--ink); transform: translateY(-3px); }
.contact__icon {
    grid-row: 1 / span 2;
    width: 48px; height: 48px;
    display: grid; place-items: center;
    background: var(--yellow);
    border: 2px solid var(--ink);
    border-radius: 14px;
    color: var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
}
.contact__icon svg { width: 23px; height: 23px; }
.contact__label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .1em;
}
.contact__value { font-weight: 700; font-size: 15px; }

/* ---------- ПОДВАЛ ---------- */
.footer {
    padding: 28px 0 96px;
    background: var(--paper-2);
    border-top: 1px solid var(--line);
}
.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.footer__copy { color: var(--muted); font-size: 13px; }
.footer__tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.footer__link {
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 2px;
    padding: 6px 8px;
}

/* ---------- НАВЕРХ ---------- */
.to-top {
    position: fixed;
    right: 16px; bottom: 16px;
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--ink);
    color: var(--yellow);
    display: grid; place-items: center;
    box-shadow: 4px 4px 0 rgba(255, 204, 0, .8);
    transform: translateY(90px);
    opacity: 0;
    transition: transform var(--t), opacity var(--t);
    z-index: 40;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { transform: translateY(0); opacity: 1; }
.to-top:hover { background: #000; }

/* ---------- МОДАЛКИ ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal.is-open { display: flex; animation: fadeIn .2s ease; }
.modal__overlay {
    position: absolute; inset: 0;
    background: rgba(22, 21, 15, .55);
    backdrop-filter: blur(4px);
}
.modal__box {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: var(--card);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    padding: 30px 22px 24px;
    text-align: center;
    box-shadow: 8px 8px 0 var(--yellow);
    animation: popIn .25s cubic-bezier(.2, .9, .3, 1.2);
}
.modal__box--wide { max-width: 640px; text-align: left; }
.modal__close {
    position: absolute;
    top: 8px; right: 8px;
    width: 40px; height: 40px;
    font-size: 26px;
    line-height: 1;
    color: var(--muted);
    border-radius: 10px;
}
.modal__close:hover { color: var(--ink); background: var(--paper-2); }
.modal__icon {
    width: 64px; height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--green-bg);
    border: 2px solid var(--green);
    color: var(--green);
    display: grid; place-items: center;
}
.modal__icon svg { width: 30px; height: 30px; }
.modal__title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 8px;
    letter-spacing: -.01em;
}
.modal__title--left { text-align: left; padding-right: 34px; }
.modal__text { color: var(--muted); margin-bottom: 18px; }
.modal__scroll {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 6px;
    margin: 12px 0 8px;
}
.modal__scroll p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
.modal__scroll p b { color: var(--ink); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
    from { opacity: 0; transform: translateY(10px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-delay: 0ms !important;
        transition-duration: .001ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
    .strike-draw::after, .mark-draw::before { transform: scaleX(1); }
}

/* ============================================================
   BREAKPOINTS — mobile-first
   ============================================================ */

/* 375px+ */
@media (min-width: 375px) {
    :root { --gutter: 18px; }
}

/* 414px+ */
@media (min-width: 414px) {
    :root { --gutter: 20px; }
}

/* 560px+ : ландшафтные телефоны / маленькие планшеты */
@media (min-width: 560px) {
    .hero__pill { font-size: 11px; }
    .hero__cta { flex-direction: row; }
    .hero__cta .btn { width: auto; }
    .hero__trust { grid-template-columns: repeat(3, auto); justify-content: start; gap: 14px 28px; }
    .principles { grid-template-columns: 1fr 1fr; }
    .contacts { grid-template-columns: repeat(3, 1fr); max-width: none; }
    .contact {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        text-align: center;
        justify-items: center;
        padding: 20px 14px;
        gap: 6px;
    }
    .contact__icon { grid-row: 1; margin-bottom: 6px; }
}

/* 768px+ : планшеты */
@media (min-width: 768px) {
    :root { --gutter: 28px; --header-h: 72px; }
    .section { padding: 84px 0; }
    .section__head { margin-bottom: 48px; }

    .logo__name { font-size: 19px; }
    .logo__tag { font-size: 10.5px; }

    .hero { padding: calc(var(--header-h) + 52px) 0 84px; }
    .hero__sub { font-size: 17px; }
    .hero__demo { max-width: 560px; margin: 44px auto 0; }

    .about { grid-template-columns: 280px 1fr; gap: 40px; align-items: center; }
    .facts { grid-template-columns: repeat(3, 1fr); }
    .fact:last-child:nth-child(odd) { grid-column: auto; }

    .services { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .service { padding: 26px 22px; }

    .cases {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        overflow: visible;
        margin: 0;
        padding: 0;
    }
    .case { flex: none; }
    .cases__hint { display: none; }

    .stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .charts { grid-template-columns: 1fr 1fr; }
    .chart-card__canvas { height: 240px; }

    .forms__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .form-card { padding: 30px 26px; }

    .footer { padding-bottom: 32px; }
    .footer__inner { flex-direction: row; justify-content: space-between; }

    .to-top { right: 28px; bottom: 28px; width: 52px; height: 52px; }
}

/* 1024px+ : ноутбуки */
@media (min-width: 1024px) {
    :root { --gutter: 32px; }
    .section { padding: 104px 0; }

    .nav {
        display: flex;
        align-items: center;
        gap: 2px;
        position: static;
    }
    .nav__link {
        padding: 9px 11px;
        border-radius: 10px;
        color: var(--muted);
        font-size: 14px;
        font-weight: 600;
        transition: color var(--t), background var(--t);
    }
    .nav__link:hover { color: var(--ink); background: var(--yellow-bg); }
    .nav__link.is-active { color: var(--ink); background: var(--yellow-bg); }
    .nav__cta { display: none !important; }

    .burger { display: none; }
    .btn--header { display: inline-flex; }

    .hero__grid {
        display: grid;
        grid-template-columns: 1.06fr .94fr;
        gap: 56px;
        align-items: center;
    }
    .hero__demo { margin: 0; max-width: none; }
    .hero__title { font-size: clamp(48px, 5vw, 72px); }
    .hero__sub { font-size: 18px; }

    .principles { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .principle { padding: 26px 24px; }

    .cases { grid-template-columns: repeat(3, 1fr); }
    .case { padding: 26px 24px; }

    .services { gap: 24px; }
    .service--featured { transform: translateY(-8px); }
    .service--featured:hover { transform: translateY(-11px); }
}

/* 1440px+ */
@media (min-width: 1440px) {
    .container { max-width: 1280px; }
    .section { padding: 116px 0; }
    .hero { padding: calc(var(--header-h) + 76px) 0 104px; }
}

/* устройства без hover */
@media (hover: none) {
    .service:hover, .case:hover, .fact:hover,
    .principle:hover, .contact:hover { transform: none; }
    .service--featured:hover { transform: translateY(-8px); }
}
