/* ============ Эликом — фирменная тема ============ */
:root {
    --accent: #e16005;
    --accent-600: #c75200;
    --accent-50: #fdf0e6;
    --slate: #424867;
    --slate-700: #2f3450;
    --ink: #1f2226;
    --dark: #242424;
    --dark-2: #1a1a1a;
    --sand: #ccc3ba;
    --sand-100: #efeae4;
    --sand-50: #f7f4f0;
    --paper: #ffffff;
    --text: #2a2d33;
    --muted: #6b6f78;
    --line: #e2dcd5;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(20, 20, 30, .06), 0 8px 24px rgba(20, 20, 30, .07);
    --shadow-lg: 0 18px 50px rgba(20, 20, 30, .18);
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Oswald", "Arial Narrow", sans-serif;
    --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--sand-50);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-600); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.icon { flex-shrink: 0; vertical-align: middle; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
h1:focus { outline: none; }

/* ============ Шапка с горами ============ */
.site-header {
    background: url("img/bg.jpg") center 30% / cover no-repeat, #dfe6ee;
    position: relative;
}
.site-header::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,0) 60%);
    pointer-events: none;
}
.site-header__inner {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 150px;
    gap: 24px;
}
.site-header__address {
    display: flex; gap: 10px; align-items: flex-start;
    color: var(--ink); font-size: 14px; line-height: 1.35;
    justify-self: start;
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(6px);
    padding: 10px 14px; border-radius: 12px;
}
.site-header__address .icon { color: var(--accent); margin-top: 2px; }
.site-header__address:hover { color: var(--ink); background: rgba(255,255,255,.75); }
.site-header__brand { display: flex; flex-direction: column; align-items: center; }
.site-header__brand img { width: 260px; height: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.15)); }
.site-header__tagline {
    font-family: var(--font-display);
    font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
    color: var(--slate-700); margin-top: 4px;
}
.site-header__phones {
    justify-self: end;
    display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(6px);
    padding: 10px 14px; border-radius: 12px;
}
.site-header__phones a {
    font-family: var(--font-display); font-size: 22px; font-weight: 500;
    color: var(--accent); letter-spacing: .02em; white-space: nowrap;
}

/* ============ Навигация ============ */
.site-nav {
    position: sticky; top: 0; z-index: 50;
    background: var(--dark);
    box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.site-nav__inner { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.site-nav__logo { display: none; }
.site-nav__links { display: flex; list-style: none; margin: 0; padding: 0; flex: 1; }
.site-nav__links a {
    display: block;
    padding: 0 20px;
    line-height: 56px;
    font-family: var(--font-display);
    font-size: 16px; letter-spacing: .08em; text-transform: uppercase;
    color: #d8d8d8;
    position: relative;
    transition: color .2s, background .2s;
}
.site-nav__links a::after {
    content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px;
    background: var(--accent); border-radius: 3px 3px 0 0;
    transform: scaleX(0); transition: transform .25s;
}
.site-nav__links a:hover { color: #fff; background: rgba(255,255,255,.04); }
.site-nav__links a.active { color: #fff; background: #000; }
.site-nav__links a.active::after, .site-nav__links a:hover::after { transform: scaleX(1); }
.site-nav__cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 999px;
    background: linear-gradient(95deg, var(--accent) 20%, var(--slate) 120%);
    color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap;
}
.site-nav__cta:hover { color: #fff; filter: brightness(1.08); }
.lang-switch { display: flex; background: rgba(255,255,255,.07); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #a8a8a8; letter-spacing: .04em; }
.lang-switch a:hover { color: #fff; }
.lang-switch a.is-active { background: #fff; color: var(--ink); }
.site-nav__toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; margin-left: auto; }

/* ============ Кнопки и мелочи ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 22px; border-radius: 999px; border: 0;
    font-weight: 700; font-size: 15px; transition: transform .15s, filter .2s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(225,96,5,.35); }
.btn--accent:hover { color: #fff; background: var(--accent-600); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn--ghost:hover { color: #fff; background: rgba(255,255,255,.22); }
.eyebrow {
    font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em;
    font-size: 14px; color: var(--accent); margin-bottom: 8px;
}
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--light { color: #fff; }
.link-arrow--light:hover { color: var(--accent); }

/* ============ Hero-слайдер ============ */
.hero { position: relative; min-height: 560px; display: flex; flex-direction: column; color: #fff; overflow: hidden; background: var(--dark); }
.hero__slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.06);
    transition: opacity 1.2s ease, transform 7s ease;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(20,22,32,.92) 0%, rgba(20,22,32,.75) 42%, rgba(20,22,32,.15) 100%),
        linear-gradient(0deg, rgba(0,0,0,.35), transparent 40%);
}
.hero__content { position: relative; z-index: 1; flex: 1; padding-top: 64px; padding-bottom: 48px; max-width: var(--container); }
.hero__kicker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.hero__tab {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.75);
    border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600;
    transition: all .25s;
}
.hero__tab:hover { color: #fff; border-color: rgba(255,255,255,.5); }
.hero__tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero__title {
    font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
    font-size: clamp(34px, 5vw, 58px); line-height: 1.08; letter-spacing: .01em;
    color: #fff; max-width: 780px; margin-bottom: 20px;
}
.hero__text { font-size: 18px; max-width: 620px; color: rgba(255,255,255,.85); margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__band {
    position: relative; z-index: 1;
    background: rgba(0,0,0,.72); backdrop-filter: blur(4px);
    border-top: 3px solid var(--accent);
}
.hero__band .container {
    font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em;
    font-size: clamp(16px, 2.2vw, 24px); color: var(--sand); padding-top: 16px; padding-bottom: 16px;
}

/* ============ Быстрые ссылки и цифры ============ */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -1px; padding-top: 40px; }
.quick__card {
    display: flex; gap: 16px; align-items: center;
    background: var(--paper); border-radius: var(--radius); padding: 22px;
    box-shadow: var(--shadow); color: var(--text);
    border: 1px solid transparent; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.quick__card:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--text); box-shadow: var(--shadow-lg); }
.quick__card b { display: block; font-family: var(--font-display); text-transform: uppercase; font-weight: 500; font-size: 18px; letter-spacing: .03em; color: var(--ink); line-height: 1.2; }
.quick__card small { color: var(--accent); font-weight: 700; font-size: 13px; }
.quick__icon {
    width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
    display: grid; place-items: center; background: var(--accent-50); color: var(--accent);
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 32px; padding: 0; box-shadow: var(--shadow); }
.stats__item { background: var(--paper); padding: 22px 24px; container-type: inline-size; min-width: 0; }
/* Размер цифры подстраивается под ширину карточки и длину значения (--len), чтобы «RU · KZ · BY · AZ · UZ»
   помещалось в одну строку; короткие значения остаются 30px. 0.37em — средняя ширина знака шрифта Oswald. */
.stats__item b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 30px; font-size: min(30px, calc(100cqi / (var(--len, 4) * 0.37))); white-space: nowrap; color: var(--slate); line-height: 1.1; }
.stats__item span { color: var(--muted); font-size: 14px; }
.stats--stack { grid-template-columns: 1fr 1fr; margin-top: 20px; }

/* ============ Секции ============ */
.section { padding: 72px 0; }
.section--tight { padding: 24px 0 72px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section__title {
    font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
    font-size: clamp(26px, 3.2vw, 38px); letter-spacing: .02em; color: var(--ink);
}
.band { background: var(--dark); color: #cfcfcf; padding: 72px 0; position: relative; }
.band::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(1000px 400px at 85% 0%, rgba(225,96,5,.14), transparent 60%),
                radial-gradient(800px 400px at 0% 100%, rgba(66,72,103,.35), transparent 60%);
    pointer-events: none;
}
.band > .container { position: relative; }
.band__title {
    font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
    font-size: clamp(26px, 3.2vw, 38px); letter-spacing: .04em; color: var(--sand); margin: 0 0 28px;
}
.band .section__head .band__title { margin: 0; }

.about-teaser { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.about-teaser__media { position: relative; }
.about-teaser__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-teaser__media::before {
    content: ""; position: absolute; inset: 20px -20px -20px 20px; border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent), var(--slate)); z-index: -1; opacity: .9;
}

/* ============ Текст ============ */
.prose { font-size: 16.5px; line-height: 1.75; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3 { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .03em; margin-top: 1.6em; }
.prose h3 { font-size: 22px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); }
.prose img { border-radius: var(--radius-sm); margin: 1em 0; }
.prose blockquote { margin: 1.2em 0; padding: 12px 20px; border-left: 4px solid var(--accent); background: var(--accent-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose--lead > p:first-child { font-size: 19px; color: var(--ink); }

/* ============ Карточки продукции ============ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.product-card {
    display: flex; flex-direction: column;
    background: #2e2e2e; border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius); overflow: hidden; color: #cfcfcf;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(225,96,5,.6); color: #cfcfcf; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.product-card__media {
    aspect-ratio: 4/3; display: grid; place-items: center; padding: 20px;
    background: radial-gradient(circle at 50% 40%, #f6f3ef, #ddd6ce);
}
.product-card__media img { max-height: 100%; width: auto; object-fit: contain; transition: transform .4s; mix-blend-mode: multiply; }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__placeholder { color: var(--slate); opacity: .6; }
.product-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.product-card__cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.product-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 21px; letter-spacing: .02em; color: #fff; }
.product-card p { font-size: 14.5px; line-height: 1.55; color: #a9a9a9; flex: 1; }
.product-card__more { display: inline-flex; gap: 6px; align-items: center; color: var(--accent); font-weight: 700; font-size: 14px; }
.product-grid--light .product-card { background: var(--paper); border-color: var(--line); color: var(--text); box-shadow: var(--shadow); }
.product-grid--light .product-card h3 { color: var(--ink); }
.product-grid--light .product-card p { color: var(--muted); }
.product-grid--light .product-card:hover { box-shadow: var(--shadow-lg); border-color: var(--accent); }

/* ============ Новости ============ */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.news-card {
    display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); color: var(--text); transition: transform .25s, box-shadow .25s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.news-card__media { position: relative; aspect-ratio: 16/10; background: var(--sand-100); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__media img.news-card__logo { object-fit: contain; padding: 18% 20%; opacity: .7; }
.news-card__media time {
    position: absolute; left: 14px; bottom: 14px;
    background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700;
    padding: 5px 11px; border-radius: 999px;
}
.news-card__body { padding: 20px 22px 24px; }
.news-card h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 8px; }
.news-card p { font-size: 14.5px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 44px; }
.pager a, .pager span {
    min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 10px;
    border-radius: 10px; background: var(--paper); color: var(--text); font-weight: 700; box-shadow: var(--shadow);
}
.pager a:hover { color: var(--accent); }
.pager .is-active { background: var(--dark); color: #fff; }

/* ============ Партнёры ============ */
.partners { background: var(--paper); padding: 0 0 36px; border-top: 1px solid var(--line); }
.partners__title {
    background: var(--dark); color: var(--sand); text-align: center; margin: 0 0 32px;
    font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
    font-size: clamp(24px, 3vw, 34px); padding: 20px 16px;
}
.partners__viewport { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
/* Лента логотипов прокручивается всегда, как на старом сайте; при наведении — пауза. */
.partners__track { display: flex; gap: 56px; width: max-content; animation: marquee 80s linear infinite; }
.partners__viewport:hover .partners__track { animation-play-state: paused; }
.partners__item { display: grid; place-items: center; height: 72px; }
.partners__item img { max-height: 64px; max-width: 170px; width: auto; transition: transform .3s; }
.partners__item:hover img { transform: scale(1.08); }
@keyframes marquee { to { transform: translateX(calc(-50% - 28px)); } }
@media (prefers-reduced-motion: reduce) {
    .hero__slide { transition: none; }
}

/* ============ Карта 2ГИС ============ */
.gis-map { position: relative; background: var(--sand-100); }
.gis-map__area { position: relative; height: 420px; }
.gis-map__canvas { position: absolute; inset: 0; z-index: 1; }
.gis-map__fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; }
/* Глобальное img { max-width: 100% } ломает тайлы карты (Leaflet). */
.gis-map__canvas img { max-width: none; display: inline; }
/* Всплывающая карточка 2ГИС тёмная — текст светлый. */
.gis-popup { font: 14px/1.45 var(--font); color: #e8e8e8; }
.gis-popup b { display: block; font-size: 15px; color: #fff; margin-bottom: 4px; }
.gis-popup__phones { margin: 6px 0; }
.gis-map__canvas .gis-popup a { color: #ff9a52; font-weight: 700; }
.gis-map__links { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 16px; font-size: 14px; font-weight: 700; background: var(--paper); }
.gis-map__links a { display: inline-flex; align-items: center; gap: 6px; }
.gis-map--band { border-top: 3px solid var(--accent); }
.gis-map--band .gis-map__links { justify-content: center; }

/* ============ Шапка страницы ============ */
.page-header {
    background:
        linear-gradient(90deg, rgba(26,26,26,.94), rgba(36,36,36,.82)),
        url("img/slider/technologies.jpg") center / cover;
    color: #fff; padding: 44px 0 40px; border-bottom: 3px solid var(--accent);
}
.page-header h1 {
    font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .02em;
    font-size: clamp(28px, 4vw, 46px); color: #fff; margin: 0; max-width: 900px;
}
.page-header__lead { color: rgba(255,255,255,.75); font-size: 17px; max-width: 720px; margin: 12px 0 0; }
.page-header__date { color: var(--sand); margin: 12px 0 0; font-weight: 600; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; margin-bottom: 14px; }
.crumbs a { color: rgba(255,255,255,.6); }
.crumbs a:hover { color: #fff; }
.crumbs a:not(:last-child)::after, .crumbs a:last-child::after { content: "/"; margin-left: 8px; color: rgba(255,255,255,.3); }

/* ============ Каталог и карточка товара ============ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { border: 1px solid var(--line); background: var(--paper); color: var(--text); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; transition: all .2s; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--dark); border-color: var(--dark); color: #fff; }

.product { display: grid; grid-template-columns: 270px 1fr; gap: 40px; align-items: start; }
.product__nav { position: sticky; top: 80px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; }
.product__nav h4 { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; color: var(--muted); padding: 10px 12px 4px; }
.product__nav a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.product__nav a:hover { background: var(--sand-100); }
.product__nav a.is-active { background: var(--dark); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.product__main { min-width: 0; }

.gallery { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 32px; }
.gallery__main { aspect-ratio: 16/10; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #fbfaf8, #ece6df); border-radius: var(--radius-sm); overflow: hidden; }
.gallery__main img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; }
.gallery__thumbs button { width: 92px; height: 70px; flex-shrink: 0; padding: 4px; background: var(--sand-100); border: 2px solid transparent; border-radius: 8px; }
.gallery__thumbs button.is-active { border-color: var(--accent); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.spec { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); margin: 28px 0; overflow: hidden; }
.spec__title { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .03em; font-size: 19px; margin: 0; padding: 16px 22px; background: var(--dark); color: var(--sand); }
.spec__scroll { overflow-x: auto; }
.spec table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec th { text-align: left; padding: 12px 22px; background: var(--sand-100); font-weight: 700; color: var(--ink); white-space: nowrap; }
.spec td { padding: 12px 22px; border-top: 1px solid var(--line); vertical-align: top; }
.spec td:first-child { color: var(--muted); width: 50%; }
.spec td:not(:first-child) { font-weight: 700; color: var(--ink); }
.spec tr:hover td { background: var(--sand-50); }

.cta-box {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    margin-top: 40px; padding: 28px 32px; border-radius: var(--radius);
    background: linear-gradient(110deg, var(--accent) 0%, var(--slate) 100%); color: #fff;
}
.cta-box h3 { color: #fff; font-size: 21px; margin-bottom: 4px; }
.cta-box p { margin: 0; color: rgba(255,255,255,.85); }
.cta-box .btn--accent { background: #fff; color: var(--accent); box-shadow: none; }
.cta-box .btn--accent:hover { background: var(--sand-100); color: var(--accent-600); }

.docs { margin-top: 56px; }
.docs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.doc { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); border: 1px solid transparent; transition: border-color .2s; }
.doc:hover { border-color: var(--accent); color: var(--text); }
.doc b { display: block; }
.doc small { color: var(--muted); }
.doc__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-50); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.doc__dl { margin-left: auto; color: var(--muted); }

/* ============ Статья ============ */
.article { max-width: 860px; }
.article__cover { display: block; width: 100%; padding: 0; border: 0; background: none; margin-bottom: 32px; cursor: zoom-in; }
.article__cover img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.article__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 32px 0; }
.article__gallery button { padding: 0; border: 0; background: none; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; }
.article__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article__gallery button:hover img { transform: scale(1.06); }
.article__back { margin-top: 24px; }
.notice { padding: 12px 18px; border-radius: var(--radius-sm); background: #fff5d6; border: 1px solid #f0d58a; color: #7a5a00; margin-bottom: 24px; font-weight: 600; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,10,12,.92); display: grid; place-items: center; padding: 32px; cursor: zoom-out; animation: fade .2s; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.lightbox__close { position: absolute; top: 18px; right: 18px; background: none; border: 0; color: #fff; }
@keyframes fade { from { opacity: 0; } }

/* ============ О компании ============ */
.about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.about__aside { position: sticky; top: 80px; }
.about__aside > img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.team__card { background: #2e2e2e; border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding: 28px 20px 24px; text-align: center; overflow: hidden; display: flex; flex-direction: column; }
.team__photo { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden; background: linear-gradient(135deg, var(--accent), var(--slate)); display: grid; place-items: center; }
/* С фото — портрет во всю ширину карточки, как на старом сайте. */
.team__photo--img { width: auto; height: auto; aspect-ratio: 3 / 4; border-radius: 0; margin: -28px -20px 20px; background: #1f1f1f; }
.team__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team__photo span { font-family: var(--font-display); font-size: 32px; color: #fff; }
.team__card h3 { color: #fff; font-size: 17px; }
/* Должность растягивается, почта прижата к низу — во всех карточках на одной линии. */
.team__card p { color: #a9a9a9; font-size: 14px; flex: 1; margin-bottom: 14px; }
.team__card a { display: inline-flex; gap: 6px; align-items: center; justify-content: center; font-size: 13.5px; white-space: nowrap; }
.tech { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; }

/* ============ Контакты ============ */
.contacts { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.contacts__info { display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; gap: 16px; padding: 18px 20px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-item__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-50); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.contact-item h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.contact-item p { margin: 0; font-weight: 600; }
.contacts__sub { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; margin: 18px 0 0; }
.contacts__team { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contacts__team li { display: grid; padding: 12px 16px; background: var(--paper); border-radius: var(--radius-sm); border-left: 3px solid var(--accent); font-size: 14.5px; }
.contacts__team span { color: var(--muted); }
.contacts__map { position: sticky; top: 80px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.contacts__map .gis-map__area { height: 520px; }
@media (max-width: 1024px) { .contacts__map .gis-map__area { height: 380px; } }

/* ============ 404 ============ */
.empty { text-align: center; padding: 40px 24px; }
.empty__code { font-family: var(--font-display); font-size: 120px; line-height: 1; color: var(--accent); margin: 0; }

/* ============ Подвал ============ */
.site-footer { background: var(--dark-2); color: #a0a0a0; padding: 56px 0 0; font-size: 14.5px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1.2fr; gap: 36px; }
.site-footer h4 { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--sand); font-size: 16px; margin-bottom: 14px; }
.site-footer p { margin: 0 0 8px; }
.site-footer a { color: #d0d0d0; display: inline-flex; align-items: center; gap: 8px; }
.site-footer a:hover { color: var(--accent); }
.site-footer__logo { height: 54px; width: auto; margin-bottom: 14px; filter: brightness(1.1); }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 20px; padding-bottom: 24px; font-size: 13.5px; }

/* ============ Адаптив ============ */
@media (max-width: 1024px) {
    .about-teaser__media img { aspect-ratio: 16/9; }
    .site-nav__links a { padding: 0 13px; font-size: 15px; }
    .site-nav__links a::after { left: 13px; right: 13px; }
    .about-teaser, .about, .tech, .contacts { grid-template-columns: 1fr; gap: 36px; }
    .about__aside, .contacts__map { position: static; }
    .product { grid-template-columns: 1fr; }
    .product__nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
    .product__nav h4 { display: none; }
    .product__nav a { white-space: nowrap; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
    .site-header__inner { grid-template-columns: 1fr; justify-items: center; min-height: 0; padding-top: 18px; padding-bottom: 18px; gap: 12px; }
    .site-header__address { display: none; }
    .site-header__phones { justify-self: center; flex-direction: row; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; }
    .site-header__phones a { font-size: 18px; }
    .site-header__brand img { width: 200px; }
    .site-nav__toggle { display: block; }
    .site-nav__links {
        display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
        background: var(--dark); padding: 8px 0 16px; border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 16px 30px rgba(0,0,0,.35);
    }
    .site-nav.is-open .site-nav__links { display: flex; }
    .site-nav__links a { line-height: 48px; padding: 0 24px; }
    .site-nav__links a::after { display: none; }
    .site-nav__links a.active { box-shadow: inset 3px 0 0 var(--accent); }
    .site-nav__toggle { margin-left: -8px; }
    .lang-switch { margin-left: auto; }
    .site-nav__cta { margin-left: 0; }
    .quick { grid-template-columns: 1fr; }
    .hero { min-height: 520px; }
    .hero__shade { background: linear-gradient(180deg, rgba(20,22,32,.7), rgba(20,22,32,.92)); }
    .hero__content { padding-top: 40px; }
    .hero__kicker { display: none; }
    .section, .band { padding: 52px 0; }
}
@media (max-width: 560px) {
    /* Только боковые отступы: сокращённая запись «padding: 0 16px» обнуляла вертикальные отступы
       у всех блоков с классом container (первый экран, шапка, карточки, подвал). */
    .container { padding-left: 16px; padding-right: 16px; }
    .site-nav__cta { font-size: 13px; padding: 8px 11px; }
    .site-nav__cta span { display: none; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stats__item { padding: 16px; }
    .stats__item b { font-size: 22px; font-size: min(22px, calc(100cqi / (var(--len, 4) * 0.37))); }
    .news-grid, .product-grid { grid-template-columns: 1fr; }
    .section__head { flex-direction: column; align-items: flex-start; }
    .cta-box { padding: 22px; }
    .spec th, .spec td { padding: 10px 14px; }
    .empty__code { font-size: 88px; }
}

/* ============ Служебное Blazor ============ */
#blazor-error-ui {
    background: #fff5d6; bottom: 0; box-shadow: 0 -1px 6px rgba(0,0,0,.2);
    display: none; left: 0; padding: .7rem 1.25rem; position: fixed; width: 100%; z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* ============ Загрузки ============ */
.btn--small { padding: 8px 14px; font-size: 13.5px; }
.btn--outline { background: transparent; border: 1.5px solid var(--accent); color: var(--accent); }
.btn--outline:hover:not(:disabled) { background: var(--accent); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.band--light { background: var(--sand-100); color: var(--text); }
.band--light::before { display: none; }
.dl-list { display: grid; gap: 14px; margin-top: 8px; }
.dl-item { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; border: 1px solid transparent; transition: border-color .2s; }
.dl-item:hover { border-color: var(--line); }
.dl-item.is-missing { opacity: .6; }
.dl-item__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-50); color: var(--accent); display: grid; place-items: center; }
.dl-item h3 { font-size: 18px; margin: 0 0 4px; }
.dl-item__text { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.dl-item__text p { margin: 0 0 .5em; }
.dl-item__text p:last-child { margin: 0; }
.dl-item__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.dl-item__meta .muted { font-weight: 500; font-size: 13px; }
.dl-item__meta .btn { margin-top: 6px; }
.dl-lead { color: var(--muted); max-width: 720px; margin-bottom: 20px; }
/* minmax(0, …) и min-width: 0 — иначе колонка растягивается под самый длинный пункт списка категорий
   (в Safari на iPhone поля вылезали за край карточки). */
.dl-search { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 12px; background: var(--paper); padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow); }
.dl-search > * { min-width: 0; }
.dl-search select { width: 100%; text-overflow: ellipsis; }
.dl-search__input { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; color: var(--muted); }
.dl-search__input:focus-within, .dl-search select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(225,96,5,.12); }
.dl-search input { border: 0; outline: 0; flex: 1; font: inherit; padding: 12px 0; background: transparent; color: var(--ink); min-width: 0; }
/* Своя стрелка вместо системной: крупнее, в фирменном цвете, с отступом от края. */
.dl-search select {
    font: inherit; border: 1px solid var(--line); border-radius: 999px; padding: 0 52px 0 18px; color: var(--ink); min-height: 46px; cursor: pointer;
    -webkit-appearance: none; appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23e16005' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 18px center / 22px;
}
.dl-search select:hover { border-color: var(--accent); }
.dl-status { display: flex; align-items: center; gap: 12px; margin: 18px 4px 0; }
.dl-table { margin-top: 12px; }
.dl-table td { vertical-align: middle; }
.dl-table th, .dl-table td { padding: 12px 16px; }
.dl-table th { white-space: normal; }
.dl-table td:first-child { width: auto; font-size: 13px; }
.dl-table td:not(:first-child) { font-weight: 600; }
.dl-table__assembly { color: var(--accent) !important; }
.dl-table__drv { font-weight: 500 !important; color: var(--muted) !important; font-size: 13.5px; }
.dl-drv { display: flex; flex-direction: column; overflow-wrap: anywhere; }
.dl-drv small { font-size: 12px; opacity: .8; }
/* Колонка с кнопкой — по ширине кнопки, остальное место делят остальные колонки. */
.dl-table__action { text-align: right; white-space: nowrap; width: 1%; padding-right: 20px !important; }
.dl-preparing { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.dl-preparing .adm-spinner { width: 18px; height: 18px; border-width: 2px; }
.adm-spinner { width: 26px; height: 26px; border: 3px solid #e7e3de; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 820px) {
    .dl-item { grid-template-columns: auto 1fr; }
    .dl-item__meta { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; }
    .dl-item__meta .btn { margin: 0 0 0 auto; }
    .dl-search { grid-template-columns: minmax(0, 1fr); }
    .dl-search select { min-height: 44px; }
    .dl-table__drv { display: none; }
    .dl-table th:nth-child(3), .dl-table th:nth-child(4) { display: none; }
}
