/* --- Variables & Theme --- */
:root {
    /* Color Palette: Dark Cyberpunk */
    --bg-main: #0f172a;
    /* Slate 900 */
    --bg-alt: #1e293b;
    /* Slate 800 */
    --primary: #06b6d4;
    /* Cyan 500 - Neon */
    --primary-hover: #0891b2;
    --secondary: #8b5cf6;
    /* Violet 500 */
    --text-main: #f1f5f9;
    /* Slate 100 */
    --text-muted: #94a3b8;
    /* Slate 400 */
    --white: #ffffff;
    --error: #ef4444;
    --success: #22c55e;

    /* Typography */
    --font-main: 'Rajdhani', sans-serif;
    /* CHANGE_FONT_HERE */

    /* Spacing & UI */
    --radius-md: 8px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

ul {
    list-style: none;
}

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

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-transform: uppercase;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

h4 {
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.text-center {
    text-align: center;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background-color: var(--primary);
    color: var(--bg-main);
}

.btn--primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 0 15px var(--primary);
}

.btn--outline {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn--outline:hover {
    background-color: var(--primary);
    color: var(--bg-main);
}

.btn--full {
    width: 100%;
    text-align: center;
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

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

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: block;
}

.logo-text {
    display: inline-block;
}

.logo__dot {
    color: var(--primary);
}

.nav__list {
    display: flex;
    gap: 2rem;
}

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

.cta-link {
    color: var(--primary);
    border-bottom: 1px solid var(--primary);
}

/* Burger Menu */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 5px 0;
    transition: var(--transition);
}

.nav__close {
    display: none;
}

@media (max-width: 1024px) {
    .burger {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-alt);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 1001;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        font-size: 1.5rem;
        text-align: center;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: var(--white);
        font-size: 2rem;
        cursor: pointer;
    }
}

/* --- Hero Section --- */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.1), transparent 40%);
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.badge {
    display: inline-block;
    background: rgba(139, 92, 246, 0.2);
    color: var(--secondary);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__image img {
    border-radius: var(--radius-2xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__subtitle {
        margin: 0 auto 2rem auto;
    }

    .hero__actions {
        justify-content: center;
    }
}

/* --- Section Header --- */
.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    margin-bottom: 1rem;
    text-align: center;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
}

/* --- Features --- */
.section {
    padding: 80px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    margin-bottom: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Courses (Grid/Masonry) --- */
.courses__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--bg-main);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
}

.course-card:hover {
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15);
}

.course-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-content {
    padding: 1.5rem;
}

.course-content h3 {
    margin-bottom: 0.75rem;
}

.course-content p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.link-arrow {
    color: var(--primary);
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
}

/* --- Reviews --- */
.reviews__wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: var(--radius-xl);
    position: relative;
}

.review-card::before {
    content: "“";
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 0;
    left: 1rem;
    line-height: 1;
}

.review-text {
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--primary);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Contacts & Form --- */
.contacts__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.info-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-main);
    opacity: 0.9;
}

.info-icon svg {
    width: 100%;
    height: 100%;
}

.form {
    background: var(--bg-main);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.error-msg {
    color: var(--error);
    font-size: 0.8rem;
    display: block;
    margin-top: 5px;
    min-height: 18px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.link-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.btn-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top: 2px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

.hidden {
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .contacts__container {
        grid-template-columns: 1fr;
    }
}

/* --- Footer --- */
.footer {
    background: #000;
    padding: 4rem 0 2rem;
    color: var(--text-muted);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer__col ul li {
    margin-bottom: 0.8rem;
}

.footer-contacts {
    margin-bottom: 1.5rem;
    list-style: none;
    padding: 0;
}

.footer-contacts li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-link {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    text-align: left;
    padding: 0;
    font-family: inherit;
}

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

.footer__bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal {
    background: var(--bg-alt);
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius-xl);
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
    max-height: 80vh;
    overflow-y: auto;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-content {
    padding-right: 3rem;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.modal-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--white);
    font-size: 1.2rem;
}

.modal-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.modal-content strong {
    color: var(--text-main);
}

.modal-content ul,
.modal-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.modal-content li {
    margin-bottom: 0.5rem;
}

/* --- Cookie Popup --- */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--bg-alt);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1500;
    max-width: 350px;
    border-left: 4px solid var(--primary);
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}