/* ===== ОСНОВНЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1e2a1e;
    line-height: 1.5;
}

.container {
    max-width: min(1100px, 90%);
    margin: 0 auto;
    padding: 0 clamp(12px, 4vw, 24px);
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    z-index: 1000;
    padding: clamp(8px, 2vw, 12px) 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(15px, 4vw, 30px);
    flex-wrap: wrap;
}

.logo {
    font-size: clamp(24px, 5vw, 28px);
    font-weight: 800;
    letter-spacing: 1px;
    color: #2c5e2a;
    text-decoration: none;
    transition: all 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: clamp(10px, 2vw, 16px);
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    font-size: clamp(13px, 2.5vw, 16px);
}

.nav-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: clamp(11px, 2vw, 12px);
    color: #8a9a8a;
    line-height: 1.3;
    white-space: nowrap;
}

.nav-contact a {
    transition: color 0.2s ease;
}

.nav-contact a:hover {
    color: #c41a1f !important;
}

/* ===== СЕКЦИИ ===== */
section {
    background-color: #ffffff;
    padding: clamp(48px, 8vw, 80px) 0;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

section:last-of-type {
    margin-bottom: 0;
}

section[id] {
    scroll-margin-top: clamp(70px, 10vw, 80px);
}

/* ===== HERO С БАННЕРОМ/АКЦИЕЙ ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fef5f5 0%, #ffffff 100%);
    padding-top: clamp(60px, 10vw, 80px);
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    gap: clamp(30px, 6vw, 60px);
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    background: #e31e24;
    color: white;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: clamp(11px, 2vw, 13px);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: clamp(16px, 3vw, 24px);
}

.hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 600;
    margin-bottom: clamp(16px, 2.5vw, 20px);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #1e2a1e;
}

.hero p {
    font-size: clamp(14px, 2.5vw, 18px);
    color: #4a5b4a;
    margin-bottom: clamp(20px, 4vw, 30px);
    font-weight: 400;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 24px);
    flex-wrap: wrap;
}

.hero-btn {
    background: #e31e24;
    color: white;
    border: none;
    padding: clamp(10px, 2vw, 14px) clamp(20px, 4vw, 32px);
    font-size: clamp(13px, 2.5vw, 16px);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    font-family: inherit;
}

.hero-btn:hover {
    background: #c41a1f;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(227, 30, 36, 0.3);
}

.hero-guarantee {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(12px, 2vw, 14px);
    color: #1a2a1f;
    font-weight: 500;
}

.guarantee-icon {
    font-size: clamp(16px, 3vw, 20px);
}

.hero-image {
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.03);
}

/* ===== ЗАГОЛОВКИ ===== */
h2 {
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 500;
    margin-bottom: clamp(24px, 5vw, 48px);
    text-align: center;
    letter-spacing: -0.02em;
    color: #1e2a1e;
}

/* ===== СЕТКИ ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(20px, 3vw, 30px);
    margin-top: 20px;
}

.contact-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: clamp(20px, 3vw, 30px);
    margin: clamp(30px, 6vw, 40px) 0;
}

/* ===== БЕГУЩАЯ СТРОКА ===== */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: #f8faf8;
    padding: clamp(12px, 3vw, 20px) 0;
    border-top: 1px solid #eef2ee;
    border-bottom: 1px solid #eef2ee;
    margin: clamp(20px, 5vw, 40px) 0;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: scrollTags 30s linear infinite;
}

/* ===== ТЕНДЕРЫ ===== */
.tender-block {
    background: #ffffff;
    padding: clamp(24px, 5vw, 48px);
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f2f0;
    transition: all 0.3s ease;
}

.tender-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}

.tender-block p {
    font-size: clamp(14px, 2.5vw, 16px);
    color: #4a5b4a;
    max-width: 800px;
    line-height: 1.6;
}

/* ===== КОНТАКТЫ ===== */
.contact-section {
    background: #ffffff;
    position: relative;
}

.contact-header {
    text-align: center;
    margin-bottom: clamp(30px, 6vw, 48px);
}

.contact-header h2 {
    font-size: clamp(24px, 5vw, 36px);
    margin-bottom: clamp(8px, 2vw, 12px);
}

.contact-header p {
    font-size: clamp(13px, 2.5vw, 16px);
    color: #8a9a8a;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info-bottom {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 5vw, 48px);
    margin-top: clamp(24px, 5vw, 40px);
    padding: clamp(16px, 3vw, 24px) clamp(20px, 4vw, 32px);
    background: #fafcfa;
    border-radius: 20px;
    flex-wrap: wrap;
    border: 1px solid #f0f2f0;
    transition: all 0.3s ease;
}

.contact-info-bottom:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

/* ===== ФУТЕР ===== */
footer {
    background: #fafcfa;
    padding: clamp(16px, 3vw, 24px) 0;
    text-align: center;
    color: #a0aea0;
    font-size: clamp(11px, 2vw, 13px);
    border-top: 1px solid #f0f2f0;
}

/* ===== АДАПТАЦИЯ ДЛЯ ПЛАНШЕТОВ (критические моменты) ===== */
@media (max-width: 992px) {
    .hero-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    h2 {
        text-align: center;
    }
}

/* ===== АДАПТАЦИЯ ДЛЯ ТЕЛЕФОНОВ (критические моменты) ===== */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 12px;
    }
    
    .nav-links {
        justify-content: center;
    }
    
    .nav-contact {
        align-items: center;
        text-align: center;
    }
    
    .hero {
        padding-top: 100px;
        min-height: auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-btn {
        width: 100%;
        text-align: center;
    }
    
    .services-grid,
    .contact-grid-simple {
        grid-template-columns: 1fr;
    }
    
    .contact-info-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ===== АДАПТАЦИЯ ДЛЯ МАЛЕНЬКИХ ТЕЛЕФОНОВ ===== */
@media (max-width: 480px) {
    .hero {
        padding-top: 80px;
    }
    
    .hero-guarantee {
        justify-content: center;
    }
}