/* ==========================================================================
   sections.css — стили двух разделов сайта:
   «Благоустройство и электромонтаж» (blagoustroystvo.html)
   «Доставка нерудных материалов»   (nerudnye-materialy.html)

   Зачем отдельный файл: общие элементы (шапка, hero, кнопки, карточки пакетов,
   тёмная плашка калькулятора, модалки) уже описаны в styles.css и catalog.css —
   их не дублируем, а берём как есть. Здесь только новые блоки этих двух страниц.
   Цвета и шрифты — из переменных styles.css.
   07.09.2026 · Эвристы. Вечером того же дня переработано по UX-аудиту:
   контраст и размеры текста, кнопки от 44px, закреплённые вкладки направлений,
   подписи полей форм, блоки FAQ / организации / доставка / качество.
   ========================================================================== */

/* --- Кнопка-призрак для тёмного hero --- */
.btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.38);
}
.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
.btn--link {
    background: none;
    border: none;
    padding: 8px 0;
    min-height: 0;
    color: var(--color-primary);
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.btn--link:hover { color: var(--color-accent); }

.catalog-hero__content--wide { max-width: 860px; }
.catalog-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

/* Живая фотография на весь первый экран (как на главной): слева затемнение под текст,
   справа фото видно целиком. Электрика/благоустройство — наш объект в парке,
   нерудные — наш самосвал на щебне. Файлы в images/sections/, 1600–1920px, webp. */
.catalog-hero--electro,
.catalog-hero--nerud {
    background: #0B1020;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 130px 0 56px;
}
.catalog-hero--electro .catalog-hero__bg,
.catalog-hero--nerud .catalog-hero__bg {
    opacity: 1;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 68% center;
}
.catalog-hero--electro .catalog-hero__bg {
    background-image:
        linear-gradient(90deg, rgba(8, 12, 22, 0.94) 0%, rgba(8, 12, 22, 0.82) 38%, rgba(8, 12, 22, 0.42) 70%, rgba(8, 12, 22, 0.22) 100%),
        url('images/sections/sec-blago-hero-bg.webp');
}
.catalog-hero--nerud .catalog-hero__bg {
    background-image:
        linear-gradient(90deg, rgba(8, 12, 22, 0.94) 0%, rgba(8, 12, 22, 0.82) 38%, rgba(8, 12, 22, 0.4) 70%, rgba(8, 12, 22, 0.2) 100%),
        url('images/sections/sec-nerud-hero-bg.webp');
}
.catalog-hero--electro .catalog-hero__content,
.catalog-hero--nerud .catalog-hero__content { max-width: 720px; }
.catalog-hero--electro .catalog-hero__text,
.catalog-hero--nerud .catalog-hero__text { color: #D5DCE6; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.catalog-hero--electro .catalog-hero__title,
.catalog-hero--nerud .catalog-hero__title { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55); }
@media (max-width: 900px) {
    .catalog-hero--electro,
    .catalog-hero--nerud { min-height: 0; padding: 104px 0 40px; }
    .catalog-hero--electro .catalog-hero__bg,
    .catalog-hero--nerud .catalog-hero__bg {
        background-position: 62% center;
    }
    .catalog-hero--electro .catalog-hero__bg {
        background-image:
            linear-gradient(180deg, rgba(8, 12, 22, 0.9) 0%, rgba(8, 12, 22, 0.8) 55%, rgba(8, 12, 22, 0.6) 100%),
            url('images/sections/sec-blago-hero-bg.webp');
    }
    .catalog-hero--nerud .catalog-hero__bg {
        background-image:
            linear-gradient(180deg, rgba(8, 12, 22, 0.9) 0%, rgba(8, 12, 22, 0.8) 55%, rgba(8, 12, 22, 0.6) 100%),
            url('images/sections/sec-nerud-hero-bg.webp');
    }
}

.section-header--left { text-align: left; margin-bottom: 28px; }
.section-header--left .section-subtitle { max-width: 760px; }
.section-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    max-width: 860px;
    margin: -6px 0 22px;
    padding: 12px 16px;
    background: rgba(217, 119, 6, 0.08);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 10px 10px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #1E293B;
}
.section-note svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent-text); margin-top: 2px; }
.section-note--center { margin-left: auto; margin-right: auto; }

/* --- Заглушки: прайс грузится / сервер не ответил --- */
.data-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 30px 0;
    font-size: 14px;
}
.data-notice {
    grid-column: 1 / -1;
    background: #fff;
    border: 1px dashed rgba(30, 58, 95, 0.4);
    border-radius: 14px;
    padding: 22px 24px;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.55;
}
.data-notice a { color: var(--color-primary); font-weight: 700; white-space: nowrap; }
.data-notice--dark {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #E6EDF3;
}
.data-notice--dark a { color: #fff; }

/* ==========================================================================
   Раздел 1 · Закреплённые вкладки направлений (едут вместе с прокруткой)
   ========================================================================== */
.dir-tabs {
    position: sticky;
    top: var(--header-height);
    z-index: 90;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.dir-tabs__inner {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.dir-tabs__inner::-webkit-scrollbar { display: none; }
.dir-tabs__link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 48px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.dir-tabs__link svg { width: 16px; height: 16px; }
.dir-tabs__link:hover { color: var(--color-primary); }
.dir-tabs__link.is-active { color: var(--color-primary); border-bottom-color: var(--color-accent); }
.dir-tabs__link { cursor: pointer; }
.dir-panel[hidden] { display: none !important; }
.lcalc__row {
    display: grid;
    grid-template-columns: 1fr minmax(140px, 200px) auto 90px;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.lcalc__row.is-on { background: rgba(255,255,255,.04); }
.lcalc__name { color: #fff; font-weight: 600; font-size: 14px; }
.lcalc__name small { display: block; font-weight: 500; color: #CBD3DE; font-size: 12px; margin-top: 2px; }
.lcalc__select {
    width: 100%;
    min-height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(0,0,0,.25);
    color: #fff;
    padding: 0 10px;
}
.pcalc-workonly {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    margin: 0 0 14px;
    cursor: pointer;
}
.pcalc-gift {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(21, 128, 61, .18);
    color: #86efac;
    font-weight: 700;
    font-size: 14px;
}
@media (max-width: 720px) {
    .lcalc__row { grid-template-columns: 1fr auto; }
    .lcalc__select { grid-column: 1 / -1; }
    .lcalc__row .ecalc__sum { grid-column: 1 / -1; text-align: left; }
    .dir-grid.dir-grid--two { grid-template-columns: 1fr; max-width: none; }
}
/* Куда прокручивать по якорю: под шапку и полосу вкладок, с небольшим воздухом.
   Задаём только scroll-padding у страницы: scroll-margin у секций складывался бы с ним. */
html.has-dir-tabs { scroll-padding-top: calc(var(--header-height) + 60px); }

/* ==========================================================================
   Раздел 1 · Направления (4 карточки)
   ========================================================================== */
.dir-section { padding: 56px 0 28px; background: var(--color-light); }
.dir-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.dir-grid.dir-grid--two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1040px;
}
.dir-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    border-radius: 16px;
    padding: 24px 22px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.dir-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}
.dir-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dir-card__icon svg { width: 26px; height: 26px; }
.dir-card--accent .dir-card__icon { background: linear-gradient(135deg, var(--color-accent), #B45309); }
.dir-card__tag {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(217, 119, 6, 0.12);
    color: var(--accent-text);
}
.dir-card__tag--muted { background: rgba(30, 58, 95, 0.08); color: var(--color-primary); }
.dir-card__title {
    font-family: var(--font-heading);
    font-size: 22px;
    letter-spacing: 1px;
    line-height: 1.1;
}
.dir-card__text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
}
.dir-card__link {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
}

/* --- Карточки пакетов: одна главная кнопка + текстовый вопрос --- */
.combo-card__lead { color: var(--text-muted); }
.combo-card__badge { font-size: 12px; }
.combo-card__meta-label { font-size: 12px; color: var(--text-muted); }
.combo-card--featured .combo-card__meta-label { color: #CBD3DE; }
.combo-card__meta-value--text { font-size: 17px; letter-spacing: 0.3px; }
.combo-card__photo {
    margin: -26px -24px 16px;
    height: 150px;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}
.combo-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.combo-card__icon svg { width: 28px; height: 28px; }
.combo-card__actions { flex-direction: column; gap: 6px; }
.combo-card__actions .btn { width: 100%; }
.combo-card__ask {
    display: block;
    width: 100%;
    padding: 10px 0;
    min-height: 44px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.combo-card__ask:hover { color: var(--color-primary); }
.combo-card--featured .combo-card__ask { color: #CBD3DE; }
.combo-card--featured .combo-card__ask:hover { color: #fff; }

/* --- Карточки прайса: явная кнопка «Заказать» --- */
.elservice { cursor: default; flex-wrap: wrap; }
.elservice__icon svg { width: 22px; height: 22px; }
.elservice__body { display: flex; flex-direction: column; }
.elservice__desc { font-size: 13px; color: var(--text-muted); }
.elservice__price-value { color: var(--accent-text); font-size: 20px; }
.elservice__price-unit { color: var(--text-muted); font-size: 13px; }
.elservice__cta { margin-top: 12px; align-self: flex-start; }

/* ==========================================================================
   Раздел 1 · Калькулятор-смета (внутри тёмной плашки .mtool)
   ========================================================================== */
.calc-section { padding: 48px 0 64px; background: var(--color-light); }
.calc-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 22px;
    align-items: start;
}
.calc-aside {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.calc-aside h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.calc-aside p { font-size: 14px; color: #334155; line-height: 1.55; margin-bottom: 10px; }
.calc-aside ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.calc-aside li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
}
.calc-aside li::before,
.dirblock__list li::before,
.lead-points li::before,
.org-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-success);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.ecalc__rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ecalc__more[hidden] { display: none; }
.ecalc__more { display: flex; flex-direction: column; gap: 8px; }
.ecalc__more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 4px;
    margin-bottom: 14px;
    background: none;
    border: none;
    color: #CBD3DE;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ecalc__more-btn:hover { color: #fff; }
.ecalc__more-btn svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.ecalc__more-btn.is-open svg { transform: rotate(180deg); }
.ecalc__row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 14px;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.ecalc__row.is-on { border-color: rgba(217, 119, 6, 0.55); background: rgba(217, 119, 6, 0.07); }
.ecalc__name { font-size: 14px; color: #E6EDF3; line-height: 1.3; }
.ecalc__name small { display: block; font-size: 12px; color: #CBD3DE; margin-top: 2px; }
.ecalc__qty { display: inline-flex; align-items: center; gap: 4px; }
.ecalc__qty button {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.ecalc__qty button:hover { background: rgba(217, 119, 6, 0.35); }
.ecalc__qty input {
    width: 58px;
    height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    -moz-appearance: textfield;
}
.ecalc__qty input::-webkit-outer-spin-button,
.ecalc__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ecalc__qty input:focus { outline: none; border-color: var(--color-accent); }
.ecalc__sum {
    min-width: 92px;
    text-align: right;
    font-family: var(--font-heading);
    font-size: 18px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.55);
}
.ecalc__row.is-on .ecalc__sum { color: var(--color-accent); }
.ecalc__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.3);
    margin-bottom: 14px;
}
.ecalc__total[hidden] { display: none; }
.ecalc__total-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: #CBD3DE; }
.ecalc__total-value {
    font-family: var(--font-heading);
    font-size: 34px;
    color: var(--color-accent);
    letter-spacing: 1px;
    line-height: 1;
}
.ecalc__total-value small {
    font-family: var(--font-body);
    font-size: 13px;
    color: #CBD3DE;
    margin-left: 6px;
    letter-spacing: 0;
}
.ecalc__pkg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #E6EDF3;
    font-size: 13.5px;
    line-height: 1.45;
}
.ecalc__pkg[hidden] { display: none; }
.ecalc__pkg svg { width: 18px; height: 18px; flex-shrink: 0; color: #4ADE80; margin-top: 1px; }
.ecalc__pkg b { color: #fff; }
.ecalc__pkg a { color: #fff; text-decoration: underline; }
.mcalc__hint { font-size: 13px; }

/* ==========================================================================
   Раздел 1 · Направления без прайса: сваи, столбы, благоустройство
   ========================================================================== */
.dirblock { padding: 64px 0; background: var(--color-light); }
.dirblock--alt { background: #fff; }
.dirblock__inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;
    align-items: start;
}
.dirblock__kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(30, 58, 95, 0.08);
    color: var(--color-primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}
.dirblock__kicker svg { width: 14px; height: 14px; }
.dirblock__title {
    font-family: var(--font-heading);
    font-size: clamp(30px, 3.5vw, 44px);
    letter-spacing: 1.5px;
    line-height: 1.05;
    margin-bottom: 12px;
}
.dirblock__lead { font-size: 16px; color: #334155; line-height: 1.65; margin-bottom: 18px; }
.dirblock__sub {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.dirblock__list { list-style: none; display: grid; gap: 10px; margin-bottom: 20px; }
.dirblock__list li {
    position: relative;
    padding-left: 26px;
    font-size: 14px;
    line-height: 1.5;
    color: #1E293B;
}
/* Ориентир цены по выполненным объектам (данные из CRM, не выдумка) */
.dirblock__price {
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.3);
    border-radius: 14px;
    padding: 16px 18px;
}
.dirblock__price-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--accent-text);
    margin-bottom: 8px;
}
.dirblock__price-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-top: 1px dashed rgba(217, 119, 6, 0.3);
    font-size: 14px;
    color: #1E293B;
}
.dirblock__price-row:first-of-type { border-top: none; }
.dirblock__price-row b { font-family: var(--font-heading); font-size: 20px; letter-spacing: 0.5px; color: var(--accent-text); white-space: nowrap; }
.dirblock__price-note { font-size: 12px; color: var(--text-muted); margin-top: 8px; line-height: 1.45; }
.dirblock__card {
    background: linear-gradient(160deg, #1a1f2e 0%, #2d3548 100%);
    color: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 16px 48px rgba(30, 58, 95, 0.3);
}
.dirblock__card h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.dirblock__card p { font-size: 14px; color: #CBD3DE; line-height: 1.55; margin-bottom: 16px; }
.dirblock__steps { display: grid; gap: 10px; margin-bottom: 22px; }
.dirblock__step { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #E6EDF3; line-height: 1.45; }
.dirblock__step-n {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dirblock__card .btn { width: 100%; }

/* ==========================================================================
   Для организаций (обе страницы)
   ========================================================================== */
.org-section { padding: 64px 0; background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-light) 100%); color: #fff; }
.org-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.org-title { font-family: var(--font-heading); font-size: clamp(30px, 3.5vw, 44px); letter-spacing: 1.5px; line-height: 1.05; margin-bottom: 12px; }
.org-text { color: #CBD3DE; font-size: 15px; line-height: 1.6; margin-bottom: 18px; }
.org-list { list-style: none; display: grid; gap: 10px; }
.org-list li { position: relative; padding-left: 26px; font-size: 14px; color: #E6EDF3; line-height: 1.5; }
.org-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 26px;
}
.org-card h3 { font-family: var(--font-heading); font-size: 22px; letter-spacing: 1px; margin-bottom: 10px; }
.org-card p { color: #CBD3DE; font-size: 14px; line-height: 1.55; margin-bottom: 16px; }
.org-card .btn { width: 100%; margin-bottom: 10px; }
.org-card__phone { font-size: 13px; color: #CBD3DE; text-align: center; }
.org-card__phone a { color: #fff; font-weight: 700; }

/* ==========================================================================
   Этапы работы
   ========================================================================== */
.stages-section { padding: 64px 0; background: var(--color-light); }
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.stage {
    background: #fff;
    border-radius: 16px;
    padding: 22px 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.stage__n {
    font-family: var(--font-heading);
    font-size: 40px;
    color: rgba(30, 58, 95, 0.18);
    line-height: 1;
    margin-bottom: 8px;
}
.stage__title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.stage__text { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* ==========================================================================
   Частые вопросы (обе страницы)
   ========================================================================== */
.faq-section { padding: 64px 0; background: #fff; }
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq__item {
    background: var(--color-light);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.faq__item[open] { border-color: rgba(30, 58, 95, 0.3); background: #fff; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06); }
.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 56px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
    content: '';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(30, 58, 95, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A5F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 12px no-repeat;
    transition: transform 0.2s ease;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 20px 18px; font-size: 14.5px; line-height: 1.6; color: #334155; }
.faq__a a { color: var(--color-primary); font-weight: 700; }

/* ==========================================================================
   Формы: подписи над полями, обязательные поля, ссылка на политику
   ========================================================================== */
.f-field { display: flex; flex-direction: column; gap: 6px; }
.f-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
}
.f-req { color: var(--accent-text); margin-left: 2px; }
.f-note { font-size: 12px; color: var(--text-muted); }
.modal__form { gap: 12px; }
.modal__form .modal__input,
.modal__form .modal__textarea { width: 100%; }
.modal__form .modal__checkbox { margin-top: 4px; }
.modal__checkbox a { color: var(--color-primary); text-decoration: underline; }
.modal__phone {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}
.modal__phone a { color: var(--color-primary); font-weight: 700; white-space: nowrap; }
.modal__price {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.3);
    font-size: 14px;
    color: var(--text-dark);
}
.modal__price[hidden] { display: none; }
.modal__price b { color: var(--accent-text); white-space: nowrap; }
.modal__content { max-height: calc(100vh - 32px); overflow-y: auto; }

/* Форма заявки внизу (обе страницы) */
.lead-section {
    padding: 64px 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
}
.lead-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
}
.lead-title {
    font-family: var(--font-heading);
    font-size: clamp(30px, 3.5vw, 44px);
    letter-spacing: 1.5px;
    line-height: 1.05;
    margin-bottom: 12px;
}
.lead-text { color: rgba(255, 255, 255, 0.9); font-size: 15px; line-height: 1.6; margin-bottom: 18px; }
.lead-points { list-style: none; display: grid; gap: 8px; }
.lead-points li {
    position: relative;
    padding-left: 26px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.94);
    line-height: 1.5;
}
.lead-points li::before { background: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%231E3A5F' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.lead-points a { color: #fff; font-weight: 700; }
.lead-form {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 26px;
    display: grid;
    gap: 14px;
}
.lead-form .f-label { color: #fff; }
.lead-form .f-req { color: #FCD34D; }
.lead-form .f-note { color: rgba(255, 255, 255, 0.75); }
.lead-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-form input,
.lead-form select,
.lead-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transition: var(--transition-fast);
}
.lead-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}
.lead-form select option { background: var(--color-primary-dark); color: #fff; }
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: rgba(255, 255, 255, 0.62); }
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, 0.2); }
.lead-form textarea { min-height: 96px; resize: vertical; }
.lead-form__consent {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.45;
    cursor: pointer;
}
.lead-form__consent input { width: auto; min-height: 0; margin-top: 2px; }
.lead-form__consent a { color: #fff; text-decoration: underline; }
.lead-form .btn--primary { background: #fff; color: var(--color-primary); box-shadow: none; }
.lead-form .btn--primary:hover { background: var(--color-light); }

/* ==========================================================================
   Раздел 2 · Каталог нерудных, калькулятор, доставка, качество
   ========================================================================== */
.materials-section { padding: 56px 0 64px; background: var(--color-light); }
.material-card--compact .material-card__image { height: 96px; }
.material-card--compact .material-card__icon i,
.material-card--compact .material-card__icon svg { width: 40px; height: 40px; }
.material-card__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.material-card__body { display: flex; flex-direction: column; flex: 1; }
.material-card__title { font-size: 20px; }
.material-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 13px;
    color: #334155;
    margin-bottom: 12px;
}
.material-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.material-card__meta svg { width: 14px; height: 14px; color: var(--text-muted); }
.material-card__fit { font-size: 13.5px; color: #334155; line-height: 1.5; margin-bottom: 14px; }
.material-card__fit strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.material-card__footer { margin-top: auto; align-items: flex-end; }
.material-card__price-value { font-size: 26px; }
.material-card__price-unit { color: var(--text-muted); font-size: 14px; }
.material-card__price-note { display: block; font-size: 12px; color: var(--text-muted); }
.material-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.material-card__actions .btn { width: 100%; }

.mcalc__modes { display: flex; gap: 8px; margin-bottom: 14px; }
.mcalc__mode {
    flex: 1;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #CBD3DE;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
}
.mcalc__mode.is-active { border-color: var(--color-accent); background: rgba(217, 119, 6, 0.12); color: #fff; }
.mcalc__fields[hidden] { display: none; }
.mcalc__label { font-size: 12px; }
.mcalc__result-label { font-size: 12px; }
.mcalc__result-unit { font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.mcalc__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 14px;
    color: #E6EDF3;
    font-size: 14px;
}
.mcalc__total[hidden] { display: none; }
.mcalc__total b { font-family: var(--font-heading); font-size: 28px; letter-spacing: 1px; color: #fff; }
.mcalc__total small { display: block; width: 100%; font-size: 12px; color: #CBD3DE; }
.mcalc__warn {
    padding: 10px 12px;
    margin-bottom: 14px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.12);
    border-left: 3px solid #EF4444;
    color: #FECACA;
    font-size: 13px;
    line-height: 1.45;
}
.mcalc__warn[hidden] { display: none; }

/* Доставка: таблица зон */
.delivery-info { padding: 60px 0 64px; }
.delivery-card__text { color: var(--text-muted); }
.delivery-card__icon svg { width: 40px; height: 40px; color: var(--color-primary); margin: 0 auto; }
.delivery-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; margin-bottom: 28px; }
.delivery-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}
.delivery-table th,
.delivery-table td { padding: 14px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.delivery-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); background: var(--color-light); }
.delivery-table td b { font-family: var(--font-heading); font-size: 20px; letter-spacing: 0.5px; color: var(--color-primary); white-space: nowrap; }
.delivery-table tr:last-child td { border-bottom: none; }
.delivery-table__note { font-size: 12px; color: var(--text-muted); margin-top: 10px; line-height: 1.5; }
.delivery-side {
    background: linear-gradient(160deg, #1a1f2e 0%, #2d3548 100%);
    color: #fff;
    border-radius: 18px;
    padding: 26px;
}
.delivery-side h3 { font-family: var(--font-heading); font-size: 22px; letter-spacing: 1px; margin-bottom: 12px; }
.delivery-side ul { list-style: none; display: grid; gap: 10px; }
.delivery-side li { display: flex; gap: 10px; font-size: 14px; color: #E6EDF3; line-height: 1.5; }
.delivery-side li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--color-accent); margin-top: 2px; }
.delivery-side p { font-size: 13px; color: #CBD3DE; margin-top: 14px; line-height: 1.5; }

/* Качество и приёмка */
.quality-section { padding: 60px 0 64px; background: var(--color-light); }
.quality-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quality-card { background: #fff; border-radius: 16px; padding: 24px 22px; border: 1px solid rgba(0, 0, 0, 0.05); }
.quality-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(30, 58, 95, 0.08);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.quality-card__icon svg { width: 22px; height: 22px; }
.quality-card h3 { font-family: var(--font-heading); font-size: 20px; letter-spacing: 1px; margin-bottom: 8px; }
.quality-card p, .quality-card li { font-size: 14px; color: #334155; line-height: 1.55; }
.quality-card ul { list-style: none; display: grid; gap: 6px; }
.quality-card li { padding-left: 14px; position: relative; }
.quality-card li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }

/* Мессенджер на этих страницах: кнопки калькулятора нет, опускаем ниже */
@media (max-width: 768px) {
    body:not(:has(.floating-calc-btn)) .floating-messenger__item--max { bottom: 88px; }
    body:has(.mobile-menu.active) .floating-messenger__item--max,
    body:has(.mobile-menu.active) .floating-calc-btn { display: none; }
}

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1100px) {
    .dir-grid { grid-template-columns: repeat(2, 1fr); }
    .stages { grid-template-columns: repeat(3, 1fr); }
    .calc-layout { grid-template-columns: 1fr; }
    .quality-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .dirblock__inner, .lead-inner, .org-inner, .delivery-layout { grid-template-columns: 1fr; gap: 26px; }
    .stages { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .ecalc__qty button { width: 44px; height: 44px; }
    .ecalc__qty input { height: 44px; }
    .mcalc__input, .mcalc__select { min-height: 48px; }
    .material-card__actions { grid-template-columns: 1fr; }
    .dir-tabs__link { min-height: 48px; padding: 0 12px; }
}
@media (max-width: 600px) {
    .dir-grid, .stages, .lead-form__row { grid-template-columns: 1fr; }
    .ecalc__row { grid-template-columns: 1fr auto; }
    .ecalc__sum { grid-column: 1 / -1; text-align: left; min-width: 0; }
    .catalog-hero__actions .btn { width: 100%; }
    .lead-form { padding: 18px; }
    .dirblock, .stages-section, .lead-section, .org-section, .faq-section, .quality-section { padding: 44px 0; }
    .delivery-table th, .delivery-table td { padding: 12px 14px; }
    .mcalc__result { grid-template-columns: 1fr 1fr; }
}

/* Кнопки в узких карточках и формах переносятся на две строки — иначе на телефоне
   «Запросить смету по освещению» вылезает за край экрана (общий .btn запрещает перенос) */
.dirblock__card .btn,
.lead-form .btn,
.mcalc__actions .btn,
.combo-intro .btn,
.combo-card__actions .btn,
.catalog-hero__actions .btn,
.org-card .btn,
.material-card__actions .btn {
    white-space: normal;
    line-height: 1.25;
    text-align: center;
}

/* ==========================================================================
   Фотографии в разделах (07.09.2026, вечер): своя фотография в шапке страницы
   и в карточках направлений / доставки. Все снимки — из материалов ЯМЦК
   (кейсы главной, каталог техники), лежат в images/sections/.
   ========================================================================== */
.sec-hero {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
    align-items: center;
}
.sec-hero .catalog-hero__content { max-width: none; }
.hero-photo {
    position: relative;
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    aspect-ratio: 4 / 3;
    background: #1E293B;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo figcaption {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(13, 17, 23, 0.72);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
}
.dirblock__photo {
    margin: -28px -28px 20px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: #0F172A;
}
.dirblock__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.delivery-side .dirblock__photo { margin: -26px -26px 18px; }
@media (max-width: 900px) {
    .sec-hero { grid-template-columns: 1fr; gap: 26px; }
    .hero-photo { aspect-ratio: 16 / 9; max-height: 280px; }
}
@media (max-width: 600px) {
    .dirblock__photo { aspect-ratio: 16 / 10; }
}

/* Карточки материалов с фотографией: полоса выше, значок прячется под фото */
.material-card--photo .material-card__image { height: 176px; }
.material-card--loaded .material-card__icon { visibility: hidden; } /* значок виден, пока фото грузится */
.material-card__photo { z-index: 0; }
.material-card--photo .material-card__photo { transition: transform 0.4s ease; }
.material-card--photo:hover .material-card__photo { transform: scale(1.04); }
@media (max-width: 600px) {
    .material-card--photo .material-card__image { height: 150px; }
}

/* ==========================================================================
   Несколько материалов в заказе (08.09.2026): строки «материал + объём»
   в окне заказа и в форме внизу; подсчёт по площади внутри калькулятора
   ========================================================================== */
.mat-rows { display: grid; gap: 8px; }
.mat-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 40px; gap: 8px; align-items: center; }
.mat-row select, .mat-row input { width: 100%; min-height: 44px; }
.mat-row select.modal__input, .mat-row input.modal__input { padding: 10px 12px; }
.mat-row__del {
    width: 40px;
    height: 44px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-muted);
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mat-row__del:hover { background: rgba(239, 68, 68, 0.12); color: #B91C1C; }
.lead-form .mat-row__del { background: rgba(255, 255, 255, 0.14); color: #fff; }
.lead-form .mat-row__del:hover { background: rgba(255, 255, 255, 0.26); }
.lead-form .mat-row select, .lead-form .mat-row input { padding: 10px 12px; }
.mat-rows__add {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-top: 6px;
    padding: 0;
    background: none;
    border: none;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.lead-form .mat-rows__add { color: #fff; }
.lead-price {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 13px;
    color: #fff;
    line-height: 1.45;
}
.lead-price[hidden] { display: none; }
.mcalc__area {
    margin: 2px 0 14px;
    padding: 0 14px;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 10px;
}
.mcalc__area[open] { padding-bottom: 14px; }
.mcalc__area-sum {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    list-style: none;
    cursor: pointer;
    color: #CBD3DE;
    font-size: 13px;
    font-weight: 600;
}
.mcalc__area-sum::-webkit-details-marker { display: none; }
.mcalc__area-sum svg { width: 16px; height: 16px; color: var(--color-accent); }
.mcalc__area-result { font-size: 13px; color: #E6EDF3; margin: 2px 0 10px; }
.mcalc__area .mcalc__grid { margin-bottom: 10px; }
@media (max-width: 600px) {
    .mat-row { grid-template-columns: minmax(0, 1fr) 78px 40px; }
}


/* ==========================================================================
   Телефонная версия нерудных (08.09.2026, по обзору): компактные карточки,
   калькулятор только с выбранными материалами, мини-итог, без повторов
   ========================================================================== */
.only-desktop { display: inline; }
.ecalc__row--del { grid-template-columns: 1fr auto auto 36px; }
.ecalc__del {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #CBD3DE;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ecalc__del:hover { background: rgba(239, 68, 68, 0.25); color: #fff; }
.mcalc__addrow { margin: 0 0 14px; }
.mcalc__addrow .mcalc__select { border-style: dashed; color: #fff; font-weight: 600; }
.mcalc__actions--stack { flex-direction: column; align-items: stretch; }
.mcalc__actions--stack .btn { width: 100%; }
.mcalc__reset {
    align-self: center;
    min-height: 44px;
    padding: 0 8px;
    background: none;
    border: none;
    color: #CBD3DE;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.mcalc__reset:hover { color: #fff; }
.mat-rows__add { min-height: 44px; }

/* Мини-итог: только на телефоне, над нижней полосой, слева от кнопки MAX */
.mcalc-sticky {
    display: none;
    position: fixed;
    left: 12px;
    right: 76px;
    bottom: 84px;
    z-index: 997;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 8px 8px 14px;
    border-radius: 14px;
    background: rgba(13, 17, 23, 0.94);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(217, 119, 6, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color: #E6EDF3;
    font-size: 13px;
    line-height: 1.3;
}
.mcalc-sticky[hidden] { display: none; }
.mcalc-sticky__sum b { color: var(--color-accent); font-family: var(--font-heading); font-size: 18px; letter-spacing: 0.5px; }
.mcalc-sticky .btn { flex-shrink: 0; min-height: 40px; padding: 8px 14px; white-space: nowrap; }

@media (max-width: 768px) {
    .mcalc-sticky:not([hidden]) { display: flex; }
    body .floating-messenger__item--max { width: 48px; height: 48px; right: 14px; }
    .catalog-hero--nerud .elhero-stats { padding-right: 60px; }
    .ecalc__row--del { grid-template-columns: 1fr auto 36px; }
    .ecalc__row--del .ecalc__sum { grid-column: 1 / -1; }
    .delivery-info .delivery-grid { display: none; } /* четыре карточки повторяют тёмную карточку рядом */
    .delivery-layout { margin-bottom: 0; }
}
@media (max-width: 600px) {
    .only-desktop { display: none; }
    /* Карточка материала в один ряд: фото слева, текст справа, кнопки внизу */
    .material-card--compact {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        grid-template-rows: auto auto auto auto auto;
        column-gap: 12px;
        padding: 12px;
        align-items: start;
    }
    .material-card--compact .material-card__image {
        grid-column: 1;
        grid-row: 1 / 5;
        height: 100%;
        min-height: 120px;
        border-radius: 12px;
    }
    .material-card--compact .material-card__body { display: contents; }
    .material-card--compact .material-card__title { grid-column: 2; font-size: 18px; margin-bottom: 4px; }
    .material-card--compact .material-card__meta { grid-column: 2; margin-bottom: 4px; font-size: 12px; gap: 4px 10px; }
    .material-card--compact .material-card__fit {
        grid-column: 2;
        margin-bottom: 6px;
        font-size: 12.5px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .material-card--compact .material-card__fit strong { display: none; }
    .material-card--compact .material-card__footer { grid-column: 2; margin: 0; }
    .material-card--compact .material-card__price-value { font-size: 22px; }
    .material-card--compact .material-card__price-note { display: inline; margin-left: 6px; }
    .material-card--compact .material-card__actions {
        grid-column: 1 / -1;
        grid-template-columns: 1fr auto;
        gap: 6px;
        margin-top: 10px;
    }
    .material-card--compact .material-card__actions .btn--outline {
        border: none;
        background: none;
        min-height: 44px;
        padding: 0 10px;
        text-decoration: underline;
        text-underline-offset: 3px;
    }
    .modal__title { font-size: 24px; margin-bottom: 16px; }
    .mtool__header { padding: 18px 16px; }
    .mtool__body { padding: 0 16px 20px; }
}

/* Строка калькулятора нерудных на телефоне: название и крестик в первой строке,
   степпер и сумма — во второй (иначе крестик уезжал на отдельную строку) */
@media (max-width: 600px) {
    .ecalc__row--del {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "name del" "qty sum";
        row-gap: 10px;
    }
    .ecalc__row--del .ecalc__name { grid-area: name; }
    .ecalc__row--del .ecalc__del { grid-area: del; justify-self: end; }
    .ecalc__row--del .ecalc__qty { grid-area: qty; }
    .ecalc__row--del .ecalc__sum { grid-area: sum; grid-column: auto; text-align: right; align-self: center; }
}
