.book-formats-page {
    color: #373737;
}

.book-formats-page h2,
.book-formats-page h3 {
    color: #333;
}

.blog-detail-heading--knizhnye-formaty h1 {
    max-width: 1080px;
    margin-top: 52px;
    font-size: clamp(38px, 4.1vw, 68px);
    line-height: 1.08;
    color: #333 !important;
}

.book-formats-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: clamp(36px, 6vw, 88px);
    align-items: center;
    margin-top: 36px;
    margin-bottom: 80px;
}

.book-formats-lead__answer {
    margin: 0 0 20px;
    font-size: clamp(23px, 2.15vw, 34px);
    line-height: 1.35;
}

.book-formats-lead__copy > p:not(.print-books-eyebrow):not(.book-formats-lead__answer) {
    max-width: 780px;
    font-size: 20px;
    line-height: 1.5;
}

.book-formats-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 26px 0;
    color: #777;
    font-size: 15px;
}

.book-formats-lead__visual {
    min-height: 440px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 34px;
    border-radius: 42px 4px 42px 4px;
    background: linear-gradient(145deg, #fff9e7, #f7eee5);
    overflow: hidden;
}

.book-format-shape {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    border: 1px solid rgba(255, 113, 96, .42);
    border-radius: 6px 22px 6px 6px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 44px rgba(80, 56, 40, .09);
}

.book-format-shape b { font-size: 18px; color: #d95649; }
.book-format-shape small { margin-top: 2px; color: #777; }
.book-format-shape--large { width: 255px; height: 360px; left: 8%; }
.book-format-shape--medium { width: 196px; height: 290px; left: 39%; z-index: 2; }
.book-format-shape--small { width: 132px; height: 205px; right: 7%; z-index: 3; }

.book-formats-use-grid,
.book-formats-impact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.book-formats-use-grid article,
.book-formats-impact-grid article,
.book-formats-compare article {
    padding: 30px;
    border: 1px solid #ebd9d0;
    border-radius: 26px 4px 26px 4px;
    background: #fff;
}

.book-formats-use-grid article > span {
    display: block;
    margin-bottom: 22px;
    color: #ff7160;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .08em;
}

.book-formats-use-grid h3,
.book-formats-impact-grid h3,
.book-formats-compare h3 { margin: 0 0 10px; font-size: 24px; }
.book-formats-use-grid p,
.book-formats-impact-grid p,
.book-formats-compare p { margin: 0; font-size: 18px; line-height: 1.55; }

.book-formats-table-wrap {
    border: 1px solid #ead8cf;
    border-radius: 30px 4px 30px 4px;
    overflow: hidden;
    background: #fff;
}

.book-formats-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.book-formats-table th,
.book-formats-table td { padding: 22px 20px; border-bottom: 1px solid #ecdfd8; vertical-align: top; font-size: 17px; line-height: 1.45; }
.book-formats-table thead th { background: #fff9e8; color: #333; text-align: left; font-size: 16px; }
.book-formats-table thead th:nth-child(1) { width: 15%; }
.book-formats-table thead th:nth-child(2) { width: 22%; }
.book-formats-table thead th:nth-child(3) { width: 28%; }
.book-formats-table tbody th { color: #d95649; text-align: left; font-size: 19px; white-space: nowrap; }
.book-formats-table tbody tr:last-child th,
.book-formats-table tbody tr:last-child td { border-bottom: 0; }

.book-formats-note,
.book-formats-source { color: #6e6e6e; font-size: 16px; line-height: 1.6; }
.book-formats-note { margin: 18px 0 0; }
.book-formats-source { margin-top: -30px; margin-bottom: 70px; }
.book-formats-source a { color: #b9463b; text-decoration: underline; text-underline-offset: 3px; }

.book-formats-explainer,
.book-formats-checklist {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, .8fr);
    gap: clamp(34px, 5vw, 74px);
    padding: clamp(34px, 5vw, 68px);
    border-radius: 38px 6px 38px 6px;
    background: #fff9e8;
}

.book-formats-explainer p,
.book-formats-checklist p { font-size: 19px; line-height: 1.5; }

.book-formats-flow {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: format-step;
}

.book-formats-flow li {
    counter-increment: format-step;
    position: relative;
    min-height: 84px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 22px 18px 74px;
    border: 1px solid rgba(255, 113, 96, .35);
    border-radius: 18px 3px 18px 3px;
    background: rgba(255, 255, 255, .82);
}

.book-formats-flow li::before {
    content: counter(format-step);
    position: absolute;
    left: 22px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ff7160;
    color: #fff;
    font-weight: 700;
}

.book-formats-flow b { font-size: 21px; }
.book-formats-flow span { color: #6d6d6d; }

.book-formats-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.book-formats-compare strong { display: block; margin-bottom: 16px; color: #ff7160; font-size: clamp(26px, 3vw, 42px); }

.book-formats-checklist ul { margin: 0; padding: 0; list-style: none; }
.book-formats-checklist li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid rgba(203, 171, 149, .35); font-size: 18px; }
.book-formats-checklist li:last-child { border-bottom: 0; }
.book-formats-checklist li::before { content: '✓'; position: absolute; left: 0; color: #ff7160; font-weight: 800; }

.book-formats-related {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.book-formats-related a {
    min-height: 150px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px 58px 26px 26px;
    border: 1px solid #ead8cf;
    border-radius: 24px 4px 24px 4px;
    color: #333;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.book-formats-related a::after { content: '→'; position: absolute; right: 25px; top: 23px; color: #ff7160; font-size: 24px; }
.book-formats-related a:hover,
.book-formats-related a:focus-visible { border-color: #ff7160; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(85, 60, 45, .08); }
.book-formats-related span { margin-bottom: 8px; font-size: 22px; font-weight: 700; }
.book-formats-related small { color: #666; font-size: 15px; line-height: 1.5; }

@media (max-width: 991.98px) {
    .book-formats-lead { grid-template-columns: 1fr; margin-bottom: 64px; }
    .book-formats-lead__visual { min-height: 360px; }
    .book-format-shape--large { width: 220px; height: 300px; left: 10%; }
    .book-format-shape--medium { width: 174px; height: 250px; left: 40%; }
    .book-format-shape--small { width: 122px; height: 185px; right: 10%; }
    .book-formats-explainer,
    .book-formats-checklist { grid-template-columns: 1fr; }
    .book-formats-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .book-formats-table-wrap { border: 0; border-radius: 0; overflow: visible; background: transparent; }
    .book-formats-table,
    .book-formats-table tbody { display: block; }
    .book-formats-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .book-formats-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; border: 1px solid #ead8cf; border-radius: 22px 4px 22px 4px; overflow: hidden; background: #fff; }
    .book-formats-table tbody th { grid-column: 1 / -1; padding: 20px; border-bottom: 1px solid #ead8cf; background: #fff9e8; white-space: normal; }
    .book-formats-table td { display: block; padding: 18px; border-right: 1px solid #ecdfd8; border-bottom: 0; font-size: 16px; overflow-wrap: anywhere; }
    .book-formats-table td:last-child { border-right: 0; }
    .book-formats-table td::before { content: attr(data-label); display: block; margin-bottom: 8px; color: #7a6f68; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
}

@media (max-width: 767.98px) {
    .blog-detail-heading--knizhnye-formaty h1 { margin-top: 34px; font-size: 36px; }
    .book-formats-lead { margin-top: 22px; }
    .book-formats-use-grid,
    .book-formats-impact-grid,
    .book-formats-compare,
    .book-formats-related { grid-template-columns: 1fr; }
    .book-formats-lead__visual { min-height: 300px; padding: 20px; }
    .book-format-shape { bottom: 28px; padding: 12px; }
    .book-format-shape b { font-size: 14px; }
    .book-format-shape small { font-size: 11px; }
    .book-format-shape--large { width: 170px; height: 240px; left: 4%; }
    .book-format-shape--medium { width: 138px; height: 205px; left: 38%; }
    .book-format-shape--small { width: 95px; height: 150px; right: 4%; }
    .book-formats-explainer,
    .book-formats-checklist { padding: 28px 22px; border-radius: 26px 4px 26px 4px; }
    .book-formats-table tr { grid-template-columns: 1fr; }
    .book-formats-table td { border-right: 0; border-bottom: 1px solid #ecdfd8; }
    .book-formats-table td:last-child { border-bottom: 0; }
    .book-formats-related a { min-height: 130px; }
}

@media (max-width: 420px) {
    .book-formats-lead__visual { min-height: 270px; }
    .book-format-shape--large { width: 150px; height: 215px; }
    .book-format-shape--medium { width: 122px; height: 182px; }
    .book-format-shape--small { width: 84px; height: 132px; }
}
