* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #9d7ce8; /* Тёмно-фиолетовый */
    --secondary-color: #c0c0c0; /* Стальной серебряный */
    --dark-bg: #1a0a2e; /* Тёмно-фиолетовый/чёрный */
    --text-light: #e8e8e8;
    --text-dark: #2d2d2d;
    --accent-color: #b8a9d9;
    --silver: #c0c0c0;
    --dark-purple: #2d1b4e;
    --black: #0a0a0a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: linear-gradient(180deg, #0a0a0a 0%, #1a0a2e 50%, #0a0a0a 100%);
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 25%, rgba(157, 124, 232, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a0a 0%, #1a0a2e 50%, #0a0a0a 100%);
    background-size: 100% 100%;
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(26, 10, 46, 0.8) 0%, rgba(45, 27, 78, 0.4) 50%, transparent 100%);
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background: linear-gradient(135deg, rgba(26, 10, 46, 0.95) 0%, rgba(45, 27, 78, 0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(157, 124, 232, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(192, 192, 192, 0.2);
}

.navbar {
    padding: 1.2rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--silver) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s;
    text-shadow: 0 0 20px rgba(157, 124, 232, 0.5);
}

.logo a:hover {
    filter: brightness(1.2);
    text-shadow: 0 0 30px rgba(157, 124, 232, 0.8);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--silver);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--silver));
    transition: width 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(157, 124, 232, 0.5);
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--silver));
    transition: all 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: var(--primary-color);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    padding: 80px 0;
    display: flex;
    align-items: center;
    color: var(--text-light);
    background: linear-gradient(135deg, rgba(26, 10, 46, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(157, 124, 232, 0.3), 0 0 60px rgba(157, 124, 232, 0.1);
    animation: fadeInUp 1s ease;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--silver) 50%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(157, 124, 232, 0.5);
    animation: fadeInUp 1s ease;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--silver);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    opacity: 0.9;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-bonus {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(157, 124, 232, 0.15) 0%, rgba(26, 10, 46, 0.3) 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    color: var(--text-light);
    line-height: 1.7;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-bonus strong {
    color: var(--primary-color);
    font-weight: 600;
}

.hero-content-image {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(157, 124, 232, 0.25), 0 0 50px rgba(157, 124, 232, 0.1);
    animation: fadeInUp 1s ease 0.8s both;
}

.hero-content-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-purple) 100%);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(157, 124, 232, 0.4), 0 0 20px rgba(157, 124, 232, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 124, 232, 0.6), 0 0 30px rgba(157, 124, 232, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(157, 124, 232, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-purple) 100%);
    color: var(--text-light);
    box-shadow: 0 0 25px rgba(157, 124, 232, 0.5);
}

/* Content Sections */
.content-section {
    background: linear-gradient(135deg, rgba(45, 27, 78, 0.6) 0%, rgba(26, 10, 46, 0.8) 100%);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(192, 192, 192, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(157, 124, 232, 0.1);
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.content-section:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(157, 124, 232, 0.2);
    border-color: rgba(157, 124, 232, 0.4);
}

.content-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-shadow: 0 0 15px rgba(157, 124, 232, 0.5);
}

.content-section h3 {
    color: var(--silver);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    margin-top: 2rem;
}

.content-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-light);
    opacity: 0.9;
}

.content-section img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.section-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.section-with-image img {
    margin: 0;
}

/* Page Content */
.page-content {
    padding: 60px 0;
    min-height: 60vh;
    position: relative;
}

.page-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--silver) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(157, 124, 232, 0.3);
}

/* Game Section */
.game-section {
    background: linear-gradient(135deg, rgba(45, 27, 78, 0.6) 0%, rgba(26, 10, 46, 0.8) 100%);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(192, 192, 192, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    margin: 3rem 0;
    text-align: center;
}

.game-intro {
    margin-bottom: 2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 400px;
    margin: 2rem auto;
}

.game-tile {
    aspect-ratio: 1;
    background: rgba(26, 10, 46, 0.8);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s;
    color: var(--primary-color);
}

.game-tile:hover {
    background: rgba(157, 124, 232, 0.2);
    transform: scale(1.05);
}

.game-tile.selected {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 0 20px rgba(157, 124, 232, 0.6);
}

.game-round-info {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(157, 124, 232, 0.5);
}

.game-message {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    color: var(--silver);
    min-height: 2rem;
}

.game-buttons-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.game-reset {
    margin-top: 0;
}

.game-early-access {
    margin-top: 0;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(157, 124, 232, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(157, 124, 232, 0.7);
    }
}

/* Quotes Section */
.quotes-section {
    background: linear-gradient(135deg, rgba(45, 27, 78, 0.6) 0%, rgba(26, 10, 46, 0.8) 100%);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(192, 192, 192, 0.2);
    margin: 3rem 0;
}

.quote {
    margin-bottom: 2rem;
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
    background: rgba(26, 10, 46, 0.5);
    border-radius: 8px;
}

.quote-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.quote-author {
    color: var(--silver);
    font-size: 0.9rem;
    text-align: right;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.gallery-item {
    background: linear-gradient(135deg, rgba(45, 27, 78, 0.6) 0%, rgba(26, 10, 46, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(192, 192, 192, 0.2);
    transition: all 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(157, 124, 232, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
}

.gallery-item-caption {
    padding: 1.5rem;
    color: var(--text-light);
}

/* Tabs */
.tabs {
    margin: 2rem 0;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 24px;
    background: rgba(26, 10, 46, 0.6);
    border: 2px solid rgba(192, 192, 192, 0.3);
    color: var(--silver);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    font-weight: 500;
}

.tab-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-button.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-purple) 100%);
    border-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 0 15px rgba(157, 124, 232, 0.4);
}

.tab-content {
    display: none;
    padding: 2rem;
    background: rgba(26, 10, 46, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(192, 192, 192, 0.2);
}

.tab-content.active {
    display: block;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--silver);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(26, 10, 46, 0.6);
    border: 2px solid rgba(192, 192, 192, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-light);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(157, 124, 232, 0.3);
    background: rgba(45, 27, 78, 0.6);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(192, 192, 192, 0.5);
}

/* Contact Info */
.contact-info {
    background: linear-gradient(135deg, rgba(45, 27, 78, 0.6) 0%, rgba(26, 10, 46, 0.8) 100%);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(192, 192, 192, 0.2);
    margin-bottom: 2rem;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin: 2rem 0;
    border: 1px solid rgba(192, 192, 192, 0.2);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(26, 10, 46, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 3rem 0;
    border-top: 1px solid rgba(192, 192, 192, 0.2);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3), 0 0 30px rgba(157, 124, 232, 0.1);
    position: relative;
    margin-top: 4rem;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--silver), var(--primary-color), transparent);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: var(--silver);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer p {
    color: var(--silver);
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, rgba(26, 10, 46, 0.98) 0%, rgba(45, 27, 78, 0.98) 100%);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: left 0.3s;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
        gap: 0;
        border-top: 1px solid rgba(192, 192, 192, 0.2);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(192, 192, 192, 0.1);
    }

    .nav-menu a {
        display: block;
        padding: 0.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links li {
        width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-with-image {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .game-board {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}

