/* 1. Глобальный сброс и жесткая защита от бокового скролла */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important; /* Полностью блокирует горизонтальный люфт */
    position: relative;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.5;
    direction: rtl;
}

/* Базовый резиновый контейнер */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Принудительное выравнивание шрифта заголовков под системный */
.hero h1, h1 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

h2, h3 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

/* 2. Главный экран (Hero Section) */
.hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    text-align: center;
    padding: 40px 0;
}

.badge {
    display: inline-block;
    background-color: #ffc107;
    color: #000000;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 20px;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap-reverse;
    gap: 24px;
    margin-bottom: 24px;
    width: 100%;
}

.hero-text {
    flex: 1;
    min-width: 280px;
    text-align: right;
}

.subtitle {
    font-size: 18px;
    opacity: 0.95;
}

.hero-avatar {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

/* Плашки в Hero */
.main-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    width: 100%;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
}

/* Главная Кнопка */
.cta-button {
    display: inline-block;
    background-color: #25d366;
    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    max-width: 100%;
}

/* 3. Блок преимуществ */
.benefits {
    padding: 50px 0;
    background-color: #ffffff;
}

.benefits h2, .gallery h2, .pricing h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1e3c72;
}

.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.benefit-card {
    background-color: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    text-align: center;
    flex: 1;
    min-width: 240px;
    max-width: 100%;
}

.card-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.benefit-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 15px;
    color: #495057;
}

/* 4. Блок Галереи */
.gallery {
    padding: 50px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.gallery-subtitle {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 30px;
    display: block;
    width: 100%;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.gallery-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    flex: 1;
    min-width: 280px;
    max-width: 100%;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.item-desc {
    padding: 12px;
    font-weight: 600;
    font-size: 15px;
    color: #212529;
    border-top: 1px solid #e9ecef;
    background-color: #ffffff;
}

/* 5. Блок Цен */
.pricing {
    padding: 50px 0;
    background-color: #ffffff;
}

.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.price-card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 16px;
    padding: 30px;
    flex: 1;
    min-width: 280px;
    max-width: 340px;
    position: relative;
}

.price-card.featured {
    border: 2px solid #007bff;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.08);
}

.card-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #007bff;
    color: #ffffff;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 13px;
    white-space: nowrap;
}

.price-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.price {
    font-size: 32px;
    font-weight: 800;
    color: #007bff;
    text-align: center;
    margin-bottom: 20px;
}

.price-card ul li {
    font-size: 15px;
    margin-bottom: 10px;
    color: #495057;
    position: relative;
    padding-right: 20px;
    text-align: right;
}

.price-card ul li::before {
    content: "✓";
    color: #25d366;
    font-weight: bold;
    position: absolute;
    right: 0;
}

/* 6. Подвал */
.footer {
    background-color: #212529;
    color: #adb5bd;
    text-align: center;
    padding: 30px 0;
    font-size: 14px;
}

.footer p {
    margin-bottom: 6px;
}

/* 7. Фиксированная мобильная панель */
.mobile-contact-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background-color: #ffffff;
    box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 8px 12px;
}

.contact-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    margin: 0 4px;
}

.btn-icon {
    margin-left: 6px;
    font-size: 18px;
}

.phone-btn { background-color: #007bff; color: #ffffff; }
.whatsapp-btn { background-color: #25d366; color: #ffffff; }

/* Анимация */
@keyframes pulse-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}
.pulse { animation: pulse-animation 2.5s infinite ease-in-out; }

/* 8. Медиа-запросы: Адаптивность для смартфонов */
@media (max-width: 767px) {
    .hero {
        padding: 25px 0 35px 0;
    }
    .hero-text {
        text-align: center;
        width: 100%;
    }
    .hero h1 {
        font-size: 28px;
    }
    .subtitle {
        font-size: 16px;
    }
    .hero-avatar {
        width: 100%;
        margin-bottom: 5px;
    }
    .profile-img {
        width: 250px;
        height: 250px;
    }
    .feature-tag {
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
    .cta-button {
        font-size: 18px;
        padding: 14px 20px;
        width: 100%;
        text-align: center;
    }
    .benefit-card, .gallery-item, .price-card {
        min-width: 100% !important;
        max-width: 100% !important;
    }
    .price-card.featured {
        max-width: 100% !important;
    }
    .mobile-contact-bar {
        display: flex;
    }
    body {
        padding-bottom: 70px;
    }
}
