@import url('colors.css');

/* === СБРОС СТИЛЕЙ === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-section-dark);
    overflow-x: hidden;
}

/* === КОНТЕЙНЕР === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === ШАПКА === */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(45, 74, 76, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-decoration: none;
    background: linear-gradient(120deg, var(--color-text-primary) 0%, var(--color-accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--color-accent-gold);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-text-primary);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* === МОБИЛЬНОЕ МЕНЮ === */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, var(--opacity-overlay));
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--color-section-dark);
    z-index: 1001;
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    box-shadow: var(--shadow-strong);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu a {
    display: block;
    color: var(--color-text-primary);
    text-decoration: none;
    padding: 15px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--color-accent-gold);
    padding-left: 10px;
}

/* === HERO СЕКЦИЯ === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 40px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-hero-top) 0% 50%, var(--color-hero-bottom) 50% 100%);
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 60% 80%, rgba(255,255,255,0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 3px, transparent 3px);
    background-size: 200px 200px, 150px 150px, 180px 180px;
    animation: floatParticles 20s infinite linear;
    opacity: 0.6;
}

@keyframes floatParticles {
    0% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-30px) translateX(20px); }
    66% { transform: translateY(30px) translateX(-20px); }
    100% { transform: translateY(0) translateX(0); }
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
}

.shape-1 {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--color-leaf-green-vibrant), var(--color-accent-teal));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--color-leaf-golden), var(--color-card-orange-brown));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    background: linear-gradient(225deg, var(--color-accent-teal), var(--color-leaf-green-light));
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(90deg); }
    50% { transform: translate(-20px, 20px) rotate(180deg); }
    75% { transform: translate(20px, 20px) rotate(270deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
    display: flex;
    align-items: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

.hero-text {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text > * {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-text > *:nth-child(1) { animation-delay: 0.4s; }
.hero-text > *:nth-child(2) { animation-delay: 0.6s; }
.hero-text > *:nth-child(3) { animation-delay: 0.8s; }
.hero-text > *:nth-child(4) { animation-delay: 1s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(120deg, #fff 0%, var(--color-accent-gold) 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--color-text-primary);
}

.hero-info {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--color-text-secondary);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border-left: 4px solid var(--color-accent-gold);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* === КНОПКИ === */
.btn {
    position: relative;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-button);
    color: var(--color-button-text);
    box-shadow: var(--shadow-button);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 111, 71, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-text-primary);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-text-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover::after {
    left: 0;
}

.btn-secondary:hover {
    color: var(--color-hero-top);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
}

/* === СЕКЦИИ === */
section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-text-primary);
}

.section-dark {
    background: var(--color-section-dark);
}

.section-textured {
    background: 
        var(--color-section-dark-textured),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(74, 124, 126, 0.1) 10px,
            rgba(74, 124, 126, 0.1) 20px
        );
}

.section-games {
    background-image: url('../images/Mevcut Oyunlar.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.section-games::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 74, 76, 0.85);
    z-index: 0;
}

.section-games > .container {
    position: relative;
    z-index: 1;
}

.section-contact {
    background-image: url('../images/İletişim.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.section-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 74, 76, 0.85);
    z-index: 0;
}

.section-contact > .container {
    position: relative;
    z-index: 1;
}

/* === КАРТОЧКИ === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.game-card,
.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }

.game-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.game-card:hover::before {
    animation: shine 0.5s ease-in-out;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: pulse 2s infinite;
}

.game-icon:has(img) {
    animation: none;
    font-size: 0;
}

.game-icon img {
    transition: transform 0.3s ease;
    display: block;
}

.feature-card:hover .game-icon img {
    transform: scale(1.05);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.game-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.game-card p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.card-green {
    background: var(--color-card-green);
}

.card-brown {
    background: var(--color-card-brown);
}

.card-orange-brown {
    background: var(--color-card-orange-brown);
}

/* === ИГРА НА ЛОГИКУ === */
.game-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.game-board {
    display: grid;
    gap: 15px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.game-tile {
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.game-tile::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.game-tile:hover::before {
    width: 200%;
    height: 200%;
}

.game-tile:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.game-tile.flip {
    animation: flipCard 0.6s ease-in-out;
}

@keyframes flipCard {
    0% { transform: rotateY(0); }
    50% { transform: rotateY(90deg) scale(1.1); }
    100% { transform: rotateY(0); }
}

.game-tile.match {
    animation: matchSuccess 0.5s ease-out;
    background: linear-gradient(135deg, var(--color-leaf-green-vibrant), var(--color-leaf-green-medium));
}

@keyframes matchSuccess {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2) rotate(10deg); }
    50% { transform: scale(1.1) rotate(-10deg); }
    75% { transform: scale(1.15) rotate(5deg); }
}

/* === РЕЙТИНГ === */
.rating-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-top: 2rem;
}

.rating-row {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    transition: all 0.3s ease;
    animation: slideInLeft 0.5s ease-out backwards;
}

.rating-row:nth-child(1) { animation-delay: 0.1s; }
.rating-row:nth-child(2) { animation-delay: 0.2s; }
.rating-row:nth-child(3) { animation-delay: 0.3s; }
.rating-row:nth-child(4) { animation-delay: 0.4s; }
.rating-row:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.rating-row:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.rating-row td {
    padding: 20px;
    text-align: left;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--color-accent-teal), var(--color-accent-brown));
    color: var(--color-text-primary);
}

.score-display {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.score-number {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-badge {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, var(--color-accent-teal), var(--color-accent-brown));
    border-radius: 20px;
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* === ФОРМЫ === */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--color-text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* === FOOTER === */
footer {
    background: var(--color-section-dark);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--color-accent-gold);
}

.footer-section a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--color-accent-gold);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-section-dark);
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    color: var(--color-text-primary);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-buttons button {
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cookie-buttons .btn-accept {
    background: var(--color-accent-gold);
    color: var(--color-text-dark);
}

.cookie-buttons .btn-decline {
    background: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-text-primary);
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-image {
        max-width: 100%;
        order: -1;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .game-board {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rating-table {
        font-size: 0.9rem;
    }
    
    .rating-row td {
        padding: 15px 10px;
    }
    
    .section-dark > .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    .rating-table thead {
        display: none;
    }
    
    .rating-row {
        display: block;
        margin-bottom: 15px;
    }
    
    .rating-row td {
        display: block;
        text-align: right;
        padding: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .rating-row td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: var(--color-accent-gold);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .game-board {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .game-tile {
        font-size: 1.5rem;
    }
}

/* === АНИМАЦИИ ПРИ ЗАГРУЗКЕ СТРАНИЦЫ === */
.page-transition {
    animation: pageFadeIn 0.6s ease-out;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* === АККОРДЕОНЫ === */
.accordion {
    margin: 20px 0;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-soft);
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--color-text-primary);
    font-weight: 600;
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--color-accent-gold);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding: 20px;
}

.accordion-content p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin: 0;
}

/* === ТАБЛИЦЫ === */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
}

.data-table thead {
    background: rgba(212, 175, 55, 0.2);
}

.data-table th {
    padding: 15px 20px;
    text-align: left;
    color: var(--color-accent-gold);
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.data-table td {
    padding: 15px 20px;
    color: var(--color-text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table tbody tr {
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* === ОТЗЫВЫ === */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 5rem;
    color: var(--color-accent-gold);
    opacity: 0.3;
    font-family: serif;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(255, 255, 255, 0.3);
}

.testimonial-text {
    color: var(--color-text-primary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent-gold), var(--color-card-orange-brown));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.testimonial-info h4 {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 1.1rem;
}

.testimonial-info p {
    margin: 5px 0 0 0;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.testimonial-rating {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.star {
    color: var(--color-accent-gold);
    font-size: 1.2rem;
}

/* === СТАТЬИ === */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.article-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(255, 255, 255, 0.3);
}

.articles-grid a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.articles-grid a:hover .article-card {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(255, 255, 255, 0.3);
}

.article-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--color-accent-teal), var(--color-accent-brown));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 25px;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-card h3 {
    color: var(--color-text-primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.article-card p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-link {
    color: var(--color-accent-gold);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.article-link:hover {
    gap: 10px;
}

/* === СТАТИСТИКА === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(255, 255, 255, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-accent-gold), var(--color-card-orange-brown));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

/* === TIMELINE === */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-accent-gold);
    top: 30px;
    border: 4px solid var(--color-section-dark);
}

.timeline-item:nth-child(odd)::before {
    right: -30px;
}

.timeline-item:nth-child(even)::before {
    left: -30px;
}

.timeline-date {
    color: var(--color-accent-gold);
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content h3 {
    color: var(--color-text-primary);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* === BADGES === */
.badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 5px;
}

.badge-primary {
    background: var(--color-accent-teal);
    color: var(--color-text-primary);
}

.badge-success {
    background: var(--color-leaf-green-vibrant);
    color: var(--color-text-primary);
}

.badge-warning {
    background: var(--color-accent-gold);
    color: var(--color-text-dark);
}

.badge-info {
    background: var(--color-accent-brown);
    color: var(--color-text-primary);
}

/* === АДАПТИВНОСТЬ ДЛЯ НОВЫХ КОМПОНЕНТОВ === */
@media (max-width: 768px) {
    .testimonials,
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px !important;
        padding-right: 20px !important;
    }
    
    .timeline-item::before {
        left: 10px !important;
        right: auto !important;
    }
    
    .data-table {
        font-size: 0.9rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px;
    }
    
    .accordion-header h3 {
        font-size: 1rem;
    }
    
    .timeline-item {
        padding: 15px !important;
    }
}

/* === АНИМАЦИИ ДЛЯ ИГРЫ === */
@keyframes countUp {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

#game-complete-screen {
    animation: fadeInUp 0.6s ease-out;
}

#earned-fs {
    animation: pulse 2s infinite;
}

