:root {
    /* Неоновые/Темные Цвета */
    --bg-dark: #09090b;
    --bg-panel: rgba(255, 255, 255, 0.03);
    --border-panel: rgba(255, 255, 255, 0.08);
    --primary-color: #00f0ff;
    /* Циан */
    --secondary-color: #7000ff;
    /* Фиолетовый */
    --accent-color: #ff0055;
    /* Розовый */

    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --white: #ffffff;

    --font-main: 'Outfit', sans-serif;
    --radius: 16px;
    --shadow-panel: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 3D Background Canvas Layer */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background: #000;
    pointer-events: none;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-panel);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-panel);
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(0, 240, 255, 0.2);
}

.accent-panel {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: var(--bg-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.section {
    padding: 90px 0;
    position: relative;
    z-index: 5;
}

.section-title {
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.text-muted {
    color: var(--text-muted);
}

.text-white {
    color: var(--white);
}

.text-sm {
    font-size: 0.85rem;
    font-weight: 300;
}

.text-lg {
    font-size: 1.15rem;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.neon-text {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.neon-border {
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2) inset, 0 0 10px rgba(0, 240, 255, 0.2);
}

/* Header */
.header {
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-panel);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 25px;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* Hero */
.hero {
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-muted);
    font-weight: 300;
}

.hero-info .highlight {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.company-link {
    color: var(--text-muted);
    transition: color 0.3s;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid var(--text-muted);
}

.company-link:hover {
    color: var(--white);
    border-color: var(--white);
}

/* Buttons */
.btn {
    padding: 14px 34px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    font-family: var(--font-main);
}

.btn-neon {
    background-color: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.btn-neon:hover {
    background-color: #fff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.btn-lg {
    font-size: 1.4rem;
    padding: 18px 45px;
}

/* Grid & Lists */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.check-list {
    list-style: none;
    text-align: left;
}

.check-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 32px;
    font-size: 1.05rem;
    font-weight: 300;
}

.check-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.check-list .accent {
    color: var(--primary-color);
    font-weight: 600;
}

.accent-panel .check-list li::before {
    color: var(--bg-dark);
}

.accent-panel .check-list li {
    color: var(--bg-dark);
    font-weight: 500;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 20px;
}

.bento-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px;
}

.bento-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.bento-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--white);
}

.bento-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.4;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    justify-content: flex-start;
}

.bento-large h3 {
    font-size: 2rem;
}

.bento-large p {
    font-size: 1.1rem;
}

.bento-wide {
    grid-column: span 4;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

.bento-wide .bento-icon {
    margin-bottom: 0;
    font-size: 3rem;
}

.bento-wide h3 {
    margin-bottom: 0;
    font-size: 1.8rem;
}

.bento-wide p {
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
}

/* Timeline */
.timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-panel);
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step .circle {
    width: 45px;
    height: 45px;
    background-color: var(--bg-dark);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3) inset;
}

.step p {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Program */
.program-schedule {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 850px;
    margin: 0 auto;
}

.schedule-item {
    display: flex;
    padding: 25px;
    border-left: 4px solid var(--primary-color);
}

.schedule-item .week {
    width: 140px;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.schedule-item .desc {
    flex: 1;
    font-weight: 300;
}

/* Accordion */
.accordion {
    max-width: 850px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    padding: 0;
}

.accordion-header {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    font-family: var(--font-main);
}

.accordion-header:hover {
    color: var(--primary-color);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease;
    font-weight: 300;
}

.accordion-content.active {
    padding: 0 20px 20px;
    max-height: 500px;
}

.accordion-header .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 300;
    transition: transform 0.3s;
}

.accordion-header.active .icon {
    transform: rotate(45deg);
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-panel);
    font-size: 0.9rem;
}

/* Modal Overlay & Quiz Form */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 90%;
    max-width: 650px;
    max-height: 95vh;
    position: relative;
    padding: 40px;
    overflow-y: auto;
    background: var(--bg-dark);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.15);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--primary-color);
}

.quiz-header {
    text-align: center;
    border-bottom: 1px solid var(--border-panel);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.quiz-progress {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.progress-step {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: background 0.3s;
}

.progress-step.active {
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
}

.quiz-step {
    animation: fadeIn 0.4s ease;
    display: none;
}

.quiz-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 22px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--white);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-panel);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--white);
    font-family: var(--font-main);
    transition: 0.3s ease;
}

.form-group select option {
    background: #1f2937;
    color: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.error-msg {
    display: block;
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-top: 6px;
    min-height: 18px;
}

.input-error {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 8px rgba(255, 0, 85, 0.3) !important;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 300;
    margin-bottom: 12px;
    cursor: pointer;
    color: var(--text-muted);
}

.radio-group input[type="radio"],
.checkbox-label input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .quiz-nav {
        flex-direction: column-reverse;
    }

    .quiz-nav .btn {
        width: 100%;
        text-align: center;
    }
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

/* Scroll to top button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
}

/* Desktop Hover Effects */
@media (hover: hover) {
    .bento-item:hover {
        transform: translateY(-5px);
    }

    .schedule-item:hover {
        background: rgba(255, 255, 255, 0.02);
    }
}

@media (max-width: 991px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }

    .bento-large {
        grid-column: span 2;
        grid-row: auto;
    }

    .bento-wide {
        grid-column: span 2;
        flex-direction: column;
        text-align: center;
    }

    .bento-wide p {
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        padding: 8px 15px 8px;
        position: relative;
    }

    .nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 6px;
    }

    .nav a {
        margin-left: 0;
        font-size: 0.8rem;
    }

    .nav a[href="en"],
    .nav a[href="./"] {
        position: absolute !important;
        top: 8px !important;
        right: 15px !important;
        margin-left: 0 !important;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large,
    .bento-wide {
        grid-column: 1;
    }

    .timeline {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        border-top: none;
        padding-bottom: 0;
    }

    .step {
        min-width: auto;
        flex-shrink: 1;
    }

    .schedule-item {
        flex-direction: column;
        padding: 20px;
    }

    .schedule-item .week {
        margin-bottom: 10px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }
}