.memoir-page { color: #3f3f3f; }
.memoir-page h2,
.memoir-page h3 { color: #303030; }
.blog-detail-heading--kak-napisat-memuary h1,
.blog-detail-heading--kak-pisat-memuary h1 { max-width: 1120px; margin-top: 52px; font-size: clamp(40px, 4.2vw, 68px); line-height: 1.08; color: #303030 !important; }

.memoir-hero { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(390px, .97fr); gap: clamp(38px, 6vw, 86px); align-items: start; margin-top: 34px; margin-bottom: 76px; }
.memoir-hero__answer { margin: 0 0 20px; font-size: clamp(23px, 2vw, 32px); line-height: 1.38; }
.memoir-hero__copy > p:not(.print-books-eyebrow):not(.memoir-hero__answer) { max-width: 780px; font-size: 19px; line-height: 1.5; }
.memoir-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0; color: #777; font-size: 15px; }
.memoir-hero__visual { position: relative; margin: 0; padding: 16px; border-radius: 44px 5px 44px 5px; background: #fff8e7; overflow: hidden; }
.memoir-hero--family .memoir-hero__visual { background: #faeeea; }
.memoir-hero__visual img { width: 100%; height: auto; aspect-ratio: 4/3; display: block; border-radius: 31px 4px 31px 4px; object-fit: cover; }
.memoir-hero__visual figcaption { margin: 12px 0 0; color: #69615d; font-size: 14px; line-height: 1.45; }

.memoir-fastnav { display: grid; grid-template-columns: minmax(270px, .65fr) minmax(0, 1.35fr); gap: 38px; padding: clamp(30px, 5vw, 56px); border: 1px solid #ead8cf; border-radius: 34px 4px 34px 4px; }
.memoir-fastnav h2 { margin: 0; }
.memoir-fastnav nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
.memoir-fastnav a { padding: 14px 0; border-bottom: 1px solid #eadfd9; color: #373737; font-size: 18px; text-decoration: none; }

.memoir-split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.memoir-split > div:first-child > p:not(.print-books-eyebrow) { max-width: 760px; font-size: 18px; line-height: 1.5; }
.memoir-focus-card { padding: clamp(30px, 4vw, 48px); border-radius: 36px 5px 36px 5px; background: #fff8e7; }
.memoir-hero--family + .memoir-page .memoir-focus-card { background: #faeeea; }
.memoir-focus-card > span { color: #d95649; font-size: 15px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.memoir-focus-card p { margin: 22px 0 16px; color: #363636; font-size: 24px; line-height: 1.48; }
.memoir-focus-card small { color: #6b6662; font-size: 15px; line-height: 1.58; }

.memoir-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.memoir-steps li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 20px; padding: 28px; border: 1px solid #ead8cf; border-radius: 24px 4px 24px 4px; background: #fff; }
.memoir-steps li > span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: #ff7160; color: #fff; font-size: 20px; font-weight: 800; }
.memoir-steps h3 { margin: 4px 0 10px; font-size: 22px; }
.memoir-steps p { margin: 0; color: #5e5e5e; font-size: 16px; line-height: 1.6; }

.memoir-chapter { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr); gap: clamp(38px, 6vw, 82px); padding: clamp(35px, 5vw, 68px); border-radius: 40px 6px 40px 6px; background: #fff8e7; }
.memoir-chapter > div > p:not(.print-books-eyebrow) { font-size: 18px; line-height: 1.5; }
.memoir-chapter > div > a { color: #b9463b; font-weight: 700; text-underline-offset: 3px; }
.memoir-chapter ol { margin: 0; padding: 0; list-style: none; counter-reset: memoir-chapter; }
.memoir-chapter li { position: relative; padding: 17px 0 17px 54px; border-bottom: 1px solid rgba(205, 172, 148, .5); counter-increment: memoir-chapter; }
.memoir-chapter li:first-child { padding-top: 0; }
.memoir-chapter li:last-child { padding-bottom: 0; border-bottom: 0; }
.memoir-chapter li::before { content: counter(memoir-chapter, decimal-leading-zero); position: absolute; left: 0; color: #ff7160; font-weight: 800; }
.memoir-chapter b,
.memoir-chapter span { display: block; }
.memoir-chapter b { margin-bottom: 5px; color: #333; font-size: 19px; }
.memoir-chapter span { color: #646464; font-size: 16px; line-height: 1.5; }

.memoir-clues { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.memoir-clues article { min-height: 245px; padding: 27px; border: 1px solid #ead8cf; border-radius: 24px 4px 24px 4px; }
.memoir-clues span { color: #ff7160; font-size: 17px; font-weight: 800; }
.memoir-clues h3 { margin: 42px 0 12px; font-size: 22px; }
.memoir-clues p { margin: 0; color: #616161; font-size: 16px; line-height: 1.6; }

.memoir-truth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr); gap: clamp(38px, 6vw, 78px); padding: clamp(36px, 5vw, 68px); border-left: 5px solid #ff7160; background: #fff8e7; }
.memoir-truth > div > p:not(.print-books-eyebrow) { font-size: 18px; line-height: 1.5; }
.memoir-truth ul { margin: 0; padding: 0; list-style: none; }
.memoir-truth li { position: relative; padding: 15px 0 15px 34px; border-bottom: 1px solid rgba(205, 172, 148, .5); font-size: 16px; line-height: 1.55; }
.memoir-truth li:last-child { border-bottom: 0; }
.memoir-truth li::before { content: '✓'; position: absolute; left: 0; color: #d95649; font-weight: 900; }

.memoir-mistakes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.memoir-mistakes article { padding: 28px; border-top: 3px solid #ff7160; background: #fff8e7; }
.memoir-mistakes h3 { margin: 0 0 12px; font-size: 21px; }
.memoir-mistakes p { margin: 0; color: #626262; font-size: 16px; line-height: 1.6; }

.family-question-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.family-question-groups section { padding: 30px; border: 1px solid #ead8cf; border-radius: 26px 4px 26px 4px; background: #fff; }
.family-question-groups section:nth-child(3n + 2) { background: #fff8e7; }
.family-question-groups > section > span { color: #ff7160; font-size: 17px; font-weight: 800; }
.family-question-groups h3 { margin: 24px 0 18px; font-size: 24px; }
.family-question-groups ul { margin: 0; padding-left: 22px; }
.family-question-groups li { margin: 0 0 9px; color: #575757; font-size: 16px; line-height: 1.55; }

.memoir-cta { display: flex; align-items: center; justify-content: space-between; gap: 38px; padding: clamp(34px, 5vw, 64px); border-radius: 38px 5px 38px 5px; background: #faeeea; }
.memoir-cta > div:first-child { max-width: 720px; }
.memoir-cta > div:first-child > p:not(.print-books-eyebrow) { font-size: 18px; line-height: 1.5; }
.memoir-cta .print-books-actions { flex: 0 0 auto; justify-content: flex-end; }

.memoir-related { margin-bottom: 78px; }
.memoir-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.memoir-related__grid 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; }
.memoir-related__grid a::after { content: '→'; position: absolute; top: 23px; right: 25px; color: #ff7160; font-size: 24px; }
.memoir-related__grid span { margin-bottom: 8px; font-size: 21px; font-weight: 700; }
.memoir-related__grid small { color: #666; font-size: 15px; line-height: 1.5; }
.memoir-sources { margin-top: -22px; margin-bottom: 66px; padding-top: 28px; border-top: 1px solid #eadfd9; color: #666; }
.memoir-sources h2 { font-size: 23px; }
.memoir-sources p { max-width: 980px; font-size: 16px; line-height: 1.65; }
.memoir-sources a { color: #b9463b; text-underline-offset: 3px; }

@media (hover: hover) {
    .memoir-fastnav a:hover,
    .memoir-fastnav a:focus-visible { color: #d95649; }
    .memoir-related__grid a:hover,
    .memoir-related__grid a:focus-visible { border-color: #ff7160; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(85, 60, 45, .08); }
}

@media (min-width: 992px) and (max-width: 1679px) {
    .memoir-page > .container,
    .memoir-hero.container { padding-right: clamp(140px, 11vw, 180px); }
}

@media (max-width: 1199.98px) {
    .memoir-clues,
    .memoir-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .memoir-hero,
    .memoir-split,
    .memoir-chapter,
    .memoir-truth { grid-template-columns: 1fr; }
    .memoir-fastnav { grid-template-columns: 1fr; }
    .memoir-clues,
    .memoir-mistakes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .memoir-cta { align-items: flex-start; flex-direction: column; }
    .memoir-cta .print-books-actions { justify-content: flex-start; }
    .memoir-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .blog-detail-heading--kak-napisat-memuary h1,
    .blog-detail-heading--kak-pisat-memuary h1 { margin-top: 34px; font-size: 36px; overflow-wrap: anywhere; }
    .memoir-hero { margin-top: 22px; margin-bottom: 58px; }
    .memoir-hero__answer { font-size: 23px; }
    .memoir-hero__copy > p:not(.print-books-eyebrow):not(.memoir-hero__answer) { font-size: 18px; }
    .memoir-fastnav nav,
    .memoir-steps,
    .memoir-clues,
    .memoir-mistakes,
    .family-question-groups,
    .memoir-related__grid { grid-template-columns: 1fr; }
    .memoir-fastnav,
    .memoir-chapter,
    .memoir-truth,
    .memoir-cta { padding: 28px 22px; border-radius: 27px 4px 27px 4px; }
    .memoir-clues article { min-height: 0; }
    .memoir-clues h3 { margin-top: 25px; }
    .memoir-related__grid a { min-height: 128px; }
}

@media (max-width: 420px) {
    .blog-detail-heading--kak-napisat-memuary h1,
    .blog-detail-heading--kak-pisat-memuary h1 { font-size: 32px; }
    .memoir-meta { display: grid; }
    .memoir-hero__visual { padding: 11px 11px 18px; border-radius: 30px 4px 30px 4px; }
    .memoir-fastnav,
    .memoir-steps li,
    .memoir-clues article,
    .memoir-mistakes article,
    .family-question-groups section { padding: 24px 20px; }
    .memoir-steps li { grid-template-columns: 46px minmax(0, 1fr); gap: 15px; }
    .memoir-steps li > span { width: 44px; height: 44px; }
    .memoir-cta .print-books-actions { width: 100%; }
    .memoir-cta .btn { width: 100%; }
}

@media (max-width: 359.98px) {
    .memoir-page .print-books-section__heading h2 { font-size: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    .memoir-related__grid a { transition: none; }
}
