/* === БАЗОВЫЙ КЛАССИЧЕСКИЙ ДУХОВНЫЙ СТИЛЬ === */

body {
    background: #f5efe2;
    color: #4a3b2a;
    font-family: "Georgia", "Times New Roman", serif;
	font-size: 18px;
    line-height: 1.55;
}

/* === ШАПКА В СТИЛЕ СТАРИННОЙ КНИГИ === */

.header,
.container-header,
.site-header {
    background: radial-gradient(circle at top, #fdf6e8 0, #f0e0c4 45%, #e2cfac 100%);
    border-bottom: 1px solid #d2b48c;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.navbar-brand,
.brand-logo,
.site-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5a3a1a !important;
}


/* Ссылки */

a {
    color: #3b2a1a;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover,
a:focus {
    color: #b06b2f;
}

/* Заголовки */

h1, h2, h3, h4, h5 {
    color: #3b2a1a;
    font-family: "Georgia", "Times New Roman", serif;
    font-weight: 600;
}

/* Основной контейнер и карточки */

.container-component,
.site-grid {
    background: transparent;
}

.com-content-article.item-page,
.card,
.sidebar-right {
    background: #f9f2e6;
    border-radius: 10px;
    border: 1px solid #d2b48c;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    padding: 20px;
}

.com-content-article.item-page,
.card {
    margin-bottom: 24px;
}

/* Хлебные крошки */

.mod-breadcrumbs__wrapper {
    background: #f9f2e6;
    border-radius: 8px;
    border: 1px solid #d2b48c;
    margin-bottom: 16px;
}

.mod-breadcrumbs li,
.mod-breadcrumbs a,
.mod-breadcrumbs span {
    color: #6b4b2b;
}

/* Боковая колонка */

.sidebar-right .card-header {
    background: transparent;
    border-bottom: 1px solid #d2b48c;
    color: #3b2a1a;
}

.mod-menu a {
    color: #6b4b2b;
    padding: 6px 10px;
    border-radius: 6px;
}

.mod-menu a:hover,
.mod-menu .current a {
    background-color: #f0e3cf;
    color: #3b2a1a;
}

/* Футер */

.footer,
.site-footer {
    background: #e9ddc7;
    border-top: 1px solid #d2b48c;
    color: #6b4b2b;
}

/* === ШАПКА В СТИЛЕ СТАРИННОЙ КНИГИ === */

.header,
.container-header,
.site-header {
    background: radial-gradient(circle at top, #fdf6e8 0, #f0e0c4 45%, #e2cfac 100%);
    border-bottom: 1px solid #d2b48c;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.navbar-brand,
.brand-logo,
.site-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5a3a1a !important;
}

/* Если логотип — картинка, чуть приглушим */

.brand-logo img {
    filter: sepia(0.3) contrast(1.05);
}

/* === HERO-БЛОК С ЦИТАТОЙ === */

.hero-classic {
    background: #fdf6e8;
    border-radius: 14px;
    border: 1px solid #d2b48c;
    padding: 40px 32px;
    margin-bottom: 32px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    position: relative;
}

.hero-classic::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at top left, rgba(255,255,255,0.6), transparent 55%),
                      radial-gradient(circle at bottom right, rgba(222,184,135,0.35), transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-quote {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 10px;
    color: #3b2a1a;
}

.hero-quote-ref {
    font-size: 1rem;
    color: #7a5a3a;
    margin-bottom: 18px;
}

.hero-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: #8b5a2b;
    color: #fdf6e8;
    border: 1px solid #6b4b2b;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.hero-btn:hover {
    background: #a86b33;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.22);
}

/* === КНИЖНАЯ ПОЛКА === */

.section-title {
    font-size: 1.4rem;
    margin: 18px 0 12px;
    border-bottom: 1px solid #d2b48c;
    padding-bottom: 6px;
}

.books-shelf {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.book-card-classic {
    background: #fdf6e8;
    border-radius: 10px;
    border: 1px solid #d2b48c;
    padding: 14px 14px 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.book-card-classic::before {
    content: "";
    position: absolute;
    inset: 6px 8px auto 8px;
    height: 4px;
    background: linear-gradient(90deg, rgba(139,90,43,0.35), transparent);
    opacity: 0.7;
}

.book-card-classic img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #d2b48c;
    margin-bottom: 6px;
}

.book-title-classic {
    font-size: 1.02rem;
    font-weight: 600;
    color: #3b2a1a;
}

.book-meta-classic {
    font-size: 0.85rem;
    color: #7a5a3a;
}

.book-actions-classic {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-book {
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #c49a6c;
    color: #5a3a1a;
    background: #f7ebd7;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.btn-book:hover {
    background: #f0e0c4;
}

/* === ПОЛЕЗНЫЕ МАТЕРИАЛЫ — СВИТКИ === */

.scrolls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.scroll-card {
    background: #fdf6e8;
    border-radius: 10px;
    border: 1px solid #d2b48c;
    padding: 14px 16px 16px;
    position: relative;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.scroll-card::before,
.scroll-card::after {
    content: "";
    position: absolute;
    height: 10px;
    width: 60%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #e2cfac;
}

.scroll-card::before {
    top: -6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.scroll-card::after {
    bottom: -6px;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.15);
}

.scroll-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: #3b2a1a;
    margin-bottom: 4px;
}

.scroll-desc {
    font-size: 0.86rem;
    color: #7a5a3a;
    margin-bottom: 8px;
}

.scroll-link {
    font-size: 0.86rem;
    color: #8b5a2b;
    font-weight: 500;
}

/* Адаптив */

@media (max-width: 768px) {
    .hero-classic {
        padding: 22px 18px;
    }
}

.sidebar-right {
    background: #fdf6e8;
    border: 1px solid #d2b48c;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.sidebar-right .card-header {
    background: transparent;
    color: #5a3a1a;
    border-bottom: 1px solid #d2b48c;
}

/* === АККОРДЕОН / СЛАЙДЕР В КЛАССИЧЕСКОМ СТИЛЕ === */

.accordion {
    background: #fdf6e8;
    border: 1px solid #d2b48c;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    margin-top: 20px;
}

/* Кнопка заголовка */
.accordion-button {
    background: #f9f2e6;
    color: #5a3a1a;
    font-family: "Georgia", serif;
    font-size: 1rem;
    border-bottom: 1px solid #d2b48c;
    padding: 14px 18px;
    border-radius: 10px 10px 0 0;
    box-shadow: none;
}

.accordion-button:hover {
    background: #f0e3cf;
    color: #3b2a1a;
}

/* Активное состояние */
.accordion-button:not(.collapsed) {
    background: #f0e3cf;
    color: #3b2a1a;
    border-bottom: 1px solid #d2b48c;
    box-shadow: none;
}

/* Иконка стрелки */
.accordion-button::after {
    filter: sepia(60%) hue-rotate(330deg) brightness(0.7);
}

/* Тело аккордеона */
.accordion-body {
    background: #fdf6e8;
    color: #4a3b2a;
    padding: 20px;
    border-radius: 0 0 10px 10px;
}

/* Изображения страниц */
.accordion-body img {
    max-width: 100%;
    height: auto;
    border: 1px solid #d2b48c;
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
    margin-bottom: 20px;
}

/* Убираем синий фокус Bootstrap */
.accordion-button:focus {
    box-shadow: none;
    border-color: #d2b48c;
}

/* === УБИРАЕМ ПУСТУЮ ОБЛАСТЬ ПОД ЗАКРЫТЫМ АККОРДЕОНОМ === */

/* Контейнер аккордеона — прозрачный */
.accordion {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 20px; /* оставляем только внешний отступ */
}

/* Кнопка — теперь она сама выглядит как блок */
.accordion-button {
    background: #f9f2e6 !important;
    border: 1px solid #d2b48c !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12) !important;
}

/* Когда закрыто — убираем нижнюю рамку */
.accordion-button.collapsed {
    border-bottom: 1px solid #d2b48c !important;
}

/* Тело аккордеона — фон только когда открыто */
.accordion-body {
    background: #fdf6e8 !important;
    border: 1px solid #d2b48c !important;
    border-top: none !important;
    border-radius: 0 0 10px 10px !important;
}

/* === ВОЗВРАЩАЕМ ТЁМНОЕ ВЫДЕЛЕНИЕ ПРИ НАВЕДЕНИИ === */

.accordion-button {
    background: #f9f2e6 !important;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.accordion-button:hover {
    background: #e8d7bd !important; /* заметно темнее */
    box-shadow: 0 4px 10px rgba(0,0,0,0.18) !important;
}

/* Активное состояние (когда открыто) */
.accordion-button:not(.collapsed) {
    background: #e6d3b8 !important;
    color: #3b2a1a !important;
}

/* === ОБЩИЙ КОНТЕЙНЕР правки страницы книги, украшательства === */
.book-page-wrapper {
    margin-bottom: 30px;
}

/* === ДЕКОРАТИВНЫЙ ЗАГОЛОВОК === */
.book-title-decor {
    text-align: center;
    margin-bottom: 20px;
}

.book-title-main {
    font-family: "Georgia", serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #3b2a1a;
    margin: 0;
    padding: 10px 0;
    border-top: 2px solid #d2b48c;
    border-bottom: 2px solid #d2b48c;
}

/* === ОБЛОЖКА КНИГИ === */
.book-cover-block {
    text-align: center;
    margin: 25px 0;
}

.book-cover-block img {
    max-width: 260px;
    border: 1px solid #d2b48c;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

/* === МЕТАДАННЫЕ === */
.book-meta-block {
    background: #fdf6e8;
    border: 1px solid #d2b48c;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 25px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.book-meta-row {
    font-size: 1.15rem;
    color: #4a3b2a !important; /* обычный текст */
    margin-bottom: 6px;
}

.book-meta-row span {
    font-weight: 600;
    color: #3b2a1a !important; /* названия полей */
    display: inline-block;
    width: 160px;
}

/* === КНОПКА СКАЧАТЬ === */
.book-download-block {
    text-align: center;
    margin-bottom: 25px;
}

.book-download-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #8b5a2b;
    color: #fdf6e8 !important;
    border-radius: 999px;
    border: 1px solid #6b4b2b;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
    transition: 0.2s ease;
}

.book-download-btn:hover {
    background: #a86b33;
    transform: translateY(-1px);
}

/* === ДЕКОРАТИВНАЯ ЛИНИЯ === */
.book-divider {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent, #c49a6c, transparent);
    margin: 30px 0;
}


/* === КНОПКА "ПОДРОБНЕЕ" В СТИЛЕ САЙТА === */

.readmore a,
.readmore > a,
a.readmore {
    display: inline-block;
    padding: 8px 18px;
    background: #8b5a2b;
    color: #fdf6e8 !important;
    border-radius: 999px;
    border: 1px solid #6b4b2b;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
    transition: 0.2s ease;
    text-decoration: none !important;
}

.readmore a:hover,
a.readmore:hover {
    background: #a86b33;
    transform: translateY(-1px);
}

/* === РАМКА НА ГЛАВНОЙ ТУТ === */

.com-content-category-blog {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.com-content-category-blog .blog-item {
    background: #f9f2e6;
    border: 1px solid #d2b48c;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    padding: 20px;
    margin-bottom: 24px;
}

/* Убираем рамки у внутренних элементов, чтобы не было двойной */
.com-content-category-blog .blog-item .item,
.com-content-category-blog .blog-item .item-content,
.com-content-category-blog .blog-item .page-header,
.com-content-category-blog .blog-item .card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* === ФОРМА ОБРАТНОЙ СВЯЗИ В КЛАССИЧЕСКОМ СТИЛЕ === */

.com-contact {
    background: #f9f2e6;
    border: 1px solid #d2b48c;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    padding: 25px 28px;
    margin-bottom: 30px;
}

/* Заголовок формы */
.com-contact h1,
.com-contact h2,
.com-contact h3 {
    text-align: center;
    font-family: "Georgia", serif;
    color: #3b2a1a;
    margin-bottom: 20px;
    border-bottom: 2px solid #d2b48c;
    padding-bottom: 8px;
}

/* Подписи полей */
.com-contact label {
    font-weight: 600;
    color: #3b2a1a;
    margin-bottom: 6px;
    display: block;
    font-size: 1rem;
}

/* Поля ввода */
.com-contact input[type="text"],
.com-contact input[type="email"],
.com-contact input[type="tel"],
.com-contact textarea {
    width: 100%;
    background: #fdf6e8;
    border: 1px solid #d2b48c;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 1rem;
    color: #4a3b2a;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.08);
    transition: 0.2s ease;
}

/* Наведение и фокус */
.com-contact input:focus,
.com-contact textarea:focus {
    border-color: #b68a55;
    box-shadow: 0 0 6px rgba(182,138,85,0.4);
    outline: none;
}

/* Текстовое поле */
.com-contact textarea {
    min-height: 140px;
    resize: vertical;
}

/* Кнопка отправки */
.com-contact button,
.com-contact input[type="submit"] {
    display: inline-block;
    padding: 10px 22px;
    background: #8b5a2b;
    color: #fdf6e8 !important;
    border-radius: 999px;
    border: 1px solid #6b4b2b;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
    transition: 0.2s ease;
    cursor: pointer;
    margin-top: 10px;
}

.com-contact button:hover,
.com-contact input[type="submit"]:hover {
    background: #a86b33;
    transform: translateY(-1px);
}

/* Сообщения об ошибках */
.com-contact .invalid {
    border-color: #b44a3a !important;
    background: #fbe9e6 !important;
}

.com-contact .invalid + .invalid-feedback {
    color: #b44a3a;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* === КАРТОЧКИ КНИГ — УЛУЧШЕННЫЙ ВИД === */

.com-content-category-blog .blog-item {
    background: #f9f2e6;
    border: 1px solid #d2b48c;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    padding: 20px;
    margin-bottom: 24px;
    transition: 0.25s ease;
    min-height: 420px; /* одинаковая высота карточек */
}

/* Эффект наведения */
.com-content-category-blog .blog-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 22px rgba(0,0,0,0.18);
}


/* Заголовок книги */
.com-content-category-blog .blog-item h2,
.com-content-category-blog .blog-item .page-header h2 {
    text-align: center;
    font-size: 1.7rem;
    color: #3b2a1a;
    margin-bottom: 10px;
}

/* Декоративная линия под заголовком */
.com-content-category-blog .blog-item h2::after {
    content: "";
    display: block;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c49a6c, transparent);
    margin: 8px auto 14px auto;
}

/* Кнопка "Подробнее" */
.com-content-category-blog .blog-item .readmore a {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(#8b5a2b, #7a4f26);
    color: #fdf6e8 !important;
    border-radius: 999px;
    border: 1px solid #6b4b2b;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
    transition: 0.2s ease;
}

.com-content-category-blog .blog-item .readmore a:hover {
    background: linear-gradient(#a86b33, #8b5a2b);
    transform: translateY(-1px);
}

/* 1. Уменьшаем шапку */
.container-header {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* 2. Ограничиваем высоту */
.navbar-brand {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
	padding: 0 !important;
    line-height: 0 !important;
}

/* 3. Управляем логотипом */
.logo {
    max-height: 58px;
    width: auto;
	 
}

/* Центрируем весь блок шапки */
.container-header .grid-child {
    display: flex;
    justify-content: center-left;
}

/* Центрируем логотип */
.navbar-brand {
    margin: 0 auto;
    display: flex;
    justify-content: center-left;
    align-items: center-left;
}

/* Центрируем ссылку внутри */
.navbar-brand a {
    display: flex;
    justify-content: center-left;
}

/* Картинка логотипа занимает реальную область клика */
.navbar-brand img.logo {
    display: block !important;
}



/* Поле поиска !!!! */
.mod-finder__search .form-control {
    background-color: #f5efe6;
    border: 1px solid #d6c3a3;
    border-radius: 8px;
    color: #5a3e1b;
    padding: 8px 12px;
}

/* При фокусе */
.mod-finder__search .form-control:focus {
    border-color: #8B5A2B;
    box-shadow: 0 0 0 2px rgba(139, 90, 43, 0.15);
    outline: none;
}

/* Кнопка */
.mod-finder__search .btn {
    background-color: #8B5A2B;
    border: none;
    color: #fff;
    border-radius: 8px;
    padding: 8px 14px;
    margin-left: 6px;
    transition: 0.2s;
}

/* Ховер кнопки */
.mod-finder__search .btn:hover {
    background-color: #6e4521;
}

/* Убираем синий Bootstrap */
.mod-finder__search .btn-primary {
    background-color: #8B5A2B !important;
}

/* Выравнивание */
.mod-finder__search {
    display: flex;
    align-items: center;
}

/* Аналитика */
#cookieNotice {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    
    background: #f5efe6;
    border: 1px solid #d6c3a3;
    border-radius: 12px;
    
    padding: 12px 16px;
    max-width: 520px;
    
    font-size: 14px;
    color: #5a3e1b;
    
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 9999;
}

#cookieNotice button {
    background: #8B5A2B;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    cursor: pointer;
}

#cookieNotice button:hover {
    background: #6e4521;
}

#cookieNotice a {
    color: #8B5A2B;
    text-decoration: underline;
}

/* Выравнивание меню */
.mod-menu li {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.mod-menu li a {
    display: block;
    padding: 6px 10px !important;
    white-space: normal !important; /* снова разрешаем перенос */
    line-height: 1.35;
}

/* === ВЫРАВНИВАНИЕ МЕТАДАННЫХ КНИГИ === */

.book-meta-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px;
    line-height: 1.45;
    margin-bottom: 6px;
}

.book-meta-row span {
    width: 200px; /* можно 160px, но 200px выглядит лучше */
    flex-shrink: 0;
    font-weight: 600;
    color: #3b2a1a;
    line-height: 1.45;
}

/* Чтобы длинные строки справа переносились красиво */
.book-meta-row {
    word-break: break-word;
    white-space: normal !important;
}

/* footer */
.footer-privacy a {
    color: #6b4b2b;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-privacy a:hover {
    color: #8b5a2b;
    text-decoration: underline;
}

.footer-privacy {
    text-align: center;
    margin-top: 6px;
}

.footer-privacy a {
    color: #6b4b2b;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-privacy a:hover {
    color: #8b5a2b;
    text-decoration: underline;
}

/* === КНОПКА "НАВЕРХ" В КЛАССИЧЕСКОМ СТИЛЕ === */

#back-top,
.back-to-top-link {
    position: fixed;
    right: 22px;
    bottom: 22px;

    background: #8b5a2b;
    color: #fdf6e8 !important;

    border: 1px solid #6b4b2b;
    border-radius: 999px;

    padding: 10px 14px;
    font-size: 0.95rem;
    font-family: "Georgia", serif;

    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
    opacity: 0.92;
    transition: 0.25s ease;
    z-index: 999;
}

/* Hover — мягкое подсветление */
#back-top:hover,
.back-to-top-link:hover {
    background: #a86b33;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.22);
    opacity: 1;
}

/* Иконка стрелки — делаем её тёплой */
#back-top svg,
.back-to-top-link svg {
    filter: sepia(40%) hue-rotate(330deg) brightness(0.9);
    width: 20px;
    height: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    #back-top,
    .back-to-top-link {
        right: 14px;
        bottom: 14px;
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* Скрываем кнопку по умолчанию */
#back-top,
.back-to-top-link {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Показываем кнопку, когда Cassiopeia добавляет класс .visible */
#back-top.visible,
.back-to-top-link.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ФОН */
body {
    background-color: #f2e8d5;
    background-image: 
        radial-gradient(rgba(180, 140, 100, 0.08) 1px, transparent 1px),
        radial-gradient(rgba(100, 70, 40, 0.05) 1px, transparent 1px);
    background-size: 40px 40px, 60px 60px;
    background-position: 0 0, 20px 20px;
}

/* === Адаптивная вёрстка метаданных книги для смартфонов === */
@media (max-width: 600px) {

    .book-meta-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
        margin-bottom: 14px !important;
    }

    .book-meta-row span {
        width: auto !important;
        flex-shrink: 1 !important;
        display: block !important;
        margin-bottom: 2px !important;
    }

    .book-meta-row span::after {
        content: ":"; /* красиво отделяет название поля */
    }
}