/* ===================================
   Основные стили - Логические игры
   Цветовая схема: Охра
   =================================== */

:root {
    --color-primary: #CC7722;
    --color-primary-dark: #9C5F00;
    --color-primary-light: #E8C5A0;
    --color-background: #FFF8E7;
    --color-text: #3E2723;
    --color-white: #FFFFFF;
    --color-border: #D4A574;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Фоновое изображение для страницы Hakkımızda */
body.hakkimizda-page {
    background-image: url('../image/car2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

body.hakkimizda-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 248, 231, 0.85);
    z-index: -1;
}

body.hakkimizda-page main {
    position: relative;
    z-index: 1;
}

body.hakkimizda-page .content-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

/* Фоновое изображение для страницы Haberler */
body.haberler-page {
    background-image: url('../image/car6.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

body.haberler-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 248, 231, 0.85);
    z-index: -1;
}

body.haberler-page main {
    position: relative;
    z-index: 1;
}

body.haberler-page .content-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

/* Grid для карточек новостей - 2 в ряд */
.haberler-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .haberler-articles-grid {
        grid-template-columns: 1fr;
    }
}

/* Фоновое изображение для страницы Yorumlar */
body.yorumlar-page {
    background-image: url('../image/car8.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

body.yorumlar-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 248, 231, 0.85);
    z-index: -1;
}

body.yorumlar-page main {
    position: relative;
    z-index: 1;
}

body.yorumlar-page .content-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

/* Фоновое изображение для страницы İletişim */
body.iletisim-page {
    background-image: url('../image/car9.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

body.iletisim-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 248, 231, 0.85);
    z-index: -1;
}

body.iletisim-page main {
    position: relative;
    z-index: 1;
}

body.iletisim-page .content-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

/* Grid для карточек отзывов - 3 в ряд */
.yorumlar-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .yorumlar-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .yorumlar-cards-grid {
        grid-template-columns: 1fr;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Предотвращение overflow для всех основных элементов */
main, section, article, div, header, footer {
    max-width: 100%;
    box-sizing: border-box;
}

/* ===================================
   Шапка сайта
   =================================== */

header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Навигация */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-white);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--color-primary-light);
    font-weight: 600;
}

nav ul li a.active::after {
    width: 100%;
    background-color: var(--color-primary-light);
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1.5rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    flex-direction: column;
    gap: 1.5rem;
    list-style: none;
}

.mobile-menu ul li a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.mobile-menu ul li a:hover {
    padding-left: 10px;
    color: var(--color-primary-light);
}

.mobile-menu ul li a.active {
    background: rgba(255, 255, 255, 0.15);
    padding-left: 15px;
    color: var(--color-primary-light);
    font-weight: 600;
    border-left: 3px solid var(--color-primary-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===================================
   Hero секция
   =================================== */

.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    animation: fadeInUp 1.2s ease;
}

.btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-disabled {
    background-color: #CCCCCC;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.6;
    position: relative;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
    background-color: #CCCCCC;
    color: #666666;
}

.btn-disabled::after {
    content: '(Kilitli)';
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.game-locked {
    position: relative;
}

.game-locked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    z-index: 1;
}

.game-locked-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--color-white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    z-index: 2;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.fs-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1.4s ease;
}

.fs-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.fs-info p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.fs-highlight {
    font-size: 1.3rem;
    font-weight: bold;
    color: #FFD700;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin: 0.5rem 0;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 2px 4px rgba(255, 165, 0, 0.4);
    filter: drop-shadow(0 2px 6px rgba(255, 215, 0, 0.5));
    position: relative;
}

/* Fallback для браузеров, не поддерживающих gradient text */
@supports not (-webkit-background-clip: text) {
    .fs-highlight {
        color: #FFD700;
        background: none;
        -webkit-text-fill-color: #FFD700;
    }
}

/* ===================================
   Игра-головоломка на главной
   =================================== */

.game-section {
    padding: 4rem 0;
    background-color: var(--color-white);
}

.game-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.puzzle-game {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, var(--color-background) 0%, var(--color-white) 100%);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.game-question {
    margin-bottom: 1.5rem;
}

.game-question h3 {
    font-size: 1.3rem;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

.game-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.game-option {
    padding: 1rem;
    background-color: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.game-option:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary);
    transform: translateX(5px);
}

.game-option.selected {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary-dark);
}

.game-option.correct {
    background-color: #4CAF50;
    color: var(--color-white);
    border-color: #388E3C;
}

.game-option.incorrect {
    background-color: #F44336;
    color: var(--color-white);
    border-color: #D32F2F;
}

.game-result {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.game-result.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.game-result.success {
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 2px solid #4CAF50;
}

.game-result.error {
    background-color: #FFEBEE;
    color: #C62828;
    border: 2px solid #F44336;
}

.game-score {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-primary);
}

.next-question-btn {
    margin-top: 1rem;
    width: 100%;
}

/* ===================================
   Секция о системе FS
   =================================== */

.fs-system {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--color-background) 0%, var(--color-primary-light) 100%);
}

.fs-system h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--color-primary-dark);
    margin-bottom: 3rem;
}

.fs-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.fs-feature {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.fs-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.fs-feature h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* ===================================
   Контакты на главной
   =================================== */

.contacts-section {
    padding: 4rem 0;
    background-color: var(--color-white);
}

.contacts-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 3rem;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--color-background);
    border-radius: 10px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item h3 {
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.contact-item p,
.contact-item a {
    color: var(--color-text);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--color-primary);
}

.map-container {
    margin-top: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.8s ease;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}

/* ===================================
   Основной контент страниц
   =================================== */

main {
    min-height: 60vh;
    padding: 2rem 0;
}

.page-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    color: var(--color-white);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
    font-weight: 300;
}

.content-section {
    padding: 3rem 0;
}

.content-section h2 {
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* ===================================
   Футер
   =================================== */

footer {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.fs-footnote {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.9;
    font-style: italic;
}

/* ===================================
   Баннер куков
   =================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    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;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-text {
    flex: 1;
    min-width: 250px;
}

.cookie-text p {
    margin: 0;
    line-height: 1.6;
}

.cookie-text a {
    color: var(--color-primary-light);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

/* ===================================
   Анимации
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Плавная анимация появления элементов */
.fade-in {
    animation: fadeIn 0.6s ease;
}

.slide-in {
    animation: fadeInUp 0.8s ease;
}

/* ===================================
   Адаптивность (базовые стили)
   =================================== */

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-buttons .btn {
        flex: 1;
        min-width: 120px;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

/* Отключение прокрутки при открытом мобильном меню */
body.menu-open {
    overflow: hidden;
}

/* ===================================
   Таблицы
   =================================== */

.table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-white);
    font-size: 1rem;
}

table thead {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
}

table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--color-primary-dark);
}

table td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
}

table tbody tr {
    transition: var(--transition);
}

table tbody tr:hover {
    background-color: var(--color-background);
}

table tbody tr:nth-child(even) {
    background-color: rgba(204, 119, 34, 0.05);
}

table tbody tr:nth-child(even):hover {
    background-color: var(--color-background);
}

table .rank {
    font-weight: bold;
    color: var(--color-primary);
}

table .score {
    font-weight: 600;
    color: var(--color-primary-dark);
}

/* ===================================
   Аккордеоны (FAQ)
   =================================== */

.accordion {
    margin: 2rem 0;
}

.accordion-item {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.accordion-header {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-background);
    transition: var(--transition);
    user-select: none;
}

.accordion-header:hover {
    background-color: var(--color-primary-light);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-primary-dark);
    font-weight: 600;
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
    font-weight: bold;
}

.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;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding: 1.5rem;
}

.accordion-content p {
    margin: 0;
    line-height: 1.8;
    color: var(--color-text);
}

.accordion-content ul {
    margin: 1rem 0 0 0;
    padding-left: 1.5rem;
    line-height: 2;
}

/* ===================================
   Статистика и метрики
   =================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-item {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-white) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-text);
}

/* ===================================
   Карточки и теги
   =================================== */

.card {
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.3rem;
    color: var(--color-primary-dark);
    margin: 0;
}

.tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 0.25rem;
    font-weight: 500;
}

.tag-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ===================================
   Изображения
   =================================== */

.content-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.content-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.article-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.game-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem auto;
    display: block;
}

.contact-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    margin: 2rem auto;
    display: block;
}

