/*
 * site.css — оформление сайта leo-wend.ru (редизайн 13–14.10.2026).
 *
 * Владелец: «полный редизайн, сайт выглядит ИИшным» → затем: «дизайн сделай крутым, много анимаций, а не
 * минимализм; тема тёмно-синяя и бело-синяя». Две темы: светлая — белая с синим, тёмная — глубокий тёмно-синий.
 * Узкий жирный Ubuntu Sans в заголовках, моноширинный — в подписях и цифрах. Движение: появление блоков при
 * прокрутке, счётчики, бегущий ряд силомеров, смена цвета силомера на первом экране, наклон за мышкой
 * (static/js/site.js). При «уменьшить движение» в системе анимации выключены.
 *
 * Шрифты — свои, со своего сервера (static/vendor/fonts, Ubuntu Sans, лицензия Ubuntu Font Licence):
 * внешние CDN без VPN у части провайдеров не открываются.
 * Тема — класс .dark/.light на <html> (переключатель в шапке) или настройка системы.
 */

@font-face {
    font-family: 'LW Sans';
    src: url('../vendor/fonts/files/ubuntu-sans-var.woff') format('woff');
    font-weight: 100 800;
    font-stretch: 75% 100%;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'LW Mono';
    src: url('../vendor/fonts/files/ubuntu-sans-mono-var.woff') format('woff');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

/* ------------------------------------------------------------------ темы */
:root {
    --bg: #f3f7ff;
    --bg-2: #e9f0ff;
    --paper: #ffffff;
    --panel: #e6eeff;
    --ink: #0a1838;
    --ink-2: #2a3a60;
    --muted: #5a6a8f;
    --line: #d3ddf3;
    --line-2: #e5ecfa;
    --accent: #1f63ff;
    --accent-hover: #0f4ff0;
    --accent-2: #12b5ff;
    --accent-soft: rgba(31, 99, 255, .1);
    --accent-ink: #ffffff;
    --glow: rgba(31, 99, 255, .28);
    --ok: #10a36a;
    --night: #071227;
    --night-2: #0d1c3b;
    --night-line: #1b2f58;
    --night-ink: #e8efff;
    --night-muted: #93a4cc;
    --head-bg: rgba(255, 255, 255, .78);
    --shadow: 0 18px 50px -24px rgba(16, 48, 120, .35);
    --radius: 14px;
    --radius-sm: 10px;
    --wrap: 1240px;
    --gutter: 24px;
    --sans: 'LW Sans', 'Ubuntu', 'Segoe UI', Roboto, Arial, sans-serif;
    --mono: 'LW Mono', 'Ubuntu Mono', ui-monospace, Menlo, Consolas, monospace;
    --ease: cubic-bezier(.2, .7, .2, 1);
    color-scheme: light;
}
html.dark {
    --bg: #060e1f;
    --bg-2: #0a1630;
    --paper: #0c1a36;
    --panel: #10234a;
    --ink: #eaf0ff;
    --ink-2: #c3d0ef;
    --muted: #8b9cc4;
    --line: #1c3060;
    --line-2: #152752;
    --accent: #3a7bff;
    --accent-hover: #2259e8;
    --accent-2: #35caff;
    --accent-soft: rgba(58, 123, 255, .16);
    --glow: rgba(58, 123, 255, .45);
    --ok: #3ad08f;
    --head-bg: rgba(6, 14, 31, .72);
    --shadow: 0 20px 60px -26px rgba(0, 0, 0, .8);
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
    html:not(.light):not(.dark) {
        --bg: #060e1f; --bg-2: #0a1630; --paper: #0c1a36; --panel: #10234a; --ink: #eaf0ff; --ink-2: #c3d0ef;
        --muted: #8b9cc4; --line: #1c3060; --line-2: #152752; --accent: #3a7bff; --accent-hover: #2259e8;
        --accent-2: #35caff; --accent-soft: rgba(58, 123, 255, .16); --glow: rgba(58, 123, 255, .45); --ok: #3ad08f;
        --head-bg: rgba(6, 14, 31, .72); --shadow: 0 20px 60px -26px rgba(0, 0, 0, .8);
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 16px/1.55 var(--sans);
    font-stretch: 100%;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
main { flex: 1 0 auto; }
img, svg, canvas, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 640px) { :root { --gutter: 16px; } }

/* ------------------------------------------------------------------ типографика */
.display {
    font-stretch: 75%;
    font-weight: 780;
    letter-spacing: -0.015em;
    line-height: 0.94;
    font-size: clamp(46px, 7vw, 96px);
}
.display .hl, .h2 .hl {
    color: var(--accent);
    background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 55%, var(--accent) 90%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: hl-move 6s ease-in-out infinite;
}
@keyframes hl-move { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.h2 {
    font-stretch: 75%;
    font-weight: 760;
    letter-spacing: -0.012em;
    line-height: 0.98;
    font-size: clamp(34px, 4.6vw, 60px);
}
.h3 { font-stretch: 82%; font-weight: 700; font-size: 24px; line-height: 1.12; }
.lead { font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.label {
    display: inline-flex; align-items: center; gap: 10px; width: max-content; max-width: 100%;
    font-family: var(--mono); font-size: 12.5px; line-height: 1.3; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent);
}
.label::before { content: ''; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.label--num::before { content: attr(data-n); width: auto; height: auto; background: none; font-weight: 700; color: var(--accent-2); }
.label--num::after { content: ''; width: 26px; height: 2px; background: currentColor; border-radius: 2px; order: -1; display: none; }
.prose p + p { margin-top: 14px; }
.prose h2 { font-stretch: 82%; font-size: 26px; margin: 34px 0 12px; }
.prose h3 { font-size: 19px; margin: 24px 0 8px; }
.prose ul, .prose ol { margin: 10px 0 10px 1.2em; }
.prose li { margin: 4px 0; }
.prose a { color: var(--accent); }
.prose { color: var(--ink-2); max-width: 74ch; }

/* ------------------------------------------------------------------ кнопки и ссылки */
.btn {
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 0 24px;
    border: 1px solid transparent; border-radius: 999px;
    font-weight: 650; font-size: 15.5px; letter-spacing: 0.01em;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn--accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--accent-ink);
    box-shadow: 0 10px 28px -10px var(--glow);
}
.btn--accent::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .45) 45%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .7s var(--ease);
}
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px var(--glow); }
.btn--accent:hover::after { transform: translateX(120%); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.btn--ghost { color: var(--ink); background: var(--paper); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: wait; }
.arrow-link {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 650; text-decoration: none; color: var(--accent);
    background: linear-gradient(currentColor, currentColor) 0 100% / 0% 2px no-repeat;
    padding-bottom: 3px; transition: background-size .35s var(--ease);
}
.arrow-link::after { content: '→'; transition: transform .25s var(--ease); }
.arrow-link:hover { background-size: 100% 2px; }
.arrow-link:hover::after { transform: translateX(5px); }

/* ------------------------------------------------------------------ шапка */
.site-head {
    position: sticky; top: 0; z-index: 40;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color .3s, border-color .3s, backdrop-filter .3s;
}
.site-head.is-scrolled {
    background: var(--head-bg);
    border-bottom-color: var(--line);
    -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
}
.site-head__row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; }   /* логотип не крутим (владелец, 14.10) */
.brand b { font-stretch: 75%; font-weight: 780; font-size: 24px; letter-spacing: 0.04em; line-height: 1; }
.brand b span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav a {
    position: relative; text-decoration: none; font-size: 15px; font-weight: 550; color: var(--ink-2);
    padding: 9px 13px; border-radius: 999px; white-space: nowrap; transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.head-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.head-phone { font-family: var(--mono); font-size: 14px; text-decoration: none; white-space: nowrap; }
.head-phone:hover { color: var(--accent); }
.head-link { font-size: 14px; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.head-link:hover { color: var(--accent); }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--paper); cursor: pointer; color: var(--ink-2); transition: border-color .2s, color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.burger { display: none; }
@media (max-width: 1280px) { .head-phone { display: none; } .nav a { padding: 9px 10px; } }
@media (max-width: 1100px) {
    .nav, .head-link, .head-cta { display: none; }
    .burger { display: inline-flex; }
    .site-head__row { justify-content: space-between; }
}

/* выпадающее меню темы */
.theme { position: relative; }
.theme__menu {
    position: absolute; right: 0; top: calc(100% + 10px); min-width: 180px; padding: 6px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow); animation: pop .18s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.theme__menu button {
    display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px;
    border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; font-size: 14px;
}
.theme__menu button:hover { background: var(--accent-soft); color: var(--accent); }
.theme__menu svg { width: 16px; height: 16px; }

/* мобильное меню — справа */
.drawer-back { position: fixed; inset: 0; z-index: 60; background: rgba(4, 10, 24, .6); opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(380px, 90vw);
    background: var(--paper); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .4s var(--ease);
    display: flex; flex-direction: column; overflow-y: auto;
}
.drawer-open .drawer { transform: none; }
.drawer-open .drawer-back { opacity: 1; pointer-events: auto; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); }
.drawer nav { display: flex; flex-direction: column; padding: 8px var(--gutter); }
.drawer nav a {
    text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line-2);
    font-stretch: 85%; font-weight: 680; font-size: 22px;
    opacity: 0; transform: translateX(24px); transition: opacity .4s var(--ease), transform .4s var(--ease), color .2s;
}
.drawer-open .drawer nav a { opacity: 1; transform: none; }
.drawer-open .drawer nav a:nth-child(2) { transition-delay: .03s; }
.drawer-open .drawer nav a:nth-child(3) { transition-delay: .06s; }
.drawer-open .drawer nav a:nth-child(4) { transition-delay: .09s; }
.drawer-open .drawer nav a:nth-child(5) { transition-delay: .12s; }
.drawer-open .drawer nav a:nth-child(6) { transition-delay: .15s; }
.drawer-open .drawer nav a:nth-child(7) { transition-delay: .18s; }
.drawer-open .drawer nav a:nth-child(8) { transition-delay: .21s; }
.drawer-open .drawer nav a:nth-child(9) { transition-delay: .24s; }
.drawer nav a:hover, .drawer nav a[aria-current="page"] { color: var(--accent); }
.drawer__foot { margin-top: auto; padding: 20px var(--gutter) 28px; display: grid; gap: 12px; border-top: 1px solid var(--line); }
.drawer__foot a.mono { text-decoration: none; font-size: 19px; }

/* ------------------------------------------------------------------ секции */
.section { position: relative; padding: 110px 0; }
.section--first { padding-top: 40px; }
.section--paper { background: var(--bg-2); }
.section--night {
    background:
        radial-gradient(60% 70% at 85% 10%, rgba(53, 202, 255, .16), transparent 60%),
        radial-gradient(50% 60% at 10% 90%, rgba(58, 123, 255, .22), transparent 60%),
        var(--night);
    color: var(--night-ink); overflow: hidden;
    --ink: var(--night-ink); --ink-2: #c3d0ef; --muted: var(--night-muted); --line: var(--night-line);
    --line-2: #13274d; --panel: var(--night-2); --paper: var(--night-2); --accent: #4b88ff; --accent-2: #3fd0ff;
}
.section--night::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(120, 160, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 160, 255, .07) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(70% 80% at 50% 40%, #000, transparent);
    -webkit-mask-image: radial-gradient(70% 80% at 50% 40%, #000, transparent);
}
.section__head { display: grid; gap: 18px; margin-bottom: 52px; max-width: 840px; }
.section__head--split { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; }
@media (max-width: 760px) {
    .section { padding: 68px 0; }
    .section__head { margin-bottom: 34px; }
    .section__head--split { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ первый экран */
.hero { position: relative; padding: 40px 0 0; margin-top: -72px; padding-top: 112px; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(45% 55% at 78% 38%, var(--glow), transparent 70%),
        radial-gradient(35% 40% at 12% 18%, rgba(18, 181, 255, .14), transparent 70%);
}
.hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px; opacity: .55;
    mask-image: radial-gradient(60% 70% at 70% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(60% 70% at 70% 40%, #000 20%, transparent 75%);
    animation: grid-drift 24s linear infinite;
}
@keyframes grid-drift { to { background-position: 64px 64px, 64px 64px; } }
.hero > .wrap { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: 26px; padding-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__photo {
    position: relative; margin: 0; min-height: 600px;
    display: flex; align-items: flex-end; justify-content: center;
    perspective: 1200px;
}
.hero__photo::before {          /* подиум со свечением под силомером */
    content: ''; position: absolute; left: 12%; right: 12%; bottom: 18px; height: 64px; border-radius: 50%;
    background: radial-gradient(closest-side, var(--glow), transparent);
    filter: blur(6px); animation: floor-pulse 4s ease-in-out infinite;
}
.hero__photo::after {
    content: ''; position: absolute; left: 22%; right: 22%; bottom: 30px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-2), transparent); opacity: .8;
}
@keyframes floor-pulse { 0%, 100% { opacity: .7; transform: scaleX(1); } 50% { opacity: 1; transform: scaleX(1.08); } }
.hero-stack { position: relative; width: min(420px, 100%); aspect-ratio: 671 / 1057; transform-style: preserve-3d; transition: transform .5s var(--ease); }
.hero-stack img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
    opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .9s var(--ease), transform 1.1s var(--ease);
    filter: drop-shadow(0 30px 40px rgba(10, 30, 80, .35));
}
.hero-stack img.is-on { opacity: 1; transform: none; }
.hero-swatches { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; z-index: 2; }
.hero-swatches button {
    width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--paper); cursor: pointer;
    box-shadow: 0 0 0 1px var(--line); transition: transform .2s var(--ease), box-shadow .2s;
}
.hero-swatches button[aria-pressed="true"] { transform: scale(1.25); box-shadow: 0 0 0 2px var(--accent); }
.hero__photo figcaption {
    position: absolute; left: 0; top: 18px; z-index: 2;
    font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
    padding: 7px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
}
.facts {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; padding-bottom: 20px;
}
.facts > div {
    position: relative; overflow: hidden;
    padding: 22px 22px 24px; display: grid; gap: 6px; align-content: start;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.facts > div::after {
    content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left;
    transition: transform .6s var(--ease);
}
.facts > div.is-in::after { transform: scaleX(1); }
.facts > div:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.facts b { font-stretch: 78%; font-weight: 760; font-size: 32px; line-height: 1.05; color: var(--ink); }
.facts > div > span { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.facts b span { font: inherit; color: inherit; }
@media (max-width: 980px) {
    .hero { padding-top: 96px; }
    .hero__grid { grid-template-columns: 1fr; gap: 10px; }
    .hero__text { padding-bottom: 0; }
    .hero__photo { min-height: 0; padding-top: 10px; }
    .hero-stack { width: min(360px, 82vw); }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) { .facts b { font-size: 26px; } .facts > div { padding: 16px; } }

/* ------------------------------------------------------------------ модели */
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.model {
    position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.model::before {          /* блик, пробегающий по карточке */
    content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
    transform: translateX(-100%); transition: transform .9s var(--ease);
}
.model:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.model:hover::before { transform: translateX(100%); }
.model__pic {
    position: relative; aspect-ratio: 4 / 4.2; display: flex; align-items: flex-end; justify-content: center; padding: 22px 18px 0; overflow: hidden;
    background: radial-gradient(70% 60% at 50% 70%, var(--accent-soft), transparent 70%), var(--bg-2);
}
.model__pic img { max-height: 100%; width: auto; transition: transform .6s var(--ease); }
.model:hover .model__pic img { transform: scale(1.05) translateY(-4px); }
.model__body { padding: 18px 20px 20px; display: grid; gap: 10px; flex: 1; align-content: start; }
.model__kind { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.model__name { font-stretch: 78%; font-weight: 760; font-size: 28px; line-height: 1.02; }
.model__spec { display: flex; flex-wrap: wrap; gap: 4px 16px; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.model__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); }
.model__price { font-stretch: 85%; font-weight: 720; font-size: 21px; }
.model__more { font-size: 14px; font-weight: 650; color: var(--accent); transition: transform .25s var(--ease); }
.model:hover .model__more { transform: translateX(4px); }
@media (max-width: 980px) { .models { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .models { grid-template-columns: 1fr; } .model__pic { aspect-ratio: 4 / 3.6; } }

/* ------------------------------------------------------------------ ряд цветов: бегущая лента */
.colors-row { display: flex; justify-content: center; align-items: flex-end; gap: 0; padding: 8px 0 0; }
.colors-row a { flex: 0 1 150px; min-width: 0; margin: 0 -6px; display: grid; justify-items: center; text-decoration: none; transition: transform .35s var(--ease); }
.colors-row a:hover { transform: translateY(-10px) scale(1.04); }
.colors-row img { width: 100%; filter: drop-shadow(0 18px 18px rgba(10, 30, 80, .22)); }
.colors-row b { margin-top: 10px; font-size: 14px; font-weight: 650; text-align: center; line-height: 1.2; }
.colors-row small { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.colors-row i { width: 14px; height: 14px; border-radius: 50%; margin-top: 8px; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--line); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .colors-row { justify-content: flex-start; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .colors-row { animation-play-state: paused; }
.marquee .colors-row a { flex: 0 0 170px; margin: 0 4px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.colors-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
    .colors-row:not(.is-marquee) { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) 6px; scrollbar-width: none; }
    .colors-row::-webkit-scrollbar { display: none; }
    .colors-row:not(.is-marquee) a { flex: 0 0 33vw; margin: 0 -2px; scroll-snap-align: center; }
    .marquee .colors-row a { flex: 0 0 130px; }
}

/* ------------------------------------------------------------------ конструкция: крупные планы */
.detail { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line); margin: 0; transition: transform .35s var(--ease), box-shadow .35s; }
.detail:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.detail__pic { position: relative; aspect-ratio: 7 / 5; overflow: hidden; background: radial-gradient(80% 70% at 50% 60%, var(--accent-soft), transparent 70%), var(--bg-2); }
.detail__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: transform 1.2s var(--ease); }
.detail:hover .detail__pic img { transform: scale(1.07); }
.detail figcaption { padding: 20px 22px 24px; display: grid; gap: 8px; }
.detail figcaption b { font-stretch: 85%; font-size: 21px; font-weight: 720; }
.detail figcaption span { color: var(--muted); }

/* ------------------------------------------------------------------ плата и телеметрия */
.board { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.board__text { display: grid; gap: 26px; }
.ports { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ports div {
    display: grid; grid-template-columns: 100px 1fr; gap: 10px; padding: 11px 14px; font-size: 14.5px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .02);
    transition: border-color .25s, background-color .25s, transform .25s var(--ease);
}
.ports div:hover { border-color: var(--accent-2); background: rgba(63, 208, 255, .06); transform: translateX(3px); }
.ports code { font-family: var(--mono); font-size: 13px; color: var(--accent-2); letter-spacing: .02em; }
.board__view { display: grid; gap: 12px; }
.viewer3d {
    position: relative; height: min(64vh, 580px); min-height: 360px;
    background: radial-gradient(110% 90% at 50% 25%, #16305f 0%, #0a1733 55%, #060e1f 100%);
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 30px 80px -40px rgba(30, 110, 255, .55), inset 0 0 0 1px rgba(120, 170, 255, .06);
}
.viewer3d::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(120, 170, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 170, 255, .08) 1px, transparent 1px);
    background-size: 40px 40px; mask-image: linear-gradient(to top, #000, transparent 70%); -webkit-mask-image: linear-gradient(to top, #000, transparent 70%);
}
.viewer3d canvas { position: relative; width: 100%; height: 100%; display: block; touch-action: none; }
.viewer3d__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.viewer3d__bar .muted { font-size: 13.5px; }
.viewer3d .silomer-3d-ui { position: absolute; inset: 12px; pointer-events: none; }
.viewer3d .silomer-3d-chips, .viewer3d [data-act="display"], .viewer3d [data-act="xray"], .viewer3d [data-act="board"],
.viewer3d [data-act="sticker"], .viewer3d [data-act="ar"] { display: none !important; }
.viewer3d .silomer-3d-tools { position: absolute; right: 0; top: 0; display: flex; gap: 6px; pointer-events: auto; }
.viewer3d .silomer-3d-btn {
    height: 36px; min-width: 36px; padding: 0 10px; border-radius: 999px; cursor: pointer;
    border: 1px solid rgba(160, 190, 255, .25); background: rgba(8, 18, 40, .7); color: #e8efff; font-size: 14px;
}
.viewer3d .silomer-3d-btn:hover { border-color: #3fd0ff; }
.viewer3d__state {
    position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px;
    color: #93a4cc; font-size: 14px; pointer-events: none;
}
.viewer3d[data-loading] .viewer3d__state span:first-child::after {
    content: ''; display: block; width: 120px; height: 2px; margin: 14px auto 0; border-radius: 2px;
    background: linear-gradient(90deg, transparent, #3fd0ff, transparent); background-size: 200% 100%; animation: load-bar 1.2s linear infinite;
}
@keyframes load-bar { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.viewer3d:not([data-loading]):not([data-unsupported]) .viewer3d__state { display: none; }
.viewer3d[data-unsupported] .viewer3d__state span:first-child,
.viewer3d:not([data-unsupported]) .viewer3d__state span:last-child { display: none; }
.silomer-3d-full { position: fixed; inset: 0; z-index: 90; background: radial-gradient(110% 90% at 50% 25%, #16305f, #060e1f); }
.silomer-3d-full .silomer-3d-ui { position: absolute; inset: 14px; }
.silomer-3d-full .silomer-3d-tools { position: absolute; right: 0; top: 0; display: flex; gap: 6px; }
.silomer-3d-full .silomer-3d-chips, .silomer-3d-full [data-act="display"], .silomer-3d-full [data-act="xray"],
.silomer-3d-full [data-act="board"], .silomer-3d-full [data-act="sticker"], .silomer-3d-full [data-act="ar"] { display: none !important; }
.silomer-3d-full .silomer-3d-btn {
    height: 40px; min-width: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(160, 190, 255, .3);
    background: rgba(8, 18, 40, .8); color: #e8efff; font-size: 15px; cursor: pointer;
}
/* режимы витрины платы и подписи разъёмов */
.board-modes { display: flex; flex-wrap: wrap; gap: 6px; }
.board-modes button {
    border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--ink-2); cursor: pointer;
    padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
    transition: border-color .2s, color .2s, background-color .2s, transform .2s var(--ease);
}
.board-modes button:hover { border-color: var(--accent-2); color: var(--ink); transform: translateY(-1px); }
.board-modes button[aria-pressed="true"] { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--accent), #2b6bff); box-shadow: 0 8px 22px -10px rgba(58, 123, 255, .8); }
#plataTags[aria-pressed="true"] { border-color: var(--accent-2); color: var(--accent-2); }
.board-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.board-tag {
    position: absolute; left: 0; top: 0; white-space: nowrap;
    padding: 2px 7px; margin: -26px 0 0 -8px; border-radius: 6px;
    font-family: var(--mono); font-weight: 700; font-size: 11px; line-height: 1.3; color: #3fd0ff;
    background: rgba(6, 14, 31, .85); border: 1px solid rgba(63, 208, 255, .55);
    box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .8); transition: opacity .2s;
}
.board-tag { pointer-events: auto; cursor: help; }
.board-tag::after { content: ''; position: absolute; left: 7px; bottom: -8px; width: 1px; height: 8px; background: rgba(63, 208, 255, .8); }
@media (max-width: 980px) {
    /* один столбец: заголовок и абзац → 3D → список разъёмов */
    .board { grid-template-columns: 1fr; gap: 20px; }
    .board__text { display: contents; }
    .board__text > * { order: 1; }
    .board__view { order: 2; margin: 8px 0 10px; }
    .board__text > .ports { order: 3; }
    .board__text > .arrow-link { order: 4; }
    .viewer3d { height: 58vh; min-height: 320px; }
}
@media (max-width: 520px) { .ports { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ CRM */
.crm-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; margin-bottom: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.crm-tabs button {
    position: relative; overflow: hidden; border: 0; background: none; cursor: pointer; padding: 10px 18px; border-radius: 999px;
    font-size: 15px; font-weight: 650; color: var(--muted); transition: color .25s, background-color .25s;
}
.crm-tabs button[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-hover)); box-shadow: 0 8px 20px -10px var(--glow); }
.crm-tabs button i { position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .85); transform: scaleX(0); transform-origin: left; }
.crm-tabs button[aria-selected="true"] i { animation: tab-progress var(--cycle, 6s) linear forwards; }
.crm-tabs.is-paused button i { animation-play-state: paused; }
@keyframes tab-progress { to { transform: scaleX(1); } }
.crm-stage { position: relative; }
.crm-shots { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 26px; align-items: end; }
.crm-shot { margin: 0; }
.crm-shot img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.crm-shot--phone img { border-radius: 30px; border: 8px solid #0d1426; }
.crm-shot figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.crm-pane { animation: pane-in .7s var(--ease); }
.crm-pane[hidden] { display: none; }
@keyframes pane-in { from { opacity: 0; transform: translateY(18px); } }
.crm-pane .crm-shot--phone { animation: phone-in .9s var(--ease); }
@keyframes phone-in { from { opacity: 0; transform: translateY(40px) rotate(3deg); } }
html.dark .crm-light, .crm-dark { display: none; }
html.dark .crm-dark { display: block; }
@media (prefers-color-scheme: dark) {
    html:not(.light):not(.dark) .crm-light { display: none; }
    html:not(.light):not(.dark) .crm-dark { display: block; }
}
.crm-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.crm-points div { padding: 22px; display: grid; gap: 8px; align-content: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, transform .3s var(--ease); }
.crm-points div:hover { border-color: var(--accent); transform: translateY(-4px); }
.crm-points b { font-size: 17.5px; font-weight: 680; }
.crm-points span { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) {
    .crm-shots { grid-template-columns: 1fr; }
    .crm-shot--desk { display: none; }
    .crm-shot--phone { max-width: 300px; margin: 0 auto; }
    .crm-points { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ оплата */
.pay { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pay > div {
    position: relative; padding: 26px 24px 28px; display: grid; gap: 12px; align-content: start;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.pay > div:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
.pay svg { width: 44px; height: 44px; color: var(--accent); }
.pay svg * { stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 1.6s var(--ease); }
.pay > div.is-in svg * { stroke-dashoffset: 0; }
.pay b { font-stretch: 82%; font-weight: 740; font-size: 22px; }
.pay span { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .pay { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pay { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ шаги, списки, таблицы */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.steps li { position: relative; list-style: none; padding-top: 26px; display: grid; gap: 8px; align-content: start; }
.steps li::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    font-family: var(--mono); font-weight: 700; color: var(--accent); font-size: 15px;
}
.steps li::after {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left;
    transition: transform .9s var(--ease) var(--d, 0s);
}
.steps li.is-in::after { transform: scaleX(1); }
.steps b { font-size: 19px; font-weight: 700; }
.steps span { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.spec { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.spec th, .spec td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font-weight: 500; color: var(--muted); width: 42%; padding-right: 16px; }
.spec td { font-family: var(--mono); font-size: 15px; }

.ticks { list-style: none; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.ticks li::before {
    content: ''; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f63ff' stroke-width='3'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.ticks b { display: block; font-weight: 680; }
.ticks span { color: var(--muted); }

.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .cols-2 { grid-template-columns: 1fr; gap: 28px; } .cols-3 { gap: 14px; } }
@media (max-width: 760px) { .cols-3 { grid-template-columns: 1fr; gap: 14px; } }

.card {
    position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
    display: grid; gap: 12px; align-content: start; overflow: hidden;
    transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.card h3 { font-stretch: 82%; font-size: 23px; }
.card p { color: var(--ink-2); }
.card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 22px -10px var(--glow); }
.card__icon svg { width: 24px; height: 24px; }

.note { border-left: 3px solid var(--accent); padding: 6px 0 6px 16px; color: var(--ink-2); }

/* ------------------------------------------------------------------ заголовок внутренних страниц */
.page-head { position: relative; overflow: hidden; margin-top: -72px; padding: 132px 0 64px; }
.page-head::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(50% 80% at 85% 0%, var(--glow), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgba(18, 181, 255, .12), transparent 70%);
}
.page-head::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px; mask-image: radial-gradient(60% 90% at 80% 10%, #000, transparent 75%); -webkit-mask-image: radial-gradient(60% 90% at 80% 10%, #000, transparent 75%);
}
.page-head__inner { position: relative; z-index: 1; display: grid; gap: 20px; max-width: 880px; }
.crumbs { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
@media (max-width: 760px) { .page-head { padding: 112px 0 40px; } }

/* ------------------------------------------------------------------ карточка товара */
.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; padding: 40px 0 100px; align-items: start; }
.product__pic {
    position: sticky; top: 96px; min-height: 600px; display: flex; align-items: flex-end; justify-content: center; padding: 40px 24px 20px;
    border-radius: var(--radius); border: 1px solid var(--line);
    background: radial-gradient(70% 60% at 50% 70%, var(--glow), transparent 70%), var(--bg-2);
}
.product__pic img { max-height: 620px; width: auto; filter: drop-shadow(0 30px 40px rgba(10, 30, 80, .35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.product__info { display: grid; gap: 26px; }
.product__price { font-stretch: 78%; font-weight: 760; font-size: 46px; line-height: 1; color: var(--accent); }
.product__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) {
    .product { grid-template-columns: 1fr; gap: 28px; padding-top: 16px; }
    .product__pic { min-height: 0; position: static; }
    .product__pic img { max-height: 420px; }
}

/* ------------------------------------------------------------------ контакты, финальный блок */
.contact-band { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: end; }
.big-phone {
    font-family: var(--mono); font-size: clamp(32px, 4.8vw, 60px); font-weight: 600; letter-spacing: -0.02em; text-decoration: none; line-height: 1.05;
    background: linear-gradient(100deg, var(--ink) 30%, var(--accent) 50%, var(--ink) 70%); background-size: 250% 100%; background-position: 100% 0;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; transition: background-position .9s var(--ease);
}
.big-phone:hover { background-position: 0 0; }
.contact-list { display: grid; gap: 10px; }
.contact-list div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.contact-list span:first-child { color: var(--muted); font-size: 14px; padding-top: 2px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent); }
@media (max-width: 900px) { .contact-band { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 420px) { .contact-list div { grid-template-columns: 1fr; gap: 2px; } }

/* ------------------------------------------------------------------ подвал */
.site-foot {
    position: relative; overflow: hidden; color: var(--night-ink); padding: 72px 0 28px;
    background: radial-gradient(60% 80% at 100% 0%, rgba(58, 123, 255, .22), transparent 60%), var(--night);
}
.site-foot a { color: var(--night-ink); text-decoration: none; }
.site-foot a:hover { color: #6fb1ff; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--night-line); }
.foot-grid h4 { color: var(--night-muted); font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.foot-grid ul { list-style: none; display: grid; gap: 10px; font-size: 15px; }
.foot-brand p { color: var(--night-muted); font-size: 14.5px; margin-top: 16px; max-width: 34ch; }
.foot-brand .brand b { color: var(--night-ink); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 22px; font-size: 13.5px; color: var(--night-muted); }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-bottom a { color: var(--night-muted); }
.foot-word {
    font-stretch: 75%; font-weight: 800; font-size: clamp(64px, 17vw, 250px); line-height: .8; letter-spacing: -0.02em;
    margin: 40px 0 -12px; text-align: center; user-select: none; pointer-events: none;
    background: linear-gradient(180deg, rgba(90, 140, 255, .32), rgba(90, 140, 255, 0));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { gap: 26px 16px; } .foot-grid ul { font-size: 14.5px; } }

/* ------------------------------------------------------------------ окно заявки */
.modal {
    position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
    padding: 16px; background: rgba(4, 10, 24, .66); opacity: 0; transition: opacity .25s;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.modal.is-open { display: flex; }
.modal.is-visible { opacity: 1; }
.modal__box {
    position: relative; width: 100%; max-width: 450px; max-height: calc(100vh - 32px); overflow-y: auto;
    background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px 28px;
    box-shadow: var(--shadow); transform: translateY(20px) scale(.97); transition: transform .35s var(--ease);
}
.modal.is-visible .modal__box { transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; }
.modal h3 { font-stretch: 80%; font-size: 30px; margin-bottom: 6px; padding-right: 40px; }
.modal p { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.field input {
    width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-error { color: #e5484d; font-size: 14px; text-align: center; }
.text-btn { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; padding: 8px; margin-top: 4px; width: 100%; }
.text-btn:hover { color: var(--accent); }
.modal__done { text-align: center; padding: 18px 0 4px; display: grid; gap: 12px; justify-items: center; }
.modal__done svg { width: 52px; height: 52px; color: var(--ok); }
.modal__done svg * { stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw 1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* уведомления Django messages */
.toasts { position: fixed; top: 86px; right: 16px; z-index: 99; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: 12px; padding: 14px 16px; font-size: 14.5px; box-shadow: var(--shadow); animation: pop .3s var(--ease); }
.toast--error { border-left-color: #e5484d; }

/* ------------------------------------------------------------------ появление при прокрутке (site.js) */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal--left { transform: translateX(-40px); }
.js .reveal--right { transform: translateX(40px); }
.js .reveal--zoom { transform: scale(.94); }
.js .split-line { display: block; overflow: hidden; }
.js .split-line > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease) var(--d, 0s); }
.js .is-in .split-line > span, .js .split-line.is-in > span { transform: none; }

/* ------------------------------------------------------------------ документы: оферта, правила оплаты */
.display--doc { font-size: clamp(36px, 5vw, 64px); }
.legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.legal__toc {
    position: sticky; top: 96px; display: grid; gap: 4px; padding: 20px; font-size: 14.5px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.legal__toc b { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.legal__toc a { padding: 6px 0; text-decoration: none; color: var(--ink-2); font-weight: 600; line-height: 1.35; transition: color .2s; }
.legal__toc a:hover { color: var(--accent); }
.legal__body {
    display: grid; gap: 38px; max-width: 900px; padding: clamp(22px, 4vw, 52px); color: var(--ink-2); line-height: 1.7;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.legal__body > * { scroll-margin-top: 96px; }
.legal__body h2 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; font-stretch: 82%; font-size: clamp(23px, 2.4vw, 30px); line-height: 1.15; }
.legal__body h4 { margin: 18px 0 8px; font-size: 16px; }
.legal-num { flex: 0 0 auto; font-family: var(--mono); font-stretch: 100%; font-size: .8em; color: var(--accent); }
.legal__body p + p, .legal__body p + ul, .legal__body ul + p, .legal__body p + ol, .legal__body div > p + p { margin-top: 12px; }
.legal__body ul, .legal__body ol { display: grid; gap: 8px; margin: 12px 0; padding-left: 22px; }
.legal__body li::marker { color: var(--accent); }
.legal__body strong, .legal__body b { color: var(--ink); }
.legal__body a { color: var(--accent); }
.legal-pre { padding-bottom: 34px; border-bottom: 1px solid var(--line-2); font-size: 17px; }
.legal-note { margin-bottom: 18px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.legal-note p:first-child { margin-bottom: 4px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.legal-req { display: grid; gap: 2px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.legal-req p + p { margin-top: 0 !important; }
.legal-req p:first-child { margin-bottom: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 980px) {
    .legal { grid-template-columns: 1fr; gap: 20px; }
    .legal__toc { position: static; }
}
@media (max-width: 760px) {
    .legal__body { gap: 30px; font-size: 15.5px; line-height: 1.65; }
    .legal-pre { font-size: 16px; }
}
@media print {
    @page { size: auto; margin: 20mm 15mm; }
    .site-head, .site-foot, .drawer, .drawer-back, .modal, .no-print, .legal__toc, .crumbs, .page-head::before, .page-head::after { display: none !important; }
    html, body { background: #fff !important; }
    *, *::before, *::after { color: #000 !important; text-shadow: none !important; box-shadow: none !important; }
    .page-head { margin: 0; padding: 0 0 8mm; }
    .section { padding: 0; }
    .legal { display: block; }
    .legal__body { border: 0; padding: 0; background: #fff; max-width: none; }
    .legal-sec { break-inside: avoid; }
    .js .reveal, .js .split-line > span { opacity: 1 !important; transform: none !important; }
}

/* ------------------------------------------------------------------ вход, регистрация, восстановление доступа
   (14.10.2026: после редизайна эти страницы остались на классах Tailwind без стилей — владелец: «страничка
   регистрации не имеет стилей, страничка входа не имеет шапки и дна»). Поля форм Django стилизуются
   по контейнеру .auth, а не по классам виджетов. */
.auth { position: relative; overflow: hidden; margin-top: -72px; padding: 120px 0 80px; min-height: calc(100vh - 72px); display: grid; place-items: center; }
.auth::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(40% 50% at 50% 10%, var(--glow), transparent 70%), radial-gradient(35% 45% at 0% 100%, rgba(18, 181, 255, .1), transparent 70%);
}
.auth::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .45;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px; mask-image: radial-gradient(55% 60% at 50% 30%, #000, transparent 75%); -webkit-mask-image: radial-gradient(55% 60% at 50% 30%, #000, transparent 75%);
}
.auth__box { position: relative; z-index: 1; width: min(100% - 2 * var(--gutter), 470px); display: grid; gap: 18px; }
.auth__card {
    display: grid; gap: 22px; padding: clamp(24px, 5vw, 40px); background: var(--paper);
    border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
}
.auth__head { display: grid; gap: 8px; }
.auth__head .brand { margin-bottom: 6px; }
.auth__head .brand b { font-size: 21px; }
.auth__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin-bottom: 4px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 12px 26px -12px var(--glow); }
.auth__icon svg { width: 28px; height: 28px; }
.auth__title { font-stretch: 80%; font-weight: 760; font-size: clamp(30px, 6vw, 38px); line-height: 1.02; letter-spacing: -.01em; }
.auth__sub { color: var(--muted); font-size: 15px; }
.auth__sub b { color: var(--ink); }
.auth form { display: grid; gap: 16px; }
.auth__field { display: grid; gap: 7px; }
.auth__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.auth__label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
    font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.auth__label a { font-family: var(--sans); font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--accent); text-decoration: none; }
.auth__label a:hover { text-decoration: underline; }
.auth input[type="text"], .auth input[type="email"], .auth input[type="password"], .auth input[type="tel"] {
    width: 100%; min-height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2);
    color: var(--ink); font: 500 15.5px/1.2 var(--sans); outline: none; -webkit-appearance: none; appearance: none;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.auth input::placeholder { color: var(--muted); opacity: .75; }
.auth input:focus { border-color: var(--accent); background: var(--paper); box-shadow: 0 0 0 4px var(--accent-soft); }
.auth__code { text-align: center; letter-spacing: .4em; font-family: var(--mono) !important; font-weight: 600 !important; }
.auth__pw { position: relative; }
.auth__pw input { padding-right: 52px !important; }
.auth__eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px;
    background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.auth__eye:hover { color: var(--accent); background: var(--accent-soft); }
.auth__eye svg { width: 20px; height: 20px; }
.auth__err { color: #e5484d; font-size: 13px; font-weight: 600; }
html.dark .auth__err { color: #ff7b80; }
.auth__msgs { display: grid; gap: 8px; }
.auth__msg { padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.45; text-align: center;
    color: #0f8a59; background: rgba(16, 163, 106, .1); border: 1px solid rgba(16, 163, 106, .25); }
.auth__msg--error { color: #d63a40; background: rgba(229, 72, 77, .1); border-color: rgba(229, 72, 77, .28); }
html.dark .auth__msg { color: #4fe0a0; }
html.dark .auth__msg--error { color: #ff8a8f; }
.auth__check { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 12px;
    border: 1px solid transparent; font-size: 14px; color: var(--ink-2); cursor: pointer; line-height: 1.45; }
.auth__check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.auth__check a { color: var(--accent); font-weight: 600; }
.auth__check.is-invalid { border-color: #e5484d; background: rgba(229, 72, 77, .08); }
.auth__submit { width: 100%; min-height: 54px; font-size: 16px; }
.auth__submit:disabled { opacity: .7; cursor: default; transform: none; }
.auth__spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: auth-spin .8s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth__alt { padding-top: 20px; border-top: 1px solid var(--line-2); text-align: center; font-size: 15px; color: var(--muted); display: grid; gap: 4px; justify-items: center; }
.auth__alt a, .auth__link { color: var(--accent); font-weight: 650; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; font-weight: 650; cursor: pointer; }
.auth__alt a:hover, .auth__link:hover { text-decoration: underline; }
.auth__link:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.auth__back { justify-self: center; font-size: 14px; color: var(--muted); text-decoration: none; }
.auth__back:hover { color: var(--accent); }
.auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2); }
.auth__tabs button { border: 0; border-radius: 10px; padding: 10px 8px; background: none; color: var(--muted); font-weight: 650; font-size: 14px; cursor: pointer; }
.auth__tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 4px 14px -8px rgba(10, 24, 56, .35); }
.auth__note { padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--ink-2); font-size: 14.5px; line-height: 1.5; text-align: center; }
.auth__note b { color: var(--accent); }
.auth__pick { display: grid; gap: 8px; }
.auth__pick button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
    border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font-weight: 600; font-size: 14.5px; cursor: pointer; text-align: left; }
.auth__pick button:hover { border-color: var(--accent); }
.auth__pick button span:last-child { color: var(--accent); font-size: 13px; white-space: nowrap; }
.otp { display: flex; justify-content: center; gap: 8px; }
.auth .otp input { width: 50px; min-height: 60px; padding: 0; text-align: center; font: 600 26px/1 var(--mono); }
.auth .is-shake { animation: auth-shake .4s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes auth-shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }
@media (max-width: 760px) {
    .auth { margin-top: -62px; padding: 96px 0 56px; place-items: start center; }
    .auth__row { grid-template-columns: 1fr; }
    .auth .otp input { width: 44px; min-height: 54px; font-size: 22px; }
}
/* установленное приложение CRM (PWA): на входе шапка и подвал сайта не нужны */
@media (display-mode: standalone) {
    .is-crm-app .site-head, .is-crm-app .site-foot, .is-crm-app .drawer, .is-crm-app .drawer-back { display: none !important; }
    .is-crm-app .auth { margin-top: 0; padding-top: max(32px, env(safe-area-inset-top)); min-height: 100vh; }
}

/* ------------------------------------------------------------------ телефон (владелец, 14.10: «на телефоне выглядело убого») */
.head-call, .rail-hint { display: none; }
@media (max-width: 760px) {
    .site-head__row { height: 62px; gap: 10px; }
    .brand img { width: 32px; height: 32px; }
    .brand b { font-size: 21px; }
    .head-tools { gap: 8px; }
    .head-call { display: inline-flex; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-hover)); border-color: transparent; }
    .head-call:hover { color: #fff; }
    .hero { margin-top: -62px; padding-top: 82px; }
    .page-head { margin-top: -62px; padding: 92px 0 34px; }
    .display { font-size: clamp(44px, 13vw, 60px); }
    .h2 { font-size: clamp(30px, 8.6vw, 40px); }
    .lead { font-size: 16.5px; }
    .hero__text { gap: 20px; }
    .hero__actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .hero__actions .btn { padding: 6px 12px; font-size: 15px; min-height: 50px; white-space: normal; line-height: 1.15; text-align: center; }
    .hero__actions > .btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .hero__photo { flex-direction: column; align-items: center; padding-top: 6px; }
    .hero-stack { width: min(270px, 66vw); }
    .hero__photo::before { bottom: 58px; }
    .hero__photo::after { bottom: 70px; }
    .hero-swatches { position: static; transform: none; display: flex; justify-content: center; gap: 12px; margin: 18px 0 4px; }
    .hero-swatches button { width: 28px; height: 28px; }
    .hero__photo figcaption { left: 50%; transform: translateX(-50%); top: 0; font-size: 11px; white-space: nowrap; }
    .facts { gap: 10px; margin-top: 14px; }
    .facts > div { padding: 14px 14px 16px; border-radius: 12px; }
    .facts b { font-size: 24px; }
    .facts > div > span { font-size: 13px; }
    .section { padding: 56px 0; }
    .section__head { gap: 12px; margin-bottom: 26px; }

    /* ленты вбок вместо столбика карточек во всю ширину */
    .rail { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
        margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .rail::-webkit-scrollbar { display: none; }
    .rail > * { flex: 0 0 78%; scroll-snap-align: start; }
    .rail.models > .model { flex-basis: 74%; }
    .rail-hint { display: flex; align-items: center; gap: 8px; margin: -4px 0 8px; font-size: 13px; color: var(--muted); }
    .rail-hint::after { content: '→'; animation: nudge 1.6s ease-in-out infinite; }
    @keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

    /* каталог — по две компактные карточки */
    .models:not(.rail) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .models:not(.rail) .model__pic { aspect-ratio: 4 / 5; padding: 12px 8px 0; }
    .models:not(.rail) .model__body { padding: 12px 12px 14px; gap: 6px; }
    .models:not(.rail) .model__name { font-size: 20px; }
    .models:not(.rail) .model__kind { font-size: 10.5px; }
    .models:not(.rail) .model__spec { font-size: 11.5px; gap: 2px 8px; }
    .models:not(.rail) .model__price { font-size: 16px; }
    .models:not(.rail) .model__more { display: none; }

    .pay { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pay > div { padding: 16px 14px 18px; }
    .pay b { font-size: 18px; }
    .pay span { font-size: 13.5px; }
    .pay svg { width: 34px; height: 34px; }
    .steps { gap: 14px; }
    .card { padding: 20px 18px; gap: 10px; }
    .card h3 { font-size: 21px; }
    .card__icon { width: 40px; height: 40px; border-radius: 10px; }
    .card__icon svg { width: 21px; height: 21px; }
    .ticks { gap: 12px; }

    .board-modes { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 4px; }
    .board-modes::-webkit-scrollbar { display: none; }
    .board-modes button { flex: 0 0 auto; }
    .ports { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .ports div { grid-template-columns: 1fr; gap: 2px; padding: 9px 10px; font-size: 13px; }
    .viewer3d { height: 52vh; min-height: 300px; }
    .viewer3d__bar .muted { font-size: 12.5px; }

    .crm-tabs { display: flex; width: 100%; }
    .crm-tabs button { flex: 1 1 auto; padding: 9px 10px; font-size: 14px; }
    .crm-shot--phone { max-width: 250px; }
    .contact-band { gap: 26px; }
    .big-phone { font-size: 30px; }
    .foot-grid { gap: 26px; }
}
@media (max-width: 380px) { .hero__actions { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal, .js .split-line > span { opacity: 1 !important; transform: none !important; }
    .marquee .colors-row { width: auto; flex-wrap: wrap; justify-content: center; }
}
