/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #07040d 0%, #0c0f1b 50%, #111936 100%);
    color: #e2e8f0;
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .container {
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 32px;
    }
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(249, 115, 22, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

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

.logo img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(234, 88, 12, 0.3);
}

.logo h1 {
    font-size: 20px;
    font-weight: 700;
    color: #f3f4f6;
}

.nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(90deg, #ea580c 0%, #ef4444 100%);
    color: white;
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.4);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 26px rgba(251, 146, 60, 0.5);
    background: linear-gradient(90deg, #f97316 0%, #f87171 100%);
}

.btn-hero {
    background: linear-gradient(90deg, #ea580c 0%, #ef4444 100%);
    color: white;
    padding: 20px 48px;
    font-size: 24px;
    border-radius: 40px;
    font-weight: 500;
    box-shadow: 0 0 35px rgba(234, 88, 12, 0.4);
}

.btn-hero:hover {
    transform: scale(1.05);
    box-shadow: 0 0 42px rgba(251, 146, 60, 0.5);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(249, 115, 22, 0.15) 0%,
        rgba(15, 23, 42, 0.4) 50%,
        rgba(251, 113, 133, 0.15) 100%);
    opacity: 0.8;
}

.hero-radial {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(249, 115, 22, 0.22) 0%, transparent 55%);
}

.hero-image {
    position: absolute;
    inset: 0;
    background: url('/assets/images/new-year/back.webp') center/cover;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 40px;
    padding: 40px;
    box-shadow: 0 0 45px rgba(8, 12, 24, 0.65);
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 20px;
    text-shadow: 0 0 25px rgba(249, 115, 22, 0.35);
}

.hero-subtitle {
    font-size: 24px;
    color: #d1d5db;
    margin-bottom: 40px;
    line-height: 1.4;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .hero-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hero-feature {
    position: relative;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: 24px;
    padding: 24px;
    min-height: 200px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-feature:hover {
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 0 28px rgba(234, 88, 12, 0.25);
}

.feature-bg {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-size: cover;
    background-position: center;
}

.feature-bg-1 {
    background: 
        linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%),
        url('/assets/images/new-year/2.webp') center/cover;
}

.feature-bg-2 {
    background: 
        linear-gradient(135deg, rgba(244, 63, 94, 0.2) 0%, rgba(249, 115, 22, 0.2) 100%),
        url('/assets/images/new-year/1.webp') center/cover;
}

.feature-bg-3 {
    background: 
        linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%),
        url('/assets/images/new-year/3.webp') center/cover;
}

.feature-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.feature-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 8px;
}

.feature-content p {
    font-size: 14px;
    color: #9ca3af;
}

/* ===== SECTIONS COMMON ===== */
.section {
    padding: 50px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 20px;
    color: #9ca3af;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== CHARACTERS SECTION ===== */
.characters-section {
    background: rgba(2, 6, 23, 0.4);
}

.characters-container {
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 0 40px rgba(15, 23, 42, 0.6);
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
}

@media (min-width: 768px) {
    .character-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .character-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.character-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 500px;
    display: flex;
    flex-direction: column;
}

/* Увеличенное оранжевое свечение ВОКРУГ карточки */
.character-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 0 70px rgba(249, 115, 22, 0.25);
    border-color: rgba(249, 115, 22, 0.45);
}

/* Умеренное затемнение ВНУТРИ карточки при наведении */
.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    border-radius: 20px;
    z-index: 1;
    pointer-events: none;
    transition: background 0.3s ease;
}

.character-card:hover::before {
    background: rgba(0, 0, 0, 0.4);
}

/* Слабое затемнение фотографии при наведении */
.character-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    z-index: 3;
}

.character-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 2;
    pointer-events: none;
    transition: background 0.3s ease;
}

.character-card:hover .character-image::after {
    background: rgba(0, 0, 0, 0.25);
}

/* Затемнение всего текстового блока при наведении */
.character-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    z-index: 4;
    color: white;
    transition: opacity 0.3s ease;
}

.character-card:hover .character-text {
    opacity: 0.85; /* Легкое затемнение всего текста */
}

/* Черты характера - просто контейнер, без отдельных эффектов */
.character-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Черты характера - базовый стиль без hover эффектов */
.trait {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    /* Нет transition, нет hover эффектов */
}

/* Усиление градиента для текста при наведении */
.character-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 20%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.6) 60%,
        rgba(0, 0, 0, 0.8) 80%,
        rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
    pointer-events: none;
    transition: background 0.3s ease;
}

.character-card:hover .character-gradient {
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.2) 20%,
        rgba(0, 0, 0, 0.35) 40%,
        rgba(0, 0, 0, 0.6) 60%,
        rgba(0, 0, 0, 0.8) 80%,
        rgba(0, 0, 0, 0.95) 100%);
}

/* Кнопка НЕ должна затемняться */
.character-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
    padding: 20px;
}

.character-card:hover .character-overlay {
    opacity: 1;
}

.character-card:hover .btn-character-chat {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Дополнительное свечение границы (усиленное) */
.character-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 20px;
    background: linear-gradient(45deg, 
        rgba(249, 115, 22, 0) 0%,
        rgba(249, 115, 22, 0) 50%,
        rgba(249, 115, 22, 0) 100%);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.character-card:hover::after {
    opacity: 1;
    background: linear-gradient(45deg, 
        rgba(249, 115, 22, 0.3) 0%,
        rgba(249, 115, 22, 0.2) 50%,
        rgba(249, 115, 22, 0.3) 100%);
}

.character-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 10px;
}

.character-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    flex: 1;
}

.character-age {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.character-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    margin-bottom: 18px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Кнопка в фирменном стиле сайта */
.btn-character-chat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: linear-gradient(90deg, #ea580c 0%, #ef4444 100%);
    color: white;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.4);
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    min-width: 200px;
    gap: 10px;
    z-index: 6;
    position: relative;
}

.character-card:hover .btn-character-chat {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.btn-character-chat:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 0 26px rgba(251, 146, 60, 0.5);
    background: linear-gradient(90deg, #f97316 0%, #f87171 100%);
}

.btn-icon {
    font-size: 18px;
}

.btn-text {
    font-weight: 600;
    font-size: 15px;
}

/* Анимация появления карточек */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.character-card {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.character-card:nth-child(1) { animation-delay: 0.1s; }
.character-card:nth-child(2) { animation-delay: 0.2s; }
.character-card:nth-child(3) { animation-delay: 0.3s; }
.character-card:nth-child(4) { animation-delay: 0.4s; }
.character-card:nth-child(5) { animation-delay: 0.5s; }
.character-card:nth-child(6) { animation-delay: 0.6s; }

/* Адаптивность */
@media (max-width: 1200px) {
    .character-card {
        height: 480px;
    }
}

@media (max-width: 1024px) {
    .character-card {
        height: 460px;
    }
    
    .character-header h3 {
        font-size: 22px;
    }
    
    .character-age {
        font-size: 15px;
    }
    
    .character-description {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .characters-container {
        padding: 24px;
        border-radius: 24px;
    }
    
    .character-grid {
        gap: 24px;
    }
    
    .character-card {
        height: 440px;
    }
    
    .character-text {
        padding: 20px;
    }
    
    .character-header h3 {
        font-size: 20px;
    }
    
    .character-age {
        font-size: 14px;
    }
    
    .character-description {
        font-size: 14px;
        margin-bottom: 15px;
        -webkit-line-clamp: 2;
    }
    
    .trait {
        font-size: 12px;
        padding: 5px 10px;
        border-radius: 14px;
    }
    
    .btn-character-chat {
        padding: 14px 28px;
        font-size: 15px;
        min-width: 180px;
    }
}

@media (max-width: 640px) {
    .character-card {
        height: 420px;
    }
    
    .character-grid {
        gap: 20px;
    }
    
    .characters-container {
        padding: 20px;
    }
    
    .character-traits {
        gap: 6px;
    }
    
    .trait {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .btn-character-chat {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .character-card {
        height: 400px;
    }
    
    .character-text {
        padding: 18px;
    }
    
    .character-header h3 {
        font-size: 18px;
    }
    
    .character-age {
        font-size: 13px;
    }
    
    .character-description {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .trait {
        font-size: 10px;
        padding: 3px 7px;
        border-radius: 12px;
    }
    
    .btn-character-chat {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 140px;
    }
}

/* ===== COMPARISON SECTION ===== */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.comparison-card {
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: 24px;
    padding: 32px;
}

.comparison-card.primary {
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 0 25px rgba(234, 88, 12, 0.25);
}

.comparison-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #f3f4f6;
}

.comparison-card.primary h3 {
    color: #fdba74;
}

.comparison-list {
    list-style: none;
}

.comparison-item {
    padding: 12px 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comparison-item.positive {
    color: #d1d5db;
}

.comparison-item.negative {
    color: #9ca3af;
}

.comparison-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(249, 115, 22, 0.1);
}

.comparison-footer p {
    font-size: 18px;
    color: #9ca3af;
}

/* ===== BENEFITS SECTION ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

@media (min-width: 640px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit-card {
    position: relative;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.benefit-card:hover {
    transform: scale(1.05);
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 0 32px rgba(234, 88, 12, 0.28);
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(249, 115, 22, 0.15) 0%,
        rgba(239, 68, 68, 0.12) 50%,
        rgba(244, 63, 94, 0.15) 100%);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

.benefit-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.benefit-card:hover h3 {
    color: #fdba74;
}

.benefit-card p {
    font-size: 16px;
    color: #9ca3af;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Stats Section */
.stats-section {
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 40px;
    padding: 32px;
    margin: 48px 0;
    box-shadow: 0 0 32px rgba(8, 12, 24, 0.6);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.1);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 8px;
}

.stat-text {
    font-size: 18px;
    color: #9ca3af;
}

/* How It Works */
.how-it-works {
    margin-top: 64px;
}

.how-it-works h3 {
    font-size: 32px;
    font-weight: 700;
    color: #f3f4f6;
    text-align: center;
    margin-bottom: 48px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
    text-align: center;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step {
    transition: transform 0.3s ease;
}

.step:hover {
    transform: scale(1.1);
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ea580c 0%, #ef4444 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin: 0 auto 16px;
    box-shadow: 0 0 16px rgba(234, 88, 12, 0.35);
    transition: transform 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.1);
}

.step-icon {
    font-size: 48px;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.step:hover .step-icon {
    transform: scale(1.1);
}

.step h4 {
    font-size: 18px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.6;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    background: rgba(2, 6, 23, 0.4);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    position: relative;
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: 24px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card:hover {
    transform: scale(1.05);
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 0 32px rgba(234, 88, 12, 0.35);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.testimonial-header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(249, 115, 22, 0.3);
    box-shadow: 0 0 16px rgba(234, 88, 12, 0.3);
}

.testimonial-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 4px;
}

.testimonial-stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #fdba74;
    font-size: 14px;
}

.testimonial-card blockquote {
    font-style: italic;
    color: #9ca3af;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 0;
}

.testimonial-quote {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 32px;
    color: #fdba74;
    opacity: 0.4;
}

/* Trust Section */
.trust-section {
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 40px;
    padding: 32px;
    margin: 48px 0;
    box-shadow: 0 0 35px rgba(8, 12, 24, 0.6);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
    text-align: center;
}

@media (min-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.trust-item {
    transition: transform 0.3s ease;
}

.trust-item:hover {
    transform: scale(1.1);
}

.trust-icon {
    font-size: 48px;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.trust-item:hover .trust-icon {
    transform: scale(1.1);
}

.trust-item h4 {
    font-size: 18px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 8px;
}

.trust-item p {
    font-size: 14px;
    color: #9ca3af;
}

/* Stats Bottom */
.stats-bottom {
    margin-top: 64px;
}

.stats-bottom-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-bottom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stats-bottom-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-bottom-item {
    transition: transform 0.3s ease;
}

.stat-bottom-item:hover {
    transform: scale(1.1);
}

.stat-bottom-number {
    font-size: 36px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 8px;
}

.stat-bottom-item p {
    font-size: 14px;
    color: #9ca3af;
}

/* ===== PRICING SECTION ===== */
.pricing-container {
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(64px);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: 40px;
    padding: 32px;
    box-shadow: 0 10px 45px rgba(8, 12, 24, 0.65);
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(249, 115, 22, 0.1);
    color: rgba(254, 215, 170, 0.7);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.pricing-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.pricing-header p {
    font-size: 18px;
    color: #9ca3af;
}

.pricing-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 1024px) {
    .pricing-content {
        grid-template-columns: 1fr 1fr;
    }
}

.pricing-plans {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.plan {
    position: relative;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(30, 41, 59, 0.7);
    border-radius: 24px;
    padding: 20px;
    transition: all 0.3s ease;
}

.plan:hover {
    border-color: rgba(251, 146, 60, 0.4);
    background: rgba(15, 23, 42, 0.8);
}

.plan-best {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.1) 0%, rgba(249, 115, 22, 0.5) 100%);
    border: 1px solid rgba(248, 113, 113, 0.5);
    box-shadow: 0 0 28px rgba(234, 88, 12, 0.25);
}

.plan-label {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #f97316;
    color: #fed7aa;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

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

.plan-header > div:first-child {
    flex: 1;
}

.plan-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.plan-discount {
    font-size: 12px;
    font-weight: 600;
    color: #fed7aa;
}

.plan-price-old {
    position: relative;
}

.plan-price-old span {
    font-size: 16px;
    font-weight: 700;
    color: #6b7280;
    text-decoration: line-through;
}

.plan-price-old::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -15%;
    width: 130%;
    height: 1px;
    background: rgba(249, 115, 22, 0.7);
    transform: translateY(-50%) rotate(-27deg);
}

.plan-price {
    text-align: right;
}

.plan-price strong {
    font-size: 24px;
    font-weight: 700;
    color: white;
    display: block;
}

.plan-price span {
    font-size: 12px;
    color: #9ca3af;
}

.plan-total {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(30, 41, 59, 0.7);
    border-radius: 24px;
    padding: 20px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.plan-total-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.plan-total-info > div:first-child p {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.plan-total-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.plan-total-price {
    text-align: right;
}

.plan-total-price strong {
    font-size: 24px;
    font-weight: 700;
    color: white;
    display: block;
}

.plan-total-price p {
    font-size: 14px;
    color: #6b7280;
}

.btn-pricing {
    width: 100%;
    background: linear-gradient(90deg, #ea580c 0%, #ef4444 100%);
    color: white;
    padding: 16px;
    font-weight: 600;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.4);
}

.btn-pricing:hover {
    background: linear-gradient(90deg, #f97316 0%, #f87171 100%);
    box-shadow: 0 0 26px rgba(251, 146, 60, 0.5);
    transform: scale(1.05);
}

.pricing-features {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(30, 41, 59, 0.7);
    border-radius: 40px;
    padding: 24px;
}

.pricing-features h3 {
    font-size: 18px;
    font-weight: 600;
    color: rgba(254, 215, 170, 0.7);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 24px;
}

.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.feature-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(249, 115, 22, 0.15);
    color: #fed7aa;
    border-radius: 50%;
    font-size: 14px;
    flex-shrink: 0;
}

/* Pricing Extras */
.pricing-banner {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(248, 113, 113, 0.2) 50%, rgba(253, 164, 175, 0.2) 100%);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(249, 115, 22, 0.25);
    border-radius: 40px;
    padding: 32px;
    text-align: center;
    margin-bottom: 48px;
    box-shadow: 0 0 40px rgba(234, 88, 12, 0.25);
}

.banner-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.pricing-banner h3 {
    font-size: 28px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 16px;
}

.pricing-banner p {
    font-size: 18px;
    color: #d1d5db;
    max-width: 800px;
    margin: 0 auto;
}

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

.pricing-cta h3 {
    font-size: 32px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 16px;
}

.pricing-cta p {
    font-size: 20px;
    color: #9ca3af;
    margin-bottom: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    background: linear-gradient(90deg, #ea580c 0%, #ef4444 100%);
    color: white;
    padding: 20px 48px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 40px;
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.4);
}

.btn-cta:hover {
    background: linear-gradient(90deg, #f97316 0%, #f87171 100%);
    box-shadow: 0 0 26px rgba(251, 146, 60, 0.5);
    transform: scale(1.05);
}

.cta-note {
    font-size: 14px;
    color: #6b7280;
    margin-top: 16px;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    background: rgba(2, 6, 23, 0.4);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 0 15px rgba(234, 88, 12, 0.15);
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: #f3f4f6;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.faq-question:hover {
    color: #fdba74;
    background: rgba(249, 115, 22, 0.05);
}

.faq-question.active {
    color: #fdba74;
    background: rgba(249, 115, 22, 0.1);
}

.faq-icon {
    font-size: 24px;
    font-weight: 300;
    color: #fdba74;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
    color: #fb923c;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: rgba(15, 23, 42, 0.3);
}

.faq-answer.open {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 24px;
    margin: 0;
    font-size: 16px;
    color: #9ca3af;
    line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 768px) {
    .faq-question {
        padding: 20px;
        font-size: 16px;
    }
    
    .faq-answer p {
        padding: 0 20px 20px;
        font-size: 14px;
    }
    
    .faq-icon {
        font-size: 20px;
        margin-left: 12px;
    }
}

/* Анимация для открытия */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer.open p {
    animation: slideDown 0.3s ease;
}

/* ===== FINAL CTA ===== */
.final-cta .cta-container {
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(30, 41, 59, 0.6);
    border-radius: 40px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 0 40px rgba(15, 23, 42, 0.6);
}

.final-cta h2 {
    font-size: 36px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 20px;
    color: #9ca3af;
    margin-bottom: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-final {
    background: linear-gradient(90deg, #ea580c 0%, #ef4444 100%);
    color: white;
    padding: 20px 48px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 40px;
    box-shadow: 0 0 30px rgba(15, 118, 220, 0.42);
}

.btn-final:hover {
    transform: scale(1.05);
    box-shadow: 0 0 36px rgba(56, 189, 248, 0.45);
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 32px;
    color: #6b7280;
    font-size: 14px;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-info {
    flex: 1;
    min-width: 200px;
}

.footer-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 12px;
}

.footer-info p {
    font-size: 12px;
    color: #6b7280;
    max-width: 300px;
}

.footer-links {
    text-align: right;
}

.footer-links h3 {
    font-size: 18px;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 12px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fdba74;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 24px;
    }
    
    .footer-links {
        text-align: left;
        width: 100%;
    }
    
    .footer-info,
    .footer-links {
        max-width: 100%;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-header p {
        font-size: 16px;
    }
    
    .hero-content,
    .characters-container,
    .comparison-card,
    .benefit-card,
    .testimonial-card,
    .faq-item {
        padding: 20px;
    }
    
    .btn-hero {
        padding: 16px 32px;
        font-size: 16px;
    }
}
/* ===== 404 PAGE STYLES ===== */

.error-404-section {
    padding: 80px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.error-container {
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 0 45px rgba(8, 12, 24, 0.65);
}

.error-content {
    position: relative;
}

.error-code {
    font-size: 120px;
    font-weight: 800;
    color: #fdba74;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(249, 115, 22, 0.4);
    line-height: 1;
    animation: errorPulse 3s ease-in-out infinite;
}

@keyframes errorPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 30px rgba(249, 115, 22, 0.4);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 50px rgba(251, 146, 60, 0.6);
    }
}

.error-title {
    font-size: 36px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 20px;
}

.error-message {
    font-size: 18px;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.error-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.error-buttons .btn {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.error-buttons .btn:hover {
    transform: translateY(-3px);
}

.error-suggestions {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(249, 115, 22, 0.1);
}

.error-suggestions h3 {
    font-size: 20px;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 20px;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.suggestion-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(249, 115, 22, 0.1);
    border-radius: 16px;
    text-decoration: none;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.suggestion-item:hover {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateY(-3px);
    color: #f3f4f6;
}

.suggestion-icon {
    font-size: 32px;
    margin-bottom: 5px;
}

.suggestion-item span:last-child {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .error-404-section {
        padding: 60px 0;
    }
    
    .error-container {
        padding: 40px 20px;
    }
    
    .error-code {
        font-size: 80px;
    }
    
    .error-title {
        font-size: 28px;
    }
    
    .error-message {
        font-size: 16px;
    }
    
    .error-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .error-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .suggestions-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 60px;
    }
    
    .error-title {
        font-size: 24px;
    }
    
    .suggestions-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ОПТИМИЗАЦИЯ КЭШИРОВАНИЯ ===== */

/* Предзагрузка критических ресурсов */
.link-preload {
    display: none;
}

/* Оптимизация изображений */
img {
    content-visibility: auto;
}

/* Отложенная загрузка для не критичных изображений */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Оптимизация анимаций */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* ===== COINS SYSTEM ===== */
.coins-container {
    margin-bottom: 30px;
    animation: fadeInUp 0.4s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.coins-info {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(234, 88, 12, 0.15) 100%);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 20px;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.1);
}

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

.coin-icon {
    font-size: 32px;
    animation: coinPulse 2s infinite;
}

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

.coins-count {
    font-size: 32px;
    font-weight: 800;
    color: #f97316;
    text-shadow: 0 2px 10px rgba(249, 115, 22, 0.5);
    background: linear-gradient(45deg, #f97316, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.coins-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.coins-hint {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(15, 23, 42, 0.6);
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== CHAT CONTAINER ===== */
.chat-container {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

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

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(30, 41, 59, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-character-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-character-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid #f97316;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}

.chat-character-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.chat-character-name {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.chat-character-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.online {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.status-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #f97316;
}

.typing-dots {
    display: inline-flex;
    gap: 2px;
}

.typing-dots span {
    animation: typing 1.4s infinite;
    color: #f97316;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; }
    30% { opacity: 1; }
}

.btn-close-chat {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-close-chat:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* ===== CHAT MESSAGES ===== */
.chat-messages {
    padding: 25px;
    height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(2, 6, 23, 0.4);
}

.message {
    max-width: 80%;
    padding: 15px 20px;
    border-radius: 20px;
    position: relative;
    animation: messageAppear 0.3s ease;
}

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

.message.character {
    align-self: flex-start;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 5px;
    color: white;
}

.message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-bottom-right-radius: 5px;
    color: white;
}

.message-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
    text-align: right;
}

/* ===== CHAT INPUT ===== */
.chat-input-container {
    display: flex;
    gap: 15px;
    padding: 20px 25px;
    background: rgba(30, 41, 59, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input {
    flex: 1;
    padding: 15px 20px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.2);
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-send-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(90deg, #ea580c 0%, #ef4444 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.4);
    white-space: nowrap;
}

.btn-send-message:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 26px rgba(251, 146, 60, 0.5);
    background: linear-gradient(90deg, #f97316 0%, #f87171 100%);
}

.btn-send-message:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(90deg, #9a3412 0%, #991b1b 100%);
}

.coin-cost {
    font-size: 14px;
    opacity: 0.9;
}

/* ===== TELEGRAM INVITE ===== */
.telegram-invite {
    animation: fadeInUp 0.4s ease;
}

.telegram-content {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
}

.telegram-text {
    font-size: 18px;
    color: white;
    margin-bottom: 2px;
    font-weight: 500;
}

.btn-telegram {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 35px;
    background: linear-gradient(90deg, #0088cc 0%, #00a8ff 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 136, 204, 0.4);
}

.btn-telegram:hover {
    transform: scale(1.05);
    box-shadow: 0 0 26px rgba(0, 170, 255, 0.5);
    background: linear-gradient(90deg, #00a8ff 0%, #2bc4ff 100%);
}

.telegram-icon {
    font-size: 20px;
}

/* ===== SELFIE MESSAGE ===== */
.selfie-container {
    margin-top: 10px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(249, 115, 22, 0.3);
}

.selfie-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.selfie-caption {
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .chat-messages {
        height: 350px;
        padding: 20px;
    }
    
    .chat-header {
        padding: 15px 20px;
    }
    
    .chat-input-container {
        padding: 15px 20px;
    }
    
    .btn-send-message {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .coins-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .chat-messages {
        height: 300px;
    }
    
    .message {
        max-width: 90%;
    }
    
    .chat-character-avatar {
        width: 40px;
        height: 40px;
    }
    
    .chat-character-name {
        font-size: 18px;
    }
}
/* ===== TELEGRAM INVITE INLINE ===== */
.telegram-invite-inline {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 15px;
    margin: 20px 25px;
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

.telegram-content-inline {
    padding: 25px;
    text-align: center;
}

.telegram-text-inline {
    font-size: 16px;
    color: white;
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.4;
}

.btn-telegram-inline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 30px;
    background: linear-gradient(90deg, #0088cc 0%, #00a8ff 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 136, 204, 0.4);
}

.btn-telegram-inline:hover {
    transform: scale(1.05);
    box-shadow: 0 0 26px rgba(0, 170, 255, 0.5);
    background: linear-gradient(90deg, #00a8ff 0%, #2bc4ff 100%);
}

/* Анимация появления кнопки */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 20px rgba(0, 136, 204, 0.4); }
    50% { box-shadow: 0 0 30px rgba(0, 170, 255, 0.6); }
    100% { box-shadow: 0 0 20px rgba(0, 136, 204, 0.4); }
}

.btn-telegram-inline {
    animation: pulseGlow 2s infinite;
}

/* Скрыть кнопку отправки когда показано приглашение */
.telegram-invite-inline + .chat-input-container {
    opacity: 0.5;
    pointer-events: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .telegram-invite-inline {
        margin: 15px 20px;
    }
    
    .telegram-content-inline {
        padding: 20px;
    }
    
    .telegram-text-inline {
        font-size: 15px;
    }
    
    .btn-telegram-inline {
        padding: 12px 25px;
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .telegram-invite-inline {
        margin: 10px 15px;
    }
    
    .telegram-content-inline {
        padding: 15px;
    }
    
    .telegram-text-inline {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .btn-telegram-inline {
        padding: 10px 20px;
        font-size: 14px;
    }
}
/* ===== SELFIE STYLES ===== */
.selfie-container {
    margin-top: 10px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(249, 115, 22, 0.3);
    position: relative;
}

.selfie-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.selfie-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.8);
    color: white;
    font-size: 14px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.selfie-caption {
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.4);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* ===== CHAT INPUT ===== */
.chat-input-container {
    display: flex;
    flex-direction: row;
    gap: 15px;
    padding: 20px 25px;
    background: rgba(30, 41, 59, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.chat-input-wrapper {
    flex: 1;
}

.chat-button-wrapper {
    display: flex;
    align-items: center;
}

.chat-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.chat-input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.2);
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-send-message {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: linear-gradient(90deg, #ea580c 0%, #ef4444 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.4);
    white-space: nowrap;
    height: 52px;
    box-sizing: border-box;
}

.btn-send-message:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 26px rgba(251, 146, 60, 0.5);
    background: linear-gradient(90deg, #f97316 0%, #f87171 100%);
}

.btn-send-message:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(90deg, #9a3412 0%, #991b1b 100%);
}

.coin-cost {
    font-size: 14px;
    opacity: 0.9;
}

/* ===== MOBILE ADAPTIVE ===== */
@media (max-width: 768px) {
    .chat-input-container {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }
    
    .chat-input-wrapper {
        width: 100%;
    }
    
    .chat-button-wrapper {
        width: 100%;
    }
    
    .btn-send-message {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .send-text {
        flex: 1;
        text-align: center;
    }
    
    .coin-cost {
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .chat-input-container {
        padding: 12px;
        gap: 10px;
    }
    
    .chat-input {
        padding: 14px 18px;
        font-size: 15px;
    }
    
    .btn-send-message {
        padding: 13px 18px;
        font-size: 14px;
        height: 48px;
    }
    
    .coin-cost {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .chat-input-container {
        padding: 10px;
    }
    
    .chat-input {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .btn-send-message {
        padding: 12px 16px;
        font-size: 13px;
        height: 46px;
    }
    
    .send-icon {
        font-size: 14px;
    }
    
    .coin-cost {
        font-size: 11px;
    }
}

@media (max-width: 375px) {
    .chat-input {
        padding: 11px 14px;
        font-size: 13px;
    }
    
    .btn-send-message {
        padding: 11px 14px;
        font-size: 12px;
        height: 44px;
        gap: 6px;
    }
    
    .send-text {
        font-size: 12px;
    }
    
    .coin-cost {
        font-size: 10px;
    }
}

@media (max-width: 320px) {
    .chat-input-container {
        padding: 8px;
    }
    
    .chat-input {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .btn-send-message {
        padding: 10px 12px;
        font-size: 11px;
        height: 42px;
    }
    
    .send-text {
        font-size: 11px;
    }
    
    .coin-cost {
        display: none;
    }
}

/* ===== CHAT MESSAGES ADAPTIVE ===== */
@media (max-width: 768px) {
    .chat-messages {
        height: 350px;
        padding: 15px;
    }
    
    .chat-header {
        padding: 15px;
    }
    
    .coins-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px 20px;
    }
    
    .telegram-invite-inline {
        margin: 15px;
    }
    
    .telegram-content-inline {
        padding: 20px;
    }
    
    .telegram-text-inline {
        font-size: 15px;
    }
    
    .btn-telegram-inline {
        padding: 12px 25px;
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .chat-messages {
        height: 300px;
        padding: 12px;
    }
    
    .message {
        max-width: 90%;
        padding: 12px 16px;
    }
    
    .chat-character-avatar {
        width: 40px;
        height: 40px;
    }
    
    .chat-character-name {
        font-size: 18px;
    }
    
    .telegram-invite-inline {
        margin: 12px;
    }
    
    .telegram-content-inline {
        padding: 16px;
    }
    
    .telegram-text-inline {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .btn-telegram-inline {
        padding: 11px 22px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .chat-messages {
        height: 280px;
        padding: 10px;
    }
    
    .message {
        max-width: 95%;
        padding: 10px 14px;
    }
    
    .message-text {
        font-size: 14px;
    }
    
    .message-time {
        font-size: 11px;
    }
    
    .chat-character-name {
        font-size: 16px;
    }
    
    .status-text, .typing-indicator {
        font-size: 12px;
    }
    
    .telegram-invite-inline {
        margin: 10px;
    }
    
    .telegram-content-inline {
        padding: 14px;
    }
    
    .telegram-text-inline {
        font-size: 13px;
    }
    
    .btn-telegram-inline {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* ===== SELFIE ADAPTIVE ===== */
@media (max-width: 768px) {
    .selfie-image {
        height: 220px;
    }
    
    .selfie-caption {
        padding: 10px;
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .selfie-image {
        height: 200px;
    }
    
    .selfie-caption {
        padding: 8px;
        font-size: 12px;
    }
    
    .selfie-loading {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .selfie-image {
        height: 180px;
    }
    
    .selfie-caption {
        font-size: 11px;
        padding: 6px;
    }
    
    .selfie-loading {
        font-size: 12px;
    }
}

/* ===== COINS ADAPTIVE ===== */
@media (max-width: 640px) {
    .coins-display {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .coin-icon {
        font-size: 28px;
    }
    
    .coins-count {
        font-size: 28px;
    }
    
    .coins-text {
        font-size: 16px;
        text-align: center;
    }
    
    .coins-hint {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .coin-icon {
        font-size: 24px;
    }
    
    .coins-count {
        font-size: 24px;
    }
    
    .coins-text {
        font-size: 14px;
    }
    
    .coins-hint {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* ===== CHARACTER CARDS MOBILE ===== */
@media (max-width: 640px) {
    .character-card {
        height: 380px;
    }
    
    .character-text {
        padding: 15px;
    }
    
    .character-header h3 {
        font-size: 18px;
    }
    
    .character-age {
        font-size: 14px;
    }
    
    .character-description {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .trait {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .btn-character-chat {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .character-card {
        height: 350px;
    }
    
    .character-header h3 {
        font-size: 16px;
    }
    
    .character-age {
        font-size: 13px;
    }
    
    .character-description {
        font-size: 12px;
    }
    
    .trait {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .btn-character-chat {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 120px;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .chat-messages {
        height: 250px;
    }
    
    .selfie-image {
        height: 150px;
    }
    
    .character-card {
        height: 300px;
    }
}

/* Ускорение отрисовки критических элементов */
.hero-content {
    will-change: transform;
    contain: layout style paint;
}

.hero-features {
    content-visibility: auto;
    contain-intrinsic-size: 600px;
}

/* Оптимизация для Core Web Vitals */
@media (prefers-reduced-motion: reduce) {
    .hero-feature {
        transition: none;
    }
}

/* Приоритизация первого видимого контента */
.hero-feature:nth-child(1) {
    content-visibility: visible;
}

.hero-feature:nth-child(2),
.hero-feature:nth-child(3) {
    content-visivity: auto;
}

/* Оптимизации для избежания forced reflow */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: max-height;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Максимальная высота, реальная устанавливается через JS */
}

/* Оптимизация анимаций */
.character-card {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Предотвращение layout thrashing */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

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

/* Оптимизация производительности */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Минимизация layout recalculations */
.benefit-card,
.testimonial-card,
.comparison-card,
.trust-item {
    contain: layout style paint;
}