/* Основные стили для Olimpos'un Kapıları */

:root {
    --primary-yellow: #FFE5B4;
    --primary-orange: #FFB84D;
    --dark-orange: #FF8C00;
    --light-yellow: #FFF8E7;
    --accent-orange: #FFA500;
    --text-dark: #4A4A4A;
    --text-light: #6B6B6B;
    --white: #FFFFFF;
    --shadow: rgba(255, 140, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, var(--light-yellow) 0%, var(--primary-yellow) 100%);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Анимация появления страницы */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    animation: fadeIn 0.8s ease-out;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
    padding: 1.5rem 0;
    box-shadow: 0 4px 15px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.mobile-menu-toggle .hamburger-icon {
    display: none;
}

.mobile-menu-toggle .menu-text {
    display: block;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3rem 2rem;
}

/* Hero Section для других страниц (меньшего размера) */
.hero:has(.hero-overlay) {
    min-height: 250px;
    height: 30vh;
    padding: 2rem 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero.png') center/cover no-repeat;
    filter: blur(8px);
    z-index: 1;
    transform: scale(1.1);
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-image-frame {
    background: var(--white);
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 3px solid var(--primary-orange);
    animation: fadeInLeft 1s ease-out;
}

.hero-image-frame img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    object-fit: cover;
}

.hero-text-frame {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 15px;
    border: 3px solid var(--primary-orange);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    color: var(--text-dark);
    animation: fadeInRight 1s ease-out;
}

.hero-text-frame h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--dark-orange);
    text-shadow: none;
}

.hero-text-frame p {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    text-shadow: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-text-frame .hero-bonus {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--dark-orange);
    margin-top: 1rem !important;
    margin-bottom: 1.5rem !important;
}

.hero-text-frame .hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero-text-frame .btn-register,
.hero-text-frame .btn-demo {
    min-width: 150px;
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Section */
section {
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    position: relative;
    padding-top: 3rem;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Horizontal line divider between sections */
/* Divider for sections within container - centered line */
.container > section:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    height: 2px;
    background: var(--accent-orange);
}

/* Alternative: full width divider - can be applied by adding class */
section.section-divider-full::before {
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    background: var(--accent-orange);
}

/* Alternative: simple solid line centered */
section.section-divider-solid::before {
    background: var(--accent-orange);
    width: 60%;
}

/* First section in container doesn't need top padding */
.container > section:first-child {
    padding-top: 0;
}

/* Divider for sections outside container (but not hero sections) */
body > section:not(.hero):not(:first-child)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    height: 2px;
    background: var(--accent-orange);
}

/* Ensure hero sections don't get dividers or extra padding */
section.hero {
    padding-top: 0;
}

section.hero::before {
    display: none;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-orange);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-orange);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px var(--shadow);
    margin-bottom: 2rem;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card h3 {
    color: var(--dark-orange);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin: 1rem 0;
    box-shadow: none;
    filter: none;
}

/* Game Container */
.game-container {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px var(--shadow);
    margin: 2rem 0;
    text-align: center;
}

.game-canvas {
    border: 3px solid var(--primary-orange);
    border-radius: 10px;
    background: #1a1a1a;
    display: block;
    margin: 1rem auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.game-controls {
    margin-top: 1rem;
}

.btn {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
    color: var(--white);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px var(--shadow);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

/* Table */
.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 15px var(--shadow);
}

th, td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--primary-yellow);
}

th {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
    color: var(--white);
    font-weight: bold;
}

tr:hover {
    background: var(--primary-yellow);
    transition: background 0.3s ease;
}

/* Accordion */
.accordion {
    margin: 2rem 0;
}

.accordion-item {
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px var(--shadow);
    overflow: hidden;
}

.accordion-header {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
    color: var(--white);
    padding: 1.5rem;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: linear-gradient(135deg, var(--dark-orange) 0%, var(--accent-orange) 100%);
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.accordion-body {
    padding: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Registration Hero Image */
.registration-hero-image {
    width: 100%;
    margin-bottom: 3rem;
    text-align: center;
}

.registration-hero-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow);
    object-fit: cover;
}

/* Form */
.form-container {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px var(--shadow);
    max-width: 450px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
    font-weight: bold;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.6rem;
    border: 2px solid var(--primary-yellow);
    border-radius: 6px;
    font-size: 0.9rem;
    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-orange);
}

.form-group input.error {
    border-color: #e74c3c;
}

.form-group input.valid {
    border-color: #27ae60;
}

.form-group .error-message {
    color: #e74c3c;
    font-size: 0.75rem;
    margin-top: 0.3rem;
    display: none;
}

.form-group .error-message.show {
    display: block;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.form-group label a {
    color: var(--primary-orange);
    text-decoration: none;
}

.form-group label a:hover {
    text-decoration: underline;
}

/* Map */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow);
    margin: 2rem 0;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-orange) 0%, var(--primary-orange) 100%);
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-info {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

/* FAQ */
.faq-item {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px var(--shadow);
}

.faq-question {
    font-weight: bold;
    color: var(--dark-orange);
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.8;
}

/* Success Notification */
.success-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: var(--white);
    padding: 2rem 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(39, 174, 96, 0.4);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 90%;
    width: 400px;
}

.success-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.success-notification-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.success-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    flex-shrink: 0;
    animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.success-message h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.success-message p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.95;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle .hamburger-icon {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 24px;
        height: 18px;
    }

    .mobile-menu-toggle .hamburger-icon span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--white);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle .menu-text {
        display: none;
    }

    /* Адаптация таблиц для мобильной версии */
    .card {
        overflow-x: hidden;
    }

    .table-container {
        overflow-x: hidden;
        margin: 1rem 0;
        width: 100%;
        max-width: 100%;
    }

    table {
        font-size: 0.7rem;
        width: 100%;
        max-width: 100%;
        display: table;
        table-layout: fixed;
    }

    th, td {
        padding: 0.5rem 0.35rem;
        font-size: 0.65rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.3;
    }

    th {
        font-size: 0.7rem;
        padding: 0.6rem 0.35rem;
    }

    /* Дополнительная оптимизация для очень маленьких экранов */
    @media (max-width: 480px) {
        .table-container {
            margin: 0.8rem 0;
        }

        table {
            font-size: 0.6rem;
        }

        th, td {
            padding: 0.4rem 0.25rem;
            font-size: 0.6rem;
            line-height: 1.2;
        }

        th {
            font-size: 0.65rem;
            padding: 0.5rem 0.25rem;
        }
    }

    .hero {
        min-height: auto;
        padding: 2rem 1rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-image-frame {
        order: 2;
        padding: 0.8rem;
    }

    .hero-text-frame {
        order: 1;
        padding: 1.5rem;
        text-align: center;
    }

    .hero-text-frame h1 {
        font-size: 2rem;
    }

    .hero-text-frame p {
        font-size: 1.1rem;
    }

    .hero-text-frame .hero-bonus {
        font-size: 1.1rem;
    }

    .hero-text-frame .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        justify-content: center;
    }

    .hero-text-frame .btn-register,
    .hero-text-frame .btn-demo {
        width: 100%;
        min-width: auto;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 2rem 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .success-notification {
        width: 90%;
        max-width: 350px;
        padding: 1.5rem;
    }

    .success-notification-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .success-icon {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }

    .success-message h3 {
        font-size: 1.3rem;
    }

    .success-message p {
        font-size: 0.9rem;
    }

    .registration-hero-image {
        margin-bottom: 2rem;
    }

    .registration-hero-image img {
        border-radius: 10px;
    }
}

