/* SternMeister Blog — стили темы.
   Повторяют блог на Tilda (sternmeister.de/blog): размеры, цвета и отступы сняты с живой
   страницы. Брейкпоинты — как у сетки Tilda: 1200, 960, 640. При правках сверять с Tilda. */

@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/golos-text-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/golos-text-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/golos-text-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/playfair-display-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/playfair-display-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/playfair-display-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #292c29;
  --logo: #303030;
  --green: #4e684c;
  --gray: #f3f3f3;
  --chip: #333;
  --line: rgba(0, 0, 0, .1);
  --muted: rgba(0, 0, 0, .5);
  --footer: #292c29;
  --frame: #ccbda4;
  --font-text: "Golos Text", Arial, sans-serif;
  --font-head: "Playfair Display", Georgia, serif;
  /* Подвал на Tilda набран Montserrat, но этот шрифт там не подключён, и браузер рисует Arial.
     Повторяем то, что видит читатель. */
  --font-footer: Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-text); font-size: 16px; line-height: 1.4; color: var(--ink); background: #fff; }
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--green); color: #fff; }
.skip-link:focus { left: 8px; }
.icon { display: block; flex: 0 0 auto; width: 24px; height: 24px; }

/* ── Шапка ───────────────────────────────────────────────────────────────── */
.site-header { position: relative; z-index: 50; background: var(--gray); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; max-width: 1200px; height: 75px; margin: 0 auto; padding: 0 20px; }
.site-header__brand { flex: 0 0 auto; color: var(--logo); }
.site-header__logo { display: block; width: 200px; height: 28px; }
.site-nav { display: flex; flex: 1; align-items: center; margin-left: 50px; }
.site-nav__list { display: flex; flex: 1; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.site-nav__list a { font-size: 16px; line-height: 20px; text-decoration: none; transition: opacity .2s; }
.site-nav__list a:hover, .site-nav__list .is-active > a { opacity: .7; }
.is-article .site-nav__list a { font-size: 14px; line-height: 17px; }
.site-nav__list .is-cta { margin-left: auto; }
.site-nav__list .is-cta > a { display: inline-flex; align-items: center; height: 40px; padding: 0 30px; border-radius: 50px; background: var(--green); color: #fff; font-size: 15px; font-weight: 500; line-height: 21px; opacity: 1; }
.site-nav__list .is-cta > a:hover { opacity: .9; }
.site-header__toggle { display: none; position: relative; flex: 0 0 auto; width: 22px; height: 14px; margin-left: auto; padding: 0; border: 0; background: none; cursor: pointer; }
.site-header__toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: #000; transition: transform .2s, opacity .2s, top .2s; }
.site-header__toggle span:nth-child(1) { top: 0; }
.site-header__toggle span:nth-child(2) { top: 6px; }
.site-header__toggle span:nth-child(3) { top: 12px; }
.site-header__toggle[aria-expanded="true"] span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.site-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__toggle[aria-expanded="true"] span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ── Лента: разделы, карточки, «Загрузить еще» ───────────────────────────── */
.feed, .related { background: var(--gray); }
.feed { padding: 44px 0 135px; }
.feed__inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.feed__title { margin: 0 0 40px; font-family: var(--font-head); font-size: 36px; font-weight: 500; line-height: 1.23; }
.feed__empty { font-size: 18px; }

.parts__list { display: flex; flex-wrap: wrap; margin: 0 0 40px; padding: 0; list-style: none; }
.parts__item { margin: 0 10px 10px; border: 5px solid var(--chip); border-radius: 40px; background: var(--chip); }
.parts__item a { display: block; margin: 0 10px; padding: 6px 18px; border-radius: 40px; color: #fff; font-size: 14px; line-height: 17px; text-decoration: none; }
.parts__item.is-active { border-color: #fff; background: #fff; }
.parts__item.is-active a { color: var(--chip); opacity: .7; }

.feed__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 60px 40px; }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #fff; transition: box-shadow .2s; }
.card:hover { box-shadow: 0 0 20px 0 rgba(0, 0, 0, .2); }
.card__media { position: relative; display: block; aspect-ratio: 360 / 276; background: #e6e6e6; }
.card__img { width: 100%; height: 100%; object-fit: cover; }
.card__label { position: absolute; top: 15px; left: 15px; max-width: calc(100% - 30px); padding: 7px 8px; border-radius: 3px; background: rgba(0, 0, 0, .5); font-size: 0; line-height: 0; }
.card__tag { position: relative; display: inline-block; margin-right: 10px; color: #fff; font-size: 10px; line-height: 12px; letter-spacing: 1px; text-transform: uppercase; }
.card__tag:last-child { margin-right: 0; }
.card__tag:not(:last-child)::after { content: "·"; position: absolute; right: -7px; }
.card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 25px 30px 27px; }
.card__title { color: var(--green); font-size: 14px; font-weight: 600; line-height: 1.35; }
.card__title a { text-decoration: none; }
.card__descr { margin-top: 8px; color: rgba(0, 0, 0, .9); font-size: 12px; line-height: 1.55; }
.card__date { margin: 15px 0 25px; color: var(--muted); font-size: 10px; line-height: 12px; letter-spacing: 1px; }
.card__more { display: inline-flex; align-items: center; height: 35px; margin-top: auto; padding: 0 15px; border: 1px solid #000; border-radius: 5px; background: #fff; color: #000; font-size: 10px; line-height: 14px; text-decoration: none; }

.feed__more { margin-top: 90px; text-align: center; }
.button-more { display: inline-flex; align-items: center; justify-content: center; height: 60px; padding: 0 60px; border-radius: 3px; background: #000; color: #fff; font-size: 16px; line-height: 1.4; text-decoration: none; }
.button-more[aria-busy="true"] { opacity: .6; pointer-events: none; }

.related { padding: 90px 0 135px; }
.related__title { margin: 0 0 40px; font-family: var(--font-head); font-size: 36px; font-weight: 500; line-height: 1.23; }

/* ── Статья ──────────────────────────────────────────────────────────────── */
.post { background: #fff; }
.post__inner { max-width: 800px; margin: 0 auto; padding: 19px 20px 95px; }
.post__cover { margin-bottom: 30px; }
.post__cover img { width: 100%; border-radius: 20px; }
.post__title { padding-bottom: 15px; font-family: var(--font-head); font-size: 36px; font-weight: 500; line-height: 1.23; }
.post__text { margin-top: 10px; }
.post__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 15px; margin-top: 45px; color: var(--muted); font-family: var(--font-head); font-size: 10px; font-weight: 500; }
.post__meta time { letter-spacing: 1.5px; }
.post__tag { letter-spacing: 2.5px; text-decoration: none; text-transform: uppercase; }
.post__tag:hover { color: var(--ink); }

.prose { font-size: 18px; line-height: 1.4; }
.prose > p, .prose > ul, .prose > ol, .prose > blockquote, .prose > table { margin: 0 0 12px; padding: 4px 0; }
.prose > :first-child { padding-top: 0; }
.prose > ul, .prose > ol { padding-left: 20px; }
.prose p:empty { display: none; }
.prose h2, .prose h3, .prose h4 { margin: 32px 0 12px; padding: 4px 0; font-weight: 700; line-height: 1.3; }
.prose h2 { font-size: 30px; }
.prose h3 { font-size: 28px; }
.prose h4 { font-size: 22px; }
.prose li { margin: 0; }
.prose strong, .prose b { font-weight: 700; }
.prose a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.prose figure { margin: 16px 0; }
.prose figure img, .prose > img { width: 100%; border-radius: 20px; }
.prose figure a { display: block; }
.prose figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }
.prose blockquote { padding-left: 20px; border-left: 3px solid var(--green); }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .9em; }
.prose th, .prose td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--gray); }
.prose hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }

.button-green { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50px; background: var(--green); color: #fff; text-decoration: none; cursor: pointer; transition: opacity .2s; }
.button-green:hover { opacity: .9; }
.prose .button-green { color: #fff; text-decoration: none; }
.button-green--lg { min-width: 382px; height: 60px; padding: 0 40px; font-size: 18px; }
.prose > .post-cta { margin: 42px 0; padding: 0; text-align: center; }

.faq { margin-top: 32px; }
.faq__title { margin-bottom: 12px; padding: 4px 0; font-size: 30px; font-weight: 700; line-height: 1.3; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q { position: relative; padding: 16px 40px 16px 0; font-weight: 600; list-style: none; cursor: pointer; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; position: absolute; top: 50%; right: 4px; color: var(--green); font-size: 28px; font-weight: 300; line-height: 1; transform: translateY(-50%); }
.faq__item[open] .faq__q::after { content: "−"; }
.faq__a { padding-bottom: 16px; }
.faq__a > * + * { margin-top: 12px; }

.sources { margin-top: 32px; color: rgba(0, 0, 0, .7); font-size: 14px; line-height: 1.45; }
.sources__title { margin-bottom: 8px; color: var(--ink); font-size: 18px; font-weight: 700; }
.sources__list { padding-left: 20px; }
.sources__list li + li { margin-top: 4px; }
.sources a { color: inherit; word-break: break-word; }

.author-box { display: flex; align-items: center; gap: 16px; margin-top: 45px; padding-top: 25px; border-top: 1px solid var(--line); }
.author-box__avatar { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.author-box__name { font-size: 14px; font-weight: 600; }
.author-box__name a { text-decoration: none; }
.author-box__job { color: var(--green); font-size: 12px; font-weight: 600; }
.author-box__bio { margin-top: 4px; color: rgba(0, 0, 0, .6); font-size: 12px; line-height: 1.55; }
.avatar--initial { display: inline-flex; align-items: center; justify-content: center; background: var(--gray); color: var(--green); font-family: var(--font-head); font-size: 24px; }
/* Редакция: логотип в плашке, а не портрет в круге. Размеры жёсткие, иначе плашка меняет
   ширину в момент загрузки SVG и страница дёргается (CLS). */
.avatar--org { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; background: var(--gray); }
.avatar--org img { display: block; width: 100%; height: auto; }
.author-box__avatar.avatar--org { width: 118px !important; height: 40px !important; padding: 0 12px; border-radius: 8px; }

.author-hero { background: #fff; }
.author-hero .post__inner { padding-top: 60px; padding-bottom: 60px; }
.author-hero__avatar { width: 128px; height: 128px; margin-bottom: 24px; border-radius: 50%; object-fit: cover; }
.author-hero__avatar.avatar--org { width: 200px !important; height: 68px !important; padding: 0 22px; border-radius: 12px; }
.author-hero__kicker { margin-bottom: 10px; color: var(--muted); font-family: var(--font-head); font-size: 10px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; }
.author-hero__job { color: var(--green); font-weight: 600; }
.author-hero__bio { margin-top: 10px; font-size: 18px; line-height: 1.4; }

.search { display: flex; gap: 10px; max-width: 520px; margin-top: 24px; }
.search input { flex: 1; min-width: 0; height: 48px; padding: 0 20px; border: 1px solid rgba(0, 0, 0, .2); border-radius: 50px; font-size: 16px; }
.search .button-green { height: 48px; padding: 0 28px; font-size: 15px; }

/* ── Подвал: как zero-блок Tilda, координаты сняты с артборда 1200 ───────── */
.site-footer { padding: 165px 0; background: var(--footer); color: #fff; font-family: var(--font-footer); }
.site-footer a { text-decoration: none; }
.site-footer__inner { position: relative; display: grid; grid-template-columns: 611px 580px; max-width: 1200px; margin: 0 auto; }
.site-footer__contacts { position: relative; min-height: 581px; padding-left: 10px; }
.site-footer__title { margin: 18px 0 0 1px; font-family: var(--font-head); font-size: 30px; font-weight: 500; line-height: 29px; }
.site-footer__groups { margin-top: 40px; }
.site-footer__group { margin: 0; padding: 0; list-style: none; }
.site-footer__group li { display: flex; align-items: flex-start; gap: 24px; font-size: 16px; line-height: 22px; }
.site-footer__group li + li { margin-top: 24px; }
.site-footer__group a { max-width: 230px; }
.site-footer__group--address { margin-top: 40px; }
.site-footer__group--legal { margin-top: 50px; }
.site-footer__group--legal a { max-width: 189px; }
.site-footer__group--legal li + li { margin-top: 20px; }
.site-footer__group li.is-plain { margin-top: 8px; padding-left: 48px; }
.site-footer__blog { position: absolute; top: 82px; left: 320px; font-family: var(--font-text); font-size: 20px; font-weight: 300; line-height: 31px; }
.site-footer__brand { position: absolute; top: 551px; left: 11px; color: #fff; }
.site-footer__logo { display: block; width: 200px; height: 28px; }
.site-footer__lead { align-self: start; padding: 39px 40px 40px; border: 1px solid var(--frame); border-radius: 20px; }
.site-footer__lead-title { font-family: var(--font-head); font-size: 30px; font-weight: 500; line-height: 29px; }
.site-footer__lead-title strong { color: var(--green); font-weight: 700; }
.site-footer__lead-text { margin-top: 24px; font-size: 18px; line-height: 22px; }

/* ── Форма заявки и попап «Готовы начать?»: копии zero-форм Tilda ─────────── */
/* Поля и кнопки на Tilda заданы шрифтом Montserrat без запасного; он там не подключён, и браузер
   рисует Times New Roman. Повторяем то, что видит читатель. */
.lead-form { --font-form: Montserrat, "Times New Roman", serif; margin-top: 40px; font-family: var(--font-form); }
.lead-form__field { position: relative; margin-bottom: 20px; }
.lead-form__input { display: block; width: 100%; height: 64px; padding: 0 20px; border: 0; border-radius: 80px; background: #3d3d3d; color: #fff; font-family: var(--font-form); font-size: 16px; line-height: 1.33; outline: none; -webkit-appearance: none; appearance: none; }
.lead-form__input::placeholder { color: inherit; opacity: .5; }
.lead-form__input:focus-visible { box-shadow: 0 0 0 3px #0096ff; }
.lead-form__field.is-error .lead-form__input { border: 1px solid red; }
.lead-form__error { position: absolute; top: 100%; left: 0; z-index: 2; margin-top: 5px; padding: 8px 10px; border-radius: 2px; background: #fff; box-shadow: 0 1px 20px 0 rgba(0, 0, 0, .2); color: red; font-family: var(--font-text); font-size: 13px; line-height: 16px; white-space: nowrap; }
.lead-form__error::after { content: ""; position: absolute; top: -12px; left: 15%; border: 6px solid transparent; border-bottom-color: #fff; }
.lead-form__check { position: relative; display: flex; align-items: flex-start; gap: 10px; min-height: 20px; color: #fff; font-size: 14px; line-height: 1.2; cursor: pointer; }
.lead-form__check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.lead-form__indicator { position: relative; flex: 0 0 20px; width: 20px; height: 20px; margin-top: -1.6px; border: 2px solid #fff; opacity: .6; transition: opacity .2s; }
.lead-form__indicator::after { content: ""; display: none; position: absolute; top: 50%; left: 50%; width: 8px; height: 3px; border: solid #fff; border-width: 0 0 2px 2px; transform: translate(-50%, -70%) rotate(-45deg); }
.lead-form__check input:checked + .lead-form__indicator { opacity: 1; }
.lead-form__check input:checked + .lead-form__indicator::after { display: block; }
.lead-form__check input:focus-visible + .lead-form__indicator { box-shadow: 0 0 0 3px #0096ff; }
.lead-form__label a { border-bottom: 1px solid currentColor; text-decoration: none; }
.lead-form__submit { position: relative; display: flex; align-items: center; justify-content: center; width: 300px; max-width: 100%; height: 64px; margin-top: 20px; padding: 0 15px; border: 0; border-radius: 80px; background: #fff; color: #000; font-family: var(--font-form); font-size: 16px; cursor: pointer; transition: background-color .2s ease-in-out, color .2s ease-in-out; }
.lead-form__submit:hover { background: #f3ebde; }
.lead-form__submit[aria-busy="true"] { color: transparent; pointer-events: none; }
.lead-form__submit[aria-busy="true"]::after { content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 2px solid #000; border-right-color: transparent; border-radius: 50%; animation: lead-spin .8s linear infinite; }
.lead-form__trap { position: absolute; bottom: 0; left: -5000px; display: none; }
@keyframes lead-spin { to { transform: rotate(360deg); } }
.lead-form--popup .lead-form__input { background: #fff; color: #292c29; }
.lead-form--popup .lead-form__submit { margin-top: 22px; background: #292c29; color: #fff; font-weight: 700; }
.lead-form--popup .lead-form__submit:hover { background: #3d3d3d; }
.lead-form--popup .lead-form__submit[aria-busy="true"]::after { border-color: #fff; border-right-color: transparent; }

.lead-popup { position: fixed; inset: 0; z-index: 99999; display: flex; padding: 20px; overflow-y: auto; background: rgba(0, 0, 0, .6); opacity: 0; cursor: pointer; transition: opacity .3s ease-in-out; }
.lead-popup[hidden] { display: none; }
.lead-popup.is-open { opacity: 1; }
.lead-popup__panel { position: relative; width: 380px; max-width: 100%; margin: auto; padding: 40px; border-radius: 20px; background: #383d38; color: #fff; cursor: default; transform: translateY(10%) scale(.9); transition: transform .3s ease-in-out; }
.lead-popup.is-open .lead-popup__panel { transform: none; }
.lead-popup__panel:focus { outline: none; }
.lead-popup__close { display: block; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.lead-popup__close img { width: 40px; height: 40px; }
.lead-popup__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-top: 24px; }
.lead-popup__title { max-width: 219px; font-family: var(--font-head); font-size: 30px; font-weight: 500; line-height: .95; }
.lead-popup__icon { flex: 0 0 auto; width: 56px; height: 54px; }
.lead-popup__text { margin-top: 24px; font-family: Arial, sans-serif; font-size: 18px; line-height: 1.2; }
.lead-popup .lead-form { margin-top: 62px; }
body.lead-popup-open { overflow: hidden; }

.lead-toast { position: fixed; right: 20px; bottom: 20px; z-index: 100000; min-width: 260px; max-width: 400px; padding: 19px 36px 19px 20px; border-radius: 3px; background: #f95d51; box-shadow: 0 0 3px 1px rgba(0, 0, 0, .2); color: #fff; font-family: var(--font-text); font-size: 14px; font-weight: 600; line-height: 1.55; }
.lead-toast[hidden] { display: none; }
.lead-toast p + p { margin-top: 4px; }
.lead-toast a { color: inherit; }
.lead-toast__close { position: absolute; top: 8px; right: 8px; width: 14px; height: 14px; padding: 0; border: 0; background: none; cursor: pointer; }
.lead-toast__close::before, .lead-toast__close::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: #fff; transform: rotate(45deg); }
.lead-toast__close::after { transform: rotate(-45deg); }
.lead-captcha { position: fixed; inset: 0; z-index: 1000001; background: rgba(255, 255, 255, .97); }
.lead-captcha iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ── Баннер согласия: копия HTML-блока основного сайта (Tilda), стили без изменений ── */
#cb-overlay { position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100vw !important; height: 100vh !important; z-index: 999999 !important; background: rgba(0, 0, 0, .55) !important; font-family: Arial, sans-serif; color: #292929; line-height: 1.5; overflow: hidden; }
#cb-overlay.cb-hidden { display: none !important; }
#cb-banner { position: fixed !important; bottom: 0 !important; left: 50% !important; right: auto !important; transform: translateX(-50%); width: calc(100% - 48px); max-width: 1100px; background: #fff; border-radius: 16px 16px 0 0; box-shadow: 0 -4px 24px rgba(0, 0, 0, .15); max-height: 85vh; overflow-y: auto; z-index: 1000000; }
#cb-banner-inner { padding: 24px 32px 20px; }
.cb-banner-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.cb-banner-content { flex: 1; min-width: 0; }
.cb-banner-title { font-size: 18px; font-weight: 700; color: #292929; margin: 0 0 6px 0; }
.cb-banner-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.cb-btn-accept { background: #004b2b; color: #fff; border: none; border-radius: 6px; padding: 10px 28px; font-size: 14px; font-weight: 600; font-family: Arial, sans-serif; cursor: pointer; white-space: nowrap; transition: opacity .15s; }
.cb-btn-accept:hover { opacity: .85; }
.cb-link-settings { font-size: 14px; color: #004b2b; text-decoration: none; cursor: pointer; white-space: nowrap; font-weight: 600; }
.cb-link-settings:hover { text-decoration: underline; }
.cb-banner-text { font-size: 13px; color: #5a5a5a; margin: 0; }
.cb-banner-links { display: flex; gap: 20px; justify-content: flex-start; border-top: 1px solid #efede7; padding-top: 12px; margin-top: 4px; }
.cb-banner-links a { font-size: 12px; color: #004b2b; text-decoration: none; }
.cb-banner-links a:hover { text-decoration: underline; }
#cb-settings { position: absolute; inset: 0; background: #fff; overflow-y: auto; display: none; }
#cb-settings.cb-active { display: block; }
#cb-settings::before { content: ""; display: block; height: 4px; background: #004b2b; }
#cb-settings-inner { max-width: 780px; margin: 0 auto; padding: 40px 32px 48px; }
.cb-settings-title { font-size: 24px; font-weight: 700; color: #004b2b; margin: 0 0 16px 0; }
.cb-settings-text { font-size: 14px; color: #5a5a5a; margin: 0 0 28px 0; line-height: 1.6; }
.cb-table-header { font-size: 15px; font-weight: 700; color: #292929; padding: 12px 0; border-bottom: 2px solid #efede7; margin-bottom: 0; }
.cb-category { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid #efede7; gap: 16px; }
.cb-category-name { font-size: 14px; color: #292929; flex: 1; }
.cb-category-status { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 60px; }
.cb-status-label { font-size: 11px; color: #5a5a5a; }
.cb-toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.cb-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cb-toggle-track { position: absolute; inset: 0; background: #d1d1d1; border-radius: 12px; cursor: pointer; transition: background .2s; }
.cb-toggle input:checked + .cb-toggle-track { background: #62c584; }
.cb-toggle input:disabled + .cb-toggle-track { background: #8b8b8b; cursor: default; }
.cb-toggle-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.cb-toggle input:checked + .cb-toggle-track::after { transform: translateX(20px); }
.cb-settings-footer { text-align: center; margin-top: 32px; }
.cb-link-back { display: inline-block; font-size: 14px; color: #004b2b; text-decoration: none; cursor: pointer; margin-bottom: 16px; }
.cb-link-back:hover { text-decoration: underline; }
.cb-btn-save { display: inline-block; background: #004b2b; color: #fff; border: none; border-radius: 6px; padding: 14px 60px; font-size: 15px; font-weight: 600; font-family: Arial, sans-serif; cursor: pointer; transition: opacity .15s; }
.cb-btn-save:hover { opacity: .85; }
#cb-floating-trigger { position: fixed; bottom: 16px; left: 16px; z-index: 999998; background: #fff; border: 1.5px solid #efede7; border-radius: 20px; padding: 6px 14px; font-size: 12px; font-family: Arial, sans-serif; color: #292929; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); display: none; align-items: center; gap: 6px; transition: box-shadow .15s; }
#cb-floating-trigger:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .15); }
#cb-floating-trigger.cb-visible { display: flex; }
#cb-floating-trigger svg { width: 14px; height: 14px; fill: #004b2b; }

/* ── Адаптив (брейкпоинты сетки Tilda) ───────────────────────────────────── */
@media (max-width: 1200px) {
  .feed__inner { max-width: 960px; padding: 0 10px; }
  .feed__grid { gap: 60px 20px; }
  .post__inner { max-width: 640px; padding-left: 10px; padding-right: 10px; }
  .post__title, .feed__title, .related__title { font-size: 32px; }
  .prose { font-size: 16px; }
  .prose h2, .faq__title { font-size: 28px; }
  .prose h3 { font-size: 26px; }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 40px; padding: 0 20px; }
  .site-footer__blog { left: 300px; }
}

@media (max-width: 980px) {
  .site-header { background: #fff; }
  .site-header__inner { height: 64px; }
  .site-header__toggle { display: block; }
  .site-nav { display: none; position: fixed; inset: 65px 0 0; margin: 0; padding: 30px 20px; overflow-y: auto; background: var(--gray); }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: flex-start; gap: 20px; }
  .site-nav__list a, .is-article .site-nav__list a { display: block; font-size: 10px; line-height: 12px; }
  .site-nav__list .is-cta { margin: 40px 0 0; }
  .site-nav__list .is-cta > a { display: inline-flex; font-size: 15px; line-height: 21px; }
  /* На Tilda шапка планшета лежит поверх ленты с отступом 120px — у нас она в потоке. */
  .feed { padding-top: 55px; }
}

@media (max-width: 960px) {
  .feed__inner { max-width: 640px; padding: 0 20px; }
  .feed__grid { grid-template-columns: minmax(0, 1fr); }
  .post__inner { padding-left: 20px; padding-right: 20px; }
  .site-footer { padding: 90px 0; }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 640px; }
  .site-footer__contacts { display: flex; flex-direction: column; min-height: 0; padding-left: 5px; }
  .site-footer__title { margin: 0; font-size: 32px; line-height: 30px; }
  .site-footer__groups { margin-top: 30px; }
  .site-footer__group li + li { margin-top: 16px; }
  .site-footer__group--legal { margin-top: 20px; }
  .site-footer__group a, .site-footer__group--legal a { max-width: 295px; }
  .site-footer__blog { position: static; margin-top: 40px; font-size: 18px; line-height: 28px; }
  .site-footer__lead { margin-top: 60px; padding: 25px 26px 30px; }
  .site-footer__lead-title { font-size: 32px; line-height: 30px; }
  .site-footer__lead-text { margin-top: 8px; font-size: 15px; line-height: 18px; }
  .site-footer__lead .lead-form { margin-top: 24px; }
  .lead-form__field { margin-bottom: 8px; }
  .lead-form__input { height: 56px; font-size: 15px; }
  .lead-form__submit { width: 100%; height: 56px; margin-top: 33px; font-size: 15px; }
  .site-footer__brand { position: static; margin: 60px 0 0 5px; }
  .site-footer__logo { width: 160px; height: 22px; }
}

@media (max-width: 640px) {
  .feed { padding: 70px 0 90px; }
  .feed__inner { max-width: none; }
  .feed__more { margin-top: 30px; }
  .card__descr { font-size: 10px; }
  .related { padding: 70px 0 90px; }
  .post__inner { max-width: none; padding-top: 5px; padding-bottom: 70px; }
  .post__title, .feed__title, .related__title { font-size: 28px; }
  .post__text { margin-top: 0; }
  .post__meta { margin-top: 25px; }
  .prose { font-size: 14px; }
  .prose h2, .faq__title { font-size: 26px; }
  .prose h3 { font-size: 24px; }
  .prose h4 { font-size: 20px; }
  .button-green--lg { min-width: 0; width: 100%; max-width: 382px; padding: 0 20px; font-size: 16px; }
  .author-hero .post__inner { padding-top: 40px; }
  .lead-popup { padding: 20px 25px; }
  .lead-popup__panel { width: 100%; padding: 20px 24px; }
  .lead-popup__head { margin-top: 17px; }
  .lead-popup__title { max-width: 204px; font-size: 32px; }
  .lead-popup__icon { width: 64px; height: 62px; }
  .lead-popup__text { max-width: 252px; margin-top: 17px; font-size: 15px; }
  .lead-popup .lead-form { margin-top: 24px; }
  .lead-form--popup .lead-form__submit { margin-top: 34px; }
  .lead-toast { max-width: 280px; }
  #cb-banner-inner { padding: 20px 16px 16px; }
  .cb-banner-row { flex-direction: column; gap: 12px; }
  .cb-banner-actions { width: 100%; align-items: stretch; }
  .cb-btn-accept, .cb-link-settings { text-align: center; }
  #cb-settings-inner { padding: 24px 16px 32px; }
  .cb-settings-title { font-size: 20px; }
  .cb-btn-save { width: 100%; padding: 14px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .site-header__toggle span, .button-green, .site-nav__list a { transition: none; }
}
