/* --- Глобальні стилі та змінні --- */
:root {
    --primary-blue: #2E3192;
    --accent-orange: #FF7F00;
    --dark-bg: #1a1a1a;
    --light-bg: #f4f6f9;
    --text-dark: #333;
    --text-light: #ffffff;
    --font-main: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    margin: 0;
    color: var(--text-dark);
    background-color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    margin-top: 0;
}

h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-blue);
}

section {
    padding: 80px 0;
}

/* --- Кнопки --- */
.cta-button {
    display: inline-block;
    background: var(--accent-orange);
    color: var(--text-light);
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-transform: uppercase;
    border: 2px solid var(--accent-orange);
}

.cta-button:hover {
    background: #e67300;
    transform: translateY(-3px);
}

.cta-button-outline {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 13px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}
.cta-button-outline:hover {
    background: var(--primary-blue);
    color: var(--text-light);
}


/* --- Header --- */
.header {
    background: var(--text-light);
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.8);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.header nav a {
    color: var(--text-dark);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 700;
    transition: color 0.3s;
}

.header nav a:hover {
    color: var(--accent-orange);
}


/* --- Hero Section --- */
.hero {
    background-color: var(--primary-blue);
    color: var(--text-light);
    text-align: center;
    padding: 120px 0;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 10px;
}

.hero-slogan {
    font-size: 22px;
    margin-bottom: 25px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.start-date {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- For Whom & Results --- */
.for-whom {
    background-color: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    font-size: 18px;
}

.feature-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.results-list {
    list-style-type: none;
    padding-left: 0;
    max-width: 700px;
    margin: 0 auto;
}

.results-list li {
    font-size: 18px;
    padding: 10px 0 10px 35px;
    position: relative;
}

.results-list li::before {
    content: '✓';
    color: var(--accent-orange);
    font-weight: bold;
    font-size: 20px;
    position: absolute;
    left: 0;
    top: 10px;
}

/* --- Author Section --- */
.author-section { background-color: #fff; }

.author-container {
    display: flex;
    align-items: center;
    gap: 60px;
}
.author-photo {
    flex-basis: 40%;
    min-width: 300px;
}
.author-photo img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.author-info {
    flex-basis: 60%;
}
.author-info h2 { text-align: left; margin-bottom: 10px; }
.author-subtitle { font-size: 18px; font-weight: 700; margin-bottom: 20px; color: #555; }
.author-info ul { list-style: none; padding: 0; }
.author-info li { margin-bottom: 10px; font-size: 16px; }

/* ДОДАНО: Стилі для посилання на соцмережі автора */
.author-social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding: 10px 20px;
    border: 2px solid var(--accent-orange);
    border-radius: 8px;
    text-decoration: none;
    color: var(--accent-orange);
    font-weight: 700;
    transition: all 0.3s ease;
}

.author-social-link:hover {
    background-color: var(--accent-orange);
    color: var(--text-light);
}

.author-social-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}


/* --- How it works --- */
.how-it-works { background-color: var(--light-bg); }

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ddd;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 60px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    background-color: var(--accent-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    border: 3px solid var(--light-bg);
}

.timeline-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

.timeline-content p {
    margin: 0;
}

.timeline-summary {
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: center;
    font-size: 18px;
    font-style: italic;
    color: #555;
}

/* --- What Inside --- */
.what-inside { background-color: #fff; }

.inside-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.inside-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    font-weight: 700;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inside-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(46,49,146,0.1);
}


/* --- Tariffs --- */
.tariffs { background-color: var(--light-bg); }
.tariffs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch; 
    max-width: 800px;
    margin: 0 auto;
}
.tariff-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}
.tariff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(46,49,146,0.1);
}
.tariff-card.recommended {
    border-color: var(--primary-blue);
    border-width: 3px;
}
.recommend-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}
.tariff-card h3 { font-size: 28px; margin-bottom: 15px; }
.price { font-size: 48px; font-weight: 900; color: var(--primary-blue); margin-bottom: 10px; }
.tariff-desc-title { font-size: 16px; font-weight: 700; margin-bottom: 20px; }

.tariff-features {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 0 0 30px 0;
    flex-grow: 1; 
}
.tariff-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}
.tariff-features li::before {
    content: '✓';
    color: var(--accent-orange);
    position: absolute;
    left: 0;
    top: 2px;
    font-weight: bold;
}

/* --- Testimonials --- */
.testimonials { background-color: #fff; }
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.video-wrapper {
    position: relative;
    padding-top: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- FAQ --- */
.faq { background: var(--light-bg); }
.faq .container { max-width: 800px; }
.faq-item {
    background: #fff;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}
.faq-item summary {
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding: 20px;
    padding-right: 50px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--primary-blue);
    transition: transform 0.2s;
}
.faq-item[open] summary::after { 
    content: '−';
    transform: translateY(-50%) rotate(45deg);
}
.faq-item p {
    padding: 0 20px 20px 20px;
    margin-top: 0;
    animation: fadeIn 0.5s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- Final CTA & Footer --- */
.final-cta {
    background-color: var(--primary-blue);
    color: var(--text-light);
    text-align: center;
}
.final-cta h2 { color: var(--text-light); font-size: 32px; }
.footer {
    background-color: var(--dark-bg);
    color: #ccc;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
}
.footer p { margin: 5px 0; }


/* --- Адаптивність --- */
@media (max-width: 768px) {
    h2 { font-size: 28px; }

    .header {
        padding: 15px 0;
    }

    .header .container { 
        flex-direction: row; 
    }
    .header nav {
        display: none; 
    }
    
    .logo img {
        height: 35px;
    }

    .hero-title { font-size: 40px; }
    .hero-slogan { 
        font-size: 18px;
        max-width: 90%;
    }

    .features-grid, .tariffs-grid {
        grid-template-columns: 1fr;
    }
    
    .author-container { flex-direction: column; }
    .author-info {
        text-align: center; /* Центруємо контент в блоці автора на мобільних */
    }
    .author-info h2, .author-subtitle { 
        text-align: center; 
    }
    .author-info ul {
        text-align: left; /* Залишаємо список вирівняним по лівому краю для кращої читабельності */
        display: inline-block;
        margin: 0 auto;
    }

    .tariffs-grid { gap: 50px; }

    .video-grid { grid-template-columns: 1fr; }

    .timeline::before {
        left: 22px; /* Поправка для мобільних */
    }
}