/* ================================================================
   style.css — Основные стили для AppartPassport
   ================================================================
   Цветовая схема: сбалансированная, современная
   - Фон: #eef1f5 (светлый серо-голубой)
   - Карточки: #ffffff (белые с легкой тенью)
   - Текст: #1a1e2e (темный)
   - Акцент: #00b894 (изумрудный)
   - Второй акцент: #fdcb6e (приглушенный шафран)
   ================================================================ */

/* ================================================================
   ПЕРЕМЕННЫЕ
   ================================================================ */
:root {
    /* Основные цвета */
    --bg-body: #eef1f5;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f7fa;
    --bg-elevated: #ffffff;
    --bg-input: #f1f3f8;

    /* Текст */
    --text-primary: #1a1e2e;
    --text-secondary: #4a5168;
    --text-muted: #8a92a8;

    /* Акценты */
    --accent-emerald: #00b894;
    --accent-emerald-dark: #008f6f;
    --accent-saffron: #fdcb6e;
    --accent-gradient: linear-gradient(135deg, #00b894, #00a381);

    /* Границы и тени */
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-active: rgba(0, 184, 148, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 35px rgba(0, 184, 148, 0.10);

    /* Скругления */
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;

    /* Шрифты */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ================================================================
   БАЗОВЫЕ СТИЛИ
   ================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a {
    color: var(--accent-emerald);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-emerald-dark);
}

/* ================================================================
   УТИЛИТЫ
   ================================================================ */
.text-emerald {
    color: var(--accent-emerald) !important;
}

.text-saffron {
    color: var(--accent-saffron) !important;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-emerald {
    background: var(--accent-gradient) !important;
}

.bg-card {
    background: var(--bg-card) !important;
}

.bg-body {
    background: var(--bg-body) !important;
}

/* ================================================================
   КНОПКИ
   ================================================================ */
.btn-primary-custom {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 60px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.25);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 184, 148, 0.35);
    color: #fff;
}

.btn-primary-custom:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-outline-custom {
    color: var(--text-secondary);
    border: 1.5px solid rgba(0, 0, 0, 0.10);
    background: transparent;
    padding: 10px 28px;
    border-radius: 60px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
    background: rgba(0, 184, 148, 0.05);
}

.btn-outline-custom:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ================================================================
   НАВИГАЦИЯ
   ================================================================ */
.navbar-custom {
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 18px 0;
    min-height: 90px;
}

.navbar-custom .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.navbar-custom .navbar-brand i {
    color: var(--accent-emerald);
}

.navbar-custom .navbar-brand:hover {
    color: var(--text-primary);
}

.navbar-custom .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.navbar-custom .nav-link:hover {
    color: var(--text-primary) !important;
    background: rgba(0, 0, 0, 0.03);
}

.navbar-custom .nav-link.active {
    color: var(--text-primary) !important;
}

.navbar-toggler {
    border-color: var(--border-subtle);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.6)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ================================================================
   ЛОГОТИП В ХЕДЕРЕ (новый стиль для navbar-brand)
   ================================================================ */
.navbar-brand.site-logo {
    position: static !important;
    padding: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.navbar-brand.site-logo:hover {
    transform: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.navbar-brand.site-logo .logo-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.navbar-brand.site-logo .logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand.site-logo .logo-icon {
    font-size: 2rem;
    color: var(--accent-emerald, #00b894);
    line-height: 1;
}

.navbar-brand.site-logo .logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary, #1a1e2e);
    letter-spacing: -0.5px;
    line-height: 1;
}

.navbar-brand.site-logo .logo-text .highlight {
    background: var(--accent-gradient, linear-gradient(135deg, #00b894, #008f6f));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand.site-logo .logo-tagline {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted, #8a92a8);
    letter-spacing: 0.2px;
    line-height: 1.2;
    padding-left: 2px;
}

/* ================================================================
   ГЕРОЙ-СЕКЦИЯ (отступ уменьшен, т.к. логотип теперь в хедере)
   ================================================================ */
.hero-section {
    padding: 70px 0 50px;
    position: relative;
    overflow: hidden;
}

/* Декоративный градиентный фон */
.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 184, 148, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(253, 203, 110, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-weight: 800;
    font-size: 3.2rem;
    letter-spacing: -1px;
    color: var(--text-primary);
    line-height: 1.1;
}

.hero-section h1 .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .lead {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.6;
}

/* ================================================================
   ПОИСКОВАЯ СТРОКА
   ================================================================ */
.search-box {
    background: var(--bg-input);
    border-radius: 17px;
    padding: 6px 6px 6px 24px;
    border: 1.5px solid var(--border-subtle);
    transition: all 0.3s ease;
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.search-box:focus-within {
    border-color: var(--accent-emerald);
    box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.08);
}

.search-box input {
    border: none;
    padding: 14px 0;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    width: 100%;
    background: transparent;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box .btn {
    border-radius: 40px;
    padding: 12px 32px;
    font-weight: 600;
    flex-shrink: 0;
}

/* ================================================================
   КАРТОЧКИ
   ================================================================ */
.card-tech {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    height: 100%;
    border: 1px solid var(--border-subtle);
    transition: all 0.4s ease;
    box-shadow: var(--shadow-card);
}

.card-tech:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: var(--border-active);
    box-shadow: var(--shadow-hover);
}

.card-tech .icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    background: rgba(0, 184, 148, 0.10);
    color: var(--accent-emerald);
    border: 1px solid rgba(0, 184, 148, 0.08);
}

.card-tech h5 {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.card-tech p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ================================================================
   ПРЕДПРОСМОТР ОТЧЕТА
   ================================================================ */
.report-preview {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.report-preview:hover {
    border-color: var(--border-active);
}

.report-preview .risk-badge {
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-preview .risk-badge.low {
    background: rgba(0, 184, 148, 0.12);
    color: var(--accent-emerald);
}

.report-preview .risk-badge.medium {
    background: rgba(253, 203, 110, 0.15);
    color: #b7950b;
}

.report-preview .risk-badge.high {
    background: rgba(239, 83, 80, 0.12);
    color: #c62828;
}

.report-preview .info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.report-preview .info-row:last-child {
    border-bottom: none;
}

.report-preview .info-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.report-preview .info-value {
    font-weight: 600;
    color: var(--text-primary);
}

.report-preview .info-value.text-success {
    color: var(--accent-emerald) !important;
}

.report-preview .info-value.text-warning {
    color: #b7950b !important;
}

/* ================================================================
   ТАРИФЫ
   ================================================================ */
.price-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    height: 100%;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}

.price-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-active);
    box-shadow: var(--shadow-hover);
}

.price-card.popular {
    border-color: var(--accent-emerald);
    background: rgba(0, 184, 148, 0.03);
}

.price-card .price {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.price-card .price small {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.price-card .badge-popular {
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.65rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.price-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 24px 0;
}

.price-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.price-card ul li:last-child {
    border-bottom: none;
}

.price-card ul li i {
    margin-right: 10px;
    color: var(--accent-emerald);
}

.price-card ul li i.text-danger {
    color: #e74c3c !important;
}

.price-card .btn {
    border-radius: 40px;
    padding: 10px 20px;
    font-weight: 600;
    width: 100%;
}

/* ================================================================
   ФУТЕР
   ================================================================ */
.footer-custom {
    background: #e2e6ed;
    border-top: 1px solid var(--border-subtle);
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.footer-custom a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-custom a:hover {
    color: var(--text-primary);
}

.footer-custom .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}

.footer-custom .social-icons a:hover {
    background: var(--accent-gradient);
    color: #fff;
}

/* ================================================================
   ФОРМЫ
   ================================================================ */
.form-control {
    background: var(--bg-input);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: var(--bg-input);
    border-color: var(--accent-emerald);
    box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.08);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 6px;
}

.form-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ================================================================
   АНИМАЦИИ
   ================================================================ */
.spinner-tech {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    border-top-color: var(--accent-emerald);
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Fade-in анимация для карточек */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ================================================================
   СКРОЛЛБАР
   ================================================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-emerald);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-emerald-dark);
}

/* ================================================================
   АДАПТИВНОСТЬ
   ================================================================ */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }

    .navbar-brand.site-logo .logo-text {
        font-size: 1.5rem;
    }

    .navbar-brand.site-logo .logo-icon {
        font-size: 1.6rem;
    }

    .navbar-brand.site-logo .logo-tagline {
        font-size: 0.65rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0 30px;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .search-box {
        border-radius: 30px;
        padding: 6px 6px 6px 16px;
        flex-wrap: wrap;
    }

    .search-box input {
        font-size: 0.9rem;
        padding: 12px 0;
        width: 100%;
    }

    .search-box .btn {
        width: 100%;
        border-radius: 30px;
        margin-top: 4px;
        justify-content: center;
    }

    .report-preview {
        padding: 20px;
    }

    .report-preview .info-row {
        flex-direction: column;
        gap: 4px;
    }

    .price-card .price {
        font-size: 2.2rem;
    }

    .navbar-brand.site-logo .logo-text {
        font-size: 1.3rem;
    }

    .navbar-brand.site-logo .logo-icon {
        font-size: 1.4rem;
    }

    .navbar-brand.site-logo .logo-tagline {
        font-size: 0.6rem;
    }

    .navbar-brand.site-logo .logo-row {
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .card-tech {
        padding: 20px 16px;
    }

    .price-card {
        padding: 24px 16px;
    }

    .navbar-brand.site-logo .logo-text {
        font-size: 1.1rem;
    }

    .navbar-brand.site-logo .logo-icon {
        font-size: 1.2rem;
    }

    .navbar-brand.site-logo .logo-tagline {
        font-size: 0.5rem;
    }
}

/* ================================================================
   STEP NUMBER
   ================================================================ */
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* ================================================================
   ACCORDION
   ================================================================ */
.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px !important;
    margin-bottom: 8px;
    overflow: hidden;
}

.accordion-button {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 500;
    padding: 16px 20px;
}

.accordion-button:not(.collapsed) {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--border-subtle);
}

.accordion-body {
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: 0 20px 16px;
}

/* ================================================================
   CTA СЕКЦИЯ
   ================================================================ */
.cta-section {
    background: var(--accent-gradient) !important;
    border-radius: var(--radius-lg);
    padding: 48px 32px;
}

.cta-section h3 {
    font-weight: 700;
    color: #fff;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
}

.cta-section .btn-light {
    border-radius: 60px;
    padding: 12px 40px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
    background: #fff;
    border: none;
}

.cta-section .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* ================================================================
   ИНФРАСТРУКТУРА - КАРТА + ПАНЕЛЬ В ОДНОЙ СТРОКЕ
   ================================================================ */

/* Контейнер карты + панели */
#mapWrapper {
    position: relative;
}

#mapWrapper #map {
    height: 500px;
    width: 100%;
}

/* Панель инфраструктуры (справа от карты) */
#infrastructurePanel {
    transition: all 0.3s ease;
    background: #f8f9fa;
    padding: 15px;
    border-left: 1px solid #e0e0e0;
    overflow-y: auto;
    max-height: 500px;
}

#infrastructurePanel .infrastructure-header {
    display: block;
    text-align: left;
    margin-bottom: 12px;
    padding: 6px 8px;
    border-radius: 8px;
}

#infrastructurePanel .infrastructure-header h6 {
    font-size: 0.95rem;
    color: #333;
    margin: 0;
}

#infrastructurePanel .infrastructure-header .badge.bg-emerald {
    background: var(--accent-gradient) !important;
    font-weight: 600;
}

#infrastructurePanel .infrastructure-empty {
    text-align: center;
    padding: 40px 20px;
    color: #adb5bd;
}

#infrastructurePanel .infrastructure-empty i {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

#infrastructurePanel .infrastructure-empty p {
    font-size: 0.9rem;
    margin: 0;
}

#infrastructurePanel .infrastructure-empty small {
    color: #ced4da;
}

#infrastructurePanel .infrastructure-loading {
    text-align: center;
    color: #adb5bd;
    padding: 40px 0;
}

#infrastructurePanel .infrastructure-loading i {
    font-size: 28px;
    display: block;
    margin-bottom: 10px;
}

#infrastructurePanel .infrastructure-loading p {
    font-size: 0.9rem;
    margin: 0;
}

/* Категории внутри панели */
#infrastructurePanel .category-accordion {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

#infrastructurePanel .category-header {
    background: #f8f9fa;
    transition: background 0.2s ease;
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#infrastructurePanel .category-header:hover {
    background: #e9ecef !important;
}

#infrastructurePanel .category-header .fw-medium {
    font-size: 14px;
}

#infrastructurePanel .category-header .badge {
    font-size: 11px;
}

#infrastructurePanel .category-body {
    background: #fafbfc;
    max-height: 300px;
    overflow-y: auto;
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

#infrastructurePanel .category-body::-webkit-scrollbar {
    width: 4px;
}

#infrastructurePanel .category-body::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 4px;
}

#infrastructurePanel .category-body::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 4px;
}

/* Элементы внутри категорий */
#infrastructurePanel .infrastructure-item {
    transition: all 0.2s ease;
    border-left: 3px solid #10b981;
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 4px;
    background: #f8f9fa;
}

#infrastructurePanel .infrastructure-item:hover {
    background: #f1f3f5 !important;
}

#infrastructurePanel .infrastructure-item .btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d;
    padding: 2px 6px;
    font-size: 10px;
    transition: all 0.2s ease;
}

#infrastructurePanel .infrastructure-item .btn-outline-secondary:hover {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

#infrastructurePanel .infrastructure-item strong {
    font-size: 14px;
}

#infrastructurePanel .infrastructure-item .badge.bg-light {
    font-size: 10px;
}

/* Стили для статистики внутри панели */
#infrastructurePanel .infrastructure-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 6px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

#infrastructurePanel .infrastructure-stat:hover {
    border-color: #c8d0d8;
    background: #f8f9fa;
}

#infrastructurePanel .infrastructure-stat .label {
    font-size: 14px;
    color: #495057;
}

#infrastructurePanel .infrastructure-stat .icon {
    font-size: 18px;
    margin-right: 8px;
}

#infrastructurePanel .infrastructure-stat .count {
    font-weight: 600;
    font-size: 16px;
    color: #212529;
    background: #e9ecef;
    padding: 2px 10px;
    border-radius: 12px;
    min-width: 30px;
    text-align: center;
}

#infrastructurePanel .infrastructure-stat .count.zero {
    color: #adb5bd;
    background: #f1f3f5;
}

#infrastructurePanel .infrastructure-total {
    background: linear-gradient(135deg, #00b894, #008f6f);
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 12px;
}

#infrastructurePanel .infrastructure-total .label {
    color: rgba(255, 255, 255, 0.9);
}

#infrastructurePanel .infrastructure-total .count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Анимация */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#infrastructurePanel .category-body {
    animation: slideDown 0.2s ease;
}

/* Адаптивность */
@media (max-width: 768px) {
    #mapWrapper #map {
        height: 300px !important;
    }

    #infrastructurePanel {
        max-width: 100% !important;
        max-height: 300px !important;
        border-left: none !important;
        border-top: 1px solid #e0e0e0;
    }

    #mapWrapper {
        min-height: 300px !important;
    }
}

/* Выравнивание в панели инфраструктуры */
#infrastructurePanel .infrastructure-item {
    text-align: left !important;
}

#infrastructurePanel .infrastructure-item div,
#infrastructurePanel .infrastructure-item strong,
#infrastructurePanel .infrastructure-item span {
    text-align: left !important;
}

#infrastructurePanel .category-header {
    text-align: left !important;
}

#infrastructurePanel .category-body {
    text-align: left !important;
}

/* ================================================================
   СТРАНИЦА КОНТАКТОВ
   ================================================================ */
.contact-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-row .icon-circle {
    flex-shrink: 0;
    margin-bottom: 0;
    width: 46px;
    height: 46px;
    font-size: 20px;
}

.contact-link {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    display: block;
    margin-top: 2px;
}

.contact-link:hover {
    color: var(--accent-emerald);
}

.social-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 184, 148, 0.10);
    color: var(--accent-emerald);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-mini:hover {
    background: var(--accent-gradient);
    color: #fff;
    transform: translateY(-2px);
}

/* ================================================================
   СТРАНИЦА "О НАС" — небольшие дополнения
   ================================================================ */
.card-tech .display-6 {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 4px;
}

/* ================================================================
   СТРАНИЦЫ ОШИБОК (404, 500, error)
   ================================================================ */
.error-section {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
}

/* Декоративные градиенты, как в hero */
.error-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 184, 148, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.error-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(253, 203, 110, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.error-section .container {
    position: relative;
    z-index: 1;
}

/* Огромный номер кода */
.error-code {
    font-size: 8rem;
    font-weight: 900;
    letter-spacing: -4px;
    line-height: 1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    user-select: none;
}

/* Круглая иконка под номером */
.error-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
    background: rgba(0, 184, 148, 0.10);
    color: var(--accent-emerald);
    border: 1px solid rgba(0, 184, 148, 0.15);
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.10);
}

.error-icon-wrap.error-icon-danger {
    background: rgba(239, 83, 80, 0.10);
    color: #e74c3c;
    border-color: rgba(239, 83, 80, 0.18);
    box-shadow: 0 8px 25px rgba(239, 83, 80, 0.10);
}

/* Заголовок */
.error-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    line-height: 1.15;
}

.error-title .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Описание */
.error-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto 32px;
}

/* Кнопки */
.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.error-actions .btn {
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 60px;
}

/* Подсказка над поиском */
.error-hint {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.error-hint i {
    color: var(--accent-saffron);
    margin-right: 4px;
}

/* Блок технических деталей на 500 */
.error-details {
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.error-details details {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 4px 20px;
    box-shadow: var(--shadow-card);
}

.error-details summary {
    cursor: pointer;
    padding: 14px 0;
    font-weight: 600;
    color: var(--text-secondary);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.error-details summary::-webkit-details-marker {
    display: none;
}

.error-details summary i {
    color: var(--accent-emerald);
    transition: transform 0.2s ease;
}

.error-details details[open] summary i {
    transform: rotate(90deg);
}

.error-details-body {
    padding: 8px 0 16px;
    border-top: 1px solid var(--border-subtle);
}

.error-details-row {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.9rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    border-bottom: 1px solid var(--border-subtle);
}

.error-details-row:last-child {
    border-bottom: none;
}

.error-details-label {
    color: var(--text-muted);
    min-width: 100px;
    font-weight: 500;
}

.error-details-row span:last-child {
    color: var(--text-primary);
    word-break: break-word;
}

/* Адаптив */
@media (max-width: 768px) {
    .error-section {
        padding: 50px 0 40px;
    }

    .error-code {
        font-size: 5.5rem;
        letter-spacing: -2px;
    }

    .error-icon-wrap {
        width: 64px;
        height: 64px;
        font-size: 28px;
        margin-bottom: 20px;
    }

    .error-title {
        font-size: 1.7rem;
    }

    .error-text {
        font-size: 0.95rem;
    }

    .error-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .error-details-row {
        flex-direction: column;
        gap: 2px;
    }

    .error-details-label {
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .error-code {
        font-size: 4.5rem;
    }

    .error-title {
        font-size: 1.4rem;
    }
}

/* ================================================================
   COOKIE CONSENT
   ================================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    padding: 16px 0;
    z-index: 1050;
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner__text {
    flex: 1;
    min-width: 240px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cookie-banner__text strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cookie-banner__text p {
    margin: 0;
    line-height: 1.4;
}

.cookie-banner__text a {
    color: var(--accent-emerald);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-banner__actions .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 40px;
    white-space: nowrap;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal__content {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 28px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-modal__content h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
}

.cookie-category {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
}

.cookie-category input {
    margin-top: 4px;
    flex-shrink: 0;
}

.cookie-category strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cookie-category span span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
}

.cookie-modal__actions {
    margin-top: 20px;
    text-align: right;
}

@media (max-width: 576px) {
    .cookie-banner__actions {
        width: 100%;
    }
    .cookie-banner__actions .btn {
        flex: 1;
    }
}

/* ================================================================
   ЮРИДИЧЕСКИЕ СТРАНИЦЫ (privacy, terms, cookies)
   ================================================================ */
.legal-content {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.legal-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--accent-emerald);
    text-decoration: underline;
}

.legal-content table {
    font-size: 0.9rem;
}

.legal-content table code {
    background: rgba(0, 184, 148, 0.08);
    color: var(--accent-emerald-dark);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* ── Мои отчёты: dropdown в шапке ─────────────────────────── */

.my-reports-dropdown .my-reports-header-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.my-reports-dropdown .my-reports-header-item:last-child {
    border-bottom: none !important;
}

/* Скроллбар внутри dropdown */
.my-reports-dropdown #myReportsHeaderItems::-webkit-scrollbar {
    width: 6px;
}

.my-reports-dropdown #myReportsHeaderItems::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

.my-reports-dropdown #myReportsHeaderItems::-webkit-scrollbar-track {
    background: transparent;
}