/* Стили для страницы книг */

/* Секции */
.featured-section {
    margin-bottom: 60px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(234, 234, 234, 0.8);
}

.section-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(182, 158, 64, 0.2);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title h2 {
    margin: 0;
    font-size: 28px;
    color: #2c3e50;
    font-weight: 700;
}

.title-decor {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, #b69e40, transparent);
    margin-left: 20px;
    max-width: 100px;
}

.section-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b69e40;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border: 2px solid #eaeaea;
    border-radius: 8px;
    margin-top: 10px;
}

.section-link:hover {
    background: #b69e40;
    color: white;
    border-color: #b69e40;
    transform: translateX(5px);
}

.section-subtitle {
    color: #7f8c8d;
    font-size: 16px;
    margin-top: 5px;
    font-style: italic;
}

/* Сетка книг */
.books-carousel {
    position: relative;
    padding: 0 40px;
    margin-bottom: 60px;
}

.carousel-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    overflow: hidden;
}

.book-card.featured {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.book-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.book-cover-wrapper {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.book-cover {
    width: 100%;
    height: 100%;
    position: relative;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-card:hover .book-overlay {
    opacity: 1;
}

.quick-view {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    color: #b69e40;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-view:hover {
    background: #b69e40;
    color: white;
    transform: scale(1.1);
}

.book-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    flex-direction: column;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.bestseller {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.badge.new {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.book-details {
    padding: 20px;
}

.book-info {
    padding: 15px;
}

.book-title {
    margin: 0 0 8px;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-author {
    margin: 0 0 15px;
    color: #7f8c8d;
    font-size: 14px;
}

.book-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #f1c40f;
    font-size: 14px;
}

.rating-value {
    font-weight: 600;
    color: #2c3e50;
}

.formats {
    display: flex;
    gap: 5px;
}

.format {
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #7f8c8d;
    border: 1px solid #eaeaea;
}

.format.fb2 {
    color: #27ae60;
    border-color: #27ae60;
}

.format.epub {
    color: #3498db;
    border-color: #3498db;
}

.book-actions {
    display: flex;
    gap: 10px;
}

.btn-read {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #b69e40 0%, #d4af37 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-read:hover {
    background: linear-gradient(135deg, #a58c36 0%, #c4a028 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(182, 158, 64, 0.3);
}

.btn-favorite {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 2px solid #eaeaea;
    background: white;
    color: #e74c3c;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-favorite:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

/* Навигация карусели */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #eaeaea;
    color: #2c3e50;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10;
}

.carousel-nav:hover {
    background: #b69e40;
    color: white;
    border-color: #b69e40;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 0;
}

.carousel-nav.next {
    right: 0;
}

/* Сетка жанров */
.genres-section {
    margin-bottom: 60px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(234, 234, 234, 0.8);
}

.genres-grid-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
}

@media (max-width: 1200px) {
    .genres-grid-main {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .genres-grid-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .genres-grid-main {
        grid-template-columns: 1fr;
    }
}

.genre-card-main {
    background: white;
    border-radius: 16px;
    padding: 25px 20px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.genre-card-main:hover {
    border-color: #b69e40;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.genre-card-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #b69e40, #3498db, #2ecc71);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.genre-card-main:hover::before {
    opacity: 1;
}

.genre-icon-main {
    margin-bottom: 20px;
    position: relative;
}

.icon-wrapper-main {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #b69e40;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.genre-card-main:hover .icon-wrapper-main {
    background: linear-gradient(135deg, #b69e40 0%, #d4af37 100%);
    color: white;
    transform: rotate(10deg) scale(1.1);
}

.icon-wrapper-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.genre-card-main:hover .icon-wrapper-main::before {
    transform: translateX(100%);
}

/* Цвета иконок для разных жанров */
.genre-card-main:nth-child(1) .icon-wrapper-main i { color: #00b894; }
.genre-card-main:nth-child(2) .icon-wrapper-main i { color: #636e72; }
.genre-card-main:nth-child(3) .icon-wrapper-main i { color: #fd79a8; }
.genre-card-main:nth-child(4) .icon-wrapper-main i { color: #0984e3; }
.genre-card-main:nth-child(5) .icon-wrapper-main i { color: #fdcb6e; }
.genre-card-main:nth-child(6) .icon-wrapper-main i { color: #a29bfe; }
.genre-card-main:nth-child(7) .icon-wrapper-main i { color: #e17055; }
.genre-card-main:nth-child(8) .icon-wrapper-main i { color: #00cec9; }

.genre-card-main:nth-child(1):hover .icon-wrapper-main { background: linear-gradient(135deg, #00b894 0%, #00a085 100%); }
.genre-card-main:nth-child(2):hover .icon-wrapper-main { background: linear-gradient(135deg, #636e72 0%, #2d3436 100%); }
.genre-card-main:nth-child(3):hover .icon-wrapper-main { background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%); }
.genre-card-main:nth-child(4):hover .icon-wrapper-main { background: linear-gradient(135deg, #0984e3 0%, #0652dd 100%); }
.genre-card-main:nth-child(5):hover .icon-wrapper-main { background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%); }
.genre-card-main:nth-child(6):hover .icon-wrapper-main { background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%); }
.genre-card-main:nth-child(7):hover .icon-wrapper-main { background: linear-gradient(135deg, #e17055 0%, #d63031 100%); }
.genre-card-main:nth-child(8):hover .icon-wrapper-main { background: linear-gradient(135deg, #81ecec 0%, #00cec9 100%); }

.genre-info-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.genre-info-main h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.3;
}

.genre-count-main {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
}

/* Цвета для разных жанров */
.genre-card[data-genre="romance"] .icon-bg {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
}

.genre-card[data-genre="detective"] .icon-bg {
    background: linear-gradient(135deg, #636e72 0%, #2d3436 100%);
}

.genre-card[data-genre="fantasy"] .icon-bg {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
}

.genre-card[data-genre="scifi"] .icon-bg {
    background: linear-gradient(135deg, #0984e3 0%, #0652dd 100%);
}

.genre-card[data-genre="business"] .icon-bg {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
}

.genre-card[data-genre="psychology"] .icon-bg {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
}

.genre-card[data-genre="history"] .icon-bg {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
}

.genre-card[data-genre="poetry"] .icon-bg {
    background: linear-gradient(135deg, #81ecec 0%, #00cec9 100%);
}

.genre-card[data-genre="horror"] .icon-bg {
    background: linear-gradient(135deg, #2d3436 0%, #000000 100%);
}

.genre-card[data-genre="adventure"] .icon-bg {
    background: linear-gradient(135deg, #f9ca24 0%, #f0932b 100%);
}


.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #b69e40;
    transition: all 0.3s ease;
}

.genre-card:hover .icon-wrapper {
    background: linear-gradient(135deg, #b69e40 0%, #d4af37 100%);
    color: white;
    transform: rotate(10deg) scale(1.1);
}

.genre-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 700;
}

.genre-count {
    margin: 0 10px 0 0;
    color: #7f8c8d;
    font-size: 14px;
}

.genre-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #b69e40;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-weight: 600;
}

.genre-card:hover .genre-hover {
    transform: translateY(0);
}

/* Новые книги */
.new-books-section {
    padding: 30px 0 50px;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef2f7 100%);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.new-books-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #b69e40, #3498db, #2ecc71);
    border-color: #b69e40;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* ===== ВЕРХНИЙ БАННЕР ===== */
.section-top-banner {
    max-width: 1200px;
    margin: 0 auto 25px;
    padding: 0 20px;
}

.personalization-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    animation: pulse-glow 2s infinite;
}

.personalization-alert i.fa-bell {
    font-size: 18px;
    color: #f1c40f;
}

.alert-content {
    flex: 1;
    font-size: 0.95rem;
}

.btn-dismiss {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.btn-dismiss:hover {
    opacity: 1;
}

.urgency-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.urgency-notice i.fa-bolt {
    color: #f1c40f;
    font-size: 16px;
}

.section-header-enhanced {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.title-with-badge {
    display: flex;
    align-items: center;
    gap: 30px;
}

.section-header-enhanced .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-icon.glowing {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db 0%, #2ecc71 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.section-header-enhanced .section-title h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 700;
}

.trending-badge {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: #d35400;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: float 3s ease-in-out infinite;
}

.section-header-enhanced .section-stats {
    display: flex;
    gap: 25px;
}

.section-header-enhanced .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header-enhanced .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3498db;
    line-height: 1;
}

.section-header-enhanced .stat-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 4px;
}

/* КНОПКИ УПРАВЛЕНИЯ */
.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.view-toggle {
    display: flex;
    gap: 5px;
    background: white;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.view-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 6px;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.view-btn.active {
    background: #3498db;
    color: white;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.sort-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 180px;
}

.btn-refresh {
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-refresh:hover {
    background: #f8f9fa;
    color: #3498db;
}

/* ===== ФИЛЬТРЫ ===== */
.section-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-filters .quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.section-filters .filter-chip {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    color: #495057;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.section-filters .filter-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.section-filters .filter-chip.active {
    background: linear-gradient(135deg, #3498db 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.section-filters .inline-search {
    display: flex;
    gap: 5px;
}

.section-filters .search-inline {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 200px;
    font-size: 0.9rem;
}

.section-filters .btn-search-inline {
    width: 36px;
    height: 36px;
    background: #3498db;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

/* ===== СЕТКА КНИГ ===== */
.new-books-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.new-books-grid.enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.new-book-card.premium {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.new-book-card.premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* БЕЙДЖИ КАРТОЧКИ */
.card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.new {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    animation: pulse-glow 1.5s infinite;
}

.badge.trending {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: #d35400;
}

.badge.free {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

/* КОНТЕЙНЕР ОБЛОЖКИ */
.book-cover-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.book-cover {
    width: 100%;
    height: 100%;
    position: relative;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.new-book-card:hover .cover-overlay {
    opacity: 1;
}

.btn-preview, .btn-wishlist {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    color: #3498db;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-preview:hover, .btn-wishlist:hover {
    background: white;
    transform: scale(1.1);
}

.format-badges {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.format {
    padding: 3px 8px;
    background: rgba(255,255,255,0.9);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #2c3e50;
}

.format.audio {
    background: #3498db;
    color: white;
}

/* ИНФОРМАЦИЯ О КНИГЕ */
.book-info-enhanced {
    padding: 20px;
}

.book-main-info {
    margin-bottom: 15px;
}

.book-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.book-author {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.book-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.stars {
    color: #f1c40f;
    font-size: 0.9rem;
}

.rating-value {
    font-weight: 600;
    color: #2c3e50;
}

.reviews-count {
    color: #95a5a6;
    font-size: 0.85rem;
}

/* МЕТА-ИНФОРМАЦИЯ */
.book-meta-enhanced {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #5d6d7e;
}

.meta-item i {
    color: #3498db;
    width: 16px;
}

.meta-item strong {
    color: #2c3e50;
}

/* ПЕРСОНАЛИЗАЦИЯ */
.personal-match-indicator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
}

.match-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.match-meter {
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    overflow: hidden;
    margin: 10px 0;
}

.match-fill {
    height: 100%;
    background: #2ecc71;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.match-percent {
    font-size: 0.8rem;
    opacity: 0.9;
}

.match-reason {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 5px;
    font-style: italic;
}

/* СОЦИАЛЬНОЕ ДОКАЗАТЕЛЬСТВО */
.social-proof-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin: 15px 0;
}

.friend-recommended {
    display: flex;
    align-items: center;
    gap: 8px;
}

.friend-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #3498db;
    object-fit: cover;
}

.friend-recommended span {
    font-size: 0.85rem;
    color: #5d6d7e;
}

.community-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #5d6d7e;
}

/* КНОПКИ ДЕЙСТВИЙ */
.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.btn-primary.btn-read {
    padding: 10px 20px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-primary.btn-read:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.action-buttons .btn-icon {
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.action-buttons .btn-icon:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* ===== ПРОГРЕСС-БАР ЧТЕНИЯ ===== */
.reading-progress-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin: 30px 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.progress-text {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.progress-bar-large {
    height: 10px;
    background: #ecf0f1;
    border-radius: 5px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 5px;
    transition: width 1s ease;
}

.progress-reward {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #27ae60;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* ===== ПРИЗЫВ К ДЕЙСТВИЮ ===== */
.section-cta {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.cta-content {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cta-text h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.cta-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.cta-actions {
    display: flex;
    gap: 15px;
}

.btn-cta-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.btn-cta-secondary {
    padding: 12px 24px;
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-cta-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5d6d7e;
    font-size: 0.9rem;
}

.trust-badge i {
    color: #3498db;
    font-size: 18px;
}

/* ===== АНИМАЦИИ ===== */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(52, 152, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .new-books-grid.enhanced {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .header-main {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .new-books-section {
        padding: 20px 0 30px;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .title-icon.glowing {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .section-stats {
        gap: 15px;
    }
    
    .stat-value {
        font-size: 1.4rem;
    }
    
    .new-books-grid.enhanced {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .book-meta-enhanced {
        grid-template-columns: 1fr;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-cta-primary, .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .section-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quick-filters {
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .inline-search {
        width: 100%;
    }
    
    .search-inline {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .new-books-grid.enhanced {
        grid-template-columns: 1fr;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .personalization-alert, .urgency-notice {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .countdown-timer {
        margin-left: 0;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

/* ===== ТЕМНАЯ ТЕМА ===== */
@media (prefers-color-scheme: dark) {
    .new-books-section {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }
    
    .section-title h2 {
        color: #ecf0f1;
    }
    
    .new-book-card.premium {
        background: #2c3e50;
        border: 1px solid #34495e;
    }
    
    .book-title {
        color: #ecf0f1;
    }
    
    .book-author {
        color: #bdc3c7;
    }
    
    .book-meta-enhanced {
        background: #34495e;
    }
    
    .meta-item {
        color: #bdc3c7;
    }
    
    .search-inline, .sort-select, .btn-refresh {
        background: #2c3e50;
        color: #ecf0f1;
        border-color: #34495e;
    }
    
    .filter-chip {
        background: #34495e;
        color: #bdc3c7;
        border-color: #2c3e50;
    }
    
    .filter-chip.active {
        background: linear-gradient(135deg, #3498db 0%, #764ba2 100%);
    }
    
    .btn-icon {
        background: #34495e;
        border-color: #2c3e50;
        color: #bdc3c7;
    }
}


.new-books-section .section-header {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.new-books-section .section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.new-books-section .title-decor {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
    margin: 0 auto;
}

.section-description {
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-description p {
    color: #7f8c8d;
    font-size: 17px;
    line-height: 1.6;
    font-style: italic;
}

.new-books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.new-book-card {
    position: relative;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.new-book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.new-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.new-book-card .book-cover {
    height: 200px;
    flex-shrink: 0;
}

.new-book-card .book-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.new-book-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 700;
}

.new-book-card .author {
    margin: 0 0 15px;
    color: #7f8c8d;
    font-size: 13px;
}

.new-book-card .meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #95a5a6;
    margin-bottom: 20px;
}

.section-footer {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(52, 152, 219, 0.1);
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    transform: translateY(-2px);
}

/* Авторы */
.top-authors-section {
    margin-bottom: 60px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.05) 0%, rgba(243, 156, 18, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(241, 196, 15, 0.1);
}

.top-authors-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.top-authors-section .section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.top-authors-section .title-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 8px 25px rgba(241, 196, 15, 0.3);
    position: relative;
    overflow: hidden;
}

.top-authors-section .title-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30,40 L50,20 L70,40' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' opacity='0.3'/%3E%3C/svg%3E") center/contain no-repeat;
}

.top-authors-section h2 {
    margin: 0;
    font-size: 36px;
    color: #2c3e50;
    font-weight: 800;
    background: linear-gradient(135deg, #2c3e50 0%, #f1c40f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.top-authors-section .title-decor {
    width: 150px;
    height: 5px;
    background: linear-gradient(90deg, #f1c40f, #e74c3c, #f1c40f);
    border-radius: 3px;
    margin-top: 10px;
}

.top-authors-section .section-subtitle {
    color: #7f8c8d;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-style: italic;
}

/* Рейтинг авторов */
.authors-ranking {
    max-width: 900px;
    margin: 0 auto 40px;
}

.author-card {
    background: white;
    border-radius: 20px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.author-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.author-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: #bdc3c7;
}

.author-card.gold::before {
    background: linear-gradient(to bottom, #ffd700, #ffed4e);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.author-card.silver::before {
    background: linear-gradient(to bottom, #c0c0c0, #e0e0e0);
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.5);
}

.author-card.bronze::before {
    background: linear-gradient(to bottom, #cd7f32, #e49b5d);
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.5);
}

/* Ранг автора */
.author-rank {
    flex-shrink: 0;
    width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.rank-number {
    font-size: 36px;
    font-weight: 900;
    color: #2c3e50;
    line-height: 1;
}

.author-card.gold .rank-number {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.author-card.silver .rank-number {
    background: linear-gradient(135deg, #c0c0c0 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.author-card.bronze .rank-number {
    background: linear-gradient(135deg, #cd7f32 0%, #e49b5d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank-medal {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    animation: medalGlow 2s infinite alternate;
}

.author-card.gold .rank-medal {
    color: #ffd700;
}

.author-card.silver .rank-medal {
    color: #c0c0c0;
}

.author-card.bronze .rank-medal {
    color: #cd7f32;
}

@keyframes medalGlow {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px currentColor);
    }
    100% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px currentColor);
    }
}

/* Контент автора */
.author-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 25px;
}

.author-avatar {
    position: relative;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f8f9fa;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.author-card:hover .author-avatar img {
    transform: scale(1.1);
}

.online-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    background: #2ecc71;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 10px #2ecc71;
}

/* Информация об авторе */
.author-info {
    flex: 1;
}

.author-name {
    margin: 0 0 8px;
    font-size: 24px;
    color: #2c3e50;
    font-weight: 800;
}

.author-genre {
    margin: 0 0 20px;
    color: #7f8c8d;
    font-size: 15px;
    padding: 6px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    display: inline-block;
}

.author-stats {
    display: flex;
    gap: 25px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat i {
    width: 35px;
    height: 35px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f1c40f;
    font-size: 16px;
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 18px;
    font-weight: 800;
    color: #2c3e50;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Действия с автором */
.author-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 150px;
}

.btn-view-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-view-profile:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-view-books {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-view-books:hover {
    background: #b69e40;
    color: white;
    transform: translateX(5px);
}

/* Остальные авторы (4-6) */
.other-authors {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.author-card-small {
    background: white;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.author-card-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.author-card-small::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ecf0f1;
}

.author-card-small:nth-child(1)::before {
    background: #95a5a6;
}

.author-card-small:nth-child(2)::before {
    background: #7f8c8d;
}

.author-card-small:nth-child(3)::before {
    background: #636e72;
}

.small-rank {
    font-size: 18px;
    font-weight: 800;
    color: #bdc3c7;
    min-width: 25px;
}

.small-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f8f9fa;
}

.small-info {
    flex: 1;
}

.small-info h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 700;
}

.small-info p {
    margin: 0;
    color: #7f8c8d;
    font-size: 12px;
}

.small-link {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.small-link:hover {
    background: #3498db;
    color: white;
    transform: rotate(90deg);
}

/* Кнопка всех авторов */
.view-all-authors-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.3);
}

.view-all-authors-btn:hover {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(241, 196, 15, 0.4);
}

/* О библиотеке */
.about-library {
    margin: 60px 0;
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%);
    position: relative;
    overflow: hidden;
}

.about-library::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(135deg, rgba(182, 158, 64, 0.1) 0%, transparent 100%);
    z-index: 0;
}

.library-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Заголовок */
.library-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.header-decoration {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 3px solid rgba(182, 158, 64, 0.2);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.decoration-square {
    position: absolute;
    top: 30%;
    right: 20%;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(52, 152, 219, 0.2);
    transform: rotate(45deg);
    animation: float 8s ease-in-out infinite reverse;
}

.decoration-triangle {
    position: absolute;
    bottom: 40%;
    left: 20%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(46, 204, 113, 0.2);
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.library-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.title-text {
    color: #2c3e50;
    position: relative;
}

.title-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #b69e40, transparent);
    border-radius: 2px;
}

.title-highlight {
    color: #b69e40;
    font-size: 56px;
    text-shadow: 0 4px 15px rgba(182, 158, 64, 0.3);
}

.library-subtitle {
    font-size: 20px;
    color: #7f8c8d;
    font-style: italic;
    margin-top: 10px;
}

/* Вступление */
.intro-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #b69e40, #3498db, #2ecc71);
}

.intro-icon {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #b69e40 0%, #d4af37 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    box-shadow: 0 10px 30px rgba(182, 158, 64, 0.3);
}

.intro-text {
    flex: 1;
}

.intro-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #2c3e50;
    margin: 0;
}

/* Преимущества */
.advantages-section {
    margin-bottom: 60px;
}

.advantages-header {
    text-align: center;
    margin-bottom: 50px;
}

.advantages-header h3 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.advantages-header h3 i {
    color: #f1c40f;
    font-size: 28px;
}

.advantages-header p {
    color: #7f8c8d;
    font-size: 18px;
    font-style: italic;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.advantage-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    gap: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #b69e40, transparent);
}

.advantage-icon {
    position: relative;
    flex-shrink: 0;
}

.icon-bg {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    position: relative;
    z-index: 2;
}

.advantage-card:nth-child(2) .icon-bg {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.advantage-card:nth-child(3) .icon-bg {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.advantage-card:nth-child(4) .icon-bg {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.advantage-card:nth-child(5) .icon-bg {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
}

.advantage-card:nth-child(6) .icon-bg {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: rgba(52, 152, 219, 0.2);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.advantage-content {
    flex: 1;
}

.advantage-content h4 {
    font-size: 22px;
    color: #2c3e50;
    margin: 0 0 12px;
    font-weight: 700;
}

.advantage-content p {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0 0 15px;
    font-size: 15px;
}

.advantage-stats {
    display: inline-block;
    padding: 6px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

/* Форматы */
.formats-section {
    margin-bottom: 60px;
}

.formats-header {
    text-align: center;
    margin-bottom: 50px;
}

.formats-header h3 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.formats-header h3 i {
    color: #3498db;
    font-size: 28px;
}

.formats-header p {
    color: #7f8c8d;
    font-size: 18px;
    font-style: italic;
}

.formats-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.format-item {
    background: white;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    gap: 25px;
    align-items: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.format-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.format-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.fb2-logo {
    background: linear-gradient(135deg, #27ae60 0%, #219653 100%);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

.epub-logo {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.pdf-logo {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

.format-info {
    flex: 1;
}

.format-info h4 {
    font-size: 20px;
    color: #2c3e50;
    margin: 0 0 8px;
    font-weight: 700;
}

.format-info p {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0 0 15px;
    font-size: 14px;
}

.format-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
}

.format-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #95a5a6;
}

.format-stats i {
    color: #b69e40;
}

/* Важное уведомление */
.important-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 60px;
    border: 2px solid #f1c40f;
    position: relative;
    overflow: hidden;
}

.important-notice::before {
    content: '⚠';
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 200px;
    color: rgba(241, 196, 15, 0.1);
    font-weight: 900;
    font-family: sans-serif;
    transform: rotate(15deg);
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.notice-icon {
    width: 60px;
    height: 60px;
    background: #e74c3c;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

.notice-title h4 {
    font-size: 28px;
    color: #2c3e50;
    margin: 0 0 5px;
    font-weight: 800;
}

.notice-title p {
    color: #7f8c8d;
    margin: 0;
    font-size: 16px;
}

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

.notice-message {
    margin-bottom: 30px;
}

.notice-message p {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #2c3e50;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 16px;
}

.notice-message p i {
    color: #e74c3c;
    margin-top: 5px;
    flex-shrink: 0;
}

.notice-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.notice-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.notice-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.notice-btn.secondary {
    background: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.notice-btn.secondary:hover {
    background: #2980b9;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Призыв к действию */
.call-to-action {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 30px;
    padding: 50px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.call-to-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M100,0 C155.228,0 200,44.772 200,100 C200,155.228 155.228,200 100,200 C44.772,200 0,155.228 0,100 C0,44.772 44.772,0 100,0 Z' fill='rgba(255,255,255,0.05)' /%3E%3C/svg%3E");
    background-size: 200px;
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.cta-content h3 {
    font-size: 36px;
    margin: 0 0 15px;
    color: white;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat .number {
    font-size: 42px;
    font-weight: 800;
    color: #b69e40;
    line-height: 1;
}

.stat .label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 35px;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #b69e40 0%, #d4af37 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(182, 158, 64, 0.4);
}

.cta-btn.primary:hover {
    background: linear-gradient(135deg, #a58c36 0%, #c4a028 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(182, 158, 64, 0.5);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* Информационный блок */
.info-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.info-header {
    padding: 30px 30px 20px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.info-header h2 {
    margin: 0 0 10px;
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-header h2 i {
    color: #b69e40;
}

.info-subtitle {
    margin: 0;
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    font-style: italic;
}

.info-content {
    padding: 30px;
}

.info-text {
    font-size: 16px;
    line-height: 1.7;
    color: #2c3e50;
    margin-bottom: 40px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #b69e40 0%, #d4af37 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}

.feature-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #2c3e50;
}

.feature-content p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
}

/* Рекомендуемые коллекции */
.collections-carousel-section {
    margin: 50px 0;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(234, 234, 234, 0.8);
}

/* Заголовок */
.section-header-carousel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(182, 158, 64, 0.2);
}

.title-wrapper {
    display: flex;
    flex-direction: column;
}

.title-wrapper .section-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.title-wrapper .title-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(241, 196, 15, 0.2);
}

.title-icon i {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(241, 196, 15, 0.3);
}

.title-wrapper h2 {
    margin: 0;
    font-size: 28px;
    color: #2c3e50;
    font-weight: 700;
}

.title-wrapper .title-decor {
    flex: 1;
    min-width: 100px;
    max-width: 150px;
    height: 3px;
    background: linear-gradient(90deg, #b69e40, transparent);
    margin-left: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(241, 196, 15, 0.2);
}

.title-wrapper .subtitle {
    color: #7f8c8d;
    font-size: 16px;
    margin-top: 5px;
    font-style: italic;
}

@media (max-width: 768px) {
    .title-wrapper .section-title {
        flex-direction: column;
        gap: 10px;
    }
    
    .title-wrapper .title-decor {
        width: 40px;
        margin-top: 5px;
    }
    
    .title-wrapper {
        margin-bottom: 25px;
    }
    
    .title-wrapper h2 {
        font-size: 1.5rem;
        text-align: center;
        line-height: 1.3;
    }
    
    .title-wrapper .subtitle {
        font-size: 0.9rem;
        display: block;
        text-align: center;
        margin-top: 5px;
    }
}

/* Элементы управления каруселью */
.carousel-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #eaeaea;
    border-radius: 50%;
    color: #2c3e50;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.control-btn:hover:not(:disabled) {
    background: #b69e40;
    color: white;
    border-color: #b69e40;
    transform: scale(1.1);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-counter {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.current-slide {
    color: #b69e40;
}

/* Контейнер карусели */
.carousel-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Сетка с 3 видимыми карточками */
.collections-grid-visible {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 10px;
}

/* Карточки подборок */
.collection-card-carousel {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.collection-card-carousel:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.collection-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Изображение */
.collection-image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.collection-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-card-carousel:hover .collection-image-wrapper img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
}

.collection-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.bestseller {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.popular {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.trending {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.classic {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.top {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.new {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
}

/* Контент карточки */
.collection-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.collection-title {
    margin: 0 0 10px;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.3;
    min-height: 46px;
}

.collection-desc {
    margin: 0 0 15px;
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.4;
    flex: 1;
}

.collection-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #7f8c8d;
    font-weight: 500;
}

.meta-item i {
    color: #b69e40;
    font-size: 12px;
    width: 14px;
}

.collection-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.readers-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 500;
}

.readers-count i {
    color: #3498db;
    font-size: 11px;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #b69e40;
    font-weight: 600;
    transition: all 0.3s ease;
}

.collection-card-carousel:hover .view-btn {
    color: #3498db;
    gap: 10px;
}

.view-btn i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.collection-card-carousel:hover .view-btn i {
    transform: translateX(5px);
}

/* Точки навигации */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dfe6e9;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.dot:hover {
    background: #b69e40;
    transform: scale(1.2);
}

.dot.active {
    background: #b69e40;
    transform: scale(1.2);
}

/* Кнопка "Все подборки" */
.view-all-container {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #b69e40 0%, #d4af37 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(182, 158, 64, 0.2);
}

.view-all-btn:hover {
    background: linear-gradient(135deg, #a58c36 0%, #c4a028 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(182, 158, 64, 0.3);
    gap: 15px;
}

.view-all-btn i:last-child {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.view-all-btn:hover i:last-child {
    transform: translateX(5px);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .collections-grid-visible {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .collection-image-wrapper {
        height: 160px;
    }
}

@media (max-width: 992px) {
    .section-header-carousel {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .carousel-controls {
        align-self: flex-end;
    }
    
    .collections-grid-visible {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .collections-carousel-section {
        padding: 20px;
        margin: 30px 0;
    }
    
    .collections-grid-visible {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .collection-card-carousel {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .carousel-controls {
        align-self: stretch;
        justify-content: space-between;
    }
    
    .collection-image-wrapper {
        height: 200px;
    }
    
    .collection-title {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 20px;
    }
    
    .subtitle {
        margin-left: 0;
    }
    
    .title-icon {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .collection-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .view-all-btn {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
}

.collections-section {
    margin: 60px 0;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.collection-card {
    display: block;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.collection-image {
    height: 180px;
    overflow: hidden;
}

.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-card:hover .collection-image img {
    transform: scale(1.1);
}

.collection-info {
    padding: 20px;
}

.collection-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 700;
}

.collection-info p {
    margin: 0 0 10px;
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
}

.collection-count {
    display: inline-block;
    padding: 5px 12px;
    background: #f8f9fa;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    color: #3498db;
}

/* Хлебные крошки */
.breadcrumbs {
    padding: 15px 0;
    font-size: 14px;
    color: #7f8c8d;
}

.breadcrumbs a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 10px;
    color: #bdc3c7;
}

.breadcrumbs .current {
    color: #2c3e50;
    font-weight: 600;
}

/* Рекламные секции */
.ad-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.ads-section {
    margin: 30px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.adsterra-native {
    text-align: center;
}

/* Адаптивность для страницы книг */
@media (max-width: 1200px) {
    .advantages-grid,
    .formats-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .library-title {
        font-size: 42px;
        flex-direction: column;
    }
    
    .title-highlight {
        font-size: 48px;
    }
    
    .intro-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    
    .intro-icon {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
    
    .cta-stats {
        gap: 30px;
    }
    
    .stat .number {
        font-size: 36px;
    }
    
    .new-books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .author-card {
        flex-direction: column;
        align-items: stretch;
        padding: 25px;
    }
    
    .author-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .author-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .author-actions {
        flex-direction: row;
        justify-content: center;
        min-width: auto;
    }
    
    .other-authors {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-library {
        padding: 30px 0;
        margin: 40px 0;
    }
    
    .library-title {
        font-size: 36px;
    }
    
    .title-highlight {
        font-size: 40px;
    }
    
    .advantages-grid,
    .formats-list {
        grid-template-columns: 1fr;
    }
    
    .advantage-card,
    .format-item {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .cta-stats {
        flex-direction: column;
        gap: 25px;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .notice-actions {
        flex-direction: column;
    }
    
    .notice-btn {
        justify-content: center;
    }
    
    .top-authors-section {
        padding: 25px 20px;
    }
    
    .top-authors-section h2 {
        font-size: 30px;
    }
    
    .author-name {
        font-size: 22px;
    }
    
    .author-stats {
        gap: 15px;
    }
    
    .stat {
        flex-direction: column;
        text-align: center;
    }
    
    .other-authors {
        grid-template-columns: 1fr;
    }
    
    .view-all-authors-btn {
        padding: 14px 30px;
        font-size: 16px;
    }
    
    .new-books-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-link {
        align-self: flex-end;
    }
    
    .carousel-container {
        grid-template-columns: 1fr;
    }
    
    .books-carousel {
        padding: 0;
    }
    
    .carousel-nav {
        display: none;
    }
    
    .genres-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .library-title {
        font-size: 30px;
    }
    
    .title-highlight {
        font-size: 34px;
    }
    
    .library-subtitle {
        font-size: 16px;
    }
    
    .intro-card {
        padding: 25px 20px;
    }
    
    .intro-text p {
        font-size: 16px;
    }
    
    .advantages-header h3,
    .formats-header h3 {
        font-size: 28px;
    }
    
    .important-notice {
        padding: 30px 25px;
    }
    
    .call-to-action {
        padding: 40px 25px;
    }
    
    .cta-content h3 {
        font-size: 30px;
    }
    
    .top-authors-section h2 {
        font-size: 26px;
    }
    
    .author-actions {
        flex-direction: column;
    }
    
    .author-avatar img {
        width: 80px;
        height: 80px;
    }
    
    .author-name {
        font-size: 20px;
    }
    
    .section-footer {
        margin-top: 30px;
        padding-top: 25px;
    }
    
    .genres-grid {
        grid-template-columns: 1fr;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
    }
}