/* ============ ТЁМНАЯ ПРЕМИУМ ТЕМА ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background-color: #0a0a0a;
    color: #fff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Цветовая схема — тёмная премиум */
:root {
    --primary: #c9a03d;
    --primary-dark: #b88a2a;
    --primary-light: rgba(201, 160, 61, 0.15);
    --primary-glow: rgba(201, 160, 61, 0.3);
    --secondary: #8b6b42;
    --bg-card: #1a1a1a;
    --bg-elevated: #1e1e1e;
    --border: #2a2a2a;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --text-muted: #6b6b6b;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.text-center {
    text-align: center;
}

.section-subhead {
    font-size: 1.1rem;
    color: #fff7f7;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 40px;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #0a0a0a;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

/* ============ HERO СЕКЦИЯ ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
	
    object-fit: cover;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.hero .hero-grid {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #c9a03d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.hero p {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
}

/* ============ СТУПЕНЬКИ (КАРТОЧКИ) ============ */
.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.step-card {
    flex: 0 1 calc(33.333% - 2rem); /* Изменяем с 1 1 300px на это */
    min-height: 320px;
    min-width: 280px; /* Минимальная ширина для мобильных */
    max-width: 380px; /* Максимальная ширина, чтобы не растягивались */
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

/* Для планшетов — 2 в ряд */
@media (max-width: 992px) {
    .step-card {
        flex: 0 1 calc(50% - 2rem);
        min-width: 250px;
    }
}

/* Для телефонов — 1 в ряд */
@media (max-width: 576px) {
    .step-card {
        flex: 0 1 100%;
        min-width: auto;
    }
}

.step-card:hover {
    transform: translateY(-8px);
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.step-card > * {
    position: relative;
    z-index: 2;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #c9a03d;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.step-card p {
    font-size: 1.0rem;
    line-height: 1.5;
    color: #ddd;
}

.step-preview video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* Сохраняет пропорции */
    object-fit: cover;
}

/* На телефонах можно обрезать края */
@media (max-width: 576px) {
    .step-preview video {
        aspect-ratio: 16 / 9;
        object-fit: cover;
        object-position: center;
    }
}

/* ============ СЕТКИ ПРЕИМУЩЕСТВ ============ */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.benefit-icon {
    font-size: 2rem;
    color: var(--primary);
    min-width: 3rem;
}

.benefit-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #c9a03d;
}

.benefit-item p {
    color: #fff7f7;
    font-size: 0.9rem;
}

/* ============ TWO COLUMNS ============ */
.two-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid var(--border);
}

.col {
    flex: 1;
}

.col h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-list {
    list-style: none;
    margin-top: 1rem;
}

.feature-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff7f7;
}

.feature-list i {
    color: var(--primary);
    width: 1.5rem;
}

/* ============ ТАБЫ ============ */
.audience-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.tab-btn.active {
    background: var(--primary);
    color: #0a0a0a;
    border-color: var(--primary);
}

.tab-pane {
    display: none;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--border);
}

.tab-pane.active {
    display: block;
}

/* ============ ПРАЙСИНГ ============ */
.pricing-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.pricing-card {
    flex: 1;
    min-width: 280px;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    position: relative;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1rem 0;
}

/* ============ FAQ ============ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    overflow: hidden;
}

.faq-question {
    padding: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
}

.faq-question i {
    color: var(--primary);
}

.faq-answer {
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    padding: 0 1.2rem 1.2rem;
    max-height: 300px;
}

/* ============ СКРИНШОТЫ ============ */
.screenshots-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.screenshot-img {
    width: 260px;
    height: 200px;
    border-radius: 16px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.screenshot-img:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(201, 160, 61, 0.2);
}

/* ============ МОДАЛЬНОЕ ОКНО ============ */
.screenshot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    cursor: pointer;
}

.screenshot-modal.hidden {
    display: none;
}

.screenshot-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.screenshot-modal-content img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 2px solid var(--primary);
}

.screenshot-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    cursor: pointer;
    transition: 0.2s;
}

.screenshot-modal-close:hover {
    color: var(--primary);
}

/* ============ ФОРМА ============ */
.form-control {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

/* ============ ФУТЕР ============ */
footer {
    background: #050505;
    color: #e5e5e5;
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* ============ АДАПТИВ ============ */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .section-subhead {
        font-size: 1rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .two-columns {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-card {
        width: 100%;
        max-width: 360px;
    }
    
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .step-card {
        min-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .screenshot-img {
        width: 100%;
        height: auto;
        max-width: 280px;
    }
}

/* Превью при наведении на карточки шагов */
.step-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.step-preview {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align: center;
    z-index: 10;
}
/* Субтитры */
.step-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.4);       /* Полупрозрачный фон */
    backdrop-filter: blur(4px);
    padding: 14px 20px;
    border-radius: 14px;
    color: #c9a03d;                       /* Золотой текст */
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    border-left: 4px solid #c9a03d;
    pointer-events: none;
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-shadow: 0 0 20px rgba(201, 160, 61, 0.3); /* Свечение */
}
/* Активное состояние */
.step-card.video-active .step-caption {
    transform: translateY(0);
    opacity: 1;
}

.step-card:hover .step-preview {
    transform: translateY(0);
}

.step-preview img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 12px;
    border: 1px solid var(--primary);
    margin-bottom: 8px;
}

.preview-text {
    font-size: 12px;
    color: var(--primary);
    display: block;
}

/* На мобильных — по клику или касанию */
@media (max-width: 768px) {
    .step-card.active .step-preview {
        transform: translateY(0);
    }
}

/* ============ ОБСЛУЖИВАНИЕ НОВОГО ПОКОЛЕНИЯ ============ */
.new-generation {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #111111 100%);
    border-top: 1px solid rgba(201, 160, 61, 0.2);
    border-bottom: 1px solid rgba(201, 160, 61, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
	z-index: 99;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #c9a03d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.section-header .subtitle {
    font-size: 1.2rem;
    color: #c9a03d;
    font-weight: 500;
    letter-spacing: 0.5px;
	position: sticky;
}

/* Две колонки */
.two-columns-benefits {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.benefit-col {
    flex: 1;
    min-width: 300px;
    background: #1a1a1a;
    border-radius: 28px;
    padding: 2rem 1.5rem;
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease;
}

.benefit-col:hover {
    transform: translateY(-5px);
    border-color: #c9a03d;
    box-shadow: 0 10px 30px rgba(201, 160, 61, 0.1);
}

.benefit-col-header {
    text-align: center;
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(201, 160, 61, 0.3);
}

.benefit-col-header i {
    font-size: 2.5rem;
    color: #c9a03d;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.benefit-col-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #f5f5f5;
    margin: 0;
}

.benefit-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #fff;
    line-height: 1.4;
}

.benefit-list li i {
    font-size: 1.2rem;
    color: #c9a03d;
    flex-shrink: 0;
    width: 24px;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .new-generation {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .section-header .subtitle {
        font-size: 1rem;
    }
    
    .benefit-col {
        min-width: 100%;
        padding: 1.5rem;
    }
    
    .benefit-col-header h3 {
        font-size: 1.4rem;
    }
    
    .benefit-list li {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .benefit-list li {
        font-size: 0.85rem;
    }
}

/* ============ СЛАЙДЕР ============ */
.screenshot-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.slider-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-track {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.slider-slide {
    display: none;
    width: 100%;
    text-align: center;
}

.slider-slide.active {
    display: block;
}

.slider-slide img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    background: #1a1a1a;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.slider-slide img:hover {
    transform: scale(1.02);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: #c9a03d;
    color: #0a0a0a;
}

.prev-btn {
    left: -60px;
}

.next-btn {
    right: -60px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #444;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #c9a03d;
    width: 24px;
    border-radius: 10px;
}

/* ============ МОДАЛЬНОЕ ОКНО ============ */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-modal.hidden {
    display: none;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    background: #1a1a1a;
    border-radius: 20px;
    padding: 20px;
    position: relative;
    cursor: default;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 35px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.modal-close:hover {
    color: #c9a03d;
}

.modal-slider {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-prev, .modal-next {
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-prev:hover, .modal-next:hover {
    background: #c9a03d;
    color: #0a0a0a;
}

.modal-image-container {
    flex: 1;
    text-align: center;
}

#modalImage {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
}

.modal-caption {
    margin-top: 1rem;
    color: #c9a03d;
    font-size: 1rem;
    text-align: center;
}

.modal-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.modal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #444;
    cursor: pointer;
}

.modal-dot.active {
    background: #c9a03d;
    width: 20px;
    border-radius: 10px;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .slider-btn {
        font-size: 1.5rem;
        padding: 0.3rem 0.7rem;
    }
    
    .prev-btn {
        left: -40px;
    }
    
    .next-btn {
        right: -40px;
    }
    
    .modal-slider {
        gap: 0.5rem;
    }
    
    .modal-prev, .modal-next {
        font-size: 1.2rem;
        padding: 0.3rem 0.7rem;
    }
    
    .modal-caption {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .slider-btn {
        display: none;
    }
    
    .slider-slide img:hover {
        transform: none;
    }
}

/* ============ ФОРМА ЗАЯВКИ (ТЁМНАЯ ТЕМА) ============ */
#demo-form .form-control,
#demo-form .form-select {
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    color: #f5f5f5;
    border-radius: 40px;
    padding: 12px 16px;
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#demo-form .form-control:focus,
#demo-form .form-select:focus {
    outline: none;
    border-color: #c9a03d;
    box-shadow: 0 0 0 2px rgba(201, 160, 61, 0.2);
}

#demo-form .form-control::placeholder {
    color: #666;
}

/* Стилизация выпадающего списка */
#demo-form .form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c9a03d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

#demo-form .form-select option {
    background: #0a0a0a;
    color: #f5f5f5;
}

/* Кнопки выбора цели */
.goal-btn {
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    color: #a0a0a0;
    padding: 12px 20px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
}

.goal-btn:hover {
    border-color: #c9a03d;
    color: #c9a03d;
}

.goal-btn.active {
    background: #c9a03d;
    border-color: #c9a03d;
    color: #0a0a0a;
}

/* Адаптив для мобильных */
@media (max-width: 600px) {
    .goal-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        min-width: 100px;
    }
    
    #demo-form .form-control,
    #demo-form .form-select {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

.faq-item {
    background: #1a1a1a;
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 1px solid #2a2a2a;
    overflow: hidden;
}

.faq-question {
    padding: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #f5f5f5;
}

.faq-question i {
    color: #c9a03d;
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease;
    color: #a0a0a0;
    line-height: 1.5;
}

.faq-item.active .faq-answer {
    padding: 0 1.2rem 1.2rem;
    max-height: 300px;
}

/* ============ ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ НОВЫХ СЕКЦИЙ ============ */

/* Секция "Обслуживание нового поколения" — плавное появление */
.new-generation {
    scroll-margin-top: 80px;
}

/* Карточки преимуществ в табах — одинаковая высота */
.tab-pane .benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tab-pane .benefit-item {
    height: 100%;
    flex-direction: column;
    text-align: center;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 1.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tab-pane .benefit-item:hover {
    transform: translateY(-5px);
    border-color: #c9a03d;
}

.tab-pane .benefit-icon {
    margin-bottom: 1rem;
}

.tab-pane .benefit-icon i {
    font-size: 2rem;
    color: #c9a03d;
}

.tab-pane .benefit-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #f5f5f5;
}

.tab-pane .benefit-item p {
    font-size: 0.9rem;
    color: #fff;
    line-height: 1.5;
}

/* Секция "Как это работает" — исправление отступов */
#how-it-works {
    scroll-margin-top: 80px;
}

.steps {
    margin-bottom: 2rem;
}

/* Секция "Почему выбирают нас" — тёмный фон */
#benefits {
    background: #111111 !important;
}

#benefits .benefit-item {
    background: #1a1a1a;
}

/* Секция CRM */
#crm-core {
    background: #0a0a0a;
}

/* Секция акций */
section[style*="background: #111111"] {
    background: #111111 !important;
}

/* Тарифы — выравнивание карточек */
.pricing-card {
    display: flex;
    flex-direction: column;
}

.pricing-card ul {
    flex: 1;
}

/* FAQ — исправление отступов */
.faq-list {
    margin: 0 auto;
}

/* Адаптив для табов на мобильных */
@media (max-width: 768px) {
    .tab-pane .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tab-pane .benefit-item {
        padding: 1.25rem;
    }
    
    .two-columns-benefits {
        flex-direction: column;
    }
    
    .benefit-col {
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .tab-pane .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Плавный скролл для всей страницы */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Убираем дублирование стилей FAQ */
.faq-item {
    background: #1a1a1a;
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 1px solid #2a2a2a;
    overflow: hidden;
}

.faq-question {
    padding: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #f5f5f5;
}

.faq-question i {
    color: #c9a03d;
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease;
    color: #fff;
    line-height: 1.5;
}

.faq-item.active .faq-answer {
    padding: 0 1.2rem 1.2rem;
    max-height: 500px;
}
/* ============ НАЦИОНАЛЬНЫЙ БЕЙДЖ (ВАРИАНТ 1) ============ */
.national-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #d52b1e 0%, #d52b1e 40%, #2a6b2f 60%, #2a6b2f 100%);
    padding: 5px 12px;
    border-radius: 40px;
    margin-left: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.badge-flag {
    font-size: 1rem;
}

.badge-text {
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* ============ НАЦИОНАЛЬНЫЙ ФЛАГ (ВАРИАНТ 2) ============ */
.national-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d52b1e 0%, #d52b1e 40%, #2a6b2f 60%, #2a6b2f 100%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-left: 1rem;
    font-size: 1.1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Адаптив */
@media (max-width: 768px) {
    .national-badge {
        padding: 4px 10px;
        margin-left: 0.75rem;
    }
    .badge-text {
        font-size: 0.65rem;
    }
    .national-flag {
        width: 28px;
        height: 28px;
        font-size: 0.95rem;
        margin-left: 0.75rem;
    }
}

@media (max-width: 550px) {
    .badge-text {
        display: none;
    }
    .national-badge {
        padding: 5px 10px;
    }
}
/* Национальный флажок в футере — компактный */
.footer-flag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d52b1e 0%, #d52b1e 40%, #2a6b2f 60%, #2a6b2f 100%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .footer-flag-icon {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
}

/* Контактная панель под шапкой */

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 160, 61, 0.15);
    padding: 6px 16px;
    border-radius: 40px;
    color: #c9a03d;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(201, 160, 61, 0.3);
}

.contact-phone:hover {
    background: rgba(201, 160, 61, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-bar-content {
        justify-content: center;
    }
    .contact-phone {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
}
/* ============ АНИМАЦИЯ ДЛЯ ФОРМЫ ============ */
@keyframes runFromForm {
    0% {
        right: -100px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        right: calc(100% + 100px);
        opacity: 0;
    }
}

.form-waiter {
    position: fixed;
    bottom: 150px;
    right: -100px;
    pointer-events: none;
    z-index: 10000;
    animation: runFromForm 2s ease-out forwards;
}

.form-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1a1a1a;
    border: 2px solid #c9a03d;
    border-radius: 16px;
    padding: 15px 25px;
    z-index: 10001;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Адаптивность видео для мобильных */
@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
    }
    
    .hero-video {
        display: none; /* Скрываем видео на мобильных */
    }
    
    .hero::after {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 60vh;
    }
    
    .hero h1 {
        font-size: 1.3rem;
    }
	.hero p {
        font-size: 0.9rem;
    }
}

/* ============ ПРИНУДИТЕЛЬНОЕ ЦЕНТРИРОВАНИЕ HERO ============ */
.hero {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.hero .hero-grid {
    width: 100% !important;
    text-align: center !important;
    display: block !important;
}

.hero-content {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

.hero h1 {
    text-align: center !important;
}

.hero p {
    text-align: center !important;
}

.hero-buttons {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
}

.hero-buttons .btn {
    margin: 0 !important;
}

/* Увеличиваем логотип */
.logo-img {
    max-height: 100px;  /* было меньше — увеличьте */
    width: auto;
}

/* Логотип опускается ниже шапки */
.logo {
    position: relative;
    top: 10px;  /* подогнать под контактную панель */
}

/* 1. Поднимаем логотип выше контактной панели */
.logo {
    position: relative;
    z-index: 10;
}

.logo-img {
    height: 150px !important;
    width: auto !important;
}

/* ============ КОНТАКТНАЯ ПАНЕЛЬ (исправленная) ============ */
.contact-bar {
    background: #0a0a0a;
    border-bottom: 1px solid rgba(201, 160, 61, 0.3);
    padding: 8px 0;
    position: relative;
}

/* Для ноутбуков — сдвигаем панель вправо */


.contact-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
	margin-top: -25px;     /* поднимаем вверх */
    margin-bottom: 10px;
    padding-left: 180px; 
}

.contact-bar-content h3 {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
}

/* Увеличиваем шрифт на больших экранах */
@media (min-width: 1200px) {
    .contact-bar-content h3 {
        font-size: 18px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .contact-bar-content h3 {
        font-size: 16px;
    }
}

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 160, 61, 0.15);
    padding: 6px 16px;
    border-radius: 40px;
    color: #c9a03d;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid rgba(201, 160, 61, 0.3);
}

.contact-phone:hover {
    background: rgba(201, 160, 61, 0.3);
    transform: translateY(-2px);
}

/* ============ МОБИЛЬНАЯ ВЕРСИЯ ============ */
@media (max-width: 768px) {
    .contact-bar .container {
        padding-left: 16px;  /* Возвращаем обычный отступ */
    }
    
    .contact-bar-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 8px;
    }
    
    .contact-bar-content h3 {
        white-space: normal;
        font-size: 12px;
    }
    
    .contact-phone {
        font-size: 0.8rem;
        padding: 4px 12px;
        align-self: center;
    }
}

@media (max-width: 480px) {
    .contact-bar {
        padding: 6px 0;
    }
    
    .contact-bar-content h3 {
        font-size: 11px;
    }
}

.two-offers {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.offer-card {
    flex: 1;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(201, 160, 61, 0.3);
    transition: all 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-5px);
    border-color: #c9a03d;
    box-shadow: 0 10px 30px rgba(201, 160, 61, 0.15);
}

.offer-icon {
    font-size: 3rem;
    color: #c9a03d;
    margin-bottom: 1rem;
}

.offer-card h3 {
    color: #c9a03d;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.offer-card p {
    color: #fff;
    margin-bottom: 1rem;
}

.offer-card ul {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.offer-card li {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .two-offers {
        flex-direction: column;
    }
}


/* Подсветка карточек при наведении */
.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(201, 160, 61, 0.3);
    border: 1px solid rgba(201, 160, 61, 0.5);
}

/* Подсветка иконок */
.step-card:hover .step-icon i {
    text-shadow: 0 0 10px rgba(201, 160, 61, 0.5);
}

/* Цифра шага (фоновая) */
.step-card::after {
    content: attr(data-step);
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(201, 160, 61, 0.08);
    z-index: 0;
    transition: all 0.3s ease;
}

.step-card:hover::after {
    color: rgba(201, 160, 61, 0.15);
    transform: scale(1.05);
}
/* ============ ПЛАНШЕТЫ (768px - 1024px) ============ */
@media (max-width: 1024px) and (min-width: 769px) {
    .contact-bar-content {
        margin-top: -10px;
        padding-left: 160px;
        gap: 15px;
    }
    
    .contact-bar-content h3 {
        font-size: 12px;
        white-space: nowrap;
    }
    
    .contact-phone {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
}

/* ============ МОБИЛЬНЫЕ (до 768px) ============ */
@media (max-width: 768px) {
    .contact-bar-content {
        margin-top: 0;
        padding-left: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        text-align: center;
    }
    
    .contact-bar-content h3 {
        white-space: normal;
        font-size: 11px;
        line-height: 1.4;
        max-width: 90%;
    }
    
    .contact-phone {
        font-size: 0.75rem;
        padding: 4px 12px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
}

/* ============ ОЧЕНЬ МАЛЕНЬКИЕ ТЕЛЕФОНЫ (до 480px) ============ */
@media (max-width: 480px) {
    .contact-bar-content {
        gap: 6px;
    }
    
    .contact-bar-content h3 {
        font-size: 10px;
    }
    
    .contact-phone {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}
/* Бургер-меню */
.burger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
	right:15px;
	position: fixed;
    padding: 10px;
    z-index: 110;
    margin-left: auto;
}
.burger-line {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color:  #c9a03d !important;
    transition: all 0.3s ease;
    border-radius: 3px;
}
.burger.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger.active .burger-line:nth-child(2) {
    opacity: 0;
}
.burger.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Планшеты и мобильные */
@media (max-width: 1024px) {
    .burger {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -400px;
        width: 70%;
        max-width: 400px;
		color: #fff !important;
        height: 100vh;
        background: #0a0a0a;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 25px;
        transition: right 0.3s ease;
        z-index: 101;
        box-shadow: -2px 0 10px rgba(0,0,0,0.5);
        padding: 20px;
        list-style: none;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links a {
        font-size: 1.1rem;
        padding: 10px;
        display: block;
        color: #fff !important;
        text-decoration: none;
    }
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        z-index: 100;
    }
}

@media (max-width: 480px) {
    .nav-links a {
        font-size: 1rem;
    }
}
header {
    background: #0a0a0a !important;
    backdrop-filter: none !important;
}

/* Кнопка "Вверх" по умолчанию (мобильные) */
.back-to-top {
    left: 16px !important;
    right: auto !important;
    bottom: 20px !important;
}

/* На планшетах и десктопе – справа */
@media (min-width: 768px) {
    .back-to-top {
        left: auto !important;
        right: 30px !important;
        bottom: 30px !important;
    }
}
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}
/* ============ УМЕНЬШАЕМ ЛОГОТИП И ШАПКУ НА МОБИЛЬНЫХ ============ */
@media (max-width: 768px) {
    /* Уменьшаем логотип */
    .logo-img {
        height: 60px !important;  /* было 150px */
        max-height: 60px;
    }
    
    /* Уменьшаем отступы в шапке */
    header {
        padding: 5px 0;
    }
    
    /* Уменьшаем отступы в навигации */
    nav {
        gap: 10px;
    }
    
    /* Уменьшаем размер шрифта в названии */
    .logo div {
        font-size: 0.9rem;
    }
    
    /* Уменьшаем отступы в контактной панели */
    .contact-bar-content {
        margin-top: 0;
        margin-bottom: 5px;
        gap: 5px;
    }
    
    .contact-bar-content h3 {
        font-size: 10px;
    }
    
    .contact-phone {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}

/* Для совсем маленьких экранов (до 480px) */
@media (max-width: 480px) {
    .logo-img {
        height: 50px !important;
    }
    
    .logo div {
        font-size: 0.8rem;
    }
    
    .contact-bar-content h3 {
        font-size: 9px;
    }
}
/* ============ ПЕРЕНОСИМ БЕЙДЖ В ОДНУ СТРОКУ С ТЕЛЕФОНОМ НА МОБИЛЬНЫХ ============ */
@media (max-width: 768px) {
    /* Строка с бейджем и телефоном */
    .header-right {
        display: flex;
        flex-direction: row !important;      /* горизонтально */
        justify-content: space-between !important; /* бейдж слева, телефон справа */
        align-items: center;
        width: 100%;
        gap: 10px;
        margin-top: 5px;
    }
    
    /* Бейдж — слева, компактный */
    .national-badge {
        margin-left: 0 !important;
        padding: 4px 10px;
        width: auto;
        border-radius: 40px;  /* возвращаем скругление (не полоску) */
    }
    
    /* Текст бейджа показываем, но делаем мелким */
    .badge-text {
        display: inline-block !important;
        font-size: 0.65rem;
    }
    
    /* Телефон — справа */
    .header-phone {
        font-size: 0.75rem;
        padding: 4px 12px;
        margin-left: auto;  /* прижимаем вправо */
    }
}
/* ============ ЛЕНИВЫЙ YOUTUBE ПЛЕЕР ============ */

.youtube-lazy {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
    cursor: pointer;
	pointer-events: auto;
	
}
.youtube-lazy img,
.youtube-lazy div:not(.youtube-lazy) {
    pointer-events: none;
}

.youtube-lazy .youtube-overlay {
    transition: background 0.4s ease;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .youtube-lazy {
        border-radius: 16px !important;
    }
    
    .youtube-lazy iframe {
        border-radius: 16px !important;
    }
}