/* --- 1. ПЕРЕМЕННЫЕ И БАЗОВЫЕ СТИЛИ --- */
:root {
    --primary-yellow: #FDCB46;
    --dark-blue-bg: #222831;
    --card-bg: #2a313c;
    --text-light: #EEEEEE;
    --text-dark: #222831;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-blue-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
    height: 100%;
}

/* --- 2. ХЕДЕР И ПЕРВЫЙ ЭКРАН (HERO) --- */
.hero-wrapper {
    min-height: 100vh; /* Занимает весь экран */
    display: flex;
    flex-direction: column;
    position: relative; 
}

#tsparticles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }

/* Контейнер внутри Hero растягивается и центрирует контент */
.hero-wrapper .container {
    position: relative;
    z-index: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центрируем контент по вертикали */
}

/* --- ХЕДЕР --- */
.main-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 30px 0;
    
    /* Абсолютное позиционирование */
    position: absolute; 
    top: 0; 
    left: 20px; 
    right: 20px;
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 0 auto;
    
    z-index: 50; /* Чтобы кнопки кликались */
}

.nav-logo { font-weight: 900; font-size: 1.5rem; color: var(--primary-yellow); text-decoration: none; letter-spacing: 1px; }
.header-actions { display: flex; gap: 15px; }

/* Сетка первого экрана */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    width: 100%;
    padding-top: 80px; /* Компенсация высоты хедера */
}

.hero-text { text-align: left; }
.pre-header { font-size: 0.9rem; font-weight: 500; letter-spacing: 2px; margin-bottom: 20px; color: #aaa; }
.main-headline { font-size: 3.5rem; font-weight: 900; color: #fff; margin-bottom: 25px; line-height: 1.1; }
.sub-header { font-size: 1.1rem; max-width: 500px; margin-bottom: 40px; color: #ccc; }

/* Картинка на первом экране */
.hero-animation-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-img {
    width: 100%;
    height: auto;
    max-width: 800px;
    max-height: 70vh; /* Не выше 70% экрана */
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid #3a414c;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
}

.hero-img:hover { transform: translateY(-5px) scale(1.02); }

/* --- 3. КНОПКИ --- */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: none !important; 
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary { background-color: var(--primary-yellow); color: var(--text-dark); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(253, 203, 70, 0.2); }

.btn-secondary { background-color: transparent; color: var(--text-light); border: 2px solid #3a414c; }
.btn-secondary:hover { border-color: var(--primary-yellow); color: var(--primary-yellow); }

.btn-lg { padding: 18px 40px; font-size: 1.1rem; }
.full-width { width: 100%; display: block; margin-top: 20px; }

/* --- 4. ТАРИФЫ (PRICING) --- */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; color: #fff; }
.section-title p { color: #888; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.pricing-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #3a414c;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card:hover { transform: translateY(-10px); border-color: #555; }
.pricing-card.popular { border-color: var(--primary-yellow); transform: scale(1.05); z-index: 2; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.pricing-card.popular:hover { transform: scale(1.05) translateY(-10px); }

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 20px;
    text-transform: uppercase;
}

.pricing-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: #fff; }
.pricing-card .price { font-size: 3rem; font-weight: 900; color: var(--primary-yellow); margin-bottom: 30px; line-height: 1; }
.pricing-card .price span { font-size: 1rem; color: #888; font-weight: 400; }

.plan-duration {
    display: block;       
    font-size: 1.1rem;    
    color: #ffffff;       
    font-weight: 500;     
    margin-top: 5px;      
    opacity: 0.7;         
}

.features-list { list-style: none; text-align: left; margin-bottom: 30px; color: #ccc; }
.features-list li { padding: 10px 0; border-bottom: 1px solid #3a414c; }
.features-list li:last-child { border-bottom: none; }

/* --- 5. FEATURES (ОБНОВЛЕНО) --- */
.features {
    padding: 100px 0;
    background-color: #1e232b;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid #3a414c;
    text-align: left;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-7px);
    border-color: var(--primary-yellow);
    box-shadow: 0 15px 40px rgba(253, 203, 70, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(253, 203, 70, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-yellow);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background: var(--primary-yellow);
    color: var(--text-dark);
}

/* Lucide icons inside features */
.feature-icon svg { width: 30px; height: 30px; }

.feature-card h3 { color: #fff; font-size: 1.4rem; font-weight: 700; margin-bottom: 15px; }
.feature-card p { color: #aaa; font-size: 0.95rem; line-height: 1.6; }


/* --- 6. FAQ (АККОРДЕОН) --- */
.faq { background-color: var(--dark-blue-bg); padding: 80px 0; }
.faq-wrapper { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }

.faq-item {
    background-color: var(--card-bg);
    border: 1px solid #3a414c;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.faq-item:hover { border-color: #555; }
.faq-item.active { border-color: var(--primary-yellow); }

.faq-question {
    width: 100%; background: none; border: none; padding: 25px;
    text-align: left; display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; color: #fff; font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem; font-weight: 500; transition: color 0.3s ease;
}
.faq-question:hover { color: var(--primary-yellow); }

.faq-icon { width: 24px; height: 24px; min-width: 24px; color: var(--primary-yellow); transition: transform 0.3s ease; margin-left: 15px; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, opacity 0.4s ease; background-color: rgba(0, 0, 0, 0.2); opacity: 0; }
.faq-answer p { padding: 25px; color: #ccc; font-size: 0.95rem; line-height: 1.6; margin: 0; }
.faq-item.active .faq-answer { max-height: 300px; opacity: 1; border-top: 1px solid rgba(255, 255, 255, 0.1); }

/* --- 7. МОДАЛЬНЫЕ ОКНА --- */
.modal {
    display: none; 
    position: fixed; z-index: 100; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
    justify-content: center; align-items: center;
}

.modal-content {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    position: relative;
    border: 1px solid #3a414c;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.text-center { text-align: center; }

.close-btn { position: absolute; top: 15px; right: 20px; font-size: 30px; cursor: pointer; color: #888; transition: 0.2s; }
.close-btn:hover { color: #fff; }

.modal input {
    width: 100%; padding: 15px; margin-bottom: 15px;
    background-color: #1a1f26; border: 1px solid #3a414c;
    color: #fff; border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}
.modal input:focus { outline: none; border-color: var(--primary-yellow); }

.modal-switch { text-align: center; margin-top: 15px; font-size: 0.9rem; cursor: pointer; color: #888; text-decoration: underline; }
.modal-switch:hover { color: var(--primary-yellow); }

.modal-actions { display: flex; gap: 15px; justify-content: center; }
.modal-actions .btn { width: 100%; }

/* --- 8. УВЕДОМЛЕНИЯ (TOASTS) --- */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }

.toast {
    min-width: 300px; padding: 15px 20px;
    border-radius: 8px; color: #fff;
    font-family: 'Montserrat', sans-serif; font-size: 0.9rem; font-weight: 500;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); opacity: 0; transform: translateX(50px);
    transition: all 0.3s ease; display: flex; align-items: center; justify-content: space-between;
}
.toast.error { background-color: #ff4757; border-left: 5px solid #c23616; }
.toast.success { background-color: #2ed573; border-left: 5px solid #26af61; }
.toast.show { opacity: 1; transform: translateX(0); }

/* --- 9. СТРАНИЦА ОПЛАТЫ (FIXED) --- */
.payment-body {
    background-color: #1a1f26;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.payment-container {
    width: 100%;
    max-width: 480px;
    height: 100%;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.back-link {
    color: #888;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    transition: 0.3s;
    flex-shrink: 0;
}
.back-link:hover { color: var(--primary-yellow); }

.payment-card {
    background-color: #222831;
    border: 1px solid #3a414c;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 90vh; 
    overflow-y: auto; 
}
.payment-card::-webkit-scrollbar { width: 4px; }
.payment-card::-webkit-scrollbar-thumb { background: #3a414c; border-radius: 4px; }

.payment-title { font-size: 1.5rem; margin-bottom: 5px; color: #fff; line-height: 1.2; }
.highlight { color: var(--primary-yellow); }
.price-tag { font-size: 1.3rem; font-weight: 700; color: #fff; background: #3a414c; padding: 2px 10px; border-radius: 6px; }
.payment-subtitle { margin-bottom: 15px; color: #aaa; font-size: 0.9rem; }

.qr-wrapper {
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    width: fit-content;
    margin: 0 auto 20px auto;
    display: block;
}
.qr-wrapper img { display: block; width: 150px; height: 150px; object-fit: contain; }

.wallet-box { width: 100%; text-align: left; margin-bottom: 20px; }
.wallet-box label { display: block; color: #888; font-size: 0.85rem; margin-bottom: 5px; }

.input-group { display: flex; gap: 8px; width: 100%; }
.input-group input {
    width: 100%; flex-grow: 1; min-width: 0;
    background: #1a1f26; border: 1px solid #3a414c; color: var(--primary-yellow);
    padding: 10px; border-radius: 6px;
    font-family: monospace; font-size: 0.8rem; letter-spacing: -0.5px;
}

.btn-copy {
    flex-shrink: 0; background: #3a414c; border: none; color: #fff;
    border-radius: 6px; width: 40px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.btn-copy:hover { background: #fff; color: #000; }

.warning-text { font-size: 0.75rem; color: #ff5555; margin-top: 8px; }

.confirmation-step {
    width: 100%; border-top: 1px solid #3a414c; padding-top: 15px; text-align: left;
}
.confirmation-step h3 { color: #fff; margin-bottom: 10px; font-size: 1rem; }
.confirmation-step ol { color: #ccc; padding-left: 20px; margin-bottom: 15px; font-size: 0.85rem; }
.confirmation-step li { margin-bottom: 5px; }

.telegram-btn {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
    text-decoration: none; background-color: var(--primary-yellow);
    color: #222831; padding: 12px; border-radius: 8px;
    font-weight: 700; font-size: 0.9rem; border: none; cursor: pointer; transition: transform 0.2s;
}
.telegram-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(253, 203, 70, 0.3); }

/* --- 10. Footer и Анимации --- */
.main-footer { padding: 40px 0; text-align: center; color: #888; border-top: 1px solid #3a414c; margin-top: 50px; }
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.animate-on-scroll.in-view { opacity: 1; transform: translateY(0); }

/* --- Секция Tech SEO --- */
.tech-section {
    padding: 100px 0;
    background-color: #1a1f26; /* Чуть темнее */
    overflow: hidden;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tech-label {
    display: inline-block;
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80; /* Ярко-зеленый */
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.tech-content h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
}

.tech-list {
    list-style: none;
    margin-top: 30px;
}

.tech-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: #ccc;
    font-size: 0.95rem;
}

.text-green { color: #4ade80; flex-shrink: 0; }

/* Визуализация Speed Test */
.speed-card {
    background: #222831;
    border: 1px solid #3a414c;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
}

.speed-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid #3a414c;
    padding-bottom: 15px;
    color: #fff;
    font-weight: 600;
}
.speed-badge { background: #3a414c; padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; color: #aaa; }

.speed-scores {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}

.score-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
}

.score-label {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #aaa;
}

/* --- НОВЫЕ КРУГИ (CSS Gauges) --- */

.speed-scores {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    margin-bottom: 40px;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Сам круг (Градусник) */
.gauge {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    /* Магия градиента: рисуем круг на основе переменной --value */
    background: conic-gradient(
        var(--color) calc(var(--value) * 1%), 
        rgba(255, 255, 255, 0.05) 0
    );
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Неоновое свечение */
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.15); 
    transition: transform 0.3s ease;
}

.score-item:hover .gauge {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.3);
}

/* Внутренняя дырка (чтобы сделать бублик) */
.gauge-inner {
    width: 88%;
    height: 88%;
    background-color: #222831; /* Цвет фона карточки, чтобы скрыть центр */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Цифра внутри */
.gauge-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}

/* Подпись снизу */
.score-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #aaa;
    letter-spacing: 0.5px;
}

/* Адаптив для кругов */
@media (max-width: 480px) {
    .gauge { width: 80px; height: 80px; }
    .gauge-num { font-size: 1.8rem; }
}

/* --- СТИЛИ ДЛЯ Web Vitals (ОБНОВЛЕННЫЕ) --- */

.web-vitals {
    display: grid;
    /* Три равные колонки */
    grid-template-columns: 1fr 1fr 1fr;
    
    background: #15191f; /* Темный фон, темнее самой карточки */
    padding: 20px 0;     /* Отступы сверху/снизу */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05); /* Еле заметная рамка */
    margin-top: 15px;
}

.vital-item {
    text-align: center;
    position: relative;
    /* Вертикальная линия справа */
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Убираем линию у последнего элемента */
.vital-item:last-child {
    border-right: none;
}

/* Сами цифры (0.4 s) */
.vital-val {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; /* Очень жирный шрифт */
    font-size: 1.5rem;
    color: #4ade80;   /* Ярко-зеленый */
    
    /* Неоновое свечение текста */
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.25);
    
    margin-bottom: 5px;
    line-height: 1;
}

/* Названия (LCP, CLS) */
.vital-name {
    font-size: 0.75rem;
    color: #64748b; /* Приглушенный серо-синий */
    text-transform: uppercase;
    letter-spacing: 1.5px; /* Разрядка букв */
    font-weight: 600;
}

/* --- Секция Отзывов --- */
.reviews-section {
    padding: 100px 0;
    background-color: var(--dark-blue-bg);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: var(--card-bg);
    border: 1px solid #3a414c;
    padding: 30px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.review-card:hover { transform: translateY(-5px); border-color: #555; }

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.reviewer-avatar {
    width: 45px; height: 45px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.2rem;
    color: #fff;
}

.reviewer-info h4 { font-size: 1rem; color: #fff; margin: 0; }
.reviewer-info span { font-size: 0.8rem; color: #888; }
.review-rating { margin-left: auto; color: var(--primary-yellow); letter-spacing: 2px; }

.review-text { font-size: 0.95rem; color: #ccc; font-style: italic; margin-bottom: 20px; flex-grow: 1; }

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #3a414c;
    padding-top: 15px;
}

.roi-badge {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}

.source { font-size: 0.8rem; color: #666; }

/* --- Улучшенный Футер (FIXED) --- */
.main-footer {
    background-color: #15191f;
    padding: 80px 0 30px 0;
    border-top: 1px solid #3a414c;
    margin-top: 0; /* Убираем лишние отступы */
}

.footer-grid {
    display: grid;
    /* Первая колонка шире (2fr), остальные узкие */
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 60px;
    margin-bottom: 60px;
    align-items: start; /* Выравнивание по верхнему краю */
}

/* Настройки колонок */
.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Прижимаем всё влево */
    text-align: left;        /* Текст тоже влево */
}

/* Логотип в футере */
.footer-col .nav-logo {
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: inline-block;
}

/* Описание */
.footer-desc {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 25px 0; /* Отступ снизу */
    max-width: 350px;   /* Ограничиваем ширину текста */
}

/* Заголовки колонок */
.footer-col h4 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ссылки */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    transition: 0.2s;
    font-size: 0.95rem;
    display: block;
}

.footer-col ul li a:hover {
    color: var(--primary-yellow);
    transform: translateX(5px); /* Легкий сдвиг вправо при наведении */
}

/* Соцсети (в ряд) */
.social-links {
    display: flex;
    gap: 20px; /* Расстояние между ссылками */
    margin-top: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05); /* Легкий фон */
    padding: 10px 15px;
    border-radius: 8px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.social-links a:hover {
    background: rgba(253, 203, 70, 0.1);
    color: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

/* Нижняя полоска */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    font-size: 0.85rem;
}

.pay-tag {
    color: #ccc;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
    margin-left: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Адаптив для футера */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Одна колонка */
        gap: 40px;
        text-align: center; /* На мобилках центрируем */
    }
    
    .footer-col {
        align-items: center; /* Центрируем элементы */
        text-align: center;
    }
    
    .footer-desc {
        margin: 0 auto 25px auto; /* Центрируем описание */
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}


/* --- Адаптивность --- */
@media (max-width: 992px) {
    .main-header { position: relative; width: 100%; left: 0; padding: 20px 0; }
    .hero-wrapper .container { justify-content: flex-start; padding-top: 40px; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; padding: 40px 0; min-height: auto; }
    .hero-text { text-align: center; }
    .sub-header { margin-left: auto; margin-right: auto; }
    .hero-animation-placeholder { margin-top: 20px; height: auto; }
    .hero-img { max-height: 400px; max-width: 100%; }
    .main-headline { font-size: 2.8rem; }
}
@media (max-width: 480px) {
    .main-header { flex-direction: column; gap: 15px; }
    .main-headline { font-size: 2.2rem; }
    .modal-content { width: 90%; }
}

/* --- Инфографика (Workflow) --- */
.workflow-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #222831 0%, #1e232b 100%);
    position: relative;
    overflow: hidden;
}

.steps-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 80px;
    position: relative;
}

/* Карточка шага */
.step-card {
    flex: 1;
    background: rgba(42, 49, 60, 0.5); /* Полупрозрачный фон */
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-yellow);
    background: rgba(42, 49, 60, 0.8);
}

/* Огромная цифра на фоне */
.step-number {
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03); /* Почти прозрачная */
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

/* Иконка */
.step-icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(253, 203, 70, 0.2);
    position: relative;
    z-index: 1;
}

.step-icon-box svg {
    width: 30px;
    height: 30px;
    color: var(--text-dark);
}

.step-card h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.step-card p {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* Соединительная линия (для десктопа) */
.step-connector {
    height: 2px;
    background: repeating-linear-gradient(to right, #3a414c 0, #3a414c 10px, transparent 10px, transparent 20px);
    flex-grow: 0.5;
    margin-top: 60px; /* Выравнивание по центру иконок */
    opacity: 0.5;
}

/* --- Баннер статистики --- */
.stats-banner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--card-bg);
    border: 1px solid var(--primary-yellow);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(253, 203, 70, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background-color: #3a414c;
}

/* --- Адаптивность для инфографики --- */
@media (max-width: 992px) {
    .steps-grid {
        flex-direction: column;
        gap: 30px;
    }
    .step-connector {
        display: none; /* Скрываем линии на мобильном */
    }
    .stats-banner {
        flex-direction: column;
        gap: 30px;
    }
    .stat-divider {
        width: 100%;
        height: 1px;
    }
}


/* --- СТИЛИ ДЛЯ СЛУЖЕБНЫХ СТРАНИЦ (Policy, 404) --- */

/* Отступ сверху, так как хедер абсолютный */
.page-wrapper {
    padding-top: 140px; 
    padding-bottom: 80px;
    min-height: 60vh;
}

/* Контейнер для текста (уже, чем основной, для удобства чтения) */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #3a414c;
}

.policy-content h1 {
    font-size: 2.5rem;
    color: var(--primary-yellow);
    margin-bottom: 30px;
    line-height: 1.2;
}

.policy-content h2 {
    font-size: 1.5rem;
    color: #fff;
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-yellow);
    padding-left: 15px;
}

.policy-content p {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 1rem;
}

.policy-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    color: #ccc;
}

.policy-content li {
    margin-bottom: 10px;
}

.policy-content a {
    color: var(--primary-yellow);
    text-decoration: underline;
}

/* --- СТРАНИЦА 404 --- */
.error-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background-color: var(--dark-blue-bg);
}

.error-code {
    font-size: 10rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05); /* Полупрозрачный */
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.error-content {
    position: relative;
    z-index: 1;
}

.error-title {
    font-size: 2.5rem;
    color: var(--primary-yellow);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.error-desc {
    font-size: 1.1rem;
    color: #aaa;
    max-width: 500px;
    margin: 0 auto 30px auto;
}

/* Адаптив для страниц политики */
@media (max-width: 480px) {
    .policy-content h1 {
        font-size: 1.8rem; /* Уменьшаем размер */
        word-wrap: break-word; /* Переносим длинные слова */
        hyphens: auto; /* Добавляем дефисы, если браузер умеет */
        line-height: 1.3;
    }
    
    .policy-content {
        padding: 20px; /* Уменьшаем отступы на мобильных */
    }
    
    /* Дополнительно уменьшаем заголовки h2 */
    .policy-content h2 {
        font-size: 1.3rem;
    }
}

/* --- ИСПРАВЛЕНИЕ МОБИЛЬНОЙ АДАПТАЦИИ TECH SEO --- */

@media (max-width: 992px) {
    /* 1. Выстраиваем блоки в одну колонку */
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* 2. Адаптируем карточку скорости */
    .speed-card {
        padding: 20px; /* Уменьшаем внутренние отступы */
        width: 100%;
        max-width: 100%; /* Чтобы не вылезала за экран */
        overflow: hidden; /* Обрезаем лишнее на всякий случай */
    }

    /* 3. Уменьшаем размер кругов */
    .gauge {
        width: 70px;  /* Было 100px, делаем компактнее */
        height: 70px;
    }

    /* 4. Уменьшаем шрифт цифр внутри круга */
    .gauge-num {
        font-size: 1.5rem; 
    }

    /* 5. Уменьшаем подписи под кругами */
    .score-label {
        font-size: 0.7rem;
    }

    /* 6. Корректируем расположение кругов */
    .speed-scores {
        gap: 5px; /* Уменьшаем расстояние между ними */
        justify-content: space-between; /* Равномерно распределяем */
    }

    /* 7. Уменьшаем нижнюю панель (LCP, CLS, FID) */
    .web-vitals {
        padding: 10px 5px;
    }
    .vital-val {
        font-size: 1.1rem;
    }
    .vital-name {
        font-size: 0.65rem;
    }
}

/* --- Языковой переключатель --- */
.lang-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 15px; /* Отступ от кнопок входа */
}

.lang-btn {
    background: transparent;
    border: 1px solid #3a414c;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: 0.3s;
}

.lang-btn:hover {
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

.lang-btn svg {
    width: 18px;
    height: 18px;
}

/* Выпадающий список */
.lang-dropdown {
    display: none; /* Скрыт по умолчанию */
    position: absolute;
    top: 120%; /* Чуть ниже кнопки */
    right: 0;
    background-color: var(--card-bg); /* Цвет фона карточек */
    border: 1px solid #3a414c;
    border-radius: 8px;
    min-width: 160px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 100;
    overflow: hidden;
}

/* Класс для отображения меню */
.lang-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* Пункты меню */
.lang-dropdown div {
    padding: 12px 15px;
    color: #ccc;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-dropdown div:last-child {
    border-bottom: none;
}

.lang-dropdown div:hover {
    background-color: #3a414c;
    color: #fff;
    padding-left: 20px; /* Эффект сдвига при наведении */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

