/* ==========================================================================
   БАЗОВЫЕ НАСТРОЙКИ (Оптимизация для Яндекс Mobile-Friendly)
   ========================================================================== */
:root { 
    --primary: #0ea5e9; 
    --accent: #f59e0b; 
    --text: #334155; 
    --bg: #f8fafc; 
}

/* ИСПРАВЛЕНО 1: Глобальный box-sizing предотвращает горизонтальный скролл */
*, *::before, *::after { 
    box-sizing: border-box; 
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    color: var(--text); 
    background: var(--bg); 
    margin: 0; 
    padding: 0; 
    /* ИСПРАВЛЕНО 2: Запрет скрытого скролла и автозума шрифтов на iOS */
    overflow-x: hidden; 
    -webkit-text-size-adjust: 100%;
}

/* ИСПРАВЛЕНО 3: Адаптивность всех изображений */
img { 
    max-width: 100%; 
    height: auto; 
    display: block;
}

/* ==========================================================================
   КОНТЕНТНЫЕ БЛОКИ
   ========================================================================== */
.container { 
    width: 100%; 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 50px 20px; 
}
.section-title { 
    text-align: center; 
    font-size: 32px; 
    margin-bottom: 40px; 
    color: #0f172a; 
}

/* Шапка (Top Header) */
.top-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 30px; 
    background: #fff; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    flex-wrap: wrap; 
    gap: 15px; 
}
.top-logo { 
    font-size: 24px; 
    font-weight: 900; 
    color: #0f172a; 
    text-transform: uppercase; 
    text-decoration: none; 
}
.top-logo span { color: var(--primary); }

/* ИСПРАВЛЕНО 4: Увеличены Tap-зоны (зоны клика) для контактов в шапке */
.top-contacts a { 
    font-size: 18px; 
    font-weight: bold; 
    color: #0f172a; 
    text-decoration: none; 
    margin-left: 10px; 
    padding: 10px; 
    display: inline-flex; 
    align-items: center; 
    gap: 5px; 
}
.top-contacts a.wa-link { color: #25D366; }

/* Главный экран (Hero) */
.hero-section { 
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('/img/01.jpg') center/cover; 
    color: #fff; 
    text-align: center; 
    padding: 80px 20px; 
}
.hero-section h1 { 
    font-size: 38px; 
    margin-bottom: 20px; 
    text-transform: uppercase; 
    font-weight: 800; 
    letter-spacing: 1px; 
}
.hero-section p { 
    font-size: 20px; 
    margin-bottom: 30px; 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto; 
    line-height: 1.6; 
}

/* Кнопки */
.btn-primary { 
    display: inline-block; 
    background: var(--accent); 
    color: #fff; 
    font-size: 18px; 
    font-weight: bold; 
    padding: 15px 35px; 
    border-radius: 30px; 
    text-decoration: none; 
    transition: 0.3s; 
    text-transform: uppercase; 
}
.btn-primary:hover { 
    background: #d97706; 
    transform: translateY(-2px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); 
}

.btn-whatsapp { 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    background: #25D366; 
    color: #fff; 
    font-size: 18px; 
    font-weight: bold; 
    padding: 15px 35px; 
    border-radius: 30px; 
    text-decoration: none; 
    transition: 0.3s; 
    margin-top: 15px; 
}
.btn-whatsapp:hover { background: #1ebc5a; }

/* Преимущества */
.features-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 30px; 
}
.feature-card { 
    background: #fff; 
    padding: 30px 20px; 
    border-radius: 12px; 
    text-align: center; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    border: 1px solid #e2e8f0; 
}
.feature-card span { font-size: 48px; display: block; margin-bottom: 15px; }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; color: #0f172a; }

/* Цены */
.pricing-container { 
    background: #fff; 
    border-radius: 16px; 
    padding: 60px 40px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}
.pricing-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}
.price-card { 
    background: #fff; 
    padding: 40px 30px; 
    border-radius: 12px; 
    text-align: center; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); 
    position: relative; 
    overflow: hidden; 
    border: 2px solid #e2e8f0; 
}
.price-card.premium { border-color: var(--accent); }
.price-card.premium::before { 
    content: 'ХИТ ПРОДАЖ'; 
    position: absolute; 
    top: 15px; 
    right: -35px; 
    background: var(--accent); 
    color: #fff; 
    padding: 5px 40px; 
    transform: rotate(45deg); 
    font-weight: bold; 
    font-size: 12px; 
}
.price-card h3 { font-size: 24px; margin-bottom: 15px; }
.price-card .price { font-size: 36px; font-weight: bold; color: var(--primary); margin-bottom: 20px; }
.price-card .price span { font-size: 16px; color: #94a3b8; font-weight: normal; }
.price-card ul { list-style: none; padding: 0; margin-bottom: 30px; text-align: left; }
.price-card ul li { margin-bottom: 10px; padding-left: 25px; position: relative; }
.price-card ul li::before { content: '✓'; color: #10b981; position: absolute; left: 0; font-weight: bold; }

/* Галерея */
.gallery-subtitle { text-align: center; margin-bottom: 30px; font-size: 18px; }
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 15px; 
}
.gallery-grid img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
    border-radius: 8px; 
    transition: 0.3s; 
}
.gallery-grid img:hover { 
    transform: scale(1.03); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
    cursor: pointer; 
}

/* FAQ */
.faq-item { 
    background: #fff; 
    border: 1px solid #e2e8f0; 
    border-radius: 8px; 
    margin-bottom: 15px; 
    padding: 20px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.02); 
}
/* ИСПРАВЛЕНО 5: Увеличена кликабельная зона аккордеона FAQ */
.faq-item summary { 
    font-weight: bold; 
    cursor: pointer; 
    font-size: 18px; 
    outline: none; 
    list-style: none; 
    position: relative; 
    padding: 10px 20px 10px 0; 
    color: #0f172a; 
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { 
    content: '+'; 
    position: absolute; 
    right: 0; 
    top: 50%; 
    transform: translateY(-50%); 
    font-size: 24px; 
    color: var(--primary); 
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { 
    margin-top: 15px; 
    color: #475569; 
    line-height: 1.6; 
    border-top: 1px solid #e2e8f0; 
    padding-top: 15px; 
}

/* Карта */
.map-link-wrapper { display: flex; gap: 15px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.map-link { 
    background: #fff; 
    padding: 15px 25px; /* Увеличена зона клика */
    border-radius: 8px; 
    text-decoration: none; 
    color: #0f172a; 
    font-weight: bold; 
    border: 1px solid #e2e8f0; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}
#map-container { 
    width: 100%; 
    height: 400px; 
    background: #e2e8f0; 
    border-radius: 12px; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #64748b; 
    position: relative;
}

/* Подвал */
.footer-section { 
    background: #0f172a; 
    color: #94a3b8; 
    text-align: center; 
    padding: 50px 20px; 
    margin-top: 40px; 
}
.footer-title { font-size: 24px; color: #fff; margin-bottom: 20px; font-weight: bold; }
/* ИСПРАВЛЕНО 6: Увеличена кликабельная зона телефона в футере */
.footer-phone a { 
    color: var(--accent); 
    text-decoration: none; 
    font-size: 20px; 
    display: inline-block; 
    padding: 15px 20px; 
}

/* Плавающая мобильная кнопка */
.mobile-sticky-btn { 
    display: none; 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background: #25D366; 
    text-align: center; 
    padding: 15px; 
    box-shadow: 0 -5px 15px rgba(0,0,0,0.15); 
    z-index: 10000; 
}
.mobile-sticky-btn a { 
    color: #fff; 
    font-weight: bold; 
    font-size: 20px; 
    text-decoration: none; 
    display: block; 
    text-transform: uppercase; 
}

/* ==========================================================================
   АДАПТИВНОСТЬ (МЕДИА-ЗАПРОСЫ)
   ========================================================================== */
@media (max-width: 768px) {
    .top-header { justify-content: center; text-align: center; }
    .hero-section h1 { font-size: 28px; }
    .pricing-container { padding: 40px 20px; }
    
    /* Активация мобильной кнопки */
    .mobile-sticky-btn { display: block; }
    /* Отступ для контента, чтобы не перекрывался кнопкой */
    body { padding-bottom: 70px; }
}