:root {
            --primary: #1e40af;
            --primary-dark: #1e3a8a;
            --secondary: #f97316;
            --light: #f8fafc;
            --dark: #0f172a;
            --gray: #64748b;
            --light-gray: #e2e8f0;
            --success: #10b981;
            --border-radius: 8px;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --transition: all 0.3s ease;
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: 'Inter', sans-serif;
            line-height: 1.6;
            color: var(--dark);
            background-color: var(--light);
        }
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        .btn {
                        padding: 12px 24px;
            background-color: var(--primary);
            color: white;
            text-decoration: none;
            border-radius: var(--border-radius);
            font-weight: 600;
            text-align: center;
            border: none;
            cursor: pointer;
            transition: var(--transition);
        }
        .btn:hover {
            background-color: var(--primary-dark);
            transform: translateY(-2px);
        }
        .btn-secondary {
            background-color: var(--secondary);
        }
        .btn-secondary:hover {
            background-color: #ea580c;
        }
        .section {
            padding: 80px 0;
        }
        .section-title {
            font-size: 2.5rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: 2rem;
            color: var(--dark);
        }
        .section-subtitle {
            font-size: 1.25rem;
            text-align: center;
            color: var(--gray);
            margin-bottom: 3rem;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }
        /* Header */
        header {
            background-color: white;
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 0;
        }
        .logo img {
            height: 40px;
            width: auto;
        }
        .nav-links {
            display: flex;
            gap: 2rem;
        }
        .nav-link {
            text-decoration: none;
            color: var(--dark);
            font-weight: 500;
            transition: var(--transition);
        }
        .nav-link:hover {
            color: var(--primary);
        }
        .mobile-menu-btn {
            display: none;
            font-size: 1.5rem;
            cursor: pointer;
            margin-left: 1rem;
        }
        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            padding: 4rem 0;
            position: relative;
            overflow: hidden;
        }
        .hero::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon points="0,0 100,100 0,100" fill="rgba(255,255,255,0.05)"/></svg>');
            background-size: cover;
        }
        .hero-content {
            position: relative;
            z-index: 2;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: center;
        }
        .hero-text h1 {
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 1rem;
            line-height: 1.2;
  text-align: center;
        }
        .hero-text p {
            font-size: 1.25rem;
            margin-bottom: 2rem;
            opacity: 0.9;
  text-align: center;
        }
        .hero-features {
             display: grid;
  grid-template-columns: repeat(2, 1fr); /* две колонки */
  gap: 1.5rem;
  margin-bottom: 2rem;
        }
        .feature {
            text-align: center;
            min-width: 120px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .feature-icon {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }
        .feature-title,
        .feature div:last-child {
            font-size: 0.875rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }
.mobile-cta-btn {
  display: none;
}

.content-block {
    background-color: white;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    line-height: 1.7;
    color: var(--dark);
}

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

.content-block h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.content-block em {
    font-style: italic;
    color: var(--secondary);
    font-weight: 500;
}

.hero-features > .mobile-cta-btn {
  display: none; /* повышаем приоритет */
}
        .trust-bar {
            display: flex;
            align-items: center;
            gap: 2rem;
            margin: 1rem 0;
            flex-wrap: wrap;
            justify-content: center;
        }
        .trust-item {
            opacity: 0.8;
            transition: var(--transition);
        }
        .trust-item:hover {
            opacity: 1;
        }
        .hero-form {
            background: white;
            padding: 2rem;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            color: var(--dark);
        }
        .form-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            color: var(--primary);
        }
        .form-group {
            margin-bottom: 1rem;
        }
        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }
        .form-input {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid var(--light-gray);
            border-radius: var(--border-radius);
            font-family: inherit;
            font-size: 1rem;
        }
        .form-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
        }
/* Стили для согласия на обработку ПД */
.consent-group {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    line-height: 1.5;
    font-size: 0.9rem;
    color: var(--gray);
}

.consent-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.consent-text {
    flex: 1;
}

.consent-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
    transition: color var(--transition);
}

.consent-link:hover {
    color: var(--primary-dark);
}

/* Стиль при фокусе (для доступности) */
.consent-label input[type="checkbox"]:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.pdf-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background-color: #f8fafc;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.pdf-icon:hover {
    background-color: #e2e8f0;
    transform: scale(1.02);
}

.pdf-icon-bg {
    width: 80px;
    height: 80px;
    background: url('https://potolok-armstrong-opt.ru/pdf.png') no-repeat center center;
    background-size: contain;
    transition: var(--transition);
}

.pdf-icon:hover .pdf-icon-bg {
    filter: brightness(0.9);
}

/* Валидация: показ ошибки, если не поставлена галочка */
.consent-label input[type="checkbox"]:invalid:not(:focus):not(:placeholder-shown) {
    box-shadow: 0 0 0 2px #ef4444;
}
        /* Benefits Section */
        .benefits-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }
        .benefit-card {
            background: white;
            padding: 2rem;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            transition: var(--transition);
        }
        .benefit-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }
        .benefit-icon {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 1rem;
        }
        .benefit-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }
        /* Products Section */
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 2rem;
        }
        .product-card {
            background: white;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }
        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }
        .product-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
            background-color: var(--light-gray);
        }
        .product-content {
            padding: 1.5rem;
        }
        .product-title {
            font-size: 1.125rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }
        .product-price {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 1rem;
        }
        .product-actions {
            display: flex;
            gap: 0.5rem;
        }
        .product-btn {
            flex: 1;
            padding: 0.75rem;
            text-align: center;
            border-radius: var(--border-radius);
            font-weight: 500;
            text-decoration: none;
            transition: var(--transition);
        }
        /* Кнопка "Запросить" без текста в HTML */
.price-btn {
    background-color: var(--light-gray);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    width: 80px;
    height: 36px;
    min-width: 80px;
    font-weight: 500;
}

.price-btn::before {
    content: "Запросить";
    font-size: 14px;
}

.price-btn:hover {
    background-color: var(--primary);
    color: white;
}
        /* Systems Section */
        .systems-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: center;
        }
        .systems-text h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }
        .systems-text p {
            margin-bottom: 1.5rem;
        }
        .specs-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        .specs-table th,
        .specs-table td {
            padding: 0.75rem;
            text-align: left;
            border-bottom: 1px solid var(--light-gray);
        }
        .specs-table th {
            background-color: var(--light);
            font-weight: 600;
        }
        /* Pricing Table */
        .table-controls {
            display: flex;
            justify-content: space-between;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
            gap: 1rem;
        }
        .filter-input {
            padding: 0.75rem;
            border: 1px solid var(--light-gray);
            border-radius: var(--border-radius);
            font-family: inherit;
            min-width: 250px;
        }
        .pricing-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
        }
        .pricing-table th,
        .pricing-table td {
            padding: 1rem;
            text-align: left;
            border-bottom: 1px solid var(--light-gray);
        }
        .pricing-table th {
            background-color: var(--primary);
            color: white;
            font-weight: 600;
            cursor: pointer;
        }
        .pricing-table th:hover {
            background-color: var(--primary-dark);
        }
        .sort-indicator {
            margin-left: 0.5rem;
        }
        /* Gallery Section */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
        }
        .gallery-item {
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            aspect-ratio: 4/3;
            background-color: var(--light-gray);
        }
        .gallery-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        /* Certificates Section */
        .certificates-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1.5rem;
        }
        .certificate-card {
            background: white;
            padding: 1.5rem;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            text-align: center;
            transition: var(--transition);
        }
        .certificate-card:hover {
            transform: translateY(-5px);
        }
        .certificate-icon {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 1rem;
        }
        .certificate-title {
            font-weight: 600;
            margin-bottom: 1rem;
        }
/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.faq-question {
    background: white;
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-answer {
    background: var(--light);
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}
.faq-answer.open {
    padding: 1.5rem;
    max-height: 2000px; /* Достаточно для длинных ответов */
}
.faq-toggle {
    font-size: 1.5rem;
    transition: var(--transition);
}
.faq-toggle.rotated {
    transform: rotate(45deg);
}
        /* Contact Section */
        .contact-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
        }
        .contact-info h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }
        .contact-details {
            margin-bottom: 2rem;
        }
        .contact-detail {
            display: flex;
            align-items: flex-start;
            margin-bottom: 1rem;
        }
        .contact-icon {
            font-size: 1.25rem;
            color: var(--primary);
            margin-right: 1rem;
            margin-top: 0.25rem;
        }
        .map-container {
            height: 300px;
            background-color: var(--light-gray);
            border-radius: var(--border-radius);
            overflow: hidden;
        }
        /* Footer */
        footer {
            background-color: var(--dark);
            color: white;
            padding: 4rem 0 2rem;
        }
        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }
        .footer-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--light-gray);
    display: block;
}

/* Дополнительные стили для раздела "Документы" */
.footer-column:nth-child(4) .footer-title {
    color: var(--secondary);
}

.footer-column:nth-child(4) .footer-link a:hover {
    color: var(--secondary);
}
        .footer-links {
            list-style: none;
        }
        .footer-link {
            margin-bottom: 0.5rem;
        }
        .footer-link a {
            color: #cbd5e1;
            text-decoration: none;
            transition: var(--transition);
        }
        .footer-link a:hover {
            color: white;
        }
        .footer-bottom {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: #94a3b8;
            font-size: 0.875rem;


}
.footer-bottom a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
}
.footer-bottom a:hover {
    color: var(--secondary); /* оранжевый при наведении */
}
.table-wrapper {
        overflow-x: auto; /* Это ключевое свойство */
        -webkit-overflow-scrolling: touch; /* Улучшает прокрутку на iOS */
    }
        
        /* Responsive */
        @media (max-width: 992px) {
            .hero-content,
            .systems-content,
            .contact-container {
                grid-template-columns: 1fr;
            }
            .hero-text h1 {
                font-size: 2.5rem;
            }
        }
        @media (max-width: 768px) {
            .section {
                padding: 60px 0;
            }
            .section-title {
                font-size: 2rem;
            }
            .hero {
                padding: 2rem 0;
            }
            .hero-features {
                grid-template-columns: 1fr;
            }
            .nav-links {
                display: none;
                flex-direction: column;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background: white;
                box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
                padding: 1rem;
            }
            .nav-links a {
                margin: 0.5rem 0;
            }
 .nav-links.active {display: flex;}
            .mobile-menu-btn {
                display: block;
  cursor: pointer;
            }
.bar1, .bar2, .bar3 {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 6px 0;
    transition: 0.4s;
}

 .pricing-table-wrapper {
        display: block;
        overflow-x: auto; /* на случай fallback */
    }

    .pricing-table,
    .pricing-table thead,
    .pricing-table tbody,
    .pricing-table th,
    .pricing-table td,
    .pricing-table tr {
        display: block;
    }

    .pricing-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .pricing-table tr {
        border: 1px solid var(--light-gray);
        margin-bottom: 1rem;
        padding: 1rem;
        background: white;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
    }

    .pricing-table td {
        /* Добавляем метки как псевдоэлементы */
        position: relative;
        padding-left: 50% !important;
        text-align: right;
        border: none;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .pricing-table td::before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 1rem;
        top: 0.5rem;
        font-weight: 600;
        color: var(--dark);
        text-align: left;
    }

    .pricing-table .btn {
        width: 100%;
        padding: 0.75rem;
        text-align: center;
    }


/* Стили для превращения в крестик */
.toggle .bar1 {
    transform: rotate(-45deg) translate(-6px, 6px);
}
.toggle .bar2 {
    opacity: 0;
}
.toggle .bar3 {
    transform: rotate(45deg) translate(-6px, -6px);
}
            .hero-text .btn {
                margin-bottom: 2rem;
                display: block;
                width: fit-content;
text-align: center;
            }
           .mobile-cta-btn {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
  }

  .mobile-cta-btn .btn {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
        }
        @media (max-width: 576px) {
            .container {
                padding: 0 15px;
            }
            .hero-text h1 {
                font-size: 2rem;
            }
            .hero-form {
                padding: 1.5rem;
            }
            .table-controls {
                flex-direction: column;
            }
            .filter-input {
                min-width: 100%;
            }
        }

/* Calculator Styles */
.calculator-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.calc-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.calc-header {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    padding: 2rem;
    color: white;
}

.calc-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.calc-content {
    padding: 2rem;
}

.calc-input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.calc-input-field {
    display: flex;
    flex-direction: column;
}

.calc-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.calc-input {
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.calc-input:focus {
    outline: 0;
    border-color: var(--primary);
}

.calc-hint {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

.calc-btn-group {
    display: flex;
    gap: 0.75rem;
}

.calc-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.calc-btn-primary {
    background: var(--light-gray);
    color: var(--dark);
}

.calc-btn-primary:hover {
    background: var(--primary);
    color: white;
}

.calc-btn-primary.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 6px rgba(30, 64, 175, 0.3);
}

.calc-results {
    margin-top: 2rem;
}

.calc-results-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.calc-info-box {
    background: linear-gradient(to bottom right, #f0f9ff, #f0fdfa);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.calc-info-box p {
    font-size: 1.125rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.calc-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.calc-result-box {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid;
}

.calc-result-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.calc-result-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.calc-result-unit {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

.calc-box-green {
    background: linear-gradient(135deg, #f0fdf4, #dbeafe);
    border-color: #10b981;
}
.calc-box-green .calc-result-value { color: #059669; }

.calc-box-yellow {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #eab308;
}
.calc-box-yellow .calc-result-value { color: #ca8a04; }

.calc-box-purple {
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    border-color: #a855f7;
}
.calc-box-purple .calc-result-value { color: #9333ea; }

.calc-box-red {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #ef4444;
}
.calc-box-red .calc-result-value { color: #dc2626; }

.calc-box-cyan {
    background: linear-gradient(135deg, #ecf9ff, #cffafe);
    border-color: #06b6d4;
}
.calc-box-cyan .calc-result-value { color: #0891b2; }

.calc-box-teal {
    background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
    border-color: #14b8a6;
}
.calc-box-teal .calc-result-value { color: #0d9488; }

.calc-box-amber {
    background: linear-gradient(135deg, #fffbeb, #fef08a);
    border-color: #f59e0b;
    grid-column: 1 / -1;
}
.calc-box-amber .calc-result-value { color: #d97706; }

.calc-info-alert {
    margin-top: 2rem;
    background: #eff6ff;
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    color: var(--dark);
}

.calc-info-alert strong {
    color: var(--primary);
}

.calc-reset-btn {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.calc-footer {
    background: var(--light);
    padding: 1.5rem;
    border-top: 1px solid var(--light-gray);
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray);
}

.calculator-seo-text {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.calculator-seo-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .calc-input-group {
        grid-template-columns: 1fr;
    }
    
    .calc-results-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-box-amber {
        grid-column: 1;
    }

 .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    /* На мобильных устройствах уменьшаем отступы */
    footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 1.5rem;
    }
}

/* Стили для фильтров */
.filters-container {
    margin-bottom: 2rem;
    text-align: center;
}
.filters-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}
.filter-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}
.filter-btn:hover {
    background: #e6e6e6;
}
.filter-btn.active {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}
.filter-btn.active:hover {
    background: #0055aa;
}
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    padding: 15px 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: var(--transition);
}
.cookie-banner.show {
    transform: translateY(0);
}
.cookie-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 300px;
    font-size: 0.95rem;
}
.cookie-content p a {
    color: var(--primary);
    text-decoration: underline;
}
.cookie-buttons {
    display: flex;
    gap: 10px;
}
.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
}
.btn-small:hover {
    opacity: 0.9;
}
.form-note {
    margin-top: 8px;
    color: var(--gray);
    font-size: 0.875rem;
}

.form-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 4px;
    display: block;
}
.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--gray);
    font-style: italic;
}
.optional {
    color: var(--gray);
    font-weight: normal;
    font-size: 0.9rem;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .filters-buttons {
        flex-direction: column;
        align-items: center;
    }
    .filter-btn {
        width: 100%;
        max-width: 300px;
    }
.cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        min-width: 100%;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

    /* Стили для сетки городов */
    .city-selector {
        margin-bottom: 25px;
    }
    
    .city-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 15px;
    }
    
    .city-tab {
        padding: 8px 16px;
        background: white;
        border: 1px solid var(--light-gray);
        border-radius: 20px;
        font-size: 0.9rem;
        cursor: pointer;
        transition: var(--transition);
        color: var(--dark);
        font-weight: 500;
    }
    
    .city-tab:hover {
        border-color: var(--primary);
        color: var(--primary);
    }
    
    .city-tab.active {
        background: var(--primary);
        border-color: var(--primary);
        color: white;
    }

    /* Анимация обновления данных */
    .contact-details.fade-out, .map-container.fade-out {
        opacity: 0;
        transform: translateY(5px);
    }
    
    .contact-details, .map-container {
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    /* Скрытие элементов */
    .map-container.hidden, .contact-detail.hidden {
        display: none !important;
    }

    /* Контейнер карты возвращен к исходному виду */
    #map-placeholder {
        width: 100%;
        height: 450px; /* Фиксированная высота как в конструкторе */
        border-radius: var(--border-radius);
        background-color: var(--light-gray);
        overflow: hidden; /* Важно для скругления углов самой карты */
    }

    /* Адаптивность для мобилок */
    @media (max-width: 768px) {
        .city-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
        }
        .city-tab {
            text-align: center;
            padding: 10px 5px;
        }
        #map-placeholder {
            height: 350px;
        }
    }