/* ==========================================
   ШРИФТЫ (локальные, @font-face)
   ========================================== */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v20-cyrillic_latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v20-cyrillic_latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v20-cyrillic_latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Playfair Display */
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display-v40-cyrillic_latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display-v40-cyrillic_latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================
   ПЕРЕМЕННЫЕ
   ========================================== */
:root {
    --color-orange: #f86703;
    --color-orange-dark: #e05c02;
    --color-black: #000000;
    --color-gray-900: #111827;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

body {
   background-color: var(--color-black);
}
/* ==========================================
   БАЗОВЫЕ СТИЛИ (из основного HTML)
   ========================================== */
* { font-family: var(--font-sans); }
h1, h2, h3, h4, .font-serif { font-family: var(--font-serif); }

.aurora-bg { background-color: var(--color-black); }

.logo img { max-height: 40px; max-width: auto;} 

.neon {
    position: absolute;
    width: 5px;
    height: 5px;
    box-shadow: #ff7c00 2.5px 2.5px 2.5px 10px;
    text-shadow: 0 0 3rem #ff7c00;
    border-radius: 10px;
    background: #ff7c00;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.book-cover {
    aspect-ratio: 3/5;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}
.book-cover::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.05) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: shine 3s infinite;
    z-index: 2;
}
@keyframes shine {
    0% { background-position: -100% -100%; }
    100% { background-position: 100% 100%; }
}

.swiper-button-next, .swiper-button-prev {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 20px !important;
}

.hamburger-line { transition: all 0.3s ease; }
.hamburger.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.mobile-menu { max-height: 0; overflow: hidden; transition: max-height 0.5s ease; }
.mobile-menu.open { max-height: 300px; }

.counter-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px 10px;
    min-width: 80px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-orange) 0%, #fc9c03 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(248, 103, 3, 0.3);
}
@media (max-width: 768px) {
    .counter-item { min-width: 70px; padding: 10px 5px; }
    .counter-number { font-size: 2rem; }
}

.custom-pagination .swiper-pagination-bullet {
    width: 12px; height: 12px;
    background-color: rgba(255, 255, 255, 0.3);
    opacity: 1;
}
.custom-pagination .swiper-pagination-bullet-active { background-color: var(--color-orange); }

.yandex-map { /* filter: grayscale(1); */ }

.text-orange { color: var(--color-orange); }
.bg-orange { background-color: var(--color-orange); }
.bg-orange:hover { background-color: var(--color-orange-dark); }
.border-orange { border-color: var(--color-orange); }
.text-orange:hover { color: var(--color-orange-dark); }

/* Перелинковка 1.5 на мобиле, 6 на десктопе */
@media (max-width: 767px) {
    .related-books-slider .swiper-slide {
        width: 66.666% !important;
    }
}

.text-lg a, .text-lg strong, .text-lg b { 
   color: var(--color-orange);
}

.text-lg > p { margin-bottom: 0.5em; }
