/* ===== Переменные и сброс ===== */
:root {
    --gold: #d4af37;
    --gold-light: #f0d98a;
    --gold-deep: #b8901f;
    --sand: #e8d8b0;
    --sand-light: #f3e9cf;
    --lapis: #1a3a5c;
    --lapis-deep: #0f2438;
    --ink: #2c1810;
    --ink-soft: #5a4329;
    --papyrus: #f6efdd;
    --shadow: rgba(44, 24, 16, 0.12);
    --shadow-lg: rgba(15, 36, 56, 0.25);
    --serif: 'Cormorant Garamond', Georgia, serif;
    --display: 'Cinzel', Georgia, serif;
    --maxw: 1200px;
    --radius: 14px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--papyrus);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 110px 0;
    position: relative;
}

.section-alt {
    background:
        linear-gradient(180deg, rgba(232, 216, 176, 0.25), rgba(232, 216, 176, 0.45)),
        var(--papyrus);
}

/* ===== Прогресс-бар прокрутки ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    z-index: 1000;
    transition: width 0.1s linear;
}

/* ===== Навигация ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
    padding: 18px 0;
}

.navbar.scrolled {
    background: rgba(15, 36, 56, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px var(--shadow-lg);
    padding: 12px 0;
}

.nav-container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--gold-light);
    font-family: var(--display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 3px;
}

.logo-icon {
    font-size: 26px;
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 38px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--sand-light);
    font-family: var(--display);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s var(--ease);
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--gold-light);
    transition: 0.3s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

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

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(240, 217, 138, 0.35);
    border-radius: 20px;
    padding: 6px 14px;
    font-family: var(--display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--sand-light);
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
}

.lang-toggle:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.16);
}

.lang-opt {
    background: none;
    border: none;
    color: rgba(243, 233, 207, 0.5);
    cursor: pointer;
    font: inherit;
    padding: 0;
    transition: color 0.3s;
}

.lang-opt.active {
    color: var(--gold);
}

.lang-sep {
    color: rgba(243, 233, 207, 0.4);
}

/* ===== Герой-секция ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--sand-light);
    background:
        radial-gradient(ellipse at 50% 30%, rgba(212, 175, 55, 0.18), transparent 60%),
        linear-gradient(180deg, var(--lapis-deep) 0%, #2a1505 70%, #1a0d03 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(240, 217, 138, 0.8), transparent),
        radial-gradient(1px 1px at 60% 20%, rgba(240, 217, 138, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 80% 60%, rgba(240, 217, 138, 0.5), transparent),
        radial-gradient(1px 1px at 35% 70%, rgba(240, 217, 138, 0.7), transparent),
        radial-gradient(2px 2px at 75% 15%, rgba(240, 217, 138, 0.5), transparent),
        radial-gradient(1px 1px at 10% 50%, rgba(240, 217, 138, 0.6), transparent);
    background-size: 100% 100%;
    opacity: 0.6;
    animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle {
    from { opacity: 0.4; }
    to { opacity: 0.7; }
}

/* Силуэты пирамид на фоне героя */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background:
        linear-gradient(135deg, transparent 49.5%, #1a0d03 50%) calc(50% - 180px) 100% / 360px 100% no-repeat,
        linear-gradient(225deg, transparent 49.5%, #2a1505 50%) calc(50% + 180px) 100% / 360px 100% no-repeat,
        linear-gradient(135deg, transparent 49.5%, #0d0702 50%) 15% 100% / 240px 80% no-repeat,
        linear-gradient(225deg, transparent 49.5%, #160a03 50%) 85% 100% / 240px 80% no-repeat,
        linear-gradient(0deg, #0d0702, transparent);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(15, 36, 56, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 0 24px;
}

.hero-eyebrow {
    font-family: var(--display);
    font-size: 18px;
    letter-spacing: 6px;
    color: var(--gold);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(48px, 9vw, 104px);
    line-height: 1;
    letter-spacing: 4px;
    margin-bottom: 28px;
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 40px rgba(212, 175, 55, 0.2);
}

.hero-subtitle {
    font-size: clamp(19px, 2.4vw, 24px);
    line-height: 1.6;
    color: rgba(243, 233, 207, 0.88);
    margin-bottom: 42px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 38px;
    font-family: var(--display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.35s var(--ease);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: var(--lapis-deep);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(212, 175, 55, 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--gold-light);
    border-color: rgba(240, 217, 138, 0.5);
}

.btn-ghost:hover {
    background: rgba(240, 217, 138, 0.12);
    border-color: var(--gold);
    color: var(--gold);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 44px;
    border: 2px solid rgba(240, 217, 138, 0.4);
    border-radius: 14px;
    z-index: 2;
}

.hero-scroll span {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--gold-light);
    border-radius: 2px;
    animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
    0% { opacity: 0; top: 8px; }
    40% { opacity: 1; }
    100% { opacity: 0; top: 26px; }
}

/* ===== Введение ===== */
.intro {
    padding: 90px 0 30px;
}

.intro-lead {
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.55;
    text-align: center;
    color: var(--ink-soft);
    font-weight: 300;
    font-style: italic;
    max-width: 880px;
    margin: 0 auto;
}

.intro-lead strong {
    color: var(--gold-deep);
    font-weight: 600;
    font-style: normal;
}

/* ===== Заголовки секций ===== */
.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 70px;
}

.section-kicker {
    display: inline-block;
    font-family: var(--display);
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 14px;
    padding: 6px 18px;
    border: 1px solid var(--gold);
    border-radius: 2px;
}

.section-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(34px, 5vw, 52px);
    color: var(--ink);
    letter-spacing: 2px;
    margin-bottom: 18px;
    line-height: 1.15;
}

.section-desc {
    font-size: 20px;
    color: var(--ink-soft);
    font-weight: 300;
}

/* ===== Временная шкала ===== */
.timeline {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, var(--gold), var(--gold-deep), transparent);
}

.timeline-item {
    position: relative;
    padding-bottom: 48px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--gold);
    border: 3px solid var(--papyrus);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--gold-deep);
}

.timeline-content {
    background: #fff;
    padding: 26px 32px;
    border-radius: var(--radius);
    box-shadow: 0 6px 24px var(--shadow);
    border-left: 4px solid var(--gold);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.timeline-content:hover {
    transform: translateX(6px);
    box-shadow: 0 12px 36px var(--shadow-lg);
}

.timeline-date {
    display: inline-block;
    font-family: var(--display);
    font-size: 13px;
    letter-spacing: 1.5px;
    color: var(--gold-deep);
    background: var(--sand-light);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-content h3 {
    font-family: var(--display);
    font-size: 24px;
    color: var(--lapis-deep);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.timeline-content p {
    color: var(--ink-soft);
    font-size: 18px;
}

/* ===== Карточки фараонов ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    padding: 40px 32px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 6px 24px var(--shadow);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px var(--shadow-lg);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-glyph {
    font-size: 52px;
    color: var(--gold);
    margin-bottom: 18px;
    line-height: 1;
}

.card-title {
    font-family: var(--display);
    font-size: 26px;
    color: var(--lapis-deep);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.card-reign {
    font-family: var(--display);
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--gold-deep);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.card-text {
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.6;
}

/* ===== Памятники: feature-list ===== */
.feature-list {
    display: grid;
    gap: 26px;
    max-width: 960px;
    margin: 0 auto;
}

.feature {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 28px;
    align-items: start;
    background: #fff;
    padding: 34px 38px;
    border-radius: var(--radius);
    box-shadow: 0 6px 24px var(--shadow);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    border: 1px solid rgba(212, 175, 55, 0.12);
}

.feature:hover {
    transform: translateX(10px);
    box-shadow: 0 16px 44px var(--shadow-lg);
}

.feature-number {
    font-family: var(--display);
    font-size: 64px;
    font-weight: 700;
    color: var(--gold);
    line-height: 0.9;
    opacity: 0.55;
}

.feature-title {
    font-family: var(--display);
    font-size: 26px;
    color: var(--lapis-deep);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.feature-text {
    color: var(--ink-soft);
    font-size: 18px;
    margin-bottom: 14px;
}

.feature-tag {
    display: inline-block;
    font-family: var(--display);
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--gold-deep);
    background: var(--sand-light);
    padding: 5px 14px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ===== Боги ===== */
.gods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
}

.god-card {
    background: linear-gradient(160deg, #fff, var(--sand-light));
    padding: 38px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 6px 24px var(--shadow);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
}

.god-card::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    pointer-events: none;
}

.god-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 46px var(--shadow-lg);
}

.god-symbol {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: var(--gold);
    background: radial-gradient(circle, var(--lapis-deep), var(--lapis));
    border-radius: 50%;
    border: 2px solid var(--gold);
    box-shadow: 0 4px 18px rgba(15, 36, 56, 0.3);
}

.god-name {
    font-family: var(--display);
    font-size: 25px;
    color: var(--lapis-deep);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.god-role {
    font-family: var(--display);
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--gold-deep);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.god-desc {
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.55;
}

/* ===== Культура ===== */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.culture-block {
    padding: 36px 32px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 6px 24px var(--shadow);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    border-top: 4px solid var(--gold);
}

.culture-block:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 44px var(--shadow-lg);
}

.culture-icon {
    font-size: 42px;
    color: var(--lapis);
    margin-bottom: 16px;
}

.culture-block h3 {
    font-family: var(--display);
    font-size: 23px;
    color: var(--lapis-deep);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.culture-block p {
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.6;
}

/* ===== Цитата ===== */
.quote-section {
    background:
        linear-gradient(180deg, rgba(15, 36, 56, 0.96), rgba(26, 13, 3, 0.98)),
        var(--lapis-deep);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quote-section::before,
.quote-section::after {
    content: '𓂀';
    position: absolute;
    font-size: 180px;
    color: rgba(212, 175, 55, 0.06);
    line-height: 1;
}

.quote-section::before {
    top: 20px;
    left: 5%;
}
.quote-section::after {
    bottom: 20px;
    right: 5%;
}

.quote {
    position: relative;
    z-index: 2;
}

.quote p {
    font-family: var(--display);
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 500;
    color: var(--gold-light);
    letter-spacing: 2px;
    margin-bottom: 24px;
    font-style: italic;
}

.quote cite {
    font-family: var(--display);
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
    font-style: normal;
}

/* ===== Подвал ===== */
.footer {
    background: #0d0702;
    color: var(--sand);
    padding: 60px 0 40px;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--display);
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 3px;
}

.footer-brand .logo-icon {
    font-size: 28px;
}

.footer-text {
    font-size: 18px;
    color: var(--sand);
    font-style: italic;
    opacity: 0.85;
}

.footer-copy {
    font-size: 14px;
    color: rgba(232, 216, 176, 0.5);
    letter-spacing: 1px;
    margin-top: 8px;
}

/* ===== Мини-игра: Memory ===== */
.game-board-wrap {
    max-width: 620px;
    margin: 0 auto;
    position: relative;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 96px;
    padding: 12px 22px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 4px 18px var(--shadow);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.stat-label {
    font-family: var(--display);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.stat-value {
    font-family: var(--display);
    font-size: 24px;
    font-weight: 700;
    color: var(--lapis-deep);
}

.game-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    perspective: 900px;
}

.mem-card {
    position: relative;
    aspect-ratio: 3 / 4;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.55s var(--ease);
}

.mem-card:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 10px;
}

.mem-card.flipped,
.mem-card.matched {
    transform: rotateY(180deg);
}

.mem-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    font-size: 42px;
    line-height: 1;
    user-select: none;
}

.mem-back {
    background: linear-gradient(160deg, var(--lapis), var(--lapis-deep));
    color: var(--gold);
    border: 2px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 6px 18px var(--shadow-lg);
    text-shadow: 0 0 14px rgba(212, 175, 55, 0.4);
}

.mem-back::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 6px;
    pointer-events: none;
}

.mem-card:hover:not(.flipped):not(.matched) .mem-back {
    box-shadow: 0 10px 26px var(--shadow-lg);
    transform: translateY(-3px);
}

.mem-front {
    background: linear-gradient(160deg, var(--sand-light), var(--sand));
    color: var(--lapis-deep);
    border: 2px solid var(--gold);
    transform: rotateY(180deg);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.mem-card.matched .mem-front {
    background: linear-gradient(160deg, #fff7df, var(--gold-light));
    border-color: var(--gold-deep);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.5);
}

.game-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.game-howto {
    text-align: center;
    max-width: 620px;
    margin: 36px auto 0;
    color: var(--ink-soft);
    font-style: italic;
    font-size: 17px;
}

/* Экран победы */
.game-win {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 36, 56, 0.82);
    backdrop-filter: blur(6px);
    border-radius: var(--radius);
    z-index: 5;
    animation: fadeIn 0.4s var(--ease);
}

.game-win[hidden] {
    display: none;
}

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

.game-win-card {
    background: linear-gradient(160deg, var(--papyrus), var(--sand-light));
    padding: 40px 44px;
    border-radius: var(--radius);
    text-align: center;
    border: 2px solid var(--gold);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 360px;
    animation: popIn 0.5s var(--ease);
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.game-win-glyph {
    font-size: 56px;
    color: var(--gold);
    margin-bottom: 10px;
}

.game-win-card h3 {
    font-family: var(--display);
    font-size: 32px;
    color: var(--lapis-deep);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.game-win-text {
    color: var(--ink-soft);
    font-size: 18px;
    margin-bottom: 24px;
}

/* ===== Анимации появления ===== */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Адаптивность ===== */
@media (max-width: 820px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(80vw, 320px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        background: var(--lapis-deep);
        transform: translateX(100%);
        transition: transform 0.4s var(--ease);
        box-shadow: -10px 0 40px var(--shadow-lg);
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 18px;
    }

    .nav-toggle {
        display: flex;
        z-index: 910;
    }

    .nav-actions {
        gap: 12px;
    }

    .section {
        padding: 80px 0;
    }

    .feature {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 28px 26px;
    }

    .feature-number {
        font-size: 44px;
    }

    .timeline {
        padding-left: 32px;
    }

    .timeline-marker {
        left: -32px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 18px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .timeline-content,
    .card,
    .culture-block {
        padding: 24px 20px;
    }

    .game-board {
        gap: 10px;
    }

    .mem-face {
        font-size: 34px;
    }

    .stat {
        min-width: 84px;
        padding: 10px 16px;
    }

    .stat-value {
        font-size: 20px;
    }

    .game-win-card {
        padding: 32px 28px;
    }
}

/* Уважение к настройкам пользователя */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
