:root {
    --apple-black: #1d1d1f;
    --apple-grey: #86868b;
    --apple-bg: #f5f5f7;
    --accent-blue: #0071e3;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.72);
    --transition: all 0.5s cubic-bezier(0.28, 0.11, 0.32, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

html, body {
    height: auto;
    overflow: visible;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    color: var(--apple-black);
    background-color: var(--white);
    line-height: 1.4;
    cursor: none;
}

main {
    height: auto;
    overflow: visible;
    scroll-behavior: smooth;
    /* Улучшенная плавность */
    scroll-padding-top: 52px;
}

.container { max-width: 1060px; margin: 0 auto; padding: 0 30px; }

/* HEADER */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: var(--glass); backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.mobile-nav-toggle { display: none; }
nav { 
    height: 52px; 
    display: flex; 
    align-items: center; 
    justify-content: flex-start; /* Базовое выравнивание влево */
}

.brand { 
    font-size: 14px; 
    font-weight: 700; 
    letter-spacing: 1px; 
    flex-shrink: 0;
}
.brand span { color: var(--apple-grey); font-weight: 300; }

.header-socials {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-left: auto; /* Создает пустое пространство между лого и соцсетями */
    margin-right: 25px; /* Отступ от меню */
}

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 8px; 
    align-items: center; 
    flex-shrink: 0;
}

/* Если иконок нет (например, на странице оферты) */
nav > .nav-links:only-child,
.brand + .nav-links {
    margin-left: auto;
}

.nav-links > li { position: relative; }
.nav-links > li > a { 
    text-decoration: none; 
    font-size: 13px; 
    font-weight: 600; 
    color: var(--apple-black); 
    padding: 8px 16px; 
    display: block; 
    border-radius: 980px; 
    background: rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.nav-links > li > a:hover { 
    background: var(--accent-blue); 
    color: var(--white); 
}

/* ФИКС ЦВЕТА ИКОНОК (Safari Purple Fix) */
.header-socials a, 
.header-socials a i,
.header-socials a:link, 
.header-socials a:visited, 
.header-socials a:active,
.header-socials a:hover {
    text-decoration: none !important;
    color: var(--accent-blue) !important;
    fill: var(--accent-blue) !important;
    -webkit-text-fill-color: var(--accent-blue) !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.header-socials a {
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-socials a i {
    font-size: 20px;
    display: block;
}

.header-socials a:hover {
    transform: translateY(-2px);
    opacity: 0.7;
}

/* Specific style for blue button to override general li > a */
.nav-links > li > a.btn-nav-blue { 
    background-color: var(--accent-blue); 
    color: var(--white); 
    padding: 8px 20px; 
}
.nav-links > li > a.btn-nav-blue:hover {
    background-color: #0066cc; /* Slightly darker on hover */
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

/* DROPDOWN */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 10px;
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 1001;
}

.nav-links li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown a {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    color: var(--apple-black);
    background: transparent; /* Reset background for dropdown items */
    transition: background 0.2s;
    display: block;
    text-decoration: none;
}

.dropdown a:hover {
    background: var(--apple-bg);
    color: var(--accent-blue);
}

.nav-links a i {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.3s;
}

.nav-links li:hover > a i {
    transform: rotate(180deg);
}
/* HERO SPLIT: ВЫБОР ПУТИ */
.hero-split { 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
    background-color: var(--white); 
}
.hero-main { display: flex; align-items: center; justify-content: space-between; gap: 60px; margin-bottom: 80px; text-align: left; }
.hero-intro { flex: 1; }
.hero-intro h1 { font-size: 64px; font-weight: 700; letter-spacing: -2px; line-height: 1.05; margin-bottom: 24px; }
.hero-quote span { display: block; }
.creator-bio { font-size: 21px; color: var(--apple-grey); line-height: 1.5; }

.hero-photo { flex: 0 0 350px; }
.hero-photo img { width: 100%; border-radius: 40px; box-shadow: 0 20px 60px rgba(0,0,0,0.1); }

.hero-path-label { 
    font-size: 32px; 
    font-weight: 700; 
    color: var(--apple-black); 
    margin: 80px 0 40px; 
    text-align: center; 
    letter-spacing: -0.5px;
}

.journey-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.choice-card { 
    text-decoration: none; color: inherit; padding: 60px 40px; border-radius: 30px; 
    transition: var(--transition); position: relative; overflow: hidden;
    text-align: left;
}
.choice-card.academy { background-color: var(--apple-bg); }
.choice-card.agency { background-color: var(--apple-black); color: var(--white); }

.choice-card:hover { transform: scale(1.02); }
.choice-card:hover .choice-animation { transform: scale(1.1) rotate(15deg); opacity: 0.3; }

.choice-animation {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 120px;
    opacity: 0.1;
    transition: var(--transition);
    pointer-events: none;
}

.choice-card.agency .choice-animation { color: var(--accent-blue); }
.choice-card.academy .choice-animation { color: var(--apple-black); }
.choice-card h2 { font-size: 32px; font-weight: 600; margin-bottom: 16px; }
.choice-card p { font-size: 17px; opacity: 0.7; margin-bottom: 32px; }
.choice-btn { font-size: 17px; font-weight: 600; color: var(--accent-blue); display: flex; align-items: center; gap: 10px; }

/* STATS */
.stats-section { padding: 60px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; margin-bottom: 20px; }
.stat-num { font-size: 40px; font-weight: 700; margin-bottom: 8px; color: var(--accent-blue); }
.stat-item p { font-size: 13px; color: var(--apple-grey); font-weight: 500; line-height: 1.3; }

/* ACADEMY JOURNEY */
.academy-journey { 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0; 
    background-color: var(--white); 
}
.section-header { margin-bottom: 60px; text-align: center; }
.label { font-size: 12px; font-weight: 700; color: var(--accent-blue); display: block; margin-bottom: 12px; }
.section-header h2 { font-size: 48px; font-weight: 600; letter-spacing: -1px; }

.journey-step-box { 
    background: var(--apple-bg); border-radius: 40px; padding: 60px; 
    margin-bottom: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}

.step-visual {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.step-badge { font-size: 12px; font-weight: 700; opacity: 0.6; margin-bottom: 16px; display: block; }
.journey-step-box h3 { font-size: 32px; font-weight: 600; margin-bottom: 20px; }
.step-subtitle { font-size: 18px; color: var(--apple-grey); margin-top: -10px; margin-bottom: 30px; line-height: 1.5; }
.journey-step-box p { font-size: 19px; color: var(--apple-grey); margin-bottom: 30px; }
.price-box { margin-bottom: 30px; }
.current-price { font-size: 32px; font-weight: 700; }
.old-price { font-size: 18px; text-decoration: line-through; opacity: 0.4; margin-left: 10px; }

.btn-apple { 
    background: var(--accent-blue); color: var(--white); text-decoration: none; 
    padding: 16px 32px; border-radius: 980px; font-size: 17px; font-weight: 600; display: inline-block; transition: var(--transition);
    box-shadow: 0 10px 25px rgba(0, 113, 227, 0.3);
}
.btn-apple:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(0, 113, 227, 0.4); opacity: 1; }

.timer-box { 
    margin: 20px 0; display: flex; align-items: center; gap: 15px; 
    background: rgba(0,0,0,0.05); padding: 12px 20px; border-radius: 15px; width: fit-content;
}
.timer-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--apple-black); opacity: 0.7; }
.timer-values { display: flex; gap: 10px; font-weight: 700; font-size: 18px; color: var(--accent-blue); }

.test-drive-include { margin-bottom: 25px; }
.test-drive-include ul { list-style: none; }
.test-drive-include li { 
    font-size: 16px; 
    margin-bottom: 10px; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    font-weight: 500;
}
.test-drive-include i { color: var(--accent-blue); font-size: 18px; }

.promo-image img { width: 100%; border-radius: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); border: 1px solid rgba(0,0,0,0.05); }

.step-perks ul { list-style: none; }
.step-perks li { font-size: 15px; margin-bottom: 15px; display: flex; align-items: flex-start; gap: 12px; line-height: 1.4; }
.step-perks strong { color: var(--apple-black); display: block; margin-bottom: 2px; }
.step-perks p { opacity: 0.7; font-size: 13px; }

.bonus-details {
    margin-top: 8px;
}
.bonus-details p {
    font-size: 13px !important;
    margin-bottom: 4px !important;
    opacity: 0.6 !important;
    line-height: 1.4;
}

/* FLAGSHIP */
.flagship { grid-template-columns: 1fr; display: block; padding: 80px 60px; }
.course-top-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 50px; align-items: center; }
.step-header { margin-bottom: 0; text-align: left; }
.step-header .btn-apple { margin-top: 20px; }
.course-main-desc { font-size: 17px; color: var(--apple-grey); margin-bottom: 40px; line-height: 1.6; }

.course-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px; text-align: left; }
.info-block h4 { font-size: 22px; margin-bottom: 20px; color: var(--apple-black); }
.info-list { list-style: none; }
.info-list li { margin-bottom: 12px; font-size: 15px; color: var(--apple-grey); display: flex; gap: 10px; align-items: flex-start; }
.info-list li i { color: var(--accent-blue); margin-top: 4px; }

.tariffs-container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; align-items: stretch; }
.tariff { background: var(--white); padding: 40px 30px; border-radius: 30px; text-align: left; border: 1px solid rgba(0,0,0,0.05); transition: var(--transition); display: flex; flex-direction: column; }
.tariff.highlighted { border-color: var(--accent-blue); box-shadow: 0 20px 40px rgba(0, 113, 227, 0.08); z-index: 2; position: relative; }
.tariff:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.tariff.highlighted:hover { transform: translateY(-5px) scale(1.01); }
.tariff.vip { border-color: #ffd700; }

.tariff-pos { font-size: 13px; color: var(--apple-grey); margin: 10px 0 20px; line-height: 1.4; min-height: 40px; }
.tariff-modules { margin: 25px 0; flex-grow: 1; }
.module-mini-list { list-style: none; padding: 0; margin-bottom: 15px; transition: max-height 0.5s ease-in-out; }
.module-mini-list li { display: none !important; }
.module-mini-list li:nth-child(-n+4) { display: flex !important; }
.module-mini-list.expanded li { display: flex !important; }

.toggle-modules {
    background: none;
    border: none;
    color: var(--accent-blue);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.toggle-modules i {
    transition: transform 0.3s ease;
}

.toggle-modules.active i {
    transform: rotate(180deg);
}

.extra-modules { border-top: 1px solid #eee; padding-top: 15px; margin-top: 15px; }
.module-item { margin-bottom: 10px; }
.module-name { display: flex; align-items: center; gap: 10px; color: var(--apple-black); line-height: 1; }
.module-name i { width: 20px; text-align: center; color: var(--apple-black); font-size: 16px; flex-shrink: 0; }

.t-price-box { margin-top: auto; padding-top: 30px; }
.t-price { font-size: 28px; font-weight: 700; color: var(--apple-black); }
.tariff .btn-apple { 
    width: 100%; 
    text-align: center; 
    margin-top: 20px; 
    padding: 18px 20px;
    display: block;
}
.price-deadline { font-size: 11px; color: #e30000; font-weight: 600; margin-top: 8px; text-transform: uppercase; }
.old-t-price { font-size: 14px; text-decoration: line-through; opacity: 0.4; margin-bottom: 4px; display: block; }

.savings {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #999;
    margin: 8px 0;
}

.tariff.vip .savings {
    color: #D4A574;
}

/* ACCORDION */
.course-program-details { margin-top: 80px; text-align: left; }
.course-program-details h3 { font-size: 28px; margin-bottom: 24px; font-weight: 700; }
.program-legend { font-size: 14px; color: var(--apple-grey); margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.program-legend span { margin-right: 20px; display: inline-block; }

.accordion-item:nth-child(odd) {
    background-color: #fcfdfe;
    border-left: 4px solid #e8f0ff;
}

.accordion-header { 
    width: 100%; padding: 25px 20px; display: flex; justify-content: space-between; align-items: center;
    background: none; border: none; cursor: pointer; text-align: left;
    font-size: 18px; font-weight: 600; color: var(--apple-black); transition: 0.3s;
}

.accordion-header-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lesson-count {
    font-size: 13px;
    font-weight: 400;
    color: #86868b;
}

.accordion-content { 
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out;
    padding: 0 20px;
}

.accordion-item.active .accordion-content { max-height: 2000px; padding-bottom: 30px; }

.lesson-item {
    margin: 16px 0;
    padding-left: 5px;
}

.lesson-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--apple-black);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.lesson-title i {
    color: var(--accent-blue);
    margin-top: 3px;
    font-size: 12px;
}

.lesson-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    padding-left: 22px;
    max-width: 90%;
}

/* -------------------------------------------------------------------------- */
/* 8. CASES & REVIEWS (CLEAN APPLE STYLE) */
/* -------------------------------------------------------------------------- */
.cases-reviews {
    padding: 120px 0;
    background: var(--apple-bg);
    overflow: hidden;
}

.cases-container {
    position: relative;
    margin-top: 60px;
}

.cases-rows-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    padding: 30px 20px;
}

.cases-rows-wrapper::-webkit-scrollbar {
    display: none;
}

.cases-row {
    display: flex;
    gap: 30px;
    width: max-content; /* Ensure rows don't wrap and maintain width */
}

.cases-row.row-2 {
    margin-left: 150px; /* Asymmetric offset */
}

.case-card {
    flex: 0 0 400px;
    width: 400px;
    background: var(--white);
    border-radius: 30px;
    position: relative;
    padding: 40px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing: border-box;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .case-card {
        flex: 0 0 320px;
        width: 320px;
        padding: 30px;
    }
}

/* Top Badge */
.case-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-4deg);
    background: var(--accent-blue);
    color: #fff;
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
    z-index: 10;
}

.case-badge i {
    font-size: 11px;
    opacity: 0.9;
}

/* Author Header */
.case-header-tg {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 25px;
}

.case-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.case-author-name {
    color: var(--apple-black);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

/* Review Text */
.case-text-content {
    color: var(--apple-grey);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

.case-text-content p {
    margin: 0;
    color: var(--apple-grey) !important;
}

.case-text-inner.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-accent {
    color: var(--accent-blue) !important;
    font-weight: 600;
}

.read-more-link {
    display: inline-block;
    color: var(--accent-blue);
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    margin-top: 12px;
    font-size: 14px;
}

.read-more-link:hover {
    text-decoration: underline;
}

/* Action Button */
.btn-case-tg {
    margin-top: 25px;
    background: var(--apple-bg);
    color: var(--apple-black);
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.btn-case-tg:hover {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
}

/* MODAL WINDOW FOR REVIEWS */
.review-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 20px;
}

.review-modal.active {
    opacity: 1;
    visibility: visible;
}

.review-modal-content {
    background: var(--white);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    border-radius: 40px;
    padding: 60px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.28, 0.11, 0.32, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}

.review-modal.active .review-modal-content {
    transform: translateY(0) scale(1);
}

.review-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--apple-bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--apple-black);
    transition: all 0.3s ease;
}

.review-modal-close:hover {
    background: #e1e1e3;
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.modal-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.modal-author-info h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-author-info .badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-blue);
    background: rgba(0, 113, 227, 0.08);
    padding: 4px 12px;
    border-radius: 10px;
}

.modal-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--apple-black);
}

.modal-text .case-accent {
    color: var(--accent-blue) !important;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.slider-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    color: #1d1d1f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: #1d1d1f;
    color: #fff;
}

/* More Reviews Link */
.more-reviews-link-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.more-reviews-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 12px 24px;
    border-radius: 100px;
    background: rgba(0, 113, 227, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 113, 227, 0.1);
}

.more-reviews-link:hover {
    background: var(--accent-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 113, 227, 0.15);
}

/* FAQ */
.faq-section { padding: 60px 0; }
.faq-container { max-width: 700px; margin: 30px auto 0; }
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.06); }
.faq-header { 
    width: 100%; padding: 20px 0; display: flex; justify-content: space-between; align-items: center;
    background: none; border: none; cursor: pointer; text-align: left;
    font-size: 17px; font-weight: 600; color: var(--apple-black); transition: 0.3s;
}
.faq-header:hover { color: var(--accent-blue); }
.faq-header i { font-size: 14px; transition: transform 0.3s; color: var(--apple-grey); }
.faq-item.active .faq-header i { transform: rotate(180deg); color: var(--accent-blue); }
.faq-content { 
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out;
    padding-bottom: 0;
}
.faq-item.active .faq-content { max-height: 500px; padding-bottom: 25px; }
.faq-content p { font-size: 15px; color: #666; line-height: 1.6; }

.faq-extra-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.faq-extra-wrapper.active .faq-extra-content {
    max-height: 2000px;
}

.btn-faq-more {
    background: none;
    border: none;
    color: var(--accent-blue);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px auto 0;
    transition: var(--transition);
}

.btn-faq-more i {
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .cases-rows-wrapper { 
        padding: 20px 10px;
    }
    .cases-row {
        gap: 15px;
    }
    .cases-row.row-2 {
        margin-left: 80px;
    }
    .case-card {
        flex: 0 0 280px;
        width: 280px;
        padding: 25px;
    }
    .case-author-name {
        font-size: 16px;
    }
    .case-text-content {
        font-size: 14px;
    }
    .case-result { font-size: 24px; }
    .faq-header { font-size: 18px; }
}

.course-service-block { 
    margin-top: 60px; background: rgba(0,0,0,0.02); border-radius: 24px; padding: 40px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; text-align: left;
}
.service-item h5 { font-size: 18px; margin-bottom: 15px; }
.service-item ul { list-style: none; }
.service-item li { font-size: 14px; color: var(--apple-grey); margin-bottom: 8px; display: flex; gap: 8px; }
.service-item li i { color: var(--accent-blue); margin-top: 4px; }

.best-value { font-size: 10px; font-weight: 800; color: var(--accent-blue); margin-bottom: 12px; }
.tariff h4 { font-size: 20px; margin-bottom: 8px; }
.t-link { font-size: 14px; color: var(--accent-blue); text-decoration: none; font-weight: 600; margin-top: 20px; display: inline-block; }

/* AGENCY JOURNEY */
.agency-journey { 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0; 
    background-color: var(--apple-black); 
    color: var(--white); 
}

/* FINAL CTA */
.final-cta { 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0; 
    text-align: center; 
}
.cta-box h2 { font-size: 56px; font-weight: 700; letter-spacing: -2px; margin-bottom: 24px; }
.cta-box p { font-size: 21px; color: var(--apple-grey); max-width: 600px; margin: 0 auto 40px; }
.btn-main { background: var(--accent-blue); color: var(--white); text-decoration: none; padding: 20px 40px; border-radius: 980px; font-size: 19px; font-weight: 600; display: inline-block; }

/* FOOTER */
footer { 
    padding: 60px 0; 
    border-top: 1px solid #eee; 
    text-align: center; 
    font-size: 12px; 
    color: var(--apple-grey);
}

.footer-socials {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.footer-socials a {
    text-decoration: none;
    color: var(--apple-black);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-socials a i {
    font-size: 20px;
    color: var(--accent-blue);
}

.footer-socials a:hover {
    color: var(--accent-blue);
    transform: translateY(-2px);
}

/* Image Modal Lightbox */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.image-modal-content {
    position: relative;
    max-width: 95%;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.image-modal-close:hover {
    transform: rotate(90deg);
    color: var(--accent-blue);
}

@media (max-width: 768px) {
    .image-modal-close {
        top: -40px;
        right: 10px;
    }
}

/* CURSOR */
.airplane-cursor { width: 32px; height: 32px; position: fixed; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); }
.airplane-cursor i { font-size: 32px; color: #34B7F1; filter: drop-shadow(0 2px 5px rgba(52, 183, 241, 0.4)); }

.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: rgba(52, 183, 241, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, opacity 0.2s;
}

@media (max-width: 768px) {
    /* 1. Reset & Layout */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    header {
        height: 60px; /* Slightly taller for mobile comfort */
    }

    nav {
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .brand {
        font-size: 16px;
        margin-right: auto;
        z-index: 2;
    }

    nav > a:first-child {
        margin-right: auto;
        z-index: 2;
    }

    body {
        cursor: auto; /* Standard cursor for mobile */
    }

    .airplane-cursor, .cursor-trail {
        display: none !important; /* Hide custom cursor on mobile */
    }

    .header-socials {
        display: flex;
        align-items: center;
        margin-left: 0;
        margin-right: 15px;
        gap: 15px;
        position: static;
        transform: none;
        z-index: 1;
    }

    .mobile-nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.05);
        border: none;
        cursor: pointer;
        z-index: 2;
        padding: 0 8px;
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    .mobile-nav-toggle:active {
        transform: scale(0.9);
        background: rgba(0, 0, 0, 0.1);
    }

    .mobile-nav-toggle span {
        display: block;
        width: 24px;
        height: 1.5px;
        background: var(--apple-black);
        margin: 3px 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 2px;
    }

    .mobile-nav-toggle.active span:nth-child(1) { 
        transform: translateY(7.5px) rotate(45deg); 
        width: 24px;
    }
    .mobile-nav-toggle.active span:nth-child(2) { 
        opacity: 0; 
        transform: translateX(10px);
    }
    .mobile-nav-toggle.active span:nth-child(3) { 
        transform: translateY(-7.5px) rotate(-45deg); 
        width: 24px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 0;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        padding: 0;
        margin: 0;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        z-index: 1001;
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
    }

    .nav-links.active {
        height: 100vh;
        padding: 80px 20px 40px;
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        overflow-y: auto;
    }

    .nav-links li { 
        width: 100%; 
        max-width: 350px;
        text-align: center; 
        margin-bottom: 12px;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered animation for menu items */
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }

    .nav-links > li > a { 
        font-size: 18px; 
        font-weight: 600;
        padding: 14px 24px; 
        background: rgba(0, 0, 0, 0.04); 
        border-radius: 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-decoration: none;
        color: var(--apple-black);
    }

    .nav-links > li > a.btn-nav-blue {
        background: var(--accent-blue);
        color: var(--white);
        margin-top: 10px;
        justify-content: center;
        border-radius: 980px;
    }

    .dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 8px 0 15px;
        min-width: 100%;
        display: none;
        background: rgba(0, 0, 0, 0.02);
        border-radius: 16px;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .nav-links li.active > a i {
        transform: rotate(180deg);
    }

    .nav-links li.active .dropdown {
        display: block;
        animation: slideDownMenu 0.4s ease-out forwards;
    }

    @keyframes slideDownMenu {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .dropdown a {
        padding: 14px 20px;
        font-size: 15px;
        text-align: left;
        border-bottom: 1px solid rgba(0,0,0,0.03);
    }

    .dropdown a:last-child {
        border-bottom: none;
    }

    /* 3. Hero Section */
    .hero-split { padding: 60px 0; min-height: auto; }
    .hero-main { flex-direction: column; text-align: center; gap: 40px; }
    .hero-intro h1 { font-size: 38px; letter-spacing: -1px; }
    .hero-photo { order: -1; width: 100%; max-width: 280px; margin: 20px auto 0; }
    .hero-path-label { font-size: 26px; margin: 40px 0 20px; }
    .journey-choice { grid-template-columns: 1fr; gap: 16px; }
    .choice-card { padding: 40px 25px; }

    /* 4. Stats */
    .stats-section { padding: 40px 0; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .stat-num { font-size: 32px; }

    .academy-journey, .flagship {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-left: 0;
        padding-right: 0;
    }

    /* 5. Academy Journey & Steps */
    .academy-journey { padding: 60px 0; }
    .section-header h2 { font-size: 32px; }
    
    .journey-step-box { 
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px 20px; 
        gap: 30px; 
        border-radius: 30px;
        width: 100%;
        max-width: 100%;
    }
    
    .step-info { 
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .test-drive-audience { 
        text-align: left; 
        border-left: 2px solid var(--accent-blue); 
        border-top: none; 
        padding: 5px 0 5px 15px;
        margin: 0 auto 20px;
        width: 100%;
        max-width: 100%;
    }

    .test-drive-include ul, .step-perks ul, .info-list { 
        display: inline-block; 
        text-align: left;
        margin: 0 auto;
        padding: 0;
    }

    .journey-step-box h3 { font-size: 26px; }
    .step-visual { 
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px; 
    }
    
    .promo-image { 
        display: block !important; 
        width: 100%;
        max-width: 450px;
        margin: 10px auto 20px !important;
    }
    .promo-image img {
        border-radius: 20px;
        width: 100%;
        height: auto;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    /* Reordering for Step 1 to place image under title */
    #test-drive {
        display: flex;
        flex-direction: column;
        gap: 20px; /* Reduced gap for better flow with display:contents */
    }
    #test-drive .step-info, 
    #test-drive .step-visual { 
        display: contents; 
    }
    #test-drive .step-badge { order: 1; }
    #test-drive h3 { order: 2; }
    #test-drive .promo-image { order: 3; }
    #test-drive p:not(.step-subtitle) { order: 4; } /* Any other paragraphs */
    #test-drive .test-drive-audience { order: 5; }
    #test-drive .test-drive-include { order: 6; }
    #test-drive .timer-box { order: 7; }
    #test-drive .price-box { order: 8; }
    #test-drive .btn-apple { 
        order: 9; 
        margin: 20px 0 40px; /* Увеличиваем отступ снизу и сверху для центрирования */
    }
    #test-drive .step-perks { order: 10; }

    /* Reordering for Step 2 to place image under title */
    #flagship {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    #flagship .course-top-layout, 
    #flagship .step-header { 
        display: contents; 
    }
    #flagship .step-badge { order: 1; }
    #flagship h3 { order: 2; }
    #flagship .promo-image { order: 3; }
    #flagship .step-subtitle { order: 4; }
    #flagship .course-main-desc { order: 5; }
    #flagship .step-header .btn-apple { 
        order: 6; 
        margin: 20px 0 40px; /* Увеличиваем отступ снизу и сверху для центрирования */
    }
    #flagship .course-info-grid { order: 7; }
    #flagship .tariffs-container { order: 8; }
    #flagship .course-program-details { order: 9; }

    /* 6. Flagship & Tariffs */
    .flagship { 
        padding: 40px 20px; 
        flex-direction: column;
        align-items: center;
    }
    .course-top-layout { 
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 20px; 
        text-align: center; 
    }
    .step-header { 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        width: 100%;
    }
    .course-info-grid { 
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 30px; 
    }
    .info-block { 
        text-align: center; 
        width: 100%;
    }
    .tariffs-container { 
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 20px; 
    }
    .tariff { 
        width: 100%;
        padding: 30px 20px; 
    }
    .tariff h4, .best-value { 
        text-align: center; 
    }
    .tariff-pos { 
        text-align: left; 
    }
    .tariff.highlighted { transform: none !important; margin: 0; }

    /* 7. Course Program */
    .course-program-details h3 { font-size: 22px; margin-bottom: 25px; }
    
    .accordion-header { 
        padding: 18px 15px; 
        font-size: 15px; 
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        background: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        border-radius: 0;
        margin-bottom: 0;
        text-align: left;
    }

    .accordion-header span:first-child {
        display: block;
        flex: 1; /* Позволяет названию занимать всё свободное место */
        line-height: 1.4;
        font-weight: 600;
        color: var(--apple-black);
    }

    .accordion-header-info {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
        justify-content: flex-end;
        min-width: 85px; /* Гарантирует ровный столбик для количества уроков */
    }

    .lesson-count {
        font-size: 13px !important;
        font-weight: 400 !important;
        color: #86868b !important;
        white-space: nowrap !important;
        background: none !important;
        padding: 0 !important;
        margin: 0 !important;
        opacity: 1 !important;
    }

    .accordion-header i {
        font-size: 12px;
        color: var(--apple-grey);
        opacity: 0.5;
        flex-shrink: 0;
    }

    /* Badge adjustment */
    .accordion-header span span[style*="background: rgba(0,113,227,0.05)"] {
        margin-left: 0 !important;
        margin-top: 6px;
        display: block;
        font-size: 10px;
        width: fit-content;
        padding: 2px 6px;
        border-radius: 4px;
    }
    .lesson-title { font-size: 14px; }
    .lesson-desc { font-size: 13px; max-width: 100%; padding-left: 20px; }

    /* 8. Reviews */
    .cases-reviews { 
        padding: 60px 0; 
        width: 100%;
        overflow: hidden;
    }
    .cases-container {
        width: 100%;
    }
    .cases-rows-wrapper { 
        padding: 20px 0; 
        cursor: default; 
        display: flex;
        flex-direction: column;
        gap: 15px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: auto !important; /* Важно для JS-скролла на Safari */
        scroll-snap-type: none !important;
        scroll-behavior: auto !important;
    }
    .case-card { 
        flex: 0 0 290px; 
        width: 290px; 
        padding: 25px; 
        scroll-snap-align: none;
    }
    .cases-row { 
        padding: 0 20px; 
        gap: 15px; 
        display: flex;
        width: max-content;
    }
    .cases-row.row-2 { margin-left: 30px; }
    
    /* 9. FAQ */
    .faq-container { 
        margin-top: 20px; 
        max-width: 100%; /* Убираем ограничение в 700px для мобильных */
        width: 100%; 
    }
    .faq-header { font-size: 16px; padding: 15px 0; }
    .faq-content p { font-size: 14px; }

    /* 10. Final CTA & Footer */
    .final-cta { padding: 80px 0; min-height: auto; }
    .cta-box h2 { font-size: 32px; }
    .cta-box p { font-size: 18px; }
    footer { padding: 40px 0; }
    .footer-content { 
        text-align: center; 
        font-size: 11px !important; /* Уменьшаем шрифт для лучшего входа адреса */
    }
    .footer-content p {
        line-height: 1.4;
    }
}




