/* Phoenix Game — Fantasy Styles */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Roboto:wght@300;400;700&display=swap');

@font-face {
    font-family: 'LogoFont';
    src: url('../fonts/Logo_font_regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #c9a227;
    --primary-dark: #8b7320;
    --secondary: #1a1a1a;
    --accent: #8b0000;
    --accent-light: #a52a2a;
    --text: #e8e8e8;
    --text-muted: #a0a0a0;
    --bg: #0a0a0a;
    --bg-section: #111111;
    --card-bg: #1a1a1a;
    --border: #333333;
    --font-display: 'Cinzel', serif;
    --font-brand: 'LogoFont', 'Cinzel', serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 3rem;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0) 100%);
    z-index: 1000;
    transition: background 0.3s;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
}

.nav-links a:hover::after {
    width: 100%;
}

.language-selector {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: flex-end;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.lang-btn {
    background: transparent;
    color: var(--text-muted);
    border: 2px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn:hover {
    border-color: var(--primary);
    color: var(--text);
}

.lang-btn.active {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.hero-bg-inner {
    width: 100%;
    height: 100%;
    will-change: transform;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: kenBurns 28s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes kenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-embers {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-embers span {
    position: absolute;
    bottom: -10px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffd080 0%, #c9a227 40%, transparent 70%);
    box-shadow: 0 0 6px 2px rgba(255, 160, 50, 0.6);
    animation: emberRise linear infinite;
    opacity: 0;
    will-change: transform, opacity;
}

.hero-embers span:nth-child(1)  { left: 8%;  animation-duration: 7s;  animation-delay: 0s;   width: 2px; height: 2px; }
.hero-embers span:nth-child(2)  { left: 18%; animation-duration: 9s;  animation-delay: 1.2s; width: 4px; height: 4px; }
.hero-embers span:nth-child(3)  { left: 28%; animation-duration: 6s;  animation-delay: 0.5s; }
.hero-embers span:nth-child(4)  { left: 38%; animation-duration: 11s; animation-delay: 2s;   width: 2px; height: 2px; }
.hero-embers span:nth-child(5)  { left: 48%; animation-duration: 8s;  animation-delay: 0.8s; width: 5px; height: 5px; }
.hero-embers span:nth-child(6)  { left: 58%; animation-duration: 10s; animation-delay: 3s;  }
.hero-embers span:nth-child(7)  { left: 68%; animation-duration: 7s;  animation-delay: 1.5s; width: 2px; height: 2px; }
.hero-embers span:nth-child(8)  { left: 78%; animation-duration: 9s;  animation-delay: 0.3s; width: 4px; height: 4px; }
.hero-embers span:nth-child(9)  { left: 88%; animation-duration: 12s; animation-delay: 4s;  width: 2px; height: 2px; }
.hero-embers span:nth-child(10) { left: 95%; animation-duration: 6s;  animation-delay: 2.5s; }

@keyframes emberRise {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    10%  { opacity: 0.9; }
    90%  { opacity: 0.4; }
    100% { transform: translateY(-105vh) translateX(20px); opacity: 0; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(180deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.5) 50%, rgba(10,10,10,0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    margin-top: 60px;
}

.hero-title {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    max-width: 450px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(201, 162, 39, 0.3));
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 20px rgba(201, 162, 39, 0.3)); }
    to   { filter: drop-shadow(0 0 40px rgba(201, 162, 39, 0.6)); }
}

.hero-subtitle {
    font-family: var(--font-brand);
    font-size: 1.05rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 1.25rem;
    text-shadow: 0 0 20px rgba(201, 162, 39, 0.4);
    animation: subtitleIn 1s ease 0.4s both;
}

@keyframes subtitleIn {
    from { opacity: 0; letter-spacing: 12px; }
    to   { opacity: 1; letter-spacing: 5px; }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 70% { left: -75%; }
    100% { left: 125%; }
}

.btn-download::after {
    animation-duration: 5s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--text);
    box-shadow: 0 4px 15px rgba(139,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 162, 39, 0.4);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,20%,50%,80%,100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
}

/* ===== FEATURES (с собственным фоном) ===== */
.features {
    position: relative;
    overflow: visible;
    z-index: 2;
    background: transparent; /* фон теперь через .features-bg */
    padding-bottom: 7rem;
}

.features::after {
    content: '';
    position: absolute;
    bottom: -100px; /* сдвиг вниз, чтобы перекрыть cards */
    left: 0;
    width: 100%;
    height: 120px; /* высота декоративного края, подбирается под изображение */
    background: url('../img/bottom-edge.png') no-repeat center top;
    background-size: contain;
    pointer-events: none;
    z-index: 1; /* под контентом features (z-index:2), но выше фона cards (z-index:0) */
}

.features-bg {
    position: absolute;
	margin-top: 50px;
    bottom: -50px;           /* заступ на предыдущую секцию (cards) */
    left: 0;
    width: 100%;
    height: calc(100% + 50px);
    z-index: 1;
    pointer-events: none;  /* чтобы фон не перехватывал клики */
}

.features-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Контент features поверх фона */
.features-container {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.features-left .features-title {
    font-size: 2.4rem;
    margin: 0 0 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.features-left .features-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0 0 28px;
    line-height: 1.5;
}

.video-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.more-videos {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}
.more-videos:hover { color: var(--text); }

.features-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cards-fan {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: transform 0.2s, border-color 0.2s;
}
.feature-item:hover {
    transform: translateX(-4px);
    border-color: #58a6ff;
}

.feature-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    line-height: 1;
}

.feature-text h3 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 600;
}
.feature-text p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.features-cta {
    display: inline-block;
    padding: 14px 32px;
    background: #e6edf3;
    color: #0d1117;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    transition: background 0.2s;
}
.features-cta:hover { background: #ffffff; }

.features-note {
    margin: 14px 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 960px) {
    .features-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .features-center { order: -1; }
}

/* ==================== SECTIONS GENERAL ==================== */
section {
    padding: 6rem 2rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-brand);
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: 5px;
}

.section-line {
    position: relative;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 0 auto;
}

.section-line::before,
.section-line::after {
    content: '◆';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 0.55rem;
    text-shadow: 0 0 8px rgba(201, 162, 39, 0.6);
}
.section-line::before { left: -18px; }
.section-line::after { right: -18px; }

/* ==================== CARDS SECTION ==================== */
.cards-section {
    position: relative;
    overflow: visible;
    background: transparent;
    margin-top: -50px;
    padding-top: calc(6rem + 50px);
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.section-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cards-section > .section-header,
.cards-section > .cards-showcase,
.cards-section > .cards-note {
    position: relative;
    z-index: 2;
}

.cards-showcase {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.card-item {
    perspective: 1000px;
}

.card-frame {
    width: 180px;
    height: 260px;
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 3px solid var(--primary);
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(201,162,39,0.1), 0 0 15px rgba(201,162,39,0.15);
    cursor: pointer;
    animation: cardGlow 4s ease-in-out infinite alternate;
    position: relative;
    will-change: transform, box-shadow;
}

.card-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201,162,39,0.12), transparent);
    transform: skewX(-15deg);
    animation: cardShimmer 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cardGlow {
    from { box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(201,162,39,0.1), 0 0 12px rgba(201,162,39,0.15); }
    to   { box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(201,162,39,0.15), 0 0 28px rgba(201,162,39,0.35); }
}

@keyframes cardShimmer {
    0%, 75% { left: -100%; }
    100% { left: 150%; }
}

.card-art {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
    border-radius: 12px;
}

.card-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s, filter 0.3s;
}

.card-frame:hover .card-art img {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 16px rgba(201, 162, 39, 0.3));
}

.card-name {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--text);
    text-align: center;
    letter-spacing: 1px;
    position: relative;
    margin-top: 20px;
    z-index: 1;
}

.card-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.cards-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
}

/* ==================== MEDIA SECTION ==================== */
.media-section {
    position: relative;
    overflow: visible;
    background: transparent;
    padding: 6rem 2rem;
    margin-top: -50px;
    z-index: 1;
}

.media-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.media-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-section .section-header,
.media-section .media-showcase {
    position: relative;
    z-index: 2;
}

.media-showcase {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
}

.media-image {
    flex: 0 0 40%;
    max-width: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.media-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.media-image img:hover {
    transform: scale(1.03);
}

.media-text {
    flex: 1 1 60%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.media-text h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--primary);
    letter-spacing: 2px;
    margin: 0;
}

.media-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.media-showcase.reverse {
    flex-direction: row-reverse;
}

/* ==================== DOWNLOAD SECTION ==================== */
.download-section {
    background: var(--bg);
    text-align: center;
}

.download-platforms {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.platform-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    min-width: 220px;
    transition: all 0.3s;
}

.platform-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.platform-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.platform-icon img {
    width: 64px;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.platform-card:hover .platform-icon img {
    transform: scale(1.05);
}

.platform-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.platform-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.btn-download {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--secondary);
    width: 100%;
    font-weight: bold;
}

.btn-download:hover:not(:disabled) {
    box-shadow: 0 8px 25px rgba(201, 162, 39, 0.5);
}

.btn-download:disabled {
    background: var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-download:disabled::after {
    display: none;
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-icon {
    display: inline-block;
    width: 128px;          /* желаемый размер отображения */
    height: 128px;
    border: none;         /* убираем рамку */
    background: none;     /* убираем фон */
    border-radius: 0;     /* если хотите скругления – задайте, например, 50% для круга */
    transition: transform 0.3s ease;
    line-height: 0;       /* убираем лишний отступ */
}

.social-img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* сохраняем пропорции */
    display: block;
    transition: transform 0.3s ease;
}

.social-icon:hover .social-img {
    transform: scale(1.1); /* небольшое увеличение при наведении */
}

.footer-copyright {
	margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==================== SCROLL ANIMATIONS ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.features-grid .feature-card.fade-in:nth-child(1) { transition-delay: 0.05s; }
.features-grid .feature-card.fade-in:nth-child(2) { transition-delay: 0.15s; }
.features-grid .feature-card.fade-in:nth-child(3) { transition-delay: 0.25s; }
.features-grid .feature-card.fade-in:nth-child(4) { transition-delay: 0.35s; }

.cards-showcase .card-item.fade-in:nth-child(1) { transition-delay: 0.05s; }
.cards-showcase .card-item.fade-in:nth-child(2) { transition-delay: 0.12s; }
.cards-showcase .card-item.fade-in:nth-child(3) { transition-delay: 0.19s; }
.cards-showcase .card-item.fade-in:nth-child(4) { transition-delay: 0.26s; }
.cards-showcase .card-item.fade-in:nth-child(5) { transition-delay: 0.33s; }

.download-platforms .platform-card.fade-in:nth-child(1) { transition-delay: 0.05s; }
.download-platforms .platform-card.fade-in:nth-child(2) { transition-delay: 0.15s; }
.download-platforms .platform-card.fade-in:nth-child(3) { transition-delay: 0.25s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fade-in { opacity: 1; transform: none; transition: none; }
    .hero-logo, .hero-scroll, .hero-bg-image, .card-frame { animation: none; }
    .hero-embers { display: none; }
    .hero-subtitle { animation: none; opacity: 1; letter-spacing: 5px; }
    .btn::after, .card-frame::after { display: none; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .header { padding: 1rem 2rem; }
    .nav-links { gap: 1.5rem; }
    .hero-logo { max-width: 360px; }
    section { padding: 5rem 1.5rem; }
    .section-header h2 { font-size: 2rem; letter-spacing: 3px; }
    .media-showcase { padding: 1.5rem; gap: 2rem; margin: 1.5rem auto; }
    .media-image { flex: 0 0 45%; max-width: 350px; }
    .media-text h3 { font-size: 1.5rem; }
    .platform-icon img { width: 56px; }
}

@media (max-width: 768px) {
    body.nav-open { overflow: hidden; }
    .header { padding: 0.75rem 1rem; }
    .nav { flex-wrap: wrap; gap: 0; }
    .logo-img { height: 40px; }
    .nav-toggle { display: flex; margin-left: auto; }
    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 1.5rem;
        padding: 1.25rem 0 0.5rem;
        border-top: 1px solid var(--border);
        margin-top: 0.75rem;
    }
    .nav-menu.open { display: flex; }
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        width: 100%;
    }
    .nav-links a { font-size: 1rem; letter-spacing: 3px; }
    .language-selector { justify-content: center; width: 100%; }
    .header.scrolled { background: rgba(10,10,10,0.98); }

    .hero-content { padding: 1.5rem 1rem; margin-top: 80px; }
    .hero-logo { max-width: min(320px, 85vw); }
    .hero-description { font-size: 1rem; margin-bottom: 1.5rem; }
    .hero-subtitle { font-size: 0.85rem; letter-spacing: 3px; }
    .hero-stats { gap: 1.5rem; padding: 1rem; margin-bottom: 2rem; }
    .stat-number { font-size: 1.5rem; }
    .stat-suffix { font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; align-items: center; gap: 1rem; }
    .hero-buttons .btn { width: 100%; max-width: 280px; text-align: center; }
    .hero-scroll { bottom: 1rem; font-size: 0.7rem; }

    section { padding: 4rem 1rem; }
    .section-header { margin-bottom: 2.5rem; }
    .section-header h2 { font-size: 1.75rem; letter-spacing: 2px; }

    .features-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .feature-card { padding: 1.5rem; }

    .cards-showcase { gap: 1.25rem; }
    .card-frame { width: 150px; height: 220px; }
    .card-art { font-size: 3rem; }

    .media-showcase,
    .media-showcase.reverse {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
        margin: 1.5rem auto;
    }
    .media-image {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
    }
    .media-image img { max-height: 300px; object-fit: cover; }
    .media-text { width: 100%; }
    .media-text h3 { font-size: 1.4rem; }
    .media-text p { font-size: 0.95rem; }

    /* Сбрасываем отрицательные отступы на мобильных */
    .features {
        padding-bottom: 6rem;
    }
    .features-bg {
        top: 0;
        height: 100%;
    }
    .cards-section {
        margin-top: 0;
        padding-top: 6rem;
    }
    .media-section {
        margin-top: 0;
    }

    .download-platforms { flex-direction: column; align-items: center; gap: 1.25rem; }
    .platform-card { width: 100%; max-width: 320px; padding: 2rem 1.5rem; }
    .platform-icon img { width: 48px; }
    .download-info { flex-direction: column; gap: 0.5rem; }

    .footer { padding: 2.5rem 1rem; }
    .footer-links { flex-direction: column; gap: 1rem; }
}

@media (max-width: 480px) {
    .lang-btn { padding: 0.4rem 0.75rem; font-size: 0.75rem; }
    .hero-logo { max-width: min(280px, 90vw); }
    .section-header h2 { font-size: 1.5rem; }
    .btn { padding: 0.875rem 1.75rem; font-size: 0.8rem; }
    .card-frame { width: 130px; height: 190px; padding: 0; }
    .card-name { font-size: 0.7rem; }
    .card-stats { font-size: 1rem; }
    .footer-logo img { height: 48px; }
    .media-showcase { padding: 1rem; border-radius: 12px; margin: 1rem auto; }
    .media-image img { max-height: 220px; }
    .media-text h3 { font-size: 1.2rem; }
    .platform-icon img { width: 40px; }
}