/* ===== Глобальные стили ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #6b46c1;
    --secondary-purple: #8b5cf6;
    --light-purple: #a78bfa;
    --lighter-purple: #c4b5fd;
    --dark-purple: #5b21b6;
    --darker-purple: #4c1d95;
    --lavender: #e9d5ff;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --shadow: rgba(107, 70, 193, 0.1);
    --shadow-hover: rgba(107, 70, 193, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Анимация появления страницы ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-content {
    animation: fadeIn 0.8s ease-out;
}

/* ===== Анимация поднятия карточек ===== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: slideUp 0.6s ease-out;
    animation-fill-mode: both;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

/* ===== Заголовки ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-purple);
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
}

/* ===== Навигация ===== */
.header {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Контейнер ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===== Hero секция ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* ===== Hero секция на главной странице (увеличенная) ===== */
.hero-main {
    padding: 4rem 2rem;
    min-height: auto;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    animation: fadeIn 1s ease-out;
}

.hero-image-frame {
    background: var(--white);
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--light-purple);
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    object-fit: cover;
}

.hero-text-frame {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--light-purple);
    color: var(--text-dark);
}

.hero-text-frame h1 {
    color: #1a0d3a;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    -webkit-text-stroke: 2px var(--primary-purple);
    text-stroke: 2px var(--primary-purple);
    text-shadow: none;
}

.hero-text-frame p {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 1;
}

.hero-bonus {
    font-size: 1.5rem !important;
    color: var(--primary-purple) !important;
    font-weight: 600;
    margin: 1.5rem 0 !important;
}

.hero-bonus strong {
    color: var(--secondary-purple);
    font-size: 1.8rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-demo {
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--lighter-purple) 100%);
    color: var(--dark-purple);
}

.btn-demo:hover {
    background: linear-gradient(135deg, var(--lighter-purple) 0%, var(--light-purple) 100%);
}

.btn-register {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    color: var(--white);
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ===== Карточки ===== */
.card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px var(--shadow);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px var(--shadow-hover);
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.card-title {
    color: var(--dark-purple);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.card-text {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== Таблицы ===== */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow);
}

thead {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    color: var(--white);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--lavender);
}

th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

tbody tr {
    transition: background 0.3s ease;
}

tbody tr:hover {
    background: var(--lavender);
}

/* ===== Аккордеон ===== */
.accordion {
    margin: 2rem 0;
}

.accordion-item {
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 8px var(--shadow-hover);
}

.accordion-header {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    color: var(--white);
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--primary-purple) 100%);
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.accordion-body {
    padding: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== Формы ===== */
.form-container {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px var(--shadow);
    margin: 2rem 0;
}

.compact-form {
    max-width: 500px;
    margin: 1.5rem auto;
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-purple);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--lavender);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-purple);
}

.btn {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    color: var(--white);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow-hover);
}

.btn:active {
    transform: translateY(0);
}

/* ===== Мини-игра ===== */
.game-container {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px var(--shadow);
    margin: 2rem 0;
    text-align: center;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.game-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--lighter-purple) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-purple);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.game-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-purple);
}

.game-item.active {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    color: var(--white);
    transform: scale(1.1);
}

/* ===== Секции ===== */
.section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--lavender);
}

.section:last-of-type {
    border-bottom: none;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-purple);
}

/* ===== Карта ===== */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow);
    margin: 2rem 0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== FAQ ===== */
.faq-item {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px var(--shadow);
}

.faq-question {
    font-weight: 600;
    color: var(--dark-purple);
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== Футер ===== */
.footer {
    background: linear-gradient(135deg, var(--darker-purple) 0%, var(--dark-purple) 100%);
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--lavender);
}

/* ===== Мобильная адаптация ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 2rem 0;
        gap: 1.5rem;
        box-shadow: 0 4px 10px var(--shadow);
        z-index: 999;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-main {
        padding: 3rem 1.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text-frame {
        padding: 2rem;
    }

    .hero-text-frame h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .container {
        padding: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .game-board {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .game-item {
        font-size: 1.5rem;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-main {
        padding: 2rem 1rem;
    }

    .hero-text-frame {
        padding: 1.5rem;
    }

    .hero-text-frame h1 {
        font-size: 1.75rem;
    }

    .hero-text-frame p {
        font-size: 1rem;
    }

    .hero-bonus {
        font-size: 1.2rem !important;
    }

    .hero-bonus strong {
        font-size: 1.5rem;
    }

    .card {
        padding: 1rem;
    }

    .form-container {
        padding: 1.5rem;
    }
}

/* ===== Анимация появления при скролле ===== */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Дополнительные утилиты ===== */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--lavender), transparent);
    margin: 2rem 0;
}

/* ===== Уведомление об успешной регистрации ===== */
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.success-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.success-notification-content {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
}

.success-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.success-notification-content p {
    margin: 0;
    font-weight: 500;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .success-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .success-notification.show {
        transform: translateY(0);
    }
    
    .success-notification-content {
        min-width: auto;
        width: 100%;
    }
    
    .compact-form {
        max-width: 100%;
    }
}

