/* ========== БАЗОВЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Типография */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2.2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; }

/* ========== КНОПКИ ========== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: #0A2463;
    color: white;
}
.btn-primary:hover {
    background-color: #0d2f7d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: #FF6B35;
    color: white;
}
.btn-secondary:hover {
    background-color: #ff7d4d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-small { padding: 8px 16px; font-size: 0.9rem; }
.btn-large { padding: 14px 28px; font-size: 1.1rem; }
.btn-full { width: 100%; }

/* Ссылки для звонков */
.call-button { display: inline-block; }
.call-link {
    color: #0A2463;
    font-weight: 500;
    transition: color 0.3s;
}
.call-link:hover { color: #FF6B35; }

/* ========== ШАПКА ========== */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    height: 80px;
}

.logo h1 {
    font-size: 1.8rem;
    color: #0A2463;
    margin-bottom: 0;
    line-height: 1;
}
.logo-subtitle {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
}
.nav-link {
    padding: 8px 16px;
    font-weight: 500;
    color: #333;
    transition: color 0.3s;
    line-height: 1;
}
.nav-link:hover,
.nav-link.active {
    color: #0A2463;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}
.phone {
    display: flex;
    align-items: center;
    gap: 10px;
}
.phone i { color: #0A2463; font-size: 1.2rem; }
.phone-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
    line-height: 1;
}
.phone-text {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    line-height: 1;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #0A2463;
    cursor: pointer;
    height: 40px;
    width: 40px;
    align-items: center;
    justify-content: center;
}

.mobile-call { display: none; }

/* ========== ГЕРОЙ ========== */
.hero {
    background: linear-gradient(rgba(10,36,99,0.9), rgba(10,36,99,0.8));
    color: white;
    padding: 80px 0;
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.hero-text { flex: 1; }
.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}
.highlight { color: #FF6B35; }
.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}
.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 10px 15px;
    border-radius: 4px;
    backdrop-filter: blur(5px);
}
.feature i { color: #FF6B35; font-size: 1.2rem; }
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-photo {
    width: 606px;
    height: 400px;
    max-width: 100%;
    max-height: none;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* ========== ПРЕИМУЩЕСТВА ========== */
.advantages {
    padding: 80px 0;
    background-color: white;
}
.section-title {
    text-align: center;
    margin-bottom: 10px;
    color: #0A2463;
}
.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 30px;
}
.advantage-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    background-color: #fff;
}
.advantage-card:hover { transform: translateY(-10px); }
.advantage-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0A2463, #1E3A8A);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}
.advantage-icon i { font-size: 1.8rem; color: white; }
.advantage-card h3 { color: #0A2463; margin-bottom: 15px; }

/* ========== О КОМПАНИИ ========== */
.about {
    padding: 80px 0;
    background-color: #f8f9fa;
}
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}
.about-text { flex: 1; }
.about-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.7;
}
.about-features { margin-bottom: 30px; }
.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.about-feature i { color: #28a745; font-size: 1.2rem; }
.certificates h3 { margin-bottom: 15px; color: #333; }
.certificate-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.brand-tag {
    background-color: #e9ecef;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    color: #0A2463;
}
.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.about-photo {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.about-photo:hover { transform: scale(1.02); }

/* ========== ЦЕНЫ ========== */
.prices {
    padding: 80px 0;
    background-color: white;
}
.prices-content {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}
.prices-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.price-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.price-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0A2463, #1E3A8A);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
.price-icon i { font-size: 1.5rem; color: white; }
.price-list { margin-left: 20px; margin-top: 15px; }
.price-list li { margin-bottom: 8px; color: #555; }
.materials { margin-top: 20px; }
.material-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.material-item i { color: #28a745; }
.price-note {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    color: #856404;
}
.price-process {
    flex: 1;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.process-list {
    margin-left: 20px;
    margin-top: 15px;
    margin-bottom: 30px;
}
.process-list li { margin-bottom: 8px; color: #555; }
.installation-points { margin: 30px 0; }
.points-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    margin-top: 20px;
}
.point {
    text-align: center;
    padding: 20px 10px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.point-icon {
    width: 50px;
    height: 50px;
    background-color: #0A2463;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
}
.point-icon i { color: white; font-size: 1.2rem; }
.price-cta {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.payment-methods {
    text-align: center;
    padding: 40px;
    background-color: #f8f9fa;
    border-radius: 8px;
}
.methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}
.method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.method i { font-size: 2.5rem; color: #0A2463; }

/* ========== ГАЛЕРЕЯ ========== */
.gallery {
    padding: 80px 0;
    background-color: #f8f9fa;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px,1fr));
    gap: 20px;
    margin-top: 40px;
}
.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 250px;
    cursor: pointer;
}
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-img { transform: scale(1.05); }

/* ========== ГАЛЕРЕЯ МОДАЛКА ========== */
.gallery-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    background: transparent;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1002;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-close:hover {
    background: rgba(255,107,53,0.9);
    transform: scale(1.1);
}

.modal-gallery-img {
    max-width: 90vw;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.gallery-modal-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    position: relative;
    z-index: 1003;
}

.gallery-modal-nav .btn-control {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(10,36,99,0.9);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-modal-nav .btn-control:hover {
    background-color: #FF6B35;
    transform: scale(1.1);
}

/* ========== ОТЗЫВЫ (БЕСКОНЕЧНАЯ КАРУСЕЛЬ ПО 3) ========== */
.reviews {
    padding: 80px 0;
    background-color: white;
    overflow: hidden;
}
.reviews-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}
.reviews-slider {
    overflow: hidden;
    width: 100%;
}
.reviews-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
    will-change: transform;
}
.review-card {
    flex: 0 0 calc((100% - 60px) / 3);
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    box-sizing: border-box;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.review-avatar {
    width: 50px;
    height: 50px;
    background-color: #0A2463;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.review-avatar i { color: white; font-size: 1.5rem; }
.review-author h4 { margin-bottom: 5px; color: #333; }
.review-date { color: #666; font-size: 0.9rem; }
.review-text { line-height: 1.7; color: #555; }

.reviews-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}
.btn-control {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0A2463;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn-control:hover {
    background-color: #0d2f7d;
    transform: scale(1.05);
}

/* ========== КОНТАКТЫ + КАРТА ========== */
.contacts {
    padding: 80px 0;
    background-color: #f8f9fa;
}
.contacts-content {
    display: flex;
    gap: 50px;
}
.contacts-info { flex: 1; }
.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.contact-icon {
    width: 50px;
    height: 50px;
    background-color: #0A2463;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}
.contact-icon i { color: white; font-size: 1.2rem; }
.contact-details h3 { margin-bottom: 5px; color: #0A2463; }
.contact-note { color: #666; font-size: 0.9rem; margin-top: 5px; }
.contact-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.contacts-map {
    flex: 1.2;
}
.contacts-map h3 {
    color: #0A2463;
    margin-bottom: 20px;
    text-align: center;
}
.map-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.map-container iframe {
    width: 100%;
    height: 450px;
    display: block;
    border: none;
}

/* ========== ФУТЕР ========== */
.footer {
    background-color: #0A2463;
    color: white;
    padding: 60px 0 30px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}
.footer-column p { color: #ccc; margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: #ccc;
    transition: color 0.3s;
}
.footer-links a:hover,
.footer-links a.active {
    color: #FF6B35;
}
.footer-contacts { list-style: none; }
.footer-contacts li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #ccc;
}
.footer-contacts i {
    margin-top: 3px;
    color: #FF6B35;
}
.footer-phone {
    color: white !important;
    font-weight: 500;
    transition: color 0.3s;
}
.footer-phone:hover { color: #FF6B35 !important; }
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 0.9rem;
}
.footer-bottom p { margin-bottom: 5px; }

/* ========== МОДАЛЬНЫЕ ОКНА (ОБЩИЕ) ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    position: relative;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #0A2463;
    color: white;
}
.modal-header h3 { color: white; margin: 0; }
.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    z-index: 1001;
}

/* ========== КАЛЬКУЛЯТОР - ИСПРАВЛЕННАЯ ВЕРСИЯ ========== */
.calculator-modal-content {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    background: white;
    border-radius: 8px;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 25px;
}

.calculator-inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.calculator-inputs .form-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.calculator-inputs label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #0A2463;
    font-size: 0.95rem;
}

.calculator-inputs label i {
    color: #FF6B35;
    width: 18px;
}

.calculator-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: border-color 0.3s;
}

.calculator-input:focus {
    border-color: #0A2463;
    outline: none;
}

.input-range {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.input-range span {
    font-size: 0.8rem;
    color: #666;
    min-width: 45px;
}

.range-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: #ddd;
    border-radius: 3px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0A2463;
    cursor: pointer;
    transition: transform 0.2s;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0A2463;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
}

.calculator-results {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.calculator-results h4 {
    color: #0A2463;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.result-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #0A2463, #1E3A8A);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.result-icon i {
    color: white;
    font-size: 1.1rem;
}

.result-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.result-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 3px;
}

.result-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0A2463;
    line-height: 1.2;
}

.result-value.savings {
    color: #28a745;
}

.calculator-summary {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.calculator-summary p {
    margin-bottom: 5px;
    font-size: 1rem;
}

.summary-note {
    font-size: 0.8rem !important;
    color: #666;
    font-style: italic;
}

.calculator-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.calculator-actions .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
}

/* ========== АДАПТАЦИЯ ========== */
@media (max-width: 1200px) {
    .container { max-width: 95%; }
    .contacts-map { flex: 1.1; }
    .hero-photo {
        width: 100%;
        height: auto;
        max-width: 550px;
        aspect-ratio: 606/400;
    }
}

@media (max-width: 1036px) {
    .nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .header-contacts .phone { display: none; }
    .mobile-call { display: block; }
    .desktop-call { display: none; }
}

@media (max-width: 992px) {
    .hero-content { flex-direction: column; }
    .about-content { flex-direction: column; }
    .prices-content { flex-direction: column; }
    .contacts-content { flex-direction: column; }
    .calculator-inputs { grid-template-columns: 1fr; }
    .results-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); }
    .calculator-actions { flex-direction: column; }
    .calculator-actions .btn { width: 100%; }
    .contacts-map { width: 100%; }
    .map-container iframe { height: 400px; }
    .review-card { flex: 0 0 calc((100% - 30px) / 2); }
    .hero-photo {
        max-width: 100%;
        width: 100%;
        height: auto;
        aspect-ratio: 606/400;
    }
}

@media (max-width: 768px) {
    .nav.active {
        display: block;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 99;
        animation: slideDown 0.3s ease;
    }
    @keyframes slideDown {
        from { transform: translateY(-20px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
    .nav-list { flex-direction: column; gap: 15px; }
    .header-inner { height: 70px; padding: 10px 0; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons { flex-direction: column; }
    .btn-large { width: 100%; text-align: center; }
    .contact-buttons { flex-direction: column; }
    .contact-buttons .btn { width: 100%; }
    .points-grid { grid-template-columns: 1fr; gap: 15px; }
    .methods { flex-direction: column; align-items: center; gap: 20px; }
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 1rem; margin-bottom: 30px; }
    .advantages, .about, .prices, .gallery, .reviews, .contacts { padding: 60px 0; }
    .hero { padding: 60px 0; }
    .gallery-grid { grid-template-columns: 1fr; gap: 15px; }
    .gallery-item { height: 200px; }
    .map-container iframe { height: 350px; }
    .review-card { flex: 0 0 100%; }
    .reviews-track { gap: 20px; }
    .hero-photo {
        width: 100%;
        height: auto;
        aspect-ratio: 606/400;
    }
    
    /* Адаптация калькулятора на мобильных */
    .calculator-inputs {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .results-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .calculator-actions {
        flex-direction: column;
    }
    .calculator-actions .btn {
        width: 100%;
    }
    .calculator-form {
        padding: 15px;
    }
}

@media (max-width: 577px) {
    .header-contacts .call-button { display: none; }
    .hero-title { font-size: 1.8rem; }
    .hero-features { flex-direction: column; gap: 10px; }
    .feature { justify-content: center; }
    .advantages-grid { grid-template-columns: 1fr; gap: 20px; }
    .advantage-card { padding: 20px 15px; }
    .price-card, .price-process { padding: 20px; }
    .review-card { padding: 20px; }
    .contacts-map { padding: 0; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
    .footer { padding: 40px 0 20px; }
    .logo h1 { font-size: 1.5rem; }
    .map-container iframe { height: 300px; }
    .hero-photo {
        width: 100%;
        height: auto;
        aspect-ratio: 606/400;
    }
}

@media (max-width: 400px) {
    .hero-title { font-size: 1.6rem; }
    .btn-large { padding: 12px 20px; font-size: 1rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .map-container iframe { height: 250px; }
    .container { padding: 0 15px; }
    .hero-photo {
        width: 100%;
        height: auto;
        aspect-ratio: 606/400;
    }
}