@charset "UTF-8";

/* =========================================================
   EGRO — дизайн-система
   Фирменные цвета взяты с прежнего сайта: красный логотипа,
   бирюза и мята. Здесь они разложены в объёмную палитру.
   ========================================================= */

:root {
    /* Фирменные */
    --red: #d60201;
    --red-600: #bb0100;
    --red-700: #9c0100;
    --teal: #2eb8ad;
    --teal-300: #6fd8ce;
    --teal-400: #45cabf;
    --teal-600: #1c9d92;
    --teal-700: #147c73;
    --teal-800: #0d5a54;
    --mint: #cbe9e9;
    --mint-100: #e3f5f3;
    --mint-50: #f1faf9;

    /* Нейтральные */
    --ink: #08201e;
    --ink-80: #2a4442;
    --ink-60: #52706d;
    --muted: #71908d;
    --line: #e2eeed;
    --line-2: #cfe3e1;
    --paper: #f6fbfa;
    --white: #fff;
    --deep: #052422;

    /* Типографика: одна гарнитура на весь сайт.
       Различаем уровни начертанием и размером, а не сменой шрифта. */
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

    /* Геометрия */
    --wrap: 1320px;
    --gut: 32px;
    /* Вертикальный ритм: один шаг на всю страницу, чтобы блоки не расползались. */
    --sec: 60px;
    --sec-sm: 40px;
    --r-xs: 8px;
    --r-sm: 12px;
    --r: 18px;
    --r-lg: 26px;
    --r-xl: 36px;

    /* Тени */
    --sh-1: 0 1px 2px rgba(5, 36, 34, .05), 0 4px 14px rgba(5, 36, 34, .045);
    --sh-2: 0 2px 6px rgba(5, 36, 34, .05), 0 18px 42px -14px rgba(5, 36, 34, .18);
    --sh-3: 0 10px 28px rgba(5, 36, 34, .08), 0 40px 80px -28px rgba(5, 36, 34, .32);
    --sh-red: 0 10px 26px -8px rgba(214, 2, 1, .5);
    --sh-teal: 0 14px 34px -12px rgba(46, 184, 173, .5);

    --ease: cubic-bezier(.22, .68, .3, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: -.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.022em;
    margin: 0;
    color: var(--ink);
}

::selection { background: var(--teal); color: #fff; }

/* ---------- Служебные ---------- */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap-narrow { max-width: 900px; margin: 0 auto; padding: 0 var(--gut); }

.label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--teal-700);
}

.pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    background: rgba(46, 184, 173, .1);
    border: 1px solid rgba(46, 184, 173, .24);
    font-size: 11.5px; font-weight: 700;
    letter-spacing: .06em;
    color: var(--teal-700);
}

.pill i {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--red); flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(214, 2, 1, .16);
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Подиум для фотографий ---------- */

/* Снимки каталога — непрозрачные JPEG, снятые на белом, причём фон
   у них разный: от чистого белого до серых градиентов. Поэтому подложка
   почти белая — тогда прямоугольник фотографии не читается краями.
   Умножение дополнительно гасит белый фон там, где он чистый. */
.shot {
    position: relative;
    overflow: hidden;
    background: radial-gradient(120% 92% at 50% 6%,
                #fff 0%, #f9fdfd 42%, var(--mint-50) 76%, var(--mint-100) 100%);
}

/* Контактная тень ложится в отступ под фотографией и «ставит» технику
   на поверхность вместо того, чтобы она висела в пустоте. */
.shot::before {
    content: ""; position: absolute; z-index: 1;
    left: 50%; bottom: 9%;
    width: 54%; height: 8%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center,
                rgba(5, 36, 34, .22) 0%, rgba(5, 36, 34, .08) 46%, rgba(5, 36, 34, 0) 74%);
    filter: blur(9px);
}

.shot > img {
    position: absolute; inset: 0; z-index: 2;
    width: 100%; height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* ---------- Логотип ---------- */

.logo { display: inline-flex; align-items: center; gap: 11px; }

.logo__mark {
    position: relative;
    width: 36px; height: 36px; flex-shrink: 0;
    border-radius: 11px;
    background: linear-gradient(140deg, var(--red) 0%, #8f0100 100%);
    box-shadow: 0 6px 16px -5px rgba(214, 2, 1, .6);
    display: grid; place-items: center;
}

/* Медицинский крест внутри знака */
.logo__mark::before,
.logo__mark::after {
    content: ""; position: absolute; background: #fff; border-radius: 2px;
}
.logo__mark::before { width: 13px; height: 4px; }
.logo__mark::after { width: 4px; height: 13px; }

.logo__text { display: flex; flex-direction: column; line-height: 1; }

.logo__word {
    font-family: 'Cooper Black', serif;
    font-weight: 400;
    font-size: 22px;
    letter-spacing: .02em;
    color: var(--red);
}

.logo__sub {
    font-size: 8px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    margin-top: 4px;
    white-space: nowrap;
}

/* ---------- Верхняя строка ---------- */

.topbar {
    background: var(--deep);
    color: rgba(255, 255, 255, .72);
    font-size: 12.5px;
    position: relative; z-index: 2;
}

.topbar__in {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; min-height: 34px;
}

.topbar__note { display: flex; align-items: center; gap: 10px; letter-spacing: .01em; }
.topbar__note svg { color: var(--teal); flex-shrink: 0; }
.topbar__links { display: flex; align-items: center; gap: 28px; }
.topbar a { color: #fff; transition: color .25s var(--ease); display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: var(--teal-300); }
.topbar a svg { opacity: .6; }

/* ---------- Шапка ---------- */

.header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(226, 238, 237, .9);
    transition: box-shadow .3s var(--ease), background .3s var(--ease);
}

.header.is-stuck { box-shadow: 0 6px 30px -12px rgba(5, 36, 34, .18); background: rgba(255, 255, 255, .92); }

.header__in { display: flex; align-items: center; gap: 28px; min-height: 60px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.nav a {
    position: relative;
    font-size: 14px; font-weight: 600;
    letter-spacing: -.005em;
    color: var(--ink-80);
    padding: 8px 14px;
    border-radius: 999px;
    transition: color .25s var(--ease), background .25s var(--ease);
}

.nav a:hover { color: var(--ink); background: var(--mint-50); }

.nav a.is-active {
    color: var(--teal-800);
    background: rgba(46, 184, 173, .12);
}

.header__actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, .6);
    color: var(--ink);
    border-radius: 11px;
    transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}

.icon-btn:hover {
    border-color: transparent; background: var(--mint-100);
    transform: translateY(-2px); box-shadow: var(--sh-1);
}

.burger { display: none; }

/* ---------- Кнопки ---------- */

.btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 12px 22px;
    font-size: 13.5px; font-weight: 700;
    letter-spacing: -.005em; white-space: nowrap;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
    background: linear-gradient(135deg, var(--red) 0%, #a70100 100%);
    color: #fff; box-shadow: var(--sh-red);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -10px rgba(214, 2, 1, .62); }

.btn--dark {
    background: var(--deep); color: #fff;
    box-shadow: 0 10px 26px -10px rgba(5, 36, 34, .7);
}
.btn--dark:hover { transform: translateY(-3px); background: #0a3733; }

.btn--ghost {
    border-color: var(--line-2); color: var(--ink);
    background: rgba(255, 255, 255, .7);
}
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-800); background: var(--mint-50); transform: translateY(-3px); box-shadow: var(--sh-1); }

.btn--light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #fff; backdrop-filter: blur(6px); }
.btn--light:hover { background: #fff; color: var(--deep); border-color: #fff; transform: translateY(-3px); }

.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--block { width: 100%; }

/* Круглая стрелка-«шеврон» */
.arrow-c {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center;
    background: var(--mint-100); color: var(--teal-800);
    transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}

.arrow-c svg { transition: transform .35s var(--ease); }

/* ---------- Заголовки секций ---------- */

.section { padding: var(--sec) 0; position: relative; }
.section--paper { background: linear-gradient(180deg, var(--paper) 0%, #fff 100%); }
.section--tight { padding: var(--sec-sm) 0; }

.shead {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 32px; margin-bottom: 24px;
}

.shead__num {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 11px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--teal-700); margin-bottom: 8px;
}

.shead__num::before {
    content: ""; width: 22px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--red), var(--teal));
}

.shead h2 { font-size: clamp(21px, 2.1vw, 27px); }
.shead p { margin: 7px 0 0; color: var(--ink-60); max-width: 68ch; font-size: 14.5px; }
.shead__link { flex-shrink: 0; padding-bottom: 2px; }

.shead__link a {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13.5px; font-weight: 700; color: var(--ink);
    transition: color .28s var(--ease), gap .28s var(--ease);
}

.shead__link a:hover { color: var(--red); gap: 16px; }
.shead__link a:hover .arrow-c { background: var(--red); color: #fff; transform: rotate(-45deg); }

/* ---------- Первый экран ---------- */

.hero { position: relative; padding: 40px 0 48px; overflow: hidden; }

.hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--white); }

.hero__bg::before,
.hero__bg::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(90px);
}

.hero__bg::before {
    width: 780px; height: 780px; top: -300px; right: -180px;
    background: radial-gradient(circle, rgba(46, 184, 173, .34) 0%, rgba(46, 184, 173, 0) 70%);
}

.hero__bg::after {
    width: 620px; height: 620px; bottom: -260px; left: -220px;
    background: radial-gradient(circle, rgba(203, 233, 233, .8) 0%, rgba(203, 233, 233, 0) 70%);
}

/* Тонкая сетка на фоне — «инженерная» фактура */
.hero__grid-lines {
    position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image:
        linear-gradient(rgba(46, 184, 173, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 184, 173, .07) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(90% 70% at 50% 30%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(90% 70% at 50% 30%, #000 0%, transparent 78%);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    gap: 48px; align-items: center;
}

.hero h1 {
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.1;
    margin: 14px 0 14px;
    letter-spacing: -.032em;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(120deg, var(--teal-600) 0%, var(--teal) 55%, var(--teal-300) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: var(--teal-600);
}

.hero__lead {
    font-size: 15.5px; line-height: 1.6; color: var(--ink-60);
    max-width: 56ch; margin: 0 0 22px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.hero__stat {
    background: rgba(255, 255, 255, .74);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: var(--sh-1);
    backdrop-filter: blur(10px);
    border-radius: var(--r-sm);
    padding: 13px 15px;
}

.hero__stat b {
    display: block;
    font-size: 25px; line-height: 1; font-weight: 800;
    margin-bottom: 5px; letter-spacing: -.03em;
    background: linear-gradient(140deg, var(--ink) 0%, var(--teal-700) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.hero__stat span { font-size: 12px; color: var(--muted); line-height: 1.35; display: block; font-weight: 600; }

/* Медиа-блок первого экрана */
.hero__media { position: relative; }

/* Свечение позади сцены — «подсветка операционной». */
.hero__media::before {
    content: ""; position: absolute; z-index: -1;
    inset: 14% -14% -16% -14%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 184, 173, .3) 0%, rgba(46, 184, 173, 0) 68%);
    filter: blur(48px);
}

.hero__stage {
    position: relative;
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, .6);
    border: 1px solid rgba(255, 255, 255, .9);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: var(--sh-3);
    padding: 14px;
}

.hero__shot {
    aspect-ratio: 3 / 2;
    border-radius: var(--r);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8),
                0 18px 44px -22px rgba(5, 36, 34, .34);
}

.hero__shot > img {
    padding: 20px 20px 30px;
    opacity: 0; transform: scale(.94) translateY(14px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.hero__shot > img.is-on { opacity: 1; transform: none; }

/* Стеклянная подпись поверх фото */
.hero__tag {
    position: relative; margin-top: 12px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 11px 15px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .9);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: var(--sh-1);
}

.hero__tag-txt { min-width: 0; }
.hero__tag-txt small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 3px; }
.hero__tag-txt p { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }

.hero__dots { display: flex; gap: 7px; flex-shrink: 0; }

.hero__dots button {
    width: 8px; height: 8px; border-radius: 50%; padding: 0; border: 0;
    background: var(--line-2); transition: all .3s var(--ease);
}

.hero__dots button[aria-current="true"] { background: var(--red); width: 26px; border-radius: 999px; }

/* Плашка «сервис» рядом со сценой */
.hero__badge {
    position: absolute; z-index: 3;
    top: 20px; left: -26px;
    display: flex; align-items: center; gap: 10px;
    padding: 9px 16px 9px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(255, 255, 255, .9);
    backdrop-filter: blur(14px);
    box-shadow: var(--sh-2);
    animation: float 6s ease-in-out infinite;
}

.hero__badge span { font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.hero__badge small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; }

.hero__badge i {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center;
    background: linear-gradient(140deg, var(--teal) 0%, var(--teal-700) 100%);
    color: #fff; box-shadow: var(--sh-teal);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

/* ---------- Сетка направлений ---------- */

.dirs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}

.dir {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}

.dir:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: transparent; }

.dir__media { aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line); }
.dir__media > img { padding: 16px 16px 24px; transition: transform .7s var(--ease); }
.dir:hover .dir__media > img { transform: scale(1.06) translateY(-4px); }

.dir__num {
    position: absolute; z-index: 4; top: 10px; left: 11px;
    font-weight: 700; font-size: 10.5px; letter-spacing: .08em;
    color: var(--teal-800);
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    padding: 3px 8px; border-radius: 999px;
}

.dir__body {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex: 1; padding: 12px 14px;
}

.dir__name {
    font-weight: 700;
    font-size: 14px; line-height: 1.3; letter-spacing: -.015em;
    color: var(--ink); transition: color .3s var(--ease);
}

.dir:hover .dir__name { color: var(--teal-800); }

.dir__cnt {
    font-weight: 600; font-size: 12px; color: var(--muted);
    white-space: nowrap; flex-shrink: 0;
    transition: color .35s var(--ease);
}

.dir:hover .dir__cnt { color: var(--teal-700); }

/* ---------- Комплексные проекты ---------- */

/* У этих разделов в базе лежат настоящие снимки объектов, а не вырезанные
   предметы, поэтому кадрируем их по месту, без подиума. Ширина картинки
   фиксирована: исходники мелкие и сильное увеличение выдаёт мыло. */
.osn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.osn__item {
    position: relative;
    display: grid; grid-template-columns: 180px minmax(0, 1fr);
    min-height: 150px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}

.osn__item:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: transparent; }

.osn__media { position: relative; background: linear-gradient(150deg, var(--mint-50), var(--mint-100)); overflow: hidden; }

.osn__media img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease);
}

.osn__item:hover .osn__media img { transform: scale(1.07); }

.osn__num {
    position: absolute; z-index: 2; top: 10px; left: 10px;
    font-weight: 700; font-size: 10.5px; letter-spacing: .08em;
    color: var(--teal-800);
    background: rgba(255, 255, 255, .84);
    border: 1px solid rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    padding: 3px 8px; border-radius: 999px;
}

.osn__body { display: flex; flex-direction: column; padding: 16px 18px 14px; }

.osn__name {
    font-weight: 700;
    font-size: 15.5px; line-height: 1.3; letter-spacing: -.018em;
    color: var(--ink); transition: color .3s var(--ease);
}

.osn__item:hover .osn__name { color: var(--teal-800); }
.osn__desc { margin: 7px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

.osn__more {
    margin-top: auto; padding-top: 12px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    font-size: 12.5px; font-weight: 700; color: var(--ink-60);
    transition: color .3s var(--ease);
}

.osn__item:hover .osn__more { color: var(--red); }
.osn__more .arrow-c { width: 30px; height: 30px; }
.osn__item:hover .arrow-c { background: var(--red); color: #fff; transform: rotate(-45deg); }

/* ---------- Строка производителей ---------- */

/* Фон белый: знаки приходят в JPEG и PNG с белой подложкой,
   и на любом другом фоне вокруг них появлялись бы прямоугольники. */
.ticker { position: relative; padding: 14px 0 16px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.ticker__label {
    display: block; margin-bottom: 10px;
    font-weight: 700; font-size: 10.5px;
    letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

/* Края растворяем, чтобы лента не обрывалась о границу экрана. */
.ticker__viewport {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0, #000 11%, #000 89%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 11%, #000 89%, transparent 100%);
}

.ticker__track { display: flex; width: max-content; animation: ticker 52s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__set { display: flex; align-items: center; }

/* Знаки очень разные по пропорциям, поэтому вписываем каждый в общую
   рамку и глушим цвет — иначе лента распадается на пёстрые пятна. */
.ticker__i {
    display: grid; place-items: center;
    width: 158px; height: 34px; flex-shrink: 0;
}

.ticker__i img {
    max-width: 122px; max-height: var(--lh, 26px);
    width: auto; height: auto;
    filter: grayscale(1);
    opacity: var(--lo, .7);
    mix-blend-mode: multiply;
    transition: filter .3s var(--ease), opacity .3s var(--ease);
}

.ticker__i:hover img { filter: none; opacity: 1; }

@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Этапы работы ---------- */

.steps {
    list-style: none; margin: 34px 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px;
}

.step { position: relative; padding-top: 20px; }

/* Горизонтальный таймлайн: линия через все шаги и узел на каждом. */
.step::before {
    content: ""; position: absolute; top: 4px; left: 0; right: -18px; height: 1px;
    background: rgba(255, 255, 255, .13);
}

.step:last-child::before { right: 0; }

.step::after {
    content: ""; position: absolute; top: 0; left: 0;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--teal); box-shadow: 0 0 0 3px rgba(46, 184, 173, .18);
}

.step__n { display: block; margin-bottom: 6px; font-weight: 700; font-size: 10.5px; letter-spacing: .12em; color: var(--teal-300); }
.step h4 { font-size: 14.5px; color: #fff; margin-bottom: 5px; letter-spacing: -.018em; }
.step p { margin: 0; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .55); }

/* ---------- Карточки ---------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

.card {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}

.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: transparent; }

.card__media {
    aspect-ratio: 16 / 10;
    border-bottom: 1px solid var(--line);
}

.card__media > img {
    padding: 16px 16px 24px;
    transition: transform .6s var(--ease);
}

.card:hover .card__media > img { transform: scale(1.07) translateY(-3px); }

.card__tag {
    position: absolute; top: 10px; left: 11px; z-index: 4;
    font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(8px);
    color: var(--teal-800);
    padding: 3px 9px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .9);
    max-width: calc(100% - 22px);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.card__body { padding: 12px 14px; display: flex; flex-direction: column; flex: 1; }

.card__title {
    font-weight: 700;
    font-size: 14px; line-height: 1.32; letter-spacing: -.015em;
    margin: 0;
    transition: color .3s var(--ease);
}

.card:hover .card__title { color: var(--teal-800); }

.card__desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin: 6px 0 0; }

.card__foot {
    margin-top: auto; padding-top: 10px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

.card__cta { font-size: 12.5px; font-weight: 700; color: var(--ink-60); transition: color .3s var(--ease); }
.card:hover .card__cta { color: var(--red); }

.card .arrow-c { width: 28px; height: 28px; }
.card:hover .arrow-c { background: var(--red); color: #fff; transform: rotate(-45deg); }

.card__link { position: absolute; inset: 0; z-index: 3; border-radius: var(--r); }

/* ---------- Тёмная секция ---------- */

.dark {
    position: relative; overflow: hidden;
    background: linear-gradient(155deg, #073c37 0%, var(--deep) 55%, #041c1a 100%);
    color: rgba(255, 255, 255, .74);
    padding: var(--sec) 0;
}

.dark::before {
    content: ""; position: absolute; width: 720px; height: 720px;
    top: -280px; right: -200px; border-radius: 50%; filter: blur(80px);
    background: radial-gradient(circle, rgba(46, 184, 173, .3) 0%, rgba(46, 184, 173, 0) 70%);
}

.dark::after {
    content: ""; position: absolute; inset: 0; opacity: .35;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(80% 60% at 50% 40%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(80% 60% at 50% 40%, #000, transparent 75%);
}

.dark > .wrap { position: relative; z-index: 2; }
.dark h2, .dark h3 { color: #fff; }
.dark .shead p { color: rgba(255, 255, 255, .62); }
.dark .shead__num { color: var(--teal-300); }
.dark .shead__num::before { background: linear-gradient(90deg, var(--red), var(--teal-300)); }
.dark .shead__link a { color: #fff; }
.dark .shead__link a .arrow-c { background: rgba(255, 255, 255, .12); color: #fff; }
.dark .shead__link a:hover { color: var(--teal-300); }

.svc { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }

.svc__item {
    position: relative;
    display: flex; flex-direction: column;
    padding: 20px 20px 18px;
    border-radius: var(--r);
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .1);
    backdrop-filter: blur(8px);
    overflow: hidden;
    transition: transform .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
}

.svc__item::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(150deg, rgba(46, 184, 173, .16) 0%, rgba(46, 184, 173, 0) 60%);
    opacity: 0; transition: opacity .45s var(--ease);
}

.svc__item:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .07); border-color: rgba(46, 184, 173, .4); }
.svc__item:hover::before { opacity: 1; }
.svc__item > * { position: relative; z-index: 2; }

.svc__num {
    width: 34px; height: 34px; border-radius: 11px; margin-bottom: 14px;
    display: grid; place-items: center;
    background: linear-gradient(140deg, var(--teal) 0%, var(--teal-700) 100%);
    color: #fff; font-size: 12.5px; font-weight: 800;
    box-shadow: var(--sh-teal);
}

.svc__item h3 { font-size: 16px; line-height: 1.3; margin-bottom: 8px; letter-spacing: -.018em; }
.svc__item p { font-size: 13px; line-height: 1.55; margin: 0 0 16px; color: rgba(255, 255, 255, .6); }

.svc__more {
    margin-top: auto;
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12.5px; font-weight: 700; color: #fff;
}

.svc__more .arrow-c { width: 28px; height: 28px; background: rgba(255, 255, 255, .12); color: #fff; }
.svc__item:hover .svc__more .arrow-c { background: var(--teal); color: #fff; transform: rotate(-45deg); }

/* ---------- Хлебные крошки ---------- */

.crumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    font-size: 12.5px; color: var(--muted); padding: 12px 0 0;
}

.crumbs a { color: var(--muted); transition: color .25s var(--ease); }
.crumbs a:hover { color: var(--red); }
.crumbs .sep { opacity: .45; }
.crumbs strong { font-weight: 600; color: var(--ink); }

/* ---------- Шапка страницы ---------- */

/* Заголовок страницы держим в одну строку со счётчиком:
   до прокрутки экран должен отдавать товар, а не воздух. */
.phead {
    position: relative;
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
    padding: 10px 0 14px; margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.phead h1 { font-size: clamp(21px, 2.3vw, 28px); letter-spacing: -.028em; }
.phead p { flex-basis: 100%; margin: 2px 0 0; color: var(--ink-60); max-width: 78ch; font-size: 14.5px; }

.phead__count {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--muted);
}

.phead__count svg { color: var(--teal); }

/* ---------- Каталог ---------- */

.layout { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: var(--sec); }
.side { position: sticky; top: 76px; display: grid; gap: 14px; }

.side__card {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--r); padding: 14px; box-shadow: var(--sh-1);
}

.side__title {
    font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--muted); margin: 2px 0 8px 8px;
}

.side__list { list-style: none; margin: 0; padding: 0; }

.side__list > li > a {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 7px 10px; font-size: 13.5px; font-weight: 600; line-height: 1.3;
    color: var(--ink-80); border-radius: 9px;
    transition: color .25s var(--ease), background .25s var(--ease);
}

.side__list > li > a:hover { color: var(--teal-800); background: var(--mint-50); }
.side__list > li > a.is-active { color: #fff; background: linear-gradient(135deg, var(--teal-700), var(--teal-800)); }
.side__list small { font-size: 11px; opacity: .7; flex-shrink: 0; font-weight: 700; }

.side__list--sub { margin: 2px 0 6px 10px; padding-left: 10px; border-left: 1px solid var(--line); }
.side__list--sub a { display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-60); border-radius: 8px; transition: all .25s var(--ease); }
.side__list--sub a:hover { color: var(--red); background: var(--mint-50); }
.side__list--sub a.is-active { color: var(--teal-800); font-weight: 700; background: var(--mint-50); }

.side__promo {
    position: relative; overflow: hidden;
    border-radius: var(--r); padding: 18px 16px;
    background: linear-gradient(155deg, #073c37 0%, var(--deep) 100%);
    color: rgba(255, 255, 255, .72);
    box-shadow: var(--sh-2);
}

.side__promo::before {
    content: ""; position: absolute; width: 260px; height: 260px; top: -120px; right: -100px;
    border-radius: 50%; filter: blur(50px);
    background: radial-gradient(circle, rgba(46, 184, 173, .45), transparent 70%);
}

.side__promo > * { position: relative; z-index: 2; }
.side__promo h3 { color: #fff; font-size: 15px; margin-bottom: 6px; }
.side__promo p { font-size: 12.5px; line-height: 1.5; margin: 0 0 14px; color: rgba(255, 255, 255, .62); }

/* Плитки подкатегорий */
.subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-bottom: 22px; }

.subcat {
    position: relative; display: flex; align-items: center; gap: 11px;
    padding: 9px 11px; border-radius: var(--r-sm);
    background: var(--white); border: 1px solid var(--line);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.subcat:hover { transform: translateY(-2px); box-shadow: var(--sh-1); border-color: var(--teal-300); }

.subcat__img {
    width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0;
    background: linear-gradient(150deg, var(--mint-50), var(--mint-100));
    display: grid; place-items: center; padding: 4px; overflow: hidden;
}

.subcat__img img { width: 100%; height: 100%; object-fit: contain; }
.subcat__txt { min-width: 0; }
.subcat__name { font-weight: 700; font-size: 13px; line-height: 1.3; display: block; }
.subcat__cnt { font-size: 11.5px; color: var(--muted); }

/* Постраничная навигация */
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }

.pager__i {
    min-width: 36px; height: 36px; padding: 0 11px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 10px;
    font-size: 13.5px; font-weight: 700; background: #fff;
    transition: all .28s var(--ease);
}

a.pager__i:hover { border-color: var(--teal); color: var(--teal-800); transform: translateY(-2px); box-shadow: var(--sh-1); }
.pager__i.is-cur { background: linear-gradient(135deg, var(--teal-700), var(--teal-800)); border-color: transparent; color: #fff; }

/* ---------- Страница товара ---------- */

.prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }

.gallery__main {
    aspect-ratio: 4 / 3;
    border-radius: var(--r);
    box-shadow: var(--sh-2);
}

.gallery__main > img {
    padding: 52px 52px 72px;
    transition: transform .6s var(--ease);
}

.gallery__main:hover > img { transform: scale(1.05) translateY(-6px); }

.gallery__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.gallery__thumbs button {
    width: 62px; height: 62px; padding: 6px;
    border: 1px solid var(--line); border-radius: 10px;
    background: linear-gradient(150deg, var(--mint-50), var(--mint-100));
    transition: all .3s var(--ease);
}

.gallery__thumbs button:hover { border-color: var(--teal); transform: translateY(-3px); }
.gallery__thumbs button[aria-current="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(214, 2, 1, .12); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }

.prod__brand { margin-bottom: 10px; }
.prod h1 { font-size: clamp(20px, 2.2vw, 27px); margin-bottom: 14px; letter-spacing: -.028em; }
.prod__lead { font-size: 14.5px; color: var(--ink-60); line-height: 1.6; margin: 0 0 18px; }

.prod__specs { list-style: none; margin: 0 0 18px; padding: 0; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }

.prod__specs li {
    display: flex; justify-content: space-between; gap: 20px;
    padding: 9px 14px; font-size: 13.5px; background: #fff;
}

.prod__specs li + li { border-top: 1px solid var(--line); }
.prod__specs li:nth-child(odd) { background: var(--mint-50); }
.prod__specs .k { color: var(--muted); font-weight: 600; }
.prod__specs .v { font-weight: 700; text-align: right; }

.prod__ask {
    position: relative; overflow: hidden;
    border-radius: var(--r); padding: 20px;
    background: linear-gradient(155deg, #073c37 0%, var(--deep) 100%);
    box-shadow: var(--sh-2); color: rgba(255, 255, 255, .72);
}

.prod__ask::before {
    content: ""; position: absolute; width: 300px; height: 300px; top: -140px; right: -110px;
    border-radius: 50%; filter: blur(56px);
    background: radial-gradient(circle, rgba(46, 184, 173, .45), transparent 70%);
}

.prod__ask > * { position: relative; z-index: 2; }
.prod__ask h3 { color: #fff; font-size: 16px; margin-bottom: 6px; }
.prod__ask p { font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .62); margin: 0 0 14px; }
.prod__ask-row { display: flex; flex-wrap: wrap; gap: 10px; }

.prod__section { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }

/* ---------- Текст из базы ---------- */

.prose { font-size: 14.5px; line-height: 1.62; color: var(--ink-80); max-width: 90ch; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 20px; margin: 26px 0 10px; }
.prose h3 { font-size: 17px; margin: 22px 0 8px; }
.prose h4 { font-size: 15px; margin: 18px 0 7px; }
.prose p { margin: 0 0 10px; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 0; list-style: none; }
.prose ol { counter-reset: li; }
.prose ul > li { position: relative; padding-left: 18px; margin-bottom: 4px; }

.prose ul > li::before {
    content: ""; position: absolute; left: 2px; top: .62em;
    width: 5px; height: 5px; border-radius: 2px;
    background: var(--teal);
}

.prose ol > li { position: relative; padding-left: 28px; margin-bottom: 4px; counter-increment: li; }

.prose ol > li::before {
    content: counter(li) ".";
    position: absolute; left: 0; top: 0;
    font-size: 13px; font-weight: 700; color: var(--teal-700);
}

.prose a { color: var(--teal-700); border-bottom: 1px solid var(--line-2); font-weight: 600; }
.prose a:hover { color: var(--red); border-color: var(--red); }
.prose img { margin: 14px 0; border-radius: var(--r-sm); box-shadow: var(--sh-1); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; border-radius: var(--r-sm); overflow: hidden; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
/* Старый редактор заворачивает каждую ячейку в <p> — межабзацный отступ там лишний. */
.prose td > p, .prose th > p { margin: 0; }
.prose td > p + p, .prose th > p + p { margin-top: 6px; }
.prose th { background: var(--mint-50); font-weight: 700; color: var(--ink); }
.prose tr:nth-child(even) td { background: #fbfdfd; }
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); }
.prose--wide { max-width: none; }

/* ---------- Формы ---------- */

.form { display: grid; gap: 14px; }
.form__row { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.field input, .field textarea {
    font: inherit; font-size: 14.5px;
    padding: 11px 14px;
    border: 1px solid var(--line-2);
    background: #fff; color: var(--ink);
    border-radius: 10px; width: 100%;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(46, 184, 173, .14);
}

.field textarea { min-height: 110px; resize: vertical; }
.note { font-size: 12px; color: var(--muted); line-height: 1.5; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--sh-2); }

.alert { padding: 13px 16px; border: 1px solid var(--line); font-size: 14px; border-radius: var(--r-sm); }
.alert--ok { background: var(--mint-50); border-color: var(--teal); color: var(--teal-800); }
.alert--err { background: #fdf4f4; border-color: #e8b4b6; color: #8a2b30; }

/* ---------- Поиск ---------- */

.searchbar { display: flex; gap: 12px; margin-bottom: 24px; }
.searchbar .field { flex: 1; }

.search-panel {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(5, 36, 34, .5);
    backdrop-filter: blur(8px);
    display: grid; place-items: start center;
    padding-top: 15vh;
    opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s var(--ease);
}

.search-panel.is-on { opacity: 1; visibility: visible; }

.search-panel__box {
    width: min(680px, 92vw);
    background: #fff; padding: 24px;
    border-radius: var(--r);
    box-shadow: var(--sh-3);
    transform: translateY(-18px) scale(.98);
    transition: transform .36s var(--ease-out);
}

.search-panel.is-on .search-panel__box { transform: none; }

/* ---------- Блок контактов ---------- */

.cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.cta h2 { font-size: clamp(21px, 2.3vw, 29px); margin-bottom: 10px; letter-spacing: -.028em; }
.cta p { color: var(--ink-60); margin: 0 0 18px; font-size: 14.5px; }

.contact-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.contact-lines li {
    display: grid; grid-template-columns: 34px minmax(0, 1fr);
    gap: 13px; align-items: center;
    padding: 11px 14px; border-radius: var(--r-sm);
    background: #fff; border: 1px solid var(--line);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.contact-lines li:hover { transform: translateY(-2px); box-shadow: var(--sh-1); }

.contact-lines i {
    width: 34px; height: 34px; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--mint-50); color: var(--teal-700);
}

.contact-lines .k { display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-lines .v { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.contact-lines a.v:hover { color: var(--red); }

/* ---------- Подвал ---------- */

.footer { position: relative; overflow: hidden; background: var(--deep); color: rgba(255, 255, 255, .58); padding: 44px 0 0; font-size: 13.5px; }

.footer::before {
    content: ""; position: absolute; width: 700px; height: 700px; top: -340px; left: 50%;
    transform: translateX(-50%); border-radius: 50%; filter: blur(90px);
    background: radial-gradient(circle, rgba(46, 184, 173, .18), transparent 70%);
}

.footer > .wrap { position: relative; z-index: 2; }
.footer a { color: rgba(255, 255, 255, .74); transition: color .25s var(--ease); }
.footer a:hover { color: var(--teal-300); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 32px; padding-bottom: 30px; }

.footer h4 { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .42); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 7px; line-height: 1.4; }
.footer .logo__word { color: #fff; }
.footer .logo__sub { color: rgba(255, 255, 255, .45); }
.footer__about { margin: 14px 0 0; line-height: 1.55; max-width: 38ch; font-size: 13px; }

.footer__bottom {
    display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
    padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 12.5px; color: rgba(255, 255, 255, .4);
}

/* ---------- Плашка беты ---------- */

.beta-flag {
    position: fixed; left: 20px; bottom: 20px; z-index: 80;
    background: linear-gradient(135deg, var(--red), #8f0100); color: #fff;
    font-size: 10.5px; font-weight: 800; letter-spacing: .16em;
    text-transform: uppercase; padding: 9px 16px; border-radius: 999px;
    box-shadow: var(--sh-red); pointer-events: none;
}

/* ---------- Появление при прокрутке ---------- */

.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
    .hero__shot img { opacity: 1; transform: none; }
}

/* =========================================================
   Адаптив
   ========================================================= */

@media (max-width: 1200px) {
    :root { --gut: 24px; }
    .hero__grid { grid-template-columns: 1fr; gap: 32px; }
    .hero__badge { left: auto; right: 16px; top: 16px; }
    .layout { grid-template-columns: 220px minmax(0, 1fr); gap: 22px; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .prod { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 980px) {
    .layout { grid-template-columns: 1fr; }
    /* В одну колонку боковое меню уезжает под товары: иначе до первой
       позиции пришлось бы прокручивать весь список разделов. */
    .side { position: static; grid-template-columns: 1fr; order: 2; }
    .osn { grid-template-columns: 1fr; }
    .cta { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 900px) {
    :root { --gut: 20px; }

    .nav {
        position: fixed; inset: 0 0 0 auto;
        width: min(370px, 86vw);
        background: #fff;
        flex-direction: column; align-items: stretch; justify-content: flex-start;
        gap: 6px; padding: 80px 20px 32px;
        transform: translateX(100%);
        transition: transform .42s var(--ease-out);
        z-index: 70; overflow-y: auto;
        box-shadow: -20px 0 60px -20px rgba(5, 36, 34, .3);
    }

    .nav.is-open { transform: none; }
    .nav a { font-size: 15px; padding: 12px 16px; border-radius: 11px; }

    .burger { display: grid; }
    .hide-sm { display: none; }

    .nav-backdrop {
        position: fixed; inset: 0; background: rgba(5, 36, 34, .45);
        backdrop-filter: blur(4px);
        opacity: 0; visibility: hidden; z-index: 65;
        transition: opacity .32s var(--ease), visibility .32s var(--ease);
    }

    .nav-backdrop.is-on { opacity: 1; visibility: visible; }

    :root { --sec: 44px; --sec-sm: 32px; }
    .shead { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
    .hero { padding: 28px 0 36px; }
    .hero__stats { grid-template-columns: 1fr 1fr; }
    .hero__stat:last-child { grid-column: span 2; }
    .topbar__note { display: none; }
    .form__row { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .grid, .dirs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .card { border-radius: var(--r-sm); }
    .card__media > img { padding: 10px 10px 16px; }
    .card__body { padding: 9px 11px; }
    .card__title { font-size: 13px; }
    .card__desc { display: none; }
    .card__foot { padding-top: 8px; }
    .card__cta { font-size: 12px; }
    .card .arrow-c { width: 26px; height: 26px; }
    .footer__grid { grid-template-columns: 1fr; gap: 24px; }
    .hero__cta .btn { width: 100%; }
    .hero__badge { display: none; }
    .hero__stage { padding: 10px; border-radius: var(--r); }
    .hero__tag { padding: 10px 12px; margin-top: 10px; }
    .logo__sub { display: none; }
    .subcats { grid-template-columns: 1fr; }
    .form-card { padding: 16px; }
    .osn__item { grid-template-columns: 1fr; min-height: 0; }
    .osn__media { aspect-ratio: 16 / 10; }
    .osn__body { padding: 14px; }
    .gallery__main > img { padding: 16px 16px 24px; }
    .gallery__thumbs button { width: 52px; height: 52px; }
}

/* Новые блоки главной: сетка направлений, этапы, лента производителей */

@media (max-width: 1100px) {
    /* Сквозная линия таймлайна распадается при переносе строк —
       оставляем каждому шагу собственный отрезок. */
    .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .step::before { right: 0; }
}

@media (max-width: 700px) {
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
}

@media (max-width: 620px) {
    .dir { border-radius: var(--r-sm); }
    .dir__media > img { padding: 10px 10px 16px; }
    .dir__num { top: 7px; left: 7px; font-size: 9.5px; padding: 2px 6px; }
    .dir__body { padding: 9px 11px; }
    .dir__name { font-size: 13px; }

    .ticker__i { width: 118px; height: 30px; }
    .ticker__i img { max-width: 94px; max-height: calc(var(--lh, 26px) * .82); }
}

@media (max-width: 430px) {
    .steps { grid-template-columns: 1fr; gap: 20px; }
}
