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

body {
    font-family: 'Inter', sans-serif;
    background-color: #FDF9F2;
    color: #2C2B28;
    line-height: 1.5;
    scroll-behavior: smooth;
}

h1, h2, h3, .logo, .hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}

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

/* ===== ШАПКА И ЗАКРЕПЛЕНИЕ ===== */
#mainHeader {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: #FDF9F2;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

#mainHeader.sticky-shrink {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#mainHeader.sticky-shrink .navbar {
    padding: 10px 0;
}

#mainHeader.sticky-shrink .logo {
    font-size: 1.4rem;
}

#mainHeader.sticky-shrink .logo span {
    font-size: 0.75rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: padding 0.3s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: #7A4C2C;
    letter-spacing: -0.5px;
}

.logo span {
    font-weight: 400;
    font-size: 1rem;
    display: block;
    color: #9B7B5C;
}

/* Десктопная навигация */
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #3E2C21;
    transition: 0.2s;
}

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

.nav-phone {
    background: #EBD9C6;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
    color: #5A3A28;
    text-decoration: none;
    transition: 0.2s;
    white-space: nowrap;
}

.nav-phone i {
    margin-right: 8px;
}

.nav-phone:hover {
    background: #DBC2A8;
}

/* Бургер-меню (скрыт на десктопе) */
.burger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 1002;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #7A4C2C;
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

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

/* ===== МОБИЛЬНАЯ ВЕРСИЯ (ДО 800px) ===== */
@media (max-width: 800px) {
    .burger-menu {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: #FDF9F2;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        gap: 0;
        transition: left 0.3s ease;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(139, 101, 64, 0.1);
    }
    
    .nav-links a {
        display: block;
        padding: 16px 20px;
        font-size: 1.1rem;
    }
    
    /* Затемнение фона */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .nav-phone {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    html {
        scroll-padding-top: 70px;
    }
    
    /* Другие адаптации */
    .navbar {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-grid {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .comparison-slider {
        flex-direction: column;
    }
}

/* ===== ГЛАВНЫЙ ЭКРАН ===== */
.hero {
    padding: 60px 0 80px;
    background: linear-gradient(112deg, #FBF5EA 0%, #F2E7D9 100%);
}

.hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 48px;
}

.hero-content {
    flex: 1.2;
}

.hero-badge {
    background: rgba(121, 76, 44, 0.1);
    display: inline-block;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #7A4C2C;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.4rem;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #2A241E;
}

.hero-title i {
    color: #C1874B;
    font-style: normal;
}

.hero-desc {
    font-size: 1.2rem;
    color: #5C4B3A;
    margin-bottom: 32px;
    max-width: 550px;
}

.btn-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #7A4C2C;
    color: white;
    padding: 14px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #5E3920;
    transform: scale(1.02);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #7A4C2C;
    padding: 14px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    color: #7A4C2C;
    transition: 0.25s;
}

.btn-outline:hover {
    background: #7A4C2C;
    color: white;
}

.hero-image {
    flex: 1;
    border-radius: 32px;
    min-height: 400px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-image: url('../images/image540_1.jpg');
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.1);
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.features {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #3E2C21;
}

.section-sub {
    text-align: center;
    color: #7C6956;
    margin-bottom: 56px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 24px 16px;
    background: #FEFAF5;
    border-radius: 28px;
    transition: 0.2s;
}

.feature-icon {
    font-size: 2.8rem;
    color: #B97F4B;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: #5F4D3A;
}

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

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

.service-item {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0,0,0,0.03);
    transition: all 0.25s;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 24px;
}

.service-content h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.service-content p {
    color: #5E4B38;
    margin-bottom: 20px;
}

.price-tag {
    font-weight: 700;
    font-size: 1.3rem;
    color: #7A4C2C;
}

/* ===== ЭТАПЫ РАБОТЫ ===== */
.process {
    padding: 80px 0;
    background: white;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.step {
    flex: 1;
    min-width: 180px;
    text-align: center;
    padding: 24px 16px;
    background: #FDF9F2;
    border-radius: 32px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #EBD9C6;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: bold;
    color: #7A4C2C;
    margin: 0 auto 20px;
}

/* ===== ДО / ПОСЛЕ ===== */
.before-after-section {
    background: #F2E7D9;
    padding: 80px 0;
}

.comparison-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
    margin-bottom: 70px;
    background: #FFF9F2;
    border-radius: 48px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.slider-container {
    flex: 1.2;
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
    cursor: ew-resize;
    aspect-ratio: 4 / 3;
    background: #ccc;
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    border-right: 3px solid white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

.slider-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-handle {
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 4px;
    background: white;
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 8px rgba(0,0,0,0.5);
}

.slider-label {
    position: absolute;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.label-before {
    bottom: 20px;
    left: 20px;
}

.label-after {
    bottom: 20px;
    right: 20px;
}

.slider-text {
    flex: 0.8;
}

.slider-text h3 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.slider-text p {
    color: #5A4531;
    margin-bottom: 16px;
}

/* ===== ГАЛЕРЕЯ ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.gallery-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.15);
}

.gallery-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.gallery-info {
    padding: 20px;
}

.gallery-info h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.badge-restored {
    background: #7A4C2C20;
    color: #7A4C2C;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== МОСКИТНЫЕ СЕТКИ ===== */
.mosquito-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #F0EAE0 0%, #E8DDD0 100%);
}

/* ДВЕ КОЛОНКИ НА ДЕСКТОПЕ */
.mosquito-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: flex-start;
}

.mosquito-wrapper {
    flex: 1;
}

.mosquito-calculator {
    flex: 1;
    background: white;
    border-radius: 36px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.mosquito-badge {
    background: #2C5F2D;
    color: white;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.mosquito-content h2 {
    font-size: 2.3rem;
    margin-bottom: 20px;
    color: #2C241E;
}

.mosquito-content > p {
    font-size: 1.1rem;
    color: #5C4B3A;
    margin-bottom: 30px;
}

.mosquito-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.mosquito-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.mosquito-feature i {
    font-size: 1.6rem;
    color: #7A4C2C;
    margin-top: 4px;
}

.mosquito-feature h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: #2C241E;
}

.mosquito-feature p {
    font-size: 0.85rem;
    color: #7C6956;
}

.mosquito-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #2C5F2D;
    color: white;
    padding: 14px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.mosquito-btn:hover {
    background: #1F4520;
    transform: scale(1.02);
}

.mosquito-note {
    font-size: 0.75rem;
    color: #8F7A66;
    margin-top: 15px;
}

/* Калькулятор */
.mosquito-calculator h3 {
    font-size: 1.8rem;
    text-align: center;
    color: #3E2C21;
    margin-bottom: 8px;
}

.mosquito-calculator h3 i {
    color: #B97F4B;
    margin-right: 10px;
}

.calculator-subtitle {
    text-align: center;
    color: #8F7A66;
    margin-bottom: 30px;
}

.calculator-form {
    max-width: 500px;
    margin: 0 auto;
}

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

.calc-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2C241E;
}

.calc-group select,
.calc-group input[type="number"] {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #E2D4C6;
    border-radius: 28px;
    font-family: inherit;
    background: #FEFAF5;
    font-size: 1rem;
}

.calc-row {
    display: flex;
    gap: 20px;
}

.calc-row .calc-group {
    flex: 1;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #FEFAF5;
    border: 1px solid #E2D4C6;
    border-radius: 40px;
    padding: 5px 10px;
    width: fit-content;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #EBD9C6;
    font-size: 1.4rem;
    cursor: pointer;
    transition: 0.2s;
    color: #7A4C2C;
    font-weight: bold;
}

.qty-btn:hover {
    background: #DBC2A8;
}

.quantity-selector input {
    width: 60px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 10px 0;
}

.discount-group {
    background: #F0F0E8;
    padding: 15px 20px;
    border-radius: 28px;
}

.discount-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 0;
}

.discount-group input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.calc-result {
    background: #7A4C2C;
    border-radius: 28px;
    padding: 15px;
    text-align: center;
    margin: 20px 0;
}

.result-label {
    display: block;
    color: #EBD9C6;
    font-size: 1rem;
    margin-bottom: 5px;
}

.result-price {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.calc-order-btn {
    width: 100%;
    background: #2C5F2D;
    color: white;
    padding: 16px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.calc-order-btn:hover {
    background: #1F4520;
}

.calc-note {
    text-align: center;
    font-size: 0.7rem;
    color: #9B8B7A;
    margin-top: 15px;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ (ДО 768px) ===== */
@media (max-width: 768px) {
    .mosquito-section {
        padding: 40px 0;
    }
    
    /* ОДНА КОЛОНКА НА МОБИЛЬНЫХ */
    .mosquito-grid {
        flex-direction: column;
        gap: 30px;
    }
    
    .mosquito-content h2 {
        font-size: 1.8rem;
    }
    
    .mosquito-features {
        grid-template-columns: 1fr;
    }
    
    .mosquito-feature {
        align-items: center;
        background: #fff;
        padding: 12px 15px;
        border-radius: 20px;
    }
    
    .mosquito-feature i {
        font-size: 1.8rem;
        width: 40px;
    }
    
    .mosquito-btn {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .mosquito-calculator {
        padding: 25px 20px;
width: 100%;
    }
    
    
    .mosquito-calculator h3 {
        font-size: 1.5rem;
    }
    
    .calc-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: space-between;
    }
    
    .qty-btn {
        width: 44px;
        height: 44px;
    }
    
    .result-price {
        font-size: 1.6rem;
    }
}

/* ===== КОНТАКТЫ ===== */
.contact {
    padding: 80px 0;
    background: #EFE4D8;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
    background: white;
    padding: 32px 28px;
    border-radius: 36px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.05);
}

.contact-info h3 {
    font-size: 1.9rem;
    margin-bottom: 20px;
}

.info-line {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.info-line i {
    width: 36px;
    font-size: 1.4rem;
    color: #B97F4B;
}

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

input, textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #E2D4C6;
    border-radius: 28px;
    font-family: inherit;
    background: #FEFAF5;
    transition: 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #B97F4B;
}

button[type="submit"] {
    background: #7A4C2C;
    border: none;
    width: 100%;
    padding: 14px;
    border-radius: 40px;
    font-weight: bold;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}

button[type="submit"]:hover {
    background: #5E3920;
}

/* ===== ПОДВАЛ ===== */
footer {
    background: #2C241E;
    color: #CDBBAA;
    padding: 40px 0;
    text-align: center;
}

footer i {
    margin: 0 8px;
    cursor: pointer;
    transition: 0.2s;
}

footer i:hover {
    color: #B97F4B;
}

/* Отступ для якорных ссылок */
html {
    scroll-padding-top: 100px;
}