/* Ксения Махова — стиль
   Палитра взята из врачебного обихода: чернила печати, бланк, персиковая обложка детской карты.
   Сиреневый означает «переписку»: поле сообщения, примеры вопросов, отзывы, клуб-чат. */
:root {
  --paper: #fcfcfa;
  --ink: #262a6b;
  --ink-soft: #565b8c;
  --stamp: #4c3fb4;
  --stamp-deep: #3a2f95;
  --lilac: #e8e6f6;
  --lilac-line: #cfcbee;
  --peach: #f6d9c7;
  --peach-light: #fbede3;
  --line: #dcdcea;

  --cover-kids: #f6d9c7;
  --cover-food: #f2e2a9;
  --cover-feel: #d4e2f2;
  --cover-gut: #cfe2d4;

  --serif: Literata, "PT Serif", Georgia, serif;
  --sans: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;

  --bubble-in: 26px 26px 26px 6px;
  --bubble-out: 26px 26px 6px 26px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 64px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; font-family: var(--sans); }
.skip:focus { top: 12px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 22px;
  border: 2px solid var(--stamp); border-radius: 14px;
  background: var(--stamp); color: #fff;
  font-family: var(--sans); font-size: 16px; font-weight: 500; line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: background-color .15s, border-color .15s, color .15s;
}
.button:hover { background: var(--stamp-deep); border-color: var(--stamp-deep); }
.button.quiet { background: transparent; color: var(--stamp); }
.button.quiet:hover { background: var(--lilac); color: var(--stamp-deep); }
.button.light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.button.light:hover { background: var(--lilac); border-color: var(--lilac); }
.button.light-quiet { background: transparent; border-color: rgb(252 252 250 / .5); color: var(--paper); }
.button.light-quiet:hover { border-color: var(--paper); }

.fine-print { font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--ink-soft); max-width: 68ch; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: rgb(252 252 250 / .94); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand { font-size: 21px; font-weight: 600; text-decoration: none; white-space: nowrap; letter-spacing: -.01em; }
.brand span { font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--ink-soft); margin-left: 6px; letter-spacing: 0; }
#navigation { display: flex; gap: 26px; margin-left: auto; font-family: var(--sans); font-size: 15px; }
#navigation a { text-decoration: none; padding: 6px 0; }
#navigation a[aria-current="page"] { color: var(--stamp); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
#navigation a:hover { color: var(--stamp); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.header-cta { font-family: var(--sans); font-size: 15px; font-weight: 500; text-decoration: none; color: #fff; background: var(--stamp); padding: 9px 18px; border-radius: 12px; }
.header-cta:hover { background: var(--stamp-deep); }
.menu-toggle { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-block: 40px 104px; }
.hero h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -.025em; max-width: 14ch; }
.hero-intro { margin-top: 18px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 44ch; color: var(--ink-soft); }

.composer { margin-top: 36px; }
.nowrap { white-space: nowrap; }
.composer-label { display: block; font-family: var(--sans); font-size: 15px; color: var(--ink-soft); margin-bottom: 12px; max-width: 52ch; }
.composer-field {
  position: relative;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--bubble-out);
  padding: 26px 32px 22px;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(26px, 2.7vw, 38px); line-height: 1.2; letter-spacing: -.015em;
  cursor: text;
  transition: border-color .15s, box-shadow .15s;
}
.composer-field:focus-within { border-color: var(--stamp); box-shadow: 0 0 0 4px var(--lilac); }
.composer-greeting { display: block; }
.composer-field textarea {
  display: block; width: 100%; min-height: 1.18em; padding: 0; margin: 0;
  border: 0; outline: 0; background: transparent; resize: none; overflow: hidden;
  font: inherit; letter-spacing: inherit; line-height: inherit; color: var(--stamp);
  caret-color: var(--stamp);
}
.composer-field textarea::placeholder { color: #a3a6c8; opacity: 1; }
.composer-field:focus-within textarea:focus-visible { outline: none; }

.composer-examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.composer-examples button {
  border: 1px solid var(--lilac-line); background: var(--lilac); border-radius: 999px;
  padding: 8px 16px; font-family: var(--sans); font-size: 15px; line-height: 1.3; color: var(--ink);
  transition: background-color .15s, border-color .15s;
}
.composer-examples button:hover { border-color: var(--stamp); }
.composer-examples button[aria-pressed="true"] { background: var(--stamp); border-color: var(--stamp); color: #fff; }
.composer-send { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.composer-hint { margin-top: 14px; font-family: var(--sans); font-size: 14px; color: var(--ink-soft); }
.composer-status { min-height: 1.5em; margin-top: 4px; font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--stamp); }

.hero-photo { margin: 8px 0 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 38% 50%; border-radius: 26px; background: var(--peach-light); }
.hero-photo figcaption { margin-top: 14px; font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--ink-soft); max-width: 40ch; }

/* Sections */
.section { padding-block: 104px; }
.section-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; margin-bottom: 48px; }
.section-head h2, .faq h2, .about h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.15; letter-spacing: -.02em; }
.section-head p { font-size: 18px; color: var(--ink-soft); max-width: 44ch; }
.section-head p strong { color: var(--ink); font-weight: 600; }

/* Directions */
.formats { padding-top: 0; }
.topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 0 0 36px; }
.topics > div { border-top: 3px solid var(--ink); padding-top: 18px; }
.topics dt { font-size: 23px; font-weight: 500; line-height: 1.25; margin-bottom: 10px; }
.topics dd { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }

/* About */
.about { background: var(--peach-light); padding-block: 104px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 112px); }
.about-text { max-width: 62ch; }
.about-text h2 { max-width: 18ch; margin-bottom: 28px; }
.about-text p + p { margin-top: 1em; }
.about-text .lead { font-size: 23px; line-height: 1.5; font-style: italic; margin-bottom: 1.4em; }
.about-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 32px !important; font-family: var(--sans); font-size: 16px; font-weight: 500; }
.about-links a { color: var(--stamp); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.about-links a:hover { text-decoration-thickness: 2px; }

.path { align-self: start; background: var(--paper); border-radius: 22px; padding: 32px 32px 12px; }
.path h3, .path h2 { font-family: var(--sans); font-size: 16px; font-weight: 600; margin-bottom: 22px; }

/* Formats */
.format-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.format { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 32px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.format h3 { font-size: 27px; line-height: 1.2; }
.format p { color: var(--ink-soft); max-width: 46ch; }
.format .price { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--ink); margin-top: auto; padding-top: 8px; }

.club { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 6vw, 88px); margin-top: 20px; padding: clamp(28px, 4vw, 56px); background: var(--lilac); border-radius: 22px; }
.club-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.club-intro h3 { font-size: clamp(30px, 3vw, 38px); line-height: 1.15; letter-spacing: -.015em; }
.club-price { font-family: var(--sans); font-size: 17px; color: var(--ink-soft); }
.club-price strong { font-family: var(--serif); font-size: 44px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; margin-right: 6px; }
.club-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.club-list li { background: #fff; border-radius: var(--bubble-in); padding: 16px 22px; font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.club-list strong { display: block; font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.club-note { grid-column: 1 / -1; }

/* Books */
.books { border-top: 1px solid var(--line); }
.catalog-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 18px; font-family: var(--sans); font-size: 15px; }
.filter:hover { border-color: var(--stamp); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.search input { width: min(320px, 100%); border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 16px; font-family: var(--sans); font-size: 15px; }
.search input:focus-visible { outline: 3px solid var(--stamp); outline-offset: 1px; }
.catalog-count { margin: 20px 0 24px; font-family: var(--sans); font-size: 14px; color: var(--ink-soft); }

.book-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.book { position: relative; display: flex; flex-direction: column; }
.cover {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 3 / 4; padding: 20px 20px 22px 30px;
  border-radius: 4px 14px 14px 4px;
  background: var(--cover, var(--lilac));
  color: var(--ink); overflow: hidden;
  box-shadow: inset 10px 0 0 rgb(38 42 107 / .07), 0 1px 0 rgb(38 42 107 / .12), 0 14px 26px -18px rgb(38 42 107 / .45);
  transition: transform .2s;
}
.cover::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 1px; background: rgb(38 42 107 / .14); }
.cover-author { font-family: var(--sans); font-size: 12px; letter-spacing: .02em; }
.cover-title { font-family: var(--serif); font-size: clamp(19px, 1.8vw, 24px); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; hyphens: auto; overflow-wrap: break-word; }
.cover-series { font-family: var(--sans); font-size: 12px; color: rgb(38 42 107 / .7); }
[data-category="Дети"] { --cover: var(--cover-kids); }
[data-category="Питание"] { --cover: var(--cover-food); }
[data-category="Самочувствие"] { --cover: var(--cover-feel); }
[data-category="ЖКТ"] { --cover: var(--cover-gut); }
.book-meta { display: block; margin-top: 16px; font-family: var(--sans); font-size: 14px; color: var(--ink-soft); }
.book { color: inherit; text-decoration: none; border-radius: 14px; }
.book[hidden], .catalog-tools[hidden] { display: none; }
.book-title { margin-top: 4px; font-size: 19px; font-weight: 500; line-height: 1.3; }
.book:focus-visible { outline-offset: 8px; }
.book:hover .cover { transform: translateY(-4px); }
.book:hover .book-title { color: var(--stamp); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.book-price { display: block; margin-top: 6px; font-family: var(--sans); font-size: 15px; font-weight: 500; }
.empty { padding: 40px 0; font-size: 19px; }
.catalog-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; margin-top: 48px; }
.catalog-bottom .button[hidden] { display: none; }

/* Reviews */
.reviews { border-top: 1px solid var(--line); }
.chat { columns: 3 300px; column-gap: 20px; margin-bottom: 32px; }
.msg { break-inside: avoid; margin: 0 0 20px; padding: 20px 24px 14px; background: var(--lilac); border-radius: var(--bubble-in); }
.msg blockquote { margin: 0; font-size: 19px; line-height: 1.55; }
.msg figcaption { margin-top: 10px; text-align: right; font-family: var(--sans); font-size: 13px; color: var(--ink-soft); }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; border-top: 1px solid var(--line); }
.faq h2 { max-width: 12ch; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { position: relative; list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-size: 21px; font-weight: 500; line-height: 1.35; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--stamp); border-bottom: 2px solid var(--stamp); transform: translateY(-75%) rotate(45deg); transition: transform .2s; }
.faq-list details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-list summary:hover { color: var(--stamp); }
.faq-list details p { padding: 0 0 24px; max-width: 60ch; color: var(--ink-soft); }

/* Closing */
.closing { background: var(--ink); color: var(--paper); padding-block: 96px; }
.closing-inner { display: grid; gap: 36px; }
.closing-line { font-style: italic; font-size: clamp(30px, 4vw, 52px); line-height: 1.2; letter-spacing: -.015em; max-width: 24ch; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.closing :focus-visible { outline-color: var(--peach); }

/* Footer */
.footer { padding-block: 40px 48px; font-family: var(--sans); font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 40px; }
.footer-name { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.socials { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.socials a { color: var(--stamp); text-underline-offset: 4px; }
.footer-note { flex-basis: 100%; color: var(--ink-soft); font-size: 14px; }

/* Dialogs */
dialog { width: min(520px, 100% - 32px); max-height: calc(100dvh - 32px); overflow: auto; border: 0; border-radius: 24px; padding: 40px 36px 32px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -30px rgb(38 42 107 / .5); }
dialog::backdrop { background: rgb(38 42 107 / .45); }
dialog[open] { animation: rise .22s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
dialog h2 { font-size: 30px; line-height: 1.2; letter-spacing: -.015em; margin-bottom: 12px; padding-right: 32px; }
dialog p { margin-bottom: 14px; }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; font-family: var(--sans); font-size: 28px; line-height: 1; color: var(--ink); }
.dialog-close:hover { background: var(--lilac); }
.dialog-price { font-family: var(--sans); font-size: 15px; color: var(--ink-soft); }
.dialog-price strong { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--ink); margin-right: 6px; }
.dialog-note { font-family: var(--sans); font-size: 15px; line-height: 1.55; background: var(--lilac); border-radius: var(--bubble-in); padding: 14px 18px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 18px; }


/* Inner pages */
.text-link { font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--stamp); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }
.format h3 a, .club h3 a { color: inherit; text-decoration: none; }
.format h3 a:hover, .club h3 a:hover { color: var(--stamp); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.format-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.club-compact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.club-compact .club-intro p { max-width: 52ch; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0 0 28px; padding: 0; font-family: var(--sans); font-size: 14px; color: var(--ink-soft); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--lilac-line); }
.crumbs a { color: var(--ink-soft); text-underline-offset: 4px; }
.crumbs a:hover { color: var(--stamp); }
.crumbs [aria-current] { color: var(--ink); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.page-head { padding-block: 40px 72px; }
.page-head h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.08; letter-spacing: -.025em; max-width: 18ch; }
.page-head .lead { margin-top: 24px; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; max-width: 52ch; }
.page-head.crumbs-only { padding-bottom: 8px; }
.consult-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(32px, 6vw, 88px); align-items: start; }
.consult-summary { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.consult-summary img { display: block; width: 100%; height: auto; padding: 16px 16px 0; clip-path: inset(24px 19px 0); }
.consult-summary dl { margin: 0; padding: 8px 24px 12px; }
.consult-summary dl > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: 15px; line-height: 1.45; }
.consult-summary dl > div:last-child { border-bottom: 0; }
.consult-summary dt { color: var(--ink-soft); }
.consult-summary dd { margin: 0; font-weight: 500; }
.page-price { margin-top: 20px; font-family: var(--sans); font-size: 16px; font-weight: 500; }
.page-head .club-price { margin-top: 20px; }
.page-note { margin-top: 18px; max-width: 52ch; }
.messenger-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-head ~ .section { padding-block: 64px; }
.page-head + .section { padding-top: 16px; }
.section > h2, .steps-section > h2, .limits > h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 36px; }

.prose { max-width: 64ch; }
.prose p + p, .prose p + h2, .prose ul + h2 { margin-top: 1em; }
.prose h2, .prose h3 { font-size: 23px; line-height: 1.3; margin-bottom: 10px; }
.prose ul { margin: 0; padding-left: 1.1em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--stamp); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; max-width: none; margin-top: 56px; }
.two-col > div { max-width: 60ch; }

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px 28px; margin: 0 0 32px; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-top: 56px; font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--stamp); font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--stamp); }
.steps strong { display: block; margin-bottom: 4px; font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--ink); }
.steps-section { border-top: 1px solid var(--line); }

.prepare-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 640px; }
.prepare-list li { justify-self: start; padding: 12px 20px; background: var(--lilac); border-radius: var(--bubble-out); font-size: 18px; }
.limits .prose { padding: 28px 32px; background: var(--peach-light); border-radius: 22px; max-width: 760px; }

.author { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: center; padding: 32px; border: 1px solid var(--line); border-radius: 22px; background: #fff; max-width: 920px; }
.author-photo { width: 200px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--peach-light); }
.author-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.5); transform-origin: 50% 30%; }
.author h2 { font-size: 26px; line-height: 1.2; margin-bottom: 10px; }
.author p { color: var(--ink-soft); margin-bottom: 14px; max-width: 60ch; }
.author strong { color: var(--ink); font-weight: 600; }

.about-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; }
.about-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; border-radius: 26px; }
.path-list { list-style: none; margin: 0; padding: 0; }
.path-list li { position: relative; padding: 0 0 26px 30px; font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.path-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--stamp); background: var(--paper); }
.path-list li::after { content: ""; position: absolute; left: 5px; top: 22px; bottom: 4px; width: 1px; background: var(--lilac-line); }
.path-list li:last-child::before { background: var(--stamp); }
.path-list li:last-child::after { display: none; }
.path-list strong { display: block; font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.path-list .years { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--ink-soft); margin-left: 6px; }
.credentials { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: 15px; color: var(--ink-soft); }
.credentials li + li { margin-top: 12px; }
.credentials strong { display: block; color: var(--ink); }

.book-page { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-areas: "cover head" "cover buy" "cover body"; grid-template-rows: auto auto 1fr; gap: 0 clamp(32px, 6vw, 96px); align-items: start; padding-bottom: 40px; }
.book-page .cover-large { grid-area: cover; }
.book-head { grid-area: head; }
.book-page .buy { grid-area: buy; }
.book-body { grid-area: body; }
.cover-large { position: sticky; top: 108px; padding: 32px 28px 32px 44px; border-radius: 6px 20px 20px 6px; }
.cover-large::before { left: 14px; }
.cover-large .cover-author, .cover-large .cover-series { font-size: 14px; }
.cover-large .cover-title { font-size: clamp(28px, 3vw, 40px); }
.book-head h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.1; letter-spacing: -.02em; margin: 8px 0 14px; }
.book-head .book-meta { margin-top: 0; }
.book-author { font-family: var(--sans); font-size: 16px; color: var(--ink-soft); }
.book-author a { color: var(--stamp); text-underline-offset: 4px; }
.book-body .prose { font-size: 19px; margin-bottom: 24px; }
.samples-title { font-size: 23px; margin: 32px 0 14px; }
.samples { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
.samples img { width: 100%; border-radius: 6px; border: 1px solid var(--line); }
.buy { margin: 28px 0 32px; padding: 28px 32px; background: var(--lilac); border-radius: 22px; }
.buy .messenger-buttons { margin: 14px 0 16px; }
.related { border-top: 1px solid var(--line); }
.catalog { padding-bottom: 72px; }
.related .section-head p { justify-self: end; }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--ink); text-underline-offset: 4px; }
.not-found { min-height: 50vh; }
.not-found .about-links { list-style: none; padding: 0; }

/* Responsive */
@media (max-width: 1080px) {
  #navigation { gap: 18px; }
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
  .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1040px) {
  .header-inner { height: 64px; gap: 12px; }
  .header-cta { margin-left: auto; }
  .menu-toggle { display: grid; place-items: center; order: 3; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, background-color .2s; }
  .menu-toggle span { position: relative; }
  .menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
  .menu-toggle span::before { top: -7px; }
  .menu-toggle span::after { top: 7px; }
  .menu-toggle[aria-expanded="true"] span { background: transparent; }
  .menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
  #navigation { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 24px 20px; background: var(--paper); border-bottom: 1px solid var(--line); font-size: 18px; }
  #navigation.open { display: flex; }
  #navigation a { padding: 12px 0; }
}

@media (max-width: 900px) {

  .hero { grid-template-columns: 1fr; padding-block: 28px 72px; }
  .composer { margin-top: 28px; }
  .hero-photo { margin-top: 0; }
  .hero-photo img { aspect-ratio: 3 / 2; object-position: 50% 50%; }

  .section, .about { padding-block: 72px; }
  .formats { padding-top: 0; }
  .section-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 32px; }
  .about-grid, .club, .faq, .about-head, .two-col, .consult-head { grid-template-columns: 1fr; }
  .book-page { grid-template-columns: 104px minmax(0, 1fr); grid-template-areas: "cover head" "buy buy" "body body"; grid-template-rows: auto; gap: 0 18px; align-items: center; }
  .cover-large { position: relative; top: 0; padding: 10px 8px 10px 18px; border-radius: 3px 10px 10px 3px; }
  .cover-large::before { left: 8px; }
  .cover-large .cover-author, .cover-large .cover-series { display: none; }
  .cover-large .cover-title { font-size: 15px; margin: auto 0; }
  .book-head h1 { font-size: 26px; margin: 4px 0 8px; }
  .book-author { font-size: 14px; }
  .buy { margin: 22px 0 28px; padding: 20px; }
  .author { grid-template-columns: 1fr; padding: 24px; }
  .author-photo { width: 120px; }
  .related .section-head p { justify-self: start; }
  .page-head { padding-block: 24px 48px; }
  .format-pair { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .closing { padding-block: 64px; }
}

@media (max-width: 560px) {
  .brand span { display: none; }
  body { font-size: 17px; }
  .wrap { width: calc(100% - 40px); }
  .composer-field { padding: 20px 22px 18px; font-size: 26px; }
  .composer-send .button { flex: 1 1 100%; }
  .topics { grid-template-columns: 1fr; gap: 28px; }
  .format, .path { padding: 24px; }
  .cover { padding: 14px 12px 14px 22px; }
  .cover-title { font-size: 17px; }
  .catalog-tools { flex-direction: column; align-items: stretch; }
  .search input { width: 100%; }
  dialog { padding: 32px 22px 24px; }
}

@media (max-width: 380px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { gap: 6px; }
  .brand { font-size: 18px; }
  .header-cta { padding: 8px 12px; font-size: 14px; }
  .menu-toggle { margin-right: -8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
