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

body {
    font-family: 'Inter', sans-serif;
    color: #0A2B4E;
    background-color: #FFFFFF;
    line-height: 1.5;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== НАВИГАЦИЯ ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0A2B4E;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: #0A2B4E;
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-phone, .nav-email {
    text-decoration: none;
    color: #0A2B4E;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-phone:hover, .nav-email:hover {
    color: #F05A28;
}

.nav-messengers {
    display: flex;
    gap: 12px;
}

.messenger-icon {
    color: #0A2B4E;
    transition: color 0.3s;
}

.messenger-icon:hover {
    color: #F05A28;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: #0A2B4E;
    transition: 0.3s;
}

/* ========== HERO ========== */
.hero {
    padding: 120px 0 80px;
    background: #F8F9FA;
}

.hero-container {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.hero-slider-wrapper {
    flex: 0 0 60%;
    border-radius: 24px;
    overflow: hidden;
}

.heroSwiper {
    border-radius: 24px;
    height: 100%;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-slide:nth-child(1) {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/slide/kotel.jpg');
}
.hero-slide:nth-child(2) {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/slide/voda.jpg');
}
.hero-slide:nth-child(3) {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/slide/vent.jpg');
}
.hero-slide:nth-child(4) {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/slide/ilek.jpg');
}

.hero-slide-content h1 {
    font-size: 2rem;
    color: white;
    margin-bottom: 12px;
}

.hero-slide-content p {
    color: white;
    font-size: 1.1rem;
}

.hero-form-wrapper {
    flex: 0 0 35%;
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.hero-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #0A2B4E;
}

.lead-form {
    margin-top: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #F05A28;
}

.form-note {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
    margin-top: 16px;
}

.form-message {
    margin-top: 16px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
}

/* Блок с двумя кнопками */
.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-submit {
    flex: 1;
    background: #0A2B4E;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #0a3b6e;
    transform: translateY(-2px);
}

.btn-whatsapp {
    flex: 1;
    background: #25D366;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* ========== О КОМПАНИИ ========== */
.about {
    padding: 80px 0;
    background: white;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 48px;
    color: #0A2B4E;
}

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #F05A28;
}

.stat-label {
    font-size: 1rem;
    color: #0A2B4E;
}

/* ========== УСЛУГИ ========== */
.services {
    padding: 80px 0;
    background: #F8F9FA;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* Для 7 карточек последняя будет по центру */
.services-grid .service-card:last-child:nth-child(odd) {
    grid-column: 2 / 3;
}

.service-card {
    background: white;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #E2E8F0;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Стили для карточек с фото */
.photo-card {
    padding: 0;
}

.service-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 43, 78, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-card:hover .service-overlay {
    opacity: 1;
}

.service-overlay .service-icon {
    background: #F05A28;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.photo-card h3 {
    padding: 20px 20px 8px;
    font-size: 1.2rem;
    color: #0A2B4E;
}

.photo-card p {
    padding: 0 20px 24px;
    color: #6c757d;
}

/* ========== ФОРМА ЗАЯВКИ ПО УСЛУГАМ ========== */
/* ========== ФОРМА ЗАЯВКИ ПО УСЛУГАМ (КОМПАКТНАЯ) ========== */
.services-form-wrapper {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 32px;
    margin-top: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #E2E8F0;
}

.services-form-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 8px;
    color: #0A2B4E;
}

.services-form-subtitle {
    text-align: center;
    margin-bottom: 28px;
    color: #6c757d;
    font-size: 0.9rem;
}

.services-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.full-width {
    grid-column: 1 / -1;
}

.services-form .form-group {
    margin-bottom: 0;
}

.services-form input,
.services-form select,
.services-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #F8F9FA;
    transition: all 0.3s;
    font-family: inherit;
}

.services-form input:focus,
.services-form select:focus,
.services-form textarea:focus {
    outline: none;
    border-color: #F05A28;
    background: white;
}

.services-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230A2B4E' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.services-form textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-services-submit {
    width: 100%;
    background: #F05A28;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    margin-top: 8px;
}

.btn-services-submit:hover {
    background: #d94a1a;
    transform: translateY(-1px);
}

.services-form .form-note {
    text-align: center;
    font-size: 0.7rem;
    margin-top: 16px;
    color: #6c757d;
}

/* Адаптив */
@media (max-width: 768px) {
    .services-form-wrapper {
        padding: 20px;
        margin-top: 32px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .services-form-title {
        font-size: 1.3rem;
    }
}

/* ========== ПОРТФОЛИО ========== */
.portfolio {
    padding: 80px 0;
    background: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.portfolio-item {
    position: relative;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
}

.portfolio-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 16px;
    font-weight: 500;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.lightbox-caption {
    color: white;
    margin-top: 16px;
    font-size: 1.1rem;
}

/* ========== ОТЗЫВЫ ========== */
.reviews {
    padding: 80px 0;
    background: #F8F9FA;
}

/* Виджет 2ГИС */
.reviews-widget {
    background: white;
    border-radius: 32px;
    padding: 48px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.widget-title {
    text-align: center;
    margin-bottom: 40px;
}

.widget-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.widget-title h3 {
    font-size: 1.75rem;
    color: #0A2B4E;
    margin-bottom: 8px;
}

.widget-subtitle {
    font-size: 0.95rem;
    color: #6c757d;
}

.widget-2gis-container {
    margin-bottom: 24px;
    border-radius: 20px;
    overflow: hidden;
    background: #f5f5f5;
    min-height: 700px;
}

.widget-2gis-container iframe {
    display: block;
    width: 100%;
    height: 700px;
    border: none;
}

.widget-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #F05A28;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.widget-link:hover {
    color: #d94a1a;
    gap: 12px;
}

/* ========== КОНТАКТЫ ========== */
/* ========== КОНТАКТЫ ========== */
.contacts {
    padding: 80px 0;
    background: white;
}

.contacts-wrapper {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contacts-info {
    flex: 1;
    background: #F8F9FA;
    padding: 40px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F05A28;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.contact-item:hover .contact-icon {
    background: #F05A28;
    color: white;
    transform: scale(1.05);
}

.contact-item span,
.contact-item a {
    color: #0A2B4E;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #F05A28;
}

.contact-messengers {
    display: flex;
    gap: 24px;
}

.contact-messengers a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0A2B4E;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.contact-messengers a:hover {
    color: #F05A28;
    transform: translateX(4px);
}

.contact-messengers svg {
    color: #F05A28;
}

.contacts-map {
    flex: 1;
    min-height: 400px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contacts-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: block;
}

/* Адаптив */
@media (max-width: 768px) {
    .contacts-info {
        padding: 28px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .contact-messengers {
        flex-direction: column;
        gap: 12px;
    }
    
    .contacts-map {
        min-height: 350px;
    }
}
/* Блок с мессенджерами */
.messengers-block {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
}

.messengers-block .contact-icon {
    margin-bottom: 0;
}

.messengers-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.messenger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    width: 100%;
    max-width: 280px;
}

.telegram-btn {
    background: #28A8E9;
    color: white;
}

.telegram-btn:hover {
    background: #1f8bc2;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(40,168,233,0.3);
    color: white;
}

.whatsapp-btn {
    background: #aa6ddb;
    color: white;
}

.whatsapp-btn:hover {
    background: #c79de9;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(37,211,102,0.3);
    color: white;
}

/* .messenger-btn img {
    filter: brightness(0) invert(1);
} */

/* Адаптив */
@media (max-width: 768px) {
    .messenger-btn {
        max-width: 100%;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .messengers-buttons {
        width: 100%;
    }
}

/* ========== КОНТАКТЫ ========== */
.contacts {
    padding: 80px 0;
    background: white;
}

.contacts-wrapper {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contacts-info {
    flex: 1;
    background: #F8F9FA;
    padding: 40px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.contact-icon img {
    width: 24px;
    height: 24px;
    display: block;
}

.contact-item:hover .contact-icon {
    background: #F05A28;
    transform: scale(1.05);
}

.contact-item:hover .contact-icon img {
    filter: brightness(0) invert(1);
}

.contact-item span,
.contact-item a {
    color: #0A2B4E;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #F05A28;
}

/* Блок с мессенджерами */
.messengers-block {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
}

.messengers-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.messenger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    width: 100%;
    max-width: 260px;
}

.telegram-btn {
    background: #28A8E9;
    color: white;
}

.telegram-btn:hover {
    background: #1f8bc2;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(40,168,233,0.3);
    color: white;
}

.whatsapp-btn {
    background: #b38ed1;
    color: white;
}

.whatsapp-btn:hover {
    background: #b376e6;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(37,211,102,0.3);
    color: white;
}

/* .messenger-btn img {
    filter: brightness(0) invert(1);
} */

.contacts-map {
    flex: 1;
    min-height: 400px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Адаптив */
@media (max-width: 768px) {
    .contacts-info {
        padding: 28px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon img {
        width: 20px;
        height: 20px;
    }
    
    .messenger-btn {
        max-width: 100%;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .contacts-map {
        min-height: 350px;
    }
}
/* ========== FOOTER ========== */
.footer {
    background: #0A2B4E;
    color: white;
    padding: 32px 0;
}

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

.footer-policy {
    color: white;
    text-decoration: none;
    opacity: 0.8;
}

.footer-policy:hover {
    opacity: 1;
}

/* ========== КНОПКИ ========== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #F05A28;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99;
    transition: all 0.3s;
}

.scroll-top:hover {
    background: #d94a1a;
    transform: scale(1.1);
}

.sticky-phone {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #F05A28;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ========== АДАПТИВ ========== */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
    }
    .hero-slider-wrapper, .hero-form-wrapper {
        flex: auto;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid .service-card:last-child:nth-child(odd) {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-contacts {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-container.active .nav-links,
    .nav-container.active .nav-contacts {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
    }
    
    .stats-grid {
        gap: 30px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .contacts-wrapper {
        flex-direction: column;
    }
    
    .sticky-phone {
        display: flex;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .reviews-widget {
        padding: 32px 20px;
    }
    
    .widget-title h3 {
        font-size: 1.4rem;
    }
    
    .widget-2gis-container {
        min-height: 550px;
    }
    
    .widget-2gis-container iframe {
        height: 550px;
    }
    
    .form-buttons {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-slide-content h1 {
        font-size: 1.4rem;
    }
    
    .reviews-widget {
        padding: 24px 16px;
    }
    
    .widget-2gis-container {
        min-height: 500px;
    }
    
    .widget-2gis-container iframe {
        height: 500px;
    }
}