/* ========================================
   Базовые стили и переменные
   ======================================== */
:root {
    /* Цветовая палитра - тёплые осенние оттенки */
    --primary-gold: #D4A843;
    --primary-copper: #B8732A;
    --primary-orange: #E07A3E;
    --primary-brown: #5C3D2E;
    --primary-cream: #F5E6C8;
    --primary-green: #2D5A3D;
    --accent-red: #C73E3E;
    --accent-purple: #6B4C6B;

    /* Цвета фона и текста */
    --bg-cream: #FFF8E7;
    --bg-warm: #FAEBD7;
    --bg-dark: #3E2723;
    --text-dark: #2C1810;
    --text-medium: #5C4033;
    --text-light: #8B7355;

    /* Размеры и отступы */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;

    /* Шрифты */
    --font-primary: 'Philosopher', serif;
    --font-secondary: 'Comfortaa', cursive;

    /* Анимации */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========================================
   Навигация
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 248, 231, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(92, 61, 46, 0.1);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.nav__logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-copper);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) 0;
}

.nav__logo-image {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 5px;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.nav__toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-copper);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.nav__menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--spacing-sm);
    list-style: none;
}

.nav__menu li {
    white-space: nowrap;
}

.nav__menu a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: var(--transition-smooth);
    border-bottom: 2px solid transparent;
    display: inline-block;
}

.nav__menu a:hover {
    color: var(--primary-copper);
    border-bottom-color: var(--primary-copper);
}

/* ========================================
   Главный экран
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-xxl) var(--spacing-md);
    background: linear-gradient(135deg,
        var(--bg-cream) 0%,
        var(--bg-warm) 50%,
        #FFDAB9 100%);
    overflow: hidden;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero__particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(212, 168, 67, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(184, 115, 42, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(224, 122, 62, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.hero__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.hero__book-cover {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.book-cover-3d {
    position: relative;
    width: 300px;
    height: 450px;
    transform-style: preserve-3d;
    transform: rotateY(-25deg);
    transition: var(--transition-bounce);
    cursor: pointer;
    margin: 0 auto;
    perspective: 1200px;
}

.book-cover-3d:hover {
    transform: rotateY(-10deg) translateY(-20px) scale(1.05);
}

.book-spine {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg,
        var(--primary-brown) 0%,
        var(--primary-copper) 40%,
        var(--primary-gold) 100%);
    transform-origin: left center;
    transform: rotateY(-90deg) translateZ(-15px);
    border-radius: 4px 0 0 4px;
    box-shadow:
        inset -2px 0 5px rgba(0,0,0,0.2),
        inset 2px 0 5px rgba(255,255,255,0.1);
    z-index: 10;
}

.book-spine::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 160px;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 5px,
        rgba(0,0,0,0.06) 5px,
        rgba(0,0,0,0.06) 7px
    );
    border-radius: 2px;
}

.book-front {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 0 6px 6px 0;
    box-shadow:
        0 25px 50px rgba(92, 61, 46, 0.3),
        inset -2px 0 8px rgba(0,0,0,0.1),
        inset 0 0 0 3px rgba(212, 168, 67, 0.3);
    overflow: hidden;
    transform: translateZ(15px);
    backface-visibility: hidden;
    z-index: 20;
}

.book-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.book-pages {
    position: absolute;
    right: 0;
    top: 10px;
    bottom: 10px;
    width: 12px;
    background: linear-gradient(90deg,
        #e8e8e8 0%,
        #f5f5f5 15%,
        #ffffff 30%,
        #f5f5f5 50%,
        #ffffff 70%,
        #f5f5f5 85%,
        #e8e8e8 100%);
    transform-origin: right center;
    transform: rotateY(90deg) translateZ(0px);
    border-radius: 0 2px 2px 0;
    box-shadow:
        inset -1px 0 3px rgba(0,0,0,0.1),
        1px 0 3px rgba(0,0,0,0.05);
    z-index: 15;
}

.book-pages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.08) 0%,
        transparent 5%,
        transparent 95%,
        rgba(0,0,0,0.08) 100%
    );
}

.book-pages::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(0,0,0,0.015) 1px,
        rgba(0,0,0,0.015) 3px
    );
}

.book-back {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        var(--primary-brown) 0%,
        var(--primary-copper) 40%,
        var(--primary-gold) 100%);
    border-radius: 0 6px 6px 0;
    transform: translateZ(-15px) rotateY(180deg);
    box-shadow:
        0 0 40px rgba(0,0,0,0.4),
        inset 2px 0 8px rgba(0,0,0,0.2);
    z-index: 5;
}

.book-top,
.book-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg,
        var(--primary-gold) 0%,
        var(--primary-copper) 50%,
        var(--primary-gold) 100%);
}

.book-top {
    top: -12px;
    transform: rotateX(90deg);
    transform-origin: bottom center;
    border-radius: 4px 4px 0 0;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
    z-index: 12;
}

.book-bottom {
    bottom: -12px;
    transform: rotateX(-90deg);
    transform-origin: top center;
    border-radius: 0 0 4px 4px;
    box-shadow: inset 0 -2px 5px rgba(0,0,0,0.1);
    z-index: 12;
}

.book-spine::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 160px;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 8px,
        rgba(0,0,0,0.1) 8px,
        rgba(0,0,0,0.1) 10px
    );
    border-radius: 2px;
}

.book-front {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 5px;
    box-shadow:
        0 20px 50px rgba(92, 61, 46, 0.4),
        inset 0 0 0 3px rgba(212, 168, 67, 0.3);
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.book-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.book-pages {
    position: absolute;
    right: -3px;
    top: 5px;
    bottom: 5px;
    width: 12px;
    background: linear-gradient(90deg,
        #f5f5f5 0%,
        #fff 20%,
        #f5f5f5 40%,
        #fff 60%,
        #f5f5f5 80%,
        #fff 100%);
    border-radius: 0 3px 3px 0;
    box-shadow:
        inset -1px 0 3px rgba(0,0,0,0.1),
        1px 0 3px rgba(0,0,0,0.1);
}

.book-pages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(0,0,0,0.02) 1px,
        rgba(0,0,0,0.02) 2px
    );
}

.book-cover {
    position: relative;
    width: 300px;
    height: 420px;
    transform-style: preserve-3d;
    transform: rotateY(-15deg);
    transition: var(--transition-bounce);
    cursor: pointer;
}

.book-cover:hover {
    transform: rotateY(0deg) translateY(-10px);
}

.book-cover__spine {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg,
        var(--primary-brown) 0%,
        var(--primary-copper) 50%,
        var(--primary-gold) 100%);
    transform: rotateY(90deg) translateZ(-15px);
    border-radius: 3px 0 0 3px;
    box-shadow: inset -5px 0 10px rgba(0,0,0,0.2);
}

.book-cover__front {
    position: absolute;
    left: 30px;
    top: 0;
    width: 270px;
    height: 100%;
    background: linear-gradient(135deg,
        var(--primary-gold) 0%,
        var(--primary-copper) 50%,
        var(--primary-orange) 100%);
    border-radius: 0 5px 5px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
    box-shadow:
        0 10px 30px rgba(92, 61, 46, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    border: 3px solid var(--primary-gold);
}

.book-cover__title {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--bg-dark);
    text-align: center;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.book-cover__subtitle {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--bg-dark);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.book-cover__author {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--bg-dark);
    margin-top: auto;
    font-weight: 600;
}

.book-cover__decoration {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.book-cover__decoration .leaf {
    font-size: 1.5rem;
    animation: sway 3s ease-in-out infinite;
}

.book-cover__decoration .drop {
    font-size: 1.8rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.hero__text {
    text-align: center;
}

.hero__title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(92, 61, 46, 0.1);
}

.hero__description {
    font-size: 1.3rem;
    color: var(--text-medium);
    margin-bottom: var(--spacing-xl);
    font-style: italic;
}

.hero__buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-block;
    text-align: center;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-copper));
    color: var(--bg-cream);
    border-color: var(--primary-gold);
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 168, 67, 0.4);
}

.btn--secondary {
    background: transparent;
    color: var(--primary-copper);
    border-color: var(--primary-copper);
}

.btn--secondary:hover {
    background: var(--primary-copper);
    color: var(--bg-cream);
    transform: translateY(-2px);
}

.hero__scroll {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s ease-in-out infinite;
}

.hero__scroll span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.scroll-arrow {
    font-size: 2rem;
    color: var(--primary-copper);
}

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

/* ========================================
   Секции
   ======================================== */
section {
    padding: var(--spacing-xxl) 0;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.section-title::after {
    content: '🍂';
    display: block;
    font-size: 1.5rem;
    margin-top: var(--spacing-sm);
}

/* ========================================
   О книге
   ======================================== */
.about {
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-cream) 100%);
}

.about__content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about__text p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about__intro {
    font-family: var(--font-primary);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-medium);
    border-left: 4px solid var(--primary-copper);
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-lg) !important;
}

.about__info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.info-item {
    display: flex;
    align-items: start;
    gap: var(--spacing-sm);
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border: 2px solid var(--primary-gold);
    transition: var(--transition-smooth);
    hyphens: none;
    word-break: keep-all;
    overflow-wrap: normal;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(212, 168, 67, 0.2);
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-item div {
    flex: 1;
    min-width: 0; /* Важно для текста во flex контейнерах */
}

.info-item strong {
    display: block;
    color: var(--primary-copper);
    margin-bottom: 0.3rem;
}

.info-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

.about__illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(92, 61, 46, 0.3);
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    opacity: 0;
    transition: var(--transition-smooth);
}

.video-container:hover .video-controls {
    opacity: 1;
}

.video-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: var(--spacing-xs);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-btn:hover {
    color: var(--primary-gold);
    transform: scale(1.1);
}

.video-btn--play {
    background: var(--primary-gold);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.video-btn--play:hover {
    background: var(--primary-copper);
    color: white;
}

.video-progress {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.video-progress__filled {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-gold), var(--primary-copper));
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.video-progress:hover .video-progress__filled {
    background: linear-gradient(90deg, var(--primary-copper), var(--primary-orange));
}

.video-time {
    color: white;
    font-size: 0.85rem;
    font-family: var(--font-secondary);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex-shrink: 0;
}

.video-time__divider {
    opacity: 0.7;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.video-overlay--hidden {
    opacity: 0;
    pointer-events: none;
}

.video-overlay__content {
    text-align: center;
    color: white;
}

.video-overlay__icon {
    display: block;
    width: 80px;
    height: 80px;
    background: var(--primary-gold);
    border-radius: 50%;
    line-height: 80px;
    font-size: 2.5rem;
    margin: 0 auto var(--spacing-md);
    box-shadow: 0 10px 30px rgba(212, 168, 67, 0.4);
    transition: var(--transition-smooth);
}

.video-overlay:hover .video-overlay__icon {
    transform: scale(1.1);
    background: var(--primary-copper);
}

.video-overlay__text {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Скрываем стандартные контролы браузера */
.video-player::-webkit-media-controls {
    display: none !important;
}

.video-player::-webkit-media-controls-enclosure {
    display: none !important;
}

/* ========================================
   Персонажи
   ======================================== */
.characters {
    background: var(--bg-cream);
}

.characters__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.character-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(92, 61, 46, 0.1);
    transition: var(--transition-bounce);
    border: 3px solid var(--primary-gold);
    cursor: pointer;
}

.character-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(92, 61, 46, 0.2);
}

.character-card__image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-copper));
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.character-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.character-avatar--anna { background: transparent; }
.character-avatar--dar { background: transparent; }
.character-avatar--vodya { background: transparent; }
.character-avatar--yaga { background: transparent; }
.character-avatar--kikimora { background: transparent; }
.character-avatar--leshy { background: transparent; }
.character-avatar--peter { background: transparent; }
.character-avatar--mitya { background: transparent; }

.character-card:hover .character-avatar {
    transform: scale(1.1) rotate(5deg);
}

.avatar-symbol {
    font-size: 3rem;
}

.character-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.character-card__content {
    padding: var(--spacing-md);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.character-card__content h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    word-wrap: break-word;
    line-height: 1.3;
}

.character-role {
    color: var(--primary-copper);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.character-description {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.character-traits {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.trait {
    background: var(--primary-cream);
    color: var(--primary-copper);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--primary-gold);
}

/* ========================================
   Отрывок
   ======================================== */
.excerpt {
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-warm) 100%);
}

.excerpt__book {
    perspective: 1500px;
    margin-bottom: var(--spacing-xl);
}

.book {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    height: 500px;
    transform-style: preserve-3d;
}

.book__page {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: #FFF8DC;
    border: 2px solid var(--primary-gold);
    padding: var(--spacing-lg);
    box-shadow: 0 5px 20px rgba(92, 61, 46, 0.2);
    transition: var(--transition-smooth);
}

.book__page--left {
    left: 0;
    border-radius: 10px 0 0 10px;
    transform-origin: right center;
}

.book__page--right {
    right: 0;
    border-radius: 0 10px 10px 0;
    transform-origin: left center;
}

.book__page::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(90deg,
        rgba(92, 61, 46, 0.1) 0%,
        transparent 100%);
}

.book__page--left::before {
    right: 0;
}

.book__page--right::before {
    left: 0;
}

.page-content {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    height: 100%;
    overflow-y: auto;
}

.page-content h3 {
    color: var(--primary-copper);
    margin-bottom: var(--spacing-sm);
}

.page-content h4 {
    font-style: italic;
    color: var(--text-medium);
    margin-bottom: var(--spacing-md);
}

.drop-cap {
    float: left;
    font-size: 4rem;
    line-height: 0.8;
    color: var(--primary-copper);
    margin-right: var(--spacing-sm);
    font-family: var(--font-primary);
}

.excerpt__actions {
    text-align: center;
}

.excerpt__continue {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.excerpt-note {
    color: var(--primary-copper);
    font-style: italic;
    margin: var(--spacing-sm) 0;
    text-align: center;
}

.excerpt-final {
    text-align: center;
    color: var(--primary-copper);
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(212, 168, 67, 0.1);
    border-radius: 10px;
}

/* ========================================
   Автор
   ======================================== */
.author {
    background: var(--bg-warm);
}

.author__content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.author__photo {
    display: flex;
    justify-content: center;
}

.author-avatar {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-copper));
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(92, 61, 46, 0.2);
    border: 5px solid var(--primary-gold);
    overflow: hidden;
    padding: 0;
}

.author-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-placeholder {
    font-size: 5rem;
}

.author__info h3 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.author__genre {
    color: var(--primary-copper);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.author__info p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.author__themes {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border-left: 4px solid var(--primary-copper);
}

.author__themes h4 {
    font-family: var(--font-primary);
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.author__themes ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
}

.author__themes li {
    padding: var(--spacing-xs);
    color: var(--text-medium);
}

/* ========================================
   Контакты
   ======================================== */
.contact {
    background: var(--bg-cream);
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.contact__info h3,
.contact__form h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.purchase-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.purchase-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: white;
    border-radius: 10px;
    border: 2px solid var(--primary-gold);
    transition: var(--transition-smooth);
}

.purchase-option:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(212, 168, 67, 0.2);
}

.option-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.purchase-option strong {
    display: block;
    color: var(--primary-copper);
}

.purchase-option .btn {
    margin-top: var(--spacing-sm);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group textarea {
    padding: var(--spacing-sm);
    border: 2px solid var(--primary-gold);
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-copper);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

/* ========================================
   Футер
   ======================================== */
.footer {
    background: var(--bg-dark);
    color: var(--bg-cream);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer__section h4 {
    font-family: var(--font-primary);
    margin-bottom: var(--spacing-sm);
    color: var(--primary-gold);
}

.footer__section ul {
    list-style: none;
}

.footer__section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer__section a {
    color: var(--bg-cream);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer__section a:hover {
    color: var(--primary-gold);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--primary-copper);
}

.footer__bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
    margin: var(--spacing-xs) 0;
    color: var(--text-light);
}

/* ========================================
   Медиа-запросы
   ======================================== */
@media (max-width: 968px) {
    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__title {
        font-size: 2rem;
    }

    .about__content {
        grid-template-columns: 1fr;
    }

    .author__content {
        grid-template-columns: 1fr;
    }

    .contact__content {
        grid-template-columns: 1fr;
    }

    .book {
        height: 400px;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 248, 231, 0.98);
        padding: var(--spacing-md);
        max-height: 0;
        overflow: hidden;
        transition: var(--transition-smooth);
    }

    .nav__menu.active {
        max-height: 400px;
    }

    .characters__grid {
        grid-template-columns: 1fr;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .video-container {
        max-width: 100%;
        aspect-ratio: 16 / 9;
    }

    .video-overlay__icon {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 2rem;
    }

    .video-overlay__text {
        font-size: 1rem;
    }

    .video-btn {
        font-size: 1rem;
    }

    .video-btn--play {
        width: 35px;
        height: 35px;
    }

    .video-time {
        font-size: 0.75rem;
    }

    .about__content {
        grid-template-columns: 1fr;
    }

    .book-cover-3d {
        width: 220px;
        height: 330px;
    }

    .book-spine {
        width: 25px;
        transform: rotateY(-90deg) translateZ(-12px);
    }

    .book-front {
        transform: translateZ(12px);
    }

    .book-back {
        transform: translateZ(-12px) rotateY(180deg);
    }

    .book-pages {
        width: 10px;
        transform: rotateY(90deg) translateZ(0px);
    }

    .book-top,
    .book-bottom {
        height: 10px;
    }

    .book-top {
        top: -10px;
    }

    .book-bottom {
        bottom: -10px;
    }

    .author-avatar {
        width: 200px;
        height: 200px;
    }

    .author-avatar-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .avatar-placeholder {
        font-size: 4rem;
    }
}

/* ========================================
   Стили для серии книг
   ======================================== */

/* Активный пункт меню */
.nav__menu a.nav__menu--active {
    color: var(--primary-copper) !important;
    border-bottom-color: var(--primary-copper) !important;
}

/* Адаптация для планшетов */
@media (max-width: 1200px) {
    .nav__menu {
        gap: var(--spacing-xs);
    }

    .nav__menu a {
        font-size: 0.9rem;
        padding: var(--spacing-xs);
    }
}

/* Главный экран серии */
.series-hero .hero__text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.series-hero .hero__title {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.series-hero .hero__content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
}

.series-hero .hero__text {
    text-align: left;
    max-width: 600px;
    margin: 0;
}

.hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    max-width: 400px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(92, 61, 46, 0.25))
            drop-shadow(0 10px 20px rgba(212, 168, 67, 0.15));
    opacity: 0.95;
    transition: var(--transition-smooth);
}

.hero-logo:hover {
    transform: translateY(-5px) scale(1.02);
    filter: drop-shadow(0 25px 50px rgba(92, 61, 46, 0.3))
            drop-shadow(0 15px 30px rgba(212, 168, 67, 0.2));
    opacity: 1;
}

/* Карта мира Нави */
.series-map {
    width: 100%;
    max-width: 500px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-copper));
    border-radius: 20px;
    padding: var(--spacing-xl);
    box-shadow: 0 15px 40px rgba(92, 61, 46, 0.3);
    position: relative;
    overflow: hidden;
}

.series-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.map-content {
    position: relative;
    z-index: 1;
}

.map-content h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: white;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.map-locations {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-md);
}

.map-location-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 2px solid transparent;
}

.map-location-item:hover {
    transform: translateX(10px);
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-gold);
}

.map-location-item.active {
    background: white;
    border-color: var(--primary-gold);
    box-shadow: 0 5px 20px rgba(212, 168, 67, 0.3);
}

.map-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.map-name {
    font-weight: 600;
    color: var(--text-dark);
}

.map-detail {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-left: auto;
}

.hidden-location {
    display: none;
}

.hidden-location.visible {
    display: flex;
    animation: fadeInUp 0.3s ease forwards;
}

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

.map-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.map-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 10px;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-copper);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.map-toggle-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-toggle-btn .btn-icon {
    transition: transform 0.3s ease;
}

.map-toggle-btn.expanded .btn-icon {
    transform: rotate(180deg);
}

.map-full-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(92, 61, 46, 0.8);
    border: none;
    border-radius: 10px;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.map-full-link:hover {
    background: rgba(92, 61, 46, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.place-description {
    position: relative;
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: white;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
    pointer-events: none;
}

.place-description.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.place-description__inner {
    position: relative;
}

.place-description__close {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-copper);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.place-description__close:hover {
    background: var(--primary-gold);
    transform: scale(1.1);
}

.place-description h4 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--primary-copper);
    margin-bottom: var(--spacing-sm);
    padding-right: var(--spacing-md);
}

.place-description p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* Видео секция */
.video-section {
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-warm) 100%);
}

.video-intro {
    display: flex;
    justify-content: center;
}

/* Секция книг */
.books {
    background: var(--bg-cream);
}

.books__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.book-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(92, 61, 46, 0.1);
    transition: var(--transition-bounce);
    border: 3px solid var(--primary-gold);
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(92, 61, 46, 0.2);
}

.book-card__cover {
    height: 300px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-copper));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.book-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.book-card:hover .book-card__cover img {
    transform: scale(1.05);
}

.book-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    color: white;
}

.book-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.book-title {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.book-card__content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-number {
    display: inline-block;
    background: var(--primary-gold);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    align-self: flex-start;
}

.book-card__content h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.book-description {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.book-themes {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-md);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.book-themes li {
    background: var(--primary-cream);
    color: var(--primary-copper);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--primary-gold);
}

/* Разные цвета для каждой книги */
.book-card--1 {
    border-color: var(--primary-gold);
}

.book-card--1 .book-card__cover {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-copper));
}

.book-card--2 {
    border-color: var(--accent-purple);
}

.book-card--2 .book-card__cover {
    background: linear-gradient(135deg, var(--accent-purple), var(--primary-copper));
}

.book-card--2 .book-number {
    background: var(--accent-purple);
}

.book-card--3 {
    border-color: var(--primary-green);
}

.book-card--3 .book-card__cover {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-copper));
}

.book-card--3 .book-number {
    background: var(--primary-green);
}

.book-card--4 {
    border-color: var(--accent-red);
}

.book-card--4 .book-card__cover {
    background: linear-gradient(135deg, var(--accent-red), var(--primary-copper));
}

.book-card--4 .book-number {
    background: var(--accent-red);
}

/* Кнопка "Все герои" */
.characters__more {
    text-align: center;
    margin-top: var(--spacing-xl);
}

/* Страницы книг */
.book-page {
    padding-top: 80px;
}

.book-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg,
        var(--bg-cream) 0%,
        var(--bg-warm) 50%,
        #FFDAB9 100%);
    overflow: hidden;
}

.book-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.book-hero__particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(212, 168, 67, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(184, 115, 42, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(224, 122, 62, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.book-hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: var(--spacing-xl);
}

.book-hero__number {
    display: inline-block;
    background: var(--primary-gold);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.book-hero__title {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(92, 61, 46, 0.1);
}

.book-hero__subtitle {
    font-size: 1.3rem;
    color: var(--text-medium);
    margin-bottom: var(--spacing-xl);
    font-style: italic;
}

.book-meta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
}

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

.book-meta__icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.book-meta__label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.book-meta__value {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.book-navigation {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Секции книги */
.book-section {
    padding: var(--spacing-xxl) 0;
}

.book-section__title {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.book-plot {
    background: var(--bg-warm);
}

.book-plot__content {
    max-width: 800px;
    margin: 0 auto;
}

.book-plot__text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
}

.book-plot__text p {
    margin-bottom: var(--spacing-md);
}

.book-characters {
    background: var(--bg-cream);
}

.book-characters__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.book-characters__item {
    background: white;
    padding: var(--spacing-md);
    border-radius: 10px;
    border: 2px solid var(--primary-gold);
    transition: var(--transition-smooth);
}

.book-characters__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(212, 168, 67, 0.2);
}

.book-characters__name {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--primary-copper);
    margin-bottom: var(--spacing-xs);
}

.book-characters__role {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.book-themes-section {
    background: var(--bg-warm);
}

.book-themes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.book-theme-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--primary-gold);
    transition: var(--transition-smooth);
}

.book-theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(212, 168, 67, 0.2);
}

.book-theme-card__icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.book-theme-card__title {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.book-theme-card__description {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.book-excerpt-section {
    background: var(--bg-cream);
}

/* Навигация между книгами */
.book-nav {
    background: var(--bg-dark);
    color: var(--bg-cream);
    padding: var(--spacing-xl) 0;
}

.book-nav__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
}

.book-nav__link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--bg-cream);
    text-decoration: none;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: var(--transition-smooth);
    min-width: 200px;
}

.book-nav__link:hover {
    background: var(--primary-copper);
    transform: translateY(-2px);
}

.book-nav__prev {
    justify-content: flex-start;
}

.book-nav__next {
    justify-content: flex-end;
    text-align: right;
}

.book-nav__label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.book-nav__title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
}

.book-nav__arrow {
    font-size: 1.5rem;
}

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

.book-nav__center a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
}

.book-nav__center a:hover {
    text-decoration: underline;
}

/* Адаптивность для новых элементов */
@media (max-width: 768px) {
    .series-hero .hero__title {
        font-size: 2rem;
    }

    .series-hero .hero__content {
        flex-direction: column;
        text-align: center;
    }

    .series-hero .hero__text {
        text-align: center;
    }

    .hero-logo {
        max-width: 300px;
    }

    .books__grid {
        grid-template-columns: 1fr;
    }

    .book-hero__title {
        font-size: 2rem;
    }

    .book-meta {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .book-nav__content {
        flex-direction: column;
    }

    .book-nav__link {
        width: 100%;
        min-width: auto;
    }

    .book-nav__next {
        text-align: left;
    }

    .map-locations {
        font-size: 0.9rem;
    }
}

/* ========================================
   Страница персонажей
   ======================================== */

.page-header {
    position: relative;
    padding: calc(var(--spacing-xxl) + 80px) var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg,
        var(--bg-cream) 0%,
        var(--bg-warm) 50%,
        #FFDAB9 100%);
    text-align: center;
    overflow: hidden;
}

.page-header__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.page-header__particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(212, 168, 67, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(184, 115, 42, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(224, 122, 62, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.page-header__content {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-family: var(--font-primary);
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(92, 61, 46, 0.1);
}

.page-header p {
    font-size: 1.3rem;
    color: var(--text-medium);
    font-style: italic;
}

.characters-filters {
    background: var(--bg-warm);
    padding: var(--spacing-md) 0;
    border-bottom: 2px solid var(--primary-gold);
}

.filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: white;
    border: 2px solid var(--primary-gold);
    border-radius: 30px;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    background: var(--primary-gold);
    color: white;
    transform: translateY(-2px);
}

.filter-btn--active {
    background: var(--primary-gold);
    color: white;
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

.characters-section {
    padding: var(--spacing-xl) 0;
}

.characters-section--alt {
    background: var(--bg-warm);
}

.characters-section__title {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.characters-section__title::after {
    content: '🍂';
    display: block;
    font-size: 1.5rem;
    margin-top: var(--spacing-sm);
}

.characters-full__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.character-full-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(92, 61, 46, 0.1);
    transition: var(--transition-smooth);
    border: 3px solid var(--primary-gold);
    display: flex;
    flex-direction: column;
}

.character-full-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(92, 61, 46, 0.2);
}

.character-full-card__image {
    position: relative;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-copper));
    display: flex;
    flex-direction: column;
    align-items: center;
}

.character-books {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
}

.character-books__item {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-copper);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.character-full-card__content {
    padding: var(--spacing-lg);
    flex: 1;
}

.character-full-card__content h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.character-bio {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.character-evolution {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-cream);
    border-radius: 10px;
    border-left: 4px solid var(--primary-copper);
}

.character-evolution h4 {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.character-evolution p {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: var(--spacing-xs);
}

.character-evolution p:last-child {
    margin-bottom: 0;
}

.character-avatar--grandfather,
.character-avatar--aunt,
.character-avatar--parents,
.character-avatar--dreven,
.character-avatar--winds,
.character-avatar--mountain,
.character-avatar--mirror,
.character-avatar--oblivion,
.character-avatar--mitya,
.character-avatar--vodjanoy,
.character-avatar--eagle,
.character-avatar--liossa {
    background: transparent;
}

.avatar-placeholder {
    font-size: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .page-header {
        padding-top: calc(var(--spacing-xl) + 70px);
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
    }

    .characters-full__grid {
        grid-template-columns: 1fr;
    }

    .character-full-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

