:root {
  --rmz-paper: #fffdf7;
  --rmz-paper-border: rgba(184, 134, 11, 0.28);
  --rmz-paper-shadow:
    0 10px 28px rgba(28, 23, 10, 0.08),
    0 2px 8px rgba(28, 23, 10, 0.045);
  --rmz-paper-shadow-strong:
    0 20px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --rmz-graphite-from: #2e2e33;
  --rmz-graphite-to: #1e1e22;
  --rmz-graphite-border: rgba(212, 175, 55, 0.28);
  --rmz-watermark: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='560' height='560' viewBox='0 0 560 560'><g font-family='Georgia,Times New Roman,serif' font-style='italic' font-weight='600' fill='%236E6B57' stroke='%23FFFDF5' stroke-width='.75' paint-order='stroke' opacity='.065'><text x='16' y='52' font-size='34' transform='rotate(-10 16 52)'>REMIZ</text><text x='210' y='38' font-size='24' transform='rotate(8 210 38)'>Александр Ремиз</text><text x='425' y='62' font-size='19' transform='rotate(-7 425 62)'>remiz.pro</text><text x='52' y='170' font-size='20' transform='rotate(9 52 170)'>remiz.pro</text><text x='204' y='154' font-size='35' transform='rotate(-8 204 154)'>REMIZ</text><text x='405' y='198' font-size='24' transform='rotate(7 405 198)'>Александр Ремиз</text><text x='18' y='292' font-size='25' transform='rotate(-8 18 292)'>REMIZ</text><text x='175' y='276' font-size='20' transform='rotate(7 175 276)'>Александр Ремиз</text><text x='360' y='305' font-size='32' transform='rotate(-9 360 305)'>REMIZ</text><text x='455' y='390' font-size='23' transform='rotate(7 455 390)'>remiz.pro</text><text x='35' y='410' font-size='33' transform='rotate(9 35 410)'>REMIZ</text><text x='235' y='392' font-size='19' transform='rotate(-7 235 392)'>remiz.pro</text><text x='380' y='470' font-size='31' transform='rotate(-8 380 470)'>REMIZ</text><text x='28' y='120' font-size='24' transform='rotate(11 28 120)'>REMIZ</text><text x='300' y='250' font-size='26' transform='rotate(-9 300 250)'>REMIZ</text><text x='520' y='545' font-size='30' transform='rotate(8 520 545)'>REMIZ</text><text x='40' y='520' font-size='22' transform='rotate(8 40 520)'>Александр Ремиз</text></g></svg>");
}

html, body { overflow-x: clip; }
body { word-break: normal; overflow-wrap: anywhere; }

.reader-layout,
.main-wrapper {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  column-gap: 28px;
  width: 100%;                /* ← 100% от родителя (body) */
  max-width: 1008px;           /* ← фиксированный предел */
  margin: 0 auto 48px;
  padding: calc(var(--header-height, 95px) + 24px) 0 60px;
  align-items: start;
  box-sizing: border-box;
  position: relative;
}

@media (max-width: 1024px) {
  .reader-layout,
  .main-wrapper {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 40px;
    padding: calc(var(--header-height, 95px) + 12px) 12px 80px;
  }
}

.reader-sidebar-col { min-width: 0; width: 100%; }

@media (min-width: 1025px) {
  .reader-sidebar-col {
    grid-column: 1; grid-row: 1;
    align-self: stretch; height: 100%;
    display: flex; flex-direction: column;
  }
}

.reader-sidebar {
  width: 100%;
  min-width: 0;
  background: linear-gradient(145deg, rgba(20, 22, 35, 0.85), rgba(10, 12, 22, 0.95));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px 16px 24px;
  box-sizing: border-box;
}

@media (min-width: 1025px) {
  .reader-layout > .reader-sidebar,
  .main-wrapper > .reader-sidebar {
    grid-column: 1; grid-row: 1;
    align-self: start;
    position: sticky;
    top: calc(var(--header-height, 95px) + 18px);
    max-height: calc(100vh - var(--header-height, 95px) - 36px);
    overflow: hidden;
  }
  .reader-sidebar-col > .reader-sidebar {
    flex: 0 0 auto;
    position: sticky;
    top: calc(var(--header-height, 95px) + 18px);
    max-height: calc(100vh - var(--header-height, 95px) - 36px);
    overflow: hidden;
  }
  .reader-sidebar > div {
    max-height: calc(100vh - var(--header-height, 95px) - 36px);
    overflow-y: auto; overflow-x: hidden;
    overscroll-behavior: contain;
    padding-bottom: 100px;
    scrollbar-width: thin;
  }
}

@media (max-width: 1024px) {
  .reader-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: min(90%, 340px); max-width: 340px;
    max-height: 100dvh; z-index: 2000;
    background: rgba(12, 12, 26, 0.99);
    border-radius: 0 20px 20px 0;
    border-left: 0;
    padding-top: 26px; padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overscroll-behavior: contain;
    transform: translateX(-100%);
    transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 30px 0 70px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    -webkit-overflow-scrolling: touch;
  }
  .reader-sidebar.is-open,
  .reader-sidebar.open { transform: translateX(0); pointer-events: auto; }
}

.reader-sidebar-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0; visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.reader-sidebar-backdrop.is-open { opacity: 1; visibility: visible; }

@media (min-width: 1025px) {
  .reader-sidebar-backdrop { display: none; }
}

.toc-header-mobile { display: none; }
.toc-scrollable { overflow: visible; }

@media (max-width: 1024px) {
  .toc-header-mobile {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px; flex-shrink: 0;
  }
  .toc-header-mobile h3 {
    margin: 0; border: none; padding: 0;
    color: #00dce6; font-family: system-ui, sans-serif;
    font-size: 1.1rem; letter-spacing: 0.04em; font-weight: 800;
  }
  .toc-header-mobile .toc-close-mobile {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff; font-size: 1.2rem; cursor: pointer;
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    transition: all 0.2s ease;
  }
  .toc-header-mobile .toc-close-mobile:hover { background: rgba(255, 255, 255, 0.15); }
  .toc-header-mobile .toc-close-mobile:hover { color: #fff; }
  .toc-scrollable {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
    padding-bottom: 90px;
    scroll-padding-bottom: 90px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
}

@media (min-width: 1025px) {
  .toc-header-mobile { display: none; }
  .toc-scrollable { overflow: visible; padding-bottom: 100px; }
  .reader-sidebar .toc-scrollable {
    max-height: calc(100vh - var(--header-height, 95px) - 36px);
    overflow-y: auto; overscroll-behavior: contain;
  }
}

.toc-section-header {
  font-family: Arial, sans-serif; font-weight: 700;
  color: #00b7c2; font-size: 1.1rem;
  margin-top: 1rem; margin-bottom: 0.5rem;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.toc-section-header:first-child { margin-top: 0; }

.toc-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease;
  position: relative;
}
.toc-item:hover { background: rgba(255, 255, 255, 0.02); }

.toc-link {
  display: block;
  flex: none;
  color: #b0b7c3;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  padding: 8px 10px 4px 12px;
  border-radius: 8px 8px 0 0;
  border-left: 3px solid transparent;
}
.toc-link:hover { color: #00b7c2; background: rgba(0, 183, 194, 0.08); }
.toc-link.active-toc {
  color: #FFD966 !important;
  background: rgba(212, 175, 55, 0.12) !important;
  border-left: 3px solid #D4AF37 !important;
  font-weight: 700;
}
.toc-item-emoji {
  flex-shrink: 0; font-size: 0.95rem; line-height: 1.4;
  display: inline-block; width: 1.2em; text-align: center;
}
.toc-item-text {
  flex: 1; min-width: 0; overflow-wrap: anywhere;
}

.toc-copy-link {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  flex-shrink: 0;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #b0b7c3;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  opacity: 0;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.toc-item:hover .toc-copy-link {
  opacity: 0.6;
  pointer-events: auto;
}
.toc-copy-link:hover {
  background: rgba(0, 183, 194, 0.12);
  border-color: rgba(0, 183, 194, 0.4);
  color: #D4AF37;
  opacity: 1;
  transform: translateY(-1px);
}
@media (max-width: 1024px) {
  .toc-copy-link {
    opacity: 0.5;
    pointer-events: auto;
  }
}

.reader-content,
.book-container { grid-column: 2; grid-row: 1; min-width: 0; width: 100%; }

@media (max-width: 1024px) {
  .reader-content,
  .book-container { grid-column: auto; grid-row: auto; }
}

.book-container,
.article-body {
  background: var(--rmz-paper);
  border: 1px solid var(--rmz-paper-border);
  border-radius: 20px;
  padding: 40px 44px;
  box-shadow: var(--rmz-paper-shadow-strong);
  position: relative; overflow: hidden;
  width: 100%; max-width: 100%; min-width: 0;
  box-sizing: border-box; color: #111;
}

@media (max-width: 1024px) {
  .book-container,
  .article-body { padding: 26px 20px; border-radius: 16px; max-width: 100%; }
}
@media (max-width: 480px) {
  .book-container,
  .article-body { padding: 20px 16px; }
}

.protected-paper,
.gold-table-wrapper,
.quote-wrapper,
.architect-thought,
.think-block,
.music-task,
.chapter-transition,
.people-block,
.final-quote-box,
.pre-wait-quote,
.architect-card-final,
.options-table,
.dict-item,
.rmz-chapter-cta {
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid var(--rmz-paper-border) !important;
  border-radius: 14px !important;
  background-color: var(--rmz-paper);
  background-image: var(--rmz-watermark);
  background-repeat: repeat;
  background-position: 0 0;
  background-size: 280px 280px;
  box-shadow: var(--rmz-paper-shadow);
  padding: 1.5rem 1.75rem 1.5rem;
  margin: 1.6rem auto;
  box-sizing: border-box !important;
  clear: both; display: block;
  max-width: 750px; width: 100%;
  word-break: normal;
  overflow-wrap: anywhere;
}

.protected-paper > *,
.gold-table-wrapper > *,
.quote-wrapper > *,
.architect-thought > *,
.think-block > *,
.music-task > *,
.chapter-transition > * {
  position: relative; z-index: 1;
}

.protected-paper::before,
.protected-paper::after,
.gold-table-wrapper::before,
.gold-table-wrapper::after {
  pointer-events: none !important; z-index: 0 !important;
}

@media (max-width: 768px) {
  .protected-paper, .gold-table-wrapper, .quote-wrapper,
  .architect-thought, .think-block, .music-task, .chapter-transition,
  .people-block, .final-quote-box, .pre-wait-quote,
  .architect-card-final, .options-table, .dict-item, .rmz-chapter-cta {
    max-width: 100%;
  }
}

/* Карточки */
.music-task { max-width: 750px; text-align: center; }
.music-task::before {
  content: '🎵'; position: absolute;
  top: 14px; right: 16px;
  font-size: 3rem; opacity: 0.10;
  transform: rotate(14deg);
  pointer-events: none; line-height: 1; z-index: 0;
}
.music-task h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem; font-weight: 700;
  color: #8F6B12; letter-spacing: 0.04em;
  margin-bottom: 0.8rem; text-transform: none;
  position: relative; z-index: 1;
}
.music-task p {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.05rem; line-height: 1.7;
  color: #111; text-align: left; font-style: normal;
  margin: 0;
}

.think-block { max-width: 750px; text-align: center; }
.think-block::before {
  content: '🤔'; position: absolute;
  top: 12px; right: 14px;
  font-size: 3rem; opacity: 0.10;
  transform: rotate(12deg);
  pointer-events: none; line-height: 1; z-index: 0;
}
.think-block .think-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem; font-weight: 700;
  color: #8F6B12; margin-bottom: 0.6rem;
  position: relative; z-index: 1;
}
.think-block .think-text {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.05rem; font-style: italic;
  color: #111; line-height: 1.65; margin: 0;
}

.architect-thought { max-width: 750px; text-align: center; }
.architect-thought::before {
  content: '💭'; position: absolute;
  top: 12px; right: 14px;
  font-size: 3.4rem; opacity: 0.10;
  transform: rotate(-8deg);
  pointer-events: none; line-height: 1; z-index: 0;
}
.architect-thought h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem; font-weight: 700;
  color: #8F6B12; letter-spacing: 0.04em;
  margin-bottom: 0.6rem; text-transform: none;
  position: relative; z-index: 1;
}
.architect-thought p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.08rem; font-style: italic;
  color: #111; line-height: 1.65; margin: 0;
}

.quote-wrapper {
  max-width: 750px;
  margin: 2rem auto;
  text-align: center;
}
.quote-wrapper .quote-block {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem; font-style: italic;
  color: #111; text-align: center;
  padding: 0; line-height: 1.6;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.quote-header {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 1rem;
  position: relative; z-index: 1;
}
.quote-header img {
  width: 40px; height: 40px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid #d4af37;
}
.quote-header .quote-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem; color: #8F6B12;
  letter-spacing: 0.5px; font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .quote-header .quote-label {
    font-size: 0.9rem; white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .quote-wrapper .quote-block { font-size: 1.02rem; }
  .music-task h3,
  .think-block .think-title,
  .architect-thought h3 { font-size: 1.05rem; }
  .music-task p,
  .think-block .think-text,
  .architect-thought p { font-size: 1rem; }
  .quote-header .quote-label { font-size: 1.05rem; }
}

/* PEOPLE-BLOCK, PRE-WAIT-QUOTE */
.people-block {
    text-align: center;
    padding: 2rem 1.5rem;
}
.people-block p {
    text-align: center !important;
    text-indent: 0 !important;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-style: italic;
    color: #111;
    line-height: 1.5;
    margin: 0;
}
.people-block img { display: none; }

.pre-wait-quote {
    max-width: 750px;
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
    color: #111;
    padding: 1.8rem 1.5rem;
}
.pre-wait-quote p {
    text-indent: 0 !important;
    text-align: center !important;
    margin: 0 0 0.6rem !important;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
    color: #111;
}

/* ARCHITECT-CARD-FINAL */
.architect-card-final {
    max-width: 750px;
    margin: 2rem auto;
    padding: 2rem 1.8rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(0, 183, 194, 0.05), rgba(10, 10, 26, 0.03));
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.architect-card-final__head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    text-align: left;
    margin-bottom: 1.4rem;
}
.architect-card-final__avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00b7c2;
    box-shadow: 0 0 20px rgba(0, 183, 194, 0.3);
    flex-shrink: 0;
}
.architect-card-final__copy { text-align: left; }
.architect-card-final__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
    margin-bottom: 0.3rem;
}
.architect-card-final__subtitle {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-style: italic;
    color: #8F6B12;
    line-height: 1.3;
}
.architect-card-final__text {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1rem;
    line-height: 1.65;
    color: #333;
    margin-bottom: 1.2rem;
    text-indent: 0;
}
.architect-card-final__cta {
    font-family: 'Georgia', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #D4AF37;
    margin-bottom: 1rem;
    font-style: normal;
}
.architect-card-final__socials {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}
.architect-card-final__socials a {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}
.architect-card-final__socials a.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}
.architect-card-final__socials a.vk { background: #4C75A3; }
.architect-card-final__socials a.telegram { background: #0088cc; }
.architect-card-final__socials a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.architect-card-final__socials svg {
    width: 1.2em;
    height: 1.2em;
    fill: currentColor;
}
.architect-card-final__sign {
    font-family: 'Arial', sans-serif;
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.6rem;
}
@media (max-width: 600px) {
  .architect-card-final { padding: 1.5rem 1rem; border-radius: 18px; }
  .architect-card-final__head { gap: 0.8rem; }
  .architect-card-final__avatar { width: 72px; height: 72px; }
  .architect-card-final__title { font-size: 1.15rem; }
  .architect-card-final__subtitle { font-size: 1rem; }
  .architect-card-final__text { font-size: 0.92rem; }
  .architect-card-final__cta { font-size: 1.1rem; }
  .architect-card-final__socials a { width: 46px; height: 46px; border-radius: 12px; font-size: 1.2rem; }
}

/* КНОПКИ ДЕЙСТВИЙ */
.protected-paper > .rmz-share-actions,
.gold-table-wrapper > .rmz-share-actions,
.quote-wrapper > .rmz-share-actions,
.think-block > .rmz-share-actions,
.music-task > .rmz-share-actions,
.architect-thought > .rmz-share-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 14px 0 6px !important;
  padding: 0 !important;
  position: static !important;
  z-index: 5;
}

/* CREDIT */
.rmz-card-credit {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 1px !important;
  width: 100% !important;
  margin: 1rem 0 0 0 !important;
  padding: 0 !important;
  position: static !important;
  color: #77736b !important;
  text-align: right !important;
  font-family: 'Palatino Linotype', 'Book Antiqua', Georgia, serif !important;
  z-index: 3 !important;
  pointer-events: none;
  box-sizing: border-box;
}
.rmz-card-author { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em; }
.rmz-card-site { font-size: 0.55rem; letter-spacing: 0.10em; }

.gold-table-wrapper > .rmz-card-credit,
.gold-table-wrapper > .gold-table > .rmz-card-credit {
  margin-top: 0.4rem !important;
  padding-right: 1.5rem !important;
}
.dict-item > .rmz-card-credit {
  margin-top: 0.5rem !important;
}

.final-quote-box.rmz-no-actions .rmz-card-credit,
.final-quote-box.rmz-no-actions .rmz-share-actions { display: none !important; }

/* OPTIONS-TABLE */
.options-table {
  display: table;
  width: 100%;
  max-width: 750px;
  margin: 1.6rem auto;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--rmz-paper-border);
  background-color: var(--rmz-paper);
  background-image: var(--rmz-watermark);
  background-repeat: repeat;
  background-size: 280px 280px;
  box-shadow: var(--rmz-paper-shadow);
}
.options-table tr { display: table-row; }
.options-table td {
  display: table-cell;
  vertical-align: top;
  padding: 1.5rem 1.6rem;
  width: 50%;
  position: relative;
  box-sizing: border-box;
}
.options-table .option-a {
  background: linear-gradient(180deg, rgba(255, 71, 87, 0.08), rgba(255, 71, 87, 0.02));
  border-right: 1px solid rgba(255, 71, 87, 0.22);
}
.options-table .option-b {
  background: linear-gradient(180deg, rgba(76, 175, 80, 0.08), rgba(76, 175, 80, 0.02));
}
.options-table .option-icon {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.7rem;
  text-align: center;
}
.options-table .option-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.6rem;
  text-align: center;
  letter-spacing: -0.01em;
}
.options-table .option-text {
  font-family: 'Times New Roman', Times, serif;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #333;
  text-align: left;
  margin: 0;
}
@media (max-width: 700px) {
  .options-table,
  .options-table tr,
  .options-table td { display: block; width: 100%; }
  .options-table td { padding: 1.2rem 1.3rem; }
  .options-table .option-a { border-right: 0; border-bottom: 1px solid rgba(255, 71, 87, 0.22); }
}

.choice-header {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #8F6B12;
  text-align: center;
  margin: 2rem 0 1rem;
  letter-spacing: 0.02em;
}

/* RMZ-CHAPTER-CTA */
.rmz-chapter-cta {
  max-width: 750px;
  margin: 2.5rem auto;
  padding: 1.8rem 1.6rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.14), transparent 55%),
    linear-gradient(145deg, #5a5f68, #6d7380);
  border: 1px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
  clear: both;
  font-family: 'Playfair Display', Georgia, serif;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.rmz-chapter-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.85), transparent);
  pointer-events: none;
}
.rmz-chapter-cta__text,
.book-container .rmz-chapter-cta__text,
p.rmz-chapter-cta__text {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: clamp(1.4rem, 3.4vw, 1.85rem) !important;
  font-weight: 700 !important;
  font-style: italic !important;
  line-height: 1.5 !important;
  letter-spacing: 0.005em !important;
  color: #FFD966 !important;
  margin: 0 !important;
  text-indent: 0 !important;
  text-align: center !important;
  padding: 0 0.5rem !important;
  text-shadow: 0 0 8px rgba(255,217,102,0.9),0 0 20px rgba(212,175,55,0.7),0 0 36px rgba(212,175,55,0.45),0 1px 0 rgba(0,0,0,0.20) !important;
  animation: rmzGoldGlow 3.5s ease-in-out infinite alternate;
  position: relative; z-index: 1;
  word-break: normal;
  overflow-wrap: anywhere;
}
@keyframes rmzGoldGlow {
  0% { text-shadow: 0 0 8px rgba(255,217,102,0.85),0 0 20px rgba(212,175,55,0.65),0 0 36px rgba(212,175,55,0.40),0 1px 0 rgba(0,0,0,0.20); }
  100% { text-shadow: 0 0 12px rgba(255,217,102,1),0 0 28px rgba(212,175,55,0.85),0 0 48px rgba(212,175,55,0.55),0 1px 0 rgba(0,0,0,0.20); }
}
.rmz-chapter-cta__bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.rmz-chapter-cta__head { display: flex; align-items: center; gap: 0.85rem; text-align: left; min-width: 0; }
.rmz-chapter-cta__avatar {
  width: 60px; height: 60px; min-width: 60px;
  border-radius: 50% !important;
  object-fit: cover;
  border: 2px solid #D4AF37;
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.35);
  margin: 0; display: block;
}
.rmz-chapter-cta__sign-copy { display: flex; flex-direction: column; gap: 0.18rem; text-align: left; min-width: 0; }
.rmz-chapter-cta__sign-copy strong,
.book-container .rmz-chapter-cta__sign-copy strong {
  font: 700 1rem/1.2 'Playfair Display', Georgia, serif !important;
  color: #FFD966 !important;
  letter-spacing: 0.01em !important;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.35) !important;
}
.rmz-chapter-cta__sign-copy span,
.book-container .rmz-chapter-cta__sign-copy span {
  font: 400 0.72rem/1.3 Arial, sans-serif !important;
  color: #E8C957 !important;
  letter-spacing: 0.04em !important;
  white-space: nowrap !important;
  text-shadow: 0 0 6px rgba(212, 175, 55, 0.25) !important;
}
.rmz-chapter-cta__socials { display: flex; justify-content: flex-end; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.rmz-chapter-cta__social {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.rmz-chapter-cta__social:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); }
.rmz-chapter-cta__social.instagram { background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D); }
.rmz-chapter-cta__social.vk { background: #4C75A3; }
.rmz-chapter-cta__social.telegram { background: #0088cc; }
.rmz-chapter-cta__social svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.rmz-chapter-cta__sign { display: none !important; }
@media (max-width: 768px) {
  .rmz-chapter-cta { padding: 1.4rem 1rem; gap: 1rem; }
  .rmz-chapter-cta__text,
  .book-container .rmz-chapter-cta__text,
  p.rmz-chapter-cta__text { font-size: 1.25rem !important; letter-spacing: 0 !important; padding: 0 !important; }
  .rmz-chapter-cta__bottom { gap: 0.7rem; flex-wrap: wrap; }
  .rmz-chapter-cta__avatar { width: 48px; height: 48px; min-width: 48px; }
  .rmz-chapter-cta__sign-copy strong,
  .book-container .rmz-chapter-cta__sign-copy strong { font-size: 0.85rem !important; }
  .rmz-chapter-cta__sign-copy span,
  .book-container .rmz-chapter-cta__sign-copy span { font-size: 0.62rem !important; }
  .rmz-chapter-cta__socials { gap: 0.5rem; }
  .rmz-chapter-cta__social { width: 38px; height: 38px; border-radius: 10px; }
  .rmz-chapter-cta__social svg { width: 1.05em; height: 1.05em; }
}

/* ТАБЛИЦЫ */
.gold-table-wrapper {
  margin: 2rem auto;
  text-align: center;
  position: relative;
  max-width: 750px;
  overflow: hidden !important;
  clear: both;
  border-radius: 14px;
  padding: 0 0 1.2rem 0 !important;
  box-sizing: border-box !important;
}
.gold-table {
  display: block !important;
  font-family: 'Times New Roman', Times, serif;
  color: #111; text-align: left;
  padding: 1.2rem 1.5rem 1rem !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto;
  background: transparent !important;
  border-radius: 0;
  box-shadow: none !important;
  position: relative; z-index: 1;
  box-sizing: border-box !important;
}
.gold-table table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1rem; color: #111;
  position: relative; z-index: 1;
}
.gold-table table td,
.gold-table table th {
  padding: 6px 10px; vertical-align: top; text-align: left;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  border: 0 !important; background: transparent !important;
}
.gold-table table tr:last-child td,
.gold-table table tr:last-child th { border-bottom: none; }
.gold-table table th {
  color: #D4AF37; font-weight: 700;
  font-size: 1.1rem; text-transform: uppercase;
  letter-spacing: 0.5px; text-align: center;
  background: rgba(212, 175, 55, 0.05);
}
.gold-table .gold-header,
.gold-table table tr:first-child th[colspan],
.gold-table table th[colspan] {
  color: #D4AF37; font-weight: 800;
  font-size: clamp(0.96rem, 2.15vw, 1.22rem);
  text-align: left;
  padding: 10px 10px 13px !important;
  border: 0 !important;
  border-bottom: 2px solid #D4AF37 !important;
  text-transform: none;
  letter-spacing: 0.025em;
  background: transparent !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
  line-height: 1.15 !important;
}
.gold-table .gold-header::after,
.gold-table table tr:first-child th[colspan]::after,
.gold-table table th[colspan]::after {
  content: ''; display: block;
  width: 54px; height: 2px;
  margin-top: 7px; border-radius: 2px;
  background: linear-gradient(90deg, #D4AF37, rgba(212, 175, 55, 0));
}
.gold-table .table-author {
  font-family: 'Arial', 'Helvetica', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  color: #888; text-align: center;
  margin-top: 0.6rem; font-style: normal;
}

.gold-table table .rmz-table-emoji {
  display: inline-block;
  font-size: 1.55em;
  line-height: 1;
  vertical-align: middle;
  text-align: center;
}
.gold-table table .rmz-table-label {
  display: inline-block;
  vertical-align: middle;
  padding-left: 6px;
  font-size: 0.98em;
}
.gold-table table .emoji-col {
  width: 62px !important; min-width: 62px !important; max-width: 62px !important;
  text-align: center !important; vertical-align: middle !important;
  font-size: 1.65em !important; line-height: 1 !important;
  padding: 6px 7px !important; white-space: nowrap !important;
}
.gold-table table .rmz-narrow-first {
  width: 62px !important; min-width: 62px !important; max-width: 62px !important;
  padding: 6px 7px !important; text-align: center !important;
  vertical-align: middle !important; white-space: nowrap !important;
  font-size: 1.7em !important; line-height: 1 !important;
  color: #D4AF37; font-weight: 700;
}
.gold-table table .rmz-narrow-first + td {
  width: auto !important; padding-left: 12px !important;
  text-align: left !important; vertical-align: top !important;
}
.gold-table table.rmz-utility-table { table-layout: fixed !important; width: 100% !important; }
.gold-table table.rmz-utility-table > colgroup.rmz-utility-cols > col.rmz-utility-col { width: 15% !important; }
.gold-table table.rmz-utility-table > colgroup.rmz-utility-cols > col.rmz-content-col { width: 85% !important; }
.gold-table table.rmz-utility-table td:first-child,
.gold-table table.rmz-utility-table th:first-child {
  width: 15% !important; min-width: 0 !important; max-width: none !important;
  box-sizing: border-box !important;
  text-align: center !important; font-size: 1.65em !important;
  line-height: 1 !important; vertical-align: middle !important;
  padding: 6px 6px !important; color: #111 !important;
}
.gold-table table.rmz-utility-table td:nth-child(2),
.gold-table table.rmz-utility-table th:nth-child(2) {
  width: 85% !important; padding-left: 12px !important;
  text-align: left !important; vertical-align: top !important;
}
.gold-table table.rmz-label-first-table td:first-child,
.gold-table table.rmz-label-first-table th:first-child { width: 20% !important; font-weight: 700; }
.gold-table table.rmz-label-first-table td:last-child,
.gold-table table.rmz-label-first-table th:last-child { width: 80% !important; }

.gold-table table.rmz-recipe-table {
  width: 100% !important;
  table-layout: fixed !important;
}
.gold-table table.rmz-recipe-table td:first-child,
.gold-table table.rmz-recipe-table th:first-child {
  width: 15% !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 8px 8px !important;
  text-align: center !important;
  vertical-align: middle !important;
  font-size: 1.65em !important;
  line-height: 1 !important;
  color: #111 !important;
  white-space: nowrap !important;
}
.gold-table table.rmz-recipe-table td:nth-child(2),
.gold-table table.rmz-recipe-table th:nth-child(2) {
  width: 85% !important;
  padding: 8px 16px 8px 12px !important;
  text-align: left !important;
  vertical-align: middle !important;
  line-height: 1.6 !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}
.gold-table table.rmz-recipe-table td:nth-child(2) strong {
  color: #111;
  font-weight: 700;
}
.gold-table table.rmz-recipe-table tr + tr td {
  border-top: 1px solid rgba(100, 82, 42, 0.09) !important;
}

.gold-table table.rmz-three-col-table th:first-child,
.gold-table table.rmz-three-col-table td:first-child { width: 24% !important; }
.gold-table table.rmz-three-col-table th:nth-child(2),
.gold-table table.rmz-three-col-table td:nth-child(2),
.gold-table table.rmz-three-col-table th:nth-child(3),
.gold-table table.rmz-three-col-table td:nth-child(3) { width: 38% !important; }
.gold-table table tr + tr td,
.gold-table table tr + tr th { border-top: 1px solid rgba(100, 82, 42, 0.09) !important; }

.gold-table table tr.rmz-error-row {
  background: linear-gradient(90deg, rgba(255, 71, 87, 0.10), rgba(255, 71, 87, 0.02)) !important;
}
.gold-table table tr.rmz-error-row td {
  border-top: 1px solid rgba(255, 71, 87, 0.18) !important;
  background: rgba(255, 71, 87, 0.04) !important;
}
.gold-table table tr.rmz-success-row {
  background: linear-gradient(90deg, rgba(76, 175, 80, 0.10), rgba(76, 175, 80, 0.02)) !important;
}
.gold-table table tr.rmz-success-row td {
  border-top: 1px solid rgba(76, 175, 80, 0.18) !important;
  background: rgba(76, 175, 80, 0.04) !important;
}

@media (max-width: 768px) {
  .gold-table { padding: 1rem 1rem 1rem !important; }
  .gold-table table td,
  .gold-table table th { padding: 4px 6px; font-size: 0.9rem; }
  .gold-table table .emoji-col {
    width: 52px !important; min-width: 52px !important; max-width: 52px !important;
    font-size: 1.5em !important; padding: 6px 5px !important;
  }
  .gold-table table .rmz-narrow-first {
    width: 52px !important; min-width: 52px !important; max-width: 52px !important;
    font-size: 1.5em !important;
  }
  .gold-table table.rmz-utility-table td:first-child,
  .gold-table table.rmz-utility-table th:first-child { font-size: 1.55em !important; }
  .gold-table table.rmz-recipe-table td:first-child,
  .gold-table table.rmz-recipe-table th:first-child { font-size: 1.5em !important; }
}
@media (max-width: 480px) {
  .gold-table { padding: 0.75rem 0.75rem 1rem !important; }
  .gold-table table { font-size: 0.85rem; }
}

/* КАРТИНКИ */
.image-wrapper {
    max-width: 45%;
    margin: 0.5rem 1.5rem 0.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #f8f6f0;
    float: left;
    clear: none;
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}
.image-wrapper.float-right {
    float: right;
    margin: 0.5rem 0 0.5rem 1.5rem;
}
.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    cursor: default;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.image-wrapper .img-caption {
    font-family: 'Arial', sans-serif;
    font-size: 0.8rem;
    color: #555;
    padding: 6px 10px;
    text-align: center;
    background: #f8f6f0;
    font-style: italic;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    pointer-events: none;
}

.image-wrapper-centered {
    max-width: 700px;
    margin: 1.5rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #f8f6f0;
    clear: both;
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}
.image-wrapper-centered img {
    width: 100%;
    height: auto;
    display: block;
    cursor: default;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.image-wrapper-centered .img-caption {
    font-family: 'Arial', sans-serif;
    font-size: 0.8rem;
    color: #555;
    padding: 6px 10px;
    text-align: center;
    background: #f8f6f0;
    font-style: italic;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    pointer-events: none;
}

.image-full-width {
    width: 100%;
    max-width: 100%;
    margin: 1.5rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #f8f6f0;
    clear: both;
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}
.image-full-width img {
    width: 100%;
    height: auto;
    display: block;
    cursor: default;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.image-full-width .img-caption {
    font-family: 'Arial', sans-serif;
    font-size: 0.8rem;
    color: #555;
    padding: 6px 10px;
    text-align: center;
    background: #f8f6f0;
    font-style: italic;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    pointer-events: none;
}

.image-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 700px;
    margin: 1.5rem auto;
    clear: both;
}
.image-grid-2 .grid-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    cursor: default;
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}
.image-grid-2 .img-caption-full {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
    pointer-events: none;
}

.history-photo {
    float: right;
    max-width: 45%;
    margin: 0.5rem 0 0.5rem 1.5rem;
    clear: none;
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}
.history-photo img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (hover: hover) {
    .image-wrapper:hover,
    .image-wrapper-centered:hover,
    .image-full-width:hover,
    .history-photo:hover,
    .image-grid-2 .grid-img:hover {
        transform: scale(1.02);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
        z-index: 5;
        position: relative;
        overflow: hidden;
    }
    .image-wrapper img:hover,
    .image-wrapper-centered img:hover,
    .image-full-width img:hover,
    .history-photo img:hover,
    .image-grid-2 .grid-img img:hover {
        transform: scale(1.04);
    }
}

/* HERO-TITLE--TOP */
.hero-title--top {
  position: static;
  text-align: center;
  max-width: 1232px;
  margin: calc(var(--header-height, 95px) + 24px) auto 10px;
  padding: 0 24px;
  font-size: clamp(1.4rem, 5.5vw, 3.5rem);
  letter-spacing: clamp(1px, 0.4vw, 4px);
  line-height: 1.1;
  white-space: normal;
}
.hero-photo { margin-top: 0 !important; }
.hero-photo-inner { margin-top: 0 !important; }

@media (max-width: 768px) {
  .hero-title--top {
    margin: calc(var(--header-height, 95px) + 12px) auto 8px;
    padding: 0 12px;
    font-size: clamp(1.4rem, 5.5vw, 2.2rem);
    letter-spacing: clamp(0.5px, 0.3vw, 2px);
  }
}
@media (max-width: 340px) {
  .hero-title--top {
    font-size: 1rem;
    letter-spacing: 0.5px;
  }
}

/* HERO-DESC-CARD */
.hero-desc-card {
  max-width: 750px;
  margin: 20px auto 0;
  padding: 1.1rem 1.4rem;
  border: 1px solid rgba(184, 134, 11, 0.28);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.048), rgba(255,255,255,.012));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  text-align: center;
  box-sizing: border-box;
}
.hero-desc-card .hero-desc {
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: clamp(0.92rem, 1.4vw, 1rem);
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  text-shadow: none;
}
@media (max-width: 768px) {
  .hero-desc-card {
    margin: 16px 12px 0;
    padding: 0.9rem 1rem;
    border-radius: 14px;
  }
  .hero-desc-card .hero-desc {
    font-size: 0.86rem;
    line-height: 1.5;
  }
}

/* CHAPTER-TRANSITION */
.chapter-transition {
  max-width: 750px;
  padding: 1.5rem 1.75rem 1.5rem;
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem; font-style: italic;
  color: #111; line-height: 1.6; clear: both;
  background-color: #ffffff !important;
  background-image: none !important;
  border: 1px solid rgba(184, 134, 11, 0.18) !important;
  box-shadow: 0 4px 16px rgba(28, 23, 10, 0.06) !important;
}
.chapter-transition .transition-highlight {
  display: block; font-size: 1.2rem; font-weight: 700;
  color: #8F6B12; margin-top: 0.3rem; font-style: normal;
}
.chapter-transition .transition-author {
  display: block; margin-top: 0.8rem;
  font-size: 0.85rem; color: #888; font-style: normal;
}
@media (max-width: 768px) {
  .chapter-transition { padding: 1.2rem 1rem 1.2rem; font-size: 1rem; }
  .chapter-transition .transition-highlight { font-size: 1.1rem; }
}

/* SOURCE-NOTE */
.source-note {
  max-width: 750px;
  margin: 1.8rem auto;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(0, 183, 194, 0.20);
  border-left: 3px solid rgba(0, 183, 194, 0.60);
  border-radius: 14px;
  background: rgba(0, 183, 194, 0.04);
  font: 400 0.95rem/1.75 'Times New Roman', Times, serif;
  color: #555c64;
  position: relative;
  z-index: 1;
}
.source-note strong { color: #2a2824; font-weight: 700; }
.source-note a { color: #006f76; font-weight: 700; text-decoration: underline; }
.source-note a:hover { color: #004f55; }
@media (max-width: 768px) {
  .source-note { font-size: 0.9rem; padding: 1rem 1.1rem; }
}

/* ТИПОГРАФИКА */
.article-body p,
.book-container p {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #111;
  margin-bottom: 0.85rem;
  text-align: justify;
  text-indent: 0.8cm;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  overflow-wrap: anywhere;
  word-break: normal;
  position: relative; z-index: 1;
}
.article-body p strong,
.book-container p strong { font-weight: 700; color: inherit; }
.article-body ul, .article-body ol,
.book-container ul, .book-container ol {
  max-width: 750px; margin: 0.3rem auto 0.6rem;
  padding-left: 2rem; font-size: 1.05rem; line-height: 1.7; color: #111;
}
.article-body ul li, .article-body ol li,
.book-container ul li, .book-container ol li { margin-bottom: 0.2rem; }

/* SECTION-KICKER / SECTION-TITLE / HEADING-CARD */
.section-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.55rem;
  margin: 0 0 0.9rem;
  border: 1px solid rgba(116, 238, 244, 0.17);
  border-radius: 999px;
  background: rgba(4, 10, 18, 0.55);
  color: #00b7c2;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #f8fbfc;
  max-width: 900px;
  margin: 0 auto;
  text-wrap: balance;
}
.section-subtitle {
  max-width: 660px;
  margin: 0.85rem auto 0;
  color: rgba(188, 201, 210, 0.72);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}
.heading-card {
  position: relative;
  width: min(100%, 960px);
  margin: 0 auto 2.4rem;
  padding: 1.15rem 1.35rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.012));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  box-sizing: border-box;
}
.heading-card__body {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}
.heading-card__photo {
  width: 100px;
  height: 100px;
  min-width: 100px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(116, 238, 244, 0.34);
  background: #111824;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2), 0 0 0 5px rgba(0, 197, 207, 0.055);
}
.heading-card__photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.heading-card__copy { min-width: 0; text-align: left; }
@media (max-width: 850px) {
  .heading-card { padding: 0.9rem 1rem 1.05rem; border-radius: 19px; }
  .heading-card__body { grid-template-columns: 82px minmax(0, 1fr); gap: 0.9rem; }
  .heading-card__photo { width: 82px; height: 82px; min-width: 82px; border-radius: 14px; }
}

/* HERO-PHOTO */
.hero-photo {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-photo-inner {
  position: relative;
  width: 100%;
  max-width: 1232px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 44px rgba(212, 175, 55, 0.10);
  background: #000;
  aspect-ratio: 16/7;
  min-height: 320px;
  contain: layout size;
}
.hero-photo-inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 26, 0.94) 0%, rgba(10, 10, 26, 0.72) 28%, rgba(10, 10, 26, 0.32) 55%, rgba(10, 10, 26, 0.10) 78%, rgba(10, 10, 26, 0.35) 100%);
  pointer-events: none;
}
.hero-photo-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 40px 38px;
  text-align: center;
  z-index: 2;
}
.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  font-weight: 900;
  color: #FFD966;
  letter-spacing: 5px;
  line-height: 1.05;
  margin-bottom: 16px;
  text-shadow: 0 0 22px rgba(212, 175, 55, 0.65), 0 0 48px rgba(212, 175, 55, 0.38), 0 2px 6px rgba(0, 0, 0, 0.6);
}
.hero-subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1rem, 1.8vw, 1.24rem);
  font-style: italic;
  color: #f5efd6;
  max-width: 720px;
  margin: 0 auto 8px;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  font-weight: 600;
}
.hero-desc {
  font-family: system-ui, sans-serif;
  font-size: clamp(0.86rem, 1.4vw, 0.98rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.55;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}
.hero-actions {
  max-width: 1232px;
  margin: 24px auto 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 24px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 14px;
  font-family: system-ui, sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 0.24s ease;
  min-height: 54px;
  background: linear-gradient(135deg, #FFD966, #d4af37 50%, #b08a1a);
  color: #3a2f0d;
  box-shadow: 0 14px 32px rgba(212, 175, 55, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  min-width: 0;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(212, 175, 55, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
@media (max-width: 768px) {
  .hero-photo { padding: 0 12px; }
  .hero-photo-inner { border-radius: 18px; aspect-ratio: 16/8; min-height: 260px; }
  .hero-photo-content { padding: 24px 16px 22px; }
  .hero-title { font-size: clamp(1.9rem, 9vw, 2.8rem); letter-spacing: 3px; margin-bottom: 10px; }
  .hero-subtitle { font-size: 0.92rem; margin-bottom: 6px; }
  .hero-desc { font-size: 0.78rem; line-height: 1.45; }
  .hero-actions { padding: 0 12px; margin-top: 18px; }
  .btn-primary { padding: 13px 22px; font-size: 0.86rem; min-height: 48px; }
}

/* IMPORTANT-BLOCK-TOP */
.important-block-top { max-width: 1280px; margin: 44px auto 0; padding: 0 24px; }
.important-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px; justify-content: center;
}
.important-header-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.32), transparent);
  max-width: 120px;
}
.important-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem; font-weight: 700;
  color: #FFD966; letter-spacing: 0.14em;
  text-transform: uppercase; text-align: center;
}
.important-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.important-card {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px 22px 20px;
  border-radius: 18px;
  background-color: #fffdf7;
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: inherit; text-decoration: none;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  min-height: 150px; overflow: hidden;
}
.important-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.36), 0 0 32px rgba(212, 175, 55, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  border-color: rgba(212, 175, 55, 0.65);
}
.important-card-head { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.important-card-icon {
  font-size: 1.85rem; line-height: 1; flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.important-card:hover .important-card-icon { transform: scale(1.08) rotate(-4deg); }
.important-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem; font-weight: 700;
  color: #8F6B12; line-height: 1.25;
}
.important-card-text {
  font-family: 'Times New Roman', Times, serif;
  font-size: 0.94rem; line-height: 1.55;
  color: #555555; position: relative; z-index: 2;
}
.important-card-credit {
  position: absolute; right: 14px; bottom: 10px;
  font-family: Georgia, serif; font-style: italic;
  font-size: 0.58rem; color: rgba(110, 107, 87, 0.42);
  letter-spacing: 0.06em; pointer-events: none; z-index: 1;
}
@media (max-width: 768px) {
  .important-block-top { padding: 0 12px; margin-top: 30px; }
  .important-title { font-size: 1rem; letter-spacing: 0.1em; }
  .important-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .important-card { padding: 14px 12px 13px; border-radius: 14px; gap: 8px; min-height: 0; }
  .important-card-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .important-card-icon { font-size: 1.5rem; }
  .important-card-title { font-size: 0.82rem; line-height: 1.2; }
  .important-card-text {
    font-size: 0.7rem; line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .important-card-credit { font-size: 0.5rem; right: 10px; bottom: 8px; }
}

/* TO-KNOW-CTA */
.to-know-cta {
  margin: 40px auto 30px;
  max-width: 750px;
  padding: 0 20px;
  box-sizing: border-box;
}
.to-know-cta__inner {
  position: relative; overflow: hidden;
  padding: 2.4rem 2rem 2.2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--rmz-graphite-from), var(--rmz-graphite-to));
  border: 1px solid var(--rmz-graphite-border);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(212, 175, 55, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
  box-sizing: border-box;
}
.to-know-cta__inner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.75), transparent);
  pointer-events: none;
}
.to-know-cta__kicker {
  display: inline-flex; align-items: center;
  margin: 0 0 1.1rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.08);
  color: #FFD966;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.6rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.to-know-cta__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700; color: #FFD966;
  line-height: 1.15; letter-spacing: -0.02em;
  margin: 0 0 1rem; text-wrap: balance;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}
.to-know-cta__text {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.05rem; line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 auto 1.8rem; max-width: 560px;
}
.to-know-cta__btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 1.8rem; border-radius: 999px;
  background: linear-gradient(135deg, #00b7c2 0%, #0f4c75 100%);
  color: #fff;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.92rem; font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(127, 246, 247, 0.45);
  box-shadow: 0 10px 26px rgba(0, 183, 194, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  cursor: pointer;
  min-width: 0;
  width: auto;
}
.to-know-cta__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 38px rgba(0, 183, 194, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  filter: brightness(1.06);
}
.to-know-cta__btn span:last-child { transition: transform 0.25s ease; font-size: 1.1rem; line-height: 1; }
.to-know-cta__btn:hover span:last-child { transform: translateX(5px); }
@media (max-width: 768px) {
  .to-know-cta { margin: 30px auto 25px; padding: 0 14px; }
  .to-know-cta__inner { padding: 1.8rem 1.3rem 1.7rem; border-radius: 16px; }
  .to-know-cta__kicker { font-size: 0.55rem; letter-spacing: 0.13em; padding: 0.35rem 0.7rem; }
  .to-know-cta__title { font-size: 1.35rem; margin-bottom: 0.85rem; }
  .to-know-cta__text { font-size: 0.92rem; line-height: 1.6; margin-bottom: 1.4rem; }
  .to-know-cta__btn { padding: 0.82rem 1.4rem; font-size: 0.86rem; width: 100%; justify-content: center; box-sizing: border-box; }
}

/* КНОПКИ-НАВИГАЦИЯ */
.nav-back-btn,
.nav-toc-btn {
  position: fixed;
  width: 56px; height: 56px;
  border: none; border-radius: 50%;
  color: #fff; font-size: 1.5rem;
  cursor: pointer; display: grid; place-items: center;
  z-index: 900;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 24px rgba(0, 183, 194, 0.15);
  transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
  text-decoration: none; line-height: 1;
  background: linear-gradient(135deg, #00b7c2, #0f4c75);
}
.nav-back-btn:hover,
.nav-toc-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 36px rgba(0, 183, 194, 0.35);
}
.nav-back-btn { left: 20px; bottom: 24px; }
.nav-toc-btn { right: 20px; bottom: 24px; }
@media (min-width: 1025px) {
  .nav-back-btn, .nav-toc-btn { display: none; }
}
@media (max-width: 1024px) {
  .nav-back-btn, .nav-toc-btn {
    width: 52px; height: 52px; font-size: 1.35rem;
  }
  .nav-back-btn { left: 16px; bottom: 20px; }
  .nav-toc-btn { right: 16px; bottom: 20px; }
}
@media (max-width: 380px) {
  .nav-back-btn, .nav-toc-btn {
    width: 48px; height: 48px; font-size: 1.25rem;
  }
}

/* ПРОГРЕСС-БАР */
.progress-bar-container {
  position: fixed; bottom: 0; left: 0;
  width: 100%; height: 56px;
  background: rgba(10, 10, 26, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 999;
  display: flex; align-items: center; padding: 0 20px;
  touch-action: none;
  box-shadow: 0 -6px 40px rgba(0, 0, 0, 0.5);
}
.progress-bar-track {
  position: relative; width: 100%; height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px; overflow: visible;
}
.progress-bar-fill {
  height: 100%;
  width: 100%; /* ★ Теперь всегда 100%, а «сжимаем» через scaleX */
  background: linear-gradient(90deg, #D4AF37, #F0D060);
  border-radius: 4px;
  position: relative;
  transform: scaleX(0); /* ★ Начальное состояние — сжато в 0 */
  transform-origin: left center; /* ★ Растём слева направо */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* ★ Анимируем transform */
}
.progress-bar-label {
  position: absolute;
  bottom: calc(100% + 10px); left: 0%;
  transform: translateX(-50%);
  background: rgba(10, 10, 26, 0.9);
  padding: 4px 12px; border-radius: 20px;
  font-family: 'Arial', sans-serif;
  font-size: 0.75rem; color: #fff;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.progress-bar-container:hover .progress-bar-label { opacity: 1; }
@media (max-width: 1024px) {
  .progress-bar-container { height: 24px; padding: 0 12px; }
  .progress-bar-label { font-size: 0.65rem; padding: 2px 8px; }
  .progress-bar-track { height: 3px; }
}



/* SEARCH */
.search-overlay,
.toc-overlay {
  display: block;
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1998;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s ease;
}
.search-overlay.active,
.toc-overlay.active {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition-delay: 0s;
}
.search-mobile-container {
  display: block;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate3d(-50%, -50%, 0) scale(0.94);
  width: 90%; max-width: 400px;
  background: rgba(10, 10, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 58px 20px 20px;
  z-index: 2000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease, visibility 0s linear 0.32s;
}
.search-mobile-container.active {
  transform: translate3d(-50%, -50%, 0) scale(1);
  opacity: 1; visibility: visible; pointer-events: auto;
  transition-delay: 0s;
}
.search-mobile-container input {
  width: 100%;
  padding: 10px 48px 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff; font-size: 1rem;
  font-family: Arial, sans-serif; outline: none;
}
.search-mobile-container input::placeholder { color: rgba(255, 255, 255, 0.3); }
.search-mobile-container .search-results {
  margin-top: 0.5rem;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  max-height: 300px; overflow-y: auto;
  display: none;
}
.search-mobile-container .search-results.show { display: block; }
.search-mobile-close {
  position: absolute; top: 8px; right: 8px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  z-index: 3;
  background: rgba(10,10,26,0.72);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  color: #b0b7c3;
  font-size: 1.35rem; line-height: 1;
  cursor: pointer;
}
.search-mobile-close:hover { color: #fff; }

.pc-search-overlay {
  display: block;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1998;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.pc-search-overlay.active {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition-delay: 0s;
}
.pc-search-container {
  display: block;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90%; max-width: 500px;
  background: rgba(10, 10, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  z-index: 2000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.24s ease, visibility 0s linear 0.24s;
}
.pc-search-container.active {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition-delay: 0s;
}
.pc-search-container input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff; font-size: 1rem;
  font-family: Arial, sans-serif; outline: none;
}
.pc-search-container input::placeholder { color: rgba(255, 255, 255, 0.3); }
.pc-search-container .search-results {
  margin-top: 0.5rem;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  max-height: 300px; overflow-y: auto;
  display: none;
}
.pc-search-container .search-results.show { display: block; }
.pc-search-close {
  position: absolute;
  top: 10px; right: 15px;
  background: none; border: none;
  color: #b0b7c3; font-size: 1.8rem;
  cursor: pointer;
}
.pc-search-close:hover { color: #fff; }

.search-mobile-container .search-results a,
.search-mobile-container .search-results .rmz-search-result,
.pc-search-container .search-results a,
.pc-search-container .search-results .rmz-search-result {
  display: block;
  width: 100%;
  padding: 10px 8px;
  color: #b0b7c3; text-decoration: none;
  text-align: left;
  font-size: 0.85rem; line-height: 1.4;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  appearance: none; -webkit-appearance: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.search-mobile-container .search-results a:hover,
.search-mobile-container .search-results .rmz-search-result:hover,
.search-mobile-container .search-results .rmz-search-result:focus-visible,
.pc-search-container .search-results a:hover,
.pc-search-container .search-results .rmz-search-result:hover,
.pc-search-container .search-results .rmz-search-result:focus-visible {
  color: #D4AF37;
  background: rgba(212, 175, 55, 0.08);
  outline: none;
}

.search-highlight {
  background: #ffe45c !important;
  color: #17130a !important;
  border-radius: 3px !important;
  padding: 0 !important;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  scroll-margin-top: 12px;
  scroll-margin-bottom: 45vh;
}
.search-highlight-current {
  background: #ffbf00 !important;
  color: #111 !important;
  box-shadow: 0 0 0 2px rgba(255,191,0,.28) !important;
}
.rmz-search-snippet-hit {
  background: #ffe45c;
  color: #17130a;
  border-radius: 2px;
  padding: 0 .05em;
}
.rmz-search-result strong,
.rmz-search-result .rmz-search-snippet { display: block; }
.rmz-search-result strong { margin-bottom: 3px; }
.rmz-search-empty {
  padding: 10px;
  color: #b0b7c3;
  font-size: 0.85rem; text-align: center;
}
.rmz-search-limit-note {
  padding: 10px;
  color: #b0b7c3;
  font-size: 0.8rem; text-align: center;
  font-style: italic;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.rmz-search-result.is-selected {
  background: rgba(212, 175, 55, 0.14) !important;
  color: #fff !important;
}
.rmz-search-result[aria-busy="true"] { cursor: wait; }
.rmz-search-result[aria-busy="true"] .rmz-search-snippet { color: rgba(255,255,255,0.82); }

#search-nav {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 2100;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 999px;
  background: rgba(15,15,24,.96);
  box-shadow: 0 10px 30px rgba(0,0,0,.32);
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}
#search-nav .search-nav-btn,
#search-nav .search-nav-close {
  width: 36px; height: 36px; min-width: 36px;
  padding: 0;
  border: 1px solid rgba(212,175,55,.38);
  border-radius: 50%;
  background: rgba(212,175,55,.10);
  color: #f5df91;
  display: grid; place-items: center;
  cursor: pointer; font-size: 15px; line-height: 1;
}
#search-nav .search-nav-btn:hover,
#search-nav .search-nav-close:hover {
  background: rgba(212,175,55,.22);
  outline: none;
}
#search-nav-counter {
  min-width: 62px;
  text-align: center;
  color: #fff;
  font: 600 .82rem/1 Arial, sans-serif;
  white-space: nowrap;
}
.search-nav-mobile-hint { display: none; }
@media (max-width: 1024px) { #search-nav { bottom: calc(42px + env(safe-area-inset-bottom, 0px)); } }

/* SHARE-BLOCK */
.share-block {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin: 40px auto 0;
  max-width: 750px;
  padding: 16px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rmz-graphite-from), var(--rmz-graphite-to));
  border: 1px solid var(--rmz-graphite-border);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}
.share-block-title {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.72rem; font-weight: 700;
  color: #FFD966; letter-spacing: 0.12em;
  text-transform: uppercase; margin: 0;
  white-space: nowrap; flex-shrink: 0;
}
.share-buttons { display: flex; gap: 8px; flex-wrap: nowrap; margin: 0; flex-shrink: 0; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 0.9rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  flex-shrink: 0; text-decoration: none;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4); }
.share-btn.telegram { background: #0088cc; border-color: transparent; }
.share-btn.whatsapp { background: #25D366; border-color: transparent; }
.share-btn.vk { background: #4C75A3; border-color: transparent; }
.share-btn.instagram {
  background: linear-gradient(45deg, #405DE6, #833AB4, #C13584, #E1306C, #FD1D1D);
  border-color: transparent;
}
.share-btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.share-copy-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.42);
  background: rgba(212, 175, 55, 0.06);
  color: #FFD966;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.74rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: all 0.22s ease;
  text-decoration: none; flex-shrink: 0;
}
.share-copy-link:hover {
  border-color: rgba(212, 175, 55, 0.85);
  background: rgba(212, 175, 55, 0.16);
  color: #fff;
}
.share-copy-link .copy-long { display: inline; }
.share-copy-link .copy-short { display: none; }
.share-url { display: none !important; }

@media (max-width: 768px) {
  .share-block {
    flex-direction: column; align-items: center; justify-content: center;
    gap: 12px;
    padding: 16px 14px; margin-top: 28px;
    border-radius: 12px; text-align: center;
  }
  .share-block-title { font-size: 0.68rem; letter-spacing: 0.1em; text-align: center; }
  .share-buttons { justify-content: center; gap: 8px; }
  .share-btn { width: 38px; height: 38px; border-radius: 10px; }
  .share-copy-link { padding: 8px 14px; font-size: 0.72rem; gap: 5px; }
}
@media (max-width: 480px) {
  .share-block { padding: 14px 12px; gap: 10px; }
  .share-block-title { font-size: 0.66rem; letter-spacing: 0.08em; }
  .share-buttons { gap: 6px; }
  .share-btn { width: 36px; height: 36px; }
  .share-copy-link { padding: 7px 12px; font-size: 0.68rem; gap: 4px; }
  .share-copy-link .copy-long { display: none; }
  .share-copy-link .copy-short { display: inline; }
}

/* SHARE-SECTION */
.share-section {
  max-width: 750px;
  margin: 2.5rem auto;
  padding: 1.2rem 1.5rem;
  text-align: center;
  background: var(--rmz-paper, #fffdf7);
  border-radius: 16px;
  border: 1px solid rgba(184, 134, 11, 0.28);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  position: relative; overflow: hidden;
  clear: both;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 12px;
}
.share-section::before { display: none; }
.share-section .share-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem; font-weight: 800;
  color: #111; margin: 0;
  line-height: 1.3; text-shadow: none;
  white-space: nowrap;
}
.share-section .share-subtitle {
  font-family: 'Arial', sans-serif;
  font-size: 0.82rem; color: #555;
  margin: 0; line-height: 1.3;
  white-space: nowrap;
}
.share-section .share-buttons { display: flex; flex-wrap: nowrap; justify-content: center; gap: 0.5rem; margin: 0; }
.share-section .share-btn { width: 36px; height: 36px; border-radius: 10px; font-size: 0.9rem; border: 1px solid transparent; }
.share-section .share-copy-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.42);
  background: rgba(212, 175, 55, 0.08);
  color: #8F6B12;
  font-family: system-ui, sans-serif;
  font-size: 0.74rem; font-weight: 700;
  text-decoration: none; white-space: nowrap;
}
.share-section .share-copy-link:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.85);
  color: #5B4710;
}
@media (max-width: 768px) {
  .share-section {
    padding: 1rem 1rem; gap: 10px; flex-direction: column;
  }
  .share-section .share-title,
  .share-section .share-subtitle { white-space: normal; text-align: center; }
  .share-section .share-title { font-size: 0.92rem; }
  .share-section .share-subtitle { font-size: 0.76rem; }
  .share-section .share-btn { width: 38px; height: 38px; }
}

/* СЛОВАРЬ */
.dictionary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 1.5rem 0;
  max-width: 100%; clear: both;
}
.dict-item {
  border-radius: 8px;
  padding: 0.6rem 0.8rem 0.8rem;
  transition: all 0.3s ease;
  display: flex; flex-direction: column;
  position: relative;
  word-break: normal;
  overflow-wrap: anywhere;
  overflow: hidden;
  min-height: 0 !important;
}
.dict-item:hover { border-color: #D4AF37; transform: translateY(-2px); }
.dict-term {
  font-weight: 700; color: #D4AF37;
  font-size: 0.85rem; margin-bottom: 0.15rem;
  font-family: 'Arial', sans-serif;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap;
  position: relative; z-index: 1;
}
.dict-def {
  font-size: 0.8rem; color: #444;
  line-height: 1.4;
  font-family: 'Times New Roman', Times, serif;
  flex: 1 1 auto;
  position: relative; z-index: 1;
}
.dict-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem; font-weight: 800;
  color: var(--highlight); text-align: left;
  margin: 2rem 0 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0, 183, 194, 0.3);
  text-transform: uppercase; letter-spacing: 0.5px;
  grid-column: 1 / -1; clear: both;
}
.dict-item > .rmz-share-actions {
  flex-wrap: nowrap !important;
  justify-content: center !important;
  gap: 6px !important;
  margin: 6px 0 2px !important;
  padding: 0 !important;
  margin-top: auto !important;
}
.dict-item .rmz-action-btn {
  flex: 0 0 auto !important;
  max-width: none !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  min-height: 26px !important;
  height: 26px !important;
  padding: 3px 8px !important;
  font-size: 0.62rem !important;
  gap: 4px !important;
  line-height: 1 !important;
}
@media (max-width: 768px) {
  .dictionary-grid { grid-template-columns: 1fr; }
  .dict-section-title { font-size: 1.2rem; }
  .dict-item .rmz-action-btn {
    font-size: 0.55rem !important;
    padding: 3px 6px !important;
    height: 26px !important;
    min-height: 26px !important;
  }
}

/* СКРОЛЛБАРЫ */
html { scrollbar-gutter: stable; }

.reader-sidebar,
.reader-sidebar > div,
.toc-scrollable {
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 237, 241, 0.14) transparent;
}
.reader-sidebar::-webkit-scrollbar,
.reader-sidebar > div::-webkit-scrollbar,
.toc-scrollable::-webkit-scrollbar { width: 6px; height: 6px; }
.reader-sidebar::-webkit-scrollbar-track,
.reader-sidebar > div::-webkit-scrollbar-track,
.toc-scrollable::-webkit-scrollbar-track { background: transparent; }
.reader-sidebar::-webkit-scrollbar-thumb,
.reader-sidebar > div::-webkit-scrollbar-thumb,
.toc-scrollable::-webkit-scrollbar-thumb {
  background: rgba(99, 237, 241, 0.14);
  border-radius: 99px;
  transition: background 0.25s ease;
}
.reader-sidebar:hover::-webkit-scrollbar-thumb,
.reader-sidebar > div:hover::-webkit-scrollbar-thumb,
.toc-scrollable:hover::-webkit-scrollbar-thumb {
  background: rgba(99, 237, 241, 0.42);
}

@media (prefers-reduced-motion: reduce) {
  .reader-sidebar,
  .reader-sidebar-backdrop,
  .share-btn,
  .rmz-action-btn,
  .important-card,
  .important-card-icon,
  .to-know-cta__btn,
  .to-know-cta__btn span:last-child,
  .nav-back-btn,
  .nav-toc-btn {
    transition: none !important;
  }
}
@supports not (backdrop-filter: blur(10px)) {
  .reader-sidebar { background: rgba(12, 12, 26, 0.98) !important; }
  .reader-sidebar-backdrop { background: rgba(0, 0, 0, 0.85) !important; }
}

/* RMZ-ACTION-BTN */
.rmz-action-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 5px;
  width: auto; max-width: 100%; min-width: 0;
  padding: 8px 14px; min-height: 34px;
  box-sizing: border-box;
  border: 1px solid rgba(159, 116, 16, 0.50);
  border-radius: 999px;
  background: linear-gradient(180deg, #F7E7A4 0%, #DEC568 52%, #C5A73D 100%);
  color: #5B4710;
  font: 600 0.76rem/1 system-ui, -apple-system, sans-serif;
  cursor: pointer; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 3px 10px rgba(120, 90, 20, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.rmz-action-btn:hover,
.rmz-action-btn:focus-visible {
  background: linear-gradient(180deg, #F9ECB7 0%, #E5CF7A 52%, #CBB04F 100%);
  box-shadow: 0 4px 11px rgba(120, 90, 20, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  outline: none;
}
.rmz-action-btn:disabled { opacity: 0.65; cursor: wait; }

@media (max-width: 768px) {
  .rmz-action-btn { font-size: 0.7rem; padding: 7px 12px; min-height: 32px; }
}
@media (max-width: 480px) {
  .rmz-action-btn { font-size: 0.66rem; padding: 6px 10px; min-height: 30px; }
}

/* МОБИЛЬНАЯ ОПТИМИЗАЦИЯ */
@media (max-width: 768px) {
  .reader-sidebar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(12, 12, 26, 0.99) !important;
  }
  .reader-sidebar-backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .protected-paper,
  .quote-wrapper,
  .architect-thought,
  .think-block,
  .music-task,
  .people-block,
  .pre-wait-quote,
  .final-quote-box,
  .chapter-transition,
  .gold-table-wrapper,
  .options-table,
  .dict-item,
  .rmz-chapter-cta {
    box-shadow: 0 4px 12px rgba(28, 23, 10, 0.08) !important;
  }
  .hero-photo-inner {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35) !important;
  }
  .loading-overlay-content {
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.18), 0 6px 18px rgba(0, 0, 0, 0.4) !important;
  }
  .important-card {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22) !important;
  }
  .important-card:hover {
    transform: none;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22) !important;
  }
  .to-know-cta__btn {
    box-shadow: 0 6px 16px rgba(0, 183, 194, 0.22) !important;
  }
  .to-know-cta__btn:hover {
    transform: none;
    box-shadow: 0 6px 16px rgba(0, 183, 194, 0.22) !important;
  }
}

@media (max-width: 1024px) {
    .image-wrapper,
    .image-wrapper.float-right,
    .history-photo {
        max-width: 45%;
        float: left;
        margin: 0.5rem 1rem 0.5rem 0;
    }
    .image-wrapper.float-right,
    .history-photo {
        float: right;
        margin: 0.5rem 0 0.5rem 1rem;
    }
    .image-wrapper.mobile-full-width {
        max-width: 100%;
        float: none;
        margin: 1rem auto;
    }
}
@media (max-width: 768px) {
    .image-wrapper,
    .image-wrapper.float-right,
    .history-photo {
        max-width: 45% !important;
        float: left !important;
        margin: 0.5rem 1rem 0.5rem 0 !important;
    }
    .image-wrapper.float-right,
    .history-photo {
        float: right !important;
        margin: 0.5rem 0 0.5rem 1rem !important;
    }
    .image-full-width {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin: 1rem auto !important;
    }
    .image-grid-2 { gap: 0.5rem; }

    .image-wrapper:hover,
    .image-wrapper-centered:hover,
    .image-full-width:hover,
    .history-photo:hover,
    .image-grid-2 .grid-img:hover {
        transform: none !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        overflow: hidden !important;
        z-index: auto !important;
    }
    .image-wrapper img:hover,
    .image-wrapper-centered img:hover,
    .image-full-width img:hover,
    .history-photo img:hover {
        transform: none !important;
        box-shadow: none !important;
        z-index: auto !important;
    }
}

@media (max-width: 380px) {
  .important-card-title { font-size: 0.76rem; }
  .important-card-text { -webkit-line-clamp: 2; }
}

/* ============================================================
   Убираем обрезку фото в hero для know.html
   ============================================================ */
.hero-photo-inner img{
  display:block;
  width:100%;
  height:auto;
  max-height:none;
  object-fit:contain;
}

/* ============================================================
   Единый стиль бейджей (section-kicker) — reader.css
   для страниц know/*.html
   ============================================================ */
.section-kicker{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.38rem .85rem;
  margin:0 0 .9rem;
  border:1px solid rgba(127,246,247,.32);
  border-radius:999px;
  background:rgba(0,197,207,.06);
  color:rgba(127,246,247,.85);
  font:800 .58rem/1 system-ui,-apple-system,sans-serif;
  letter-spacing:.14em;
  text-transform:uppercase;
  white-space:nowrap;
  position:relative;
  z-index:1;
}
.section-kicker--lg{
  font-size:.62rem;
  padding:.42rem .95rem;
}
@media(max-width:700px){
  .section-kicker{font-size:.52rem;padding:.32rem .7rem;gap:.4rem}
  .section-kicker--lg{font-size:.56rem;padding:.36rem .8rem}
}

/* ============================================================
   ?-ПОДСКАЗКИ В БАЗЕ ЗНАНИЙ
   ============================================================ */
.know-page .rmz-hint,
.article-body .rmz-hint,
.reader-content .rmz-hint{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:15px;
  height:15px;
  min-width:15px;
  border-radius:50%;
  border:1px solid rgba(143,107,18,.45);
  background:rgba(212,175,55,.12);
  color:#111111;
  font:800 .58rem/1 system-ui,-apple-system,sans-serif;
  cursor:pointer;
  padding:0;
  margin:0 0 0 3px;
  vertical-align:super;
  position:relative;
  top:-1px;
  transition:all .2s ease;
  flex-shrink:0;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
}
.know-page .rmz-hint:hover,
.know-page .rmz-hint:focus-visible,
.article-body .rmz-hint:hover,
.article-body .rmz-hint:focus-visible{
  border-color:#8F6B12;
  background:rgba(212,175,55,.28);
  color:#000000;
  box-shadow:0 0 8px rgba(212,175,55,.4);
  outline:none;
  transform:scale(1.1);
}
@media(max-width:700px){
  .know-page .rmz-hint,
  .article-body .rmz-hint{
    width:14px;height:14px;min-width:14px;
    font-size:.54rem;
    margin-left:2px;
  }
}

/* ============================================================
   СТИЛИ ДЛЯ ЭКСПОРТА В КАРТИНКУ
   ============================================================ */
.rmz-exporting {
    padding: 2rem !important;
    background-color: #fffdf7 !important;
    /* Возвращаем родной водяной знак из :root */
    background-image: var(--rmz-watermark) !important;
    background-repeat: repeat !important;
    background-position: 0 0 !important;
    background-size: 280px 280px !important;
    border-radius: 14px !important;
    position: relative !important;
    overflow: hidden !important;
}

.rmz-exporting * {
    font-family: 'Times New Roman', Times, serif !important;
    color: #111 !important;
    text-shadow: none !important;
}

.rmz-exporting .rmz-special-quote-header,
.rmz-exporting h3 {
    font-family: 'Playfair Display', Georgia, serif !important;
    color: #8F6B12 !important;
}

/* Кнопки скрываем на время снимка */
.rmz-exporting .rmz-share-actions,
.rmz-exporting .rmz-action-btn {
    display: none !important;
}

/* ★ КРАСИВУЮ ПОДПИСЬ НЕ СКРЫВАЕМ! (удалена строка .rmz-card-credit) */

@media (max-width: 768px) {
    .rmz-share-actions .rmz-action-btn {
        background: linear-gradient(180deg, #F7E7A4 0%, #DEC568 52%, #C5A73D 100%) !important;
        border: 1px solid rgba(159, 116, 16, 0.50) !important;
        box-shadow: 0 3px 10px rgba(120, 90, 20, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
        color: #5B4710 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .rmz-share-actions .rmz-action-btn:active {
        background: linear-gradient(180deg, #E5CF7A 0%, #CBB04F 100%) !important;
    }
}

/* ============================================================
   TOC — заголовок + описание внутри одной ссылки
   ============================================================ */

.toc-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  padding: 8px 36px 8px 12px; /* 36px справа — под кнопку-копировать */
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
  word-break: normal;
  overflow-wrap: anywhere;
}

.toc-link__title {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  color: #b0b7c3;
  line-height: 1.4;
  transition: color 0.2s ease;
  margin-bottom: 2px;
}

.toc-link__desc {
  display: block;
  font: 400 .68rem/1.4 system-ui, -apple-system, sans-serif;
  color: rgba(176, 183, 195, .55);
  word-break: normal;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

/* Hover — вся карточка */
.toc-item:hover .toc-link {
  background: rgba(0, 183, 194, 0.06);
  border-left-color: rgba(0, 183, 194, 0.45);
}
.toc-item:hover .toc-link__title {
  color: #7ff6f7;
}

/* Активная — заголовок + описание + фон */
.toc-item.is-active .toc-link,
.toc-link.active-toc {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.14), rgba(212, 175, 55, 0.04)) !important;
  border-left: 3px solid #D4AF37 !important;
  border-radius: 8px;
}
.toc-item.is-active .toc-link__title,
.toc-link.active-toc .toc-link__title {
  color: #FFD966 !important;
  font-weight: 700;
}
.toc-item.is-active .toc-link__desc,
.toc-link.active-toc .toc-link__desc {
  color: rgba(255, 217, 102, 0.75) !important;
}

@media (max-width: 1024px) {
  .toc-link__desc {
    font-size: .64rem;
  }
}

/* ============================================================
   БЛОК "ПОДЕЛИТЬСЯ ГЛАВОЙ"
   ============================================================ */
.rmz-share-section-chapter {
  max-width: 750px;
  margin: 2.5rem auto 1.4rem;
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid rgba(184, 134, 11, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0 0, rgba(212, 175, 55, 0.06), transparent 60%),
    linear-gradient(145deg, rgba(255, 253, 247, 0.98), rgba(248, 246, 240, 0.98));
  box-shadow: 0 10px 28px rgba(28, 23, 10, 0.08);
  text-align: center;
  clear: both;
}

.rmz-share-section-chapter__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0 0 1.1rem;
  font: 800 0.68rem/1 system-ui, -apple-system, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8F6B12;
  white-space: nowrap;
}
.rmz-share-section-chapter__title::before,
.rmz-share-section-chapter__title::after {
  content: '';
  flex: 1;
  height: 1px;
  max-width: 80px;
  background: linear-gradient(90deg, transparent, rgba(143, 107, 18, 0.55));
}
.rmz-share-section-chapter__title::after {
  background: linear-gradient(90deg, rgba(143, 107, 18, 0.55), transparent);
}

.rmz-share-section-chapter__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 100%;
}

.rmz-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(184, 134, 11, 0.3);
  background: #fff;
  color: #5B4710;
  font: 700 0.8rem/1 system-ui, -apple-system, sans-serif;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  flex-shrink: 0;
}
.rmz-share-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}
.rmz-share-btn:hover,
.rmz-share-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(120, 90, 20, 0.2);
  outline: none;
}
.rmz-share-btn:hover svg {
  transform: scale(1.08);
}

.rmz-share-btn--telegram { background: #0088cc; color: #fff; border-color: transparent; }
.rmz-share-btn--telegram:hover { box-shadow: 0 8px 20px rgba(0, 136, 204, 0.4); }
.rmz-share-btn--vk       { background: #4C75A3; color: #fff; border-color: transparent; }
.rmz-share-btn--vk:hover { box-shadow: 0 8px 20px rgba(76, 117, 163, 0.4); }
.rmz-share-btn--whatsapp { background: #25D366; color: #fff; border-color: transparent; }
.rmz-share-btn--whatsapp:hover { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4); }
.rmz-share-btn--x        { background: #0a0a1a; color: #fff; border-color: transparent; }
.rmz-share-btn--x:hover  { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); }

.rmz-share-btn--copy {
  width: auto;
  padding: 0 1.1rem;
  height: 44px;
  gap: 0.5rem;
  background: linear-gradient(180deg, #F7E7A4 0%, #DEC568 52%, #C5A73D 100%);
  color: #5B4710;
  border: 1px solid rgba(159, 116, 16, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  margin-left: 0.4rem;
}
.rmz-share-btn--copy:hover {
  background: linear-gradient(180deg, #F9ECB7 0%, #E5CF7A 52%, #CBB04F 100%);
  box-shadow:
    0 8px 20px rgba(120, 90, 20, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}
.rmz-share-btn__copy-label {
  font: 700 0.78rem/1 system-ui, -apple-system, sans-serif;
  letter-spacing: 0.02em;
}

@media (max-width: 700px) {
  .rmz-share-section-chapter {
    margin: 1.8rem auto 1.2rem;
    padding: 1.1rem 0.9rem 1.15rem;
    border-radius: 14px;
  }
  .rmz-share-section-chapter__title {
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
  }
  .rmz-share-section-chapter__title::before,
  .rmz-share-section-chapter__title::after { max-width: 45px; }

  .rmz-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }
  .rmz-share-btn svg { width: 18px; height: 18px; }

  .rmz-share-btn--copy {
    flex-basis: 100%;
    width: 100%;
    height: 40px;
    margin-left: 0;
    margin-top: 0.35rem;
    padding: 0 1rem;
    justify-content: center;
  }
  .rmz-share-btn__copy-label {
    font-size: 0.76rem;
  }
}

@media (max-width: 380px) {
  .rmz-share-btn { width: 36px; height: 36px; border-radius: 10px; }
  .rmz-share-btn svg { width: 16px; height: 16px; }
  .rmz-share-btn--copy { height: 38px; }
  .rmz-share-btn__copy-label { font-size: 0.7rem; }
  .rmz-share-section-chapter__title { font-size: 0.56rem; }
  .rmz-share-section-chapter__title::before,
  .rmz-share-section-chapter__title::after { max-width: 28px; }
}

/* ============================================================
   КНОПКИ НАВИГАЦИИ МЕЖДУ ГЛАВАМИ — ВСЕГДА 2 КОЛОНКИ
   ============================================================ */
.rmz-chapter-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  max-width: 750px;
  margin: 0 auto 2rem;
  clear: both;
}
.rmz-chapter-nav__btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(184, 134, 11, 0.28);
  background: linear-gradient(145deg, #fffdf7, #f8f6f0);
  color: #111;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(28, 23, 10, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  min-width: 0;
}
.rmz-chapter-nav__btn:hover,
.rmz-chapter-nav__btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 12px 28px rgba(28, 23, 10, 0.12);
  outline: none;
}
.rmz-chapter-nav__btn--prev { text-align: left; }
.rmz-chapter-nav__btn--next { text-align: right; justify-content: flex-end; }

.rmz-chapter-nav__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 217, 102, 0.55), rgba(212, 175, 55, 0.35));
  color: #5B4710;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}
.rmz-chapter-nav__btn--prev:hover .rmz-chapter-nav__arrow { transform: translateX(-3px); }
.rmz-chapter-nav__btn--next:hover .rmz-chapter-nav__arrow { transform: translateX(3px); }

.rmz-chapter-nav__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.rmz-chapter-nav__label {
  font: 800 0.56rem/1 system-ui, -apple-system, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8F6B12;
}
.rmz-chapter-nav__title {
  font: 700 0.88rem/1.25 'Playfair Display', Georgia, serif;
  color: #111;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.rmz-chapter-nav__spacer { display: block; }

@media (max-width: 700px) {
  .rmz-chapter-nav { gap: 0.55rem; margin-bottom: 1.6rem; }
  .rmz-chapter-nav__btn {
    padding: 0.7rem 0.75rem;
    gap: 0.5rem;
    border-radius: 11px;
  }
  .rmz-chapter-nav__arrow {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 0.85rem;
  }
  .rmz-chapter-nav__label {
    font-size: 0.48rem;
    letter-spacing: 0.1em;
  }
  .rmz-chapter-nav__title {
    font-size: 0.76rem;
    line-height: 1.2;
  }
}
@media (max-width: 480px) {
  .rmz-chapter-nav__btn { padding: 0.65rem 0.6rem; gap: 0.4rem; }
  .rmz-chapter-nav__arrow {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 0.75rem;
  }
  .rmz-chapter-nav__title { font-size: 0.7rem; }
}
@media (max-width: 380px) {
  .rmz-chapter-nav { gap: 0.4rem; }
  .rmz-chapter-nav__btn { padding: 0.55rem 0.5rem; }
  .rmz-chapter-nav__arrow {
    width: 22px;
    height: 22px;
    min-width: 22px;
    font-size: 0.7rem;
  }
  .rmz-chapter-nav__label { display: none; }
  .rmz-chapter-nav__title { font-size: 0.66rem; -webkit-line-clamp: 3; }
}

/* ============================================================
   ПЛЕЕРЫ В КНИГЕ (Светлый, премиальный вид)
   ============================================================ */

/* 1. Общая карточка плеера (светло-серый бирюзовый градиент) */
.chapter-wrapper .remiz-player {
  margin: 1.5rem auto !important;
  padding: 1.1rem 1.3rem !important;
  /* Переход от светлого к светло-серому */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(200, 215, 220, 0.95)) !important;
  border: 1px solid rgba(0, 183, 194, 0.3) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.6rem !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* 2. Заголовок трека — ВСЕГДА ЧЕРНЫЙ, без градиентов */
.chapter-wrapper .remiz-player__title {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important; /* Убираем любые старые градиенты */
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  padding-bottom: 0.5rem !important;
  margin-bottom: 0.1rem !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important; /* Тонкая темная линия */
  white-space: normal !important;
  text-shadow: none !important;
}

/* 3. Кнопка Play — темно-бирюзовая (чтобы выделялась на светлом) */
.chapter-wrapper .remiz-player__btn {
  background: radial-gradient(circle at 35% 30%, rgba(0, 183, 194, 0.3), rgba(0, 183, 194, 0.1)) !important;
  border: 1px solid rgba(0, 183, 194, 0.6) !important;
  color: #006f76 !important;
  box-shadow: 0 2px 8px rgba(0, 183, 194, 0.15) !important;
  transition: all 0.2s ease !important;
}
.chapter-wrapper .remiz-player__btn:hover {
  transform: scale(1.05) !important;
  background: radial-gradient(circle at 35% 30%, rgba(0, 183, 194, 0.4), rgba(0, 183, 194, 0.2)) !important;
  box-shadow: 0 4px 12px rgba(0, 183, 194, 0.3) !important;
}
.chapter-wrapper .remiz-player__btn svg {
  fill: #006f76 !important;
  color: #006f76 !important;
  width: 16px !important;
  height: 16px !important;
}

/* 4. Полоса прогресса */
.chapter-wrapper .remiz-player__track {
  background: rgba(0, 0, 0, 0.1) !important;
  height: 4px !important;
}
.chapter-wrapper .remiz-player__fill {
  background: linear-gradient(90deg, #00b7c2, #4fb3bd) !important;
  box-shadow: 0 0 6px rgba(0, 183, 194, 0.4) !important;
}

/* 5. Время — темное, моноширинное */
.chapter-wrapper .remiz-player__time {
  color: #333333 !important;
  font-family: 'Courier New', monospace !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
}

/* 6. Кнопка подсказки "?" */
.chapter-wrapper .remiz-player__hint {
  background: rgba(0, 183, 194, 0.1) !important;
  border: 1px solid rgba(0, 183, 194, 0.4) !important;
  color: #006f76 !important;
}

/* 7. Мобильная адаптация */
@media (max-width: 700px) {
  .chapter-wrapper .remiz-player {
    padding: 0.85rem 1rem !important;
    margin: 1.2rem auto !important;
  }
  .chapter-wrapper .remiz-player__title {
    font-size: 0.95rem !important;
    padding-bottom: 0.4rem !important;
  }
  .chapter-wrapper .remiz-player__time {
    font-size: 0.65rem !important;
  }
}