/* --- Variables & Reset --- */
:root {
    --color-bg: #0f172a;
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-primary: #38bdf8;
    --color-accent: #fbbf24;
    --color-surface: #1e293b;
    
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    
    --container-width: 1240px;
    --header-height: 80px;
    --transition: all 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography Helpers --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* --- UI Elements --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn--header {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn--header:hover {
    background-color: var(--color-primary);
    color: var(--color-bg);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    color: var(--color-text);
}

.logo__icon {
    width: 32px;
    height: 32px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-size: 15px;
    color: var(--color-text-muted);
    position: relative;
}

.nav__link:hover {
    color: var(--color-primary);
}

.nav__link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav__link:hover::after {
    width: 100%;
}

.burger {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
}

/* --- Footer --- */
.footer {
    background-color: #0B1120; /* Немного темнее основного фона */
    padding-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.footer__container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer__title {
    font-size: 18px;
    margin-bottom: 24px;
    color: var(--color-text);
}

.footer__desc {
    margin-top: 20px;
    color: var(--color-text-muted);
    font-size: 14px;
    max-width: 300px;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__link {
    color: var(--color-text-muted);
    font-size: 14px;
}

.footer__link:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--color-text-muted);
    font-size: 14px;
}

.footer__icon {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

/* --- Mobile Adaptation --- */
@media (max-width: 992px) {
    .header__container {
        padding: 0 20px;
    }

    .burger {
        display: block;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .nav__link {
        font-size: 18px;
    }

    .footer__container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer__container {
        grid-template-columns: 1fr;
    }
    
    .footer__col--brand {
        text-align: center;
    }
    
    .footer__desc {
        margin: 20px auto 0;
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6; /* Чтобы не мешал читать текст */
}

.hero__container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 80px;
}

/* Badge */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 100px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(5px);
}

.hero__badge-icon {
    width: 16px;
    height: 16px;
}

/* Typography */
.hero__title {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--color-text);
}

.text-gradient {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

/* Buttons */
.hero__actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary), #0ea5e9);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
}

.btn--outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: var(--color-text);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-text);
}

.btn--lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* Stats */
.hero__stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item__value {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
}

.stat-item__label {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* Visual Mockup (Glass Card) */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.glass-card:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.glass-card__header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.glass-card__circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.glass-card__circle.red { background-color: #ef4444; }
.glass-card__circle.yellow { background-color: #f59e0b; }
.glass-card__circle.green { background-color: #22c55e; }

.code-text {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.code-text.success {
    color: var(--color-primary);
}

.chart-mockup {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 120px;
    margin-top: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
}

.chart-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease-out;
}

.chart-bar.active {
    background: linear-gradient(to top, var(--color-primary), var(--color-accent));
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

/* Mouse Scroll Indicator */
.hero__scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--color-text-muted);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform:translateY(0) translateX(-50%);}
    40% {transform:translateY(-10px) translateX(-50%);}
    60% {transform:translateY(-5px) translateX(-50%);}
}

/* Responsive Hero */
@media (max-width: 992px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero__title {
        font-size: 42px;
    }

    .hero__subtitle {
        margin: 0 auto 40px;
    }

    .hero__actions {
        justify-content: center;
    }
    
    .hero__stats {
        justify-content: center;
    }

    .hero__visual {
        display: none; /* Скрываем 3D карточку на планшетах для простоты */
    }
}

@media (max-width: 576px) {
    .hero__title {
        font-size: 32px;
    }

    .hero__actions {
        flex-direction: column;
    }
    
    .hero__stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* --- Common Section Styles --- */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--color-text);
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
}

.section-subtitle strong {
    color: var(--color-primary);
    font-weight: 500;
}

/* --- Methodology Grid --- */
.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

/* Step Card */
.step-card {
    flex: 1;
    background: rgba(30, 41, 59, 0.5); /* Semi-transparent surface */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    background: rgba(30, 41, 59, 0.8);
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Glow Effect on Hover */
.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.1), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-card:hover::before {
    opacity: 1;
}

.step-card__icon-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.step-card__icon-box i {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
}

.step-card__number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03); /* Очень прозрачный номер на фоне */
    line-height: 1;
}

.step-card__title {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--color-text);
}

.step-card__desc {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.step-card__desc strong {
    color: var(--color-text);
}

/* Separator Arrows */
.step-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 40px; /* Выравнивание по центру карточек */
}

.separator-icon {
    width: 24px;
    height: 24px;
    color: var(--color-text-muted);
    opacity: 0.3;
}

/* CTA at bottom */
.methodology__cta {
    text-align: center;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.methodology__cta p {
    font-size: 18px;
    color: var(--color-text-muted);
}

/* --- Animations Classes --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Methodology --- */
@media (max-width: 992px) {
    .steps-grid {
        flex-direction: column;
        gap: 30px;
    }

    .step-separator {
        transform: rotate(90deg); /* Поворачиваем стрелку вниз */
        padding: 0;
        margin: -10px 0; /* Подтягиваем отступы */
    }
    
    .section-title {
        font-size: 32px;
    }
}
/* --- Courses Section --- */
.courses__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(251, 191, 36, 0.1);
    color: var(--color-accent);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.courses__label i {
    width: 14px;
    height: 14px;
}

/* --- Tabs Navigation --- */
.tabs {
    margin-top: 40px;
}

.tabs__nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tabs__btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    padding: 12px 24px;
    border-radius: 100px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.tabs__btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
}

.tabs__btn.active {
    background: var(--color-primary);
    color: var(--color-bg);
    border-color: var(--color-primary);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

/* --- Tabs Panels & Grid --- */
.tabs__panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tabs__panel.active {
    display: block;
}

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

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Course Card */
.course-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.course-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.course-card.highlight {
    border-color: rgba(251, 191, 36, 0.5);
    background: linear-gradient(145deg, #1e293b, #282f45);
}

.course-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.course-card__icon {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.course-card.highlight .course-card__icon {
    color: var(--color-accent);
}

.course-card__tag {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.15);
    color: var(--color-primary);
}

.tag--gold {
    background: rgba(251, 191, 36, 0.15);
    color: var(--color-accent);
}

.course-card__title {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--color-text);
}

.course-card__desc {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    flex-grow: 1; /* Чтобы кнопки были на одном уровне */
}

.course-card__list {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.course-card__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-text);
}

.course-card__list li i {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

.btn--course {
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px; /* Немного квадратнее для карточек */
}

.btn--course:hover {
    background: var(--color-primary);
    color: var(--color-bg);
    border-color: var(--color-primary);
}

/* Banner for Expert tab */
.course-banner {
    background: linear-gradient(90deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.course-banner__content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--color-text);
}

.course-banner__content p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.course-banner__icon i {
    width: 100px;
    height: 100px;
    color: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .course-banner {
        flex-direction: column-reverse;
        text-align: center;
        padding: 24px;
    }
    
    .course-banner__icon {
        display: none;
    }
}

/* --- Mentors Section --- */
.mentors {
    background-color: #0B1120; /* Чуть темнее фон для контраста */
}

.mentors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

/* Mentor Card */
.mentor-card {
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
}

.mentor-card:hover {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-10px);
}

/* Image Area */
.mentor-card__image-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 20px;
}

.mentor-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(20%); /* Стильный ч/б эффект, уходящий при ховере */
}

.mentor-card:hover .mentor-card__img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Social Icons Overlay */
.mentor-card__socials {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 12px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.mentor-card:hover .mentor-card__socials {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--color-primary);
    color: #fff;
}

.social-link i {
    width: 20px;
    height: 20px;
}

/* Content Area */
.mentor-card__content {
    padding: 24px 10px;
    text-align: center;
}

.mentor-card__name {
    font-size: 22px;
    color: var(--color-text);
    margin-bottom: 4px;
}

.mentor-card__role {
    font-size: 14px;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 16px;
}

.mentor-card__desc {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* --- Reviews Section --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

/* Review Card */
.review-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    position: relative;
}

.review-card::after {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 80px;
    line-height: 1;
    font-family: serif;
    color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.review-card__user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-card__avatar {
    width: 48px;
    height: 48px;
    background: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-primary);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.review-card__avatar.accent {
    color: var(--color-accent);
    border-color: rgba(251, 191, 36, 0.2);
}

.review-card__name {
    font-size: 16px;
    color: var(--color-text);
}

.review-card__city {
    font-size: 12px;
    color: var(--color-text-muted);
}

.review-card__rating {
    display: flex;
    gap: 2px;
    color: var(--color-accent);
}

.review-card__rating i {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.review-card__text {
    font-size: 15px;
    color: var(--color-text-muted);
    font-style: italic;
    line-height: 1.6;
}

.review-card__text strong {
    color: var(--color-text);
    font-style: normal;
}

/* --- CTA Block (Pre-footer) --- */
.cta-block {
    background: linear-gradient(135deg, var(--color-primary), #2563eb);
    border-radius: 24px;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.cta-block::before, .cta-block::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.cta-block::before {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
}

.cta-block::after {
    width: 100px;
    height: 100px;
    bottom: 20px;
    left: 20px;
}

.cta-block__content {
    flex: 1;
    z-index: 1;
}

.cta-block__title {
    font-size: 32px;
    color: #fff;
    margin-bottom: 12px;
}

.cta-block__desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    max-width: 600px;
}

.cta-block__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1;
    min-width: 220px;
}

.btn--white {
    background: #fff;
    color: var(--color-primary);
    width: 100%;
    text-align: center;
}

.btn--white:hover {
    background: #f1f5f9;
    color: #2563eb;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-block__note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 992px) {
    .cta-block {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }

    .cta-block__title {
        font-size: 26px;
    }
}

/* --- Contact Section --- */
.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Contact Info (Left) */
.contact__benefits {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.benefit-item {
    display: flex;
    gap: 16px;
}

.benefit-item__icon {
    width: 48px;
    height: 48px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.benefit-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--color-text);
}

.benefit-item p {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* Form Wrapper (Right) */
.contact__form-wrapper {
    background: #1e293b;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 8px;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.form-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px 14px 44px; /* отступ слева под иконку */
    color: var(--color-text);
    font-size: 15px;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

.form-input:focus + .input-icon, /* Если иконка после инпута */
.input-wrapper:focus-within .input-icon {
    color: var(--color-primary);
}

/* Captcha */
.captcha-group input {
    width: 100%;
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
    margin-top: 10px;
}

.form-checkbox input {
    margin-top: 4px;
    accent-color: var(--color-primary);
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.form-checkbox label {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
    cursor: pointer;
}

.form-checkbox a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Errors */
.error-msg {
    display: none;
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    padding-left: 4px;
}

.form-group.error .form-input {
    border-color: #ef4444;
}

.form-group.error .error-msg {
    display: block;
}

.form-checkbox.error + .error-msg {
    display: block;
}

/* Submit Button & Loader */
.btn--full {
    width: 100%;
    justify-content: center;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn--submit.loading .btn-text {
    display: none;
}

.btn--submit.loading .btn-loader {
    display: block;
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1e293b;
    border-radius: 24px;
    padding: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.success-message.visible {
    display: flex;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.success-icon i {
    width: 40px;
    height: 40px;
}

.success-message h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--color-text);
}

.success-message p {
    color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr;
    }

    .contact__info {
        text-align: center;
    }

    .contact__benefits {
        align-items: center;
        text-align: left;
    }
}

/* --- Cookie Popup --- */
.cookie-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 450px;
    transform: translateY(150%); /* Скрыт по умолчанию */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-popup.visible {
    transform: translateY(0);
}

.cookie-popup__content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cookie-popup__icon {
    color: var(--color-accent);
}

.cookie-popup__text {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.cookie-popup__text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.btn--sm {
    padding: 8px 20px;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .cookie-popup {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }
    
    .btn--sm {
        width: 100%;
    }
}

/* --- Policy Pages Styles (Standard Text Pages) --- */
/* Используй эту структуру для privacy.html, terms.html и т.д. */

.pages {
    padding: 120px 0 80px; /* Отступ сверху больше из-за фикс. хедера */
    min-height: 80vh;
}

.pages .container {
    max-width: 800px; /* Узкая колонка для удобства чтения */
}

.pages h1 {
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--color-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.pages h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.pages p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.pages ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    color: var(--color-text-muted);
}

.pages li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.pages strong {
    color: var(--color-text);
}

.pages a {
    color: var(--color-primary);
    text-decoration: underline;
}

.pages a:hover {
    text-decoration: none;
    color: var(--color-accent);
}