/* ============================================
   ЦВЕТОВАЯ СИСТЕМА И ПЕРЕМЕННЫЕ
   ============================================ */
:root {
    /* Основная палитра (адаптирована из BODREN) */
    --color-primary-dark: #3D2817;
    --color-primary-medium: #6B4E3D;
    --color-primary-light: #A0826D;
    --color-accent: #4ECDC4;
    --color-accent-hover: #45B8B0;
    --color-accent-dark: #3A9D96;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #E8E8E8;
    --color-card-bg: #4A3428;
    --color-card-hover: #5A4235;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #3D2817 0%, #6B4E3D 100%);
    --gradient-accent: linear-gradient(135deg, #4ECDC4 0%, #45B8B0 100%);
    --gradient-text: linear-gradient(135deg, #A0826D 0%, #FFFFFF 100%);
    
    /* Тени */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(78, 205, 196, 0.4);
    
    /* Шрифты */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Переходы */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--color-primary-dark);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   АНИМАЦИИ
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(78, 205, 196, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(78, 205, 196, 0.6);
    }
}

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

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes particle {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   HEADER И НАВИГАЦИЯ
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(61, 40, 23, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

header.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-lg);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-text-primary);
    text-decoration: none;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition-normal);
    animation: fadeIn 0.6s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition-normal);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

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

/* ============================================
   МОБИЛЬНОЕ МЕНЮ
   ============================================ */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--color-text-primary);
    border-radius: 3px;
    transition: var(--transition-normal);
    transform-origin: center;
}

.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-toggle:hover span {
    background: var(--color-accent);
}


/* ============================================
   HERO СЕКЦИЯ
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.6;
    animation: particle 15s infinite linear;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: slideInLeft 0.8s ease;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--color-primary-light);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text .highlight {
    color: var(--color-accent);
    display: block;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.funny-score-info {
    background: rgba(78, 205, 196, 0.1);
    border-left: 4px solid var(--color-accent);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease 0.3s both;
}

.funny-score-info h3 {
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.funny-score-info p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.funny-score-badge {
    display: inline-block;
    background: var(--gradient-accent);
    color: var(--color-primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    animation: pulse 2s infinite;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeIn 1s ease 0.5s both;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--color-primary-dark);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(78, 205, 196, 0.6);
}

.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;
}

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

.btn {
    position: relative;
    overflow: hidden;
}

.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
    animation: slideInRight 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    width: 100%;
    max-width: 100%;
}

.hero-image img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 600px;
    object-fit: cover;
    transition: var(--transition-normal);
}

.hero-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.game-preview {
    position: relative;
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition-normal);
}

.game-preview:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

/* ============================================
   ИГРА-ГОЛОЛОВОМКА
   ============================================ */
.puzzle-section {
    padding: 80px 0;
    background: var(--color-card-bg);
    position: relative;
}

.puzzle-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-primary-dark);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.8s ease;
}

.puzzle-header {
    text-align: center;
    margin-bottom: 2rem;
}

.puzzle-header h2 {
    font-size: 2.5rem;
    color: var(--color-primary-light);
    margin-bottom: 1rem;
}

.puzzle-header p {
    color: var(--color-text-secondary);
}

.puzzle-game {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 2rem;
}

.puzzle-tile {
    aspect-ratio: 1;
    background: var(--color-primary-medium);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

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

.puzzle-tile:hover::before {
    width: 100%;
    height: 100%;
}

.puzzle-tile:hover {
    transform: scale(1.05);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
}

.puzzle-tile.empty {
    background: transparent;
    cursor: default;
}

.puzzle-tile.empty:hover {
    transform: none;
    border-color: transparent;
}

.puzzle-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.puzzle-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-primary-medium);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-accent);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-top: 0.5rem;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-primary-light);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

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

.game-card {
    background: var(--color-card-bg);
    border-radius: 15px;
    padding: 2rem;
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s ease both;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.1), transparent);
    transition: var(--transition-slow);
}

.game-card:hover::before {
    left: 100%;
}

.game-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-glow);
    background: var(--color-card-hover);
}

.game-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.game-card-image {
    width: 100%;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 10px;
}

.game-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition-normal);
}

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

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

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

.game-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-difficulty {
    display: flex;
    gap: 5px;
}

.difficulty-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary-medium);
}

.difficulty-dot.active {
    background: var(--color-accent);
}

.game-score-required {
    color: var(--color-accent);
    font-weight: bold;
}

/* ============================================
   ТУРНИРНАЯ ТАБЛИЦА
   ============================================ */
.leaderboard {
    background: var(--color-card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-primary-medium);
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 60px 1fr 150px 120px;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--color-primary-dark);
    border-radius: 10px;
    transition: var(--transition-fast);
    animation: slideInLeft 0.6s ease both;
}

.leaderboard-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.leaderboard-item.current-user {
    background: rgba(78, 205, 196, 0.2);
    border: 2px solid var(--color-accent);
}

.rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-accent);
    text-align: center;
}

.rank.top {
    color: #FFD700;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--color-primary-dark);
}

.player-name {
    font-weight: 600;
}

.funny-score {
    text-align: right;
    font-weight: bold;
    color: var(--color-accent);
    font-size: 1.2rem;
}

.games-unlocked {
    text-align: center;
    color: var(--color-text-secondary);
}

/* ============================================
   ФОРМЫ
   ============================================ */
.form-section {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-card-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--color-primary-dark);
    border: 2px solid var(--color-primary-medium);
    border-radius: 10px;
    color: var(--color-text-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
    font-family: var(--font-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

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

/* ============================================
   КАРТА
   ============================================ */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-top: 2rem;
    animation: fadeIn 0.8s ease;
}

.map-container iframe {
    display: block;
    width: 100%;
    border: none;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--color-card-bg);
    padding: 3rem 0 1rem;
    margin-top: 80px;
}

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

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

.footer-section a {
    color: var(--color-text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--color-accent);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-primary-medium);
    color: var(--color-text-secondary);
}

/* ============================================
   БАННЕР КУКИ
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-card-bg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    transform: translateY(100%);
    transition: var(--transition-normal);
}

.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-secondary);
}

.cookie-text a {
    color: var(--color-accent);
    text-decoration: none;
}

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

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-primary-dark);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        transition: right var(--transition-normal);
        z-index: 1000;
        overflow-y: auto;
        padding-top: 80px;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid var(--color-primary-medium);
    }
    
    .main-nav a {
        display: block;
        padding: 1.2rem 2rem;
        width: 100%;
        font-size: 1.1rem;
    }
    
    .main-nav a::after {
        display: none;
    }
    
    .main-nav a:hover,
    .main-nav a.active {
        background: var(--color-card-bg);
        color: var(--color-accent);
        padding-left: 2.5rem;
    }
    
    /* Overlay для мобильного меню */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
        opacity: 0;
        transition: opacity var(--transition-normal);
    }
    
    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .hero {
        background-image: url('../images/hero.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
    }
    
    .hero::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(61, 40, 23, 0.85);
        z-index: 0;
    }
    
    .hero .container {
        position: relative;
        z-index: 1;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .leaderboard-item {
        grid-template-columns: 40px 1fr;
        gap: 0.5rem;
    }
    
    .rank {
        grid-column: 1;
        grid-row: 1;
    }
    
    .player-info {
        grid-column: 2;
        grid-row: 1;
    }
    
    .funny-score {
        grid-column: 1 / -1;
        text-align: left;
        margin-top: 0.5rem;
    }
    
    .games-unlocked {
        grid-column: 1 / -1;
        text-align: left;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
    }
    
    .cookie-buttons .btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .puzzle-game {
        gap: 5px;
    }
    
    .form-section {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   УТИЛИТЫ
   ============================================ */
.fade-in {
    animation: fadeIn 0.6s ease both;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease both;
}

.slide-in-right {
    animation: slideInRight 0.6s ease both;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ============================================
   АККОРДЕОНЫ (FAQ)
   ============================================ */
.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--color-card-bg);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.accordion-item:hover {
    box-shadow: var(--shadow-md);
}

.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-primary-dark);
    transition: var(--transition-fast);
    user-select: none;
}

.accordion-header:hover {
    background: var(--color-card-hover);
}

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

.accordion-icon {
    color: var(--color-accent);
    font-size: 1.5rem;
    transition: var(--transition-normal);
    transform: rotate(0deg);
}

.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 1.5rem;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 1.5rem;
}

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

/* ============================================
   ТАБЛИЦЫ
   ============================================ */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-card-bg);
    min-width: 600px;
}

thead {
    background: var(--color-primary-dark);
}

th {
    padding: 1.2rem;
    text-align: left;
    color: var(--color-primary-light);
    font-weight: 600;
    border-bottom: 2px solid var(--color-primary-medium);
}

td {
    padding: 1rem 1.2rem;
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-primary-medium);
}

tbody tr {
    transition: var(--transition-fast);
}

tbody tr:hover {
    background: var(--color-card-hover);
}

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

.table-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(78, 205, 196, 0.2);
    color: var(--color-accent);
}

.badge-info {
    background: rgba(160, 130, 109, 0.2);
    color: var(--color-primary-light);
}

/* ============================================
   ОТЗЫВЫ
   ============================================ */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.review-card {
    background: var(--color-card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    animation: fadeIn 0.6s ease both;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--color-primary-dark);
    font-size: 1.2rem;
}

.review-info h4 {
    color: var(--color-primary-light);
    margin-bottom: 0.3rem;
}

.review-info p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.review-rating {
    display: flex;
    gap: 3px;
    color: #FFD700;
    font-size: 1.2rem;
}

.review-text {
    color: var(--color-text-secondary);
    line-height: 1.8;
    font-style: italic;
}

.review-date {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    margin-top: 1rem;
    opacity: 0.7;
}

/* ============================================
   СТАТЬИ/БЛОГ
   ============================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.article-card {
    background: var(--color-card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    animation: fadeIn 0.6s ease both;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

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

.article-content {
    padding: 2rem;
}

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

.article-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(78, 205, 196, 0.2);
    color: var(--color-accent);
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.article-content h3 {
    color: var(--color-primary-light);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.article-content p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.article-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.article-link:hover {
    gap: 1rem;
}

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

.stat-card {
    background: var(--color-card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    animation: scaleIn 0.6s ease both;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.5rem;
}

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

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
    position: relative;
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-primary-medium);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    animation: fadeIn 0.6s ease both;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
    text-align: right;
}

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

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 4px solid var(--color-primary-dark);
    top: 0;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -11px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -11px;
}

.timeline-content {
    background: var(--color-card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    color: var(--color-primary-light);
    margin-bottom: 0.5rem;
}

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

.timeline-date {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ============================================
   АДАПТИВНОСТЬ ДЛЯ НОВЫХ ЭЛЕМЕНТОВ
   ============================================ */
@media (max-width: 768px) {
    .reviews-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .table-container {
        margin: 1rem -20px;
    }
    
    table {
        min-width: 500px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 3rem !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-item .timeline-dot {
        left: 11px !important;
        right: auto !important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   АДАПТИВНОСТЬ ДЛЯ ABOUT IMAGE
   ============================================ */
@media (max-width: 768px) {
    .about-section {
        grid-template-columns: 1fr !important;
    }
    
    .about-image {
        margin-bottom: 2rem;
    }
}

