/* ============================================================
   ПЕСКОВОЗ.РФ — СТИЛИ КАТАЛОГА СПЕЦТЕХНИКИ
   ============================================================ */

:root {
    --ink: #182230;
    --muted: #64748b;
    --soft: #f4f7fa;
    --line: #e2e8f0;
    --white: #fff;
    --primary: #e52037;
    --primary-dark: #bd1528;
    --shadow: 0 12px 35px rgba(15, 23, 42, .08);
    --radius: 22px;
}

/* Цветовые темы и палитры карточек */
.theme-gold {
    --primary: #E8B56B;
    --primary-dark: #D49A4E;
}
.theme-gold .info-section {
    --primary: #e52037;
    --primary-dark: #bd1528;
}

.equipment-action-blue { --equipment-action: #346fd5; --equipment-action-dark: #2b5cb3; }
.equipment-action-red { --equipment-action: #e52037; --equipment-action-dark: #bd1528; }
.equipment-action-gold { --equipment-action: #E8B56B; --equipment-action-dark: #D49A4E; }

.equipment-label-red { --equipment-label: #e52037; }
.equipment-label-gold { --equipment-label: #E8B56B; }
.equipment-label-black { --equipment-label: #182230; }
.equipment-label-blue { --equipment-label: #346fd5; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: #f8fafc;
    color: var(--ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.narrow { width: min(1080px, calc(100% - 36px)); }

/* ---------------------------------------------------------
   Public header fallback
--------------------------------------------------------- */
.public-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.public-header-inner {
    width: min(1280px, calc(100% - 36px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 26px;
}
.brand {
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 850;
    letter-spacing: -.03em;
    white-space: nowrap;
}
.brand span { color: var(--primary); }
.public-nav {
    display: flex;
    gap: 20px;
    flex: 1;
    min-width: 0;
}
.public-nav a {
    text-decoration: none;
    color: #475569;
    font-size: .92rem;
    font-weight: 650;
}
.public-nav a:hover, .public-nav a.active { color: var(--ink); }
.header-order {
    border: 0;
    background: var(--primary);
    color: #fff;
    border-radius: 13px;
    padding: 12px 18px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(229,32,55,.17);
}
.header-order:hover { background: var(--primary-dark); }

/* ---------------------------------------------------------
   HERO
--------------------------------------------------------- */
.catalog-hero {
    position: relative;
    background-color: #1a2332;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.78)),
        url('img/hero-bg_3.avif');
    background-size: cover, cover;
    background-position: center, center right;
    background-repeat: no-repeat;
    padding: 90px 0 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
}
.hero-inner { text-align: center; }

.catalog-hero .eyebrow { color: #E8B56B; }

.catalog-hero h1 {
    max-width: 900px;
    margin: 14px auto 16px;
    font-size: clamp(2rem, 4.6vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}
.catalog-hero h1 span { color: #E8B56B; }
.catalog-hero .hero-subtitle {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    font-size: 1.05rem;
}
.catalog-hero .hero-actions { margin-top: 26px; }

/* ---------------------------------------------------------
   FILTERS — Плавающие метки и подсказки
--------------------------------------------------------- */
.filters {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 1.05fr 1fr auto;
    gap: 10px;
    align-items: end;
}
.filters label {
    position: relative;
    display: block;
    min-width: 0;
}

/* Плавающая метка */
.filters label span {
    position: absolute;
    left: 13px;
    top: 10px;
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
    pointer-events: none;
    transition: opacity 0.18s cubic-bezier(0.4, 0, 0.2, 1), transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0; /* По умолчанию скрыта, чтобы показать плейсхолдер */
    transform: translateY(6px);
    z-index: 2;
    line-height: 1;
    white-space: nowrap;
}
/* Метка для select всегда видима, т.к. там всегда есть значение ("Все типы") */
.filters label:has(select) span {
    opacity: 1;
    transform: translateY(0);
}
/* Метка появляется при фокусе или заполнении (кроме полей даты, для них отдельное правило) */
.filters label:has(input:focus) span,
.filters label:has(input.has-value) span,
.filters label:has(input:not([type="date"]):not([type="time"]):not([type="datetime-local"]):not(:placeholder-shown)) span {
    opacity: 1;
    transform: translateY(0);
}

.filters input, .filters select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 58px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafc;
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    font-size: 0.95rem;
    color: var(--ink);
    transition: padding 0.18s ease, line-height 0.18s ease;
}

/* Текстовые поля (плейсхолдер по центру, пока пусто) */
.filters input {
    padding: 0 13px;
    line-height: 56px;
}
/* При фокусе или заполнении текст смещается вниз под метку */
.filters input:focus,
.filters input:not(:placeholder-shown),
.filters input.has-value {
    padding: 20px 13px 6px;
    line-height: 32px;
}

/* Select всегда с отступом сверху, так как там всегда есть значение */
.filters select {
    padding: 20px 13px 6px;
    line-height: 32px;
}

/* --- ПОЛЯ ДАТЫ/ВРЕМЕНИ --- */

/* Пустое состояние: скрываем нативный текст, чтобы показать свой плейсхолдер */
.filters input[type="date"]:not(.has-value):not(:focus),
.filters input[type="time"]:not(.has-value):not(:focus),
.filters input[type="datetime-local"]:not(.has-value):not(:focus) {
    padding: 0 13px;
    line-height: 56px;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Фейковый плейсхолдер для поля даты, когда оно пустое */
.filters label:has(input[type="date"]:not(.has-value):not(:focus))::after,
.filters label:has(input[type="time"]:not(.has-value):not(:focus))::after,
.filters label:has(input[type="datetime-local"]:not(.has-value):not(:focus))::after {
    content: "Требуемая дата";
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 400;
    pointer-events: none;
    z-index: 3;
    line-height: 1;
}

/* Заполненное состояние или фокус: показываем нативный текст */
.filters input[type="date"]:focus,
.filters input[type="date"].has-value,
.filters input[type="time"]:focus,
.filters input[type="time"].has-value,
.filters input[type="datetime-local"]:focus,
.filters input[type="datetime-local"].has-value {
    padding: 20px 13px 6px;
    line-height: 32px;
    color: var(--ink);
    -webkit-text-fill-color: currentColor;
}

/* Скрываем нативную иконку календаря на iOS, пока не выбрана дата */
.filters input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.3;
}

/* Выравнивание для WebKit */
.filters input[type="date"]::-webkit-date-and-time-value,
.filters input[type="time"]::-webkit-date-and-time-value,
.filters input[type="datetime-local"]::-webkit-date-and-time-value {
    text-align: left;
    min-width: 0;
    line-height: inherit;
}
.filters input[type="date"]::-webkit-inner-spin-button,
.filters input[type="time"]::-webkit-inner-spin-button,
.filters input[type="datetime-local"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    display: none;
}

.filters input:focus, .filters select:focus {
    background-color: #fff;
    border-color: #cbd5e1;
    box-shadow: 0 0 0 3px rgba(229,32,55,.08);
}
.filter-button { height: 58px; white-space: nowrap; }

.filters-actions { display: contents; }
.filters-reset-button { display: none; }

@media (max-width: 700px) {
    .filters-actions {
        display: flex;
        gap: 8px;
    }
    .filters-actions .filter-button {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        margin-top: 0;
    }
    .filters-reset-button {
        flex: 1 1 0;
        min-width: 0;
        height: 58px;
        padding: 0 12px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: #fff;
        color: #334155;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-weight: 800;
        font-size: .9rem;
        text-align: center;
        white-space: nowrap;
    }
    .filters-reset-button:hover {
        border-color: var(--primary);
        color: var(--primary);
    }
}

.catalog-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    color: var(--muted);
    font-size: .9rem;
}
.catalog-bar a { color: var(--primary); text-decoration: none; font-weight: 750; }
.catalog-bar a:hover { color: var(--primary-dark); }

/* ---------------------------------------------------------
   CATALOG SECTION
--------------------------------------------------------- */
.catalog-section { padding: 50px 0 38px; }
#catalog { scroll-margin-top: 74px; }
#catalog-results { scroll-margin-top: 74px; }

@media (min-width: 501px) and (max-width: 700px) {
    #filters-actions { scroll-margin-top: 74px; }
}

@media (max-width: 500px) {
    #catalog { scroll-margin-top: 145px; }
    #catalog-results,
    #filters-actions { scroll-margin-top: 145px; }

    body.mobile-bar-hidden #catalog { scroll-margin-top: 30px; }
    body.mobile-bar-hidden #catalog-results,
    body.mobile-bar-hidden #filters-actions { scroll-margin-top: 90px; }
}

/* Заголовок каталога + кнопки Фильтр/Карта в одну строку */
.catalog-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 22px;
}
.catalog-heading__title {
    min-width: 0;
}
.catalog-heading__title h2 {
    margin: 8px 0 0;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    letter-spacing: -.04em;
}
.catalog-heading__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.catalog-heading__actions .catalog-reset-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: .9rem;
    white-space: nowrap;
    margin-left: 6px;
}
.catalog-heading__actions .catalog-reset-link:hover {
    text-decoration: underline;
}

/* Мобильный: заголовок сверху, кнопки — во всю ширину под ним */
@media (max-width: 700px) {
    .catalog-heading {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 18px;
    }
    .catalog-heading__actions {
        width: 100%;
    }
    .catalog-heading__actions .filter-toggle-btn,
    .catalog-heading__actions .map-open-btn {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
    }
    .catalog-heading__actions .catalog-reset-link {
        display: none;
    }
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end;
    margin-bottom: 22px;
}
.section-heading.compact { align-items: center; }
.section-heading h2,
.info-section h2,
.steps-section h2,
.faq-section h2,
.seo-section h2,
.seo-long h2,
.detail-seo h2,
.specs-wrap h2 {
    margin: 8px 0 0;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    letter-spacing: -.04em;
}
.section-heading p {
    max-width: 530px;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

/* ---------------------------------------------------------
   EQUIPMENT CARDS
--------------------------------------------------------- */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.equipment-grid--medium.equipment-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.equipment-grid--small.equipment-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.equipment-grid--medium .equipment-body { padding: 14px; }
.equipment-grid--medium .equipment-body h2 { font-size: 1.1rem; }
.equipment-grid--medium .equipment-price-value { font-size: 1rem; }

.equipment-grid--small .equipment-body { padding: 12px; }
.equipment-grid--small .equipment-body h2 { font-size: 1rem; }
.equipment-grid--small .equipment-prices {
    gap: 10px;
    margin: 8px 0;
    flex-wrap: wrap;
}
.equipment-grid--small .equipment-price-value { font-size: .92rem; }
.equipment-grid--small .card-actions {
    grid-template-columns: 1fr;
}
.equipment-grid--small .secondary-card-action,
.equipment-grid--small .choose-button {
    min-height: 38px;
    font-size: .8rem;
}

@media (max-width: 1000px) {
    .equipment-grid--medium.equipment-grid,
    .equipment-grid--small.equipment-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 700px) {
    .equipment-grid--medium.equipment-grid,
    .equipment-grid--small.equipment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 480px) {
    .equipment-grid--medium.equipment-grid,
    .equipment-grid--small.equipment-grid {
        grid-template-columns: 1fr;
    }
}
.equipment-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .025);
    min-width: 0;
    transition: transform .2s ease, box-shadow .2s ease;
}
.equipment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.equipment-photo-wrap {
    position: relative;
}
.equipment-photo {
    display: block;
    aspect-ratio: 4 / 3;
    background: #eef2f7;
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}
.equipment-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .4s ease;
}
.equipment-card:hover .equipment-photo img { transform: scale(1.03); }
.equipment-photo.is-placeholder img { transition: none; }
.equipment-card:hover .equipment-photo.is-placeholder img { transform: none; }

.photo-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 7px 9px;
    border-radius: 999px;
    background: rgba(17,24,39,.74);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
}
.photo-badge.large { bottom: 16px; }

/* Локация поверх фото — правый нижний угол */
.photo-location {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: calc(100% - 24px);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, .74);
    color: #fff;
    font-size: .74rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.photo-location i {
    flex-shrink: 0;
    font-size: .7rem;
    opacity: .9;
}

button.photo-location {
    border: 0;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
button.photo-location:hover { background: rgba(17, 24, 39, .88); }
button.photo-location:focus-visible { outline: 2px solid #E8B56B; outline-offset: 2px; }
button.photo-location:active { transform: scale(.98); }

.equipment-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 18px 18px;
}

.equipment-type {
    color: var(--primary);
    font-size: .72rem;
    letter-spacing: .09em;
    font-weight: 850;
    text-transform: uppercase;
}

.equipment-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.equipment-title-row h2 {
    min-width: 0;
}

.equipment-body h2 {
    margin: 6px 0 6px;
    font-size: 1.2rem;
    line-height: 1.25;
}
.equipment-body h2 a { text-decoration: none; color: inherit; }

/* Компактный вывод цен в стиле dozr */
.equipment-prices {
    display: flex;
    gap: 22px;
    margin: 12px 0;
}
.equipment-prices--empty { gap: 0; }
.equipment-price-col { min-width: 0; }
.equipment-price-unit {
    display: block;
    margin-bottom: 2px;
    font-size: .76rem;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.2;
}
.equipment-price-value {
    display: block;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -.005em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.equipment-price-currency {
    margin-left: 2px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--muted);
}
.equipment-price-value--empty {
    color: var(--muted);
    font-weight: 500;
    font-size: .95rem;
}

/* Кнопка «Детали» — иконка у названия */
.equipment-details-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-top: 3px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #2563eb;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.equipment-details-link:hover {
    background: #dbeafe;
    color: #1d4ed8;
}
.equipment-details-link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}
.equipment-details-link i {
    color: inherit;
    font-size: 1.1rem;
    transition: color .15s ease;
}
.equipment-details-link[aria-expanded="true"] {
    background: #2563eb;
    color: #fff;
}

/* Кнопки прижаты к низу */
.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

.secondary-card-action,
.choose-button { width: 100%; }

.secondary-card-action {
    min-height: 45px;
    border: 1px solid var(--line);
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #334155;
    font-weight: 800;
    font-size: .9rem;
    transition: border-color .15s ease;
}
.secondary-card-action:hover { border-color: #cbd5e1; }
.choose-button {
    border: 0;
    min-height: 45px;
    background: var(--primary);
    color: #fff;
    border-radius: 13px;
    font-weight: 800;
    transition: background .15s ease;
}
.choose-button:hover { background: var(--primary-dark); }

/* Палитра обычных карточек техники */
.equipment-card:not(.type-card) .equipment-type {
    color: var(--equipment-label, var(--primary));
}
.equipment-card:not(.type-card) .choose-button {
    background: var(--equipment-action, var(--primary));
}
.equipment-card:not(.type-card) .choose-button:hover {
    background: var(--equipment-action-dark, var(--primary-dark));
}
.equipment-card:not(.type-card) .secondary-card-action {
    border-color: var(--equipment-action, var(--line));
    color: var(--equipment-action, #334155);
}
.equipment-card:not(.type-card) .secondary-card-action:hover {
    border-color: var(--equipment-action-dark, #cbd5e1);
}
.equipment-card:not(.type-card) .equipment-details-link {
    color: var(--equipment-action, #2563eb);
}
.equipment-card:not(.type-card) .equipment-details-link:hover {
    background: #eff6ff;
    color: var(--equipment-action-dark, #1d4ed8);
}
.equipment-card:not(.type-card) .equipment-details-link:focus-visible {
    outline-color: var(--equipment-action, #2563eb);
}
.equipment-card:not(.type-card) .equipment-details-link[aria-expanded="true"] {
    background: var(--equipment-action, #2563eb);
    color: #fff;
}

/* ---------------------------------------------------------
   Раскрывающиеся детали — inline
--------------------------------------------------------- */
.equipment-details {
    display: grid;
    gap: 8px;
    margin: 4px 0 14px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: .85rem;
    line-height: 1.4;
    max-height: 280px;
    overflow-y: auto;
    animation: detailsFadeIn .18s ease;
}
.equipment-details[hidden] { display: none; }
@keyframes detailsFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.equipment-detail-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
    align-items: baseline;
}
.equipment-detail-row > span {
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.35;
}
.equipment-detail-row > strong {
    color: var(--ink);
    font-weight: 600;
    font-size: .85rem;
    overflow-wrap: anywhere;
}
.equipment-detail-row .availability {
    font-size: .82rem;
    font-weight: 700;
}
.equipment-detail-empty {
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.45;
}

.equipment-details::-webkit-scrollbar { width: 6px; }
.equipment-details::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* ---------------------------------------------------------
   Availability labels
--------------------------------------------------------- */
.availability {
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    min-height: 1.1em;
}
.availability-possible { color: #157347; }
.availability-on_request { color: #7c5b12; }
.availability-blocked { color: #b42318; }
.availability-available { color: #157347; }
.availability-unavailable { color: #b42318; }
.availability-unknown { color: #7c5b12; }
.availability-note {
    margin-top: 4px;
    color: #666f78;
    font-size: .75rem;
    line-height: 1.45;
}
.detail-availability-note { font-size: .9rem; margin-top: 10px; }

/* ---------------------------------------------------------
   Кнопки и общие элементы
--------------------------------------------------------- */
.eyebrow {
    font-size: .74rem;
    letter-spacing: .12em;
    font-weight: 850;
    color: var(--primary);
}
.primary-button, .secondary-button, .filter-button, .detail-order, .choose-button, .detail-secondary {
    border-radius: 14px;
    min-height: 48px;
    padding: 12px 18px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    font-weight: 800;
}
.primary-button, .detail-order, .filter-button {
    background: var(--primary);
    color: #fff;
}
.primary-button:hover, .detail-order:hover, .filter-button:hover { background: var(--primary-dark); }
.secondary-button, .detail-secondary {
    background: #fff;
    border-color: var(--line);
    color: #334155;
}
.secondary-button:hover, .detail-secondary:hover { border-color: #cbd5e1; }
.hero-actions {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.catalog-hero .secondary-button {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}
.catalog-hero .secondary-button:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ---------------------------------------------------------
   EMPTY STATE
--------------------------------------------------------- */
.empty-state {
    grid-column: 1 / -1;
    padding: 50px 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    background: #fff;
    text-align: center;
}
.empty-state.compact { padding: 30px; }
.empty-icon { font-size: 2rem; }
.empty-state h3 { margin: 10px 0 6px; }
.empty-state p {
    max-width: 620px;
    margin: 0 auto 16px;
    color: var(--muted);
    line-height: 1.65;
}

/* ---------------------------------------------------------
   INFO / SEO / STEPS / FAQ
--------------------------------------------------------- */
.info-section { background: #111827; color: #fff; padding: 42px 0; }
.info-section .eyebrow { color: #ffb0b9; }
.info-section h2 { color: #fff; }
.info-section p { color: #cbd5e1; }

.seo-section, .steps-section, .faq-section, .seo-long, .detail-seo { padding: 56px 0; }
.seo-section { background: #fff; }
.seo-grid { display: grid; grid-template-columns: .9fr 1.4fr; gap: 40px; }
.seo-grid p, .seo-long p, .detail-seo p, .faq-list p {
    color: var(--muted);
    line-height: 1.8;
}
.work-grid, .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}
.work-grid article, .steps-grid article {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 18px;
}
.work-grid span { font-size: 1.55rem; }
.work-grid h3, .steps-grid h3 { margin: 11px 0 6px; font-size: 1rem; }
.work-grid p, .steps-grid p { margin: 0; font-size: .9rem; }
.steps-grid b {
    width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--primary); color: #fff;
}
.faq-list article { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-list h3 { margin: 0; font-size: 1.02rem; }
.faq-list p { margin: 8px 0 0; }
.seo-long { background: #fff; border-top: 1px solid var(--line); }
.seo-long a { color: var(--primary); font-weight: 800; text-decoration: none; }

/* ---------------------------------------------------------
   DETAIL PAGE
--------------------------------------------------------- */
.detail-hero { padding: 38px 0 54px; }
.detail-breadcrumbs { margin-bottom: 18px; }
.detail-breadcrumbs a { text-decoration: none; color: #475569; font-weight: 700; }
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 34px;
    align-items: start;
}
.detail-main-photo {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #eef2f7;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow);
}
.detail-main-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}
.detail-thumbs img {
    display: block; width: 100%; aspect-ratio: 1; object-fit: cover;
    border-radius: 11px; border: 1px solid var(--line);
}
.detail-info { padding-top: 10px; }
.detail-info h1 {
    margin: 8px 0 10px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -.055em;
}
.detail-subtitle { font-size: 1.08rem; color: #475569; }
.detail-location { margin-top: 14px; color: #475569; }
.detail-status-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.detail-text { margin: 22px 0 0; color: #475569; line-height: 1.8; }
.detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
}
.detail-order, .detail-secondary { width: 100%; }
.detail-order { border: 0; }
.detail-secondary { border: 1px solid var(--line); }
.selected-note { margin-top: 12px; color: #64748b; font-size: .84rem; line-height: 1.55; }
.specs-wrap {
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 50px 0;
}
.specs-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.spec {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    min-width: 0;
}
.spec-key { font-size: .78rem; color: var(--muted); }
.spec-value { margin-top: 4px; font-weight: 750; overflow-wrap: anywhere; }

/* ---------------------------------------------------------
   PUBLIC FOOTER
--------------------------------------------------------- */
.public-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner {
    width: min(1280px, calc(100% - 36px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #64748b;
    font-size: .86rem;
}
.footer-inner a { text-decoration: none; color: #334155; font-weight: 750; }

/* ---------------------------------------------------------
   Local order dialog
--------------------------------------------------------- */
.equipment-order-modal[hidden] { display: none; }
.equipment-order-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.equipment-order-backdrop {
    position: absolute; inset: 0;
    background: rgba(15,23,42,.58);
    backdrop-filter: blur(3px);
}
.equipment-order-dialog {
    position: relative;
    width: min(620px, 100%);
    max-height: min(760px, calc(100vh - 24px));
    overflow: auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(15,23,42,.28);
    padding: 28px;
}
.equipment-order-close {
    position: absolute;
    top: 13px;
    right: 15px;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 30px;
    line-height: 1;
}
.order-kicker { color: var(--primary); font-size: .73rem; font-weight: 850; letter-spacing: .12em; }
.equipment-order-dialog h2 { margin: 8px 42px 8px 0; font-size: 1.8rem; letter-spacing: -.04em; }
.order-lead { margin: 0; color: var(--muted); line-height: 1.55; }
.order-selected {
    margin-top: 18px;
    padding: 12px;
    border-radius: 15px;
    background: #f8fafc;
    border: 1px solid var(--line);
}
.order-selected-inner { display: flex; align-items: center; gap: 12px; }
.order-selected-image { width: 74px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.order-selected-title { font-weight: 850; }
.order-selected-meta { margin-top: 2px; color: var(--muted); font-size: .83rem; }
.order-progress { display: flex; gap: 6px; margin-top: 20px; }
.order-progress span { height: 5px; flex: 1; background: #e2e8f0; border-radius: 99px; }
.order-progress span.active { background: var(--primary); }
.order-step { margin-top: 24px; min-height: 170px; }
.order-step h3 { margin: 0 0 8px; font-size: 1.08rem; }
.order-step p { margin: 0 0 14px; color: var(--muted); line-height: 1.55; }
.order-step label { display: block; font-size: .84rem; font-weight: 800; margin-bottom: 7px; }
.order-step input, .order-step textarea, .order-step select {
    width: 100%; max-width: 100%; min-width: 0;
    border: 1px solid var(--line); border-radius: 14px;
    padding: 12px 13px; background: #fff; outline: none;
}
.order-step input, .order-step select { height: 50px; }
.order-step textarea { resize: vertical; min-height: 110px; }
.order-step input:focus, .order-step textarea:focus, .order-step select:focus {
    border-color: #cbd5e1;
    box-shadow: 0 0 0 3px rgba(229,32,55,.08);
}
.order-hint { margin-top: 7px; color: var(--muted); font-size: .8rem; }
.order-summary {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 15px;
    background: #f8fafc;
    border: 1px solid var(--line);
}
.order-summary-row { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
.order-summary-row span { color: var(--muted); font-size: .84rem; }
.order-summary-row strong { overflow-wrap: anywhere; }
.order-error {
    margin-top: 12px;
    padding: 12px 14px;
    background: #fff1f2;
    color: #9f1239;
    border-radius: 12px;
    font-size: .88rem;
    line-height: 1.45;
}
.order-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }
.order-back, .order-next {
    min-height: 47px;
    border-radius: 13px;
    padding: 11px 16px;
    font-weight: 800;
    border: 1px solid var(--line);
}
.order-back { background: #fff; color: #475569; }
.order-back:disabled { opacity: .45; cursor: default; }
.order-next {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    min-width: 126px;
}
.order-next:hover { background: var(--primary-dark); }
.order-next:disabled { opacity: .6; cursor: wait; }

.order-checkbox {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 650 !important;
    cursor: pointer;
}
.order-checkbox input { width: auto !important; height: auto !important; flex: none; }
.order-comment-block { margin-top: 18px; }
.order-optional { font-weight: 500; color: #94a3b8; }

/* ---------------------------------------------------------
   Equipment owners CTA
--------------------------------------------------------- */
.offer-equipment-link { border-color: var(--line); }
.offer-equipment-promo {
    padding: 36px 0;
    background: #f8fafc;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.offer-equipment-promo-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.offer-equipment-promo h2 {
    margin: 8px 0;
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    letter-spacing: -.035em;
}
.offer-equipment-promo p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

/* ---------------------------------------------------------
   SEO TEXT
--------------------------------------------------------- */
.seo-text { margin-top: 45px; background: #fff; border-radius: 16px; padding: 30px; box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.seo-text h2 { text-align: center; margin: 0 0 15px; }
.seo-text p { color: #475569; line-height: 1.8; margin: 0 0 12px; }
.seo-text a, .rent-card a { color: #e8b56b; font-weight: 700; }

/* ---------------------------------------------------------
   PRICING (детальная карточка)
--------------------------------------------------------- */
.pricing-wrap {
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 50px 0;
}
.pricing-wrap h2 {
    margin: 8px 0 0;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    letter-spacing: -.04em;
}
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.pricing-card {
    flex: 1 1 180px;
    min-width: 160px;
    max-width: 260px;
    padding: 18px 20px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 16px;
}
.pricing-card-head {
    font-size: .78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .09em;
    font-weight: 800;
    margin-bottom: 8px;
}
.pricing-card-price {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ink);
    line-height: 1.1;
}
.pricing-card-currency {
    font-size: 1rem;
    font-weight: 700;
    color: var(--muted);
    margin-left: 2px;
}
.pricing-card-meta {
    margin-top: 6px;
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.4;
}
.pricing-disclaimer {
    margin: 18px 0 0;
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.55;
    max-width: 720px;
}
.pricing-empty {
    margin: 24px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 1000px) {
    .public-nav { display: none; }
    .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-button { width: 100%; }
    .equipment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-grid, .seo-grid { grid-template-columns: 1fr; }
    .work-grid, .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .catalog-hero { padding: 70px 0 56px; background-position: center, 65% center; }
    .catalog-hero h1 { font-size: clamp(1.9rem, 5.5vw, 2.6rem); }
    .catalog-hero .hero-subtitle { font-size: 1rem; }
}

@media (max-width: 700px) {
    .container, .narrow, .public-header-inner, .footer-inner { width: min(100% - 24px, 100%); }
    .public-header-inner { min-height: 66px; }
    .catalog-hero { padding: 54px 0 44px; background-position: center, 72% center; }
    .catalog-hero h1 { font-size: 1.9rem; }
    .hero-actions > * { width: 100%; }

    /* Фильтры на мобильных — только сетка, так как плавающие метки уже глобальные */
    .filters {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .filter-button {
        margin-top: 4px;
    }

    .equipment-grid { grid-template-columns: 1fr; }
    .section-heading, .section-heading.compact { display: block; }
    .section-heading p { margin-top: 12px; }
    .work-grid, .steps-grid { grid-template-columns: 1fr; }
    .detail-actions { grid-template-columns: 1fr; }
    .specs-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { min-height: 64px; }
    .equipment-order-dialog { padding: 22px 16px 16px; border-radius: 20px; }
    .equipment-order-dialog h2 { font-size: 1.5rem; }
    .order-summary-row { grid-template-columns: 1fr; gap: 2px; }
    .order-footer { position: sticky; bottom: 0; background: #fff; padding-top: 10px; }
    .offer-equipment-promo-inner { align-items: stretch; flex-direction: column; }
    .pricing-card { flex: 1 1 100%; max-width: none; }
    .equipment-detail-row { grid-template-columns: 90px 1fr; }
}


/* ============================================================
   Кнопка «Показать на карте»
   ============================================================ */
.map-open-btn {
/*    display: inline-flex;*/
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
    color: #334155;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}
.map-open-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.map-open-btn i {
    font-size: .95rem;
}

/* В hero-блоке — на прозрачном фоне как secondary-button */
.catalog-hero .map-open-btn {
    min-height: 48px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-weight: 800;
    border-radius: 14px;
}
.catalog-hero .map-open-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* ============================================================
   Модальное окно с картой
   ============================================================ */
.pv-map-modal[hidden] { display: none; }
.pv-map-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pv-map-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .65);
    backdrop-filter: blur(3px);
}
.pv-map-modal-dialog {
    position: relative;
    width: min(1200px, 100%);
    height: min(820px, calc(100vh - 40px));
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 90px rgba(15, 23, 42, .35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.pv-map-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}
.pv-map-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.pv-map-modal-title i {
    font-size: 1.4rem;
    color: var(--primary);
    flex-shrink: 0;
}
.pv-map-modal-title h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}
.pv-map-count {
    display: block;
    margin-top: 3px;
    font-size: .8rem;
    color: var(--muted);
    font-weight: 500;
}
.pv-map-close {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: #f1f5f9;
    color: #64748b;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease;
}
.pv-map-close:hover { background: #e2e8f0; color: #1f2937; }
.pv-map-container {
    flex: 1;
    position: relative;
    min-height: 0;
    background: #eef2f7;
}
.pv-map-container .leaflet-container {
    width: 100%;
    height: 100%;
    font-family: inherit;
    z-index: 1;
}
.pv-map-container .leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
}
.pv-map-container .leaflet-popup-content {
    margin: 12px;
    font-family: inherit;
}
.pv-map-container .maplibregl-map {
    width: 100%;
    height: 100%;
    font-family: inherit;
}
.pv-map-container .maplibregl-popup-content {
    border-radius: 12px;
    padding: 12px;
    font-family: inherit;
}
.pv-map-container .maplibregl-popup-close-button {
    top: 2px;
    right: 4px;
    font-size: 18px;
    color: #64748b;
}
.pv-map-container .maplibregl-ctrl-attrib {
    font-size: 11px;
}
.pv-map-marker {
    cursor: pointer;
}
.pv-map-marker--active {
    z-index: 5;
}
.pv-map-marker--active svg {
    filter: drop-shadow(0 6px 10px rgba(232, 181, 107, .55));
}
.pv-map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: var(--muted);
    font-size: .95rem;
    background: rgba(248, 250, 252, .8);
    z-index: 500;
}

@media (max-width: 700px) {
    .pv-map-modal { padding: 0; }
    .pv-map-modal-dialog {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }
    .pv-map-modal-header { padding: 12px 14px; }
    .pv-map-modal-title h2 { font-size: 1rem; }
    .pv-map-modal-title i { font-size: 1.1rem; }
    .pv-map-close { width: 36px; height: 36px; flex-basis: 36px; }
}


/* ============================================================
   Сворачиваемый фильтр + тулбар управления
   ============================================================ */

.filter-toggle-btn {
/*    display: inline-flex;*/
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
    color: #334155;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.filter-toggle-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.filter-toggle-btn[aria-expanded="true"] {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.filter-toggle-btn i { font-size: .95rem; }

.filter-toggle-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
}
.filter-toggle-btn[aria-expanded="true"] .filter-toggle-count {
    background: rgba(255, 255, 255, 0.28);
}
.filter-toggle-count[hidden] { display: none; }

/* Состояния формы */
.filters.is-collapsed {
    display: none;
}
.filters:not(.is-collapsed) {
    margin: 16px 0 24px;
    animation: filterReveal .2s ease;
}
@keyframes filterReveal {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

