/* ===================================================================
   TABLE OF CONTENTS
   -------------------------------------------------------------------
   1.  Шрифты и глобальные переменные
   2.  Базовые стили и сбросы
   3.  Стили компонентов (Header, Buttons, Cards)
   4.  Стили секций страницы (Hero, Problems, Reviews, etc.)
   5.  Стили для внешних библиотек (Swiper)
   6.  Анимации
   7.  Адаптивные стили (Media Queries)
=================================================================== */


/* --- 1. Шрифты и глобальные переменные --- */

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Lora';
    src: url('fonts/Lora-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

:root {
    --color-primary: #2c3e50;
    --color-secondary: #34495e;
    --color-accent: #3498db;
    --color-accent-hover: #2980b9;
    --color-light: #ecf0f1;
    --color-white: #ffffff;
    --font-header: 'Roboto', sans-serif;
    --font-body: 'Lora', serif;
}


/* --- 2. Базовые стили и сбросы --- */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-primary);
    background-color: var(--color-white);
    margin: 0;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-header);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 60px; }

a {
    color: var(--color-accent);
    text-decoration: none;
}


/* --- 3. Стили компонентов (Header, Buttons, Cards) --- */

.main-header {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    font-family: var(--font-header);
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
    opacity: 0.9;
}

.header-tagline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.header-tagline img {
    height: 20px;
}

.cta-button {
    display: inline-block;
    font-family: var(--font-header);
    font-weight: 700;
    padding: 15px 35px;
    border-radius: 50px;
    background-color: var(--color-light);
    color: var(--color-primary);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-button.primary:hover {
    background-color: var(--color-accent-hover);
}

.icon-svg {
    width: 64px;
    height: 64px;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* --- 4. Стили секций страницы (Hero, Problems, Reviews, etc.) --- */

/* Общие стили для секций */
.content-section, .cta-section {
    padding: 100px 0;
}
.cta-section {
    background-color: var(--color-light);
    text-align: center;
}
.content-section-dark {
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 100px 0;
}
.content-section-dark h2 {
    color: var(--color-white);
}

/* Секция Hero */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/hero-background.webp') no-repeat center center/cover;
    background-attachment: fixed; /* Эффект параллакса */
    padding: 100px 0;
    animation: ken-burns 20s infinite;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 20px auto 40px;
    opacity: 0.9;
}

/* Секция Problems */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.problem-card .icon {
    color: var(--color-accent);
    margin-bottom: 20px;
}

/* Секция Case Study */
.case-study-section {
    padding: 60px 0;
    background-color: var(--color-light);
}

.case-study-title {
    font-size: 2rem; 
    color: var(--color-primary);
    margin-bottom: 40px;
}

.case-study-card {
    background-color: var(--color-white);
    border: 1px solid #e0e0e0;
    border-left: 5px solid var(--color-accent);
    border-radius: 8px;
    padding: 30px 35px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.case-study-card h4 {
    margin-top: 0;
    color: var(--color-primary);
    font-size: 1.4rem;
}

.case-study-card p {
    margin-bottom: 0;
    line-height: 1.7;
    color: var(--color-secondary);
}

.case-study-card p + p {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.case-study-card strong {
    color: var(--color-primary);
}

/* Секция Solution */
.cta-section p {
    max-width: 700px;
    margin: 20px auto 40px;
}

/* Секция Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.benefit-item h4 {
    margin: 0 0 5px 0;
}

.benefit-item p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.8;
}

/* Секция Reviews */
.reviews-subtitle {
    text-align: center;
    opacity: 0.7;
    margin-top: -40px;
    margin-bottom: 40px;
}

.review-card {
    background: var(--color-secondary);
    padding: 30px;
    border-radius: 10px;
    height: 100%;
    position: relative;
    padding-top: 40px;
}

.review-card .author {
    margin-top: 20px;
    font-style: italic;
    opacity: 0.8;
}

.review-avatar {
    position: absolute;
    top: -25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--color-white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    object-fit: cover;
}

/* Секция Pricing */
.final-cta {
    background: none;
}

.price-display {
    font-family: var(--font-header);
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
}

.price-period {
    font-size: 1.5rem;
    opacity: 0.7;
}

.price-subtitle {
    margin-top: 10px;
}

.coverage-highlight {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-align: center;
    margin-top: 25px;
    line-height: 1.4;
}

.coverage-highlight strong {
    color: var(--color-primary);
}

.coverage-highlight small {
    display: block;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-secondary);
    opacity: 0.8;
    margin-top: 5px;
}

.includes-list {
    text-align: center;
    margin: 40px auto;
    max-width: 400px;
}

.includes-list ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.includes-list li {
    padding: 5px 0;
}

.language-warning {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    padding: 15px;
    border-radius: 5px;
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
    font-size: 0.9rem;
}

.final-button {
    font-size: 1.2rem;
}

.secure-note {
    font-size: 0.9rem;
    text-align: center;
    opacity: 0.7;
    margin-top: 15px;
}

/* Секция FAQ */
.faq-container {
    max-width: 700px;
    margin: 0 auto;
}

details {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

summary {
    font-family: var(--font-header);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    float: right;
}

details[open] summary::after {
    content: '−';
}

/* Секция Footer */
footer {
    background: var(--color-secondary);
    color: var(--color-light);
    padding: 40px 0;
    text-align: center;
}

footer .disclaimer {
    font-size: 0.8rem;
    opacity: 0.6;
    max-width: 600px;
    margin: 20px auto;
}

footer a {
    color: var(--color-light);
}


/* --- 5. СТИЛИ ДЛЯ ВНЕШНИХ БИБЛИОТЕК (SWIPER) --- */

.mySwiper {
    padding-top: 40px; 
    padding-bottom: 50px; 
}

.swiper-pagination-bullet-active {
    background-color: var(--color-white) !important;
}


/* --- 6. АНИМАЦИИ --- */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes ken-burns {
    0% { background-position: center center; background-size: 120%; }
    50% { background-position: top center; background-size: 130%; }
    100% { background-position: center center; background-size: 120%; }
}

/* --- СТИЛИ ДЛЯ БОНУСНОГО БЛОКА --- */
.bonus-section {
    padding: 60px 0;
    background-color: #f7f9fa; /* Чуть другой оттенок, чем у cta-section */
}

.bonus-card {
    background: linear-gradient(135deg, var(--color-white) 0%, #fdfdfd 100%);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.07);
}

.bonus-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 20px;
}

.bonus-card h3 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.bonus-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-secondary);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}


/* --- 7. АДАПТИВНЫЕ СТИЛИ --- */

@media (max-width: 992px) {
    h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .content-section, .cta-section {
        padding: 80px 20px;
    }
    
    .problems-grid, .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .header-tagline span {
        display: none;
    }
    
    .header-logo {
        font-size: 1rem;
    }

    .header-container {
        gap: 15px;
    }

    .hero-section {
        animation: none;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 20px;
    }

    .hero-section h1 {
        font-size: clamp(20px, calc(7.25vh - 21.18px), 40px);
        line-height: 1.3;
        margin: 0 0 clamp(15px, 4vh, 25px);
    }

    .hero-section .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: clamp(5px, 1vh, 35px);
    }
}