/* ===== BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 33px; overflow-x: hidden; }
body {
    font-family: 'Montserrat', sans-serif;
    background: #000;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; }
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}
.section { padding: 60px 0; }
.section__header { text-align: center; margin-bottom: 30px; }
.section__badge {
    display: inline-block;
    background: #FF2B2B;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.section__title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}
.section__subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== COLORS ===== */
:root {
    --red: #FF2B2B;
    --black: #000000;
    --dark: #111111;
    --yellow: #FFD700;
    --white: #ffffff;
    --gray: #444444;

    /* ===== ЦВЕТА ТЕКСТА (единые оттенки для всего сайта) ===== */
    --text-main: #fdfdfd;   /* основной текст */
    --text-soft: #e0e0e0;   /* светло-серый текст (был #ccc) */
    --text-muted: #cccccc;  /* приглушённый серый текст (был #aaa) */
    --light-gray: var(--text-muted);

    --border: #222222;

    /* Единая высота сертификата в лайтбоксе (одно- и многостраничные документы).
       На ПК достаточно большая, но без растягивания сверх натурального размера скана. */
    --lightbox-cert-height: min(84vh, 1400px);
}


/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1600;
    border-bottom: 1px solid var(--border);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}
.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 22px;
    color: var(--white);
}
.logo img {
    height: 36px;
    width: auto;
    display: block;
}
.header .logo img {
    opacity: 0;
    transition: opacity 0.15s linear;
}
.phone-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 30px;
    background: var(--red);
    transition: all 0.3s ease;
}
.phone-link:hover {
    background: var(--red);
    color: var(--white);
    /* мягкое свечение по периметру */
    box-shadow: 0 0 0 1px rgba(255, 80, 80, 0.55), 0 0 18px rgba(255, 43, 43, 0.6), 0 0 36px rgba(255, 43, 43, 0.3);
}
.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header__call {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--red);
    color: var(--white);
    font-size: 17px;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.header__call:hover {
    background: var(--red);
    box-shadow: 0 0 0 1px rgba(255, 80, 80, 0.55), 0 0 18px rgba(255, 43, 43, 0.6), 0 0 36px rgba(255, 43, 43, 0.3);
}
.burger {
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    background: transparent;
    transition: background 0.3s ease;
}
.burger span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 2.5px;
    margin: -1.25px 0 0 -12px;
    background: var(--white);
    border-radius: 3px;
    transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.25s ease, background 0.3s ease;
}
.burger span:nth-child(1) { transform: translateY(-8px); }
.burger span:nth-child(2) { transform: translateY(0); }
.burger span:nth-child(3) { transform: translateY(8px); }
.burger:hover { background: rgba(255, 255, 255, 0.06); }
.burger.active span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.burger.active span:nth-child(2) { transform: translateX(-12px); opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

/* ===== NAVIGATION ===== */
.nav { display: block; }
.nav__close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--dark);
    border: 1px solid var(--border);
    color: var(--white);
    font-size: 20px;
    align-items: center;
    justify-content: center;
    z-index: 1600;
    transition: all 0.3s ease;
}
.nav__close:hover {
    border-color: var(--red);
    color: var(--red);
}
.nav__list {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}
.nav__link {
    color: var(--white);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav__link:hover { color: var(--yellow); }
.nav__link::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--yellow);
    transition: width 0.3s ease;
}
.nav__link:hover::after { width: 100%; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover {
    background: #e02222;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 37, 61, 0.4);
}
.btn--yellow { background: var(--yellow); color: var(--black); }
.btn--yellow:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}
.btn--outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn--outline:hover {
    background: var(--white);
    color: var(--black);
    transform: translateY(-2px);
}
.btn--sm { font-size: 13px; padding: 8px 16px; }
.btn--lg { font-size: 16px; padding: 14px 28px; }

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    padding-top: 80px;
    overflow: hidden;
    background: #000 url('../images/sections/01.webp') no-repeat center center / cover;
}
/* Затемняющая подложка для читаемости текста поверх фоновой картинки */
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}
.hero__bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero__bg-item {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: pulse 4s ease-in-out infinite;
}
.hero__bg-item--1 {
    width: 400px; height: 400px;
    background: var(--red);
    top: 10%; left: 5%;
}
.hero__bg-item--2 {
    width: 350px; height: 350px;
    background: var(--yellow);
    bottom: 10%; right: 5%;
    animation-delay: 0.5s;
}
.hero__bg-item--3 {
    width: 300px; height: 300px;
    background: var(--red);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    animation-delay: 1s;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.35; }
}
.hero .container {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-top: 6px;
    padding-bottom: 130px;
}
.hero__logo {
    max-width: 620px;
    width: 100%;
    height: auto;
    margin: 6px auto 0;
    display: block;
    position: relative;
    z-index: 5;
}
.hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    min-width: 0;
    margin: auto;
}
.hero__ex-logo {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: auto;
    opacity: 0.9;
}
@media (max-width: 768px) {
    .hero__ex-logo { width: 48px; }
    .hero__logo {
        max-width: 280px;
        margin: 16px auto 0;
    }
}
@media (max-width: 480px) {
    .hero__logo { max-width: 230px; }
    /* hero-контент занимает ровно ширину контейнера, иначе блок сужается под текст
       и Ex-логотип (right:0) вылезает за край экрана */
    .hero__content { width: 100%; max-width: 100%; }
    /* Ex-логотип — как на ПК: в правом верхнем углу блока hero-контента, у плашки.
       Размер уменьшен, чтобы не выходить за пределы экрана. */
    .hero__ex-logo {
        position: absolute;
        top: 0;
        right: 0;
        width: 44px;
        height: auto;
        margin: 0;
        display: block;
        opacity: 0.9;
    }
    /* Без переноса слов по буквам и разрыва «и» в конце строки:
       слова всегда остаются целыми, «и системы управления нагревом» не отрывается.
       Шрифт увеличен для читаемости на мобильных.
       Селектор с вложенностью — чтобы перебить базовые .hero__title/.hero__subtitle. */
    .hero .hero__title {
        font-size: 30px;
        line-height: 1.25;
        word-break: normal;
        overflow-wrap: normal;
        hyphens: none;
        text-shadow: 0 0 8px rgba(0,0,0,0.4), 0 0 16px rgba(0,0,0,0.4), 0 0 32px rgba(0,0,0,0.4);
    }
    .hero .hero__subtitle { font-size: 16px; }
.hero__bg-item { display: none; }
}
.hero__badge {
    display: block;
    width: fit-content;
    margin: 0 auto 30px;
    background: var(--red);
    color: var(--white);
    font-size: 13px; font-weight: 700;
    padding: 8px 20px;
    border-radius: 30px;
}
.hero__title {
    /* На ПК 48px; на узких экранах масштабируется так, чтобы текст не выходил за край */
    font-size: clamp(28px, 9vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-align: center;
    overflow-wrap: break-word;
}
.hero__subtitle {
    font-size: 22px;
    color: var(--text-soft);
    margin-bottom: 30px;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: break-word;
}
.hero__btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%; transform: translateX(-50%);
    z-index: 2;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 1s ease 0.5s both;
}
.hero__scroll-arrow {
    width: 14px;
    height: 14px;
    border-right: 3px solid var(--white);
    border-bottom: 3px solid var(--white);
    transform: rotate(45deg);
    animation: scrollArrow 1.6s ease-in-out infinite;
}
.hero__scroll-arrow--2 {
    margin-top: -2px;
    animation-delay: 0.25s;
}
@keyframes scrollArrow {
    0%, 100% { opacity: 0; transform: translateY(0) rotate(45deg); }
    50% { opacity: 1; transform: translateY(8px) rotate(45deg); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}


/* ===== ABOUT ===== */
.about__compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr);
    gap: 30px;
    align-items: start;
}
.about__text {
    flex: 1;
    min-width: 0;
}
.about__text p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-soft);
    margin-bottom: 12px;
}
.about__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
}
.stat { text-align: center; }
.stat__num {
    font-size: 24px;
    font-weight: 800;
    color: var(--red);
    white-space: nowrap;
}
.stat__label {
    font-size: 11px;
    color: var(--light-gray);
    margin-top: 2px;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.35;
    max-width: 120px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FEATURES ===== */
.about__features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
    align-items: stretch;
}
.about__features .feature-item {
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}
.about__features .feature-item:last-child {
    border-bottom: none;
}
.feature-item {
    background: var(--dark);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.feature-item:hover {
    border-color: var(--red);
    transform: translateY(-4px);
}
.feature-item__icon {
    width: 48px; height: 48px;
    background: var(--red);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--white);
    font-size: 20px;
}
.feature-item h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--white);
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}
.feature-item p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

/* ===== ADVANTAGES ===== */
.advantages {
    /* уменьшенный отступ от секции выше */
    padding-top: 10px;
}
.advantages__grid {
    display: grid;
    /* две колонки: карточки попарно в строку (на мобильных — одна колонка) */
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 30px;
}
.advantage-card {
    background: transparent;
    padding: 4px 0;
    border-radius: 0;
    border: none;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
.advantage-card__icon {
    width: 48px; height: 48px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex-shrink: 0;
    color: var(--red);
    font-size: 24px;
}
.advantage-card__content {
    flex: 1;
    min-width: 0;
}
.advantage-card__title {
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--white);
    position: relative;
    padding-bottom: 6px;
}
.advantage-card__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--red);
}
.advantage-card__text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}


/* ===== STAGES ===== */
.stages__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.stage {
    position: relative;
    padding-left: 70px;
}
.stage__num {
    position: absolute;
    left: 0;
    top: 0;
    width: 56px;
    height: 56px;
    background: var(--red);
    color: var(--white);
    font-size: 22px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.stage:before {
    content: "";
    position: absolute;
    left: 28px;
    top: 56px;
    bottom: -24px;
    width: 2px;
    background: var(--border);
    z-index: 1;
}
.stage:last-child:before,
.stage:nth-child(2):before { display: none; }
.stage:nth-child(2) { padding-right: 70px; padding-left: 0; }
.stage:nth-child(2):before { right: 0; left: auto; }
.stage:nth-child(2) .stage__num { left: auto; right: 0; }
.stage-card {
    background: var(--dark);
    padding: 28px;
    border-radius: 12px;
    border: 1px solid var(--border);
    height: 100%;
    transition: all 0.3s ease;
}
.stage:hover .stage__card {
    border-color: var(--red);
    transform: translateY(-4px);
}
.stage__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}
.stage__text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== CATALOG ===== */
.catalog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.catalog-card {
    background: var(--dark);
    padding: 32px 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}
.catalog-card:hover {
    border-color: var(--red);
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
.catalog-card__icon {
    width: 72px;
    height: 72px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 32px;
}
.catalog-card__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--white);
}
.catalog-card__text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}


/* ===== INDUSTRY ===== */
/* Верхний отступ намеренно меньше стандартных 60px: секция «Промо» сверху
   имеет тот же фон (#111) и свой нижний отступ 60px, поэтому перед бейджем
   «Отрасли применения» получалась слишком широкая пустая полоса.
   Селектор .section.industry специфичнее .section, поэтому правило ниже
   действует и на мобильных, где в @media (max-width: 1024px) снова задан
   .section { padding: 60px 0; } — править значение нужно только здесь. */
.industry {
    background: var(--dark);
}
.section.industry {
    padding-top: 24px;
}
.industry__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.industry-card {
    background: #000;
    padding: 20px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}
/* Hover-подсветка — только для устройств с настоящим наведением (мышь/трекпад).
   На тач-экранах hover «залипает» после тапа, из-за чего плашка выглядит
   кнопкой; там вместо него работает короткая тап-вспышка (.tap-flash ниже). */
@media (hover: hover) {
    .industry-card:hover {
        border-color: rgba(255, 215, 0, 0.55);
        background: rgba(255, 215, 0, 0.08);
    }
    /* Раскрытие описания отрасли при наведении мыши (сами правила — в блоке
       INDUSTRY ниже, здесь только hover-состояние). Плашка поднимается по
       z-index (описание ложится поверх соседних плашек) и теряет нижние
       скругления — окошко с текстом примыкает снизу и вместе с плашкой
       образует одну общую рамку. */
    .industry-card--expandable:hover {
        z-index: 30;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    .industry-card--expandable:hover .industry-card__text {
        opacity: 1;
        visibility: visible;
    }
    .industry-card--expandable:hover .industry-card__arrow {
        transform: rotate(180deg);
        opacity: 1;
    }
}
.industry-card i {
    font-size: 28px;
    color: var(--yellow);
    margin-bottom: 8px;
}
.industry-card h3 {
    font-size: 14px;
    color: var(--white);
}

/* Описание отрасли из industry/NN.txt — продолжение рамки плашки.
   Раньше текст раскрывался в потоке и увеличивал высоту плашки, из-за чего
   при наведении «прыгала» вся сетка отраслей. Теперь текст вынесен из потока
   (position: absolute) и примыкает снизу вплотную к плашке: рамка плашки
   визуально продолжается вниз, текст находится ВНУТРИ этой рамки, а сама
   сетка отраслей (серая зона под плашками) при наведении не сдвигается —
   описание просто накрывает то, что расположено ниже (z-index у плашки).
   Показывается при наведении мыши (:hover, только устройства с настоящим
   наведением) и при фокусе с клавиатуры (:focus-visible, Tab; именно
   focus-visible, чтобы после клика мышью текст не оставался раскрытым).
   На тач-экранах наведения нет — там раскрытие по тапу классом .is-open,
   который навешивает JS. Если файла нет — описания нет, плашка как раньше. */
.industry-card__text {
    position: absolute;
    top: 100%;              /* вплотную к нижней границе плашки */
    /* left/right на 1px наружу — боковые линии рамки точно продолжают
       боковые линии самой плашки, шов не виден. */
    left: -1px;
    right: -1px;
    max-height: 320px;
    overflow-y: auto;
    padding: 10px 16px 20px; /* отступы как у плашки */
    background: #000;        /* тот же фон, что у плашки */
    border: 1px solid rgba(255, 215, 0, 0.55);
    border-top: none;        /* верх рамки — это уже граница самой плашки */
    border-radius: 0 0 12px 12px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.industry-card.is-open .industry-card__text,
.industry-card--expandable:focus-visible .industry-card__text {
    opacity: 1;
    visibility: visible;
}
.industry-card__text p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: left;
}
.industry-card__text p + p { margin-top: 8px; }

/* Плашки с описанием: подсказка-стрелка и отклик на фокус с клавиатуры.
   Курсор не делаем «рукой»: на ПК плашка не кнопка, текст раскрывается
   самим наведением. */
.industry-card--expandable {
    position: relative;
}
.industry-card--expandable:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
}
/* Стрелка-подсказка. Селектор с тегом (i.industry-card__arrow) нужен, чтобы
   перебить общее правило .industry-card i (крупная иконка отрасли, 28px). */
.industry-card i.industry-card__arrow {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    margin-bottom: 0;
    color: var(--yellow);
    opacity: 0.55;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.industry-card.is-open .industry-card__arrow,
.industry-card--expandable:focus-visible .industry-card__arrow {
    transform: rotate(180deg);
    opacity: 1;
}
/* Раскрытая (тап) или получившая фокус плашка подсвечивается как при наведении
   и поднимается по z-index — описание ложится поверх того, что ниже плашки.
   Нижние скругления убираются, чтобы продолжение рамки с текстом было единым. */
.industry-card.is-open,
.industry-card--expandable:focus-visible {
    border-color: rgba(255, 215, 0, 0.55);
    background: rgba(255, 215, 0, 0.08);
    z-index: 30;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Мобильная «дышащая» анимация отраслевых плашек — включается только
   в @media (max-width: 768px), где hover недоступен (тач-экраны).
   Сдвиг 2px и длинный цикл — еле заметно и ненавязчиво. */
@keyframes industry-breathe {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(2px); }
}

/* Тап-вспышка на тач-устройствах: короткая жёлтая подсветка, которая почти
   сразу гаснет сама — плашка не кнопка, её просто коснулись. Класс навешивает
   JS (pointer: coarse), чтобы вспышка «доживала» до конца даже после того,
   как палец уже отпущен. «Дыхание» при этом продолжается (две анимации).
   Второй селектор (.nth-child(even)) нужен: в мобильном @media у чётных плашек
   animation-delay:-3s идёт позже и с той же специфичностью перебивал бы
   вспышку — поэтому для чётных правило объявлено с более высокой специфичностью. */
.industry-card.tap-flash,
.industry-card:nth-child(even).tap-flash {
    animation: industry-tap-flash 0.9s ease-out, industry-breathe 6s ease-in-out infinite;
}
@keyframes industry-tap-flash {
    0%   { background-color: rgba(255, 215, 0, 0.45); border-color: rgba(255, 215, 0, 0.95); }
    25%  { background-color: rgba(255, 215, 0, 0.3);  border-color: rgba(255, 215, 0, 0.7); }
    100% { background-color: #000;                     border-color: var(--border); }
}

/* ===== INDUSTRY: РАЗВОРОТ ПЛАШКИ НА ПК =====
   На ПК (устройства с мышью, ширина >= 769px) описание отрасли показывается
   не «выездом» вниз, а разворотом плашки на 180°: лицевая сторона (иконка и
   название) уходит, на её месте — обратная сторона с текстом описания.
   Разметку сторон собирает js/main.js (makeIndustryCardExpandable):
     .industry-card__inner > .industry-card__face--front / .industry-card__face--back
   На тач-экранах и узких окнах обёртки «прозрачны» (display: contents),
   поэтому там работает прежнее раскрытие текста вниз по тапу, а сами
   плашки в index.html менять не нужно. */
.industry-card__inner,
.industry-card__face { display: contents; }

@media (hover: hover) and (min-width: 769px) {
    .industry-card--flip {
        perspective: 1200px;
        background: transparent;
        border: none;
        padding: 0;
    }
    .industry-card--flip .industry-card__inner {
        display: block;
        position: relative;
        height: 100%;
        transform-style: preserve-3d;
        transition: transform 0.7s cubic-bezier(0.35, 0, 0.25, 1);
    }
    /* Разворот: наведение мыши, тап на гибридных устройствах (класс .is-open)
       и фокус с клавиатуры (Tab) */
    .industry-card--flip:hover .industry-card__inner,
    .industry-card--flip.is-open .industry-card__inner,
    .industry-card--flip:focus-visible .industry-card__inner {
        transform: rotateY(180deg);
    }
    /* Стороны плашки: та же рамка и фон, что у обычной плашки */
    .industry-card--flip .industry-card__face {
        display: block;
        background: #000;
        border: 1px solid var(--border);
        border-radius: 12px;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    /* Лицевая сторона — в потоке, задаёт высоту плашки */
    .industry-card--flip .industry-card__face--front {
        position: relative;
        height: 100%;
        padding: 20px 16px;
    }
    /* Обратная сторона — текст описания, выровнен по центру плашки */
    .industry-card--flip .industry-card__face--back {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow-y: auto;
        padding: 16px;
        border-color: rgba(255, 215, 0, 0.55);
        transform: rotateY(180deg);
    }
    /* Текст описания уже внутри обратной стороны — снимаем «выездное»
       оформление из блока INDUSTRY (position: absolute, рамку-продолжение) */
    .industry-card.industry-card--flip .industry-card__face--back .industry-card__text {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        max-height: none;
        overflow: visible;
        padding: 0;
        margin: auto 0;         /* центр плашки + рабочий скролл при переполнении */
        background: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transition: none;
    }
    .industry-card--flip .industry-card__text p { text-align: center; }
    /* Стрелка-подсказка на лицевой стороне не нужна: о развороте говорит
       сам переворот плашки */
    .industry-card--flip .industry-card__arrow { display: none; }
    /* Подсветка как у остальных плашек: наведение мыши, фокус, тап */
    .industry-card--flip:hover .industry-card__face,
    .industry-card--flip.is-open .industry-card__face,
    .industry-card--flip:focus-visible .industry-card__face {
        border-color: rgba(255, 215, 0, 0.55);
        background: rgba(255, 215, 0, 0.08);
    }
    /* Плашка больше не «продолжается» вниз текстом: возвращаем нижние
       скругления, которые снимает правило .industry-card--expandable:hover */
    .industry-card--flip:hover,
    .industry-card--flip.is-open,
    .industry-card--flip:focus-visible {
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }
}

/* При системной настройке «уменьшить движение» разворот происходит мгновенно */
@media (prefers-reduced-motion: reduce) {
    .industry-card--flip .industry-card__inner { transition: none; }
}

/* ===== REVIEWS DOCUMENTS GRID =====
   Плашки благодарственных писем: та же сетка, пропорции и оформление, что
   у сертификатов (A4 вертикально), чтобы разделы выглядели одинаково. */
.reviews__notice[hidden],
.reviews__grid[hidden] { display: none; }
.reviews__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px;
}
.review-slide {
    position: relative;
    flex: 0 0 180px;
    width: 180px;
    aspect-ratio: 1 / 1.414; /* A4 portrait (210×297 мм) */
    display: flex;
    align-items: center;
    justify-content: center;
}
.review-slide__doc {
    width: 100%;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.review-slide__doc[src] {
    display: block;
    object-fit: contain;
    color: transparent;
    padding: 8px;
    cursor: zoom-in;
}
/* Письмо на нескольких листах: за миниатюрой видны «листы стопкой» */
.review-slide--stack::before,
.review-slide--stack::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #f3f1ea;
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.28);
}
.review-slide--stack::before {
    transform: translate(6px, 6px);
}
.review-slide--stack::after {
    transform: translate(-6px, -6px);
}
.review-slide--stack .review-slide__doc {
    position: relative;
    z-index: 1;
}
.review-slide__badge {
    position: absolute;
    right: 6px;
    bottom: 6px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.78);
    color: var(--yellow);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    padding: 4px 9px;
    border-radius: 12px;
    letter-spacing: 0.4px;
}
@media (max-width: 768px) {
    .review-slide { flex-basis: 150px; width: 150px; }
}
@media (max-width: 480px) {
    .review-slide { flex-basis: 120px; width: 120px; }
}

/* ===== CERTIFICATES ===== */
.certificates__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto 40px;
}
.cert-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--dark);
    padding: 20px 24px;
    border-radius: 10px;
    border: 1px solid var(--border);
}
.cert-item__icon {
    font-size: 24px;
    color: var(--red);
    flex-shrink: 0;
}
.cert-item__text {
    font-size: 15px;
    color: var(--text-soft);
    line-height: 1.6;
}
.certificates__labs {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.certificates__labs h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.certificates__labs p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== CERTIFICATES DOCUMENTS CAROUSEL (A4 VERTICAL) ===== */
.cert-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px 20px;
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 10px;
}
.cert-slide {
    flex: 0 0 180px;
    width: 180px;
    aspect-ratio: 1 / 1.414; /* A4 portrait (210×297 мм) */
    display: flex;
    align-items: center;
    justify-content: center;
}
.cert-slide__doc {
    width: 100%;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.cert-slide__doc[src] {
    display: block;
    object-fit: contain;
    color: transparent;
    padding: 8px;
    cursor: zoom-in;
}
/* Многостраничный документ: за миниатюрой видны «листы стопкой» */
.cert-slide--stack {
    position: relative;
}
.cert-slide--stack::before,
.cert-slide--stack::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #f3f1ea;
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.28);
}
.cert-slide--stack::before {
    transform: translate(6px, 6px);
}
.cert-slide--stack::after {
    transform: translate(-6px, -6px);
}
.cert-slide--stack .cert-slide__doc {
    position: relative;
    z-index: 1;
}
.cert-slide__badge {
    position: absolute;
    right: 6px;
    bottom: 6px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.78);
    color: var(--yellow);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    padding: 4px 9px;
    border-radius: 12px;
    letter-spacing: 0.4px;
}
.cert-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--white);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
}
.cert-carousel__nav:hover {
    background: var(--red);
    color: var(--white);
}
.cert-carousel__nav--prev { left: -4px; }
.cert-carousel__nav--next { right: -4px; }
@media (max-width: 768px) {
    .cert-slide { flex-basis: 150px; width: 150px; }
}
@media (max-width: 480px) {
    .cert-slide { flex-basis: 120px; width: 120px; }
}

/* ===== FAQ ===== */
.faq__grid {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--dark);
    border-radius: 10px;
    scroll-margin-top: 100px; /* отступ под фиксированную шапку при автоскролле */
    border: 1px solid var(--border);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item:hover { border-color: var(--red); }
.faq-item__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
}
.faq-item__question i {
    color: var(--red);
    transition: transform 0.3s ease;
}
.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-item__answer p {
    padding: 0 24px 18px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}
.faq-item.active .faq-item__answer { max-height: 2000px; }
.faq-item.active .faq-item__question i { transform: rotate(180deg); }


/* ===== CONTACT ===== */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact__info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.contact__map {
    min-height: 320px;
    height: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--dark);
}
.contact__map iframe,
.contact__map > div {
    width: 100%;
    height: 100%;
    min-height: 320px;
    display: block;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.contact-item__icon {
    width: 50px; height: 50px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    flex-shrink: 0;
}
.contact-item__content { flex: 1; }
.contact-item__label {
    font-size: 13px;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.contact-item__value {
    font-size: 16px;
    color: var(--white);
    font-weight: 500;
    margin-top: 2px;
}

/* ===== CTA ===== */
.cta {
    background: var(--dark);
    text-align: center;
    padding: 60px 0;
    margin-top: 40px;
}
.cta__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}
.cta__subtitle {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 28px;
}
.cta__btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ===== FOOTER ===== */
.footer {
    background: #000;
    border-top: 1px solid var(--border);
    padding: 50px 0 30px;
}
.footer__top {
    display: grid;
    /* Первая колонка — как левая колонка блока «Контакты» (1fr 1fr + gap 50px):
       её правый край совпадает с левым краем карты выше. Остаток делят поровну
       «Опросные листы» и «Полезное». */
    grid-template-columns: calc(50% + 25px) 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}
.logo--footer img {
    height: 32px;
    width: auto;
    display: block;
}
.footer__copyright {
    font-size: 13px;
    color: var(--light-gray);
    margin-top: 8px;
}
.footer__privacy {
    font-size: 12px;
    color: var(--light-gray);
    display: block;
    margin-top: 4px;
}
.footer__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    position: relative;
    color: var(--white);
}
.footer__title i {
    color: var(--red);
    font-size: 14px;
}
.footer__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background: var(--red);
}
.footer__calc-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    border: 1px solid var(--red);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.footer__calc-link i { color: var(--red); transition: color 0.3s ease; }
.footer__calc-link:hover {
    background: var(--red);
    color: var(--white);
}
.footer__calc-link:hover i { color: var(--white); }
.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer__nav a:hover { color: var(--yellow); }
.footer__nav--questionnaires a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer__nav--questionnaires a i {
    color: var(--red);
    font-size: 13px;
    transition: color 0.3s ease;
}
.footer__nav--questionnaires a:hover i {
    color: var(--yellow);
}
/* Окно реквизитов в футере (вместо колонки «Навигация») */
.footer__req {
    padding: 14px 16px;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.footer__req .req-item {
    grid-template-columns: 1fr;
    gap: 2px 0;
    padding: 8px 0;
}
.footer__req .req-item__value {
    font-size: 13px;
}
.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer__contact {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}
.footer__contact i { color: var(--red); }
.footer__contact a:hover { color: var(--yellow); }
/* Аналоговые часы в блоке контактов под «Рабочими часами» */
.contact-item--clocks {
    align-items: flex-start;
}
.contact-item--clocks .contact-item__value {
    margin-bottom: 2px;
}
.contact__clocks {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 14px 10px;
    margin-top: 12px;
    padding: 14px 16px;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: fit-content;
}
.clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 84px;
}
.clock__svg {
    width: 76px;
    height: 76px;
    display: block;
    background: #0d0d0d;
    border-radius: 50%;
}
.clock__face {
    fill: none;
    stroke: #333;
    stroke-width: 2;
}
.clock__tick {
    stroke: #555;
    stroke-width: 1.5;
}
.clock__tick--major {
    stroke: var(--light-gray);
    stroke-width: 2.5;
}
.clock__hand {
    stroke-linecap: round;
}
.clock__hand--hour {
    stroke: var(--white);
    stroke-width: 5;
}
.clock__hand--min {
    stroke: var(--light-gray);
    stroke-width: 3.5;
}
.clock__hand--sec {
    stroke: var(--red);
    stroke-width: 1.5;
}
.clock__pin {
    fill: var(--red);
}
.clock__label {
    font-size: 11px;
    color: var(--light-gray);
    white-space: nowrap;
}
.clock__time {
    font-size: 12px;
    color: var(--white);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    margin-top: -2px;
}
.footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--light-gray);
    font-size: 12px;
}
.footer__bottom .footer__copyright {
    margin-top: 10px;
}
.footer__bottom .footer__privacy {
    margin-top: 6px;
}

/* ===== QUICK LINKS ===== */
.quick-links {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 10px;
}
.quick-links__btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--red);
    color: var(--white);
    padding: 10px 14px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}
.quick-links__btn:hover {
    background: #e02222;
    transform: translateY(-2px);
}


/* ===== PARTNERS ===== */
.partners {
    background: var(--dark);
}
.partners__plaque {
    background: #F4F5F7;
    border: 1px solid #e2e2e2;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.partners__logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px 28px;
    padding: 4px 0;
}
.partners__logo-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px dashed #d5d5d5;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.partners__logo-cell::after {
    content: "Логотип";
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    user-select: none;
    white-space: nowrap;
}
.partners__logo-cell img {
    display: none;
    max-width: 220px;
    max-height: 64px;
    width: auto;
    height: auto;
}
.partners__logo-cell.has-logo img {
    display: block;
}
.partners__logo-cell.has-logo::after {
    display: none;
}
.partners__logo-cell.has-logo {
    border: none;
    background: transparent;
    padding: 0;
    min-width: 0;
    min-height: 0;
}
/* ===== REVIEWS ===== */
/* Раздел «Отзывы» — компактный: уменьшенные отступы секции и шапки,
   заглушка оформлена горизонтальной полосой (иконка слева, текст справа). */
.reviews { padding: 34px 0; }
.reviews .section__header { margin-bottom: 14px; }
.reviews .section__title { font-size: 26px; margin-bottom: 6px; }
.reviews .section__subtitle { font-size: 15px; }

/* Полоса-заглушка «Раздел в разработке» — общая для «Отзывов» и «Промо» */
.reviews__notice,
.promo__notice {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    text-align: left;
    padding: 18px 24px;
    background: var(--dark);
    border: 1px dashed #444;
    border-radius: 12px;
}
.reviews__notice i,
.promo__notice i {
    flex-shrink: 0;
    display: inline-block;
    font-size: 26px;
    color: var(--yellow);
    margin-bottom: 0;
}
.reviews__notice h3,
.promo__notice h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 2px;
}
.reviews__notice p,
.promo__notice p {
    font-size: 14px;
    color: var(--light-gray);
    line-height: 1.5;
}


/* ===== NAV MOBILE ===== */
@media (max-width: 1024px) {
    .header__inner { padding: 8px 0; }
    .header .logo img { height: 30px; }
    .logo { position: relative; z-index: 1600; }
    .header__actions { position: relative; z-index: 1600; }
    .burger {
        display: flex;
        height: 44px;
        width: 44px;
        border-radius: 10px;
        border: 1px solid var(--white);
        background: rgba(255, 255, 255, 0.06);
    }
    .header__call { display: flex; height: 44px; width: 44px; }
    .nav {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        z-index: 1500;
        padding-top: 100px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    .nav.nav-open { transform: translateX(0); }
    /* Дополнительный крестик в меню не нужен — закрытие через анимацию бургера */
    .nav__close { display: none; }
    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .nav__link { font-size: 22px; }
    .phone-link { display: none; }
    .nav-overlay {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1400;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    .nav-overlay.active { opacity: 1; visibility: visible; }
}

/* ===== ANIMATIONS ===== */
.animate-in {
    opacity: 1;
    transform: translateY(0);
}
.catalog-card,
.feature-item,
.stage__card,
.contact-item,
.partner-card,
.cert-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Advantage cards: каскадная scroll-анимация.
   Скрытое состояние вешается JS-классом .reveal-init, поэтому
   без JavaScript контент остаётся видимым.
   Анимация проигрывается при каждом входе карточки в зону видимости. */
.advantage-card.reveal-init {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
}
.advantage-card.reveal-init.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Иконка: короткий выезд слева с поворотом и «пружинкой» */
.advantage-card.reveal-init .advantage-card__icon {
    transform: translateX(-28px) rotate(-90deg) scale(0.4);
    color: var(--yellow);
}
.advantage-card.reveal-init.animate-in .advantage-card__icon {
    animation: advantage-icon-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--reveal-delay, 0s) + 0.04s) both;
}

/* Заголовок: приезжает справа */
.advantage-card.reveal-init .advantage-card__title {
    opacity: 0;
    transform: translateX(14px);
}
.advantage-card.reveal-init.animate-in .advantage-card__title {
    animation: advantage-title-in 0.45s ease calc(var(--reveal-delay, 0s) + 0.1s) both;
}

/* Линия под заголовком прорисовывается слева направо */
.advantage-card.reveal-init .advantage-card__title::after {
    width: 0;
}
.advantage-card.reveal-init.animate-in .advantage-card__title::after {
    animation: advantage-line-in 0.4s ease calc(var(--reveal-delay, 0s) + 0.22s) both;
}

/* Текст: всплывает снизу */
.advantage-card.reveal-init .advantage-card__text {
    opacity: 0;
    transform: translateY(10px);
}
.advantage-card.reveal-init.animate-in .advantage-card__text {
    animation: advantage-text-in 0.45s ease calc(var(--reveal-delay, 0s) + 0.16s) both;
}

@keyframes advantage-icon-in {
    0%   { transform: translateX(-28px) rotate(-90deg) scale(0.4); color: var(--yellow); }
    55%  { transform: translateX(4px) rotate(8deg) scale(1.12);    color: var(--yellow); }
    100% { transform: translateX(0) rotate(0) scale(1);            color: var(--red); }
}
@keyframes advantage-title-in {
    from { opacity: 0; transform: translateX(14px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes advantage-line-in {
    from { width: 0; }
    to   { width: 100%; }
}
@keyframes advantage-text-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Каскад по колонкам (на ПК 2 колонки): равные шаги по 0.1s.
   На мобильных сетка в одну колонку и карточки появляются по одной при скролле,
   поэтому каскад там не нужен — задержки отключены (значение по умолчанию 0s). */
@media (min-width: 769px) {
    .advantage-card.reveal-init:nth-child(1) { --reveal-delay: 0s; }
    .advantage-card.reveal-init:nth-child(2) { --reveal-delay: 0.1s; }
    .advantage-card.reveal-init:nth-child(3) { --reveal-delay: 0.2s; }
    .advantage-card.reveal-init:nth-child(4) { --reveal-delay: 0.3s; }
}

/* На мобильных карточки «Преимущества» показываются сразу, без выплывания
   при прокрутке: анимации на телефоне тормозят страницу. Дочерние элементы
   возвращаем в конечное состояние (иконка, заголовок, линия, текст). */
@media (max-width: 768px) {
    .advantage-card.reveal-init,
    .advantage-card.reveal-init.animate-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .advantage-card.reveal-init .advantage-card__icon,
    .advantage-card.reveal-init.animate-in .advantage-card__icon {
        animation: none;
        transform: none;
        color: var(--red);
    }
    .advantage-card.reveal-init .advantage-card__title,
    .advantage-card.reveal-init.animate-in .advantage-card__title,
    .advantage-card.reveal-init .advantage-card__text,
    .advantage-card.reveal-init.animate-in .advantage-card__text {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .advantage-card.reveal-init .advantage-card__title::after,
    .advantage-card.reveal-init.animate-in .advantage-card__title::after {
        animation: none;
        width: 100%;
    }
}

/* Отраслевые плашки «Где применяются наши решения» — без scroll-анимации
   появления: видны сразу, при наведении слегка подсвечиваются жёлтым.
   На мобильных — две колонки + лёгкая анимация «дыхания» (см. RESPONSIVE). */

@media (prefers-reduced-motion: reduce) {
    .advantage-card.reveal-init,
    .advantage-card.reveal-init.animate-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .advantage-card.reveal-init .advantage-card__icon,
    .advantage-card.reveal-init.animate-in .advantage-card__icon {
        animation: none;
        transform: none;
        color: var(--red);
    }
    .advantage-card.reveal-init .advantage-card__title,
    .advantage-card.reveal-init.animate-in .advantage-card__title,
    .advantage-card.reveal-init .advantage-card__text,
    .advantage-card.reveal-init.animate-in .advantage-card__text {
        animation: none;
        transform: none;
        opacity: 1;
    }
    .advantage-card.reveal-init .advantage-card__title::after,
    .advantage-card.reveal-init.animate-in .advantage-card__title::after {
        animation: none;
        width: 100%;
    }

    /* Отраслевые плашки: мобильное «дыхание» отключено, но тап-вспышка
       (только смена цвета, без движения) остаётся как отклик на нажатие */
    .industry-card,
    .industry-card:nth-child(even) {
        animation: none !important;
    }
    .industry-card.tap-flash,
    .industry-card:nth-child(even).tap-flash {
        animation: industry-tap-flash 0.9s ease-out !important;
    }

    /* Раскрытие описания отрасли — без анимации. Селектор стрелки с тегом
       нужен, чтобы перебить базовое правило i.industry-card__arrow. */
    .industry-card__text,
    .industry-card i.industry-card__arrow {
        transition: none;
    }
}

/* ===== ACTIVE NAV LINK ===== */
.nav__link.active { color: var(--yellow); }
.nav__link.active::after { width: 100%; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .section { padding: 60px 0; }
    .section__title { font-size: 28px; }
    .hero__subtitle { font-size: 18px; }
    .hero__btns { flex-direction: column; align-items: stretch; }
    .about__compact, .contact__grid { grid-template-columns: 1fr; }
    .about__compact { flex-direction: column; }
    .contact__info { order: 2; }
    .contact__map { order: 1; }
    .stages__grid,
    .industry__grid, .footer__top { grid-template-columns: 1fr; }
    .partners__logo-cell img { max-width: 180px; max-height: 56px; }
    .partners__logo-grid { gap: 20px 28px; }
    .certificates__list { text-align: center; }
    /* Часы в контактах — только для ПК-версии */
    .contact__clocks { display: none; }
}

@media (max-width: 768px) {
    .section__title { font-size: 24px; }
    .hero { background: #000 url('../images/sections/02.webp') no-repeat 16.67% center / cover; }
    .hero::before {
        background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.85) 50%, rgba(0,0,0,0.4) 100%);
    }
    .hero__badge { font-size: 12px; padding: 6px 16px; }
    .hero__scroll { bottom: 18px; }
    .hero__scroll-arrow { width: 12px; height: 12px; }
    /* Кнопка «Смотреть продукцию» в Hero: на мобильных белая рамка и текст
       сливались с фоновой картинкой — добавляем полупрозрачную тёмную подложку.
       Дизайн и цвета кнопки оставляем как есть. */
    .hero__btns .btn--outline {
        background: rgba(0, 0, 0, 0.55);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        border-color: var(--red); /* красная рамка только у этой кнопки и только на мобильных */
    }
    .hero__btns .btn--outline:active {
        background: rgba(0, 0, 0, 0.25);
    }
    .advantages__grid { grid-template-columns: 1fr; }
    /* Отраслевые плашки — на мобильных в две колонки, компактные */
    .industry__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .industry-card {
        padding: 14px 8px;
        animation: industry-breathe 6s ease-in-out infinite;
    }
    .industry-card:nth-child(even) { animation-delay: -3s; }
    .industry-card i { font-size: 22px; margin-bottom: 6px; }
    .industry-card h3 { font-size: clamp(11px, 3.6vw, 13px); }
    /* Описание на мобильных — компактнее; рамка та же, ширина по плашке */
    .industry-card__text {
        max-height: 260px;
        padding: 8px 8px 14px;
    }
    .industry-card__text p { font-size: 12px; }
    .industry-card i.industry-card__arrow { top: 8px; right: 8px; font-size: 10px; }
    .about__compact { flex-direction: column; }
    .about__features { width: 100%; grid-template-columns: 1fr 1fr; }
    .about__features .feature-item { border-bottom: 1px solid var(--border); }
    .about__features .feature-item:nth-child(3),
    .about__features .feature-item:nth-child(4) { border-bottom: none; }
    .feature-item { text-align: center; }
    /* Слова в заголовках-плашках («Безопасность», «Эффективность» и т.д.) должны
       оставаться целыми — не переносим по буквам. На узких экранах уменьшаем
       внутренние отступы и размер шрифта, чтобы самое длинное слово
       помещалось в ячейку без разрыва. */
    .about__features .feature-item { padding: 18px 8px; }
    .feature-item h3 {
        font-size: clamp(14px, 4vw, 16px);
        word-break: normal;
        overflow-wrap: normal;
        hyphens: none;
    }
    .feature-item p {
        word-break: normal;
        overflow-wrap: normal;
        hyphens: none;
    }
    .footer__top { grid-template-columns: 1fr; }
    .btn { font-size: 14px; padding: 10px 20px; }
    .header__actions { display: flex; }
    .partners__logo-cell img { max-width: 160px; max-height: 48px; }
    .partners__logo-grid { gap: 16px 20px; }
    /* «Отзывы» и «Промо» — на мобильных ещё компактнее, полосы-заглушки в столбик */
    .reviews { padding: 28px 0; }
    .reviews .section__title { font-size: 21px; }
    .reviews .section__subtitle { font-size: 14px; }
    .reviews__notice, .promo__notice { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 18px; }
    .reviews__notice i, .promo__notice i { font-size: 22px; }
}

/* На ПК поднимаем hero-контент (фразу «Взрывозащищенные электронагреватели…») выше,
   чтобы текстовый блок оказался по центру экрана. Смещение пересчитано под
   уменьшенный логотип (620px): при старой высоте логотипа ~237px было −100px,
   при новой ~205px нужно −83px — тогда центр текста совпадает с центром экрана. */
@media (min-width: 1025px) {
    .hero__content { transform: translateY(-30px); }
}


/* ===== CATALOG LAYOUT ===== */
.catalog__layout {
    display: flex;
    gap: 40px;
}
.catalog__nav {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.catalog__content {
    flex: 1 1 0;
    min-width: 0;
    margin-left: 0;
}
.catalog__tab {
    background: var(--dark);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}
.catalog__tab:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.catalog__tab.active {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.catalog__tab i { font-size: 16px; }

.catalog__description {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.catalog__description h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--white);
}
.catalog__description .catalog__details-toggle {
    margin: 0;
}
.catalog__description p {
    font-size: 16px;
    color: var(--text-soft);
    line-height: 1.7;
}
.catalog__description-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.catalog__description-actions .catalog__details-toggle {
    margin: 0;
}
.catalog__description-actions .catalog__questionnaire-btn--mobile {
    display: none;
    margin: 0;
}

/* ===== CAROUSEL ===== */
.catalog__carousel {
    position: relative;
    margin-top: 30px;
}
.carousel__track {
    position: relative;
    height: 320px;
    overflow: hidden;
}
.carousel__items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    height: 100%;
    padding: 0 60px;
    box-sizing: border-box;
}
.carousel__item {
    opacity: 0.4;
    visibility: hidden;
    transition: all 0.5s ease;
    cursor: pointer;
    flex-shrink: 0;
    width: 30%;
    height: 280px;
    z-index: 1;
}
.carousel__item--prev {
    opacity: 1;
    visibility: visible;
    transform: scale(0.7);
    z-index: 2;
}
.carousel__item--active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    width: 40%;
    z-index: 10;
}
.carousel__item--next {
    opacity: 1;
    visibility: visible;
    transform: scale(0.7);
    z-index: 2;
}
.carousel__img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.carousel__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}
.carousel__img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(255, 43, 43, 0.4);
}
.carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--white);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
}
.carousel__nav:hover {
    background: var(--red);
    color: var(--white);
}
.carousel__nav--prev { left: 10px; }
.carousel__nav--next { right: 10px; }
.carousel__dots {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.carousel__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}
.carousel__dot.active,
.carousel__dot:hover {
    background: var(--yellow);
}

/* ===== CATALOG RESPONSIVE ===== */
@media (max-width: 1024px) {
    .carousel__item {
        width: 20%;
        height: 200px;
    }
    .carousel__item--active {
        width: 30%;
    }
    .carousel__items {
        gap: 15px;
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .catalog__nav .catalog__tab {
        font-size: 12px;
        padding: 10px 12px;
    }
    .carousel__item { width: 15%; height: 160px; }
    .carousel__item--active { width: 25%; }
    .carousel__track { height: 200px; }
    .carousel__items {
        padding: 0 20px;
    }
}
.lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px 32px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.lightbox--active {
    opacity: 1;
    visibility: visible;
}
.lightbox__content {
    max-width: 100vw;
    max-height: 100vh;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox__img {
    max-width: 96vw;
    max-height: 80vh;
    min-width: 0;
    min-height: 0;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
/* Одиночное изображение документа: вписывается в окно целиком, без обрезания.
   Селектор «>» не задевает многостраничные документы (листы внутри .lightbox__pages). */
.lightbox__img > img {
    max-width: 96vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}
.lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 20;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.lightbox__close:hover { color: var(--yellow); transform: rotate(90deg); }

/* ===== LIGHTBOX: многостраничные документы ===== */
.lightbox__img--pages {
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    max-width: 98vw;
    max-height: 98vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox__pages {
    max-width: 98vw;
    max-height: 98vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--yellow) rgba(255,255,255,0.15);
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    padding: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    background: #000;
}
.lightbox__pages::-webkit-scrollbar { width: 10px; }
.lightbox__pages::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); border-radius: 10px; }
.lightbox__pages::-webkit-scrollbar-thumb { background: var(--yellow); border-radius: 10px; }
.lightbox__page {
    max-width: 96vw;
    max-height: 96vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: block;
}

/* ===== LIGHTBOX: сертификаты — единая высота документа =====
   Класс lightbox--cert добавляется при открытии сертификата (одно- и
   многостраничного), чтобы все документы отображались одинаковой высотой
   на ПК и на мобильных. */
.lightbox--cert .lightbox__img {
    max-height: var(--lightbox-cert-height);
}
.lightbox--cert .lightbox__img > img {
    max-height: var(--lightbox-cert-height);
    height: auto;
    width: auto;
    max-width: 96vw;
}
.lightbox--cert .lightbox__img--pages {
    max-height: calc(var(--lightbox-cert-height) + 40px);
}
.lightbox--cert .lightbox__pages {
    max-height: calc(var(--lightbox-cert-height) + 40px);
}
.lightbox--cert .lightbox__page {
    max-height: var(--lightbox-cert-height);
    height: auto;
    width: auto;
    max-width: 96vw;
}

/* Спиннер в лайтбоксе: тот же анимированный кружок, что и в галерее каталога */
.lightbox__img .gallery__spinner {
    width: 64px;
    height: 64px;
    border-width: 5px;
    margin: 0 auto;
}

/* На мобильных: отступ сверху/снизу, чтобы крестик закрытия был всегда виден */
@media (max-width: 768px) {
    .lightbox {
        --lightbox-cert-height: calc(100vh - 180px);
        --lightbox-cert-height: calc(100dvh - 180px);
        padding: 84px 12px 24px;
    }
    .lightbox__close {
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* ===== CATALOG RESPONSIVE ===== */
@media (max-width: 1024px) {
    .catalog__layout {
        flex-wrap: wrap;
    }
    .catalog__nav {
        flex: 0 0 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .catalog__content {
        flex: 0 0 100%;
        margin-left: 0;
    }
    .catalog__nav .catalog__tab {
        flex: 1;
        min-width: 140px;
    }
    .carousel__nav--prev { left: 10px; }
    .carousel__nav--next { right: 10px; }
}

@media (max-width: 768px) {
    .catalog__nav .catalog__tab {
        font-size: 12px;
        padding: 10px 12px;
    }
    .carousel__item { width: 70%; height: 200px; }
    .carousel__item--prev { left: 15%; }
    .carousel__item--next { left: 85%; }
    .carousel__track { height: 200px; }
}



/* ===== CATALOG GALLERY (крупное фото + сетка миниатюр) ===== */
.catalog__gallery {
    margin-top: 30px;
    transition: opacity 0.3s ease;
}
.catalog__gallery.gallery-hidden {
    display: none;
}
.catalog__gallery.gallery-fading {
    opacity: 0;
}
.gallery__main {
    position: relative;
    margin: 0;
    /* растягивается на всю ширину правой колонки каталога */
}
.gallery__main-img {
    position: relative;
    height: 400px;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}
.gallery__main-img img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
/* Пока фото грузится — картинка скрыта, поверх неё по центру крутится спиннер */
.gallery__main-img img.gallery__img--pending {
    opacity: 0;
}
.gallery__main-img .gallery__spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    /* Отдельная анимация: обычная gallery-spin переопределяла бы transform
       на rotate() и кружок «уезжал» бы из центра блока. Здесь центрирующий
       translate сохраняется на всех кадрах вращения. */
    animation: gallery-spin-center 0.8s linear infinite;
}
.gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    background: rgba(17, 17, 17, 0.85);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--white);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.gallery__nav:hover {
    background: var(--red);
    color: var(--white);
}
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
/* Миниатюры всегда одной строкой: делят ширину поровну и сжимаются,
   если фотографий много (ограничение ширины сверху — для малого кол-ва) */
.gallery__strip {
    position: relative;
    margin: 18px 0 0;
    /* миниатюры — на всю ширину правой колонки каталога */
}
.gallery__grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--yellow) rgba(255, 255, 255, 0.15);
    padding: 2px 2px 6px;
}
.gallery__grid::-webkit-scrollbar { height: 8px; }
.gallery__grid::-webkit-scrollbar-thumb { background: var(--yellow); border-radius: 8px; }
.gallery__grid::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1); border-radius: 8px; }
.gallery__thumb {
    flex: 0 0 120px;
    width: 120px;
    aspect-ratio: 3 / 2;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--dark);
    opacity: 0.85;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}
.gallery__thumb:hover {
    transform: translateY(-3px);
    border-color: var(--yellow);
    opacity: 1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.gallery__thumb--active,
.gallery__thumb--active:hover {
    border-color: var(--red);
    opacity: 1;
}
.gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery__thumb img.gallery__thumb-img--pending {
    opacity: 0;
}
.gallery__strip-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.85);
    border: 1px solid var(--border);
    color: var(--white);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.gallery__strip-btn:hover {
    background: var(--red);
    color: var(--white);
}
.gallery__strip-btn:disabled {
    opacity: 0.35;
    cursor: default;
    background: rgba(17, 17, 17, 0.5);
}
.gallery__strip-btn--prev { left: -4px; }
.gallery__strip-btn--next { right: -4px; }

@media (max-width: 768px) {
    .gallery__main-img { height: 240px; }
    .gallery__nav { width: 36px; height: 36px; font-size: 14px; }
    .gallery__nav--prev { left: 8px; }
    .gallery__nav--next { right: 8px; }
    .gallery__grid { gap: 6px; }
    .gallery__thumb { flex-basis: 88px; width: 88px; border-width: 1px; }
    .gallery__strip-btn { width: 26px; height: 26px; font-size: 12px; }
    .gallery__strip-btn--prev { left: -2px; }
    .gallery__strip-btn--next { right: -2px; }
}

/* ===== GALLERY SPINNER (пока фото загружаются) ===== */
.gallery__spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--red);
    border-radius: 50%;
    box-sizing: border-box;
    animation: gallery-spin 0.8s linear infinite;
}
@keyframes gallery-spin {
    to { transform: rotate(360deg); }
}

/* Вращение спиннера, центрированного через translate(-50%, -50%):
   без translate в кадрах кружок «съезжает» из центра блока. */
@keyframes gallery-spin-center {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== CATALOG DETAILS (Подробнее) ===== */
.catalog__details-toggle {
    display: block;
    margin: 24px auto 0;
    background: var(--yellow);
    border: none;
    color: var(--black);
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
}
.catalog__details-toggle:hover {
    background: #e6c200;
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.45), 0 0 18px rgba(255, 215, 0, 0.4);
}
.catalog__details-toggle i {
    font-size: 14px;
    transition: transform 0.3s ease;
}
.catalog__details-toggle.active i {
    transform: rotate(180deg);
}

/* ===== CATALOG ACTIONS (Скачать опросный лист + Подробнее) ===== */
.catalog__actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.catalog__questionnaire-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 2px solid var(--red);
    color: var(--red);
    padding: 12px 26px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-decoration: none;
}
.catalog__questionnaire-btn:hover {
    background: var(--red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 37, 61, 0.5);
}
.catalog__questionnaire-btn i {
    font-size: 15px;
}
/* Кнопка печати в каталоге — только значок принтера: жёлтый, с подсветкой.
   Два класса в селекторе, чтобы перебить padding из .catalog__details-tabs .catalog__questionnaire-btn */
.catalog__details-tabs .catalog__questionnaire-btn.catalog__print-btn {
    width: 50px;
    height: 50px;
    padding: 0;
    /* margin-left: auto из правила ниже растянул бы кнопку от «Скачать опросный лист»:
       сбрасываем, чтобы значок стоял сразу за кнопкой */
    margin-left: 0;
    flex: 0 0 auto;
    justify-content: center;
    border-radius: 20%;
    border-color: var(--yellow);
    color: var(--yellow);
    /* Лёгкая жёлтая подсветка вместо полной заливки — значок остаётся видимым */
    background: rgba(255, 215, 0, 0.12);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.35), inset 0 0 8px rgba(255, 215, 0, 0.15);
}
.catalog__print-btn i {
    font-size: 18px;
    color: inherit;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.85);
    transition: text-shadow 0.3s ease, color 0.3s ease;
}
/* Ховер: жёлтая заливка и чёрный значок. Цепочка из трёх классов в селекторе
   обязательна — базовое правило выше имеет специфичность (0,3,0) и иначе
   оставило бы значок жёлтым (жёлтое на жёлтом = значок не виден) */
.catalog__details-tabs .catalog__questionnaire-btn.catalog__print-btn:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(255, 215, 0, 0.85);
}
.catalog__details-tabs .catalog__questionnaire-btn.catalog__print-btn:hover i {
    color: var(--black);
    text-shadow: none;
}

/* Диагностика печати */
.catalog__print-diag {
    margin: 14px 0 0;
    padding: 12px 14px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-soft);
}
.catalog__print-diag[hidden] { display: none; }
.catalog__print-diag-title {
    font-weight: 700;
    color: var(--yellow);
    margin-bottom: 8px;
    font-size: 14px;
}
.catalog__print-diag-title i { margin-right: 6px; }
.catalog__print-diag-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 3px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.catalog__print-diag-row span:first-child { color: #999; }
.catalog__print-diag-row span:last-child { color: #fff; font-family: monospace; word-break: break-all; text-align: right; }
.catalog__print-diag-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--yellow);
    text-decoration: underline;
    font-weight: 600;
}
.catalog__print-diag-link:hover { color: #fff; }

.catalog__details-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    margin-top: 0;
}
.catalog__details-panel.open {
    max-height: 2000px;
    opacity: 1;
    margin-top: 20px;
}
.catalog__details-panel > * {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.catalog__details-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 20px !important;
    max-width: none !important;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
}
.catalog__details-tabs .catalog__questionnaire-btn {
    margin-left: auto;
    padding: 10px 20px;
}
.catalog__details-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}
.catalog__details-tab:hover {
    color: var(--white);
}
.catalog__details-tab.active {
    color: var(--red);
}
.catalog__details-tab.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--red);
}

.catalog__details-content {
    position: relative;
}
.catalog__details-section {
    display: none;
    animation: fadeIn 0.3s ease;
}
.catalog__details-section.catalog__details-section--active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.catalog__details-section p {
    font-size: 15px;
    color: var(--text-soft);
    line-height: 1.8;
    margin-bottom: 12px;
}
.catalog__details-section p:last-child {
    margin-bottom: 0;
}

/* Таблица характеристик */
.catalog__specs-table {
    width: 100%;
    border-collapse: collapse;
}
.catalog__specs-table tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}
.catalog__specs-table tr:hover {
    background: rgba(255, 43, 43, 0.05);
}
.catalog__specs-table td {
    padding: 14px 16px;
    font-size: 14px;
    vertical-align: top;
    line-height: 1.6;
}
.catalog__specs-table td:first-child {
    color: var(--text-muted);
    width: 40%;
    font-weight: 500;
    padding-right: 20px;
}
.catalog__specs-table td:last-child {
    color: var(--text-soft);
}

@media (max-width: 768px) {
    .catalog__description {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .catalog__description-actions {
        justify-content: center;
    }
    .catalog__description-actions .catalog__questionnaire-btn--mobile {
        display: none;
    }
    /* Печать доступна только на ПК: на мобильных кнопку-значок скрываем.
       Два класса в селекторе — иначе правило ниже (.catalog__details-tabs
       .catalog__questionnaire-btn с display:inline-flex) перебьёт скрытие. */
    .catalog__details-tabs .catalog__questionnaire-btn.catalog__print-btn {
        display: none;
    }
    /* Кнопка «Скачать опросный лист» в раскрытой панели «Подробнее» на мобильных
       скрыта: она мешает читать описание. Опросные листы остаются доступны
       в блоке «Опросные листы» футера (ссылки обновляет js/main.js).
       Селектор с id перебивает display из правила ниже. */
    .catalog__details-tabs #catalogQuestionnaireBtn { display: none; }
    .catalog__details-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "t1 t2";
        gap: 10px;
        margin: 0 0 16px !important;
        border-bottom: none;
        padding-bottom: 0;
    }
    .catalog__details-tab[data-tab="desc"] { grid-area: t1; }
    .catalog__details-tab[data-tab="specs"] { grid-area: t2; }
    .catalog__details-tab {
        text-align: center;
        padding: 12px 10px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: rgba(255,255,255,0.03);
        font-size: 14px;
    }
    .catalog__details-tab.active {
        background: rgba(255, 43, 43, 0.12);
        border-color: var(--red);
        color: var(--red);
    }
    .catalog__details-tab.active::after {
        display: none;
    }
    .catalog__specs-table td {
        word-break: keep-all;
    }
    .catalog__specs-table td:first-child {
        color: var(--red);
    }
}

/* ===== PROMO ===== */
.promo {
    background: var(--dark);
}
/* Полоса-заглушка промо: фон секции #111, поэтому сама полоса — чёрная.
   hidden-сброс нужен, т.к. у полосы и у сетки задан display. */
.promo__notice {
    background: #000;
}
.promo__notice[hidden],
.promo__grid[hidden] { display: none; }
.promo__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}
.promo__more {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 28px auto 0;
    padding: 14px 30px;
    background: var(--yellow);
    color: var(--black);
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
}
.promo__more:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.45), 0 0 18px rgba(255, 215, 0, 0.4);
}
.promo__more i {
    font-size: 14px;
    transition: transform 0.3s ease;
}
.promo__more.promo__more--expanded i {
    transform: rotate(180deg);
}
.promo__video {
    min-width: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
    transition: all 0.3s ease;
}
.promo__video:hover {
    border-color: var(--yellow);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}
.promo__video video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #000;
}
.promo__video-placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #000;
    background-image: radial-gradient(circle, #1a1a1a 0%, #000 75%);
    color: var(--text-muted);
    padding: 16px;
    text-align: center;
}
.promo__video-placeholder i {
    font-size: 34px;
    color: var(--red);
    opacity: 0.7;
}
.promo__video-placeholder span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}
.promo__video-placeholder small {
    font-size: 12px;
    color: var(--text-muted);
}
.promo__video-title {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    text-align: center;
    overflow-wrap: anywhere;
}

/* ===== ПРОМО НА МОБИЛЬНЫХ: «строчки-кнопки-плашки» с названием ролика.
   Кнопка раскрывает вниз панель с видео; где видео нет — «В разработке».
   На ПК кнопка скрыта, панель с видео открыта постоянно (как раньше). */
.promo__trigger {
    display: none;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: var(--dark);
    border: none;
    border-radius: 12px;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}
.promo__trigger:hover { background: #1c1c1c; }
.promo__trigger-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.promo__trigger-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: break-word;
}
.promo__trigger-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: #222;
    border-radius: 20px;
    padding: 4px 10px;
    white-space: nowrap;
}
.promo__trigger-badge:empty { display: none; }
.promo__trigger-chevron {
    flex-shrink: 0;
    color: var(--yellow);
    font-size: 13px;
    transition: transform 0.3s ease;
}
.promo__item.is-open .promo__trigger-chevron {
    transform: rotate(180deg);
}
.promo__panel { display: block; }

@media (max-width: 768px) {
    .promo__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .promo__item {
        background: #000;
        border: 1px solid var(--border);
        border-radius: 12px;
        overflow: hidden;
    }
    .promo__item:hover {
        transform: none;
        box-shadow: none;
    }
    .promo__trigger { display: flex; }
    .promo__panel {
        display: none;
        border-top: 1px solid var(--border);
    }
    .promo__item.is-open .promo__panel { display: block; }
    .promo__video-title { display: none; }
    .promo__grid.promo__grid--limited:not(.promo__grid--expanded) .promo__video:nth-child(n+5) {
        display: none;
    }
    .promo__more.promo__more--visible {
        display: flex;
    }
}

/* ===== POLICY MODAL (Политика конфиденциальности) ===== */
.policy-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    background: rgba(0, 0, 0, 0.75);
    overflow-y: auto;
}
.policy-modal.open {
    display: flex;
    animation: policyBackdropFade 1.45s ease;
}
.policy-modal__box {
    background: var(--dark, #0f0f0f);
    border: 1px solid var(--border, #2a2a2a);
    border-radius: 14px;
    max-width: 720px;
    width: 100%;
    padding: 28px 30px 32px;
    position: relative;
    animation: policyModalUp 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.policy-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border, #2a2a2a);
    background: transparent;
    color: var(--white, #fff);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.policy-modal__close:hover {
    background: var(--red, #ff253d);
    border-color: var(--red, #ff253d);
}
.policy-modal__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--white, #fff);
    margin: 0 0 18px;
    padding-right: 40px;
}
.policy-modal__content {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.7;
    max-height: 60vh;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.policy-modal__message {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Модалка политики всплывает снизу вверх, подложка плавно затемняется.
   Отдельные keyframes: общий fadeInUp завязан на left:50% hero-индикатора и
   без позиционирования сдвигал бы окно вбок. */
@keyframes policyBackdropFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes policyModalUp {
    from { opacity: 0; transform: translateY(100vh); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== DAYS CALCULATOR MODAL (Калькулятор дней) ===== */
.calc-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    background: rgba(0, 0, 0, 0.75);
    overflow-y: auto;
}
.calc-modal.open {
    display: flex;
    animation: policyBackdropFade 1.45s ease;
}
.calc-modal__box {
    background: var(--dark, #111111);
    border: 1px solid var(--border, #222222);
    border-radius: 14px;
    max-width: 560px;
    width: 100%;
    padding: 28px 30px 32px;
    position: relative;
    animation: policyModalUp 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.calc-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border, #222222);
    background: transparent;
    color: var(--white, #fff);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.calc-modal__close:hover {
    background: var(--red, #FF2B2B);
    border-color: var(--red, #FF2B2B);
}
.calc-modal__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--white, #fff);
    margin: 0 0 18px;
    padding-right: 40px;
}
.calc-modal__title i {
    color: var(--red, #FF2B2B);
    font-size: 18px;
}
.calc-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border, #222222);
}
.calc-tab {
    flex: 1 1 auto;
    background: transparent;
    border: 1px solid var(--border, #222222);
    border-radius: 10px;
    color: var(--light-gray, #cccccc);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}
.calc-tab:hover {
    color: var(--white, #fff);
    border-color: var(--gray, #444444);
}
.calc-tab.is-active {
    background: var(--red, #FF2B2B);
    border-color: var(--red, #FF2B2B);
    color: var(--white, #fff);
}
.calc-panel {
    display: none;
}
.calc-panel.is-active {
    display: block;
}
.calc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.calc-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--light-gray, #cccccc);
    letter-spacing: 0.3px;
}
.calc-field-row {
    display: flex;
    gap: 10px;
}
.calc-field-row .calc-field {
    flex: 1 1 auto;
    min-width: 0;
}
.calc-modal input[type="date"],
.calc-modal input[type="number"] {
    background: #0a0a0a;
    border: 1px solid var(--border, #222222);
    border-radius: 10px;
    color: var(--white, #fff);
    font-size: 14px;
    font-family: inherit;
    padding: 10px 12px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}
.calc-modal input[type="date"]:focus,
.calc-modal input[type="number"]:focus {
    outline: none;
    border-color: var(--red, #FF2B2B);
}
.calc-modal input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}
.calc-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--light-gray, #cccccc);
    cursor: pointer;
    user-select: none;
}
.calc-check input {
    accent-color: var(--red, #FF2B2B);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.calc-btn {
    display: block;
    width: 100%;
    background: var(--red, #FF2B2B);
    color: var(--white, #fff);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.calc-btn:hover {
    background: #e02222;
    transform: translateY(-1px);
}
.calc-result {
    margin-top: 18px;
    padding: 14px 16px;
    background: #0a0a0a;
    border: 1px solid var(--border, #222222);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-soft);
}
.calc-result[hidden] { display: none; }
.calc-result__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--white, #fff);
    margin-bottom: 10px;
}
.calc-result__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 5px 0;
    border-bottom: 1px dashed var(--border, #222222);
}
.calc-result__row:last-child {
    border-bottom: none;
}
.calc-result__label {
    color: var(--light-gray, #cccccc);
}
.calc-result__value {
    color: var(--white, #fff);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: right;
}
.calc-result__value b {
    color: var(--red, #FF2B2B);
}

/* ===== REQUISITES (Реквизиты в футере) ===== */
.req-item {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 8px 16px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border, #222222);
}
.req-item:last-child {
    border-bottom: none;
}
.req-item__label {
    color: var(--light-gray, #cccccc);
    font-size: 13px;
    line-height: 1.45;
}
.req-item__value {
    color: var(--white, #fff);
    font-weight: 600;
    word-break: break-word;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 520px) {
    .req-item {
        grid-template-columns: 1fr;
        gap: 2px 0;
    }
}


/* ===== BACK TO TOP (ПК-версия) ===== */
.to-top {
    position: fixed;
    right: 60px;
    bottom: 60px;
    z-index: 1200; /* выше контента, но ниже лайтбокса (3000) и модалки политики (2500) */
    width: 60px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 12px;
    background: var(--red);
    color: var(--white);
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(255, 43, 43, 0.35);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease,
                background 0.3s ease, box-shadow 0.3s ease;
}

.to-top__text {
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.02em;
}

/* Плавное появление, как только страница прокручена достаточно вниз */
.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    background: #ff4d4d;
    box-shadow: 0 0 0 1px rgba(255, 80, 80, 0.55),
                0 0 18px rgba(255, 43, 43, 0.6),
                0 0 36px rgba(255, 43, 43, 0.3);
}

/* Стрелка слегка «подпрыгивает», приглашая нажать */
.to-top:hover i {
    animation: to-top-bounce 0.7s ease infinite;
}
@keyframes to-top-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* Кнопка «Наверх» — только для ПК-версии */
@media (max-width: 1024px) {
    .to-top { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .to-top { transition: none; }
    .to-top:hover i { animation: none; }
}

/* ===== GEOGRAPHY / SUPPLY MAP (раздел «О компании») ===== */
.geo__plaque {
    position: relative;
    margin-top: 24px;
}
.geo__map {
    position: relative;
    width: 100%;
    aspect-ratio: 1000 / 480;
}
.geo__map .geo-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}
.geo__map .geo-land {
    fill: none;
    stroke: rgba(120, 140, 200, 0.7);
    stroke-width: 1.4;
    stroke-linejoin: round;
}
/* Базовая линия — тонкая красная, ширина не меняется */
.geo__map .geo-route {
    fill: none;
    stroke: rgba(200, 30, 30, 0.3);
    stroke-width: 1.5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 1px rgba(200, 30, 30, 0.15));
    opacity: 0;
    transition: opacity 0.6s ease var(--d, 0s), filter 0.3s ease;
}
.geo__map .geo-route.is-hot {
    stroke: rgba(230, 40, 40, 0.6);
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(220, 30, 30, 0.35));
}
.geo__plaque.geo-active .geo-route { opacity: 1; }

/* Красное свечение в начале линии (у Перми) — ширина не меняется */
.geo__map .geo-route-start {
    fill: none;
    stroke: url(#routeStartGrad);
    stroke-width: 1.5;
    stroke-linecap: round;
    opacity: 0;
    filter: drop-shadow(0 0 8px rgba(255, 40, 40, 0.5));
    transition: opacity 0.6s ease var(--d, 0s), filter 0.3s ease;
    animation: glow-breathe 2s ease-in-out infinite;
}
.geo__map .geo-route-start.is-hot {
    filter: drop-shadow(0 0 14px rgba(255, 50, 50, 0.8));
}
.geo__plaque.geo-active .geo-route-start { opacity: 1; }

@keyframes glow-breathe {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(255, 40, 40, 0.4)); }
    50%      { filter: drop-shadow(0 0 12px rgba(255, 50, 50, 0.7)); }
}

/* Бегущий импульс яркости (той же ширины, что и линия) */
.geo__map .geo-route-flow {
    fill: none;
    stroke: #ff3333;
    stroke-width: 1.5;
    stroke-linecap: butt;
    opacity: 0;
    filter: drop-shadow(0 0 4px rgba(255, 40, 40, 0.5)) drop-shadow(0 0 10px rgba(255, 30, 30, 0.2));
    transition: opacity 0.6s ease var(--d, 0s);
    animation: geo-flow var(--flow-time, 2s) linear infinite;
    animation-delay: var(--d, 0s);
}
@keyframes geo-flow {
    to { stroke-dashoffset: calc(-1 * var(--flow-gap, 1000px)); }
}
.geo__plaque.geo-active .geo-route-flow { opacity: 1; }

.geo__hint {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 15px;
    color: var(--light-gray);
    transition: opacity 0.4s ease;
}
.geo__hint.is-hidden { opacity: 0; pointer-events: none; }
.geo__hint--error i { margin-right: 8px; color: var(--red); }
/* Точки-маркеры поверх SVG (в % от .geo__map) */
.geo__map .geo-point {
    position: absolute;
    z-index: 20;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: var(--red);
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px rgba(255, 43, 43, 0.28), 0 0 14px rgba(255, 43, 43, 0.8);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.3s ease, background 0.3s ease;
}
.geo__map .geo-point::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 43, 43, 0.65);
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
    animation: geo-ping 2.2s ease-out infinite;
}
.geo__map .geo-point.is-hot,
.geo__map .geo-point:hover {
    background: #fff;
    transform: scale(1.35);
}
.geo__map .geo-point--base {
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    background: var(--yellow);
    border-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.3), 0 0 18px rgba(255, 215, 0, 0.9);
    z-index: 21;
}
.geo__map .geo-point--base::after {
    width: 18px;
    height: 18px;
    border-color: rgba(255, 215, 0, 0.7);
    animation-name: geo-ping-gold;
}
@keyframes geo-ping {
    0%   { transform: translate(-50%, -50%) scale(0.7); opacity: 0.95; }
    70%  { opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(3.2); opacity: 0; }
}
@keyframes geo-ping-gold {
    0%   { transform: translate(-50%, -50%) scale(0.7); opacity: 0.95; }
    70%  { opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(2.8); opacity: 0; }
}
/* Подсветка при наведении: гасим остальные маркеры */
.geo__plaque.has-hot .geo-point:not(.is-hot) { opacity: 0.35; }
.geo__plaque.has-hot .geo-point--base:not(.is-hot) { opacity: 1; }

/* Подпись «Пермь» рядом с базовым маркером */
.geo-base-tag {
    position: absolute;
    z-index: 22;
    transform: translate(-50%, -62px);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #e8590c, #ff6b35);
    padding: 6px 16px 6px 14px;
    border-radius: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 16px rgba(255, 107, 53, 0.5), 0 0 0 3px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.3s ease;
}
.geo__plaque.geo-active .geo-base-tag {
    opacity: 1;
}
/* Стрелочка-указатель у подписи «Пермь» */
.geo-base-tag::after {
    content: "▼";
    position: absolute;
    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);
    font-size: 12px;
    color: #ff6b35;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

/* Появление маркеров при прокрутке */
.geo__plaque.geo-active .geo-point { opacity: 1; }

@media (max-width: 768px) {
    .geo__plaque { padding: 8px; }
    .about .geo__plaque { margin-top: 16px; }
    /* Точки чуть меньше и с более лёгким свечением, чтобы не сливались */
    .geo__map .geo-point {
        width: 7px;
        height: 7px;
        margin: -3.5px 0 0 -3.5px;
        border-width: 1.5px;
        box-shadow: 0 0 0 2px rgba(255, 43, 43, 0.2), 0 0 6px rgba(255, 43, 43, 0.45);
    }
    /* Мигающие красные кольца вокруг городов убираем (на маленьком экране сливаются) */
    .geo__map .geo-point:not(.geo-point--base)::after { display: none; }
    .geo__map .geo-point--base {
        width: 12px;
        height: 12px;
        margin: -6px 0 0 -6px;
        box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.25), 0 0 8px rgba(255, 215, 0, 0.55);
    }
    /* Жёлтое кольцо базовой точки тоже уменьшаем под размер маркера */
    .geo__map .geo-point--base::after { width: 12px; height: 12px; }
    .geo-base-tag { font-size: 11px; padding: 4px 12px 4px 10px; transform: translate(-50%, -52px); }
    .geo-base-tag::after { font-size: 10px; bottom: -12px; }
}
@media (max-width: 480px) {
    .geo__map .geo-point { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-width: 1px; }
    .geo__map .geo-point--base { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
    .geo__map .geo-point--base::after { width: 10px; height: 10px; }
    .geo-base-tag { font-size: 10px; padding: 3px 10px 3px 8px; transform: translate(-50%, -44px); }
    .geo-base-tag::after { font-size: 8px; bottom: -10px; }
}
@media (prefers-reduced-motion: reduce) {
    .geo__map .geo-route-flow { animation: none !important; }
    .geo__map .geo-route { opacity: 1; stroke: rgba(200, 30, 30, 0.5); }
    .geo__map .geo-route-start { opacity: 1; stroke: #ff3333; stroke-width: 1.5; filter: none; animation: none; }
    .geo__map .geo-point::after { animation: none; }
    .geo__map .geo-point { opacity: 1; }
    .geo-base-tag { opacity: 1; }
}

/* ===== ЛЁГКИЙ РЕЖИМ КАРТЫ НА МОБИЛЬНЫХ =====
   На телефонах карта строится статичной: анимации здесь не нужны, а именно
   они тормозят страницу (перерисовка фильтров и stroke-dashoffset на каждой
   линии). Бегущие импульсы и свечение у Перми в этом режиме JS вообще не
   создаёт (см. liteMode в js/main.js), поэтому их принудительно прячем —
   так карта выглядит одинаково, даже если разметка пришла со старого кэша. */
@media (max-width: 768px) {
    .geo__map .geo-route-flow,
    .geo__map .geo-route-start { display: none; }

    /* Линии и маркеры видны сразу, без проявления при прокрутке и задержек.
       Селекторы с .geo__plaque нужны, чтобы перебить
       «.geo__plaque.geo-active .geo-route { opacity: 1 }» и т.п. */
    .geo__plaque .geo__map .geo-route,
    .geo__plaque .geo__map .geo-point,
    .geo__plaque .geo-base-tag {
        opacity: 1;
        transition: none;
        animation: none;
    }
    .geo__plaque .geo__map .geo-route {
        stroke: rgba(200, 30, 30, 0.45);
        filter: none;
    }
    /* Мигающие кольца вокруг маркеров отключаем — остаются только точки */
    .geo__map .geo-point::after,
    .geo__map .geo-point--base::after {
        animation: none;
        display: none;
    }
    .geo__map .geo-point {
        filter: none;
        transition: none;
    }
}

.hero:not(.animation-in-view) :is(.hero__bg-item, .hero__scroll-arrow),
.industry__grid:not(.animation-in-view) .industry-card,
.geo__map:not(.animation-in-view) :is(.geo-route-start, .geo-route-flow),
.geo__map:not(.animation-in-view) .geo-point::after,
.animation-tab-hidden :is(.hero__bg-item, .hero__scroll-arrow, .industry-card, .geo-route-start, .geo-route-flow),
.animation-tab-hidden .geo-point::after {
    animation-play-state: paused;
}
