/* S01 и общие части S01/S04 (W06): герой, полка недели, карточки, заглушки. Из принятого прототипа С2 (css/site.css). */
.s-main:has(.s01) { padding: 0; }
.hero { background: var(--band); color: var(--on-band); border-radius: 0 0 40px 40px; padding: 6px 0 22px; }
.hero-in { display: grid; gap: 18px; }
.hero h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; }
.hero .lead { margin-top: 10px; font-size: 1rem; font-weight: 600; }
.hero .nb { white-space: nowrap; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 52px; padding: 0 20px 0 24px; border: 0; border-radius: 999px; background: var(--on-band); color: var(--band); font-weight: 800; font-size: 1.15rem; text-decoration: none; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.6); transition: transform 0.1s ease; }
.cta svg { width: 22px; height: 22px; }
.cta:active { transform: translateY(2px) scale(0.985); }
.hero :focus-visible { outline-color: var(--focus-on-band); }
.hero-book { display: grid; justify-items: center; justify-self: center; gap: 12px; text-decoration: none; color: var(--on-band); pointer-events: none; }
.hero-book .cover-frame { width: min(44vw, 330px); pointer-events: auto; }
.hero-book .ttl { font-weight: 800; font-size: 1.1rem; text-align: center; }
.ttl-desk { display: none; }
.cover-frame { padding: 4px; border-radius: 20px; background: var(--frame); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7); }
.cover-frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; background: #e9dcc0; }

.sec { padding: 24px 0 10px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 14px; }
.sec-head h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.025em; }
.sec-head h2 a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; }
.sec-head .note { font-size: 1rem; font-weight: 600; color: var(--text); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
.grid > li { min-width: 0; }
.card { position: relative; display: grid; gap: 9px; align-content: start; min-width: 0; color: var(--text); text-decoration: none; border-radius: 18px; }
.card .pic img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; background: #e9dcc0; box-shadow: 0 0 0 1px rgba(80, 60, 20, 0.12), 0 12px 24px -16px rgba(60, 40, 10, 0.55); transition: transform 0.1s ease; }
.card:active .pic img { transform: scale(0.97); }
.card .ttl { font-weight: 800; font-size: 1.06rem; line-height: 1.25; min-height: calc(var(--ttl-lines, 2) * 1.25em); overflow-wrap: anywhere; }
.card .theme { font-size: 0.92rem; font-weight: 700; color: var(--muted); }
.badge { display: inline-flex; align-items: center; justify-self: start; min-height: 28px; padding: 3px 11px; border-radius: 999px; font-size: 0.86rem; font-weight: 800; line-height: 1.2; }
.badge.lang { background: transparent; color: var(--muted); padding-left: 0; font-weight: 700; white-space: normal; max-width: 100%; }
.week-body { display: grid; gap: 12px; }
.week-body > .mb-loading { margin: 0; }
.week-body > .mb-loading ~ .mb-loading { display: none; } /* своя подпись и подпись оболочки не дублируются */
.week-body:has([data-mb-s10]) [data-mb-wait], .week-body:has([data-mb-s10]) .mb-loading { display: none; }
.week-body .notice[data-mb-s10] { margin-top: 0; }
.skel-li { display: grid; gap: 9px; align-content: start; min-width: 0; }
.skel { display: block; aspect-ratio: 3 / 4; border-radius: 14px; background: linear-gradient(100deg, #efe4c9 30%, #f7eedb 50%, #efe4c9 70%); background-size: 300% 100%; }
.skel-ttl { display: block; height: calc(var(--ttl-lines, 2) * 1.25 * 1.06rem); border-radius: 8px; background: #efe4c9; opacity: 0.6; }
.skel-sub { display: block; height: calc(1.3 * 0.92rem); border-radius: 8px; background: #efe4c9; opacity: 0.6; }
.notice p { max-width: 60ch; }

@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 22px; }
  .hero { padding-bottom: 40px; }
  .hero-book .cover-frame { width: min(40vw, 340px); }
}
@media (min-width: 700px) and (min-width: 1100px) {
  .hero { padding: 16px 0 28px; border-radius: 0 0 48px 48px; }
  .hero-in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; }
  .hero h1 { font-size: 4.9rem; }
  .hero .lead { font-size: 1.5rem; }
  .hero-book { order: 2; }
  .hero-book .cover-frame { width: 290px; }
  .hero-book .ttl-mob { display: none; }
  .hero-text .ttl-desk { display: block; margin-top: 26px; font-size: 1.85rem; font-weight: 800; }
  .hero-actions { margin-top: 26px; }
  .cta { min-height: 64px; font-size: 1.45rem; gap: 22px; padding: 0 26px 0 32px; }
  .cta svg { width: 26px; height: 26px; }
  .sec { padding-top: 26px; padding-bottom: 6px; }
  .sec-head h2 { font-size: 2.5rem; }
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid.week9 { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 24px 18px; --ttl-lines: 3; }
  .grid.week9 .card .ttl { font-size: 0.98rem; }
  .foot { margin-top: 10px; }
}
