/* ============================================================
   ПромТехСнаб — дизайн-система
   Тёмный «индустриальный» стиль: графит + сигнальный оранжевый.
   Шрифты: Russo One (заголовки), Manrope (текст).
   ============================================================ */

:root {
    --ink: #12161b;
    --ink-2: #171d24;
    --ink-3: #0b0e12;
    --line-d: #2a323c;
    --accent: #ff5a1f;
    --accent-dark: #e04a12;
    --accent-soft: rgba(255, 90, 31, .12);
    --bg: #f4f5f7;
    --card: #ffffff;
    --line: #e4e7ec;
    --text: #1a2027;
    --muted: #5d6874;
    --muted-d: #97a1ad;
    --radius: 10px;
    --shadow: 0 18px 45px rgba(18, 22, 27, .12);
    --container: 1240px;
    --font: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-display: "Russo One", "Manrope", Arial, sans-serif;
    --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --header-h: 76px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
/* Внеэкранное мобильное меню не должно растягивать страницу.
   overflow-x: clip (в отличие от hidden) не ломает position: sticky у шапки. */
html, body { overflow-x: clip; }
a { color: inherit; text-decoration: none; transition: color .2s; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.2; }
p { margin: 0 0 1em; }

/* ===== Layout ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--alt { background: #eceef1; }
.section--tight { padding: 56px 0 88px; }
.section--dark {
    background:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
        var(--ink);
    background-size: 44px 44px, 44px 44px, auto;
    color: #e8ebef;
}
.section--dark .section-title { color: #fff; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent); }

.section-head { margin-bottom: 52px; max-width: 760px; }
.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(26px, 3.4vw, 40px);
    text-transform: uppercase;
    letter-spacing: .01em;
    margin: 0;
}
.section-more { margin-top: 40px; }

/* ===== Кнопки ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: 17px 30px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s, border-color .2s, color .2s;
}
.btn:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(255, 90, 31, .35);
}
.btn--outline {
    background: transparent;
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}
.btn--outline:hover {
    background: rgba(255, 255, 255, .08);
    border-color: #fff;
    color: #fff;
    box-shadow: none;
}
.btn--sm { padding: 12px 20px; font-size: 12px; }
.btn--primary { /* алиас для светлых секций */ }

/* ===== Топбар ===== */
.topbar {
    background: var(--ink-3);
    color: var(--muted-d);
    font-size: 13px;
}
.topbar__inner { display: flex; justify-content: space-between; gap: 24px; padding-top: 9px; padding-bottom: 9px; }
.topbar__contacts { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar__contacts a { color: #d5dae0; }
.topbar__contacts a:hover { color: var(--accent); }
.topbar__note { color: var(--accent); font-weight: 600; letter-spacing: .04em; }

/* ===== Шапка ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(18, 22, 27, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-d);
    transition: box-shadow .3s;
}
.header--scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
/* backdrop-filter делает шапку containing block для position:fixed меню —
   при открытом меню отключаем, иначе панель не накроет весь экран */
.header--open { backdrop-filter: none; -webkit-backdrop-filter: none; }
.header__inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 12px; color: #fff; flex-shrink: 0; position: relative; z-index: 50; }
.logo__mark {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(255, 90, 31, .4);
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name { font-family: var(--font-display); font-size: 17px; letter-spacing: .02em; }
.logo__tag { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-d); }

/* Навигация */
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 6px; }
.nav__list > li { position: relative; }
.nav__list > li > a {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #c9d0d8;
    border-radius: 6px;
    transition: color .2s, background .2s;
}
.nav__list > li > a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav__list > li.active > a { color: var(--accent); }
.nav__cta { display: none; }

.nav__submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 320px;
    background: var(--ink-2);
    border: 1px solid var(--line-d);
    border-radius: 10px;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s, transform .25s, visibility .25s;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .45);
}
.nav__list > li:hover .nav__submenu { opacity: 1; visibility: visible; transform: translateY(6px); }
.nav__submenu-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 10px 12px 6px;
}
.nav__submenu li a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: #c9d0d8;
    border-radius: 6px;
}
.nav__submenu li a:hover { color: #fff; background: rgba(255, 255, 255, .07); }

.header__actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.header__phone { text-align: right; line-height: 1.3; }
.header__phone strong a { color: #fff; font-size: 17px; font-weight: 800; }
.header__phone strong a:hover { color: var(--accent); }
.header__phone span { display: block; font-size: 12px; color: var(--muted-d); }

/* Бургер */
.burger {
    display: none;
    width: 46px;
    height: 46px;
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--line-d);
    border-radius: 8px;
    cursor: pointer;
    padding: 12px 10px;
    position: relative;
    z-index: 50;
}
.burger span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.burger span + span { margin-top: 6px; }
.header--open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header--open .burger span:nth-child(2) { opacity: 0; }
.header--open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 55% at 78% 18%, rgba(255, 90, 31, .22), transparent 65%),
        linear-gradient(180deg, var(--ink-2), var(--ink));
    color: #fff;
}
/* «Чертёжная» сетка, медленно дрейфующая по диагонали */
.hero__bg {
    position: absolute;
    inset: -60px;
    background:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 44px 44px;
    animation: hero-grid 90s linear infinite;
    pointer-events: none;
}
@keyframes hero-grid { to { transform: translate(44px, 44px); } }
/* Зерно поверх hero — «плёночная» фактура */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.5'/></svg>");
    opacity: .05;
    pointer-events: none;
}
.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100svh - var(--header-h) - 38px);
}
.hero__inner {
    flex: 1;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 64px;
    align-items: center;
    padding: 72px 0 56px;
}

/* Входная анимация hero */
@keyframes hero-rise { from { transform: translateY(112%); } to { transform: translateY(0); } }
@keyframes hero-fade { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero .eyebrow { animation: hero-fade .8s .05s both; }
.hero__lead { animation: hero-fade .9s .55s both; }
.hero__cta { animation: hero-fade .9s .7s both; }
.hero__visual { animation: hero-fade 1s .45s both; }
.hero .stats { animation: hero-fade .9s .85s both; }

.hero__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.06;
    text-transform: uppercase;
    margin: 0 0 24px;
}
/* Слова заголовка «выезжают» из масок по очереди */
.hero__title .w {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding: 0 .08em .12em 0;
    margin: 0 -.08em -.12em 0;
}
.hero__title .w > span {
    display: inline-block;
    transform: translateY(112%);
    animation: hero-rise 1s cubic-bezier(.16, 1, .3, 1) forwards;
}
.hero__title .w:nth-of-type(1) > span { animation-delay: .15s; }
.hero__title .w:nth-of-type(2) > span { animation-delay: .25s; }
.hero__title .w:nth-of-type(3) > span { animation-delay: .4s; }
.hero__title .w:nth-of-type(4) > span { animation-delay: .5s; }

.hero__lead { font-size: 18px; color: var(--muted-d); max-width: 560px; margin-bottom: 36px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__visual { position: relative; perspective: 1000px; }
.hero__frame {
    position: relative;
    border-radius: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, .5);
    transition: transform .3s ease-out;
    will-change: transform;
}
.hero__frame img { border-radius: 8px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero__chip {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--ink-2);
    border: 1px solid var(--line-d);
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 700;
    color: #e8ebef;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
    animation: chip-float 6s ease-in-out infinite;
}
.hero__chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero__chip--1 { top: -22px; left: -28px; }
.hero__chip--2 { bottom: -20px; right: -16px; animation-delay: 3s; }
@keyframes chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Подсказка «листайте» */
.hero__cue {
    position: absolute;
    right: 34px;
    bottom: 130px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted-d);
}
.hero__cue:hover { color: var(--accent); }
.hero__cue i {
    display: block;
    width: 1px;
    height: 56px;
    background: var(--line-d);
    position: relative;
    overflow: hidden;
}
.hero__cue i::after {
    content: "";
    position: absolute;
    top: -40%;
    left: 0;
    width: 100%;
    height: 40%;
    background: var(--accent);
    animation: cue-drop 2s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes cue-drop { to { top: 110%; } }

/* Статистика под hero */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line-d);
}
.stats__item {
    padding: 34px 28px;
    border-left: 1px solid var(--line-d);
}
.stats__item:first-child { border-left: none; padding-left: 0; }
.stats__num {
    font-family: var(--font-display);
    font-size: 52px;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 8px;
}
.stats__num .suffix { font-size: .55em; margin-left: 2px; }
.stats__label { font-size: 14px; color: var(--muted-d); }

/* ===== Бегущая строка ===== */
.marquee {
    background: var(--accent);
    color: #fff;
    overflow: hidden;
    padding: 14px 0;
}
.marquee__track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: marquee 28s linear infinite;
}
.marquee__track span {
    font-family: var(--font-display);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 48px;
}
.marquee__track span::after { content: "◆"; font-size: 9px; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Номерной ярлык секции и серифный акцент ===== */
.sec-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}
.sec-label::before { content: ""; width: 34px; height: 2px; background: var(--accent); }
.sec-label b { color: var(--accent); font-weight: 800; }
.section--dark .sec-label { color: var(--muted-d); }

.accent-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--accent);
}
/* На главной заголовки крупнее — как у референса */
.home .section-title { font-size: clamp(28px, 3.8vw, 48px); }

/* ===== Направления (карточки с фото) ===== */
.dir-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.dir-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    min-height: 480px;
    border-radius: var(--radius);
    color: #fff;
    box-shadow: 0 24px 50px rgba(18, 22, 27, .18);
}
.dir-card__bg { position: absolute; inset: 0; z-index: -1; }
.dir-card__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}
.dir-card__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, rgba(11, 14, 18, .2) 0%, rgba(11, 14, 18, .8) 55%, rgba(11, 14, 18, .94) 100%);
}
.dir-card:hover .dir-card__bg img { transform: scale(1.06); }
.dir-card__num {
    position: absolute;
    top: 22px;
    right: 28px;
    font-family: var(--font-display);
    font-size: 64px;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, .35);
    transition: -webkit-text-stroke-color .3s;
}
.dir-card:hover .dir-card__num { -webkit-text-stroke-color: var(--accent); }
.dir-card__content { width: 100%; padding: 36px; }
.dir-card__label {
    font-family: var(--font-display);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--accent);
    display: block;
    margin-bottom: 14px;
}
.dir-card h3 { font-size: 25px; font-weight: 800; color: #fff; margin-bottom: 18px; }
.dir-card__list li {
    padding: 9px 0 9px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    font-size: 14.5px;
    color: rgba(232, 235, 239, .85);
    position: relative;
}
.dir-card__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
}
.dir-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
}
.dir-card__more::after { content: "→"; transition: transform .3s; }
.dir-card:hover .dir-card__more::after { transform: translateX(6px); }

/* ===== Витрина изделий (тёмная секция) ===== */
.showcase__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.showcase__visual { position: sticky; top: calc(var(--header-h) + 24px); }
.showcase__stack {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line-d);
    background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(255, 90, 31, .1), transparent 70%), var(--ink-2);
}
.showcase__slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity .6s ease, transform .8s cubic-bezier(.16, 1, .3, 1);
    pointer-events: none;
}
.showcase__slide.active { opacity: 1; transform: none; pointer-events: auto; }
.showcase__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 30px;
    filter: drop-shadow(0 24px 32px rgba(0, 0, 0, .45));
}
.showcase__counter {
    margin-top: 18px;
    font-size: 14px;
    letter-spacing: .14em;
    color: var(--muted-d);
}
.showcase__counter b {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 24px;
    color: #fff;
    margin-right: 4px;
}

.showcase__item {
    position: relative;
    display: flex;
    gap: 24px;
    padding: 28px 8px 28px 0;
    border-top: 1px solid var(--line-d);
    cursor: pointer;
    opacity: .5;
    transition: opacity .3s, padding-left .3s;
}
.showcase__item:hover { opacity: .85; }
.showcase__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.showcase__item.active { opacity: 1; padding-left: 14px; }
.showcase__index {
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--accent);
    padding-top: 4px;
    flex-shrink: 0;
}
.showcase__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.showcase__item h3 { color: #fff; font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.showcase__item p { color: var(--muted-d); font-size: 15px; margin: 0; }
.showcase__progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
}
.showcase__progress i { display: block; width: 0; height: 100%; background: var(--accent); }
.showcase__item.active .showcase__progress i { animation: showcase-prog 5s linear forwards; }
.showcase--paused .showcase__item.active .showcase__progress i { animation-play-state: paused; }
@keyframes showcase-prog { to { width: 100%; } }

/* ===== Процесс (шаги в строку) ===== */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.steps-row__item { position: relative; padding-top: 26px; border-top: 1px solid #d4d8de; }
.steps-row__item::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
}
.steps-row__num {
    display: block;
    font-family: var(--font-display);
    font-size: 54px;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent);
    margin-bottom: 16px;
    transition: color .3s;
}
.steps-row__item:hover .steps-row__num { color: var(--accent); }
.steps-row__item h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.steps-row__item p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ===== Карточки каталога ===== */
.categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.category-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    padding-bottom: 24px;
    transition: transform .3s, box-shadow .3s;
}
.category-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s;
    z-index: 2;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.category-card:hover::before { transform: scaleX(1); }
.category-card__img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #eceef1; }
.category-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.category-card:hover .category-card__img img { transform: scale(1.07); }
.category-card__num {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: .05em;
    background: rgba(11, 14, 18, .72);
    color: #fff;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 6px 10px;
    border-radius: 6px;
}
.category-card__img--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: #e6e9ed;
    aspect-ratio: 4/3;
    box-sizing: border-box;
}
.category-card__img--empty::before {
    content: "⚙";
    font-size: 42px;
    line-height: 1;
    color: #b4bcc5;
}
.category-card h3 { font-size: 18px; font-weight: 800; margin: 20px 22px 8px; }
.category-card p { font-size: 14px; color: var(--muted); margin: 0 22px; }

/* ===== Нумерованный список (advantages) ===== */
.advantages { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.advantage {
    display: flex;
    gap: 26px;
    padding: 32px 0;
    border-top: 1px solid #d4d8de;
}
.advantage__num {
    font-family: var(--font-display);
    font-size: 46px;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent);
    flex-shrink: 0;
}
.advantage h3 { color: var(--text); font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.advantage p { color: var(--muted); font-size: 15px; margin: 0; }
/* В тёмной секции — светлый текст */
.section--dark .advantage { border-top-color: var(--line-d); }
.section--dark .advantage h3 { color: #fff; }
.section--dark .advantage p { color: var(--muted-d); }

/* ===== Карточки статей ===== */
.article-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: transform .3s, box-shadow .3s;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.article-card__date {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 20px;
    padding: 6px 14px;
    margin-bottom: 18px;
}
.article-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.article-card p { font-size: 14px; color: var(--muted); flex-grow: 1; }
.article-card__more { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.article__meta { color: var(--muted-d); font-size: 14px; margin-top: 14px; }
.article__back { margin-top: 40px; }
.article__back a { color: var(--accent); font-weight: 700; }

/* ===== О компании (превью) ===== */
.about-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-preview p { color: var(--muted); }
.about-preview__img { position: relative; }
.about-preview__img img { border-radius: var(--radius); position: relative; z-index: 1; }
.about-preview__img::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translate(18px, 18px);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
}

/* ===== Page-hero (тёмная шапка внутренних страниц) ===== */
.page-hero {
    background:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
        radial-gradient(ellipse 50% 80% at 85% 0%, rgba(255, 90, 31, .16), transparent 60%),
        var(--ink);
    background-size: 44px 44px, 44px 44px, auto, auto;
    color: #fff;
    padding: 44px 0 52px;
}
.breadcrumbs { font-size: 13px; color: var(--muted-d); margin-bottom: 22px; }
.breadcrumbs a { color: var(--muted-d); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 8px; color: var(--line-d); }
.page-header h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(28px, 4vw, 44px);
    text-transform: uppercase;
    margin: 0;
    color: #fff;
}
.page-header__lead { color: var(--muted-d); font-size: 17px; max-width: 720px; margin: 18px 0 0; }

/* ===== Сайдбар и контент ===== */
.layout-aside { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.sidebar__group { margin-bottom: 28px; }
.sidebar__group h4 {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.sidebar__group li a {
    display: block;
    padding: 9px 0 9px 16px;
    border-left: 2px solid var(--line);
    font-size: 15px;
    color: var(--muted);
    transition: color .2s, border-color .2s;
}
.sidebar__group li a:hover { color: var(--text); border-color: var(--accent); }
.sidebar__group li.active a { color: var(--text); font-weight: 700; border-color: var(--accent); }
.sidebar__cta {
    background: var(--ink);
    color: #e8ebef;
    border-radius: var(--radius);
    padding: 26px;
}
.sidebar__cta strong { display: block; font-size: 17px; color: #fff; margin-bottom: 8px; }
.sidebar__cta p { font-size: 14px; color: var(--muted-d); margin-bottom: 18px; }

/* Контентная типографика */
.content { font-size: 16px; }
.content--narrow { max-width: 780px; }
.content h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 26px;
    text-transform: uppercase;
    margin: 48px 0 20px;
    padding-left: 18px;
    border-left: 4px solid var(--accent);
}
.content h3 { font-size: 20px; font-weight: 800; margin: 36px 0 14px; }
.content p, .content li { color: #39424d; }
.content ul:not([class]) li,
.content ol:not([class]) li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.content ul:not([class]) li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 9px;
    height: 9px;
    background: var(--accent);
    border-radius: 2px;
}
.content__lead { font-size: 19px; color: var(--text); }
.content a { color: var(--accent-dark); font-weight: 600; text-decoration: underline; }
/* Кнопка внутри текста не должна выглядеть как ссылка */
.content a.btn, .content a.btn:hover { color: #fff; font-weight: 800; text-decoration: none; }
.content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.content th, .content td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; }
.content th { background: var(--ink); color: #fff; font-weight: 700; }

.callout {
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 22px 26px;
    margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }

.figure { margin: 28px 0; }
.figure img { border-radius: var(--radius); }
.figure figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.check-list li { position: relative; padding-left: 34px; margin-bottom: 12px; color: #39424d; }
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin: 24px 0; }
.cap {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    font-size: 15px;
    transition: transform .25s, box-shadow .25s;
}
.cap:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.spec-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 18px 20px;
    font-size: 15px;
}

.steps { margin: 28px 0; counter-reset: step; }
.step { position: relative; padding: 0 0 26px 64px; counter-increment: step; }
.step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-display);
    font-size: 15px;
    color: #fff;
    background: var(--accent);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step::after {
    content: "";
    position: absolute;
    left: 21px;
    top: 46px;
    bottom: 4px;
    width: 1px;
    background: var(--line);
}
.step:last-child::after { display: none; }
.steps--wide .step { padding-left: 76px; }
.steps--wide .step::before { width: 54px; height: 54px; font-size: 17px; }

.prod-block {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 36px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    margin: 28px 0;
    align-items: center;
}
.prod-block__img { border-radius: 8px; overflow: hidden; background: #eceef1; }
.prod-block__img--empty {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .1em;
    border: 1px dashed #cdd2d9;
}
.prod-block__note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.empty-note {
    border: 1px dashed #cdd2d9;
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    color: var(--muted);
    margin: 24px 0;
}

/* ===== Контакты ===== */
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.contact-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform .25s, box-shadow .25s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card h3 { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.contact-card li { margin-bottom: 14px; font-size: 15px; }
.contact-card li:last-child { margin-bottom: 0; }
.contact-card strong {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 3px;
}
.contact-card a { font-weight: 700; }
.contact-card a:hover { color: var(--accent); }
.map-placeholder {
    border: 2px dashed #cdd2d9;
    border-radius: var(--radius);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    text-align: center;
    padding: 40px;
    margin-top: 24px;
}

/* ===== Форма заявки ===== */
.callback {
    background:
        radial-gradient(ellipse 55% 90% at 90% 10%, rgba(255, 90, 31, .18), transparent 60%),
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px),
        var(--ink);
    background-size: auto, 44px 44px, 44px 44px, auto;
    color: #fff;
    padding: 88px 0;
}
.callback__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.callback h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(26px, 3.2vw, 38px);
    text-transform: uppercase;
    color: #fff;
}
.callback p { color: var(--muted-d); font-size: 17px; }
.callback__form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.callback__form textarea, .callback__form button, .callback__form .form-note { grid-column: 1 / -1; }
.callback__form input, .callback__form textarea {
    width: 100%;
    background: var(--ink-2);
    border: 1px solid var(--line-d);
    border-radius: 8px;
    padding: 15px 18px;
    font-family: var(--font);
    font-size: 15px;
    color: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.callback__form input::placeholder, .callback__form textarea::placeholder { color: var(--muted-d); }
.callback__form input:focus, .callback__form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 90, 31, .2);
}
.callback__form textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 12px; color: var(--muted-d); }

/* ===== Подвал ===== */
.footer { background: var(--ink-3); color: var(--muted-d); padding: 72px 0 0; }
.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 56px;
}
.footer__logo { margin-bottom: 18px; }
.footer p { font-size: 14px; max-width: 320px; }
.footer h4 {
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.footer li { margin-bottom: 10px; font-size: 14px; }
.footer a:hover { color: var(--accent); }
.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line-d);
    padding: 22px 0;
    font-size: 13px;
}

/* ===== Анимация появления ===== */
/* --rd — задержка для «лесенки» карточек, задаётся инлайном в шаблоне */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .marquee__track { animation: none; }
    .hero__bg, .hero__chip, .hero__cue i::after { animation: none; }
    .hero .eyebrow, .hero__lead, .hero__cta, .hero__visual, .hero .stats { animation: none; }
    .hero__title .w > span { transform: none; animation: none; }
    .showcase__item.active .showcase__progress i { animation: none; width: 100%; }
    * { transition-duration: .01ms !important; }
}

/* ===== Адаптив ===== */
@media (max-width: 1250px) {
    .header__actions .header__phone { display: none; }
    .header__inner { gap: 20px; }
    .nav__list > li > a { padding: 10px 9px; font-size: 12px; }
    .hero__inner { gap: 40px; }
    .hero__chip--1 { left: 0; }
    .hero__chip--2 { right: 0; }
    .hero__cue { display: none; }
}

@media (max-width: 1024px) {
    .burger { display: block; }
    .header__actions { display: none; }
    .nav {
        position: fixed;
        inset: 0;
        z-index: 49;
        background: rgba(11, 14, 18, .98);
        padding: calc(var(--header-h) + 40px) 24px 40px;
        transform: translateX(100%);
        transition: transform .35s cubic-bezier(.16, 1, .3, 1);
        overflow-y: auto;
    }
    .header--open .nav { transform: translateX(0); }
    .nav__list { flex-direction: column; gap: 4px; }
    .nav__list > li > a { font-size: 20px; padding: 14px 10px; }
    .nav__submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 0 16px;
        min-width: 0;
    }
    .nav__cta {
        display: flex;
        flex-direction: column;
        gap: 18px;
        margin-top: 36px;
        padding-top: 28px;
        border-top: 1px solid var(--line-d);
    }
    .nav__cta .header__phone { display: block; text-align: left; }
    .nav__cta .header__phone strong a { font-size: 22px; }

    .hero .container { min-height: 0; }
    .hero__inner { grid-template-columns: 1fr; padding: 48px 0 56px; }
    .hero__visual { max-width: 520px; }
    .stats { grid-template-columns: 1fr; }
    .stats__item { border-left: none; border-top: 1px solid var(--line-d); padding-left: 0; }
    .stats__item:first-child { border-top: none; }
    .dir-split { grid-template-columns: 1fr; }
    .showcase__grid { grid-template-columns: 1fr; gap: 40px; }
    .showcase__visual { position: static; max-width: 560px; }
    .steps-row { grid-template-columns: 1fr 1fr; }
    .advantages { grid-template-columns: 1fr; }
    .about-preview { grid-template-columns: 1fr; gap: 40px; }
    .callback__inner { grid-template-columns: 1fr; gap: 40px; }
    .layout-aside { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .topbar__note { display: none; }
}

@media (max-width: 640px) {
    .section { padding: 60px 0; }
    .topbar__contacts span:not(:first-of-type) { display: none; }
    .hero__cta .btn { width: 100%; }
    .stats__num { font-size: 40px; }
    .dir-card { min-height: 420px; }
    .dir-card__content { padding: 26px; }
    .steps-row { grid-template-columns: 1fr; }
    .callback__form { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .figures, .spec-grid { grid-template-columns: 1fr; }
    .prod-block { grid-template-columns: 1fr; }
    .about-preview__img::after { transform: translate(10px, 10px); }
}
