* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
    display: none;
}

html, body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    background: #FFFFFF;
    color: #1F2A3A;
    position: relative;
    min-height: 100vh;
}

body.menu-open {
    overflow: hidden;
}

.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.effect {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    animation: floatEffect 25s ease-in-out infinite;
}

.effect-1 { animation-delay: 0s; animation-duration: 22s; opacity: 0.25; }
.effect-2 { animation-delay: 3s; animation-duration: 28s; opacity: 0.2; }
.effect-3 { animation-delay: 6s; animation-duration: 25s; opacity: 0.25; }
.effect-4 { animation-delay: 9s; animation-duration: 30s; opacity: 0.2; }

@keyframes floatEffect {
    0% { transform: scale(1) rotate(0deg); opacity: 0.2; }
    50% { transform: scale(1.05) rotate(1deg); opacity: 0.35; }
    100% { transform: scale(1) rotate(0deg); opacity: 0.2; }
}

@media (max-width: 768px) {
    .effect { opacity: 0.15; }
    @keyframes floatEffect {
        0% { transform: scale(1); opacity: 0.12; }
        50% { transform: scale(1.03); opacity: 0.2; }
        100% { transform: scale(1); opacity: 0.12; }
    }
}

@media (max-width: 560px) {
    .effect { opacity: 0.1; }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.hero-bg-city {
    position: absolute;
    bottom: 180px;
    right: 0;
    width: 130%;
    max-width: 3000px;
    height: auto;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg-city img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .hero-bg-city {
        display: none;
    }
}

header {
    background: #FFFFFF;
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid #EEF2F8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(2px);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.logo img { height: 30px; width: auto; display: block; }

.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 102;
}

.burger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: #1F2A3A;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger-btn.active .burger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger-btn.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-btn.active .burger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: #1F2A3A;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.2s;
    white-space: nowrap;
    cursor: pointer;
}

.nav-links a:hover { color: #F61722; }

@media (max-width: 900px) {
    .burger-btn {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #FFFFFF;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        padding: 80px 24px 40px;
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 101;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        padding: 16px 0;
        border-bottom: 1px solid #EEF2F8;
        font-size: 1.1rem;
        font-weight: 600;
        white-space: normal;
        text-align: right;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

.header-phone {
    color: #1F2A3A;
    font-weight: 800;
    text-decoration: none;
    background: #F0F2F5;
    padding: 8px 18px;
    border-radius: 40px;
    transition: 0.2s;
    white-space: nowrap;
}

.header-phone i { color: #F61722; margin-right: 8px; }
.header-phone:hover { background: #e6e9ef; }

.hero {
    background: linear-gradient(115deg, #0A1A2E 0%, #102B44 100%);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
    z-index: 1;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    position: relative;
    z-index: 2;
}

.hero-left { flex: 1; max-width: 580px; }

.hero-left h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    color: white;
    margin-bottom: 30px;
}

.red-letter { color: #F61722; }

.small-subtitle {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    display: inline-block;
    margin-top: 8px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 12px;
}

.btn-red, .btn-outline, .btn-white, .btn-all-reviews, .btn-service-detail, .btn-submit {
    cursor: pointer;
}

.btn-red {
    background: #F61722;
    color: white;
    padding: 14px 28px;
    border-radius: 48px;
    text-decoration: none;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.25s;
    border: none;
}

.btn-red:hover { background: #d4131e; transform: translateY(-2px); }

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 14px 28px;
    border-radius: 48px;
    text-decoration: none;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.25s;
}

.btn-outline:hover { border-color: #F61722; color: #F61722; background: rgba(246,23,34,0.05); }

.hero-wave-separator {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 5;
    pointer-events: none;
}

.waves-svg { display: block; width: 100%; height: auto; min-height: 80px; animation: gentleWave 6s ease-in-out infinite; transform-origin: center; }

@keyframes gentleWave {
    0% { transform: translateX(0) translateY(0) scaleX(1); }
    50% { transform: translateX(-0.5%) translateY(2px) scaleX(1.005); }
    100% { transform: translateX(0) translateY(0) scaleX(1); }
}

.trust, .projects, .about, .team, .services, .installment, .contacts {
    padding: 70px 0;
    position: relative;
    z-index: 2;
    background: transparent;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 6vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 52px;
    color: #1F2A3A;
}

.section-title:after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: #F61722;
    margin: 12px auto 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.review-card {
    background: rgba(248, 249, 252, 0.9);
    backdrop-filter: blur(2px);
    border-radius: 28px;
    padding: 32px 24px;
    border: 2px solid #4F6F8C;
    transition: all 0.3s ease;
    cursor: pointer;
}

.review-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(79, 111, 140, 0.15); border-color: #F61722; background: rgba(248, 249, 252, 0.98); }
.review-card i { font-size: 2rem; color: #4F6F8C; margin-bottom: 16px; display: inline-block; transition: color 0.3s ease; }
.review-card:hover i { color: #F61722; }
.review-card p { font-weight: 500; font-size: 1rem; line-height: 1.45; color: #2c3e4f; }

.reviews-button-wrapper { text-align: center; margin-top: 48px; }

.btn-all-reviews {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    color: #1F2A3A;
    border: 2px solid #4F6F8C;
    border-radius: 48px;
    padding: 14px 36px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-all-reviews:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(79, 111, 140, 0.2); }
.btn-all-reviews i:last-child { transition: transform 0.3s ease; }
.btn-all-reviews:hover i:last-child { transform: translateX(5px); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.project-item {
    background: rgba(79, 111, 140, 0.9);
    backdrop-filter: blur(2px);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    color: white;
    cursor: pointer;
}

.project-item:hover { transform: translateY(-8px); box-shadow: 0 25px 40px rgba(0,0,0,0.2); background: rgba(61, 90, 115, 0.95); }
.project-img { height: 220px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.project-img-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.project-item:hover .project-img-image { transform: scale(1.05); }
.badge-profit { background: #F61722; color: white; padding: 6px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 800; position: absolute; top: 18px; left: 18px; z-index: 2; }
.project-content { padding: 24px; color: white; }
.project-content h3 { font-size: 1.45rem; font-weight: 800; margin-bottom: 12px; }
.project-content p { color: rgba(255, 255, 255, 0.9); margin-bottom: 20px; line-height: 1.45; }

.btn-small {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-small:hover { background: #F61722; border-color: #F61722; transform: translateY(-2px); }

.about-bordered, .services-bordered, .contacts-bordered {
    border: 4px solid #4F6F8C;
    border-radius: 40px;
    padding: 40px;
    transition: none;
    background: rgba(252, 253, 255, 0.9);
    backdrop-filter: blur(2px);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.about-text h2 { font-size: clamp(1.8rem, 5vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.about-text .role { font-weight: 800; color: #F61722; margin-bottom: 24px; border-left: 4px solid #F61722; padding-left: 16px; display: inline-block; }
.about-text p { margin-bottom: 18px; line-height: 1.5; color: #2c3e4f; }
.about-img img { width: 100%; border-radius: 32px; aspect-ratio: 3/4; object-fit: cover; box-shadow: 0 20px 30px -10px rgba(0,0,0,0.1); }

.team-photo-wrapper {
    text-align: center;
    margin-bottom: 48px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.12);
    border: 4px solid #4F6F8C;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
}

.team-photo-wrapper img { width: 100%; height: auto; display: block; object-fit: cover; max-height: 480px; object-position: center 30%; }

.team-row-leader {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}

.team-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(40px, 8vw, 120px);
}

.member {
    text-align: center;
    width: 200px;
    transition: none;
}

.member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #4F6F8C;
    padding: 2px;
    background: white;
    transition: none;
}

.member p {
    margin-top: 16px;
    font-weight: 800;
    font-size: 0.95rem;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #F8F9FC;
    border: 2px solid #4F6F8C;
    border-radius: 28px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s ease;
    width: calc(33.333% - 28px);
    min-width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.service-card i { font-size: 2.5rem; color: #4F6F8C; margin-bottom: 20px; display: block; transition: all 0.3s ease; }
.service-card h3 { font-size: 1.3rem; font-weight: 800; color: #1F2A3A; margin-bottom: 12px; line-height: 1.3; }
.service-card p { font-size: 0.95rem; font-weight: 500; color: #4a5b6e; margin-bottom: 20px; line-height: 1.5; flex-grow: 1; }

.btn-service-detail {
    background: transparent;
    color: #4F6F8C;
    border: 2px solid #4F6F8C;
    border-radius: 48px;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}

.btn-service-detail:hover { background: #4F6F8C; color: white; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(79, 111, 140, 0.3); }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(79, 111, 140, 0.15); border-color: #F61722; }
.service-card:hover i { color: #F61722; transform: scale(1.05); }
.service-card:hover h3 { color: #F61722; }
.service-card:hover .btn-service-detail { border-color: #F61722; color: #F61722; }
.service-card:hover .btn-service-detail:hover { background: #F61722; color: white; border-color: #F61722; }

@media (min-width: 768px) and (max-width: 991px) {
    .service-card { width: calc(50% - 28px); }
    .service-card:nth-child(4), .service-card:nth-child(5) { width: calc(50% - 28px); }
}

@media (max-width: 767px) {
    .service-card { width: 100%; max-width: 400px; }
    .service-card:nth-child(4), .service-card:nth-child(5) { width: 100%; max-width: 400px; }
}

.installment-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    background: rgba(10, 26, 48, 0.85);
    backdrop-filter: blur(2px);
    border-radius: 40px;
    padding: 48px 56px;
    border: 4px solid #4F6F8C;
    transition: all 0.3s ease;
    cursor: pointer;
}

.installment-grid:hover { border-color: #F61722; background: rgba(10, 26, 48, 0.92); transform: translateY(-3px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.installment h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 800; margin-bottom: 18px; letter-spacing: -0.3px; color: white; }
.installment p { font-size: 1.05rem; max-width: 550px; opacity: 0.95; line-height: 1.4; color: rgba(255, 255, 255, 0.9); }

.btn-white {
    background: white;
    color: #0A1A30;
    padding: 14px 36px;
    border-radius: 48px;
    text-decoration: none;
    font-weight: 800;
    transition: 0.2s;
    display: inline-block;
    border: none;
}
.btn-white:hover { background: #f0f0f0; transform: scale(1.02); }

.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.contacts-card, .form-card {
    background: linear-gradient(135deg, #F8F9FC 0%, #FFFFFF 100%);
    border-radius: 32px;
    padding: 32px;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.08);
    border: 1px solid #E9EDF2;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid #E9EDF2;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item:last-child { border-bottom: none; }
.contact-item:hover { transform: translateX(5px); }

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4F6F8C 0%, #3a5a73 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon { background: linear-gradient(135deg, #F61722 0%, #d4131e 100%); transform: scale(1.05); }
.contact-icon i { font-size: 1.5rem; color: white; }
.contact-details { flex: 1; }
.contact-details h4 { font-size: 0.85rem; font-weight: 700; color: #4F6F8C; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.contact-details a, .contact-details p { font-size: 1.1rem; font-weight: 600; color: #1F2A3A; text-decoration: none; line-height: 1.4; word-break: break-word; }
.contact-details a:hover { color: #F61722; }

.social-links { display: flex; gap: 16px; margin-top: 4px; flex-wrap: wrap; }
.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #1F2A3A;
    text-decoration: none;
    padding: 6px 14px;
    background: #F0F2F5;
    border-radius: 40px;
    transition: all 0.3s ease;
}
.social-links a i { font-size: 1.1rem; color: #4F6F8C; }
.social-links a:hover { background: #4F6F8C; color: white; }
.social-links a:hover i { color: white; }

.form-card h3 { font-size: clamp(1.5rem, 4vw, 1.8rem); font-weight: 800; margin-bottom: 12px; color: #1F2A3A; }
.form-card > p { color: #4a5b6e; margin-bottom: 28px; }

.form-group { position: relative; margin-bottom: 20px; }
.form-group i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #4F6F8C; font-size: 1.1rem; z-index: 1; }
.form-group textarea ~ i { top: 22px; transform: none; }

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border-radius: 48px;
    border: 1px solid #E9EDF2;
    font-family: inherit;
    font-size: 0.95rem;
    background: white;
    transition: all 0.3s ease;
}
.form-group textarea { border-radius: 28px; resize: vertical; padding-top: 16px; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #4F6F8C; box-shadow: 0 0 0 3px rgba(79, 111, 140, 0.1); }

.btn-submit {
    background: linear-gradient(135deg, #4F6F8C 0%, #3a5a73 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 48px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-submit:hover { background: linear-gradient(135deg, #F61722 0%, #d4131e 100%); transform: translateY(-2px); box-shadow: 0 10px 25px -8px rgba(246, 23, 34, 0.3); }

.map-container { border-radius: 32px; overflow: hidden; box-shadow: 0 20px 35px -12px rgba(0,0,0,0.1); border: 1px solid #E9EDF2; }
.map-container iframe { display: block; width: 100%; height: 400px; border: 0; }

footer {
    background: #F5F7FC;
    color: #3a4b5e;
    padding: 32px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #e2e8f0;
    position: relative;
    z-index: 2;
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 16px;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-container {
    position: relative;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    background: white;
    border-radius: 32px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
}
.modal-overlay.active .modal-container { transform: scale(1); }
.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #F61722;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover { background: #d4131e; transform: rotate(90deg); }
.modal-content { padding: 48px; overflow-y: auto; max-height: 85vh; }
.modal-content h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); font-weight: 800; color: #1F2A3A; margin-bottom: 16px; border-left: 4px solid #F61722; padding-left: 20px; }
.modal-content h3 { font-size: 1.3rem; font-weight: 700; color: #4F6F8C; margin: 24px 0 12px 0; }
.modal-content p { line-height: 1.6; color: #2c3e4f; margin-bottom: 16px; }
.modal-content strong { color: #F61722; }
.modal-content .highlight { background: #F8F9FC; padding: 20px; border-radius: 20px; margin: 20px 0; border-left: 4px solid #F61722; }
.modal-content ul, .modal-content ol { margin: 16px 0; padding-left: 24px; }
.modal-content li { margin-bottom: 8px; line-height: 1.5; }

@media (max-width: 1024px) {
    .about-wrapper, .contacts-wrapper, .installment-grid { gap: 30px; }
    .installment-grid { padding: 32px; }
    .team-flex { gap: 40px; }
}

@media (max-width: 900px) {
    .hero-inner { flex-direction: column; text-align: center; padding: 40px 24px 50px; }
    .hero-left { max-width: 100%; text-align: center; }
    .hero-buttons { justify-content: center; }
    .about-wrapper, .contacts-wrapper, .installment-grid { grid-template-columns: 1fr; }
    .installment-grid { text-align: center; justify-items: center; }
    .hero { min-height: auto; padding: 100px 0 60px; }
    .team-photo-wrapper img { max-height: 320px; }
    .waves-svg { min-height: 50px; }
    .about-bordered, .services-bordered, .contacts-bordered { padding: 24px; }
    .map-container iframe { height: 350px; }
    .contacts-card, .form-card { padding: 24px; }
}

@media (max-width: 767px) {
    .container { padding: 0 16px; }
    .trust-grid, .projects-grid { grid-template-columns: 1fr; max-width: 450px; margin-left: auto; margin-right: auto; }
    .service-card { width: 100%; max-width: 400px; margin-left: auto; margin-right: auto; }
    .header-phone span { display: none; }
    .header-phone i { margin-right: 0; }
    .header-phone { padding: 8px 12px; }
    .modal-content { padding: 32px 20px; }
    .modal-close { top: 12px; right: 12px; }
}

@media (max-width: 560px) {
    .hero-left h1 { font-size: 2rem; }
    .small-subtitle { font-size: 1.1rem; }
    .hero-buttons .btn-red, .hero-buttons .btn-outline { padding: 10px 18px; font-size: 0.8rem; width: 100%; justify-content: center; }
    .section-title { font-size: 1.8rem; }
    .logo img { height: 25px; }
    .team-photo-wrapper img { max-height: 220px; }
    .waves-svg { min-height: 35px; }
    .about-bordered, .services-bordered, .contacts-bordered { padding: 16px; }
    .installment-grid { padding: 24px 20px; }
    .contact-details a, .contact-details p { font-size: 0.95rem; }
    .contact-icon { width: 42px; height: 42px; }
    .contact-icon i { font-size: 1.2rem; }
    .map-container iframe { height: 280px; }
}
    

/* =====================================================
   RESPONSIVE PATCH 2026-05
   Полная адаптация: desktop / tablet / mobile / 320px
   ===================================================== */
:root {
    --container-x: clamp(16px, 3vw, 32px);
    --section-y: clamp(48px, 7vw, 70px);
    --card-radius: clamp(22px, 4vw, 40px);
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 84px;
}

body {
    overflow-wrap: break-word;
}

*, *::before, *::after {
    min-width: 0;
}

img, svg, video, canvas, iframe {
    max-width: 100%;
}

button, input, textarea, select, a {
    -webkit-tap-highlight-color: transparent;
}

section[id] {
    scroll-margin-top: 84px;
}

.container {
    width: 100%;
    padding-inline: var(--container-x);
}

header {
    padding-block: 10px;
}

.header-flex {
    flex-wrap: nowrap;
    gap: clamp(10px, 2vw, 24px);
}

.logo { order: 1; flex: 0 0 auto; }
.nav-links { order: 2; flex: 1 1 auto; min-width: 0; align-items: center; }
.header-phone { order: 3; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.header-phone i { margin-right: 0; }
.burger-btn { order: 4; flex: 0 0 auto; }

.nav-links a,
.btn-red,
.btn-outline,
.btn-white,
.btn-all-reviews,
.btn-service-detail,
.btn-submit,
.btn-small {
    line-height: 1.25;
}

.btn-red,
.btn-outline,
.btn-white,
.btn-all-reviews,
.btn-service-detail,
.btn-submit {
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

.hero {
    min-height: 100svh;
}

.hero-inner {
    width: 100%;
    min-width: 0;
}

.hero-left h1 {
    font-size: clamp(2.25rem, 5.5vw, 4rem);
}

.trust, .projects, .about, .team, .services, .installment, .contacts {
    padding-block: var(--section-y);
}

.trust-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.review-card,
.project-item,
.contacts-card,
.form-card,
.map-container,
.modal-container {
    overflow-wrap: anywhere;
}

.about-bordered,
.services-bordered,
.contacts-bordered,
.installment-grid {
    border-radius: var(--card-radius);
}

.about-wrapper,
.contacts-wrapper,
.installment-grid {
    min-width: 0;
}

.about-img img {
    height: auto;
    max-height: 680px;
}

.team-photo-wrapper img {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 480px;
    object-fit: cover;
}

.team-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.member {
    width: 100%;
    max-width: 220px;
    margin-inline: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.service-card,
.service-card:nth-child(4),
.service-card:nth-child(5) {
    width: auto;
    min-width: 0;
    max-width: none;
    flex-shrink: 1;
}

.form-group input,
.form-group textarea {
    min-height: 48px;
}

.map-container iframe {
    min-height: 260px;
}

.modal-overlay {
    padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
}

@media (max-width: 1180px) {
    .nav-links {
gap: 18px;
    }

    .nav-links a {
font-size: 0.9rem;
    }

    .header-phone {
padding-inline: 14px;
    }
}

@media (max-width: 1100px) {
    .burger-btn {
display: flex;
margin-left: 2px;
    }

    .header-phone {
margin-left: auto;
    }

    .nav-links {
position: fixed;
top: 0;
right: 0;
width: min(86vw, 360px);
height: 100svh;
background: #FFFFFF;
flex-direction: column;
justify-content: flex-start;
align-items: stretch;
gap: 0;
padding: calc(env(safe-area-inset-top) + 82px) 24px calc(env(safe-area-inset-bottom) + 32px);
box-shadow: -5px 0 25px rgba(0,0,0,0.12);
transform: translateX(100%);
transition: transform 0.3s ease;
z-index: 101;
overflow-y: auto;
overscroll-behavior: contain;
    }

    .nav-links.active {
right: 0;
transform: translateX(0);
    }

    .nav-links a {
padding: 16px 0;
border-bottom: 1px solid #EEF2F8;
font-size: 1.05rem;
font-weight: 700;
white-space: normal;
text-align: left;
    }

    .menu-overlay {
position: fixed;
inset: 0;
width: auto;
height: auto;
background: rgba(0,0,0,0.5);
z-index: 100;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
    }

    .menu-overlay.active {
opacity: 1;
visibility: visible;
    }

    .about-wrapper,
    .contacts-wrapper,
    .installment-grid {
grid-template-columns: 1fr;
    }

    .about-wrapper {
gap: 34px;
    }

    .about-text {
order: 1;
    }

    .about-img {
order: 2;
max-width: 520px;
margin-inline: auto;
width: 100%;
    }

    .installment-grid {
text-align: center;
justify-items: center;
    }

    .installment p {
max-width: 760px;
    }

    .contacts-wrapper {
gap: 28px;
    }

    .services-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    html {
scroll-padding-top: 74px;
    }

    section[id] {
scroll-margin-top: 74px;
    }

    .hero {
min-height: auto;
padding: 92px 0 58px;
    }

    .hero-inner {
padding: 34px var(--container-x) 56px;
gap: 32px;
    }

    .hero-left h1 {
font-size: clamp(2.05rem, 8vw, 3.5rem);
    }

    .hero-buttons {
justify-content: center;
    }

    .section-title {
margin-bottom: 36px;
    }

    .about-bordered,
    .services-bordered,
    .contacts-bordered {
padding: clamp(18px, 4vw, 28px);
    }

    .contacts-card,
    .form-card {
padding: clamp(22px, 4vw, 28px);
    }

    .team-photo-wrapper img {
max-height: 340px;
    }
}

@media (max-width: 767px) {
    :root {
--container-x: 16px;
--section-y: 52px;
    }

    header {
padding-block: 9px;
    }

    .logo img {
height: 27px;
    }

    .header-phone span {
display: none;
    }

    .header-phone {
width: 42px;
height: 42px;
padding: 0;
border-radius: 50%;
    }

    .burger-btn {
width: 30px;
height: 22px;
    }

    .nav-links {
width: min(90vw, 340px);
    }

    .hero {
padding-top: 82px;
    }

    .hero-inner {
padding-block: 26px 50px;
    }

    .hero-left h1 {
margin-bottom: 22px;
font-size: clamp(2rem, 9.4vw, 3rem);
    }

    .small-subtitle {
font-size: clamp(1.05rem, 4.8vw, 1.35rem);
    }

    .hero-buttons {
flex-direction: column;
width: min(100%, 430px);
margin-inline: auto;
    }

    .hero-buttons .btn-red,
    .hero-buttons .btn-outline {
width: 100%;
justify-content: center;
padding: 13px 18px;
font-size: 0.92rem;
    }

    .waves-svg {
min-height: 42px;
    }

    .trust-grid,
    .projects-grid {
max-width: 480px;
    }

    .review-card {
padding: 26px 22px;
border-radius: 24px;
    }

    .project-img {
height: clamp(190px, 52vw, 230px);
    }

    .project-content {
padding: 22px;
    }

    .about-text h2 {
font-size: clamp(1.55rem, 7vw, 2rem);
    }

    .about-text p {
font-size: 0.98rem;
    }

    .team-photo-wrapper {
margin-bottom: 34px;
border-radius: 24px;
    }

    .team-photo-wrapper img {
aspect-ratio: 4 / 3;
max-height: 280px;
    }

    .team-row-leader {
margin-bottom: 34px;
    }

    .team-flex {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 28px 18px;
    }

    .member img {
width: 98px;
height: 98px;
    }

    .member p {
font-size: 0.9rem;
    }

    .services-grid {
grid-template-columns: 1fr;
gap: 20px;
    }

    .service-card {
max-width: 460px;
margin-inline: auto;
padding: 24px 20px;
    }

    .installment-grid {
padding: 28px 22px;
gap: 24px;
    }

    .btn-white,
    .btn-all-reviews {
width: 100%;
justify-content: center;
    }

    .contact-item {
gap: 14px;
padding: 17px 0;
    }

    .contact-icon {
width: 44px;
height: 44px;
border-radius: 16px;
    }

    .social-links {
gap: 10px;
    }

    .social-links a {
flex: 1 1 120px;
justify-content: center;
    }

    .form-group input,
    .form-group textarea {
font-size: 1rem;
    }

    .map-container,
    .map-container iframe {
border-radius: 22px !important;
    }

    .map-container iframe {
height: 300px;
    }

    .modal-container {
width: 100%;
max-height: 92svh;
border-radius: 24px;
    }

    .modal-content {
padding: 42px 20px 26px;
max-height: 92svh;
    }

    .modal-close {
top: 10px;
right: 10px;
width: 36px;
height: 36px;
    }
}

@media (max-width: 480px) {
    :root {
--container-x: 14px;
--section-y: 46px;
    }

    .header-flex {
gap: 10px;
    }

    .logo img {
height: 24px;
    }

    .header-phone {
width: 38px;
height: 38px;
    }

    .burger-btn {
width: 28px;
height: 20px;
    }

    .burger-btn.active .burger-line:nth-child(1) {
transform: translateY(8.5px) rotate(45deg);
    }

    .burger-btn.active .burger-line:nth-child(3) {
transform: translateY(-8.5px) rotate(-45deg);
    }

    .nav-links {
width: min(92vw, 320px);
padding-inline: 20px;
    }

    .hero {
padding-top: 74px;
    }

    .hero-inner {
padding-block: 22px 48px;
    }

    .hero-left h1 {
font-size: clamp(1.9rem, 9vw, 2.35rem);
line-height: 1.15;
    }

    .hero-buttons .btn-red,
    .hero-buttons .btn-outline {
padding: 12px 14px;
font-size: 0.86rem;
    }

    .section-title {
font-size: clamp(1.65rem, 8vw, 1.9rem);
margin-bottom: 30px;
    }

    .section-title:after {
width: 58px;
height: 3px;
    }

    .review-card,
    .project-item,
    .contacts-card,
    .form-card {
border-radius: 22px;
    }

    .review-card {
padding: 24px 20px;
    }

    .review-card p,
    .project-content p,
    .service-card p,
    .installment p,
    .contact-details a,
    .contact-details p {
font-size: 0.94rem;
    }

    .project-content h3,
    .service-card h3 {
font-size: 1.16rem;
    }

    .badge-profit {
top: 14px;
left: 14px;
font-size: 0.72rem;
padding: 6px 11px;
    }

    .about-bordered,
    .services-bordered,
    .contacts-bordered {
padding: 16px;
border-width: 3px;
    }

    .about-img img {
border-radius: 24px;
aspect-ratio: 4 / 5;
    }

    .team-photo-wrapper {
border-width: 3px;
    }

    .team-photo-wrapper img {
max-height: 230px;
    }

    .member img {
width: 88px;
height: 88px;
border-width: 3px;
    }

    .member p {
margin-top: 12px;
font-size: 0.84rem;
    }

    .installment-grid {
padding: 24px 18px;
border-width: 3px;
    }

    .installment h2 {
font-size: clamp(1.45rem, 7vw, 1.9rem);
    }

    .contacts-card,
    .form-card {
padding: 20px 16px;
    }

    .contact-icon {
width: 40px;
height: 40px;
    }

    .social-links a {
flex-basis: 100%;
    }

    .btn-submit {
padding-inline: 18px;
    }

    footer {
padding: 26px 0;
    }
}

@media (max-width: 360px) {
    :root {
--container-x: 12px;
    }

    .team-flex {
grid-template-columns: 1fr;
    }

    .hero-buttons .btn-red,
    .hero-buttons .btn-outline,
    .btn-white,
    .btn-all-reviews,
    .btn-submit {
font-size: 0.82rem;
    }

    .review-card,
    .project-content,
    .service-card,
    .contacts-card,
    .form-card {
padding-inline: 16px;
    }

    .modal-content {
padding-inline: 16px;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    .hero {
min-height: auto;
padding-top: 78px;
    }

    .hero-inner {
padding-block: 20px 48px;
    }

    .nav-links {
padding-top: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
scroll-behavior: auto !important;
transition-duration: 0.01ms !important;
    }
}

/* =====================================================
   PERFORMANCE + ADAPTIVE FINAL PATCH 2026-07
   ===================================================== */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-width: 320px;
}

.bg-effects,
.hero,
.project-item,
.review-card,
.service-card,
.contacts-card,
.form-card,
.about-bordered,
.services-bordered,
.contacts-bordered,
.installment-grid {
    contain: layout paint;
}

.bg-effects img,
.project-img-image,
.about-img img,
.team-photo-wrapper img,
.member img {
    content-visibility: auto;
}

button,
.btn-red,
.btn-outline,
.btn-white,
.btn-all-reviews,
.btn-service-detail,
.btn-submit,
.btn-small,
.header-phone,
.nav-links a {
    touch-action: manipulation;
}

.form-group:has(textarea) i {
    top: 24px;
    transform: none;
}

.form-group textarea {
    min-height: 112px;
}

.modal-overlay.active {
    overscroll-behavior: contain;
}

@supports (content-visibility: auto) {
    .trust,
    .projects,
    .about,
    .team,
    .services,
    .installment,
    .contacts,
    footer {
        content-visibility: auto;
        contain-intrinsic-size: 1px 820px;
    }
}

@media (max-width: 1100px) {
    .header-flex {
        min-height: 42px;
    }

    .nav-links a {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 767px) {
    .container {
        max-width: 100%;
    }

    .contacts-wrapper,
    .about-wrapper,
    .installment-grid {
        width: 100%;
    }

    .team-flex {
        width: 100%;
    }

    .btn-red,
    .btn-outline,
    .btn-white,
    .btn-all-reviews,
    .btn-submit {
        min-height: 46px;
    }
}

@media (max-width: 390px) {
    .contact-item {
        align-items: flex-start;
    }

    .contact-details a,
    .contact-details p {
        font-size: 0.9rem;
    }

    .member img {
        width: 84px;
        height: 84px;
    }
}

@media (hover: none) {
    .review-card:hover,
    .project-item:hover,
    .service-card:hover,
    .installment-grid:hover,
    .contact-item:hover,
    .btn-red:hover,
    .btn-outline:hover,
    .btn-white:hover,
    .btn-small:hover,
    .btn-submit:hover {
        transform: none;
    }
}


/* =====================================================
   FUTURE CITY TOUR BUTTON + MODAL PATCH
   ===================================================== */
.btn-future-tour {
    font-family: inherit;
    font-size: 1rem;
    background: rgba(246, 23, 34, 0.08);
    border-color: rgba(255, 255, 255, 0.95);
    color: #FFFFFF;
}

.btn-future-tour:hover {
    border-color: #F61722;
    color: #FFFFFF;
    background: rgba(246, 23, 34, 0.22);
}

.modal-content ol li::marker,
.modal-content ul li::marker {
    color: #F61722;
    font-weight: 800;
}

@media (max-width: 767px) {
    .hero-buttons .btn-future-tour {
        width: 100%;
        justify-content: center;
        padding: 13px 18px;
        font-size: 0.92rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons .btn-future-tour {
        padding: 12px 14px;
        font-size: 0.86rem;
    }
}

@media (max-width: 360px) {
    .hero-buttons .btn-future-tour {
        font-size: 0.82rem;
    }
}

.modal-cta-btn {
    width: 100%;
    margin-top: 18px;
    padding: 16px 22px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #F61722 0%, #d4131e 100%);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 12px 28px -12px rgba(246, 23, 34, 0.55);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.modal-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -14px rgba(246, 23, 34, 0.65);
}

.modal-cta-btn:focus-visible {
    outline: 3px solid rgba(246, 23, 34, 0.25);
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .modal-cta-btn {
        padding: 14px 16px;
        font-size: 0.92rem;
        line-height: 1.25;
    }
}

  .nav-links a.onas { 
    color: #FF0000;
   }

   .nav-links a.onas:hover {
    color: #FF0000;
   }