/*
   Раздел «Книги» (/books, /books/<slug>, /books/order/<token>, /books/offer).
   Подключается только на страницах книг, после style.css. Основа — классы
   каталога и карточки чекапа, FAQ главной, профиля доктора и формы-модалки
   клиники; здесь только раскладка под книги в тех же цветах, шрифтах и радиусах.
*/

/* Атрибут hidden должен прятать и элементы, у которых класс задаёт display (.btn, .checkup-single__actions…) */
main [hidden],
.book-order-modal [hidden] {
    display: none !important;
}

/* --- Автор (блок профиля доктора) --- */
.books-author .about__right {
    padding-top: 20px;
    gap: 30px;
}

.books-author .mission-card__img {
    height: 88%;
}

.books-author .checkup-single__benefits li {
    font-size: 18px;
    margin-bottom: 14px;
}

.books-author .doctor-stat-item {
    gap: 24px;
}

/* те же пропорции 33/42/25, что на главной, но с учётом двух промежутков по 20px — без вылета за контейнер */
.books-author .doctor-stats {
    grid-template-columns: calc(33% - 14px) calc(42% - 13px) calc(25% - 13px);
}

.books-coauthors {
    font-size: 16px;
    line-height: 130%;
    color: var(--default);
}

.books-coauthors__title {
    font-size: 20px;
    letter-spacing: -0.4px;
    margin: 0 0 10px;
}

.books-coauthors p {
    margin: 0 0 6px;
}

.books-coauthors span {
    color: rgba(2, 13, 32, 0.47);
}

/* --- FAQ без автозагрузки общего FAQ сайта (класс faq__list ставит public-books.js) --- */
.books-faq {
    padding: 56px 0 33px;
}

.books-faq__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.books-disclaimer {
    padding: 36px 0 40px;
    text-align: center;
    font-size: 14px;
    line-height: 140%;
    color: rgba(2, 13, 32, 0.47);
}

/* --- Страница книги --- */
.book-single .article-single-breadcrumb {
    margin: 0 0 24px;
}

.book-single__authors {
    font-size: 18px;
    line-height: 120%;
    letter-spacing: -0.36px;
    color: var(--default);
    margin: -10px 0 22px;
}

.book-single__facts {
    margin: 0 0 22px;
}

.book-single__facts .checkup-item__price-row {
    gap: 16px;
    padding: 0 0 11px;
    border-bottom: 1px solid #DCE4EE;
}

.book-single__facts .checkup-item__price-val {
    text-align: right;
}

.book-single__facts a,
.book-order-banner a {
    color: var(--blue);
    text-decoration: underline;
}

.book-single__facts a:hover,
.book-order-banner a:hover {
    color: var(--red);
}

.book-single__price {
    font-family: Arimo;
    font-size: 40px;
    line-height: 100%;
    letter-spacing: -1.2px;
    color: var(--default);
    margin: 0 0 18px;
}

.book-single__price--soldout {
    font-family: inherit;
    font-size: 20px;
    color: var(--red);
}

.book-single__note {
    font-size: 14px;
    line-height: 140%;
    color: rgba(2, 13, 32, 0.47);
    margin: 16px 0 0;
}

.book-text p {
    font-size: 16px;
    font-weight: 300;
    line-height: 140%;
    color: var(--default);
    margin: 0 0 14px;
}

.book-text p:last-child {
    margin-bottom: 0;
}

.book-single .checkup-single__section {
    scroll-margin-top: 96px;
}

.book-single .checkup-single__subtitle {
    margin-bottom: 20px;
}

.book-single .checkup-single__subdesc {
    margin-bottom: 20px;
}

.book-single .faq-item__header {
    padding: 24px 28px;
}

.book-single .faq-item__question {
    font-size: 20px;
}

.book-single .faq-item__body {
    padding: 0 28px;
}

.book-single .faq-item.active .faq-item__body {
    padding: 0 28px 24px;
}

.book-toc {
    list-style: none;
    margin: 0;
    padding: 0;
}

.book-toc li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #DCE4EE;
    font-size: 15px;
    line-height: 130%;
    color: var(--default);
}

.book-toc li:last-child {
    border-bottom: 0;
}

.book-toc span:last-child {
    flex: 0 0 auto;
    color: rgba(2, 13, 32, 0.47);
}

.book-person {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.book-person + .book-person {
    margin-top: 11px;
}

.book-person__photo {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    background: var(--white);
}

.book-person .result-card__title {
    margin-bottom: 10px;
}

.book-person__link {
    display: inline-block;
    margin-top: 12px;
    font-size: 15px;
    color: var(--blue);
    text-decoration: underline;
}

.book-person__link:hover {
    color: var(--red);
}

/* --- Модалка заказа: модалка клиники с полями в две колонки и прокруткой --- */
.book-order-modal {
    max-height: calc(100vh - 32px);
    min-height: 0;
    overflow-y: auto;
    justify-content: flex-start;
    padding: 48px 40px 36px;
}

.book-order-modal .clinic-modal__title {
    font-size: 36px;
    margin: 16px 0 8px;
}

.book-order-modal .clinic-modal__subtitle {
    font-size: 18px;
    margin-bottom: 24px;
}

.book-order-form {
    max-width: 640px;
    align-items: stretch;
    text-align: left;
    margin-bottom: 0;
}

.book-order-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.book-order-form textarea.clinic-modal__input {
    min-height: 84px;
    resize: vertical;
}

.book-order-form .search-autocomplete-dropdown {
    top: calc(100% + 4px);
    max-height: 280px;
    overflow-y: auto;
    padding: 6px 0;
    text-align: left;
}

.book-order-form .search-autocomplete-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.book-order-form .search-autocomplete-item small {
    font-size: 12px;
    color: #7F8D9F;
}

.book-field-hint,
.book-field-error {
    display: block;
    font-size: 13px;
    line-height: 130%;
    margin: 6px 4px 0;
}

.book-field-hint {
    color: #7F8D9F;
}

.book-field-error {
    color: var(--red);
}

.book-field-error:empty {
    display: none;
}

.clinic-modal__input.is-invalid {
    border-color: var(--red);
}

.book-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: var(--white);
    border-radius: 16px;
    border: 1.5px solid #DCE4EE;
    padding: 7px 8px;
}

.book-qty__label {
    padding-left: 12px;
    font-size: 15px;
    color: #7F8D9F;
}

.book-qty__controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.book-qty__value {
    min-width: 28px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

.book-qty__btn {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 32px;
    border: 1px solid #DCE4EE;
    background: var(--white);
    color: var(--default);
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
}
.book-qty__btn:hover {
    border-color: var(--blue);
    color: var(--blue);
}
.book-qty__btn:disabled {
    opacity: 0.4;
    cursor: default;
}
@media (max-width: 576px) {
    .book-qty__btn {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
    }
}

.book-order-form .broadcast-reminder__consent {
    max-width: none;
}

.book-order-form__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 4px 4px 0;
    font-size: 16px;
}

.book-order-form__total .book-field-hint {
    display: inline;
    margin: 0;
}

.book-order-form__total b {
    font-family: Arimo;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.6px;
}

.book-order-form__error {
    font-size: 14px;
    line-height: 140%;
    color: var(--red);
    text-align: center;
}

.book-order-form__error:empty {
    display: none;
}

.book-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.book-order-form .clinic-modal__btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.book-order-modal .clinic-modal__policy {
    margin-top: 12px;
}

/* --- Панель «Купить» на телефоне --- */
.book-buybar {
    display: none;
}

/* --- Страница заказа --- */
.book-order-banner {
    border-radius: 22px;
    padding: 18px 25px;
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 140%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.book-order-banner--success {
    background: #EBF0F7;
    color: var(--default);
}

.book-order-banner--fail {
    background: var(--secondary-bg);
    color: var(--default);
}

.book-order-banner b {
    font-weight: 500;
}

.book-order-banner[hidden] {
    display: none;
}

.book-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.book-steps__item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #F2F5FA;
    border-radius: 16px;
    padding: 16px 20px;
    font-size: 16px;
    line-height: 125%;
    color: rgba(2, 13, 32, 0.47);
}

.book-steps__item::before {
    content: "";
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    background: #DCE4EE;
}

.book-steps__item.is-done {
    color: var(--default);
}

.book-steps__item.is-done::before {
    background: var(--blue);
}

.book-steps__item.is-current {
    background: #EBF0F7;
    color: var(--default);
    font-weight: 500;
}

.book-steps__item.is-current::before {
    background: var(--red);
}

.book-steps__item small {
    display: block;
    font-weight: 400;
    font-size: 14px;
    color: rgba(2, 13, 32, 0.47);
    margin-top: 2px;
}

.book-order-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.book-order-links a {
    font-size: 15px;
    color: var(--blue);
    text-decoration: underline;
}

.book-order-links a:hover {
    color: var(--red);
}

/* --- Адаптив --- */
@media (max-width: 1200px) {
    .books-hero .hero__title {
        font-size: 44px;
    }

    .books-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .book-card .checkup-item__img-box {
        flex: 0 0 auto;
        padding: 22px 22px 0;
    }

    .book-card .checkup-item__img {
        display: block;
        max-width: 200px;
        margin: 0 auto;
    }
}

@media (max-width: 992px) {
    .books-hero .hero-row {
        padding: 24px 0 40px;
    }

    .books-hero .hero__title {
        font-size: 38px;
    }

    .books-facts {
        grid-template-columns: repeat(2, 1fr);
    }

    .books-author .about__right {
        padding: 0;
    }

    .book-single .checkup-single__img {
        max-width: 360px;
        max-height: none;
        margin: 0 auto;
        display: block;
    }

    .book-buybar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 15;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.96);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        box-shadow: 0 -10px 24px -18px rgba(2, 13, 32, 0.35);
    }

    .book-buybar[hidden] {
        display: none;
    }

    .book-buybar__price {
        font-family: Arimo;
        font-size: 24px;
        letter-spacing: -0.5px;
        white-space: nowrap;
    }

    .book-buybar .btn {
        padding: 14px 28px;
    }

    .book-buybar-spacer {
        height: 76px;
    }
}

@media (max-width: 768px) {
    .books-grid-2 {
        grid-template-columns: 1fr;
    }

    .book-order-modal {
        padding: 40px 20px 24px;
    }

    .book-order-modal .clinic-modal__title {
        font-size: 28px;
    }

    .book-order-form__row {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 576px) {
    .all-checkups__grid.books-grid,
    .all-checkups__grid.books-grid--single,
    .books-grid-4 {
        grid-template-columns: 1fr;
    }

    .books-hero .hero__title {
        font-size: 30px;
        letter-spacing: -0.8px;
    }

    .books-hero__covers {
        gap: 12px;
    }

    .books-facts .result-card__title {
        font-size: 30px;
    }

    .books-section {
        padding-top: 40px;
    }

    .book-single__price {
        font-size: 32px;
    }

    .book-single .checkup-single__img {
        max-width: 220px;
    }

}

/* =====================================================================
   Вид «Витрины» (вариант A, выбран владельцем 3.11.2026): атмосферный
   первый экран главной, цветные панели «Как устроена платформа», крупная
   типографика Arimo с красными акцентами, объёмные обложки.
   ===================================================================== */

/* --- Объёмная обложка --- */
.bk-book3d {
    position: relative;
    display: block;
    aspect-ratio: 1431 / 2091;
    border-radius: 3px 10px 10px 3px;
    transform: perspective(1800px) rotateY(-16deg);
    transform-origin: left center;
    box-shadow: 28px 34px 60px rgba(2, 13, 32, 0.3), 8px 10px 18px rgba(2, 13, 32, 0.18);
    transition: transform var(--transition-slow);
}
.bk-book3d img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}
.bk-book3d::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .38) 0, rgba(255, 255, 255, .22) 1.8%, rgba(0, 0, 0, .1) 4%, transparent 8%),
        linear-gradient(180deg, rgba(255, 255, 255, .1), transparent 30%);
    pointer-events: none;
}
a:hover > .bk-book3d,
.bk-book3d:hover {
    transform: perspective(1800px) rotateY(-8deg);
}

/* --- Общие мелочи --- */
.bk-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 15px;
    line-height: 110%;
    letter-spacing: -0.3px;
}
.bk-sq {
    flex: 0 0 auto;
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--red);
}
.bk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.bk-actions .platform-btn {
    margin: 0;
}
.platform-btn--ghost-white {
    background: transparent;
    color: var(--white);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7);
}
.platform-btn--ghost-white:hover {
    background: rgba(255, 255, 255, .12);
}
.platform-btn--ghost {
    background: transparent;
    color: var(--default);
    box-shadow: inset 0 0 0 1.5px rgba(2, 13, 32, .18);
}
.platform-btn--ghost:hover {
    background: rgba(2, 13, 32, .04);
}
.bk-section {
    padding: 90px 0 0;
}
.bk-title {
    font-family: Arimo;
    font-size: 59px;
    font-weight: 400;
    line-height: 95%;
    letter-spacing: -1.77px;
    color: var(--default);
    margin-bottom: 40px;
}
.bk-title--center {
    text-align: center;
}

/* --- Первый экран посадочной --- */
.bk-hero {
    position: relative;
    padding: 84px 0 0;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    /* Пастель сайта (розовый → голубой, как фон входа), синее свечение за обложками,
       светлый блик и тёплый красный акцент снизу — без картинки, только градиенты. */
    background:
        linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .45) 47%, rgba(255, 255, 255, 0) 58%),
        radial-gradient(36% 62% at 79% 44%, rgba(92, 131, 195, .55) 0%, rgba(92, 131, 195, 0) 74%),
        radial-gradient(30% 40% at 96% 6%, rgba(92, 131, 195, .30) 0%, rgba(92, 131, 195, 0) 70%),
        radial-gradient(34% 48% at 56% 104%, rgba(237, 50, 55, .18) 0%, rgba(237, 50, 55, 0) 70%),
        radial-gradient(46% 64% at 0% 0%, #FFEDEE 0%, rgba(255, 237, 238, 0) 72%),
        linear-gradient(118deg, #F9EEF3 0%, #EDEFFA 46%, #D6E3F6 100%);
}
.bk-hero::after { /* мягкая «полка»: тень под обложками */
    content: "";
    position: absolute;
    left: 52%;
    right: 4%;
    bottom: 40px;
    height: 90px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(2, 13, 32, .14) 0%, rgba(2, 13, 32, 0) 100%);
    pointer-events: none;
}

.bk-hero .container {
    position: relative;
    z-index: 1;
}
.bk-hero__row {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: 640px;
}
.bk-hero .hero_badge {
    margin-bottom: 24px;
}
.bk-hero__title {
    font-family: Arimo;
    font-size: 68px;
    font-weight: 400;
    line-height: 88%;
    letter-spacing: -2px;
    color: var(--default);
    margin: 0 0 28px;
}
.bk-hero__title em,
.bk-quote__text em {
    font-style: normal;
    color: var(--red);
}
.bk-hero__lead {
    max-width: 520px;
    margin-bottom: 36px;
    font-size: 20px;
    line-height: 125%;
    letter-spacing: -0.4px;
    color: rgba(2, 13, 32, .8);
}
.bk-hero__books {
    position: relative;
    height: 560px;
}
.bk-hero__book {
    position: absolute;
    display: block;
}
.bk-hero__book--back {
    width: 300px;
    left: 4%;
    top: 70px;
}
.bk-hero__book--back .bk-book3d {
    transform: perspective(1800px) rotateY(-22deg) rotateZ(-4deg);
}
.bk-hero__book--front {
    width: 330px;
    right: 6%;
    top: 20px;
    z-index: 2;
}
.bk-hero__book--front .bk-book3d {
    transform: perspective(1800px) rotateY(-18deg) rotateZ(3deg);
}
.bk-hero__book:hover .bk-book3d {
    transform: perspective(1800px) rotateY(-8deg);
}
.bk-glass {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 70px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: var(--card-shadow);
    font-size: 16px;
    line-height: 120%;
}
.bk-glass b {
    font-family: Arimo;
    font-size: 22px;
    font-weight: 400;
}

/* --- Цитата --- */
.bk-quote {
    padding: 120px 0 100px;
    text-align: center;
}
.bk-quote__text {
    max-width: 980px;
    margin: 0 auto 22px;
    font-family: Arimo;
    font-size: 44px;
    line-height: 104%;
    letter-spacing: -1.2px;
    color: var(--default);
}
.bk-quote__src {
    font-size: 15px;
    color: var(--gray);
}

/* --- Витрина: цветная панель книги --- */
.bk-shelf .platform-header {
    margin-bottom: 40px;
}
.bk-shelf__list {
    display: grid;
    gap: 20px;
}
.bk-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    min-height: 520px;
    padding: 56px 0 56px 56px;
    border-radius: 28px;
    color: var(--white);
}
.bk-panel--blue {
    background: linear-gradient(115deg, #4B72B2 0%, var(--blue) 45%, #8DB0EA 100%);
}
.bk-panel--red {
    background: linear-gradient(115deg, #D9262C 0%, var(--red) 45%, #F7777A 100%);
}
.bk-panel__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}
.bk-panel__meta .bk-chip {
    background: rgba(255, 255, 255, .18);
    color: var(--white);
}
.bk-panel__title {
    max-width: 600px;
    margin-bottom: 16px;
    font-family: Arimo;
    font-size: 46px;
    font-weight: 400;
    line-height: 92%;
    letter-spacing: -1.2px;
}
.bk-panel__title a {
    color: inherit;
}
.bk-panel__authors {
    margin-bottom: 22px;
    font-size: 17px;
    opacity: .85;
}
.bk-panel__desc {
    max-width: 520px;
    margin-bottom: 34px;
    font-size: 19px;
    line-height: 125%;
    letter-spacing: -0.3px;
    opacity: .92;
}
.bk-panel__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 22px;
}
.bk-panel__price b {
    font-family: Arimo;
    font-size: 52px;
    font-weight: 400;
    letter-spacing: -1.5px;
    line-height: 100%;
}
.bk-panel__cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.bk-panel__cover .bk-book3d {
    width: 300px;
}
.bk-panel__cover::before {
    content: attr(data-word);
    position: absolute;
    right: 24px;
    bottom: -18px;
    font-family: Arimo;
    font-size: 150px;
    line-height: 1;
    letter-spacing: -6px;
    color: rgba(255, 255, 255, .12);
    white-space: nowrap;
    pointer-events: none;
}

/* --- Крупные номера: «Почему эти книги», «Что внутри» --- */
.bk-nums {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
}
.bk-nums--3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 36px;
}
.bk-num__n {
    margin-bottom: 18px;
    font-family: Arimo;
    font-size: 64px;
    line-height: 100%;
    letter-spacing: -2px;
    color: var(--red);
}
.bk-num__title {
    margin-bottom: 10px;
    font-size: 22px;
    line-height: 115%;
    letter-spacing: -0.4px;
    color: var(--default);
}
.bk-num__text {
    font-size: 16px;
    line-height: 135%;
    color: rgba(2, 13, 32, .65);
}

/* --- Для кого --- */
.bk-audience {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: start;
}
.bk-audience .bk-title {
    margin-bottom: 18px;
}
.bk-audience__note {
    max-width: 420px;
    font-size: 17px;
    line-height: 135%;
    color: rgba(2, 13, 32, .65);
}
.bk-audience__list {
    display: grid;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.bk-audience__list li {
    display: grid;
    grid-template-columns: 10px 1fr;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(2, 13, 32, .08);
    font-size: 24px;
    line-height: 120%;
    letter-spacing: -0.5px;
}
.bk-audience__list li:first-child {
    border-top: 1px solid rgba(2, 13, 32, .08);
}
.bk-audience__list li::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-top: 10px;
    background: var(--red);
}

/* --- Синяя панель «Как купить» --- */
.bk-steps {
    padding: 56px;
    border-radius: 28px;
    color: var(--white);
    background: linear-gradient(115deg, #4B72B2 0%, var(--blue) 45%, #8DB0EA 100%);
}
.bk-steps .bk-title {
    color: var(--white);
}
.bk-steps__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.bk-step {
    padding: 26px 24px 28px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .14);
}
.bk-step__n {
    margin-bottom: 40px;
    font-family: Arimo;
    font-size: 44px;
    line-height: 100%;
    letter-spacing: -1px;
}
.bk-step__title {
    margin-bottom: 10px;
    font-size: 21px;
    line-height: 115%;
    letter-spacing: -0.4px;
}
.bk-step__text {
    font-size: 16px;
    line-height: 135%;
    opacity: .88;
}

/* --- Красный баннер --- */
.bk-cta {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    min-height: 380px;
    padding: 64px 56px;
    border-radius: 28px;
    color: var(--white);
    /* фон баннера с картой на главной (.map-banner-card), без точек лабораторий */
    background: url('/src/img/map.svg') center / cover no-repeat, linear-gradient(231deg, #ED3237 41.75%, #FF777B 129.55%);
}
.bk-cta__title {
    max-width: 640px;
    font-family: Arimo;
    font-size: 56px;
    font-weight: 400;
    line-height: 92%;
    letter-spacing: -1.6px;
}
.bk-cta__side {
    max-width: 320px;
    font-size: 18px;
    line-height: 125%;
}
.bk-cta__side .platform-btn {
    margin-top: 20px;
}

/* --- Страница книги: первый экран на цветной панели --- */
.bk-bookhero {
    padding: 104px 0 0;
}
.bk-bookhero__panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 30px;
    min-height: 600px;
    padding: 40px 0 56px 56px;
    border-radius: 28px;
    color: var(--white);
    background: linear-gradient(115deg, #4B72B2 0%, var(--blue) 45%, #8DB0EA 100%);
}
[data-book-tone="red"] .bk-bookhero__panel {
    background: linear-gradient(115deg, #D9262C 0%, var(--red) 45%, #F7777A 100%);
}
.bk-bookhero .article-single-breadcrumb {
    margin-bottom: 34px;
}
.bk-bookhero .article-single-breadcrumb__link,
.bk-bookhero .article-single-breadcrumb__sep,
.bk-bookhero .article-single-breadcrumb__current {
    color: rgba(255, 255, 255, .8);
}
.bk-bookhero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.bk-bookhero__meta .bk-chip {
    background: rgba(255, 255, 255, .18);
    color: var(--white);
}
.bk-bookhero__title {
    max-width: 680px;
    margin-bottom: 18px;
    font-family: Arimo;
    font-size: 54px;
    font-weight: 400;
    line-height: 92%;
    letter-spacing: -1.6px;
}
.bk-bookhero__subtitle {
    margin-bottom: 8px;
    font-size: 19px;
    line-height: 125%;
    opacity: .92;
}
.bk-bookhero__authors {
    margin-bottom: 28px;
    font-size: 17px;
    opacity: .85;
}
.bk-bookhero__price {
    margin-bottom: 28px;
    font-family: Arimo;
    font-size: 56px;
    line-height: 100%;
    letter-spacing: -1.6px;
}
.bk-bookhero__price--soldout {
    font-family: "Inter Display", sans-serif;
    font-size: 24px;
    letter-spacing: -0.4px;
}
.bk-bookhero__note {
    margin-top: 18px;
    font-size: 14px;
    line-height: 130%;
    opacity: .78;
}
.bk-bookhero__cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.bk-bookhero__cover .bk-book3d {
    width: 340px;
}
.bk-bookhero__cover::before {
    content: attr(data-word);
    position: absolute;
    right: 24px;
    bottom: -40px;
    font-family: Arimo;
    font-size: 180px;
    line-height: 1;
    letter-spacing: -6px;
    color: rgba(255, 255, 255, .12);
    pointer-events: none;
}

.bk-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 48px;
    padding: 34px 0 0;
}
.bk-facts div {
    font-size: 15px;
    color: var(--gray);
}
.bk-facts b {
    display: block;
    margin-top: 6px;
    font-family: Arimo;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.6px;
    color: var(--default);
}

/* «О книге»: крупный текст, рецензенты сбоку */
.bk-about {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}
.bk-about .book-text p {
    font-size: 20px;
    line-height: 140%;
    letter-spacing: -0.3px;
    color: var(--default);
}
.bk-about .book-text p:first-child {
    font-size: 26px;
    line-height: 125%;
    letter-spacing: -0.5px;
}
.bk-aside {
    position: sticky;
    top: 100px;
    padding: 30px;
    border-radius: 24px;
    background: #F4F7FB;
}
.bk-aside__title {
    margin-bottom: 18px;
    font-size: 15px;
    color: var(--gray);
}
.bk-aside .bk-person + .bk-person {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(2, 13, 32, .08);
}

/* Люди: авторы и рецензенты */
.bk-people {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.bk-person {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.bk-people .bk-person {
    padding: 28px;
    border-radius: 24px;
    background: #F4F7FB;
}
.bk-person__photo {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--white);
}
.bk-person__name {
    margin-bottom: 8px;
    font-family: Arimo;
    font-size: 24px;
    font-weight: 400;
    line-height: 105%;
    letter-spacing: -0.5px;
    color: var(--default);
}
.bk-aside .bk-person__name {
    font-size: 19px;
}
.bk-person__regalia {
    font-size: 15px;
    line-height: 140%;
    color: rgba(2, 13, 32, .65);
}
.bk-person__link {
    display: inline-block;
    margin-top: 12px;
    font-size: 15px;
    color: var(--blue);
}
.bk-person__link:hover {
    text-decoration: underline;
}

/* Читалка и оглавление на странице книги */
.bk-reader-section .bk-title {
    margin-bottom: 14px;
}
.bk-reader-section__lead {
    margin-bottom: 30px;
    font-size: 18px;
    color: var(--gray);
}
.bk-toc .faq-item__question {
    font-size: 22px;
}

/* Мобильная панель «Купить» на странице книги — без изменений (.book-buybar) */

/* --- Страница заказа: обложка объёмом --- */
.book-order__cover.bk-book3d,
.bk-order-cover {
    width: 100%;
    max-width: 300px;
}

/* --- Адаптив --- */
@media (max-width: 1200px) {
    .bk-hero__title { font-size: 56px; }
    .bk-nums { grid-template-columns: repeat(2, 1fr); }
    .bk-steps__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
    .bk-section { padding-top: 64px; }
    .bk-title { font-size: 40px; margin-bottom: 28px; }
    .bk-hero__row,
    .bk-panel,
    .bk-bookhero__panel,
    .bk-about,
    .bk-audience { grid-template-columns: 1fr; }
    .bk-hero__row { min-height: 0; gap: 0; padding: 30px 0 36px; }
    .bk-hero__books { order: -1; height: 340px; margin-bottom: 22px; }
    .bk-hero {
        background:
            radial-gradient(70% 34% at 52% 24%, rgba(92, 131, 195, .55) 0%, rgba(92, 131, 195, 0) 74%),
            radial-gradient(60% 30% at 100% 100%, rgba(237, 50, 55, .14) 0%, rgba(237, 50, 55, 0) 70%),
            radial-gradient(70% 30% at 0% 0%, #FFEDEE 0%, rgba(255, 237, 238, 0) 72%),
            linear-gradient(170deg, #F9EEF3 0%, #EDEFFA 40%, #DCE6F7 100%);
    }
    .bk-hero::after { left: 10%; right: 10%; top: 370px; bottom: auto; height: 60px; }
    /* пара обложек по центру при любой ширине: 190 + 210 с нахлёстом ~60px ≈ 340px */
    .bk-hero__book--back { width: 190px; left: calc(50% - 170px); top: 40px; }
    .bk-hero__book--front { width: 210px; left: calc(50% - 40px); right: auto; top: 6px; }
    .bk-glass { right: 50%; bottom: 0; transform: translateX(50%); white-space: nowrap; padding: 12px 18px; }
    .bk-glass b { font-size: 18px; }
    .bk-hero__title { font-size: 42px; margin-bottom: 20px; }
    .bk-hero__lead { font-size: 18px; margin-bottom: 26px; }
    .bk-quote { padding: 70px 0 60px; }
    .bk-quote__text { font-size: 28px; }
    .bk-panel { min-height: 0; padding: 32px 22px 0; }
    .bk-panel__title { font-size: 34px; }
    .bk-panel__desc { font-size: 17px; margin-bottom: 26px; }
    .bk-panel__price b { font-size: 40px; }
    .bk-panel__cover { padding: 34px 0 44px; }
    .bk-panel__cover .bk-book3d { width: 210px; }
    .bk-panel__cover::before { font-size: 110px; }
    .bk-nums--3 { grid-template-columns: repeat(2, 1fr); }
    .bk-num__n { font-size: 44px; margin-bottom: 12px; }
    .bk-audience__list li { font-size: 20px; padding: 16px 0; }
    .bk-steps { padding: 32px 22px; }
    .bk-cta { flex-direction: column; align-items: flex-start; min-height: 0; padding: 40px 22px; }
    .bk-cta__title { font-size: 38px; }
    .bk-bookhero { padding-top: 90px; }
    .bk-bookhero .article-single-breadcrumb { display: none; }
    .bk-bookhero__panel { min-height: 0; gap: 0; padding: 26px 22px 0; }
    .bk-bookhero__cover { order: -1; padding: 10px 0 30px; }
    .bk-bookhero__cover .bk-book3d { width: 200px; }
    .bk-bookhero__cover::before { font-size: 110px; bottom: -20px; }
    .bk-bookhero__title { font-size: 36px; }
    .bk-bookhero__price { font-size: 42px; }
    .bk-bookhero__info { padding-bottom: 32px; }
    .bk-about { gap: 30px; }
    .bk-about .book-text p:first-child { font-size: 21px; }
    .bk-about .book-text p { font-size: 17px; }
    .bk-aside { position: static; }
    .bk-actions .platform-btn { flex: 1 1 100%; }
}
@media (max-width: 600px) {
    .bk-nums,
    .bk-nums--3,
    .bk-steps__grid { grid-template-columns: 1fr; }
    .bk-step__n { margin-bottom: 18px; }
}

/* --- Страница заказа в виде «Витрины» --- */
.bk-book3d:has(> img[hidden]) {
    display: none;
}
.bk-orderhero {
    min-height: 520px;
}
.bk-orderhero__facts {
    max-width: 560px;
    margin: 6px 0 28px;
}
.bk-bookhero__panel .checkup-item__price-row {
    border-color: rgba(255, 255, 255, .22);
}
.bk-bookhero__panel .checkup-item__price-label {
    color: rgba(255, 255, 255, .72);
}
.bk-bookhero__panel .checkup-item__price-val,
.bk-bookhero__panel .checkup-item__price-val a {
    color: var(--white);
}
.bk-bookhero__panel .book-order-form__error {
    color: var(--white);
}
.bk-bookhero__panel .book-order-links a {
    color: var(--white);
}
.book-order .book-order-banner {
    margin-bottom: 20px;
}
.bk-order-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.bk-order-help {
    margin: 36px 0 0;
}
@media (max-width: 1024px) {
    .bk-orderhero { min-height: 0; }
    .bk-order-grid { grid-template-columns: 1fr; gap: 10px; }
}

.bk-order-details {
    padding-bottom: 70px;
}

/* =====================================================================
   Читалка отрывка в виде книги (StPageFlip): обложка → развороты →
   «конец фрагмента» → задняя обложка. Владелец, 3.11.2026: «как книга,
   две страницы с возможностью перелистнуть».
   ===================================================================== */
.bk-reader {
    position: relative;
}
.bk-reader__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 56px 32px;
    overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(50% 60% at 50% 45%, rgba(92, 131, 195, .22) 0%, rgba(92, 131, 195, 0) 75%),
        linear-gradient(160deg, #F7F1F5 0%, #EEF1F9 50%, #E2EAF7 100%);
}
.bk-reader__state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-size: 17px;
    color: var(--gray);
}
.bk-reader__state .platform-btn {
    margin: 0;
}
.bk-reader[data-state="loading"] .bk-reader__shift,
.bk-reader[data-state="error"] .bk-reader__shift {
    position: absolute;
    visibility: hidden;
}
.bk-reader__shift {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    transition: transform .6s cubic-bezier(.25, .8, .25, 1);
}
/* Закрытая книга — по центру, а не на правой половине разворота */
.bk-reader__shift[data-pos="cover"] {
    transform: translateX(-25%);
}
.bk-reader__shift[data-pos="back"] {
    transform: translateX(25%);
}
.bk-reader__book {
    width: 100%;
    margin: 0 auto;
}
.bk-reader__book .stf__parent,
.bk-reader__book.stf__parent {
    filter: drop-shadow(0 24px 40px rgba(2, 13, 32, .22));
}

/* Страницы */
.bk-page {
    overflow: hidden;
    background: #FFFFFF;
    -webkit-user-select: none;
    user-select: none;
}
.bk-page img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
    pointer-events: none;
}
.bk-page--pdf img:not([src]) {
    visibility: hidden;
}
.bk-page__loading {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 3px solid rgba(92, 131, 195, .25);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: bk-spin .9s linear infinite;
}
.bk-page--ready .bk-page__loading {
    display: none;
}
@keyframes bk-spin {
    to { transform: rotate(360deg); }
}
/* Корешок: тень у сгиба разворота */
.bk-page.--left::after,
.bk-page.--right::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 8%;
    pointer-events: none;
}
.bk-page.--left::after {
    right: 0;
    background: linear-gradient(270deg, rgba(2, 13, 32, .16), rgba(2, 13, 32, 0));
}
.bk-page.--right::after {
    left: 0;
    background: linear-gradient(90deg, rgba(2, 13, 32, .16), rgba(2, 13, 32, 0));
}
.bk-page--cover::after,
.bk-page--back::after {
    display: none;
}
.bk-page--cover {
    border-radius: 3px 8px 8px 3px;
}
.bk-page--blank {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F7F5F1;
    text-align: center;
    font-size: 13px;
    line-height: 150%;
    letter-spacing: .4px;
    color: rgba(2, 13, 32, .35);
}
.bk-page--end {
    background: #FFFFFF;
}
.bk-page__end {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    padding: 12% 12%;
}
.bk-page__end .bk-sq {
    margin-bottom: 22px;
}
.bk-page__end-title {
    margin-bottom: 14px;
    font-family: Arimo;
    font-size: clamp(22px, 2.4vw, 32px);
    line-height: 100%;
    letter-spacing: -0.8px;
    color: var(--default);
}
.bk-page__end-text {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 140%;
    color: rgba(2, 13, 32, .65);
}
.bk-page__end-price {
    margin-bottom: 18px;
    font-family: Arimo;
    font-size: clamp(26px, 3vw, 40px);
    letter-spacing: -1px;
    line-height: 100%;
    color: var(--default);
}
.bk-page__end .platform-btn {
    margin: 0;
}
.bk-page--back {
    color: var(--white);
    border-radius: 8px 3px 3px 8px;
    background: linear-gradient(115deg, #4B72B2 0%, var(--blue) 45%, #8DB0EA 100%);
}
.bk-page--back.bk-page--red {
    background: linear-gradient(115deg, #D9262C 0%, var(--red) 45%, #F7777A 100%);
}
.bk-page__back {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    height: 100%;
    padding: 12%;
    font-size: 14px;
    line-height: 130%;
    opacity: .92;
}
.bk-page__back b {
    margin-bottom: auto;
    font-family: Arimo;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.5px;
}

/* Панель управления */
.bk-reader__bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
}
.bk-reader__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--default);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}
.bk-reader__nav:hover:not(:disabled) {
    background: #111E33;
}
.bk-reader__nav:disabled {
    background: rgba(2, 13, 32, .12);
    color: rgba(2, 13, 32, .35);
    cursor: default;
}
.bk-reader__counter {
    min-width: 190px;
    text-align: center;
    font-size: 17px;
    letter-spacing: -0.3px;
    color: var(--default);
}
.bk-reader__full {
    margin-left: 10px;
    padding: 13px 22px;
    border: none;
    border-radius: 32px;
    background: transparent;
    box-shadow: inset 0 0 0 1.5px rgba(2, 13, 32, .18);
    font: inherit;
    font-size: 16px;
    color: var(--default);
    cursor: pointer;
}
.bk-reader__full:hover {
    background: rgba(2, 13, 32, .04);
}
.bk-reader__hint {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    color: var(--gray);
}

/* На весь экран */
.bk-reader--fullscreen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: #EEF1F9;
}
.bk-reader--fullscreen .bk-reader__shift {
    max-width: none;
}
.bk-reader--fullscreen .bk-reader__stage {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px;
    border-radius: 22px;
}
.bk-reader--fullscreen .bk-reader__bar {
    margin-top: 12px;
}
.bk-reader--fullscreen .bk-reader__hint {
    display: none;
}

@media (max-width: 820px) {
    .bk-reader__stage {
        min-height: 360px;
        padding: 28px 16px;
    }
    .bk-reader__bar {
        flex-wrap: wrap;
        gap: 10px;
    }
    .bk-reader__counter {
        min-width: 150px;
        font-size: 15px;
    }
    .bk-reader__full {
        margin-left: 0;
        flex: 1 1 100%;
    }
}
@media (max-width: 600px) {
    /* Телефон: одна страница, листание свайпом */
    .bk-reader__shift,
    .bk-reader__shift[data-pos] {
        max-width: 420px;
        transform: none;
    }
}
.bk-page--failed .bk-page__loading {
    display: none;
}
.bk-page--failed::before {
    content: "Не удалось загрузить страницу — обновите страницу сайта";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20%;
    text-align: center;
    font-size: 14px;
    color: var(--gray);
}
