/* ============================================================================
   referat24.com — тёплый оранжевый, кремовые подложки, круглые кнопки.
   Контейнер 1160 px, колонка чтения 760 px на текстовых страницах.
   Разметку блоков отдаёт gen/build.py (CLS["referat"]): chast, shagi, tablica,
   setka/yacheyka, temy-gruppa/temy-list, voprosy, zametka, ceny/cena, prizyv, knopka.
   ========================================================================= */

/* 1. Токены ---------------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --cream: #fff7f1;          /* подложка секций */
  --cream-2: #fdeee3;        /* шапка таблицы, метки */
  --cream-3: #fbe2d0;        /* наведение на кремовом */
  --line: #f0e2d6;           /* тонкие границы */
  --line-2: #e2cbb9;         /* поля ввода */

  --text: #2a211c;           /* 15.8:1 к белому */
  --text-2: #5f5751;         /* 7.1:1 */
  --text-3: #6b625b;         /* 6.0:1 */

  --orange: #e8611a;         /* фирменный, только для декора и крупных цифр */
  --orange-txt: #c2410c;     /* оранжевый для текста: 5.2:1 к белому, 4.9:1 к крему */
  --orange-deep: #9a3412;
  --btn-a: #c94a0e;          /* 4.7:1 с белым текстом */
  --btn-b: #b23f0d;
  --btn-a-h: #a63c0c;
  --btn-b-h: #8f330b;
  --link: #1d3f8f;           /* акцент-2: ссылки в тексте, 9.7:1 */
  --link-h: #142d6b;
  --focus: #1d3f8f;

  --r: 22px;
  --r-sm: 14px;
  --pill: 999px;

  --shadow-1: 0 1px 2px rgba(74, 38, 14, .05), 0 1px 3px rgba(74, 38, 14, .04);
  --shadow-2: 0 2px 4px rgba(74, 38, 14, .04), 0 10px 24px rgba(74, 38, 14, .08);
  --shadow-3: 0 4px 10px rgba(74, 38, 14, .05), 0 22px 48px rgba(74, 38, 14, .12);
  --shadow-btn: 0 6px 16px rgba(201, 74, 14, .26);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --fs-h1: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --fs-h2: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --fs-h3: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);

  --wrap: 1160px;
  --measure: 75ch;           /* строка абзаца на широких страницах */
  --read: 47.5rem;           /* ≈68ch, 760 px */
  --gut: clamp(1rem, 4vw, 2rem);
  --sec: clamp(3rem, 6vw, 5.5rem);
  --head-h: 64px;
}

/* 2. База ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: calc(var(--head-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--font); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--link-h); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { color: var(--text); margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: var(--fs-h2); line-height: 1.2; letter-spacing: -.015em; font-weight: 700; margin-bottom: .7em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 700; margin: 1.4em 0 .45em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.35em; }
li { margin: .3em 0; }
li::marker { color: var(--orange-txt); }
strong, b { font-weight: 700; }
small { font-size: .875rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.propusk { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: #fff; padding: 10px 16px; border-radius: var(--pill); }
.propusk:focus { top: 10px; color: #fff; }
.hp, .metrika-px { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ramka { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }

/* 3. Кнопки ----------------------------------------------------------------- */
.knopka, .bystro button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.9em; border: 0; border-radius: var(--pill);
  background: linear-gradient(135deg, var(--btn-a), var(--btn-b));
  color: #fff; font: 700 1.0625rem/1.2 var(--font); text-decoration: none; text-align: center;
  box-shadow: var(--shadow-btn); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.knopka:hover, .bystro button:hover {
  color: #fff; background: linear-gradient(135deg, var(--btn-a-h), var(--btn-b-h));
  transform: translateY(-1px); box-shadow: 0 10px 22px rgba(201, 74, 14, .3); text-decoration: none;
}
.knopka:active, .bystro button:active { transform: none; }
.knopka:focus-visible, .bystro button:focus-visible { outline-offset: 3px; }
.knopka--vo-ves { width: 100%; }
.knopka--malo { min-height: 44px; padding: 0 1.4em; font-size: .9375rem; }
button[disabled] { opacity: .7; cursor: progress; }

/* 4. Шапка ------------------------------------------------------------------ */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.top__in {
  width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto;
  height: var(--head-h); display: flex; align-items: center; gap: 12px;
}
.znak { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; flex: none; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.1875rem; letter-spacing: -.02em; }
.znak:hover { color: var(--orange-txt); }
.znak img { width: 34px; height: 34px; }

.pills { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.pills a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 11px;
  border-radius: var(--pill); color: var(--text); text-decoration: none;
  font-size: .90625rem; font-weight: 500; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.pills a:hover { background: var(--cream-2); color: var(--orange-deep); }
.pills a[aria-current="page"] { background: var(--cream-2); color: var(--orange-deep); font-weight: 650; box-shadow: inset 0 0 0 1px var(--cream-3); }
.pills .pills__cta { display: none; }
.top__cta {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.25em; margin-left: 8px;
  border-radius: var(--pill); background: linear-gradient(135deg, var(--btn-a), var(--btn-b));
  color: #fff; font-weight: 700; font-size: .9375rem; text-decoration: none; box-shadow: var(--shadow-btn);
}
.top__cta:hover { color: #fff; background: linear-gradient(135deg, var(--btn-a-h), var(--btn-b-h)); }
.burger {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--pill); background: #fff;
  color: var(--text); font: 600 .9375rem/1 var(--font); cursor: pointer;
}
.burger__ico, .burger__ico::before, .burger__ico::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.burger__ico { position: relative; }
.burger__ico::before, .burger__ico::after { content: ""; position: absolute; left: 0; }
.burger__ico::before { top: -6px; }
.burger__ico::after { top: 6px; }
.top--open .burger__ico { background: transparent; }
.top--open .burger__ico::before { transform: translateY(6px) rotate(45deg); }
.top--open .burger__ico::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1199.98px) {
  .js .burger { display: inline-flex; margin-left: auto; }
  .js .top__cta { margin-left: 0; }
  .js .pills {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px; margin: 0;
    padding: 12px var(--gut) 20px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-3); max-height: calc(100vh - var(--head-h)); overflow-y: auto;
  }
  .js .top--open .pills { display: flex; }
  .js .pills a { min-height: 48px; padding: 0 18px; font-size: 1.0625rem; }
  .js .pills .pills__cta {
    display: inline-flex; justify-content: center; margin-top: 8px; color: #fff; font-weight: 700;
    background: linear-gradient(135deg, var(--btn-a), var(--btn-b));
  }
  /* без JS: меню прокручивается строкой под логотипом */
  html:not(.js) .top__in { height: auto; flex-wrap: wrap; padding: 10px 0; }
  html:not(.js) .pills { order: 3; width: 100%; overflow-x: auto; margin: 0; }
}
@media (max-width: 599.98px) {
  .top__cta { display: none; }
  .burger__txt { display: none; }
  .burger { padding: 0 13px; }
}

/* 5. Заголовок страницы ----------------------------------------------------- */
.shapka {
  background:
    radial-gradient(ellipse 60% 70% at 100% 0%, rgba(232, 97, 26, .10), transparent 70%),
    linear-gradient(180deg, var(--cream) 0%, #fffaf6 70%, #fff 100%);
  padding-block: clamp(1.75rem, 4vw, 3.25rem) clamp(2rem, 4vw, 3.25rem);
}
.shapka__in { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
.shapka__text { max-width: var(--read); min-width: 0; }
.vid-shiroko .shapka__text { max-width: 54rem; }
.gde ol { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0 0 1.1rem; padding: 0; font-size: .875rem; color: var(--text-3); }
.gde li { margin: 0; }
.gde li + li::before { content: "/"; margin: 0 .55em; color: #c9b3a2; }
.gde a { color: var(--text-2); text-decoration: none; }
.gde a:hover { color: var(--orange-txt); text-decoration: underline; }
.gde [aria-current] { color: var(--text-3); }
.metka {
  display: inline-flex; align-items: center; gap: .55em; margin: 0 0 1rem;
  padding: 6px 14px 6px 12px; border-radius: var(--pill);
  background: #fff; box-shadow: inset 0 0 0 1px var(--cream-3);
  color: var(--orange-deep); font-size: .8125rem; font-weight: 700; letter-spacing: .02em; line-height: 1.3;
}
.metka::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.shapka h1 { margin-bottom: .45em; }
.h1-akcent { display: block; color: var(--orange-txt); }
.intro { font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); line-height: 1.6; color: var(--text-2); max-width: 46rem; }
.intro p:last-child { margin-bottom: 0; }
.shapka__knopki { margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 12px; }

/* быстрая форма в первом экране */
.bystro {
  display: grid; gap: 14px; padding: clamp(1.25rem, 3vw, 1.85rem);
  background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-3);
}
.bystro__title { margin: 0 0 2px; font-size: 1.1875rem; line-height: 1.3; font-weight: 750; letter-spacing: -.01em; }
.bystro__pole { display: grid; gap: 6px; }
.bystro__pole span { font-size: .875rem; font-weight: 600; color: var(--text-2); padding-left: 4px; }
.bystro small { color: var(--text-3); line-height: 1.45; }
.bystro button { width: 100%; margin-top: 4px; }

input[type=text], input[type=tel], input[type=email], input:not([type]), textarea, select {
  width: 100%; min-height: 52px; padding: 0 20px;
  font: 400 1rem/1.4 var(--font); color: var(--text);
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--pill);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 140px; padding: 14px 20px; border-radius: var(--r); resize: vertical; }
input::placeholder, textarea::placeholder { color: #776c65; }
input:hover, textarea:hover { border-color: #cfb29c; }
input:focus, textarea:focus { outline: 0; border-color: var(--orange-txt); box-shadow: 0 0 0 4px rgba(232, 97, 26, .18); }

@media (min-width: 980px) {
  .shapka--forma .shapka__in { grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: 3.5rem; }
  .shapka--forma .shapka__text { padding-top: .5rem; }
}
.shapka--glavnaya { padding-block: clamp(2.25rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); }
.vid-shiroko .bloki > .chast:first-child { padding-top: clamp(1.75rem, 3vw, 2.5rem); }

/* 6. Секции блоков ---------------------------------------------------------- */
.bloki { --sec-bg: #fff; }
.chast > :last-child { margin-bottom: 0; }

/* широкие страницы: секции на всю ширину, контент 1160 */
.vid-shiroko .chast {
  --sec-bg: #fff;
  padding: var(--sec) max(var(--gut), (100% - var(--wrap)) / 2);
  background: var(--sec-bg);
}
.vid-shiroko .chast:nth-child(even of .chast:has(> h2)) { --sec-bg: var(--cream); }
/* секция без заголовка (кроме CTA) продолжает предыдущую: тот же фон, без верхнего отступа */
.vid-shiroko .chast:nth-child(even of .chast:has(> h2)) + .chast:not(:has(> h2)):not(:has(> .prizyv)),
.vid-shiroko .chast:nth-child(even of .chast:has(> h2)) + .chast:not(:has(> h2)):not(:has(> .prizyv)) + .chast:not(:has(> h2)):not(:has(> .prizyv)) { --sec-bg: var(--cream); }
.vid-shiroko .chast:not(:has(> h2)):not(:has(> .prizyv)) { padding-top: 0; }
/* :has() нельзя вкладывать в :has(), поэтому следующую секцию без заголовка узнаём по первому ребёнку */
.vid-shiroko .chast:has(+ .chast > :first-child:not(h2):not(.prizyv)) { padding-bottom: 2rem; }
/* полоса CTA всегда на белом и с собственным воздухом */
.vid-shiroko .chast:has(> .prizyv) { --sec-bg: #fff; padding-block: clamp(2.5rem, 5vw, 4rem); }
.vid-shiroko .chast > p, .vid-shiroko .chast > ul, .vid-shiroko .chast > ol,
.vid-shiroko .chast > h3, .vid-shiroko .chast > .zametka { max-width: var(--measure); }
.vid-shiroko .chast > .shagi { max-width: calc(var(--measure) + 4.25rem); }
.vid-shiroko .chast > .voprosy { max-width: calc(var(--measure) + 6rem); }
.vid-shiroko .chast > h2 { max-width: 46rem; }
.vid-shiroko .bloki > .soderzhanie { width: min(100% - 2 * var(--gut), var(--wrap)); margin: 0 auto clamp(1rem, 3vw, 2rem); }

/* текстовые страницы: колонка чтения, прижатая к левому краю контейнера */
.vid-text .bloki { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.vid-text .bloki > * { max-width: var(--read); }
.vid-text .chast { margin-top: clamp(2rem, 4vw, 2.75rem); }
.vid-text .chast:not(:has(> h2)) { margin-top: 1.25rem; }
.vid-text .shapka { padding-bottom: clamp(1.75rem, 4vw, 2.75rem); }

/* 7. Шаги ------------------------------------------------------------------- */
.shagi { list-style: none; padding: 0; margin: .5rem 0 0; counter-reset: sh; }
.shagi li { position: relative; margin: 0; padding: 0 0 1.6rem 4.25rem; counter-increment: sh; min-height: 48px; }
.shagi li:last-child { padding-bottom: 0; }
.shagi li::before {
  content: counter(sh); position: absolute; left: 0; top: -2px; z-index: 1;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, #f37a33, var(--orange) 55%, #d4520f);
  color: #fff; font-weight: 800; font-size: 1.25rem; line-height: 1;
  box-shadow: 0 0 0 6px var(--sec-bg), 0 6px 14px rgba(232, 97, 26, .3);
}
.shagi li::after {
  content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px;
  background: repeating-linear-gradient(180deg, #f2b993 0 6px, transparent 6px 11px);
}
.shagi li:last-child::after { display: none; }
.shagi strong { display: block; font-size: 1.125rem; line-height: 1.35; padding-top: 10px; }
.shagi p { margin: .3rem 0 0; color: var(--text-2); }

/* 8. Таблицы ---------------------------------------------------------------- */
.tablica {
  overflow-x: auto; -webkit-overflow-scrolling: touch; margin: .25rem 0 1.25rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1);
}
.tablica:last-child { margin-bottom: 0; }
table { border-collapse: collapse; width: 100%; font-size: .96875rem; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 14px 20px; }
thead th { background: var(--cream-2); color: var(--text); font-weight: 700; font-size: .875rem; white-space: nowrap; }
tbody tr + tr td { border-top: 1px solid var(--line); }
tbody tr:hover td { background: #fffbf8; }
td:first-child { font-weight: 600; }
/* таблицы из markdown приходят без обёртки: без JS скроллятся сами, с JS referat.js оборачивает их в .tablica */
.chast > table { display: block; max-width: 100%; overflow-x: auto; margin: .25rem 0 1.25rem; border: 1px solid var(--line); border-radius: var(--r-sm); }
@media (max-width: 640px) { th, td { padding: 12px 14px; min-width: 6.5rem; } thead th { white-space: normal; } }
/* таблица в три и больше колонок на телефоне не сжимается в столбики по слову: скроллится внутри обёртки */
@media (max-width: 640px) { .tablica table:has(th:nth-child(3)) { min-width: 30rem; } .tablica table:has(th:nth-child(4)) { min-width: 36rem; } }

/* 9. Карточки --------------------------------------------------------------- */
.setka { display: grid; gap: 16px; grid-template-columns: 1fr; margin: .5rem 0 1.25rem; }
.setka:last-child { margin-bottom: 0; }
@media (min-width: 640px) { .setka { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) {
  .vid-shiroko .setka { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vid-shiroko .setka:has(> :nth-child(4):last-child),
  .vid-shiroko .setka:has(> :nth-child(8):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vid-shiroko .setka:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.yacheyka {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 100%;
  padding: 22px 24px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  color: var(--text); text-decoration: none; box-shadow: var(--shadow-1);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.yacheyka strong { font-size: 1.125rem; line-height: 1.3; padding-right: 32px; }
.yacheyka span { color: var(--text-2); font-size: .9375rem; line-height: 1.5; }
.yacheyka::after {
  content: "→"; position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cream); color: var(--orange-txt); font-weight: 700;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.yacheyka:hover { color: var(--text); text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--cream-3); }
.yacheyka:hover::after { background: var(--orange); color: #fff; transform: translateX(2px); }

/* 10. Подборки тем ---------------------------------------------------------- */
.temy-gruppa {
  margin: 0 0 16px; padding: clamp(1.1rem, 2.5vw, 1.6rem) clamp(1.1rem, 3vw, 1.85rem);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1);
}
.temy-gruppa:last-child { margin-bottom: 0; }
.temy-gruppa h3 { margin: 0 0 .7rem; display: flex; align-items: center; gap: .6rem; }
.temy-gruppa h3::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--cream-2); }
.temy-list { list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .temy-list { columns: 2; column-gap: 2.5rem; } }
.temy-list li {
  break-inside: avoid; position: relative; margin: 0; padding: 9px 0 9px 22px;
  border-bottom: 1px solid #f6ece4; line-height: 1.45;
}
.temy-list li::before { content: ""; position: absolute; left: 4px; top: 1.05em; width: 7px; height: 7px; border-radius: 50%; background: #f2a571; }

/* 11. Вопросы и ответы ------------------------------------------------------ */
.voprosy > h3 { margin: 1.4em 0 .4em; padding-top: 1.1em; border-top: 1px solid var(--line); }
.voprosy > h3:first-child { margin-top: 0; }
.voprosy--akkordeon { display: grid; gap: 12px; }
.vopros {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.vopros[open] { border-color: var(--cream-3); box-shadow: var(--shadow-2); }
.vopros summary {
  list-style: none; position: relative; cursor: pointer; padding: 18px 64px 18px 24px; min-height: 60px;
  border-radius: var(--r); display: flex; align-items: center;
}
.vopros summary::-webkit-details-marker { display: none; }
.vopros summary:hover { background: #fffbf8; }
.vopros summary:focus-visible { outline-offset: -3px; }
.vopros summary h3 { margin: 0; font-size: 1.0625rem; line-height: 1.4; font-weight: 650; text-wrap: pretty; }
.vopros summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  background:
    linear-gradient(var(--orange-txt), var(--orange-txt)) center / 12px 2px no-repeat,
    linear-gradient(var(--orange-txt), var(--orange-txt)) center / 2px 12px no-repeat,
    var(--cream-2);
  transition: transform .2s ease;
}
.vopros[open] summary::after {
  transform: rotate(180deg);
  background: linear-gradient(#fff, #fff) center / 12px 2px no-repeat, var(--orange-txt);
}
.vopros__otvet { padding: 0 24px 20px; color: var(--text-2); }
.vopros__otvet > :last-child { margin-bottom: 0; }

/* 12. Врезка «Важно» -------------------------------------------------------- */
.zametka {
  position: relative; margin: 1.25rem 0; padding: 18px 22px 18px 26px;
  background: #fff; border: 1px solid var(--cream-3); border-radius: var(--r-sm);
  box-shadow: inset 5px 0 0 var(--orange);
}
.zametka::before { content: "Важно"; display: block; margin-bottom: .35rem; color: var(--orange-txt); font-size: .8125rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.zametka > :last-child { margin-bottom: 0; }

/* 13. Тарифы ---------------------------------------------------------------- */
.ceny { display: grid; gap: 16px; grid-template-columns: 1fr; margin: .5rem 0 1.25rem; }
.ceny:last-child { margin-bottom: 0; }
@media (min-width: 560px) { .ceny { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .vid-shiroko .ceny { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.cena {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 24px 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-1); overflow: hidden;
}
.cena::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, #f59a5e, var(--orange)); }
.cena strong { font-size: 1.0625rem; line-height: 1.3; }
.cena b { order: -1; font-size: clamp(1.625rem, 1.4rem + .8vw, 2rem); line-height: 1.15; letter-spacing: -.02em; color: var(--orange-txt); font-weight: 800; white-space: nowrap; margin-bottom: 4px; }
.cena span { color: var(--text-2); font-size: .9375rem; line-height: 1.5; margin-top: 4px; }

/* 14. Полоса призыва -------------------------------------------------------- */
.prizyv {
  position: relative; overflow: hidden; display: grid; gap: 1.25rem; align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.25rem);
  border-radius: 28px; color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 170, 110, .28), transparent 55%),
    linear-gradient(115deg, #c84a10 0%, var(--orange-txt) 40%, var(--orange-deep) 100%);
  box-shadow: 0 18px 40px rgba(154, 52, 18, .22);
}
.prizyv::after { content: ""; position: absolute; right: -60px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .07); pointer-events: none; }
.prizyv p { position: relative; z-index: 1; margin: 0; font-size: clamp(1.1875rem, 1.05rem + .6vw, 1.5rem); line-height: 1.35; font-weight: 700; letter-spacing: -.01em; max-width: 36ch; text-wrap: balance; }
.prizyv .knopka { position: relative; z-index: 1; justify-self: start; background: #fff; color: var(--orange-deep); box-shadow: 0 8px 20px rgba(60, 20, 5, .25); }
.prizyv .knopka:hover { background: var(--cream); color: var(--orange-deep); }
.prizyv .knopka:focus-visible { outline-color: #fff; }
@media (min-width: 760px) {
  .prizyv { grid-template-columns: 1fr auto; gap: 2rem; }
  .prizyv .knopka { justify-self: end; min-height: 56px; padding: 0 2.2em; }
}

/* 15. Оглавление и «Читайте также» ------------------------------------------ */
.soderzhanie {
  margin: 0 0 .5rem; padding: 20px 24px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r);
}
.vid-text .soderzhanie { margin-top: 0; }
.soderzhanie__t { margin: 0 0 .5rem; font-size: .8125rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-txt); }
.soderzhanie ol { margin: 0; padding: 0; list-style: none; counter-reset: tc; }
@media (min-width: 640px) { .soderzhanie ol:has(> :nth-child(5)) { columns: 2; column-gap: 2rem; } }
.soderzhanie li { counter-increment: tc; margin: 0; break-inside: avoid; }
.soderzhanie a { display: flex; gap: .7em; padding: 7px 0; color: var(--text); text-decoration: none; line-height: 1.4; }
.soderzhanie a::before { content: counter(tc, decimal-leading-zero); flex: none; color: var(--orange-txt); font-weight: 700; font-size: .875rem; padding-top: .1em; font-variant-numeric: tabular-nums; }
.soderzhanie a:hover { color: var(--orange-txt); }

.esche { padding-block: clamp(2.5rem, 5vw, 4rem); background: var(--cream); border-top: 1px solid var(--line); }
.esche h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); margin-bottom: 1rem; }
.esche__setka { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .esche__setka { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .esche__setka { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.esche__k {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 14px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--text); font-weight: 600; text-decoration: none; line-height: 1.35;
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.esche__k::after { content: "→"; flex: none; color: var(--orange-txt); font-weight: 700; }
.esche__k:hover { color: var(--text); text-decoration: none; border-color: var(--cream-3); box-shadow: var(--shadow-2); transform: translateY(-2px); }

/* 16. Формы /zakaz/ ---------------------------------------------------------- */
.zakaz-kratko {
  display: grid; gap: 18px; padding: clamp(1.25rem, 4vw, 2.25rem);
  background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-3);
}
.zakaz-kratko label { display: block; margin: 0 0 6px 4px; font-weight: 650; font-size: .9375rem; }
.zakaz-kratko p { margin: 0; color: var(--text-3); }
.zakaz-kratko .knopka { width: 100%; }
@media (min-width: 640px) { .zakaz-kratko .knopka { width: auto; min-width: 240px; } }
.p-system .chast { margin-top: 0; }

/* 17. Подвал ----------------------------------------------------------------- */
.niz { --f-text: #eadfd6; --f-muted: #c4b3a6; background: #2a1d16; color: var(--f-muted); font-size: .9375rem; padding-top: clamp(2.5rem, 5vw, 3.75rem); }
.niz a:focus-visible { outline-color: #ffb27d; }
.niz__grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 2rem; }
.niz__brand { grid-column: 1 / -1; }
@media (min-width: 640px) { .niz__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .niz__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; } .niz__brand { grid-column: auto; } }
.niz__brand p { margin: .9rem 0 1.25rem; max-width: 36ch; line-height: 1.55; }
.znak--niz { font-size: 1.125rem; color: #fff; }
.znak--niz:hover { color: #ffcfae; }
.znak--niz img { width: 30px; height: 30px; }
.niz__h { margin: 0 0 .5rem; color: #fff; font-weight: 700; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; }
.niz__col ul { list-style: none; margin: 0; padding: 0; }
.niz__col li { margin: 0; }
.niz__col a { display: inline-flex; align-items: center; min-height: 40px; color: var(--f-text); text-decoration: none; }
.niz__col a:hover { color: #ffcfae; text-decoration: underline; }
.niz-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 18px 0 26px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .875rem; color: var(--f-muted); }
.niz-legal a { color: var(--f-muted); }
.niz-legal a:hover { color: #ffcfae; }

/* 18. Движение и печать ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none; scroll-behavior: auto; }
}
@media print {
  .top, .niz, .bystro, .prizyv, .esche, .burger { display: none; }
  .shapka { background: none; }
  .vopros__otvet { display: block; }
}

/* Единая ширина блоков (решение владельца 19.10.2026): все блоки растянуты на ширину контейнера */
.vid-shiroko .shapka__text, .intro, .vid-shiroko .chast > p, .vid-shiroko .chast > ul, .vid-shiroko .chast > ol, .vid-shiroko .chast > h3, .vid-shiroko .chast > .zametka, .vid-shiroko .chast > .shagi,
.vid-shiroko .chast > .voprosy, .vid-shiroko .chast > h2, .vid-text .bloki > *, .shapka__text { max-width: none; }
