/* =====================================================================
   «Анамнез» — доказательная медицина для пациентов. Образ — медицинская карта:
   чистая клиническая бумага, картотечные закладки (шапка и листы рубрик), поля записи
   моноширинным IBM Plex Mono, обложки — «препараты» на паспарту с миллиметровой сеткой
   и этикеткой. Бирюза — основной акцент, коралл — редкий: линия полей, этикетки, цитаты.
   Spectral — заголовки, Inter — текст.
   ===================================================================== */

.site.theme-anamnez {
  --an-paper: #F6F8F7;
  --an-sheet: #FFFFFF;
  --an-folder: #E8EFED;
  --an-folder2: #D9E5E2;
  --an-ink: #122220;
  --an-ink2: #33433F;
  --an-muted: #5A6A67;
  --an-teal: #0B7A70;
  --an-teal-ink: #08675E;
  --an-teal-soft: #CFE6E1;
  --an-teal-wash: #EDF5F3;
  --an-coral: #D9533F;
  --an-coral-ink: #B03C2B;
  --an-line: rgba(18, 34, 32, .12);
  --an-line2: rgba(18, 34, 32, .22);
  --an-grid: rgba(11, 122, 112, .12);
  --an-serif: var(--f-spectral), Spectral, Georgia, serif;
  --an-sans: var(--f-inter), Inter, system-ui, sans-serif;
  --an-mono: var(--f-plexmono), 'IBM Plex Mono', ui-monospace, monospace;
  --an-r: 10px;
  --an-shadow: 0 1px 0 rgba(18, 34, 32, .03), 0 26px 50px -38px rgba(18, 34, 32, .38);
  background: var(--an-paper);
  color: var(--an-ink);
  font-family: var(--an-sans);
  font-size: 17px;
  line-height: 1.6;
}
.theme-anamnez ::selection { background: var(--an-teal-soft); color: var(--an-ink); }
.theme-anamnez :focus-visible { outline: 2px solid var(--an-teal); outline-offset: 3px; border-radius: 3px; }
.theme-anamnez h1, .theme-anamnez h2, .theme-anamnez h3 { font-family: var(--an-serif); color: var(--an-ink); text-transform: none; }
.theme-anamnez a h3, .theme-anamnez a .an-lead-h { transition: color .15s ease; }

/* ---------- примитивы ---------- */

/* моноширинная метка с «чекбоксом» */
.theme-anamnez .an-label {
  margin: 0; display: inline-flex; align-items: center; gap: 10px;
  font: 500 11.5px/1.3 var(--an-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--an-teal-ink);
}
.theme-anamnez .an-label::before { content: ''; flex: none; width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 2px; }

.theme-anamnez .an-cat { display: inline-block; font: 500 11px/1.35 var(--an-mono); letter-spacing: .13em; text-transform: uppercase; color: var(--an-teal-ink); }

.theme-anamnez .an-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; font: 400 12px/1.5 var(--an-mono); letter-spacing: .01em; color: var(--an-muted); }
.theme-anamnez .an-meta > * + *::before {
  content: ''; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55;
  vertical-align: middle; margin: -2px 10px 0;
}

.theme-anamnez .an-num { font-family: var(--an-mono); font-weight: 600; color: var(--an-ink); letter-spacing: .02em; }

.theme-anamnez .an-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 8px;
  background: var(--an-teal); color: #fff; font: 600 14.5px/1 var(--an-sans); transition: background .15s ease;
}
.theme-anamnez .an-btn:hover { background: var(--an-teal-ink); }

/* лист бумаги с картотечной закладкой */
.theme-anamnez .an-sheet {
  position: relative; background: var(--an-sheet); border: 1px solid var(--an-line);
  border-radius: 0 var(--an-r) var(--an-r) var(--an-r); box-shadow: var(--an-shadow);
}
.theme-anamnez .an-tab {
  position: absolute; z-index: 1; left: -1px; bottom: calc(100% - 1px); margin: 0;
  height: 33px; padding: 1px 30px 0 16px; display: flex; align-items: center; gap: 9px;
  font: 500 11.5px/1 var(--an-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--an-teal-ink); white-space: nowrap;
}
.theme-anamnez .an-tab::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--an-sheet);
  border: 1px solid var(--an-line); border-bottom: 0; border-radius: 7px 7px 0 0;
  transform: perspective(26px) rotateX(2.4deg); transform-origin: bottom left;
}
.theme-anamnez .an-tab::after { content: ''; order: -1; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--an-teal); }

/* обложка-«препарат»: паспарту с миллиметровой сеткой, рамка, этикетка */
.theme-anamnez .an-spec {
  position: relative; display: block; padding: 8px; border: 1px solid var(--an-line); border-radius: var(--an-r);
  background-color: #fff;
  background-image: linear-gradient(var(--an-grid) 1px, transparent 1px), linear-gradient(90deg, var(--an-grid) 1px, transparent 1px);
  background-size: 8px 8px; background-position: -1px -1px;
}
.theme-anamnez .an-spec .cover { border-radius: 5px; background: var(--an-teal-wash); box-shadow: 0 0 0 1px rgba(18, 34, 32, .1); }
.theme-anamnez a:hover .an-spec .cover img { transform: scale(1.03); }
.theme-anamnez .an-spec-label {
  position: absolute; z-index: 1; left: 20px; bottom: 20px; max-width: calc(100% - 40px);
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px 6px 9px;
  background: #fff; border: 1px solid var(--an-line2); border-radius: 3px; box-shadow: 0 8px 18px -10px rgba(18, 34, 32, .45);
  font: 500 11px/1.2 var(--an-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--an-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.theme-anamnez .an-spec-label::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--an-coral); }

/* поля записи: подпись моноширинным, значение — текстом */
.theme-anamnez .an-fields { margin: 0; display: flex; flex-wrap: wrap; border-top: 1px solid var(--an-line); border-bottom: 1px solid var(--an-line); }
.theme-anamnez .an-fields > div { min-width: 0; padding: 9px 20px 10px; border-left: 1px solid var(--an-line); }
.theme-anamnez .an-fields > div:first-child { padding-left: 0; border-left: 0; }
.theme-anamnez .an-fields dt,
.theme-anamnez .an-ah-fields dt,
.theme-anamnez .an-ah-recipe dt { font: 500 10.5px/1.3 var(--an-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--an-muted); }
.theme-anamnez .an-fields dd,
.theme-anamnez .an-ah-fields dd,
.theme-anamnez .an-ah-recipe dd { margin: 3px 0 0; font: 500 14.5px/1.35 var(--an-sans); color: var(--an-ink); }

/* медицинская оговорка */
.theme-anamnez .an-disc {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; margin: 0;
  padding: 16px 20px 17px 17px; background: var(--an-teal-wash); color: var(--an-ink2);
  border: 1px solid var(--an-teal-soft); border-left: 3px solid var(--an-teal); border-radius: 4px 8px 8px 4px;
}
.theme-anamnez .an-disc p { margin: 0; font: 400 14.5px/1.6 var(--an-sans); }
.theme-anamnez .an-disc b { font-weight: 600; color: var(--an-ink); }
.theme-anamnez .an-disc-i { display: block; color: var(--an-teal); margin-top: 1px; }

/* ---------- шапка ---------- */
.theme-anamnez .an-hdr { position: relative; z-index: 20; background: var(--an-folder); }
.theme-anamnez .an-strip { border-bottom: 1px solid var(--an-line); }
.theme-anamnez .an-strip-in { display: flex; align-items: center; gap: 28px; min-height: 38px; font: 400 12px/1.3 var(--an-mono); color: var(--an-muted); }
.theme-anamnez .an-strip p { margin: 0; }
.theme-anamnez .an-strip-tag { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-anamnez .an-strip-date { white-space: nowrap; color: var(--an-ink2); }
.theme-anamnez .an-strip-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.theme-anamnez .an-strip-links a { color: var(--an-ink2); }
.theme-anamnez .an-strip-links a:hover, .theme-anamnez .an-strip-links a[aria-current] { color: var(--an-teal-ink); }

.theme-anamnez .an-mast { display: flex; align-items: center; gap: 32px; padding-top: 26px; padding-bottom: 24px; }
.theme-anamnez .an-logo { display: inline-flex; align-items: center; gap: 14px; color: var(--an-ink); }
.theme-anamnez .an-logo-word { font: 600 46px/1 var(--an-serif); letter-spacing: -.022em; }
.theme-anamnez .an-mark { flex: none; display: block; }
.theme-anamnez .an-mark-f { fill: #fff; stroke: var(--an-teal); stroke-width: 1.7; stroke-linejoin: round; }
.theme-anamnez .an-mark-r { fill: none; stroke: var(--an-teal); stroke-width: 1.5; stroke-linecap: round; opacity: .45; }
.theme-anamnez .an-mark-x { fill: none; stroke: var(--an-coral); stroke-width: 2.3; stroke-linecap: round; }

.theme-anamnez .an-find {
  margin-left: auto; display: flex; align-items: center; gap: 8px; width: min(440px, 42%); height: 48px; padding: 0 5px 0 18px;
  background: #fff; border: 1px solid var(--an-line2); border-radius: 9px; transition: border-color .15s ease, box-shadow .15s ease;
}
.theme-anamnez .an-find:focus-within { border-color: var(--an-teal); box-shadow: 0 0 0 3px rgba(11, 122, 112, .16); }
.theme-anamnez .an-find input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; -webkit-appearance: none; appearance: none;
  font: 400 15px/1 var(--an-sans); color: var(--an-ink);
}
.theme-anamnez .an-find input::placeholder { color: var(--an-muted); opacity: 1; }
.theme-anamnez .an-find button {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--an-teal); color: #fff; transition: background .15s ease;
}
.theme-anamnez .an-find button:hover { background: var(--an-teal-ink); }
.theme-anamnez .an-find-m { display: none; }

/* закладки рубрик; линия низа шапки рисуется фоном, активная закладка закрывает её */
.theme-anamnez .an-tabs { background: linear-gradient(var(--an-line2), var(--an-line2)) bottom / 100% 1px no-repeat; }
.theme-anamnez .an-tabs ul {
  list-style: none; margin: 0; padding: 0 2px; display: flex; align-items: flex-end; gap: 3px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.theme-anamnez .an-tabs ul::-webkit-scrollbar { display: none; }
.theme-anamnez .an-tabs li { flex: none; scroll-snap-align: start; }
.theme-anamnez .an-tabs a {
  position: relative; z-index: 0; display: flex; align-items: center; height: 44px; padding: 2px 26px 0 17px;
  font: 500 14.5px/1 var(--an-sans); color: var(--an-ink2); white-space: nowrap; outline-offset: -4px;
}
.theme-anamnez .an-tabs a::before {
  content: ''; position: absolute; inset: 0 0 1px; z-index: -1; background: var(--an-folder2);
  border: 1px solid var(--an-line); border-bottom: 0; border-radius: 7px 7px 0 0;
  transform: perspective(30px) rotateX(2.2deg); transform-origin: bottom left; transition: background .15s ease;
}
.theme-anamnez .an-tabs a:hover { color: var(--an-ink); }
.theme-anamnez .an-tabs a:hover::before { background: #E4EDEA; }
.theme-anamnez .an-tabs a.on { color: var(--an-ink); font-weight: 600; }
.theme-anamnez .an-tabs a.on::before { inset: 0; background: var(--an-paper); border-color: var(--an-line2); box-shadow: inset 0 3px 0 var(--an-teal); }

/* ---------- главная ---------- */
.theme-anamnez .an-home { padding-bottom: 8px; }
.theme-anamnez .an-empty { padding: 120px var(--gap); font: 400 22px/1.5 var(--an-serif); color: var(--an-muted); }

/* 1. Главное */
.theme-anamnez .an-lead { padding-top: 76px; }
.theme-anamnez .an-lead-sheet::after { /* коралловая линия полей */
  content: ''; position: absolute; top: 0; bottom: 0; left: 38px; width: 1px; background: var(--an-coral); opacity: .6; pointer-events: none;
}
.theme-anamnez .an-lead-main {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: stretch;
  padding: 46px 48px 44px 72px; color: inherit;
}
.theme-anamnez .an-lead-text { min-width: 0; display: flex; flex-direction: column; align-self: stretch; }
.theme-anamnez .an-lead-text .an-fields { margin-bottom: 34px; }
.theme-anamnez .an-lead-h { margin: 0 0 22px; font: 600 clamp(30px, 3.1vw, 46px)/1.1 var(--an-serif); letter-spacing: -.02em; text-wrap: balance; }
.theme-anamnez .an-lead-main:hover .an-lead-h { color: var(--an-teal-ink); }
.theme-anamnez .an-lead-dek { margin: 0 0 30px; max-width: 54ch; font: 400 clamp(18px, 1.45vw, 21px)/1.55 var(--an-serif); color: var(--an-ink2); }
.theme-anamnez .an-lead-foot {
  margin: auto 0 0; padding-top: 18px; border-top: 1px dashed var(--an-line2);
  display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
}
.theme-anamnez .an-lead-by { font: 600 14.5px/1.35 var(--an-sans); }
.theme-anamnez .an-lead-by small { display: block; font: 400 12px/1.4 var(--an-mono); color: var(--an-muted); }
.theme-anamnez .an-go { font: 500 12px/1 var(--an-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--an-teal-ink); }
.theme-anamnez .an-lead-main:hover .an-go { text-decoration: underline; text-underline-offset: 5px; }
/* обложка тянется на высоту текста: заголовки бывают в строку и в четыре */
.theme-anamnez .an-lead-img { display: flex; flex-direction: column; padding: 10px; }
.theme-anamnez .an-lead-img .cover { flex: 1; min-height: 340px; aspect-ratio: auto !important; }

.theme-anamnez .an-lead-more {
  list-style: none; margin: 0; padding: 0 48px 0 72px; border-top: 1px solid var(--an-line);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.theme-anamnez .an-lead-more li + li { border-left: 1px solid var(--an-line); }
.theme-anamnez .an-lm { display: block; height: 100%; padding: 22px 28px 28px; }
.theme-anamnez .an-lead-more li:first-child .an-lm { padding-left: 0; }
.theme-anamnez .an-lead-more li:last-child .an-lm { padding-right: 0; }
.theme-anamnez .an-lm-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; font: 400 12px/1.3 var(--an-mono); color: var(--an-muted); }
.theme-anamnez .an-lm h3 { font: 600 19px/1.3 var(--an-serif); letter-spacing: -.005em; }
.theme-anamnez .an-lm:hover h3 { color: var(--an-teal-ink); }

/* заголовок открытого раздела */
.theme-anamnez .an-sh { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 24px; padding-bottom: 18px; border-bottom: 1px solid var(--an-ink); }
.theme-anamnez .an-sh .an-label { grid-column: 1 / -1; }
.theme-anamnez .an-sh h2 { font: 600 clamp(28px, 2.6vw, 38px)/1.1 var(--an-serif); letter-spacing: -.016em; }
.theme-anamnez .an-sh-note { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: flex-end; font: 400 12px/1.5 var(--an-mono); color: var(--an-muted); }

/* 2. Дневник наблюдения + сводка */
.theme-anamnez .an-journal { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: start; padding-top: 100px; }
.theme-anamnez .an-journal > :only-child { grid-column: 1 / -1; }

.theme-anamnez .an-day-h {
  margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; padding: 30px 0 12px; border-bottom: 1px solid var(--an-line);
  font: 600 12px/1.3 var(--an-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--an-ink);
}
.theme-anamnez .an-day-h time { font-weight: 400; letter-spacing: .03em; text-transform: none; color: var(--an-muted); }
.theme-anamnez .an-entries { list-style: none; margin: 0; padding: 0; position: relative; }
.theme-anamnez .an-entries::before { content: ''; position: absolute; top: 0; bottom: 0; left: 76px; width: 1px; background: var(--an-teal-soft); }
.theme-anamnez .an-entry { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) 152px; gap: 0 48px; padding: 28px 0; }
.theme-anamnez .an-entry::before { /* узел на линии времени */
  content: ''; position: absolute; left: 71px; top: 34px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--an-paper); border: 1.5px solid var(--an-teal); transition: background .15s ease;
}
.theme-anamnez .an-entry::after { content: ''; position: absolute; left: 100px; right: 0; bottom: 0; height: 1px; background: var(--an-line); }
.theme-anamnez .an-entries li:last-child .an-entry::after { display: none; }
.theme-anamnez .an-entry:hover::before { background: var(--an-teal); }
.theme-anamnez .an-entry-t { padding-top: 5px; font: 500 14px/1.2 var(--an-mono); color: var(--an-ink); text-align: right; }
.theme-anamnez .an-entry-b { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.theme-anamnez .an-entry h3 { font: 600 clamp(20px, 1.75vw, 24px)/1.24 var(--an-serif); letter-spacing: -.01em; }
.theme-anamnez .an-entry:hover h3 { color: var(--an-teal-ink); }
.theme-anamnez .an-entry-dek {
  margin: 0; max-width: 62ch; font-size: 15.5px; line-height: 1.55; color: var(--an-ink2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.theme-anamnez .an-entry-img { padding: 6px; align-self: start; }
.theme-anamnez .an-entry.is-brief { grid-template-columns: 52px minmax(0, 1fr); padding: 20px 0 22px; }
.theme-anamnez .an-entry.is-brief::before { top: 26px; }
.theme-anamnez .an-entry.is-brief .an-entry-t { padding-top: 3px; }
.theme-anamnez .an-entry.is-brief .an-entry-b { gap: 6px; }
.theme-anamnez .an-entry.is-brief h3 { font-size: clamp(18px, 1.45vw, 20px); font-weight: 600; }

.theme-anamnez .an-side { display: flex; flex-direction: column; gap: 28px; padding-top: 14px; }
.theme-anamnez .an-box { background: var(--an-sheet); border: 1px solid var(--an-line); border-radius: var(--an-r); padding: 24px 24px 22px; }
.theme-anamnez .an-box h2 { margin: 12px 0 16px; font: 600 23px/1.2 var(--an-serif); letter-spacing: -.01em; }
.theme-anamnez .an-box ol, .theme-anamnez .an-box ul { list-style: none; margin: 0; padding: 0; }
.theme-anamnez .an-pop-cols,
.theme-anamnez .an-pop-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; }
.theme-anamnez .an-pop-cols {
  margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--an-ink);
  font: 500 10px/1.2 var(--an-mono); letter-spacing: .13em; text-transform: uppercase; color: var(--an-muted);
}
.theme-anamnez .an-pop-row { align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--an-line); }
.theme-anamnez .an-pop li:last-child .an-pop-row { border-bottom: 0; padding-bottom: 2px; }
.theme-anamnez .an-pop-n { font: 500 12px/1 var(--an-mono); color: var(--an-teal-ink); }
.theme-anamnez .an-pop-row h3, .theme-anamnez .an-talk-row h3 { font: 500 16.5px/1.33 var(--an-serif); }
.theme-anamnez .an-pop-row:hover h3, .theme-anamnez .an-talk-row:hover h3 { color: var(--an-teal-ink); }
.theme-anamnez .an-pop-v { font: 500 12px/1 var(--an-mono); color: var(--an-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.theme-anamnez .an-talk-row { display: block; padding: 13px 0; border-bottom: 1px solid var(--an-line); }
.theme-anamnez .an-talk li:last-child .an-talk-row { border-bottom: 0; padding-bottom: 2px; }
.theme-anamnez .an-talk-c { display: inline-flex; align-items: center; gap: 8px; margin-top: 7px; font: 400 12px/1 var(--an-mono); color: var(--an-coral-ink); }
.theme-anamnez .an-talk-c::before { content: ''; width: 12px; height: 1px; background: currentColor; }
.theme-anamnez .an-sub { background: var(--an-teal-wash); border-color: var(--an-teal-soft); }
.theme-anamnez .an-sub h2 { margin-bottom: 10px; }
.theme-anamnez .an-sub p:not(.an-label) { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--an-ink2); }

/* 3. Разделы карты */
.theme-anamnez .an-sections { padding-top: 108px; }
.theme-anamnez .an-sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 40px; margin-top: 66px; }
.theme-anamnez .an-sheets.is-solo { margin-top: 0; }
.theme-anamnez .an-cat-sheet { display: flex; flex-direction: column; padding: 32px 36px 28px; }
.theme-anamnez .an-cat-h { display: grid; gap: 7px; margin-bottom: 24px; }
.theme-anamnez .an-cat-h h2 { font: 600 clamp(26px, 2.3vw, 32px)/1.1 var(--an-serif); letter-spacing: -.016em; }
.theme-anamnez .an-cat-h h2 a:hover { color: var(--an-teal-ink); }
.theme-anamnez .an-cat-h p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--an-muted); }
.theme-anamnez .an-cat-lead { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 24px; }
.theme-anamnez .an-cat-lead .an-spec { padding: 6px; }
.theme-anamnez .an-cat-lead-b { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.theme-anamnez .an-cat-lead h3 { font: 600 clamp(20px, 1.6vw, 22px)/1.25 var(--an-serif); letter-spacing: -.01em; }
.theme-anamnez .an-cat-lead:hover h3 { color: var(--an-teal-ink); }
.theme-anamnez .an-cat-dek {
  margin: 0; font-size: 15px; line-height: 1.55; color: var(--an-ink2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.theme-anamnez .an-cat-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--an-line); }
.theme-anamnez .an-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--an-line); }
.theme-anamnez .an-row h3 { font: 500 17.5px/1.33 var(--an-serif); }
.theme-anamnez .an-row:hover h3 { color: var(--an-teal-ink); }
.theme-anamnez .an-row time { font: 400 12px/1 var(--an-mono); color: var(--an-muted); }
.theme-anamnez .an-more {
  align-self: flex-start; margin-top: auto; padding-top: 22px;
  font: 500 12px/1.2 var(--an-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--an-teal-ink);
}
.theme-anamnez .an-more:hover { text-decoration: underline; text-underline-offset: 5px; }

/* памятка — разлинованный лист с полями */
.theme-anamnez .an-memo { display: flex; flex-direction: column; padding: 34px 40px 36px 76px; }
.theme-anamnez .an-memo::after { content: ''; position: absolute; top: 0; bottom: 0; left: 44px; width: 1px; background: var(--an-coral); opacity: .6; }
.theme-anamnez .an-memo h2 { font: 600 clamp(24px, 2.2vw, 30px)/1.15 var(--an-serif); letter-spacing: -.014em; margin-bottom: 18px; }
.theme-anamnez .an-memo ol {
  flex: 1; counter-reset: an-memo; list-style: none; margin: 0; padding: 0; line-height: 32px; font-size: 16px; color: var(--an-ink2);
  background-image: linear-gradient(transparent 31px, var(--an-grid) 31px); background-size: 100% 32px;
}
.theme-anamnez .an-memo li { counter-increment: an-memo; position: relative; padding-left: 36px; }
.theme-anamnez .an-memo li::before { content: counter(an-memo) '.'; position: absolute; left: 0; top: 0; font: 500 13px/32px var(--an-mono); color: var(--an-coral-ink); }
.theme-anamnez .an-memo.is-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: start; }

/* ---------- подвал ---------- */
.theme-anamnez .an-ftr { margin-top: 170px; background: #0F2724; color: #D6E3E0; font-family: var(--an-sans); font-size: 15px; }
.theme-anamnez .an-ftr a { transition: color .15s ease; }
.theme-anamnez .an-ftr a:hover { color: #86DBCF; }
.theme-anamnez .an-ftr-note { position: relative; top: -76px; margin-bottom: -76px; }
.theme-anamnez .an-ftr-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px;
  padding: 38px 48px 40px 84px; color: var(--an-ink); background: #fff; border: 1px solid var(--an-line); border-radius: var(--an-r);
  box-shadow: 0 30px 60px -36px rgba(8, 26, 24, .6);
}
.theme-anamnez .an-ftr-card::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50px; width: 1px; background: var(--an-coral); opacity: .7; }
.theme-anamnez .an-ftr-h { margin: 0 0 12px; font: 500 11px/1.3 var(--an-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--an-muted); }
.theme-anamnez .an-ftr-claim-t { margin: 0; font: 500 clamp(22px, 2.2vw, 30px)/1.3 var(--an-serif); letter-spacing: -.01em; text-wrap: balance; }
.theme-anamnez .an-ftr-sos { padding-left: 40px; border-left: 1px solid var(--an-line); }
.theme-anamnez .an-ftr-sos dl { margin: 0; display: grid; gap: 10px; }
.theme-anamnez .an-ftr-sos dl > div { display: flex; align-items: baseline; gap: 16px; }
.theme-anamnez .an-ftr-sos dt { flex: none; font: 600 32px/1 var(--an-mono); color: var(--an-teal-ink); letter-spacing: .02em; }
.theme-anamnez .an-ftr-sos dd { margin: 0; font-size: 15px; line-height: 1.4; color: var(--an-ink2); }

.theme-anamnez .an-ftr-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr) minmax(0, .8fr); gap: 48px; padding-top: 64px; padding-bottom: 48px; }
.theme-anamnez .an-ftr-logo { display: inline-flex; align-items: center; gap: 12px; font: 600 32px/1 var(--an-serif); letter-spacing: -.02em; color: #fff; }
.theme-anamnez .an-ftr .an-mark-f { fill: none; stroke: #86DBCF; }
.theme-anamnez .an-ftr .an-mark-r { stroke: #86DBCF; }
.theme-anamnez .an-ftr-about p { margin: 18px 0 0; max-width: 44ch; color: #A9BCB8; line-height: 1.6; }
.theme-anamnez .an-ftr-col .an-ftr-h { color: #A9BCB8; }
.theme-anamnez .an-ftr-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.theme-anamnez .an-ftr-cats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.theme-anamnez .an-ftr-cats li { display: grid; align-content: start; gap: 1px; }
.theme-anamnez .an-ftr-cats li span { font: 400 11px/1.3 var(--an-mono); letter-spacing: .08em; text-transform: uppercase; color: #8FA6A1; }
.theme-anamnez .an-ftr-bottom {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 28px;
  font: 400 12px/1.5 var(--an-mono); color: #A9BCB8;
}
.theme-anamnez .an-ftr-bottom::before { content: ''; position: absolute; top: 0; left: var(--gap); right: var(--gap); height: 1px; background: rgba(214, 227, 224, .14); }
.theme-anamnez .an-ftr-bottom p { margin: 0; }

/* ---------- статья ---------- */
.theme-anamnez .progress { background: var(--an-teal); height: 3px; }
.theme-anamnez .breadcrumbs { padding-top: 26px; font: 400 12px/1.4 var(--an-mono); letter-spacing: .03em; color: var(--an-muted); }
.theme-anamnez .breadcrumbs a:hover { color: var(--an-teal-ink); }

.theme-anamnez .an-ah {
  max-width: var(--wrap); margin: 0 auto; padding: 26px var(--gap) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, calc(var(--narrow) - 2 * var(--gap))) minmax(0, 1fr);
}
.theme-anamnez .an-ah > * { grid-column: 2; min-width: 0; }
.theme-anamnez .an-ah-kick { margin: 0 0 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.theme-anamnez .an-ah-cat {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 6px;
  background: var(--an-teal-wash); border: 1px solid var(--an-teal-soft);
  font: 500 11.5px/1 var(--an-mono); letter-spacing: .13em; text-transform: uppercase; color: var(--an-teal-ink);
}
.theme-anamnez a.an-ah-cat:hover { background: var(--an-teal-soft); }
.theme-anamnez .an-ah-rec { display: inline-flex; align-items: center; gap: 12px; font: 400 11.5px/1 var(--an-mono); letter-spacing: .13em; text-transform: uppercase; color: var(--an-muted); }
.theme-anamnez .an-ah-rec::before { content: ''; width: 18px; height: 1px; background: var(--an-line2); }
.theme-anamnez .an-ah-h { margin: 0 0 24px; font: 600 clamp(31px, 3.7vw, 52px)/1.1 var(--an-serif); letter-spacing: -.02em; text-wrap: balance; }
.theme-anamnez .an-ah-lead { margin: 0 0 30px; font: 400 clamp(19px, 1.55vw, 22px)/1.55 var(--an-serif); color: var(--an-ink2); }
.theme-anamnez .an-ah-fields { margin: 0 0 26px; display: flex; flex-wrap: wrap; border-top: 1px solid var(--an-line); border-bottom: 1px solid var(--an-line); }
.theme-anamnez .an-ah-fields > div { padding: 10px 20px 11px; border-left: 1px solid var(--an-line); }
.theme-anamnez .an-ah-fields > div:first-child { padding-left: 0; border-left: 0; }
.theme-anamnez .an-ah-fields dd span { display: block; font: 400 12.5px/1.4 var(--an-sans); color: var(--an-muted); }
.theme-anamnez .an-ah-recipe { margin: 0 0 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--an-line); border-radius: 8px; background: #fff; }
.theme-anamnez .an-ah-recipe > div { padding: 12px 16px; }
.theme-anamnez .an-ah-recipe > div + div { border-left: 1px solid var(--an-line); }

.theme-anamnez .an-ah-fig { max-width: calc(940px + 2 * var(--gap)); margin: 48px auto 0; padding: 0 var(--gap); }
.theme-anamnez .an-ah-fig .an-spec { padding: 10px; }
.theme-anamnez .an-ah-fig figcaption { margin-top: 12px; display: flex; align-items: center; gap: 12px; font: 400 12px/1.4 var(--an-mono); color: var(--an-muted); }
.theme-anamnez .an-ah-fig figcaption::before { content: ''; flex: none; width: 20px; height: 1px; background: var(--an-coral); }

/* текст статьи */
.theme-anamnez .article-body { counter-reset: an-sec; padding-top: 52px; }
.theme-anamnez .prose { font-family: var(--an-sans); font-size: 18px; line-height: 1.75; color: var(--an-ink); }
.theme-anamnez .prose > * + * { margin-top: 1.1em; }
.theme-anamnez .prose:not(.prose-cont) > p:first-child { font-size: 1.11em; line-height: 1.68; }
.theme-anamnez .prose > h2 {
  counter-increment: an-sec; position: relative; margin-top: 2.2em; padding-top: 26px; border-top: 1px solid var(--an-line2);
  font: 600 clamp(25px, 2.2vw, 31px)/1.2 var(--an-serif); letter-spacing: -.012em;
}
.theme-anamnez .prose > h2::before {
  content: counter(an-sec, decimal-leading-zero); position: absolute; left: 0; top: -10px; padding-right: 12px; background: var(--an-paper);
  font: 500 12px/20px var(--an-mono); letter-spacing: .14em; color: var(--an-teal-ink);
}
.theme-anamnez .prose > h3 { margin-top: 1.7em; font: 600 22px/1.3 var(--an-serif); letter-spacing: -.008em; }
.theme-anamnez .prose > h2 + *, .theme-anamnez .prose > h3 + * { margin-top: .7em; }
.theme-anamnez .prose a { color: var(--an-teal-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(8, 103, 94, .4); }
.theme-anamnez .prose a:hover { text-decoration-color: currentColor; }
.theme-anamnez .prose strong { font-weight: 650; }
.theme-anamnez .prose ul, .theme-anamnez .prose ol { list-style: none; padding-left: 0; }
.theme-anamnez .prose li + li { margin-top: .55em; }
.theme-anamnez .prose ul > li { position: relative; padding-left: 30px; }
.theme-anamnez .prose ul > li::before {
  content: ''; position: absolute; left: 3px; top: calc(.875em - 5px); width: 9px; height: 9px;
  border: 1.5px solid var(--an-teal); border-radius: 2px;
}
.theme-anamnez .prose ol { counter-reset: an-ol; }
.theme-anamnez .prose ol > li { counter-increment: an-ol; position: relative; padding-left: 42px; }
.theme-anamnez .prose ol > li::before {
  content: counter(an-ol, decimal-leading-zero); position: absolute; left: 0; top: 0;
  font: 500 .74em/2.36 var(--an-mono); letter-spacing: .06em; color: var(--an-teal-ink);
}
.theme-anamnez .prose > blockquote {
  margin: 2em 0; padding: 2px 0 2px 28px; border-left: 2px solid var(--an-coral);
  font: italic 400 clamp(21px, 1.8vw, 25px)/1.45 var(--an-serif); color: var(--an-ink);
}
.theme-anamnez .prose table {
  width: 100%; border-collapse: separate; border-spacing: 0; background: #fff;
  border: 1px solid var(--an-line); border-radius: 8px; font-size: .86em; line-height: 1.5;
}
.theme-anamnez .prose tr:first-child > th:first-child { border-top-left-radius: 7px; }
.theme-anamnez .prose tr:first-child > th:last-child { border-top-right-radius: 7px; }
.theme-anamnez .prose th {
  padding: 10px 14px; text-align: left; background: var(--an-teal-wash); border-bottom: 1px solid var(--an-line2);
  font: 500 11px/1.3 var(--an-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--an-muted);
}
.theme-anamnez .prose td { padding: 10px 14px; border-bottom: 1px solid var(--an-line); vertical-align: top; }
.theme-anamnez .prose tr:last-child td { border-bottom: 0; }
.theme-anamnez .prose hr { height: 1px; border: 0; background: var(--an-line2); margin: 2.4em 0; }
.theme-anamnez .prose img { border-radius: 6px; }

.theme-anamnez .inline-read {
  margin: 2.2em 0; padding: 18px 24px 20px; display: grid; gap: 8px;
  background: #fff; border: 1px solid var(--an-line); border-radius: var(--an-r);
}
.theme-anamnez .inline-read-label { display: inline-flex; align-items: center; gap: 10px; font: 500 11px/1.3 var(--an-mono); letter-spacing: .14em; color: var(--an-teal-ink); }
.theme-anamnez .inline-read-label::before { content: ''; width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 2px; }
.theme-anamnez .inline-read a { font: 600 21px/1.3 var(--an-serif); color: var(--an-ink); }
.theme-anamnez .inline-read a::after { content: '\00a0→'; color: var(--an-teal); }
.theme-anamnez .inline-read a:hover { color: var(--an-teal-ink); }

.theme-anamnez .source-note { font: 400 12.5px/1.5 var(--an-mono); color: var(--an-muted); }
.theme-anamnez .source-note a { color: var(--an-teal-ink); text-underline-offset: 3px; }
.theme-anamnez .tags { gap: 8px; }
.theme-anamnez .tag {
  padding: 6px 11px; border-radius: 4px; background: #fff; border: 1px solid var(--an-line2);
  font: 400 12.5px/1.2 var(--an-mono); color: var(--an-ink2);
}
.theme-anamnez .tag:hover { background: var(--an-teal-wash); border-color: var(--an-teal); color: var(--an-teal-ink); }
.theme-anamnez .share { font: 400 12px/1 var(--an-mono); color: var(--an-muted); }
.theme-anamnez .share a, .theme-anamnez .share button { background: #fff; border: 1px solid var(--an-line2); color: var(--an-ink); font-family: var(--an-sans); }
.theme-anamnez .share a:hover, .theme-anamnez .share button:hover { background: var(--an-teal); border-color: var(--an-teal); color: #fff; }
.theme-anamnez .btn { font: 600 14.5px/1 var(--an-sans); border-radius: 8px; background: var(--an-teal); color: #fff; }
.theme-anamnez .btn:hover { background: var(--an-teal-ink); opacity: 1; }
.theme-anamnez .btn.ghost { background: #fff; color: var(--an-ink); box-shadow: inset 0 0 0 1px var(--an-line2); }
.theme-anamnez .btn.ghost:hover { color: var(--an-teal-ink); box-shadow: inset 0 0 0 1px var(--an-teal); }
.theme-anamnez .inline-cta {
  margin-top: 44px; padding: 22px 24px; border-radius: var(--an-r); font-family: var(--an-sans);
  background: var(--an-teal-wash); box-shadow: inset 0 0 0 1px var(--an-teal-soft);
}
.theme-anamnez .inline-cta b { font: 600 19px/1.3 var(--an-serif); }
.theme-anamnez .inline-cta .muted { color: var(--an-ink2); font-size: 15px; }

/* комментарии — текстом, не моноширинным */
.theme-anamnez .comments { font-family: var(--an-sans); border-top: 1px solid var(--an-ink); }
.theme-anamnez .comments h2 { font: 600 28px/1.2 var(--an-serif); }
.theme-anamnez .comments h2 small { font: 400 13px/1 var(--an-mono); color: var(--an-muted); }
.theme-anamnez .c-form { background: #fff; box-shadow: none; border: 1px solid var(--an-line); border-radius: var(--an-r); }
.theme-anamnez .c-form input, .theme-anamnez .c-form textarea { font-family: var(--an-sans); background: var(--an-paper); border-color: var(--an-line2); border-radius: 6px; color: var(--an-ink); }
.theme-anamnez .c-form input:focus-visible, .theme-anamnez .c-form textarea:focus-visible { outline: 2px solid var(--an-teal); outline-offset: 0; }
.theme-anamnez .c-note { font-size: 13px; color: var(--an-muted); }
.theme-anamnez .c-item .c-head time { font: 400 12px/1 var(--an-mono); color: var(--an-muted); }
.theme-anamnez .c-badge { background: var(--an-teal-wash); color: var(--an-teal-ink); border: 1px solid var(--an-teal-soft); border-radius: 3px; font: 500 10.5px/1.3 var(--an-mono); letter-spacing: .08em; text-transform: uppercase; }
.theme-anamnez .c-text { font-size: 15.5px; color: var(--an-ink); }
.theme-anamnez .c-actions { color: var(--an-muted); }
.theme-anamnez .c-actions button:hover, .theme-anamnez .c-actions button.liked { color: var(--an-teal-ink); }
.theme-anamnez .c-replies { border-left: 1px solid var(--an-teal-soft); }

/* «Читайте также» */
.theme-anamnez .related { padding-top: 80px; }
.theme-anamnez .section-head { padding-bottom: 16px; margin-bottom: 30px; border-bottom: 1px solid var(--an-ink); }
.theme-anamnez .section-head h2 { font: 600 clamp(26px, 2.6vw, 34px)/1.1 var(--an-serif); letter-spacing: -.015em; }
.theme-anamnez .section-head a { font: 500 12px/1.3 var(--an-mono); letter-spacing: .08em; color: var(--an-teal-ink); white-space: normal; text-align: right; }
.theme-anamnez .related-grid { gap: 36px 30px; }
.theme-anamnez .related-card { gap: 10px; }
.theme-anamnez .related-card .cover,
.theme-anamnez .list-row .cover { border-radius: 5px; box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--an-line); margin: 7px 7px 8px; width: calc(100% - 14px); }
.theme-anamnez .related-card .kicker { font: 500 11px/1.3 var(--an-mono); letter-spacing: .13em; color: var(--an-teal-ink); }
.theme-anamnez .related-card h3 { font: 600 19px/1.28 var(--an-serif); }
.theme-anamnez .related-card:hover h3 { color: var(--an-teal-ink); }

/* ---------- рубрика, поиск, «О проекте» ---------- */
.theme-anamnez .listing { padding-bottom: 24px; }
.theme-anamnez .page-head {
  position: relative; margin: 56px 0 44px; padding: 34px 40px 30px;
  background: #fff; border: 1px solid var(--an-line); border-radius: 0 var(--an-r) var(--an-r) var(--an-r); box-shadow: var(--an-shadow);
}
.theme-anamnez .page-head:not(:has(> .kicker)) { border-radius: var(--an-r); }
.theme-anamnez .page-head::after { /* клочок миллиметровки справа — декоративно */
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 34%; pointer-events: none; border-radius: 0 var(--an-r) var(--an-r) 0;
  background-image: linear-gradient(var(--an-grid) 1px, transparent 1px), linear-gradient(90deg, var(--an-grid) 1px, transparent 1px);
  background-size: 12px 12px; background-position: right -1px top -1px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.theme-anamnez .page-head > * { position: relative; z-index: 1; }
.theme-anamnez .page-head > .kicker {
  position: absolute; z-index: 1; left: -1px; bottom: calc(100% - 1px); height: 33px; padding: 1px 30px 0 16px;
  display: flex; align-items: center; gap: 9px; font: 500 11.5px/1 var(--an-mono); letter-spacing: .14em; color: var(--an-teal-ink);
}
.theme-anamnez .page-head > .kicker::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: #fff; border: 1px solid var(--an-line); border-bottom: 0;
  border-radius: 7px 7px 0 0; transform: perspective(26px) rotateX(2.4deg); transform-origin: bottom left;
}
.theme-anamnez .page-head > .kicker::after { content: ''; order: -1; width: 6px; height: 6px; border-radius: 50%; background: var(--an-teal); }
.theme-anamnez .page-head h1 { font: 600 clamp(34px, 4.4vw, 58px)/1.06 var(--an-serif); letter-spacing: -.022em; }
.theme-anamnez .page-head p { margin-top: 12px; font: 400 12.5px/1.5 var(--an-mono); color: var(--an-muted); }
.theme-anamnez .narrow > .page-head p { font: 400 19px/1.5 var(--an-serif); color: var(--an-ink2); }
.theme-anamnez .search-form input { font-family: var(--an-sans); background: var(--an-paper); border: 1px solid var(--an-line2); border-radius: 8px; }
.theme-anamnez .search-form input:focus-visible { outline: 2px solid var(--an-teal); outline-offset: 0; }
.theme-anamnez .list-row { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; padding: 30px 0; border-bottom: 1px solid var(--an-line); }
.theme-anamnez .list-row .meta { font: 400 12px/1.4 var(--an-mono); color: var(--an-muted); }
.theme-anamnez .list-row h2 { margin: 10px 0; font: 600 clamp(21px, 2vw, 27px)/1.22 var(--an-serif); letter-spacing: -.01em; }
.theme-anamnez .list-row p { color: var(--an-ink2); font-size: 16px; line-height: 1.55; }
.theme-anamnez .list-row:hover h2 { color: var(--an-teal-ink); }
.theme-anamnez .pager { align-items: center; }
.theme-anamnez .pager .btn { white-space: nowrap; }
.theme-anamnez .pager .muted { font: 400 12.5px/1.4 var(--an-mono); text-align: center; }
.theme-anamnez .author { font-family: var(--an-sans); }
.theme-anamnez .kicker { font-family: var(--an-mono); font-weight: 500; color: var(--an-teal-ink); }

/* ---------- адаптив ---------- */
@media (min-width: 1180px) {
  /* поля записи уходят на поля слева, за коралловую линию; заголовок свисает вправо */
  .theme-anamnez .an-ah {
    grid-template-areas: '. kick .' 'side h1 h1' 'side lead .' 'side recipe .' 'side disc .';
  }
  .theme-anamnez .an-ah-kick { grid-area: kick; }
  .theme-anamnez .an-ah-h { grid-area: h1; padding-right: 20px; }
  .theme-anamnez .an-ah-lead { grid-area: lead; }
  .theme-anamnez .an-ah-recipe { grid-area: recipe; }
  .theme-anamnez .an-ah-disc { grid-area: disc; }
  .theme-anamnez .an-ah-fields {
    grid-area: side; grid-column: 1; justify-self: end; align-self: stretch; flex-direction: column; flex-wrap: nowrap; gap: 18px;
    max-width: 200px; margin: 0 30px 0 0; padding: 6px 22px 6px 0; border: 0; border-right: 1px solid var(--an-coral); text-align: right;
  }
  .theme-anamnez .an-ah-fields > div { padding: 0; border: 0; }
}
@media (max-width: 1240px) {
  /* закладки перестают помещаться — лента закладок уходит под край с мягким затуханием */
  .theme-anamnez .an-tabs ul {
    margin: 0 calc(-1 * var(--gap)); padding: 0 36px 0 var(--gap); scroll-padding-left: var(--gap);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  }
}
@media (max-width: 1100px) {
  .theme-anamnez .an-journal { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
  .theme-anamnez .an-entry { grid-template-columns: 52px minmax(0, 1fr) 128px; gap: 0 40px; }
  .theme-anamnez .an-entries::before { left: 72px; }
  .theme-anamnez .an-entry::before { left: 67px; }
  .theme-anamnez .an-entry::after { left: 92px; }
  .theme-anamnez .an-lead-main { gap: 40px; padding-right: 36px; }
  .theme-anamnez .an-lead-more { padding-right: 36px; }
}
@media (max-width: 960px) {
  .theme-anamnez .an-find { width: min(360px, 46%); }
  .theme-anamnez .an-journal { grid-template-columns: 1fr; gap: 56px; }
  .theme-anamnez .an-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 0; }
  .theme-anamnez .an-sub { grid-column: 1 / -1; }
  .theme-anamnez .an-sheets { grid-template-columns: 1fr; }
  .theme-anamnez .an-memo.is-wide { display: block; }
  .theme-anamnez .an-ftr-grid { grid-template-columns: 1fr 1fr; }
  .theme-anamnez .an-ftr-about { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .theme-anamnez .an-lead-main { grid-template-columns: 1fr; gap: 28px; padding: 30px 28px 30px 56px; }
  .theme-anamnez .an-lead-img { order: -1; }
  .theme-anamnez .an-lead-img .cover { flex: none; min-height: 0; aspect-ratio: 4 / 3 !important; }
  .theme-anamnez .an-lead-sheet::after { left: 28px; }
  .theme-anamnez .an-lead-more { grid-template-columns: 1fr; padding: 0 28px 0 56px; }
  .theme-anamnez .an-lead-more li + li { border-left: 0; border-top: 1px solid var(--an-line); }
  .theme-anamnez .an-lm, .theme-anamnez .an-lead-more li:first-child .an-lm, .theme-anamnez .an-lead-more li:last-child .an-lm { padding: 18px 0 20px; }
  .theme-anamnez .an-ftr-card { grid-template-columns: 1fr; gap: 28px; padding: 32px 28px 32px 60px; }
  .theme-anamnez .an-ftr-sos { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--an-line); }
  .theme-anamnez .an-ftr-card::after { left: 36px; }
}
@media (max-width: 820px) {
  .theme-anamnez .list-row { grid-template-columns: 132px minmax(0, 1fr); gap: 20px; padding: 22px 0; }
  .theme-anamnez .list-row h2 { font-size: 19px; margin: 6px 0 0; }
}
@media (max-width: 720px) {
  .theme-anamnez .an-strip-tag { display: none; }
  .theme-anamnez .page-head::after { display: none; }
  .theme-anamnez .pager { gap: 8px; }
  .theme-anamnez .pager .btn { padding: 10px 14px; }
  .theme-anamnez .an-strip-in { justify-content: space-between; gap: 16px; }
  .theme-anamnez .an-mast { padding-top: 16px; padding-bottom: 16px; gap: 16px; }
  .theme-anamnez .an-logo { gap: 10px; }
  .theme-anamnez .an-logo .an-mark { width: 32px; height: 32px; }
  .theme-anamnez .an-logo-word { font-size: 34px; }
  .theme-anamnez .an-find { display: none; }
  .theme-anamnez .an-find-m {
    display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; border-radius: 9px;
    background: #fff; border: 1px solid var(--an-line2); color: var(--an-ink);
  }
  .theme-anamnez .an-tabs a { height: 40px; padding: 2px 22px 0 14px; font-size: 14px; }
}
@media (max-width: 640px) {
  .site.theme-anamnez { font-size: 16px; }
  .theme-anamnez .an-tab, .theme-anamnez .page-head > .kicker { height: 30px; font-size: 10.5px; padding-right: 24px; }

  .theme-anamnez .an-lead { padding-top: 56px; }
  .theme-anamnez .an-lead-main { padding: 18px 18px 24px 34px; gap: 22px; }
  .theme-anamnez .an-lead-sheet::after { left: 18px; }
  .theme-anamnez .an-lead-img { padding: 6px; }
  .theme-anamnez .an-lead-more { padding: 0 18px 0 34px; }
  .theme-anamnez .an-fields, .theme-anamnez .an-ah-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; }
  .theme-anamnez .an-fields > div, .theme-anamnez .an-fields > div:first-child,
  .theme-anamnez .an-ah-fields > div, .theme-anamnez .an-ah-fields > div:first-child { padding: 9px 12px 10px 0; border-left: 0; border-top: 1px solid var(--an-line); }
  .theme-anamnez .an-fields > div:first-child, .theme-anamnez .an-ah-by { grid-column: 1 / -1; }
  .theme-anamnez .an-lead-text .an-fields { margin-bottom: 22px; }
  .theme-anamnez .an-lead-h { font-size: 27px; }
  .theme-anamnez .an-ah-h { font-size: 29px; }
  .theme-anamnez .an-lead-dek { margin-bottom: 22px; }

  .theme-anamnez .an-journal { padding-top: 72px; }
  .theme-anamnez .an-sh { grid-template-columns: 1fr; }
  .theme-anamnez .an-sh-note { justify-content: flex-start; }
  .theme-anamnez .an-entries::before, .theme-anamnez .an-entry::before { display: none; }
  .theme-anamnez .an-entry {
    grid-template-columns: minmax(0, 1fr) 96px; gap: 6px 16px; padding: 20px 0 22px;
    grid-template-areas: 't img' 'cat img' 'h img' 'd d' 'm m';
  }
  .theme-anamnez .an-entry::after { left: 0; }
  .theme-anamnez .an-entry-b { display: contents; }
  .theme-anamnez .an-entry-t { grid-area: t; padding: 0; text-align: left; font-size: 12px; color: var(--an-muted); }
  .theme-anamnez .an-entry .an-cat { grid-area: cat; }
  .theme-anamnez .an-entry h3 { grid-area: h; font-size: 19.5px; }
  .theme-anamnez .an-entry-dek { grid-area: d; margin-top: 4px; }
  .theme-anamnez .an-entry .an-meta { grid-area: m; margin-top: 2px; }
  .theme-anamnez .an-entry-img { grid-area: img; padding: 4px; }
  .theme-anamnez .an-entry.is-brief { grid-template-columns: minmax(0, 1fr); grid-template-areas: 't' 'cat' 'h' 'm'; padding: 16px 0 18px; }
  .theme-anamnez .an-entry.is-brief h3 { font-size: 18px; }
  .theme-anamnez .an-side { grid-template-columns: 1fr; }

  .theme-anamnez .an-sections { padding-top: 80px; }
  .theme-anamnez .an-sheets { gap: 60px; margin-top: 56px; }
  .theme-anamnez .an-cat-sheet { padding: 24px 18px 22px; }
  .theme-anamnez .an-cat-lead { grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; }
  .theme-anamnez .an-cat-lead .an-spec { order: 2; padding: 4px; }
  .theme-anamnez .an-cat-lead h3 { font-size: 19px; }
  .theme-anamnez .an-cat-dek { display: none; }
  .theme-anamnez .an-row h3 { font-size: 16.5px; }
  .theme-anamnez .an-spec-label { left: 14px; bottom: 14px; max-width: calc(100% - 28px); font-size: 10px; }
  .theme-anamnez .an-memo { padding: 26px 18px 26px 46px; }
  .theme-anamnez .an-memo::after { left: 26px; }
  .theme-anamnez .an-memo li { padding-left: 28px; font-size: 15.5px; }

  .theme-anamnez .an-ftr { margin-top: 140px; }
  .theme-anamnez .an-ftr-card { padding: 26px 18px 26px 44px; }
  .theme-anamnez .an-ftr-card::after { left: 24px; }
  .theme-anamnez .an-ftr-sos dt { font-size: 26px; }
  .theme-anamnez .an-ftr-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 52px; }
  .theme-anamnez .an-ftr-bottom { flex-direction: column; }

  .theme-anamnez .an-ah { padding-top: 18px; }
  .theme-anamnez .an-ah-fig { margin-top: 32px; }
  .theme-anamnez .an-ah-fig .an-spec { padding: 6px; }
  .theme-anamnez .an-disc { grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 14px 14px 15px 13px; }
  .theme-anamnez .an-disc p { font-size: 14px; }
  .theme-anamnez .article-body { padding-top: 36px; }
  .theme-anamnez .prose { font-size: 17px; }
  .theme-anamnez .prose ol > li { padding-left: 36px; }
  .theme-anamnez .prose table { display: block; overflow-x: auto; }
  .theme-anamnez .page-head { margin-top: 48px; padding: 24px 20px 22px; }
  .theme-anamnez .list-row { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; }
  .theme-anamnez .inline-read { padding: 16px 18px 18px; }
  .theme-anamnez .inline-read a { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-anamnez *, .theme-anamnez *::before, .theme-anamnez *::after { transition: none !important; }
  .theme-anamnez a:hover .cover img, .theme-anamnez a:hover .an-spec .cover img { transform: none; }
}
