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

:root {
    --navy: #1a365d;
    --navy-deep: #0f2440;
    --navy-light: #2a4a7f;
    --gold: #d4a017;
    --gold-light: #e8c54a;
    --gold-pale: #fdf6e3;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray-50: #fafafa;
    --gray-100: #f0f1f3;
    --gray-200: #e2e4e8;
    --gray-400: #9ca3af;
    --gray-600: #6b7280;
    --gray-800: #1f2937;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 3px rgba(26,54,93,0.06);
    --shadow-md: 0 4px 16px rgba(26,54,93,0.08);
    --shadow-lg: 0 8px 32px rgba(26,54,93,0.12);
    --shadow-xl: 0 16px 48px rgba(26,54,93,0.16);
    --radius: 6px;
}

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

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.8;
    font-weight: 400;
    font-size: 1.05rem;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ===== NAV ===== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: color 0.25s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after { width: 100%; }
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-burger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--navy);
    transition: all 0.3s;
}

/* ===== COMMON ===== */
.section { padding: 100px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.section-header p {
    font-size: 1.15rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.8;
}
.section-divider {
    width: 60px; height: 2px;
    background: var(--gold);
    margin: 16px auto 0;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 34px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: none;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--gray-200);
}
.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

/* ===== HERO (главная) ===== */
.hero {
    padding: 160px 24px 100px;
    position: relative;
    background: var(--white);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(212,160,23,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.hero-text { max-width: 560px; }
.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.hero-eyebrow::before {
    content: '';
    width: 40px; height: 1px;
    background: var(--gold);
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5vw, 3.8rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}
.hero p {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 36px;
    font-weight: 300;
    line-height: 1.9;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-card-stack {
    position: relative;
    width: 340px;
    height: 380px;
    cursor: pointer;
}
.hero-card {
    position: absolute;
    width: 280px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s cubic-bezier(.4,.2,.2,1), opacity 0.5s ease, z-index 0s;
    transform-origin: center bottom;
}
/* Default stacked positions */
.hero-card:nth-child(1) { top: 0; left: 0; z-index: 3; transform: rotate(-2deg); }
.hero-card:nth-child(2) { top: 30px; left: 40px; z-index: 2; transform: rotate(2deg); opacity: 0.7; }
.hero-card:nth-child(3) { top: 60px; left: 20px; z-index: 1; transform: rotate(-1deg); opacity: 0.5; }
/* Fan-out on hover */
.hero-card-stack:hover .hero-card:nth-child(1) { transform: translateX(-60px) rotate(-6deg); opacity: 1; }
.hero-card-stack:hover .hero-card:nth-child(2) { transform: translateX(0) rotate(0deg); opacity: 1; }
.hero-card-stack:hover .hero-card:nth-child(3) { transform: translateX(60px) rotate(6deg); opacity: 1; }
/* Active card (click-to-cycle) — top of stack */
.hero-card.active { z-index: 10 !important; transform: rotate(0deg) scale(1.05) !important; opacity: 1 !important; box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.hero-card.exiting { animation: cardSwipeOut 0.45s ease forwards; }
.hero-card-icon { font-size: 2rem; margin-bottom: 12px; }
.hero-card h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}
.hero-card p {
    font-size: 0.88rem;
    color: var(--gray-400);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ===== FEATURES (главная) ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.feature-item { text-align: center; padding: 40px 24px; }
.feature-icon {
    width: 64px; height: 64px;
    background: var(--gold-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
}
.feature-item h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}
.feature-item p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
}

/* ===== INTRO BLOCK (главная) ===== */
.intro-bg { background: var(--off-white); }
.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.intro-text h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.intro-text p {
    font-size: 1.05rem;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.9;
}
.intro-visual {
    background: var(--navy);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.intro-visual::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(212,160,23,0.1) 0%, transparent 60%);
}
.intro-visual blockquote {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}
.intro-visual cite {
    display: block;
    margin-top: 20px;
    font-style: normal;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--gold);
    font-weight: 600;
}

/* ===== STATS BAR ===== */
.stats-bar { background: var(--navy); padding: 48px 24px; }
.stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
.stat-item h3 {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-item p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* ===== ARTICLES ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}
.article-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.article-img {
    height: 220px;
    position: relative;
    overflow: hidden;
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.article-card:hover .article-img {
    animation-duration: 3s;
}
.article-img-inner {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    padding: 24px;
    position: relative;
}
/* Animated particles overlay */
.article-img::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 1px, transparent 1px),
        radial-gradient(circle at 80% 60%, rgba(255,255,255,0.06) 1px, transparent 1px),
        radial-gradient(circle at 50% 80%, rgba(255,255,255,0.05) 2px, transparent 2px),
        radial-gradient(circle at 70% 20%, rgba(212,160,23,0.1) 1px, transparent 1px);
    background-size: 60px 60px, 80px 80px, 100px 100px, 70px 70px;
    animation: particleDrift 12s linear infinite;
    z-index: 1;
    pointer-events: none;
}
@keyframes particleDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-60px, -60px); }
}
.article-img-inner svg {
    width: 100%;
    height: 100%;
    opacity: 0.55;
    transition: opacity 0.4s ease, transform 0.5s ease;
    position: relative;
    z-index: 2;
}
.article-card:hover .article-img-inner svg {
    opacity: 0.85;
    transform: scale(1.05);
}
/* SVG animation classes */
.article-img-inner svg .anim-draw {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawLine 2.5s ease forwards;
}
.article-img-inner svg .anim-pulse {
    animation: pulse 2s ease-in-out infinite;
}
.article-img-inner svg .anim-float {
    animation: floatUp 3s ease-in-out infinite;
}
.article-img-inner svg .anim-float-delay {
    animation: floatUp 3s ease-in-out 0.5s infinite;
}
.article-img-inner svg .anim-glow {
    animation: glow 2s ease-in-out infinite;
}
.article-img-inner svg .anim-blink {
    animation: blink 3s ease-in-out infinite;
}
@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}
@keyframes pulse {
    0%, 100% { r: 3; opacity: 0.7; }
    50% { r: 5; opacity: 1; }
}
@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(212,160,23,0.3)); }
    50% { filter: drop-shadow(0 0 8px rgba(212,160,23,0.7)); }
}
@keyframes blink {
    0%, 40%, 100% { opacity: 1; }
    20%, 60% { opacity: 0.3; }
}
/* Gradient backgrounds - richer with 3-color stops */
.article-img-1 { background: linear-gradient(135deg, #0d1b3e 0%, #1a365d 40%, #2a5a9f 100%); }
.article-img-2 { background: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #2d5a87 100%); }
.article-img-3 { background: linear-gradient(135deg, #1a365d 0%, #3b5998 50%, #4a72b2 100%); }
.article-img-4 { background: linear-gradient(135deg, #1a2744 0%, #1a365d 50%, #0f2440 100%); }
.article-img-5 { background: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #2a4a7f 100%); }
.article-img-6 { background: linear-gradient(135deg, #2d0a3e 0%, #6b21a8 50%, #9333ea 100%); }
.article-img-7 { background: linear-gradient(135deg, #0c2a4a 0%, #1e5a8f 50%, #3b82c4 100%); }
.article-img-8 { background: linear-gradient(135deg, #1a202c 0%, #374151 50%, #4b5563 100%); }
.article-img-9 { background: linear-gradient(135deg, #0a2e1f 0%, #166534 50%, #22863a 100%); }
.article-img-10 { background: linear-gradient(135deg, #5c3310 0%, #92531a 50%, #b8752a 100%); }
.article-img-11 { background: linear-gradient(135deg, #0c2461 0%, #1e40af 50%, #4f7df5 100%); }
.article-img-12 { background: linear-gradient(135deg, #3b0764 0%, #7e22ce 50%, #a855f7 100%); }
.article-tag {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--gold);
    color: var(--navy-deep);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 3px;
}
.article-body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-meta {
    font-size: 0.82rem;
    color: var(--gray-400);
    margin-bottom: 10px;
    font-weight: 500;
}
.article-card h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 12px;
}
.article-card p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
    flex: 1;
}
.article-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
    transition: gap 0.3s ease;
}
.article-link:hover { gap: 12px; }
.article-link svg { width: 16px; height: 16px; }

/* ===== ARTICLE FULL PAGE ===== */
.article-full-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 140px 24px 80px;
}
.article-full-page .article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gold);
    text-decoration: none;
    margin-bottom: 32px;
    transition: gap 0.3s;
}
.article-full-page .article-back:hover { gap: 12px; }
.article-full-page h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 16px;
}
.article-full-page .article-meta {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gray-200);
}
.article-full-page h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin: 40px 0 16px;
}
.article-full-page p {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.95;
    margin-bottom: 20px;
}
.article-full-page ul {
    margin: 12px 0 24px 20px;
    color: var(--gray-600);
}
.article-full-page ul li {
    margin-bottom: 10px;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ===== BOOKS ===== */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}
.book-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}
.book-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}
.book-cover {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.book-cover-inner {
    width: 140px; height: 200px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 4px 4px 16px rgba(0,0,0,0.25), -1px -1px 4px rgba(255,255,255,0.1);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}
.book-card:hover .book-cover-inner {
    transform: scale(1.05);
}
.book-cover-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.book-cover-inner::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: rgba(0,0,0,0.12);
    border-radius: 4px 0 0 4px;
}
.bc-1 { background: var(--navy); }
.bc-1 .book-cover-inner { background: linear-gradient(135deg, #2d5016, #3a6b1e); }
.bc-2 { background: #f0f1f3; }
.bc-2 .book-cover-inner { background: linear-gradient(135deg, #1a365d, #2a4a7f); }
.bc-3 { background: var(--navy-deep); }
.bc-3 .book-cover-inner { background: linear-gradient(135deg, #8b1a1a, #b22222); }
.bc-4 { background: #f8f6f0; }
.bc-4 .book-cover-inner { background: linear-gradient(135deg, #5c4827, #8b6914); }
.bc-5 { background: var(--gray-100); }
.bc-5 .book-cover-inner { background: linear-gradient(135deg, #1a365d, #0f2440); }
.bc-6 { background: #1a365d; }
.bc-6 .book-cover-inner { background: linear-gradient(135deg, #6b21a8, #7c3aed); }
.bc-7 { background: #f0f1f3; }
.bc-7 .book-cover-inner { background: linear-gradient(135deg, #065f46, #047857); }
.bc-8 { background: var(--navy-deep); }
.bc-8 .book-cover-inner { background: linear-gradient(135deg, #92400e, #b45309); }
.book-badge {
    position: absolute;
    top: 14px; right: 14px;
    background: var(--gold);
    color: var(--navy-deep);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    z-index: 2;
}
.book-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.book-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 4px;
}
.book-author {
    font-size: 0.9rem;
    color: var(--gray-400);
    font-weight: 500;
    margin-bottom: 10px;
}
.book-stars { display: flex; gap: 2px; margin-bottom: 12px; }
.star { color: var(--gold); font-size: 1rem; }
.star-empty { color: var(--gray-200); font-size: 1rem; }
.book-desc {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.75;
    flex: 1;
    margin-bottom: 20px;
}
.book-buttons { display: flex; flex-direction: column; gap: 8px; }
.book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}
.book-btn-ozon { background: #005bff; color: var(--white); }
.book-btn-ozon:hover { background: #0046cc; transform: translateY(-1px); }
.book-btn-litres { background: var(--gray-800); color: var(--white); }
.book-btn-litres:hover { background: #111827; transform: translateY(-1px); }
.book-btn-labirint { background: #c4302b; color: var(--white); }
.book-btn-labirint:hover { background: #a32823; transform: translateY(-1px); }

/* ===== PAGE HEADER (articles/books) ===== */
.page-hero {
    padding: 140px 24px 60px;
    text-align: center;
    background: var(--off-white);
    border-bottom: 1px solid var(--gray-200);
}
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.page-hero p {
    font-size: 1.15rem;
    color: var(--gray-600);
    max-width: 560px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.8;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--navy-deep);
    color: rgba(255,255,255,0.6);
    padding: 64px 24px 32px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand p { margin-top: 12px; font-size: 0.92rem; line-height: 1.7; }
.footer h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.25s;
}
.footer ul a:hover { color: var(--gold); }
.footer-legal {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    margin-bottom: 20px;
}
.footer-legal p {
    font-size: 0.78rem;
    opacity: 0.5;
    line-height: 1.6;
    margin-bottom: 6px;
}
.footer-requisites {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    font-size: 0.75rem;
    opacity: 0.4;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.82rem;
    opacity: 0.6;
}

/* ===== ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px; left: 0; right: 0;
        background: var(--white);
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-md);
    }
    .nav-burger { display: flex; }
    .hero { padding: 130px 24px 70px; }
    .hero-content { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { order: -1; }
    .hero-card-stack { width: 280px; height: 320px; }
    .hero-card { width: 240px; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .features-grid { grid-template-columns: 1fr; gap: 16px; }
    .intro-content { grid-template-columns: 1fr; gap: 40px; }
    .articles-grid { grid-template-columns: 1fr; }
    .books-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
    .stats-inner { grid-template-columns: 1fr 1fr; gap: 16px; }
    .hero-cta { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Card slider animations ===== */
@keyframes cardSwipeOut {
    0% { transform: rotate(0deg) scale(1.05); opacity: 1; }
    100% { transform: translateX(120px) rotate(15deg) scale(0.9); opacity: 0; }
}
@keyframes cardSwipeIn {
    0% { transform: translateX(-80px) rotate(-10deg) scale(0.9); opacity: 0; }
    100% { transform: rotate(0deg) scale(1); opacity: 1; }
}
.hero-card.entering { animation: cardSwipeIn 0.45s ease forwards; }

/* Dots navigation */
.hero-card-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}
.hero-card-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    border: 1px solid var(--gray-400);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    padding: 0;
}
.hero-card-dots .dot.active {
    background: var(--gold);
    transform: scale(1.3);
}
