/* «Армейская мебель» (раздел 18202): карточки «Наши преимущества» в тёмной шапке, подзаголовки текста, FAQ и форма. Подключается из show_in_header только для этого раздела. Перенесено с /test/ 11.2026 */
:root {
    --army-g: #296D1F;
    --army-g-light: #8fd17f;
    --army-ink: #171A1F;
    --army-ink-2: #4a4f57;
    --army-line: #e2e5e9;
    --army-r: 12px;
    /* как на главной (main-test.css, .nm) */
    --army-g-home: #2d6a2d;
    --army-g-soft: #eaf2e9;
    --army-paper: #f5f7f4;
    --army-home-line: #e2e8e1;
    --army-r-md: 16px;
    --army-r-lg: 24px;
}

/* Преимущества: 5 × 2 на широком экране, лента с прокруткой вбок на телефоне */
.army-adv { margin: 28px 0 32px; max-width: 1320px; }
.header__catalog .army-adv__title { margin: 0 0 16px; color: #fff; font-family: var(--main-font, "Montserrat", sans-serif); font-size: 22px; font-weight: 600; line-height: 1.3; }
.army-adv__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.army-adv__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 16px 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--army-r);
    background: rgba(10, 12, 10, .78);
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    line-height: 1.45;
}
/* Иконка — белая линия, как у подразделов под блоком (Кровати, Столы…) */
.army-adv__ico { width: 32px; height: 32px; margin-bottom: 8px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.army-adv__item strong { color: #fff; font-size: 16px; font-weight: 600; line-height: 1.3; }

@media (max-width: 1199px) {
    .army-adv__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* 10 карточек: 5 рядов по 2, без одинокой последней */
}
@media (max-width: 767px) {
    .army-adv { margin: 20px 0 24px; }
    .header__catalog .army-adv__title { font-size: 19px; margin-bottom: 12px; }
    .army-adv__list {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 72%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-bottom: 2px;
        align-items: start;
    }
    .army-adv__list::-webkit-scrollbar { display: none; }
    .army-adv__item { scroll-snap-align: start; padding: 16px 14px 16px; }
    .army-adv__ico { width: 28px; height: 28px; }
}

/* Текст под каталогом: подзаголовки H2 по ТЗ */
.catalog-description h2 { margin: 36px 0 14px; color: var(--army-ink); font-size: 24px; font-weight: 600; line-height: 1.3; }
.catalog-description h2:first-child { margin-top: 0; }
.catalog-description a { color: var(--army-g); text-decoration: underline; text-underline-offset: 2px; }
.catalog-description a:hover { text-decoration: none; }

/* FAQ перед формой заявки — как на главной (.nm-faq): карточки с плюсом в зелёном круге */
.army-faq { margin: 48px 0 8px; }
.army-faq h2 { margin: 0; color: var(--army-ink); font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.army-faq__list { display: grid; gap: 10px; margin-top: 24px; max-width: 980px; }
.army-faq__item { background: #fff; border: 1px solid var(--army-home-line); border-radius: var(--army-r-md); transition: border-color .2s; }
.army-faq__item[open] { border-color: rgba(45, 106, 45, .45); }
.army-faq__item summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 24px; color: var(--army-ink); font-size: 18px; line-height: 1.35; font-weight: 600;
}
.army-faq__item summary::-webkit-details-marker { display: none; }
.army-faq__item summary::after {
    content: ""; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--army-g-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d6a2d' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
    transition: transform .25s;
}
.army-faq__item[open] summary::after { transform: rotate(45deg); }
.army-faq__item summary:focus-visible { outline: 2px solid var(--army-g-home); outline-offset: 3px; border-radius: var(--army-r-md); }
.army-faq__item p { margin: 0; padding: 0 24px 22px; max-width: 80ch; color: rgba(23, 26, 31, .66); font-size: 16px; line-height: 1.6; }
.army-faq__item p a { color: var(--army-g-home); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 767px) {
    .catalog-description h2 { font-size: 20px; }
    .army-faq__item summary { font-size: 16px; padding: 16px 18px; }
    .army-faq__item p { padding: 0 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .army-faq__item, .army-faq__item summary::after, .consultation-form .send { transition: none; }
}

/* Форма «Требуется коммерческое предложение…» — в стиле формы на главной (.nm-form-wrap): белая карточка, поля 56 px, зелёная кнопка */
.consultation-form {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    padding: clamp(22px, 3vw, 36px);
    background: #fff;
    border: 1px solid var(--army-home-line);
    border-radius: var(--army-r-lg);
    box-shadow: 0 30px 60px -40px rgba(23, 26, 31, .35);
    color: var(--army-ink);
}
.consultation-form h3 { margin: 0 0 12px !important; font-size: clamp(22px, 2.2vw, 28px); font-weight: 700 !important; line-height: 1.2; text-transform: none !important; letter-spacing: -.01em; }
.consultation-form > p { margin-bottom: 24px !important; color: rgba(23, 26, 31, .66); font-size: 16px; line-height: 1.5; }
.consultation-form a[href^="tel:"] { color: var(--army-ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.consultation-form a[href^="tel:"]:hover { color: var(--army-g-home); }
.consultation-form .form-floating { margin-bottom: 12px !important; }
.consultation-form .form-control {
    width: 100%; min-height: 56px; padding: 14px 16px; border: 1px solid #dde3dc; border-radius: var(--army-r);
    background: var(--army-paper); font: inherit; font-size: 16px; color: var(--army-ink); box-shadow: none;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.consultation-form .form-control:focus { outline: none; background-color: #fff; border-color: var(--army-g-home); box-shadow: 0 0 0 4px rgba(45, 106, 45, .12); }
/* тема центрирует согласия блоком 500 px — выравниваем по полям */
.consultation-form .form-consent { max-width: none; margin: 0 0 10px !important; padding: 0; }
/* текст согласия — набор строк и ссылок, flex разложил бы его по колонкам: чекбокс выносим влево абсолютом */
.consultation-form .form-consent label { position: relative; display: block !important; margin: 0; padding: 0 0 0 28px !important; color: rgba(23, 26, 31, .55); font-size: 13.5px !important; line-height: 1.45; cursor: pointer; }
.consultation-form .form-consent input[type="checkbox"] { position: absolute; left: 0; top: 1px; width: 18px; height: 18px; margin: 0 !important; accent-color: var(--army-g-home); }
.consultation-form .form-consent a { color: var(--army-g-home); text-decoration: underline; text-underline-offset: 2px; }
.consultation-form .send {
    display: flex; align-items: center; justify-content: center; width: 100%; min-height: 58px; margin-top: 10px; padding: 0 28px;
    border: 0; border-radius: var(--army-r); background: var(--army-g-home); color: #fff;
    font-size: 17px; font-weight: 600; line-height: 1.2; text-transform: none; cursor: pointer;
    transition: background-color .2s, transform .2s;
}
.consultation-form .send:hover { background: #245824; color: #fff; }
.consultation-form .send:active { transform: translateY(1px); }
.consultation-form .send:focus-visible, .consultation-form .form-consent input:focus-visible { outline: 2px solid var(--army-g-home); outline-offset: 3px; }

/* 7 карточек (общежития, гостиничная — #212, 11.2026): 4 + 3 на широком экране */
@media (min-width: 1200px) {
    .army-adv--n7 .army-adv__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
