/*
Theme Name: GorodSES
Theme URI: https://gorodses.ru
Author: Your Name
Description: Адаптивная тема для санитарной службы. Управление через админку.
Version: 1.5.0
License: GNU General Public License v2 or later
Text Domain: gorodses
*/

:root {
  --primary-blue: #1e3a8a;
  --dark-blue: #0f172a;
  --primary-green: #10b981;
  --light-green: #34d399;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--gray-800); line-height: 1.6; background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button, input, textarea, select { font: inherit; border: none; outline: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: 5rem 0; }
.text-center { text-align: center; }

/* ===== HEADER ===== */
.site-header {
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 2rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-icon svg { width: 36px; height: 36px; }

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark-blue);
    letter-spacing: 0.5px;
}

.header-tagline {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin: 0;
    max-width: 220px;
    line-height: 1.4;
    display: none;
}

.header-nav { flex: 1; display: flex; justify-content: center; }

.main-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

.main-nav a:hover { color: var(--primary-blue); }

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s;
}

.main-nav a:hover::after { width: 100%; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.header-phone:hover { color: var(--primary-green); }

.header-whatsapp {
    width: 42px;
    height: 42px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.header-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.header-cta-btn {
    padding: 0.65rem 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.3s;
    background: transparent;
}

.header-cta-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: rgba(30, 58, 138, 0.05);
}

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

.mobile-menu-toggle span {
    width: 26px;
    height: 2.5px;
    background: var(--dark-blue);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.mobile-nav {
    display: none;
    background: white;
    border-top: 1px solid var(--gray-100);
    padding: 1rem 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.mobile-nav.active { display: block; }

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.mobile-nav-list a {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
}

.hero-section { margin-top: 0; }

/* ===== HERO ===== */
.hero-section {
    margin-top: 80px;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16,185,129,0.1);
    color: var(--primary-green);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--dark-blue);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover { border-color: var(--primary-blue); }

.hero-badges {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.hero-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-stats {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: white;
    padding: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-stats-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.floating-phone {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-green);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,100%{transform:scale(1)}
    50%{transform:scale(1.1)}
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-label {
    display: inline-block;
    background: rgba(16,185,129,0.1);
    color: var(--primary-green);
    padding: 0.25rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1.125rem;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    background: white;
}

.service-icon {
    width: 300px;
    height: 200px;
    background: white;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-md);
    padding: 10px;
    overflow: hidden;
}

.service-icon img,
.service-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-description {
    color: var(--gray-600);
    margin-bottom: 1rem;
    min-height: 48px;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-green);
    font-weight: 600;
}

/* ===== FEATURES (ПРЕИМУЩЕСТВА) - БОЛЬШИЕ ИКОНКИ ===== */
.features-section {
    background: var(--gray-50);
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

/* ✅ КОНТЕЙНЕР 200×200 */
.feature-icon {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-md);
    padding: 0; /* НЕТ ОТСТУПОВ */
    overflow: hidden;
}

/* ✅ КАРТИНКА ЗАПОЛНЯЕТ ВЕСЬ КОНТЕЙНЕР */
.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ЗАПОЛНЯЕТ ВСЁ ПРОСТРАНСТВО */
}

.feature-icon svg {
    width: 280px;
    height: 280px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-description {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
}
/* ===== PRICING ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.pricing-card {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.pricing-card.featured {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
    z-index: 1;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-green);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-500);
    display: block;
}

.pricing-features {
    text-align: left;
    margin-bottom: 1.5rem;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.pricing-features svg {
    width: 18px;
    height: 18px;
    color: var(--primary-green);
    flex-shrink: 0;
    margin-top: 3px;
}

.pricing-card.featured .pricing-price,
.pricing-card.featured .pricing-title { color: white; }

.pricing-card.featured .pricing-features li { color: rgba(255,255,255,0.9); }

.pricing-card.featured .pricing-features svg { color: white; }

.pricing-card.featured .btn-primary {
    background: white;
    color: var(--primary-blue);
}

/* ===== PESTS GRID ===== */
.pests-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.pest-card {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.pest-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: white;
}

.pest-icon {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    margin-bottom: 0.5rem;
    padding: 0;
}

.pest-icon img,
.pest-icon svg {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.pest-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin: 0;
}

/* ===== TESTIMONIALS SLIDER ===== */
.testimonials-slider-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 1rem;
}

.testimonials-slider {
    display: flex;
    flex-direction: row !important; /* Принудительно горизонтально */
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden; /* Запрещаем вертикальный скролл */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0.5rem 1.5rem;
    scrollbar-width: none;
    flex-wrap: nowrap; /* Запрещаем перенос на новую строку */
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 350px !important; /* Фиксированная ширина, не сжимается */
    max-width: 350px;
    scroll-snap-align: start;
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    height: fit-content; /* Высота по контенту */
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Кнопки навигации */
.slider-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--gray-700);
    box-shadow: var(--shadow-sm);
    z-index: 2;
    align-self: center; /* Центрируем по вертикали */
}

.slider-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: scale(1.1);
}

.slider-btn:disabled, .slider-btn.inactive {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .testimonial-card { 
        flex: 0 0 320px !important; 
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .testimonials-slider-wrapper { 
        gap: 0.5rem; 
    }
    .slider-btn { 
        width: 40px; 
        height: 40px; 
    }
    .testimonial-card { 
        flex: 0 0 85vw !important; 
        max-width: 85vw;
    }
    .testimonials-slider { 
        gap: 1rem; 
        padding-left: 1rem; 
        padding-right: 1rem; 
    }
}
/* ===== FAQ ===== */
.faq-grid {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
    padding: 1.5rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.125rem;
}

.faq-question svg {
    width: 24px;
    height: 24px;
    color: var(--primary-green);
    transition: var(--transition);
}

.faq-item.active .faq-question svg { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--gray-600);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    margin-top: 1rem;
}

/* ===== CONTACT ===== */
.contact-section {
    background: var(--primary-blue);
    color: white;
    padding: 5rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.contact-form h3 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus { border-color: var(--primary-green); }

.form-submit {
    width: 100%;
    background: var(--primary-green);
    color: white;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-submit:hover { background: var(--light-green); }

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-privacy {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: 1rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--dark-blue);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    margin-bottom: 3rem;
}

.footer-brand .site-title {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-green);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links li { margin-bottom: 0.75rem; }

.footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: var(--primary-green);
    padding-left: 4px;
}

.footer-contact p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

/* ===== SINGLE PEST PAGE ===== */
.single-pest-wrapper {
    max-width: 900px;
    margin: 120px auto 0;
    padding: 0 1.5rem;
}

.single-pest-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.single-pest-header {
    text-align: center;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid var(--gray-100);
    padding-bottom: 2rem;
}

.single-pest-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: var(--gray-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-pest-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.single-pest-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin: 0;
}

.single-pest-content {
    line-height: 1.8;
    color: var(--gray-700);
    font-size: 1.125rem;
}

.single-pest-content h2,
.single-pest-content h3 {
    color: var(--dark-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.single-pest-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.single-pest-content li { margin-bottom: 0.5rem; }

.back-to-grid {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-top: 2.5rem;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    background: rgba(16,185,129,0.1);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.back-to-grid:hover {
    background: var(--primary-green);
    color: white;
}

/* ===== ANIMATIONS ===== */
.service-card.visible,
.feature-item.visible,
.pricing-card.visible,
.testimonial-card.visible,
.faq-item.visible {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.service-card:nth-child(1).visible { animation-delay: 0.1s; }
.service-card:nth-child(2).visible { animation-delay: 0.2s; }
.service-card:nth-child(3).visible { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 1200px) {
    .header-tagline { display: block; }
}

@media (max-width: 1200px) {
    /* Уменьшаем иконки преимуществ на планшетах */
    .feature-icon {
        width: 300px;
        height: 300px;
    }
    .feature-icon img {
        width: 300px;
        height: 300px;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 1100px) {
    .header-tagline { display: none; }
    .main-nav { gap: 1.2rem; }
    .main-nav a { font-size: 0.85rem; }
}

@media (max-width: 1024px) {
    .hero-container,
    .contact-container { grid-template-columns: 1fr; }
    
    .services-grid,
    .features-grid,
    .pricing-grid,
    .testimonials-grid,
    .pests-grid { grid-template-columns: repeat(2, 1fr); }
    
    .pricing-card.featured {
        transform: scale(1);
        order: -1;
    }
    
    .footer-container { grid-template-columns: 1fr 1fr; }
    
    /* Уменьшаем иконки вредителей */
    .pest-icon {
        width: 120px;
        height: 120px;
        padding: 15px;
    }
    .pest-icon img,
    .pest-icon svg {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 900px) {
    .header-nav { display: none; }
    .header-phone span { display: none; }
    .header-cta-btn { display: none; }
    .mobile-menu-toggle { display: flex; }
    .header-container { padding: 0 1rem; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.75rem; }
    
    .services-grid,
    .features-grid,
    .pricing-grid,
    .testimonials-grid,
    .pests-grid { grid-template-columns: 1fr; }
    
    .footer-container { grid-template-columns: 1fr; }
    
    .single-pest-card { padding: 2rem; }
    .single-pest-title { font-size: 2rem; }
    
    /* Уменьшаем иконки услуг */
    .service-icon {
        width: 240px;
        height: 160px;
        padding: 15px;
    }
    
    /* Уменьшаем иконки преимуществ */
    .feature-icon {
        width: 250px;
        height: 250px;
        padding: 15px;
    }
    .feature-icon img {
        width: 250px;
        height: 250px;
    }
    .feature-item { padding: 1.5rem; }
    
    /* Уменьшаем иконки вредителей */
    .pest-icon {
        width: 100px;
        height: 100px;
        padding: 12px;
    }
    .pest-icon img,
    .pest-icon svg {
        width: 64px;
        height: 64px;
    }
    .pest-card { padding: 2rem 1rem; }
}

@media (max-width: 500px) {
    .header-whatsapp { width: 36px; height: 36px; }
    .logo-text { font-size: 1.1rem; }
}
/* ===== CONTACT FORM STYLES ===== */
.contact-form .form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-blue);
}

.contact-form .form-group input,
.contact-form .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus {
    border-color: var(--primary-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.contact-form .form-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.contact-form .form-privacy {
    font-size: 0.8rem;
    color: var(--gray-600);
    text-align: center;
    margin-top: 1.5rem;
    line-height: 1.5;
}

.contact-form .form-privacy a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.contact-form .form-privacy a:hover {
    color: var(--primary-green);
}
/* ===== МОДАЛЬНОЕ ОКНО УСПЕХА ===== */
.success-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.success-modal-overlay.active {
    opacity: 1; visibility: visible;
}
.success-modal-content {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}
.success-modal-overlay.active .success-modal-content {
    transform: scale(1) translateY(0);
}
.success-modal-close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none; font-size: 1.8rem;
    cursor: pointer; color: var(--gray-600); transition: color 0.2s;
    line-height: 1;
}
.success-modal-close:hover { color: var(--dark-blue); }
.success-modal-icon {
    width: 64px; height: 64px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}
.success-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
}
.success-modal-text {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 1rem;
}
/* Эффектная разделительная линия */
.services-section {
    position: relative;
    padding-bottom: 4rem !important; /* Увеличиваем отступ снизу */
}

.services-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1000px;
    height: 6px; /* Толще! */
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1), 
                0 0 0 1px rgba(255,255,255,0.3);
}

/* Добавляем отступ сверху для преимуществ */
.features-section {
    padding-top: 4rem !important;
    position: relative;
}
/* Уменьшаем отступы hero-секции */
.hero-section {
    margin-top: 0 !important;
    padding-top: 2rem !important; /* Было 4rem, уменьшили в 2 раза */
    padding-bottom: 3rem !important; /* Немного уменьшили нижний отступ */
}

/* Если есть дополнительный отступ от header */
.site-header {
    margin-bottom: 0;
}

/* Для мобильных ещё компактнее */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 1.5rem !important;
        padding-bottom: 2rem !important;
    }
}
/* === ИСПРАВЛЕНИЕ ПЛАШКИ 12+ ЛЕТ === */

/* Настройка для ПК */
.hero-stats {
    padding: 12px 16px !important; /* Компактные отступы внутри */
    max-width: 320px; /* Ограничиваем ширину */
}

.hero-stats-number {
    font-size: 1.4rem !important; /* Размер цифр (было больше) */
    line-height: 1.1;
}

.hero-stats-text {
    font-size: 0.95rem !important; /* Размер текста (было больше) */
    line-height: 1.3;
}

/* Настройка для Мобильных устройств */
@media (max-width: 768px) {
    .hero-stats {
        padding: 10px 14px !important;
        left: 10px !important; /* Чуть меньше отступ от края экрана */
        right: 10px !important; /* Чтобы плашка не вылезала за экран */
        bottom: 15px !important;
    }
    
    .hero-stats-number {
        font-size: 1.1rem !important; /* Уменьшаем цифры */
    }
    
    .hero-stats-text {
        font-size: 0.8rem !important; /* Уменьшаем текст, чтобы влезло */
    }
}