/* Нейтральная основа для всех четырёх макетов. Внешний вид задают a.css … d.css */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus, #1a5fd0); outline-offset: 3px; }
h2[id] { scroll-margin-top: 90px; }

.skip { position: absolute; left: -999px; top: 0; padding: 10px 14px; background: #fff; color: #000; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

.progress { position: fixed; inset: 0 0 auto 0; z-index: 30; }
.progress i { display: block; height: 100%; width: 0; }

.site { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; flex-wrap: wrap; }
.main-nav { display: flex; gap: 22px; margin-left: auto; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.main-nav a { text-decoration: none; white-space: nowrap; padding: 6px 0; }
.main-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 760px) {
  .main-nav { order: 3; flex-basis: 100%; margin-left: 0; gap: 18px; }
  .site-tools { margin-left: auto; }
  .brand { flex: 1 1 0; min-width: 0; gap: 0 10px; }
  .site { gap: 10px 16px; }
}
.site-tools { display: flex; gap: 14px; align-items: center; }
.menu-btn { display: none; font: inherit; cursor: pointer; }
.site-tools a { text-decoration: none; }

/* листы со схемами: картинка никогда не растягивается больше оригинала и не обрезается */
.sheet { margin-block: 1.6em; }
.sheet .zoom { display: block; width: min(100%, calc(var(--w, 720) * 1px)); margin-inline: auto; cursor: zoom-in; background: #fff; }
.sheet img { width: 100%; }

.video { aspect-ratio: 16 / 9; position: relative; background: #000; overflow: hidden; margin-block: 1.6em; }
.video button, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video img { width: 100%; height: 100%; object-fit: cover; }
.video .play { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; }

dialog#zoom { border: 0; padding: 0; background: #fff; max-width: 96vw; max-height: 96vh; cursor: zoom-out; }
dialog#zoom::backdrop { background: rgba(20, 20, 30, .72); }
dialog#zoom img { max-width: 96vw; max-height: 96vh; width: auto; }

.calc-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.calc label { display: grid; gap: 6px; }
.calc input, .calc select { font: inherit; padding: 9px 10px; width: 100%; background: #fff; color: #000; border: 1px solid currentColor; border-radius: 0; }
.calc-out { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.calc-out th, .calc-out td { text-align: left; padding: 9px 10px 9px 0; vertical-align: top; }
.calc-out td { white-space: nowrap; font-weight: 700; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { text-decoration: none; display: flex; flex-direction: column; }
.thumb { display: block; aspect-ratio: 4 / 3; background: #fff; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.card-body { display: grid; gap: 6px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* B «Ситец»: домашняя мастерская в цветах канала «Давайте шить»: персик, малиновая нить, какао, кружевной край */
:root {
  /* цвета сняты с шапки и логотипа канала: фон шапки #F8D7B8, платье девочки #FBADA6, чернила #5F2F0A, пуговицы #968A7E, буква «Д» #C64073 */
  --bg: #FEF7F0; --sheet: #FFFFFF; --ink: #4A2A12; --muted: #7E6F62;
  --berry: #C64073; --rose: #F8D7B8; --rose-deep: #E9BE9A; --sage: #968A7E; --sage-pale: #F3ECE6; --butter: #FDE3DC; --coral: #FBADA6; --focus: #C64073;
  --pinked: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 12px 51% repeat-x,
            conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 51% repeat-x;
}
body { font: 400 20px/1.6 "Alegreya Sans", system-ui, sans-serif; color: var(--ink); background: var(--bg); }
h1, h2, h3 { font-family: "Alegreya", Georgia, serif; font-weight: 700; line-height: 1.12; text-wrap: balance; }

/* клеточка «виши» сверху, по ней идёт стежок прогресса */
.progress { height: 18px; background-color: #fff;
  background-image: linear-gradient(90deg, rgba(251,173,166,.75) 50%, transparent 50%), linear-gradient(rgba(251,173,166,.75) 50%, transparent 50%);
  background-size: 18px 18px; }
.progress i { height: 100%; border-bottom: 3px dashed var(--berry); }

.site { padding: 40px clamp(16px, 5vw, 56px) 30px; justify-content: center; position: relative; margin-bottom: 15px;
  background-color: var(--rose);
  background-image: radial-gradient(circle, var(--bg) 2.6px, transparent 3.1px), radial-gradient(#fff 1.6px, transparent 2.1px);
  background-size: 15px 12px, 22px 22px; background-position: 0 100%, 0 0; background-repeat: repeat-x, repeat; }
.site::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 15px;
  background: radial-gradient(circle at 15px 0, var(--rose) 14.5px, transparent 15px) 0 0 / 30px 15px repeat-x; }
.brand::before { content: ""; width: 92px; height: 92px; margin-bottom: 2px; background: url(/assets/art/logo.svg) center / contain no-repeat; }
.brand { flex-direction: column; align-items: center; gap: 0; flex-basis: 100%; text-align: center; }
.brand-name { font: 700 34px/1 "Alegreya", serif; color: var(--berry); }
.brand-sub { font: italic 500 17px "Alegreya", serif; color: var(--ink); }
.main-nav { margin: 8px auto 0; }
.main-nav a, .site-tools a { font-weight: 500; font-size: 18px; }
.site-tools { position: absolute; right: clamp(16px, 5vw, 56px); top: 40px; }

.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 12px 24px; background: var(--berry); color: #fff; border-radius: 999px; margin: 0 8px 10px; }
.btn.ghost { background: transparent; color: var(--berry); box-shadow: inset 0 0 0 2px var(--berry); }
.btn:hover { background: var(--ink); color: #fff; box-shadow: none; }

.hero { max-width: 1080px; margin: 0 auto; padding: 44px clamp(16px, 4vw, 40px) 56px; display: grid; grid-template-columns: 1fr minmax(260px, 400px); gap: 20px 44px; align-items: center; }
.hero-art { grid-column: 2; grid-row: 1; width: 100%; height: auto; }
.hero-text { grid-column: 1; grid-row: 1; }
.hero .btn { margin-left: 0; margin-right: 14px; }
.hero-photo { width: 200px; aspect-ratio: 4/5; margin: 0 auto 26px; border-radius: 50%; background: var(--rose) radial-gradient(#fff 1.6px, transparent 2.1px) 0 0 / 22px 22px; display: grid; place-items: center; font: italic 500 16px/1.3 "Alegreya", serif; color: var(--berry); box-shadow: 0 0 0 7px var(--bg); outline: 3px dashed var(--berry); outline-offset: 7px; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); margin-bottom: 18px; }
.hero p { margin: 0 0 22px; max-width: 30em; font-size: 21px; }

/* рисунки набора: пуговицы-разделитель, девочка, мелочи у заголовков */
/* разделитель: строчка с одной пуговицей, чтобы не выглядел как ряд кнопок */
.latest::before, .qa::before { content: ""; display: block; height: 34px; max-width: 420px; margin: 0 auto 44px;
  background: url(/assets/art/button-3.webp) center / 34px no-repeat,
    repeating-linear-gradient(90deg, var(--rose-deep) 0 10px, transparent 10px 18px) left center / calc(50% - 30px) 3px no-repeat,
    repeating-linear-gradient(90deg, var(--rose-deep) 0 10px, transparent 10px 18px) right center / calc(50% - 30px) 3px no-repeat; }
.foot::before { content: ""; display: block; height: 38px; margin: 0 auto 16px; background: url(/assets/art/buttons-row.webp) center / contain no-repeat; }
.start h2::before { content: ""; display: block; width: 120px; height: 220px; margin: 0 auto 10px; background: url(/assets/art/girl-hello.webp) center / contain no-repeat; }
.tasks h2::before, .tasks h2::after { content: ""; display: inline-block; width: 58px; height: 58px; vertical-align: middle; margin: 0 16px; background: url(/assets/art/spool.webp) center / contain no-repeat; }
.tasks h2::after { background-image: url(/assets/art/scissors.webp); }
.glossary { position: relative; }
.glossary::before { content: ""; position: absolute; right: 26px; top: -44px; width: 96px; height: 86px; background: url(/assets/art/pincushion.webp) center / contain no-repeat; }

.home { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); display: grid; gap: 70px; }
.home h2 { font-size: clamp(30px, 4vw, 40px); text-align: center; margin-bottom: 22px; }
.lead { text-align: center; color: var(--muted); margin: -12px 0 22px; font: italic 500 20px "Alegreya", serif; }
.more { display: table; margin: 24px auto 0; color: var(--berry); font-weight: 700; text-underline-offset: 5px; }

/* рубрики как лоскутки, вырезанные зигзаг-ножницами */
.task-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.task-list a { display: grid; gap: 0; text-align: center; padding: 20px 20px 18px; text-decoration: none; min-width: 150px; background: var(--rose); -webkit-mask: var(--pinked); mask: var(--pinked); }
.task-list li:nth-child(4n+2) a { background: var(--sage-pale); background-image: radial-gradient(var(--sage) 1.2px, transparent 1.6px); background-size: 14px 14px; }
.task-list li:nth-child(4n+3) a { background: var(--coral); }
.task-list li:nth-child(4n) a { background-color: #fff; background-image: linear-gradient(90deg, rgba(198,64,115,.18) 50%, transparent 50%), linear-gradient(rgba(198,64,115,.18) 50%, transparent 50%); background-size: 12px 12px; }
.task-list li:nth-child(4n+1) a { background-image: radial-gradient(#fff 1.4px, transparent 1.8px); background-size: 12px 12px; }
.task-list b { font: 700 20px/1.15 "Alegreya", serif; }
.task-list span { font-size: 15px; color: var(--ink); }
.task-list a:hover { transform: rotate(-2deg); }
.task-list a { transition: transform .15s; }

.start-list { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; }
.start-list li { counter-increment: s; }
.start-list a { display: grid; gap: 12px; text-decoration: none; text-align: center; }
.start-list .thumb { border-radius: 14px; aspect-ratio: 3/2; border: 1px solid var(--rose-deep); padding: 10px; }
.start-body b { display: block; font: 700 22px/1.2 "Alegreya", serif; }
.start-body b::before { content: counter(s) ". "; color: var(--berry); }
.start-body em { font-style: normal; color: var(--muted); font-size: 17px; line-height: 1.4; display: block; margin-top: 4px; }

.cards { gap: 28px 24px; }
.thumb { border-radius: 14px; border: 1px solid var(--rose-deep); padding: 10px; }
.card-body { padding: 12px 4px 0; }
.card-body b { font: 700 21px/1.2 "Alegreya", serif; }
.card:hover b { color: var(--berry); }
.rub { color: var(--muted); font-weight: 700; font-size: 15px; }
.has-video { font-size: 15px; color: var(--berry); }
.has-video::before { content: "▶ "; font-size: 10px; }

.glossary { background: var(--rose) radial-gradient(#fff 1.6px, transparent 2.1px) 0 0 / 22px 22px; padding: 40px clamp(18px, 4vw, 44px); border-radius: 22px; }
.glossary dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px 30px; }
.glossary dt { font: 700 21px "Alegreya", serif; }
.glossary dl div { background: var(--bg); border-radius: 14px; padding: 14px 18px; }
.glossary dd { font-size: 17px; line-height: 1.45; }
.glossary .more { color: var(--ink); }

.author .portrait { display: none; }
.author { display: block; text-align: center; gap: 30px; align-items: center; max-width: 760px; margin: 0 auto; }
.author h2 { margin-bottom: 8px; }
.author p { margin-inline: auto; max-width: 34em; }
.author .more { margin: 12px auto 0; }
.portrait { aspect-ratio: 4/5; border-radius: 50%; background: var(--rose); display: grid; place-items: center; color: var(--berry); font: italic 500 16px "Alegreya", serif; }

.foot { margin-top: 80px; padding: 34px 16px 30px; text-align: center; font-size: 17px; color: var(--ink); background-color: #fff;
  background-image: linear-gradient(90deg, rgba(251,173,166,.5) 50%, transparent 50%), linear-gradient(rgba(251,173,166,.5) 50%, transparent 50%); background-size: 18px 18px; }
.foot p { background: var(--bg); display: table; margin: 0 auto 6px; padding: 4px 14px; border-radius: 8px; }
.foot a { margin: 0 8px; }

/* статья: одна спокойная колонка по центру */
.article { max-width: 740px; margin: 0 auto; padding: 26px 16px 0; }
.crumbs { font-size: 16px; color: var(--muted); text-align: center; margin-bottom: 14px; }
.crumbs a + a::before { content: "›"; margin: 0 8px; }
.a-head { text-align: center; }
.a-head h1 { font-size: clamp(36px, 6vw, 56px); }
.a-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; color: var(--muted); font: italic 500 18px "Alegreya", serif; margin: 14px 0 26px; }
.passport { display: none; }

.toc { background: #fff; border: 1px solid var(--rose-deep); border-radius: 18px; padding: 18px 24px; margin-bottom: 30px; }
.toc h2 { font-size: 20px; margin-bottom: 6px; color: var(--berry); }
.toc ol { counter-reset: t; display: grid; gap: 2px; }
.toc li { counter-increment: t; }
.toc a { text-decoration: none; display: block; padding: 4px 0; }
.toc a::before { content: counter(t) ". "; color: var(--muted); }
.toc a:hover { color: var(--berry); text-decoration: underline; text-underline-offset: 4px; }

.prose p { margin-bottom: 1.05em; }
.prose .intro { font: italic 500 24px/1.4 "Alegreya", serif; text-align: center; margin-bottom: 1.2em; }
.prose h2 { font-size: clamp(28px, 4vw, 36px); margin: 1.9em 0 .6em; text-align: center; }
.prose h2::before { content: ""; display: block; width: 120px; margin: 0 auto 22px; border-top: 3px dashed var(--rose-deep); }
.prose h3 { font-size: 24px; margin: 1.5em 0 .4em; color: var(--berry); }
.prose a { color: var(--berry); text-underline-offset: 4px; }
.term { background: linear-gradient(transparent 62%, var(--butter) 62%); }
.sidenote { font-size: 17px; line-height: 1.45; background: var(--sage-pale); border-radius: 14px; padding: 12px 18px; margin: 0 0 1.2em; }
.formula { font: 700 23px "Alegreya", serif; text-align: center; background: #fff; border: 1px solid var(--rose-deep); border-radius: 14px; padding: 12px 16px; }
.formula span { display: block; font: 400 16px "Alegreya Sans", sans-serif; color: var(--muted); }
.outro { font: italic 500 23px/1.4 "Alegreya", serif; text-align: center; color: var(--berry); margin-top: 1.4em; }

.sheet .zoom { border-radius: 14px; border: 1px solid var(--rose-deep); padding: 12px; }
.video { border-radius: 18px; }
.video .play { background: #fff; color: var(--berry); font-weight: 700; border-radius: 999px; }

.calc { background: var(--butter); border-radius: 22px; padding: 24px clamp(16px, 4vw, 30px); margin: 1.8em 0; display: grid; gap: 16px; }
.calc h3 { margin: 0; color: var(--ink); text-align: center; }
.calc label { font-size: 16px; font-weight: 500; }
.calc input, .calc select { border-radius: 10px; border-color: var(--muted); }
.calc-out { background: #fff; border-radius: 14px; overflow: hidden; }
.calc-out th, .calc-out td { padding: 10px 14px; font-size: 17px; border-top: 1px solid var(--butter); }
.calc-out thead th { font-size: 15px; font-weight: 500; color: var(--muted); border-top: 0; }
.calc-out td { color: var(--berry); font-size: 20px; }
.calc-note { font-size: 15px; color: var(--ink); margin: 0 !important; text-align: center; }

.qa, .related { margin-top: 64px; }
.qa h2, .related h2 { font-size: clamp(28px, 4vw, 36px); text-align: center; margin-bottom: 16px; }
.qa-note { font-size: 15px; color: var(--muted); text-align: center; margin-bottom: 20px; font-style: italic; }
.q { margin-bottom: 22px; display: grid; gap: 8px; }
.q-text { background: #fff; border: 1px solid var(--rose-deep); border-radius: 18px 18px 18px 4px; padding: 12px 18px; justify-self: start; max-width: 88%; }
.a-text { background: var(--rose); border-radius: 18px 18px 4px 18px; padding: 12px 18px; justify-self: end; max-width: 88%; }
.a-text::before { content: "Ирина: "; font-weight: 700; color: var(--berry); }
.related { max-width: 1000px; margin-inline: calc((740px - min(1000px, 96vw)) / 2); }

@media (max-width: 1040px) { .related { margin-inline: 0; } }
@media (max-width: 760px) {
  .site-tools { position: static; flex-basis: 100%; justify-content: center; margin: 6px 0 0; gap: 12px; }
  .site { padding: 30px 16px 22px; }
  .menu-btn { display: inline-block; font-weight: 700; font-size: 18px; padding: 9px 22px; border: 0; border-radius: 999px; background: var(--berry); color: #fff; }
  .site-tools a { padding: 9px 16px; border-radius: 999px; background: var(--bg); }
  .main-nav { order: 4; flex-direction: column; gap: 0; overflow: visible; text-align: center; background: var(--bg); border-radius: 16px; padding: 4px 16px; margin-top: 4px; }
  .main-nav a { padding: 13px 0; font-size: 20px; white-space: normal; }
  .main-nav a + a { border-top: 2px dashed var(--rose-deep); }
  .js .site:not(.open) .main-nav { display: none; }
  .task-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .task-list a { height: 100%; align-content: center; }
  .task-list a:hover { transform: none; }
  .task-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .brand::before { width: 72px; height: 72px; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 30px; }
  .hero-art { grid-column: 1; grid-row: 1; width: min(250px, 62vw); margin: 0 auto; }
  .hero-text { grid-row: 2; }
  .hero p { margin-inline: auto; }
  .hero .btn { margin: 0 6px 10px; }
  .tasks h2::before, .tasks h2::after { width: 40px; height: 40px; margin: 0 8px; }
  .glossary::before { width: 70px; height: 62px; top: -34px; right: 14px; }
  .start h2::before { height: 180px; }
  .author { grid-template-columns: 110px 1fr; gap: 18px; }
  .task-list a { min-width: 0; padding: 18px 14px 16px; }
}
@media (max-width: 520px) { body { font-size: 18px; } .hero p { font-size: 19px; } .tasks h2::before, .tasks h2::after { display: none; } }

/* ——— статьи из WordPress: разметка блоков остаётся как была, оформляем её ——— */
.prose ul, .prose ol { margin: 0 0 1.05em 1.3em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--berry); }
.prose figure { margin: 1.6em auto; }
.prose figure img { margin-inline: auto; background: #fff; border: 1px solid var(--rose-deep); border-radius: 14px; padding: 10px; cursor: zoom-in; }
.prose figcaption { text-align: center; font-size: 16px; color: var(--muted); margin-top: 8px; }
.prose .wp-block-table { overflow-x: auto; }
.prose table { border-collapse: collapse; margin-inline: auto; background: #fff; font-size: 17px; }
.prose td, .prose th { border: 1px solid var(--rose-deep); padding: 8px 12px; }
/* Схемы в ячейках таблиц: ширину задала автор (style="width: …px"), max-width: 100% в ячейке сжимал их до точки. */
.prose td img, .prose th img { max-width: none; padding: 0; border: 0; border-radius: 0; margin-inline: auto; }
@media (max-width: 760px) {
  .prose table:has(td img), .prose table:has(td img) tbody, .prose table:has(td img) tr, .prose table:has(td img) td { display: block; }
  .prose table:has(td img) td { border-width: 0 0 1px; }
  .prose table:has(td img) { border: 1px solid var(--rose-deep); }
  .prose table:has(td img) td img { width: auto !important; max-width: 100%; }
}
.prose .wp-block-gallery, .prose .blocks-gallery-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; list-style: none; margin-left: 0; }
.prose .wp-block-gallery figure, .prose .blocks-gallery-item { margin: 0; flex: 1 1 220px; max-width: 100%; list-style: none; }
.prose h2 [id], .prose h3 [id] { scroll-margin-top: 90px; }
.prose .video + p { text-align: center; font-size: 16px; color: var(--muted); }
.video button { display: block; }
.list-head { text-align: center; padding: 36px 16px 8px; }
.list-head h1 { font-size: clamp(34px, 5vw, 52px); }
.list-head p { color: var(--muted); font: italic 500 20px "Alegreya", serif; margin-top: 8px; }
.listing { max-width: 1080px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 0; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
.pager a, .pager span { min-width: 44px; padding: 9px 14px; text-align: center; text-decoration: none; border-radius: 999px; background: #fff; border: 1px solid var(--rose-deep); font-weight: 700; }
.pager [aria-current] { background: var(--berry); border-color: var(--berry); color: #fff; }

/* выбор языка: на компьютере в шапке, на телефоне только в подвале */
.site-tools .lang { display: flex; gap: 10px; }
.foot-lang b { margin: 0 8px; }
@media (max-width: 760px) { .site-tools .lang { display: none; } }

/* в 11 старых статьях есть 13 «пустых» картинок (вставлены из буфера и не загрузились ещё в WordPress): не показываем значок битой картинки */
.prose img[src=""], .prose img:not([src]) { display: none; }
.author-links { margin-top: 18px; }

/* обложки в стиле канала: 16:9, без рамки-листа */
.thumb.cover, .start-list .thumb.cover { aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 16px; box-shadow: 0 2px 0 var(--rose-deep); }
.thumb.cover img { object-fit: cover; }
.card:hover .thumb.cover, .start-list a:hover .thumb.cover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(95, 47, 10, .16); }
.thumb.cover { transition: transform .15s, box-shadow .15s; }

/* меню: текущий раздел; страница «Все статьи» */
.main-nav a[aria-current] { color: var(--berry); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.index { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 34px 40px; align-items: start; }
.index h2 { font-size: 26px; margin-bottom: 10px; }
.index h2 a { text-decoration: none; color: var(--berry); }
.index li { padding: 7px 0; border-top: 2px dashed var(--rose-deep); line-height: 1.35; }
.index li a { text-decoration: none; }
.index li a:hover { color: var(--berry); text-decoration: underline; text-underline-offset: 4px; }
.index .has-video { margin-left: 8px; white-space: nowrap; }

/* вопросы с YouTube, поиск, благодарности, об авторе */
.q-text, .a-text { white-space: pre-line; overflow-wrap: anywhere; }
.qa-more summary { cursor: pointer; display: table; margin: 8px auto 22px; padding: 10px 22px; border-radius: 999px; color: var(--berry); font-weight: 700; box-shadow: inset 0 0 0 2px var(--berry); list-style: none; }
.qa-more summary::-webkit-details-marker { display: none; }
.qa-more[open] summary { display: none; }
.qa-ask { text-align: center; margin-top: 26px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.search-form { display: flex; gap: 10px; max-width: 640px; margin: 0 auto 8px; }
.search-form input { flex: 1; min-width: 0; font: inherit; font-size: 20px; padding: 12px 20px; border: 2px solid var(--rose-deep); border-radius: 999px; background: #fff; color: var(--ink); }
.search-form input:focus { outline: none; border-color: var(--berry); }
.search-form .btn { margin: 0; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.search-info { text-align: center; color: var(--muted); margin: 14px 0 22px; min-height: 1.5em; }
.thanks { list-style: none; padding: 0; margin: 0; columns: 3 300px; column-gap: 22px; }
.thanks li { break-inside: avoid; background: #fff; border: 1px solid var(--rose-deep); border-radius: 18px 18px 18px 4px; padding: 16px 20px; margin: 0 0 22px; }
.thanks p { white-space: pre-line; overflow-wrap: anywhere; }
.thanks span { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); font-style: italic; }
.about-top { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: center; max-width: 900px; margin: 0 auto; }
.about-top img { width: 100%; height: auto; }
.about-top p { margin-bottom: 14px; font-size: 20px; }
.about-top .btn { margin-left: 0; margin-right: 12px; }
.facts { list-style: none; padding: 0; margin: 36px auto; max-width: 900px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.facts li { background: var(--rose); border-radius: 18px; padding: 18px 8px; }
.facts b { display: block; font: 700 34px "Alegreya", serif; color: var(--berry); }
.facts span { font-size: 16px; }
.about h2 { text-align: center; font-size: clamp(28px, 4vw, 36px); margin: 48px 0 20px; }
@media (max-width: 700px) {
  .about-top { grid-template-columns: 1fr; text-align: center; gap: 12px; }
  .about-top img { max-width: 220px; margin: 0 auto; }
  .about-top .btn { margin: 0 6px 10px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .search-form input { font-size: 18px; padding: 10px 16px; }
}
.a-text a { color: var(--berry); font-weight: 600; text-underline-offset: 4px; }
.tr-note { font-size: 16px; font-style: italic; color: var(--muted); border-left: 3px solid var(--rose-deep); padding: 4px 0 4px 14px; margin: 0 0 22px; }
