/* ============================================================================
   СТУДИЯ 3D-ПЕЧАТИ — ОСНОВНЫЕ СТИЛИ

   Порядок разделов: токены → сброс → типографика → элементы → блоки → адаптив.
   Искать правило проще по разделу, чем по алфавиту; дописывать — в конец своего
   раздела, а не в конец файла.

   ЦВЕТА И РАЗМЕРЫ — ТОЛЬКО ЧЕРЕЗ ТОКЕНЫ. Не ради красоты: тёмная тема это один
   блок переопределений внизу, и любой цвет, вписанный мимо токена, останется в
   ней светлым. Найти такой потом можно только глазами.
   ========================================================================= */

:root {
    /* ---- ПОВЕРХНОСТИ ----
       Четыре уровня вместо двух: фон страницы, карточка, вложенная карточка и
       «утопленное» поле. Без третьего и четвёртого уровня вложенные блоки
       приходится отделять рамками, и интерфейс превращается в сетку линий. */
    --bg:            #f7f8fa;
    --bg-deep:       #eef0f5;
    --surface:       #ffffff;
    --surface-2:     #f4f6f9;
    --surface-3:     #eaeef4;

    --ink:           #0d1117;
    --ink-2:         #414c5c;
    --muted:         #6d788a;
    --line:          #e3e7ee;
    --line-soft:     #eef1f6;

    /* Оранжевый — цвет разогретого сопла и катушки филамента: для студии печати
       он читается как «рабочий», а не как «распродажа». Второй акцент нужен
       только градиентам: одноцветный градиент выглядит грязным. */
    --accent:        #f0561d;
    --accent-2:      #ff9130;
    --accent-ink:    #ffffff;
    --accent-soft:   #fdeee7;
    --accent-line:   #f8c9b4;

    --ok:            #12855a;
    --ok-soft:       #e4f6ed;
    --warn:          #a86a00;
    --warn-soft:     #fdf1dc;
    --stop:          #c8372a;
    --stop-soft:     #fceceb;
    --info:          #2563c9;
    --info-soft:     #e8f0fd;

    /* ---- ФОРМА ----
       Радиусы крупнее прежних: 18 px на карточке и 12 на кнопке — то, что
       сегодня читается как «современно», а не как «шаблон десятилетней
       давности». Мельче 10 скругление перестаёт быть видимым решением и
       выглядит как случайность. */
    --r-xs:          8px;
    --r-sm:          12px;
    --r-md:          18px;
    --r-lg:          26px;
    --r-full:        999px;

    /* ---- ТЕНИ ----
       Двухслойные: короткая тень даёт контур, длинная — объём. Одна длинная
       тень без контура размывает край карточки на светлом фоне. */
    --sh-sm:  0 1px 2px rgba(13, 17, 23, .05), 0 2px 8px rgba(13, 17, 23, .04);
    --sh-md:  0 1px 3px rgba(13, 17, 23, .06), 0 10px 28px rgba(13, 17, 23, .07);
    --sh-lg:  0 2px 6px rgba(13, 17, 23, .07), 0 24px 60px rgba(13, 17, 23, .12);
    --sh-accent: 0 10px 30px rgba(240, 86, 29, .28);

    --wrap:          1200px;
    --font:          'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --mono:          ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;

    /* Одна кривая на весь проект. Разные ускорения у соседних элементов глаз
       замечает как рассинхрон, даже не понимая, в чём дело. */
    --ease:          cubic-bezier(.22, .61, .36, 1);
}

/* ТЁМНАЯ ТЕМА — по системной настройке.
   Переключателя на сайте нет намеренно: человек уже выбрал её в системе, и
   второй переключатель означает, что где-то они разойдутся. */
@media (prefers-color-scheme: dark) {
    :root {
        --bg:        #0b0e14;
        --bg-deep:   #070a0f;
        --surface:   #121722;
        --surface-2: #182030;
        --surface-3: #1f2839;

        --ink:       #f0f3f8;
        --ink-2:     #c3ccdb;
        --muted:     #8794a8;
        --line:      #263041;
        --line-soft: #1c2431;

        --accent:      #ff6f38;
        --accent-2:    #ffa652;
        --accent-ink:  #170d07;
        --accent-soft: #2a1a12;
        --accent-line: #4a2a1b;

        --ok:   #3fc98c;  --ok-soft:   #10291f;
        --warn: #e0a83c;  --warn-soft: #2a2113;
        --stop: #f4776a;  --stop-soft: #2c1614;
        --info: #6ba6ff;  --info-soft: #131f33;

        --sh-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 8px rgba(0, 0, 0, .3);
        --sh-md: 0 1px 3px rgba(0, 0, 0, .5), 0 10px 28px rgba(0, 0, 0, .45);
        --sh-lg: 0 2px 6px rgba(0, 0, 0, .5), 0 24px 60px rgba(0, 0, 0, .6);
        --sh-accent: 0 10px 30px rgba(255, 111, 56, .22);
    }
}

/* ==================== СБРОС ==================== */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.65 var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    /* Межстрочные и межбуквенные подстройки заголовков зависят от того, что
       шрифт действительно переменный; если Inter не подгрузился, системный
       шрифт даёт близкую метрику, и вёрстка не разъезжается. */
    font-feature-settings: 'kern' 1, 'liga' 1, 'tnum' 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; font-weight: 700; letter-spacing: -.025em; }
h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -.035em; }
h2 { font-size: clamp(25px, 3.2vw, 36px); letter-spacing: -.03em; }
h3 { font-size: 19px; }
h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 650; }

p { margin: 0 0 1em; }

/* Видимая рамка фокуса. Убирать её нельзя: с клавиатуры сайтом пользуются не
   только «продвинутые пользователи», но и все, у кого сейчас занята одна рука. */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--r-xs);
}

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

/* ==================== СЕТКА ==================== */

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

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.page { display: block; }
.page[hidden] { display: none; }

.page__head { padding: 56px 0 30px; max-width: 760px; }
.page__head p { color: var(--muted); font-size: 18px; margin: 0; }

.block { padding: 60px 0; }

/* Разделитель — не рамка во всю ширину, а короткая линия с растворяющимися
   краями: сплошная линия режет страницу на несвязанные куски. */
.block + .block { border-top: 1px solid var(--line-soft); }

.block__head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 20px; margin-bottom: 28px; flex-wrap: wrap;
}
.block__head h2 { margin: 0; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px;
    font-weight: 700; color: var(--accent); margin: 0 0 16px;
}
.eyebrow::before {
    content: ''; width: 22px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 54ch; }

.note { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 16px 0 0; }
.note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.link {
    background: none; border: 0; padding: 0; cursor: pointer;
    color: var(--accent); font-weight: 600; font-size: inherit;
}
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==================== ШАПКА ==================== */

.top-bar {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

/* Граница появляется только после прокрутки (класс вешает app.js): на самом
   верху линия под шапкой отделяет её от заголовка, которому она принадлежит. */
.top-bar.is-stuck { border-bottom-color: var(--line); box-shadow: var(--sh-sm); }

.top-bar__inner { display: flex; align-items: center; gap: 24px; height: 74px; }

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__mark {
    display: grid; place-items: center; width: 42px; height: 42px;
    border-radius: 13px; color: var(--accent-ink);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: var(--sh-accent);
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text b { font-size: 16px; letter-spacing: -.02em; }
.logo__text small { font-size: 11px; color: var(--muted); letter-spacing: .05em; }

.nav { display: flex; gap: 2px; margin-left: 10px; }
.nav__link {
    position: relative; padding: 9px 14px; border-radius: var(--r-sm);
    font-size: 15px; font-weight: 500; color: var(--ink-2);
    transition: color .16s var(--ease), background .16s var(--ease);
}
.nav__link:hover { background: var(--surface-2); color: var(--ink); }
.nav__link.is-active { color: var(--ink); font-weight: 600; }

/* Подчёркивание активного пункта — линией под текстом, а не заливкой: заливка
   на четырёх пунктах меню превращает шапку в набор кнопок. */
.nav__link.is-active::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px;
    height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.top-bar__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.phone { font-weight: 600; font-size: 15px; white-space: nowrap; transition: color .16s var(--ease); }
.phone:hover { color: var(--accent); }

.burger {
    display: none; background: none; border: 1px solid var(--line);
    border-radius: var(--r-sm); padding: 9px 10px; cursor: pointer;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==================== КНОПКИ ==================== */

.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 11px 20px; border-radius: var(--r-sm);
    border: 1px solid transparent; cursor: pointer;
    font-size: 15px; font-weight: 600; white-space: nowrap; letter-spacing: -.01em;
    transition: transform .12s var(--ease), box-shadow .18s var(--ease),
                background .18s var(--ease), border-color .18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.995); }

.btn--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-ink);
    box-shadow: var(--sh-accent);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(240, 86, 29, .34); }

.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--sh-sm); }
.btn--ghost:hover { border-color: var(--accent-line); background: var(--surface-2); transform: translateY(-1px); }

.btn--lg { padding: 15px 28px; font-size: 16px; border-radius: var(--r-md); }
.btn--block { width: 100%; }

.btn[disabled] { opacity: .5; pointer-events: none; box-shadow: none; }

/* ==================== ГЕРОЙ ==================== */

.hero {
    position: relative; overflow: hidden;
    background: var(--bg);
}

/* Фон собран из трёх слоёв: два размытых пятна акцента и точечная сетка.
   Сетка не декоративная — она задаёт масштаб и намекает на координатную
   плоскость слайсера, а без неё градиент выглядит как размытая клякса. */
.hero::before {
    content: ''; position: absolute; inset: -30% -10% auto -10%; height: 130%;
    background:
        radial-gradient(600px 340px at 78% 6%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
        radial-gradient(520px 300px at 12% 88%, color-mix(in srgb, var(--info) 14%, transparent), transparent 72%);
    pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(currentColor 1px, transparent 1px);
    background-size: 26px 26px;
    color: color-mix(in srgb, var(--ink) 8%, transparent);
    mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
    pointer-events: none;
}

.hero__inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px;
    align-items: center; padding: 84px 24px 92px;
}

.hero h1 { margin-bottom: .3em; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }

.chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 13px; border-radius: var(--r-full);
    background: var(--surface); border: 1px solid var(--line);
    font-size: 13px; font-weight: 550; color: var(--ink-2);
    box-shadow: var(--sh-sm);
}
.chip--live { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 32%, var(--line)); background: var(--ok-soft); }
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Пульсация — только у «живого» признака. Анимировать всё подряд значит
   лишить движение смысла: если мигает всё, не мигает ничего. */
.chip--live .chip__dot { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.hero__actions { display: flex; gap: 12px; margin: 30px 0 38px; flex-wrap: wrap; }

.hero__facts { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.hero__facts li { display: flex; flex-direction: column; padding: 0 26px; border-left: 1px solid var(--line); }
.hero__facts li:first-child { padding-left: 0; border-left: 0; }
.hero__facts b { font-size: 25px; letter-spacing: -.03em; line-height: 1.2; }
.hero__facts span { font-size: 13px; color: var(--muted); }

/* ПРИНТЕР — рисунок, а не фотография.
   Векторные фигуры вместо снимка: снимок весит мегабайт, требует второй версии
   для тёмной темы и всё равно выглядит как чужой стоковый кадр. */
.hero__art { display: flex; justify-content: center; }

.printer {
    position: relative; padding: 26px;
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
}
.printer__frame {
    position: relative; width: 268px; height: 258px;
    border: 2px solid var(--ink); border-radius: var(--r-md);
    background: var(--surface-2); overflow: hidden;
}
.printer__gantry {
    position: absolute; left: 0; right: 0; top: 36px; height: 7px;
    background: var(--ink); border-radius: 4px;
    animation: gantry 4.2s var(--ease) infinite;
}
.printer__head {
    position: absolute; top: 5px; left: 50%; width: 26px; height: 22px;
    margin-left: -13px; background: linear-gradient(180deg, var(--accent-2), var(--accent));
    clip-path: polygon(0 0, 100% 0, 62% 100%, 38% 100%);
}
.printer__object {
    position: absolute; bottom: 28px; left: 50%; width: 100px; margin-left: -50px;
    height: 0; border-radius: 4px 4px 0 0;
    background: repeating-linear-gradient(180deg,
        var(--accent-2) 0 3px, var(--accent) 3px 7px);
    animation: printing 4.2s var(--ease) infinite;
}
.printer__bed { position: absolute; left: 24px; right: 24px; bottom: 20px; height: 8px; background: var(--ink); border-radius: 4px; }

@keyframes gantry {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(112px); }
}
@keyframes printing {
    0%, 100% { height: 8px; }
    50%      { height: 124px; }
}

/* Уважаем системную настройку «меньше движения»: анимированный принтер —
   украшение, а для части людей ещё и причина головокружения. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .printer__gantry, .printer__object, .chip--live .chip__dot { animation: none; }
    .printer__object { height: 92px; }
    .printer__gantry { transform: translateY(56px); }
    * { transition-duration: .01ms !important; }
}

/* ==================== ПОЛОСА ПРЕИМУЩЕСТВ ==================== */

.strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line);
    border-radius: var(--r-md); overflow: hidden; margin-top: -34px;
    position: relative; z-index: 2; box-shadow: var(--sh-md);
}
.strip__item { background: var(--surface); padding: 20px 22px; }
.strip__item b { display: block; font-size: 15px; margin-bottom: 3px; }
.strip__item span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ==================== КАРТОЧКИ ==================== */

.card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 26px; box-shadow: var(--sh-sm);
}

.tile {
    position: relative; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 26px;
    display: flex; flex-direction: column; gap: 9px;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

/* Подсветка сверху при наведении вместо смены цвета рамки: рамка меняет
   геометрию (её видно как «дрожание» на 1 px), а полоска — нет. */
.tile::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0; transition: opacity .2s var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.tile:hover::before { opacity: 1; }

.tile__icon {
    display: grid; place-items: center; width: 46px; height: 46px;
    border-radius: 14px; background: var(--accent-soft);
    font-size: 24px; line-height: 1; margin-bottom: 4px;
}
.tile h3 { margin: 0; }
.tile p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.tile__price { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--accent); font-size: 15px; }

.tile--material { border-left: 3px solid var(--dot, var(--accent)); }
.tile__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

.badge {
    display: inline-block; padding: 3px 10px; border-radius: var(--r-full);
    background: var(--surface-2); border: 1px solid var(--line);
    font-size: 12px; font-weight: 600; color: var(--ink-2);
}

/* ==================== ШАГИ ==================== */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.steps li {
    position: relative; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 26px;
}
.steps__num {
    display: inline-grid; place-items: center; width: 34px; height: 34px;
    border-radius: 11px; background: var(--ink); color: var(--bg);
    font-weight: 700; font-size: 15px; margin-bottom: 14px;
}
.steps li:first-child .steps__num { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); }
.steps h3 { font-size: 17px; margin: 0 0 7px; }
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ==================== ТАБЛИЦА ==================== */

/* Таблица не должна распирать страницу: на телефоне она уезжает в свою
   прокрутку, а не заставляет двигать по горизонтали весь сайт. */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-sm); }

.table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table th, .table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 650; background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table td b { font-weight: 650; }

/* ==================== ФОРМЫ ==================== */

.form { display: flex; flex-direction: column; gap: 18px; }
.form--inline { flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
.form--inline .field { flex: 1 1 180px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field label em { color: var(--accent); font-style: normal; }
.field small { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

input[type=text], input[type=tel], input[type=email], input[type=password],
input[type=number], input[type=search], input[type=file], select, textarea {
    width: 100%; padding: 12px 14px;
    background: var(--surface-2); color: var(--ink);
    border: 1px solid var(--line); border-radius: var(--r-sm);
    font: inherit; font-size: 15px;
    transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--muted) 40%, var(--line)); }
input:focus, select:focus, textarea:focus {
    outline: none; background: var(--surface);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}
textarea { resize: vertical; min-height: 104px; line-height: 1.6; }

/* Стрелка у select своя: системная в тёмной теме остаётся светлой и выглядит
   инородно. */
select {
    appearance: none; -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 19px) calc(50% + 1px), calc(100% - 14px) calc(50% + 1px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 38px;
}

input[type=range] { width: 100%; accent-color: var(--accent); padding: 0; background: none; border: 0; }

.check { display: flex; align-items: center; gap: 11px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }

/* ==================== ЗАГРУЗКА ФАЙЛА ==================== */

.drop {
    display: flex; align-items: center; gap: 18px;
    padding: 26px; border: 2px dashed var(--line); border-radius: var(--r-md);
    background: var(--surface-2); cursor: pointer;
    transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}
.drop:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.drop.is-over { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.01); }

.drop__icon {
    display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0;
    border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
    font-size: 20px; color: var(--accent);
}
.drop__text { display: flex; flex-direction: column; gap: 3px; font-size: 14.5px; }
.drop__text b { font-size: 15.5px; }
.drop__text small { color: var(--muted); font-size: 12.5px; }
.drop__file { margin-left: auto; font-size: 13px; color: var(--ok); font-weight: 600; text-align: right; }

/* ==================== КАЛЬКУЛЯТОР ==================== */

.calc { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: start; padding-bottom: 80px; }
.calc__form { display: flex; flex-direction: column; gap: 20px; }

/* Панель результата едет за прокруткой: цена — то, ради чего человек сюда
   пришёл, и уезжать из виду при возне с ползунками она не должна. */
.calc__result { position: sticky; top: 94px; display: flex; flex-direction: column; gap: 18px; }

.result__total {
    display: flex; flex-direction: column; gap: 2px;
    padding: 20px 22px; margin: -26px -26px 0;
    border-radius: var(--r-md) var(--r-md) 0 0;
    background: linear-gradient(135deg, var(--accent-soft), transparent 70%);
    border-bottom: 1px solid var(--line-soft);
}
.result__total span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 650; }
.result__total b { font-size: 38px; letter-spacing: -.04em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.result__total small { color: var(--muted); font-size: 13px; }

.result__rows { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.result__rows > div { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.result__rows > div:last-child { border-bottom: 0; padding-bottom: 0; }
.result__rows dt { color: var(--muted); }
.result__rows dd { margin: 0; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }

.result__model {
    background: var(--surface-2); border: 1px solid var(--line);
    border-radius: var(--r-sm); padding: 14px 16px; font-size: 13.5px; line-height: 1.6;
}
.result__model b { font-family: var(--mono); font-size: 13px; }
.result__model .warn { color: var(--warn); display: block; margin-top: 7px; }

/* ==================== ЛЕНТА СТАТУСОВ ==================== */

.timeline { list-style: none; margin: 20px 0 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 24px 32px; }

/* Линия рисуется псевдоэлементом, а не рамкой списка: у последнего шага её надо
   оборвать, иначе она висит хвостом ниже последней точки. */
.timeline li::before {
    content: ''; position: absolute; left: 8px; top: 20px; bottom: 0;
    width: 2px; background: var(--line);
}
.timeline li:last-child::before { display: none; }

.timeline li::after {
    content: ''; position: absolute; left: 3px; top: 5px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--surface); border: 2px solid var(--line);
    transition: background .2s var(--ease);
}
.timeline li.is-done::before { background: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.timeline li.is-done::after { background: var(--ok); border-color: var(--ok); }
.timeline li.is-current::after {
    background: var(--accent); border-color: var(--accent);
    box-shadow: 0 0 0 5px var(--accent-soft);
}
.timeline b { display: block; font-size: 15px; }
.timeline span { font-size: 13.5px; color: var(--muted); }
.timeline time { font-size: 12.5px; color: var(--muted); font-family: var(--mono); }

/* ==================== ЗАКАЗЫ ==================== */

.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 30px; }
.summary__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; box-shadow: var(--sh-sm); }
.summary__item b { display: block; font-size: 30px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.summary__item span { font-size: 13px; color: var(--muted); }

.profile { display: grid; grid-template-columns: 1.4fr .6fr; gap: 24px; align-items: start; padding-bottom: 80px; }
.profile__orders { display: flex; flex-direction: column; gap: 14px; }

.order-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 20px 22px; cursor: pointer;
    display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
    transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.order-card:hover { border-color: var(--accent-line); transform: translateX(3px); box-shadow: var(--sh-md); }
.order-card__code { font-family: var(--mono); font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.order-card__meta { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.order-card__price { font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.status {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: var(--r-full);
    font-size: 12.5px; font-weight: 650;
    background: var(--surface-2); border: 1px solid var(--line);
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--wait { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 28%, transparent); }
.status--work { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.status--ok   { color: var(--info); background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 28%, transparent); }
.status--done { color: var(--ok); background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 28%, transparent); }
.status--stop { color: var(--stop); background: var(--stop-soft); border-color: color-mix(in srgb, var(--stop) 28%, transparent); }

.empty {
    padding: 44px 24px; text-align: center; color: var(--muted);
    background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-md);
}

.success { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); background: linear-gradient(180deg, var(--ok-soft), var(--surface) 60%); }
.success h2 { color: var(--ok); }
.success .code {
    font-family: var(--mono); font-size: 30px; font-weight: 700; letter-spacing: .06em;
    display: inline-block; padding: 10px 20px; border-radius: var(--r-sm);
    background: var(--surface); border: 1px dashed var(--ok);
}

/* ==================== ВКЛАДКИ ==================== */

.tabs { display: flex; gap: 4px; margin-bottom: 24px; padding: 5px; background: var(--surface-2); border-radius: var(--r-sm); }
.tabs__btn {
    flex: 1; padding: 10px; border: 0; background: none; border-radius: var(--r-xs);
    cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--muted);
    transition: background .18s var(--ease), color .18s var(--ease);
}
.tabs__btn.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--sh-sm); }

/* ==================== ПРИЗЫВ ==================== */

.cta {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 28px;
    flex-wrap: wrap; margin: 24px 0 90px; padding: 44px 48px;
    background: linear-gradient(120deg, #12151d 0%, #1d2230 55%, #2a1b14 100%);
    border-radius: var(--r-lg); color: #fff;
}
.cta::before {
    content: ''; position: absolute; inset: auto -80px -140px auto; width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(240, 86, 29, .5), transparent 66%);
    pointer-events: none;
}
.cta__text { position: relative; z-index: 1; }
.cta h2 { margin: 0 0 8px; color: #fff; }
.cta p { margin: 0; color: rgba(255, 255, 255, .74); max-width: 46ch; }
.cta .btn { position: relative; z-index: 1; }

/* ==================== ПОДВАЛ ==================== */

.footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: auto; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: var(--muted); }
.footer__col b { color: var(--ink); font-size: 17px; letter-spacing: -.02em; }
.footer__col p { margin: 0; line-height: 1.6; }
.footer__col h4 { margin: 0 0 4px; }
.footer__col a { transition: color .16s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { padding: 20px 24px 30px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }

/* ==================== УВЕДОМЛЕНИЯ ==================== */

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 10px; max-width: min(400px, calc(100vw - 40px)); }

.toast {
    background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
    border-radius: var(--r-sm); padding: 14px 18px; box-shadow: var(--sh-lg);
    font-size: 14.5px; line-height: 1.5; animation: toast-in .22s var(--ease);
}
.toast--ok { border-left-color: var(--ok); }
.toast--error { border-left-color: var(--stop); }

@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* ==================== АДАПТИВ ==================== */

@media (max-width: 1000px) {
    .hero__inner { grid-template-columns: 1fr; padding: 56px 24px 64px; }
    .hero__art { display: none; }

    .calc, .profile { grid-template-columns: 1fr; }
    .calc__result { position: static; }

    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .steps, .strip { grid-template-columns: repeat(2, 1fr); }
    .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    /* Меню уезжает под шапку и открывается бургером. Прятать его совсем нельзя:
       «Калькулятор» и «Статус заказа» — половина причин, по которым сюда
       заходят с телефона. */
    .nav {
        position: absolute; left: 12px; right: 12px; top: 78px;
        flex-direction: column; gap: 2px; margin: 0; padding: 10px;
        background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--r-md); box-shadow: var(--sh-lg); display: none;
    }
    .nav.is-open { display: flex; animation: toast-in .18s var(--ease); }
    .nav__link { padding: 13px 14px; }
    .nav__link.is-active::after { left: 14px; right: auto; width: 16px; bottom: 8px; }

    .burger { display: block; }
    .phone, #authLink { display: none; }

    .wrap { padding: 0 18px; }

    .grid--2, .grid--3, .steps, .strip, .summary, .field-row { grid-template-columns: 1fr; }
    .strip { margin-top: 0; }
    .footer__inner { grid-template-columns: 1fr; }

    .hero__facts li { padding: 0 18px 0 0; border-left: 0; }

    .order-card { grid-template-columns: 1fr; gap: 10px; }
    .order-card__price { text-align: left; }

    .cta { padding: 30px 24px; margin-bottom: 60px; }
    .drop { flex-direction: column; text-align: center; }
    .drop__file { margin: 0; }
}
