@charset "UTF-8";
/*
 * Тема «Конфигуратор» — 1С блог Алексея Крылова.
 * Палитра старой темы, спокойнее: белый фон, тёплая бумага в секциях, графитовый текст, жёлтые кнопки,
 * пастельные плашки рубрик (персик, небо, мята, сирень). Шрифты Wix Madefor Display (заголовки) и Wix Madefor Text.
 * Фирменный приём — «журнал документов»: строки с выделением жёлтым (знак, первый экран, «Журнал статей»).
 */

/* ---------- Шрифты (из npm @fontsource-variable, локально) ---------- */
@font-face { font-family: "Wix Madefor Display"; font-style: normal; font-display: swap; font-weight: 400 800; src: url(../fonts/wix-madefor-display-cyrillic-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Wix Madefor Display"; font-style: normal; font-display: swap; font-weight: 400 800; src: url(../fonts/wix-madefor-display-latin-ext-wght-normal.woff2) format("woff2-variations"); 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: "Wix Madefor Display"; font-style: normal; font-display: swap; font-weight: 400 800; src: url(../fonts/wix-madefor-display-latin-wght-normal.woff2) format("woff2-variations"); 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: "Wix Madefor Text"; font-style: normal; font-display: swap; font-weight: 400 800; src: url(../fonts/wix-madefor-text-cyrillic-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Wix Madefor Text"; font-style: normal; font-display: swap; font-weight: 400 800; src: url(../fonts/wix-madefor-text-latin-ext-wght-normal.woff2) format("woff2-variations"); 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: "Wix Madefor Text"; font-style: normal; font-display: swap; font-weight: 400 800; src: url(../fonts/wix-madefor-text-latin-wght-normal.woff2) format("woff2-variations"); 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; }

@property --fade-l { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --fade-r { syntax: "<length>"; inherits: false; initial-value: 0px; }

/* ---------- Переменные ---------- */
:root {
  --bg: #FFFFFF;
  --paper: #F6F5F0;
  --paper-2: #EFEDE5;
  --ink: #1D1E22;
  --text: #2B2C31;
  --ink-2: #4B4D54;
  --muted: #6F7179;
  --line: #E7E5DD;
  --line-2: #D5D2C6;
  --yellow: #F4D54C;
  --yellow-h: #EBC52E;
  --yellow-d: #D9AE12;
  --yellow-soft: #FCF3C9;
  --peach: #FFE8D8;
  --peach-h: #FFD8BD;
  --sky: #D8F0F5;
  --sky-h: #BFE5EE;
  --mint: #DDF5E4;
  --mint-h: #C3ECD0;
  --lilac: #EBE1FF;
  --lilac-h: #DCCCFF;
  --red: #C8372D;
  --dark: #1D1E22;
  --dark-2: #2A2B30;
  --dark-line: #3A3C42;
  --dark-muted: #A4A6AD;
  --ff: "Wix Madefor Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ff-d: "Wix Madefor Display", "Wix Madefor Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1240px;
  --gut: 16px;
  --header-h: 64px;
  --r: 10px;
  --r-l: 16px;
  --t: .25s ease;
}
@media (min-width: 600px) { :root { --gut: 24px; } }
@media (min-width: 1024px) { :root { --gut: 32px; --header-h: 76px; } }

/* ---------- Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
/* плавная прокрутка к якорям — только после первого действия пользователя (класс из main.js): со smooth с самого начала Chrome
   при обновлении страницы восстанавливает позицию плавной прокруткой от верха — страница «едет» вниз */
html.is-smooth { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html.is-smooth { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--ff); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.nav-lock { overflow: hidden; }
.site-main { flex: 1 0 auto; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--ff-d); font-weight: 700; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--ink); }
.icon { width: 20px; height: 20px; flex: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r); background: var(--yellow); color: var(--ink); font-weight: 600; transition: top var(--t); }
.skip:focus { top: 8px; }
.nowrap { white-space: nowrap; }
.top-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.container { width: 100%; max-width: calc(var(--container) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.dot { margin: 0 8px; color: var(--line-2); }

/* ---------- Кнопки, ссылки, надписи ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border: 1.5px solid var(--yellow); border-radius: var(--r); background: var(--yellow); color: var(--ink); font: 700 16px/1 var(--ff-d); white-space: nowrap; cursor: pointer; transition: background-color var(--t), border-color var(--t), color var(--t); }
.btn:hover, .btn.is-hover { background-color: var(--yellow-h); border-color: var(--yellow-h); color: var(--ink); }
.btn .icon { width: 18px; height: 18px; transition: transform var(--t), color var(--t); }
.btn:hover .icon, .btn.is-hover .icon { transform: translateX(3px); }
.btn--line { background-color: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--line:hover { background-color: var(--ink); border-color: var(--ink); color: #fff; }
.btn--line .icon { color: var(--ink-2); }
.btn--line:hover .icon { color: #fff; transform: none; }
.btn--ghost { background-color: transparent; border-color: var(--dark-line); color: #fff; }
.btn--ghost:hover { background-color: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn--ghost .icon { color: var(--yellow); }
.btn--ghost:hover .icon { color: var(--ink); transform: none; }
.more-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font: 700 16px/1.3 var(--ff-d); white-space: nowrap; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; transition: text-decoration-color var(--t); }
.more-link .icon { width: 18px; height: 18px; transition: transform var(--t); }
.more-link:hover { text-decoration-color: var(--ink); }
.more-link:hover .icon { transform: translateX(4px); }
.kicker { margin-bottom: 10px; color: var(--ink-2); font: 600 13px/1.3 var(--ff); letter-spacing: .08em; text-transform: uppercase; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px; background: var(--yellow); color: var(--ink); font: 700 15px/1 var(--ff-d); }

/* Плашки рубрик: тона палитры старой темы */
.tone--peach { background-color: var(--peach); }
.tone--sky { background-color: var(--sky); }
.tone--mint { background-color: var(--mint); }
.tone--lilac { background-color: var(--lilac); }
a.tone--peach:hover { background-color: var(--peach-h); }
a.tone--sky:hover { background-color: var(--sky-h); }
a.tone--mint:hover { background-color: var(--mint-h); }
a.tone--lilac:hover { background-color: var(--lilac-h); }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 0px); }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__in { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 12px; min-width: 0; flex: none; color: var(--ink); }
.logo__mark { width: 40px; height: 40px; transition: transform var(--t); }
.logo:hover .logo__mark { transform: rotate(-4deg); }
.logo__text { display: flex; flex-direction: column; }
.logo__name { font: 800 21px/1 var(--ff-d); letter-spacing: -.01em; white-space: nowrap; }
.logo__sub { margin-top: 4px; color: var(--muted); font: 500 13px/1.1 var(--ff); white-space: nowrap; }
@media (min-width: 1024px) { .logo__mark { width: 44px; height: 44px; } .logo__name { font-size: 23px; } }
@media (max-width: 399px) { .site-header__in { gap: 10px; } .logo { gap: 8px; } .logo__mark { width: 34px; height: 34px; } .logo__name { font-size: 18px; } .logo__sub { font-size: 12px; } .site-header__actions { gap: 4px; } .hbtn { width: 40px; height: 40px; } }
@media (max-width: 359px) { .logo__sub { display: none; } }
.site-header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.hbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--line-2); border-radius: var(--r); background-color: var(--bg); color: var(--ink); cursor: pointer; transition: background-color var(--t), border-color var(--t); }
.hbtn:hover, .hbtn[aria-expanded="true"] { background-color: var(--yellow); border-color: var(--yellow); }
.hbtn .icon { width: 22px; height: 22px; }

/* Меню: ПК (текущий пункт не выделяется — решение пользователя) */
.nav__head, .nav__search { display: none; }
.menu { list-style: none; }
.menu a { display: block; }
@media (min-width: 1024px) {
  .nav { margin-left: auto; align-self: stretch; display: flex; }
  .site-header__actions { margin-left: 4px; }
  .menu { display: flex; align-items: center; gap: 4px; }
  .menu > li { position: relative; display: flex; align-items: center; align-self: stretch; }
  .menu > li > a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--r); color: var(--ink); font: 600 16px/1.2 var(--ff-d); background-color: transparent; transition: background-color var(--t); }
  .menu > li > a:hover { background-color: var(--paper); }
  .menu > li.menu-item-has-children > a { padding-right: 4px; }
  .menu__toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 40px; padding: 0; border: 0; border-radius: 8px; background-color: transparent; color: var(--muted); cursor: pointer; transition: color var(--t), background-color var(--t); }
  .menu__toggle:hover { color: var(--ink); background-color: var(--paper); }
  .menu__toggle .icon { width: 16px; height: 16px; transition: transform var(--t); }
  .menu > li.is-open > .menu__toggle .icon { transform: rotate(180deg); }
  .menu .sub-menu { position: absolute; left: 0; top: calc(100% - 10px); z-index: 5; min-width: 270px; width: max-content; padding: 8px; list-style: none; background: var(--bg); border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: 0 18px 40px rgba(29, 30, 34, .14); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--t), transform var(--t), visibility var(--t); }
  .menu > li:hover > .sub-menu, .menu > li.is-open > .sub-menu, .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
  .menu > li:last-child .sub-menu, .menu > li:nth-last-child(2) .sub-menu { left: auto; right: 0; }
  .menu .sub-menu a { padding: 10px 14px; border-radius: 8px; color: var(--text); font: 500 16px/1.35 var(--ff); white-space: nowrap; background-color: transparent; transition: background-color var(--t), color var(--t); }
  .menu .sub-menu a:hover { background-color: var(--yellow); color: var(--ink); }
  .hbtn--burger, .nav-overlay { display: none; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .site-header__in { gap: 14px; }
  .logo__sub { display: none; }
  .menu { gap: 0; }
  .menu > li > a { padding: 0 9px; font-size: 15px; }
}

/* Меню: телефон и планшет — панель справа */
@media (max-width: 1023px) {
  .nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-direction: column; width: min(380px, 88vw); height: 100dvh; padding: 0 20px 24px; background: var(--bg); border-left: 1.5px solid var(--ink); overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
  .nav.is-open { transform: none; visibility: visible; transition: transform .3s ease, visibility 0s linear 0s; }
  .nav__head { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); border-bottom: 1px solid var(--line); }
  .nav__title { color: var(--muted); font: 600 13px/1 var(--ff); letter-spacing: .08em; text-transform: uppercase; }
  .nav__close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -6px; border: 1.5px solid var(--line-2); border-radius: var(--r); background-color: var(--bg); color: var(--ink); cursor: pointer; transition: background-color var(--t), border-color var(--t); }
  .nav__close:hover { background-color: var(--yellow); border-color: var(--yellow); }
  .nav__close .icon { width: 24px; height: 24px; }
  .menu { padding: 8px 0 24px; }
  .menu > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
  .menu > li > a { flex: 1; padding: 15px 0; color: var(--ink); font: 700 19px/1.25 var(--ff-d); transition: color var(--t); }
  .menu > li > a:hover { color: var(--ink-2); }
  .menu__toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -6px; border: 0; border-radius: var(--r); background-color: transparent; color: var(--ink); cursor: pointer; transition: background-color var(--t); }
  .menu__toggle:hover { background-color: var(--paper); }
  .menu__toggle .icon { transition: transform var(--t); }
  .menu > li.is-open > .menu__toggle .icon { transform: rotate(180deg); }
  .menu .sub-menu { flex-basis: 100%; height: 0; overflow: hidden; visibility: hidden; list-style: none; transition: height .3s ease, visibility .3s ease; }
  .menu > li.is-open > .sub-menu { visibility: visible; }
  .menu .sub-menu li:last-child { padding-bottom: 12px; }
  .menu .sub-menu a { padding: 8px 0 8px 14px; border-left: 3px solid var(--line); color: var(--text); font-size: 16px; line-height: 1.4; transition: border-color var(--t); }
  .menu .sub-menu a:hover { border-color: var(--yellow); }
  .nav__search { display: block; margin-top: auto; padding-top: 16px; }
  .nav-overlay { position: fixed; inset: 0; z-index: 2; background: rgba(29, 30, 34, .5); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
  .nav-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s linear 0s; }
}

/* Поиск в шапке и поле поиска */
.search-panel { position: absolute; left: 0; right: 0; top: 100%; border-bottom: 1.5px solid var(--ink); background: var(--bg); box-shadow: 0 18px 40px rgba(29, 30, 34, .12); opacity: 0; transform: translateY(-6px); visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
.search-panel.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .2s ease, transform .2s ease, visibility 0s linear 0s; } /* видимость — сразу при открытии (иначе focus() не сработает), с задержкой при закрытии */
.search-panel__in { padding-top: 20px; padding-bottom: 24px; }
.search-panel .sbox { max-width: 760px; }
.sbox { display: flex; gap: 8px; width: 100%; }
.sbox__input { flex: 1; min-width: 0; min-height: 50px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--bg); font-size: 16px; transition: border-color var(--t), box-shadow var(--t); }
.sbox__input:hover { border-color: var(--muted); }
.sbox__input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(244, 213, 76, .55); }
.sbox__input::-webkit-search-cancel-button { cursor: pointer; }
.sbox__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 50px; min-height: 50px; padding: 0 18px; border: 1.5px solid var(--yellow); border-radius: var(--r); background: var(--yellow); color: var(--ink); font: 700 16px/1 var(--ff-d); cursor: pointer; transition: background-color var(--t), border-color var(--t); }
.sbox__btn:hover { background-color: var(--yellow-h); border-color: var(--yellow-h); }
.sbox--compact .sbox__btn { padding: 0; }
@media (max-width: 479px) { .sbox__label { display: none; } .sbox__btn { padding: 0; } }

/* ---------- Секции ---------- */
.section { padding: 56px 0; }
.section--alt { background: var(--paper); }
@media (min-width: 1024px) { .section { padding: 80px 0; } }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
@media (min-width: 1024px) { .section__head { margin-bottom: 36px; } }
.section__title { font: 800 clamp(28px, 3vw, 38px)/1.15 var(--ff-d); letter-spacing: -.015em; }
.section__lead { max-width: 520px; color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.section__foot { display: flex; justify-content: center; margin-top: 32px; }
.block-title { font: 800 26px/1.2 var(--ff-d); letter-spacing: -.01em; }

/* Точки и стрелки каруселей */
.sdots { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.sdots.is-locked, .sdots.swiper-pagination-lock { display: none; }
.sdots__item { position: relative; width: 10px; height: 10px; border-radius: 50%; background-color: var(--line-2); cursor: pointer; transition: width var(--t), border-radius var(--t), background-color var(--t); }
.sdots__item::after { content: ""; position: absolute; inset: -8px -4px; }
.sdots__item:hover { background-color: var(--muted); }
.sdots__item.is-active { width: 28px; border-radius: 5px; background-color: var(--ink); }
.arrows { display: none; gap: 8px; }
.arrows.is-locked { display: none !important; }
@media (hover: hover) and (pointer: fine) and (min-width: 768px) { .arrows { display: flex; } }
.arrow { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1.5px solid var(--ink); border-radius: var(--r); background-color: var(--bg); color: var(--ink); cursor: pointer; transition: background-color var(--t), opacity var(--t); }
.arrow:hover { background-color: var(--yellow); }
.arrow.swiper-button-disabled { opacity: .35; cursor: default; }
.arrow.swiper-button-disabled:hover { background-color: var(--bg); }

/* ---------- Карточки: одна растянутая ссылка, рубрика — своя ссылка поверх ---------- */
.card { position: relative; }
.card:has(:focus-visible) { outline: 2px solid var(--ink); outline-offset: 4px; }
.card :focus-visible { outline: none; }
.stretch { color: inherit; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__catlink { position: relative; z-index: 2; }
.card__cat { display: inline-flex; align-self: flex-start; padding: 4px 10px 6px; border-radius: 6px; color: var(--ink); font: 600 13px/1.25 var(--ff); white-space: nowrap; transition: background-color var(--t); }
.card__title a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-skip-ink: none; transition: text-decoration-color var(--t); }
.card:hover:not(:has(.card__catlink:hover)) .card__title a { text-decoration-color: var(--yellow); }
.card__more .icon { transition: transform var(--t); }
.card:hover:not(:has(.card__catlink:hover)) .card__more .icon { transform: translateX(4px); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.meta__time { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.meta__time .icon { width: 16px; height: 16px; }
.noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--paper); color: var(--line-2); }
.noimg__mark { width: 30%; height: auto; }

/* Карточка с фото сверху: сетка, карусель */
.card--grid, .card--slide { display: flex; flex-direction: column; width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; transition: border-color var(--t), box-shadow var(--t); }
.card--grid:hover, .card--slide:hover { border-color: var(--line-2); box-shadow: 0 16px 34px rgba(29, 30, 34, .09); }
.card--grid .card__media, .card--slide .card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card__media img { transform: scale(1.035); }
.card--grid .card__body, .card--slide .card__body { display: flex; flex-direction: column; align-items: stretch; flex: 1; gap: 10px; padding: 18px 20px 20px; }
.card--grid .card__title, .card--slide .card__title { font: 700 19px/1.3 var(--ff-d); text-wrap: pretty; }
.card--grid .card__excerpt, .card--slide .card__excerpt { color: var(--ink-2); font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.card--grid .meta, .card--slide .meta { margin-top: auto; padding-top: 4px; }
.section--alt .card--grid, .section--alt .card--slide { border-color: var(--bg); }

/* Маленькая карточка: фото слева (похожие статьи) */
.card--mini { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: flex-start; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); transition: border-color var(--t), box-shadow var(--t); }
.card--mini:hover { border-color: var(--line-2); box-shadow: 0 10px 24px rgba(29, 30, 34, .08); }
.card--mini .card__media { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--paper); }
.card--mini .card__body { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; }
.card--mini .card__title { font: 700 16px/1.35 var(--ff-d); text-wrap: pretty; }
@media (max-width: 599px) { .card--mini { grid-template-columns: 72px minmax(0, 1fr); } }

.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 600px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* не больше трёх карточек с фото в ряд: в четырёх колонках длинные слова заголовков («разработчикам») не встают парой */
@media (min-width: 1024px) { .grid { gap: 24px; } .grid--3, .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Карусель (Swiper): до запуска — та же раскладка, что после.
   Обрезается не по краю контейнера, а по краю экрана: заходит на поля (--gut) отрицательным margin, а padding возвращает карточки на место.
   Промежуток --gap = spaceBetween в main.js. На телефоне он равен полю, карточка — на всю ширину контейнера без поля,
   и следующая выглядывает ровно на поле — от края контейнера до края экрана. На планшете и ПК карточки встают целиком,
   а промежуток на 4 px больше поля: следующая начинается за линией обрезки и не просвечивает рамкой при дробном масштабе экрана */
.carousel { --gap: var(--gut); min-width: 0; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); }
.carousel__slide { display: flex; width: calc(100% - var(--gap)); height: auto; }
.carousel .swiper-wrapper { display: flex; }
.carousel:not(.swiper-initialized) .carousel__slide:not(:last-child) { margin-right: var(--gap); }
@media (min-width: 600px) { .carousel { --gap: calc(var(--gut) + 4px); } .carousel__slide { width: calc((100% - var(--gap)) / 2); } }
@media (min-width: 1024px) { .carousel__slide { width: calc((100% - var(--gap) * 2) / 3); } }

/* ---------- Первый экран: H1 и окно «Журнал статей» ---------- */
.hero { padding: 28px 0 0; }
@media (min-width: 1024px) { .hero { padding-top: 30px; } } /* низ окна — у края первого экрана 1920×920; отступ до следующей секции даёт её padding-top */
.hero__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 48px; margin-bottom: 24px; }
@media (min-width: 1024px) { .hero__head { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); align-items: end; margin-bottom: 24px; } }
.hero__h1 { font: 800 clamp(34px, 4vw, 52px)/1.04 var(--ff-d); letter-spacing: -.025em; }
.hero__sub { color: var(--ink-2); font-size: 17px; line-height: 1.5; text-wrap: pretty; }
@media (min-width: 1024px) { .hero__sub { padding-bottom: 6px; } }

.board { border: 1.5px solid var(--ink); border-radius: 20px; background: var(--bg); overflow: hidden; }
.board__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 8px 10px 8px 20px; border-bottom: 1.5px solid var(--ink); background: var(--paper); }
.board__title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; color: var(--ink); font: 700 16px/1.2 var(--ff-d); }
.board__title .icon { width: 22px; height: 22px; }
.board__note { padding-left: 10px; border-left: 1px solid var(--line-2); color: var(--muted); font: 500 14px/1.2 var(--ff); }
.board__nav { display: flex; gap: 6px; }
.board__btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1.5px solid var(--ink); border-radius: var(--r); background-color: var(--bg); color: var(--ink); cursor: pointer; transition: background-color var(--t); }
.board__btn:hover { background-color: var(--yellow); }
.board__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.board__list { display: none; list-style: none; }
.board__view { display: flex; flex-direction: column; min-width: 0; padding: 14px; }
@media (min-width: 600px) { .board__view { padding: 18px; } }
@media (min-width: 1024px) {
  .board__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .board__list { display: flex; flex-direction: column; border-right: 1.5px solid var(--ink); }
  .board__view { padding: 20px; }
}
.board__li { display: flex; flex: 1; border-bottom: 1px solid var(--line-2); }
.board__li:last-child { border-bottom: 0; }
.board__row { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 8px; width: 100%; padding: 18px 22px 20px; border: 0; background-color: transparent; color: var(--ink); text-align: left; cursor: pointer; transition: background-color var(--t); }
.board__row:hover { background-color: var(--paper); }
.board__row.is-active { background-color: var(--yellow); }
.board__row:focus-visible { outline-offset: -4px; }
.board__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font: 500 13px/1.3 var(--ff); font-variant-numeric: tabular-nums; transition: color var(--t); }
.board__cat { padding-left: 10px; border-left: 1px solid currentColor; }
.board__row.is-active .board__meta { color: var(--ink-2); }
.board__name { font: 700 17px/1.35 var(--ff-d); text-wrap: pretty; }
.board__line { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; overflow: hidden; }
.hero__tab-fill { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.hero__swiper { width: 100%; min-width: 0; }
.hero__swiper .swiper-wrapper { display: flex; }
.hero__slide { display: flex; flex-shrink: 0; width: 100%; height: auto; }
.hero__card { display: flex; flex-direction: column; width: 100%; background: var(--bg); }
.hero__media { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--paper); }
@media (min-width: 1024px) { .hero__media { aspect-ratio: 5 / 2; } }
.hero__body { display: flex; flex-direction: column; align-items: stretch; flex: 1; padding: 18px 4px 4px; }
@media (min-width: 1024px) { .hero__body { padding: 20px 4px 0; } }
.hero__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 12px; }
.hero__title { margin-bottom: 10px; font: 800 clamp(22px, 1.9vw, 26px)/1.2 var(--ff-d); letter-spacing: -.01em; text-wrap: balance; }
.hero__excerpt { margin-bottom: 18px; color: var(--ink-2); font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.hero__card .card__more { align-self: flex-start; margin-top: auto; }
.hero__dots { margin-top: 18px; }
@media (min-width: 1024px) { .hero__dots { display: none; } }
@media (max-width: 599px) { .hero__excerpt { font-size: 15px; } .board__bar { padding-left: 14px; } .board__note { display: none; } }

/* ---------- Разделы библиотеки ---------- */
.route { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; list-style: none; }
@media (min-width: 600px) { .route { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .route { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.route__item { display: flex; flex-direction: column; align-items: stretch; min-height: 240px; padding: 24px; border-radius: 18px; transition: transform var(--t), box-shadow var(--t); }
.route__item:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(29, 30, 34, .1); }
.route__item.is-current { outline: 2px solid var(--ink); outline-offset: -2px; }
.route__icon { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; width: 48px; height: 48px; margin-bottom: 22px; border-radius: 12px; background: var(--bg); color: var(--ink); }
.route__icon .icon { width: 24px; height: 24px; }
.route__name { margin-bottom: 10px; font: 800 21px/1.2 var(--ff-d); letter-spacing: -.01em; }
.route__desc { margin-bottom: 22px; color: var(--ink-2); font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.route__count { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; margin-top: auto; color: var(--ink); font: 700 15px/1.2 var(--ff-d); white-space: nowrap; }
.route__count .icon { width: 18px; height: 18px; }
@media (max-width: 599px) { .route__item { min-height: 0; padding: 22px; } .route__icon { margin-bottom: 16px; } }

/* ---------- Журнал статей: строки, как журнал документов ---------- */
.journal { --jcols: 96px 190px minmax(0, 1fr) 84px 92px; border-top: 1.5px solid var(--ink); }
.journal__head { display: none; }
.journal__list { list-style: none; }
.jrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "date time" "main main" "cat more"; align-items: center; gap: 10px 16px; padding: 18px 4px; border-bottom: 1px solid var(--line-2); background-color: transparent; transition: background-color var(--t); }
.jrow:hover { background-color: var(--paper); }
.jrow__date { grid-area: date; color: var(--ink-2); font: 600 14px/1.3 var(--ff); font-variant-numeric: tabular-nums; }
.jrow__cat { grid-area: cat; display: flex; }
.jrow__main { grid-area: main; min-width: 0; }
.jrow__title { margin-bottom: 6px; font: 700 18px/1.35 var(--ff-d); text-wrap: pretty; }
.jrow__excerpt { color: var(--ink-2); font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.jrow__time { grid-area: time; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.jrow__time .icon { width: 16px; height: 16px; }
.jrow__more { grid-area: more; display: inline-flex; align-items: center; justify-self: end; gap: 6px; color: var(--ink); font: 700 15px/1.2 var(--ff-d); white-space: nowrap; }
.jrow__more .icon { width: 18px; height: 18px; }
@media (min-width: 1024px) {
  .journal__head { display: grid; grid-template-columns: var(--jcols); gap: 24px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); color: var(--muted); font: 600 12px/1.2 var(--ff); letter-spacing: .08em; text-transform: uppercase; }
  .jrow { grid-template-columns: var(--jcols); grid-template-areas: "date cat main time more"; align-items: start; gap: 24px; padding: 22px 16px; }
  .jrow__date, .jrow__time { padding-top: 4px; }
  .jrow__more { padding-top: 3px; }
}

/* ---------- Автор на главной ---------- */
.home-author__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 1024px) { .home-author__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; } }
.home-author__name { margin-bottom: 8px; }
.home-author__role { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.home-author__about { margin-bottom: 14px; color: var(--text); font-size: 19px; line-height: 1.6; text-wrap: pretty; }
.home-author__stats { margin-bottom: 24px; color: var(--muted); font-size: 15px; }
.home-author__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 599px) { .home-author__about { font-size: 17px; } }

/* ---------- Шапки страниц, крошки ---------- */
.page-head { padding: 24px 0 32px; }
@media (min-width: 1024px) { .page-head { padding: 28px 0 40px; } }
.page-head__title { font: 800 clamp(30px, 3.6vw, 48px)/1.1 var(--ff-d); letter-spacing: -.02em; }
@media (max-width: 399px) { .page-head__title { font-size: 26px; } } /* «конфиденциальности» одним словом помещается в 288 px */
.page-head__page { color: var(--muted); font-weight: 600; }
.page-head__sub { max-width: 760px; margin-top: 12px; color: var(--ink-2); font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.page-head__lead { max-width: 760px; margin-top: 14px; color: var(--ink-2); font-size: 18px; line-height: 1.6; }
.page-head__lead p + p { margin-top: 10px; }
.crumbs { margin-bottom: 18px; }
.crumbs__list { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; color: var(--muted); font-size: 14px; line-height: 1.45; }
.crumbs__item { display: inline; }
.crumbs__item:not(:last-child)::after { content: "/"; margin: 0 9px; color: var(--line-2); }
.crumbs__item a { color: var(--ink-2); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--t); }
.crumbs__item a:hover { text-decoration-color: var(--ink-2); }

/* ---------- Рубрика, поиск, листинги ---------- */
.cat-head, .search-head, .nf-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.cat-head__desc { max-width: 760px; margin-top: 12px; color: var(--ink-2); font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.cat-head__count { margin-top: 14px; color: var(--muted); font-size: 15px; }
.cat-head__count b { color: var(--ink); font-weight: 700; }
.cat-head__sep { margin: 0 8px; }
.search-head__form { max-width: 760px; margin-top: 20px; }
.nf-head__code { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 5px 10px; border-radius: 6px; background: var(--yellow); color: var(--ink); font: 700 13px/1.2 var(--ff); }
.nf-head__code .icon { width: 16px; height: 16px; }
.listing { padding-top: 28px; padding-bottom: 72px; }
.empty { color: var(--muted); font-size: 17px; }

/* Лента рубрик (Swiper со свайпом) */
.chips { position: relative; margin-bottom: 28px; }
.chips__swiper { min-width: 0; --fade-l: 0px; --fade-r: 0px; transition: --fade-l .25s ease, --fade-r .25s ease; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%); }
.chips__swiper.has-left { --fade-l: 76px; }
.chips__swiper.has-right { --fade-r: 76px; }
.chips__list { list-style: none; }
.chips__item { width: auto; }
html:not(.js) .chips__list { display: flex; flex-wrap: wrap; gap: 8px; }
.js .chips:not(.is-ready) .chips__list { display: flex; flex-wrap: nowrap; gap: 8px; }
.js .chips:not(.is-ready) .chips__swiper { --fade-r: 76px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: var(--r); background-color: var(--bg); color: var(--ink); font: 600 15px/1.2 var(--ff); white-space: nowrap; transition: background-color var(--t), border-color var(--t), color var(--t); }
.chip:hover { border-color: var(--ink); }
.chip.is-current { background-color: var(--ink); border-color: var(--ink); color: #fff; }
.chip__n { display: inline-flex; align-items: center; min-height: 22px; padding: 0 7px; border-radius: 6px; background-color: var(--paper); color: var(--ink-2); font-size: 13px; transition: background-color var(--t), color var(--t); }
.chip.is-current .chip__n { background-color: var(--yellow); color: var(--ink); }
.chips__arrow { position: absolute; top: 0; bottom: 0; z-index: 2; display: none; align-items: center; justify-content: center; aspect-ratio: 1; padding: 0; border: 1.5px solid var(--ink); border-radius: var(--r); background-color: var(--bg); color: var(--ink); cursor: pointer; transition: background-color var(--t), opacity var(--t); }
.chips__arrow:hover { background-color: var(--yellow); }
.chips__arrow .icon { width: 20px; height: 20px; }
.chips__arrow--prev { left: 0; }
.chips__arrow--next { right: 0; }
.chips__arrow.swiper-button-disabled { opacity: 0; pointer-events: none; }
.chips__arrow.swiper-button-lock { display: none !important; }
@media (hover: hover) and (pointer: fine) and (min-width: 768px) { .js .chips .chips__arrow { display: inline-flex; } .js .chips:not(.is-ready) .chips__arrow--prev { opacity: 0; pointer-events: none; } }
@media (max-width: 767px) { .chips { margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); } .chips:not(.is-ready) .chips__list { padding: 0 var(--gut); } }

/* Страницы списка (многоточие — на уровне кнопок) */
.pager { margin-top: 48px; }
.pager__list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; list-style: none; }
.pager__list li { display: flex; }
.pager .page-numbers { display: flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 10px; border: 1.5px solid var(--line-2); border-radius: var(--r); background-color: var(--bg); color: var(--ink); font-weight: 600; transition: background-color var(--t), border-color var(--t); }
.pager a.page-numbers:hover { border-color: var(--ink); background-color: var(--yellow); }
.pager .page-numbers.current { border-color: var(--ink); background-color: var(--ink); color: #fff; }
.pager .page-numbers.dots { border-color: transparent; background-color: transparent; color: var(--muted); }
.pager .page-numbers .icon { width: 20px; height: 20px; }

/* ---------- Статья ---------- */
.post-head { padding-bottom: 28px; }
.plate { display: inline-flex; margin-bottom: 16px; padding: 5px 12px 7px; border-radius: 6px; color: var(--ink); font: 600 14px/1.25 var(--ff); transition: background-color var(--t); }
.post-head__title { max-width: 980px; }
.post-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 18px; color: var(--muted); font-size: 15px; }
.post-head__meta .icon { width: 18px; height: 18px; color: var(--ink-2); }
.post-head__author, .post-head__item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.post-head__author { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color var(--t); }
.post-head__author:hover { text-decoration-color: var(--yellow); }
.post-head__comments { color: var(--ink-2); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color var(--t); }
.post-head__comments:hover { text-decoration-color: var(--ink-2); }
.post-cover { margin-bottom: 36px; aspect-ratio: 16 / 10; border-radius: var(--r-l); overflow: hidden; background: var(--paper); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .post-cover { aspect-ratio: 21 / 9; border-radius: 20px; } }
@media (min-width: 1024px) { .post-cover { margin-bottom: 48px; } }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr); padding-bottom: 72px; }
.post-main { min-width: 0; }
.post-aside { display: none; }
@media (min-width: 1024px) {
  .post-layout { grid-template-columns: minmax(0, 1fr) 290px; grid-template-areas: "main aside"; column-gap: 56px; }
  .post-layout--notoc { grid-template-columns: minmax(0, 1fr) 200px; }
  .post-main { grid-area: main; max-width: 800px; }
  .post-aside { grid-area: aside; display: block; }
  .post-aside__in { position: sticky; top: calc(var(--header-h) + 28px); display: flex; flex-direction: column; gap: 28px; max-height: calc(100vh - var(--header-h) - 56px); }
  .admin-bar .post-aside__in { top: calc(var(--header-h) + 28px + var(--wp-admin--admin-bar--height, 0px)); }
  .toc-m { display: none; }
}
@media (min-width: 1280px) { .post-layout { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 80px; } }
.post-aside__label { margin-bottom: 12px; color: var(--ink-2); font: 600 13px/1.3 var(--ff); letter-spacing: .08em; text-transform: uppercase; }

/* Оглавление: шкала прогресса слева от списка */
.toc { display: flex; flex-direction: column; min-height: 0; padding: 20px 18px 16px 20px; border: 1.5px solid var(--ink); border-radius: var(--r-l); }
.toc__title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--ink); font: 700 15px/1.3 var(--ff-d); }
.toc__title .icon { width: 20px; height: 20px; }
.toc__body { position: relative; display: flex; min-height: 0; }
.toc__rail { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.toc__fill { position: absolute; inset: 0; background: var(--yellow); transform: scaleY(0); transform-origin: top; }
.toc__list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 6px 0 0; list-style: none; overscroll-behavior: contain; }
.toc__link { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: start; gap: 2px; padding: 7px 8px 7px 16px; border-radius: 8px; color: var(--ink-2); font-size: 14px; line-height: 1.4; background-color: transparent; transition: color var(--t), background-color var(--t); }
.toc__link:hover { color: var(--ink); background-color: var(--paper); }
.toc__link.is-active { color: var(--ink); background-color: var(--yellow-soft); font-weight: 600; }
.toc__no { color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.7; font-variant-numeric: tabular-nums; }
.toc__list::-webkit-scrollbar { width: 8px; }
.toc__list::-webkit-scrollbar-track { background: transparent; }
.toc__list::-webkit-scrollbar-thumb { background: var(--line-2); border: 2px solid var(--bg); border-radius: 4px; }
.toc__list::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* Мобильное оглавление */
.toc-m { margin-bottom: 28px; border: 1.5px solid var(--ink); border-radius: var(--r-l); background: var(--bg); interpolate-size: allow-keywords; }
.toc-m__sum { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 16px; color: var(--ink); font: 700 17px/1.2 var(--ff-d); cursor: pointer; list-style: none; border-radius: var(--r-l); background-color: transparent; transition: background-color var(--t); }
.toc-m__sum:hover { background-color: var(--paper); }
.toc-m__sum::-webkit-details-marker { display: none; }
.toc-m__sum .icon { width: 20px; height: 20px; }
.toc-m__n { color: var(--muted); font: 400 15px/1.2 var(--ff); white-space: nowrap; }
.toc-m__chev { margin-left: auto; transition: transform var(--t); }
.toc-m[open] .toc-m__chev { transform: rotate(180deg); }
.toc-m__list { padding: 0 16px 14px; list-style: none; counter-reset: t; }
.toc-m__list li { counter-increment: t; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.4; }
.toc-m__list li::before { content: counter(t, decimal-leading-zero); color: var(--muted); font-weight: 600; font-size: 13px; line-height: 1.75; font-variant-numeric: tabular-nums; }
.toc-m__list a { color: var(--text); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color var(--t); }
.toc-m__list a:hover { text-decoration-color: var(--yellow-d); }
.toc-m::details-content { block-size: 0; overflow: clip; transition: block-size .3s ease, content-visibility .3s ease allow-discrete; }
.toc-m[open]::details-content { block-size: auto; }
.toc-m.is-instant::details-content { transition: none; }

/* Лид «Коротко о статье» */
.post-lead { margin-bottom: 36px; padding: 22px 24px 24px; border-radius: var(--r-l); background: var(--paper); box-shadow: inset 4px 0 0 var(--yellow); }
.post-lead__kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--ink); font: 700 15px/1.3 var(--ff-d); }
.post-lead__kicker .icon { width: 20px; height: 20px; }
.post-lead__text { color: var(--text); font-size: 18px; line-height: 1.65; }
.post-lead__text p + p { margin-top: 10px; }

/* ---------- Текст статьи и страниц ---------- */
.prose { color: var(--text); font-size: 17px; line-height: 1.7; overflow-wrap: break-word; }
@media (min-width: 768px) { .prose { font-size: 18px; } }
.prose > * + * { margin-top: 1.05em; }
.prose p, .prose li { text-wrap: pretty; } /* без висячих слов: «IT-инфраструктуры» рвётся по дефису, и последнее слово остаётся одно */
.prose h2 { margin-top: 1.9em; font: 800 clamp(25px, 2.6vw, 31px)/1.2 var(--ff-d); letter-spacing: -.015em; }
.prose h3 { margin-top: 1.6em; font: 700 clamp(20px, 2vw, 23px)/1.3 var(--ff-d); }
.prose h4 { margin-top: 1.4em; font: 700 19px/1.35 var(--ff-d); }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow-d); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-color var(--t), background-color var(--t); }
.prose a:hover { text-decoration-color: var(--ink); background-color: var(--yellow-soft); }
.prose strong, .prose b { color: var(--ink); font-weight: 700; }
.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose li + li { margin-top: .5em; }
.prose ul > li { position: relative; padding-left: 26px; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--yellow-d); }
.prose ol { counter-reset: li; }
.prose ol > li { position: relative; padding-left: 36px; counter-increment: li; }
.prose ol > li::before { content: counter(li) "."; position: absolute; left: 0; top: 0; min-width: 26px; color: var(--ink); font: 700 1em/1.7 var(--ff-d); }
.prose li > ul, .prose li > ol { margin-top: .5em; }
.prose img { border-radius: 12px; }
.prose .figure { margin-top: 1.6em; margin-bottom: 1.6em; }
.prose .figure img { width: 100%; }
.prose figcaption, .prose .wp-caption-text { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.prose hr { height: 0; border: 0; border-top: 1px solid var(--line-2); margin: 2em 0; }
.prose code { padding: 1px 6px; border-radius: 5px; background: var(--paper-2); font-size: .9em; }
/* Выносные цитаты: без фона, крупный кегль, линии сверху и снизу, кавычки значком, подпись с короткой чертой */
.prose blockquote { position: relative; margin-top: 1.8em; margin-bottom: 1.8em; padding: 30px 0 24px 56px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); color: var(--ink); font: 600 clamp(19px, 2vw, 22px)/1.5 var(--ff-d); }
.prose blockquote::before { content: ""; position: absolute; left: 0; top: 32px; width: 36px; height: 36px; border-radius: 8px; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1E22' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 7H6.5A1.5 1.5 0 0 0 5 8.5V12h4.5v1.5c0 1.6-1 2.8-3 3.3M19 7h-3.5A1.5 1.5 0 0 0 14 8.5V12h4.5v1.5c0 1.6-1 2.8-3 3.3'/%3E%3C/svg%3E") center / 22px no-repeat; }
.prose blockquote p + p { margin-top: .6em; }
.prose blockquote .quote__by { display: flex; align-items: center; gap: 12px; margin-top: 16px; color: var(--muted); font: 500 15px/1.4 var(--ff); }
.prose blockquote .quote__by::before { content: ""; flex: none; width: 24px; height: 2px; background: var(--yellow-d); }
@media (max-width: 599px) { .prose blockquote { padding: 70px 0 22px; } .prose blockquote::before { top: 22px; } }
/* Таблицы */
.table-wrap { margin-top: 1.6em; margin-bottom: 1.6em; overflow-x: auto; border: 1.5px solid var(--ink); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 2px; }
.prose table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--paper); color: var(--ink); font: 700 14px/1.4 var(--ff-d); }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr { transition: background-color var(--t); }
.prose tbody tr:hover { background-color: var(--yellow-soft); }
.table-wrap::-webkit-scrollbar { height: 12px; }
.table-wrap::-webkit-scrollbar-track { background: transparent; margin: 0 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--line-2); background-clip: padding-box; border: 4px solid transparent; border-radius: 6px; }
.table-wrap::-webkit-scrollbar-thumb:hover { background-color: var(--muted); }
@supports not selector(::-webkit-scrollbar) { .table-wrap, .toc__list { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; } }
/* FAQ — аккордеон, плюсик по первой строке вопроса */
.prose .faq { margin-top: 1.2em; border-top: 1.5px solid var(--ink); }
.prose .faq .faq__kicker { margin: 18px 0 4px; }
.faq__item { border-bottom: 1px solid var(--line-2); interpolate-size: allow-keywords; }
.prose .faq__item { margin-top: 0; }
.faq__q { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 0; cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.prose .faq__title { margin: 0; font: 700 clamp(17px, 1.7vw, 19px)/1.45 var(--ff-d); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color var(--t); }
.faq__q:hover .faq__title { text-decoration-color: var(--yellow-d); }
.faq__sign { position: relative; flex: none; width: 28px; height: 28px; margin-top: -1px; border: 1.5px solid var(--line-2); border-radius: 8px; background-color: var(--bg); transition: border-color var(--t), background-color var(--t); }
.faq__sign::before, .faq__sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 1px; background: var(--ink); transition: transform var(--t); }
.faq__sign::after { transform: rotate(90deg); }
.faq__q:hover .faq__sign { border-color: var(--ink); }
.faq__item[open] .faq__sign { background-color: var(--yellow); border-color: var(--yellow); }
.faq__item[open] .faq__sign::after { transform: rotate(0deg); }
.faq__a { padding: 0 48px 22px 0; font-size: 17px; }
.faq__a > * + * { margin-top: .8em; }
.faq__item::details-content { block-size: 0; overflow: clip; transition: block-size .3s ease, content-visibility .3s ease allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }
@media (max-width: 599px) { .faq__a { padding-right: 0; } }

/* «Поделиться» */
.share { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--line-2); border-radius: var(--r); background-color: var(--bg); color: var(--ink); cursor: pointer; transition: background-color var(--t), border-color var(--t), color var(--t); }
.share__btn:hover { background-color: var(--ink); border-color: var(--ink); color: #fff; }
.share__btn .icon { width: 22px; height: 22px; }
.share__tip { position: absolute; left: 0; top: calc(100% + 8px); z-index: 3; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; white-space: nowrap; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity var(--t), transform var(--t), visibility 0s linear .25s; }
.share__tip.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t), transform var(--t), visibility 0s linear 0s; }
.post-share-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 44px; padding: 20px 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line-2); }
.post-share-row__title { color: var(--ink); font: 700 18px/1.3 var(--ff-d); }

/* Автор статьи */
.author-box { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 36px; padding: 24px; border-radius: 18px; background: var(--paper); }
@media (min-width: 600px) { .author-box--photo { grid-template-columns: 72px minmax(0, 1fr); gap: 20px; } }
.author-box__photo img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.author-box__kicker { color: var(--muted); font: 600 12px/1.3 var(--ff); letter-spacing: .08em; text-transform: uppercase; }
.author-box__name { margin-top: 4px; color: var(--ink); font: 800 21px/1.25 var(--ff-d); }
.author-box__role { margin-top: 2px; color: var(--ink-2); font-size: 15px; }
.author-box__about { margin: 12px 0 14px; color: var(--text); font-size: 16px; line-height: 1.6; text-wrap: pretty; }

/* Соседние статьи */
.adjacent { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 36px; }
@media (min-width: 768px) { .adjacent { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.adjacent__empty { display: none; }
@media (min-width: 768px) { .adjacent__empty { display: block; } }
.adjacent__item { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: flex-start; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; transition: border-color var(--t), box-shadow var(--t); }
.adjacent__item:hover { border-color: var(--line-2); box-shadow: 0 10px 24px rgba(29, 30, 34, .08); }
.adjacent__item--next { grid-template-columns: minmax(0, 1fr) 72px; text-align: right; }
.adjacent__item--next .adjacent__media { order: 2; }
.adjacent__media { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--paper); }
.adjacent__body { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; }
.adjacent__label { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; }
.adjacent__item--next .adjacent__label { justify-content: flex-end; }
.adjacent__label .icon { width: 16px; height: 16px; }
.adjacent__title { color: var(--ink); font: 700 16px/1.35 var(--ff-d); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-color var(--t); }
.adjacent__item:hover .adjacent__title { text-decoration-color: var(--yellow); }

/* Похожие */
.related { margin-top: 48px; }
.related .block-title { margin-bottom: 18px; }
.related__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; } /* одной колонкой: в двух заголовки не помещаются без висячих слов */

/* Комментарии: сначала форма, под ней список */
.comments { margin-top: 56px; padding-top: 28px; border-top: 1.5px solid var(--ink); }
.comments__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comments__lead { margin-bottom: 20px; color: var(--ink-2); font-size: 16px; }
.comments__form { padding: 24px; border-radius: 18px; background: var(--paper); }
/* отступы по смыслу: шапка → текст меньше всего, вопрос → ответ автора больше, разные комментарии — дальше всего */
.clist { list-style: none; margin-top: 28px; }
.clist__item + .clist__item { margin-top: 36px; }
@media (min-width: 768px) { .clist__item + .clist__item { margin-top: 40px; } }
.clist--replies { margin-top: 16px; padding-left: 24px; border-left: 3px solid var(--yellow); }
.clist--replies .clist__item + .clist__item { margin-top: 24px; }
@media (min-width: 768px) { .clist--replies { margin-left: 64px; } }
.comment { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: flex-start; }
.comment__ava { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--paper-2); color: var(--ink); font: 800 17px/1 var(--ff-d); }
.comment--author .comment__ava { background: var(--yellow); }
.comment__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 6px; }
.comment__name { color: var(--ink); font: 700 16px/1.3 var(--ff-d); }
.comment__badge { padding: 3px 8px; border-radius: 6px; background: var(--yellow); color: var(--ink); font: 700 12px/1.2 var(--ff); }
.comment__date { color: var(--muted); font-size: 14px; }
.comment__text { color: var(--text); font-size: 16px; line-height: 1.6; }
.comment__text p + p { margin-top: 8px; }
@media (max-width: 599px) {
  .comment { grid-template-columns: 40px minmax(0, 1fr); gap: 0 12px; }
  .comment__ava { width: 40px; height: 40px; border-radius: 10px; font-size: 15px; grid-row: 1; }
  .comment__body { display: contents; }
  .comment__head { grid-column: 2; align-self: center; margin-bottom: 0; }
  .comment__text { grid-column: 1 / -1; margin-top: 10px; }
}

/* ---------- Формы ---------- */
.field { position: relative; }
.field__label { display: block; margin-bottom: 6px; color: var(--ink); font: 600 14px/1.3 var(--ff); }
.field__req { margin-left: 2px; color: var(--red); }
.field__input { display: block; width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r); background-color: var(--bg); color: var(--text); font-size: 16px; line-height: 1.4; transition: border-color var(--t), box-shadow var(--t); }
.field__input::placeholder { color: #9A9CA3; }
.field__input:hover { border-color: var(--muted); }
.field__input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(244, 213, 76, .55); }
.field__input--area { min-height: 140px; resize: vertical; }
.field.is-error .field__input { border-color: var(--red); }
.field.is-error .field__input:focus { box-shadow: 0 0 0 3px rgba(200, 55, 45, .18); }
/* ошибка — только рамка поля; текст ошибки — для экранного диктора */
.field__err { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.check { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.check__input { position: absolute; left: 0; top: 0; z-index: 1; width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.check__box { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; border: 1.5px solid var(--line-2); border-radius: 7px; background-color: var(--bg); color: transparent; transition: background-color var(--t), border-color var(--t), color var(--t); }
.check__box .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.check:hover .check__box { border-color: var(--ink); }
.check__input:checked + .check__box { background-color: var(--ink); border-color: var(--ink); color: var(--yellow); }
.check__input:focus-visible + .check__box { outline: 2px solid var(--ink); outline-offset: 2px; }
.field.is-error .check__box { border-color: var(--red); }
.check__text { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.check__text a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow-d); text-underline-offset: 3px; transition: text-decoration-color var(--t); }
.check__text a:hover { text-decoration-color: var(--ink); }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; display: flex; cursor: pointer; }
.pick__input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pick__box { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r); background-color: var(--bg); transition: border-color var(--t), background-color var(--t); }
.pick:hover .pick__box { border-color: var(--muted); }
.pick__input:checked + .pick__box { border-color: var(--ink); background-color: var(--yellow-soft); }
.pick__input:focus-visible + .pick__box { outline: 2px solid var(--ink); outline-offset: 2px; }
.pick__title { color: var(--ink); font: 700 15px/1.3 var(--ff-d); white-space: nowrap; }
.pick__text { color: var(--muted); font-size: 13px; line-height: 1.4; }

/* Форма комментария */
.sform { display: flex; flex-direction: column; gap: 16px; }
.sform__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 600px) { .sform__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sform__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.sform__foot .field--check { flex: 1 1 320px; }
.comments__form .field__input { border-color: var(--line-2); }

/* Окно «Спасибо» */
.thanks { width: min(420px, calc(100vw - 32px)); margin: auto; padding: 0; border: 1.5px solid var(--ink); border-radius: 20px; background: var(--bg); color: var(--text); box-shadow: 0 30px 60px rgba(29, 30, 34, .3); }
.thanks[open] { animation: dlg-in .25s ease; }
.thanks.is-closing { animation: dlg-out .2s ease forwards; }
.thanks::backdrop { background: rgba(29, 30, 34, .55); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dlg-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px) scale(.98); } }
.thanks__in { display: flex; flex-direction: column; align-items: center; padding: 32px 28px 28px; text-align: center; }
.thanks__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px; background: var(--yellow); color: var(--ink); }
.thanks__icon .icon { width: 30px; height: 30px; stroke-width: 2.2; }
.thanks__title { margin-top: 16px; color: var(--ink); font: 800 24px/1.2 var(--ff-d); }
.thanks__text { margin-top: 8px; color: var(--muted); }
.thanks__ok { margin-top: 22px; min-width: 160px; }

/* Ещё в блоге (карусель под статьёй) */
.more .section__head { margin-bottom: 24px; }

/* ---------- Об авторе ---------- */
.about-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.profile { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 28px; }
.profile__photo img { width: 112px; height: 112px; border-radius: 20px; object-fit: cover; }
@media (max-width: 599px) { .profile__photo img { width: 80px; height: 80px; border-radius: 16px; } }
.profile__body { flex: 1 1 320px; min-width: 0; }
.profile__name { margin-top: 10px; color: var(--ink); font: 800 22px/1.25 var(--ff-d); }
.profile__role { margin-top: 4px; color: var(--ink-2); font-size: 17px; line-height: 1.5; }
.about-main { padding-top: 40px; padding-bottom: 72px; }
@media (min-width: 1024px) { .about-main { padding-top: 56px; padding-bottom: 96px; } }

/* вводный абзац и окно «Карточка автора» */
.about-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1024px) { .about-intro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; } }
.about-intro--plain { max-width: 520px; }
.about-lead { color: var(--ink); font: 600 clamp(20px, 2.1vw, 25px)/1.5 var(--ff-d); text-wrap: pretty; }
.about-lead strong { font-weight: 800; }
.about-card { border: 1.5px solid var(--ink); border-radius: 20px; background: var(--bg); overflow: hidden; }
.about-card__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; min-height: 56px; padding: 10px 20px; border-bottom: 1.5px solid var(--ink); background: var(--paper); }
.about-card__title { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 700 16px/1.2 var(--ff-d); }
.about-card__title .icon { width: 22px; height: 22px; }
.about-card__note { color: var(--muted); font-size: 14px; }
.about-card__nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.about-card__num { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.about-card__num:nth-child(odd) { border-right: 1px solid var(--line-2); }
.about-card__nums:last-child .about-card__num:nth-last-child(-n+2) { border-bottom: 0; }
.about-card__num dd { color: var(--ink); font: 800 clamp(28px, 2.6vw, 34px)/1.05 var(--ff-d); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.about-card__num dt { color: var(--ink-2); font-size: 14px; line-height: 1.35; text-wrap: balance; }
.about-card__rows { padding: 4px 20px 6px; }
.about-card__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; }
.about-card__row + .about-card__row { border-top: 1px dashed var(--line-2); }
@media (min-width: 600px) { .about-card__row { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; } }
.about-card__row dt { color: var(--muted); font: 600 12px/1.9 var(--ff); letter-spacing: .08em; text-transform: uppercase; }
.about-card__row dd { color: var(--ink); font-size: 15px; line-height: 1.5; text-wrap: pretty; }

/* разделы: заголовок слева, текст справа */
.about-sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
@media (min-width: 1024px) {
  .about-sec { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; margin-top: 64px; padding-top: 56px; }
  .about-sec__head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
.about-sec__num { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 28px; margin-bottom: 14px; padding: 0 10px; border: 1.5px solid var(--ink); border-radius: 14px; color: var(--ink); font: 800 13px/1 var(--ff-d); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.about-sec__title { font: 800 clamp(26px, 2.6vw, 34px)/1.15 var(--ff-d); letter-spacing: -.015em; }
.about-sec__body { min-width: 0; max-width: 760px; }
.about-prose { font-size: 18px; }
@media (max-width: 599px) { .about-prose { font-size: 17px; } }
.about-prose--plain { max-width: 760px; margin-top: 40px; }
.hl { padding: 0 .1em; background: linear-gradient(transparent 56%, var(--yellow) 56%); color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* плитки тем под разделом о статьях (без ссылок) */
.about-points { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 28px; list-style: none; }
@media (min-width: 600px) { .about-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.about-point { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--paper); }
.about-point__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 8px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--bg); color: var(--ink); }
.about-point__icon .icon { width: 20px; height: 20px; }
.about-point__title { color: var(--ink); font: 700 17px/1.3 var(--ff-d); }
.about-point__text { color: var(--ink-2); font-size: 15px; line-height: 1.5; text-wrap: pretty; }
@media (max-width: 599px) {
  .about-point { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 14px; padding: 16px; }
  .about-point__icon { grid-row: span 2; margin-bottom: 0; }
}

/* итог тёмной плашкой со ссылками */
.about-close { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 56px; padding: 28px; border-radius: 20px; background: var(--dark); color: #E9E9EC; }
@media (min-width: 1024px) { .about-close { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 36px; margin-top: 72px; padding: 40px 44px; } }
.about-close__icon { display: flex; color: var(--yellow); }
.about-close__icon .icon { width: 40px; height: 40px; }
@media (min-width: 1024px) { .about-close__icon { align-self: start; } .about-close__icon .icon { width: 48px; height: 48px; } }
.about-close__text { max-width: 720px; font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.about-close__text strong { color: #fff; }
.about-close .hl { background: none; color: var(--yellow); }
.about-close__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1024px) { .about-close__actions { flex-direction: column; align-items: stretch; } }
.about-close .btn--line { border-color: var(--dark-line); color: #fff; }
.about-close .btn--line .icon { color: var(--yellow); }
.about-close .btn--line:hover { background-color: #fff; border-color: #fff; color: var(--ink); }
.about-close .btn--line:hover .icon { color: var(--ink); }

/* ---------- Контакты: форма-документ и колонка справа ---------- */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 72px; }
@media (min-width: 1024px) { .contacts { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; } .contacts__side { position: sticky; top: calc(var(--header-h) + 24px); } }
.contacts__main { min-width: 0; }
.docform { border: 1.5px solid var(--ink); border-radius: 20px; background: var(--bg); overflow: hidden; }
.docform__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; min-height: 56px; padding: 10px 20px; border-bottom: 1.5px solid var(--ink); background: var(--paper); }
.docform__title { display: flex; align-items: center; gap: 10px; font: 800 19px/1.25 var(--ff-d); }
.docform__title .icon { width: 22px; height: 22px; }
.docform__date { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.docform__body { display: flex; flex-direction: column; gap: 18px; padding: 22px 20px; }
.docform__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; border: 0; }
.docform__label { color: var(--ink); font: 600 14px/1.3 var(--ff); }
.docform__row--topics .docform__label { margin-bottom: 4px; }
.docform .picks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 600px) { .docform .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.docform .pick__box { flex: 1; }
.docform__opt { display: block; margin-top: 2px; color: var(--muted); font-weight: 400; font-size: 13px; }
.docform__ctl { min-width: 0; }
@media (min-width: 768px) {
  .docform__body { padding: 26px 28px; }
  .docform__row { grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: start; }
  .docform__label { margin-bottom: 0; padding-top: 15px; }
  .docform__row--topics .docform__label { margin-bottom: 0; padding-top: 12px; }
}
.docform__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 18px 20px; border-top: 1px solid var(--line-2); background: var(--paper); }
@media (min-width: 768px) { .docform__foot { padding: 20px 28px; } }
.docform__foot .field--check { flex: 1 1 300px; }
.contacts__side { display: flex; flex-direction: column; gap: 16px; }
.contacts__card { padding: 22px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--bg); }
.contacts__card--mail { border-color: var(--yellow); background: var(--yellow-soft); }
.contacts__kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--ink-2); font: 600 13px/1.3 var(--ff); letter-spacing: .08em; text-transform: uppercase; }
.contacts__kicker .icon { width: 18px; height: 18px; color: var(--ink); }
.contacts__mail { margin-bottom: 8px; font: 800 22px/1.25 var(--ff-d); overflow-wrap: anywhere; }
.contacts__mail a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow-d); text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color var(--t); }
.contacts__mail a:hover { text-decoration-color: var(--ink); }
.contacts__title { margin-bottom: 8px; font: 800 20px/1.25 var(--ff-d); }
.contacts__text { margin-bottom: 14px; color: var(--ink-2); font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.contacts__card--mail .btn--line { background-color: var(--bg); }
.contacts__card--mail .btn--line:hover { background-color: var(--ink); }
.contacts__sub { margin: 18px 0 8px; color: var(--muted); font: 600 12px/1.3 var(--ff); letter-spacing: .08em; text-transform: uppercase; }
.contacts__list { list-style: none; }
.contacts__list li + li { margin-top: 2px; }
.contacts__list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 8px; color: var(--ink); font: 600 15px/1.35 var(--ff); background-color: transparent; transition: background-color var(--t); }
.contacts__list a:hover { background-color: var(--paper); }
.contacts__dot { flex: none; width: 12px; height: 12px; border-radius: 4px; }

/* ---------- Обычные страницы (политика) ---------- */
.page-body { max-width: calc(840px + var(--gut) * 2); padding-bottom: 72px; }

/* ---------- Подвал ---------- */
.site-footer { margin-top: auto; background: var(--dark); color: var(--dark-muted); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 36px; }
@media (min-width: 600px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-top: 64px; } .site-footer__brand { grid-column: auto; } }
.logo--footer { color: #fff; }
.site-footer__text { max-width: 400px; margin-top: 18px; font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.fcol__title { margin-bottom: 14px; color: #fff; font: 700 16px/1.3 var(--ff-d); }
.fcol__list { list-style: none; }
.fcol__list li + li { margin-top: 8px; }
.fcol__list a { color: var(--dark-muted); font-size: 15px; line-height: 1.45; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color var(--t), text-decoration-color var(--t); }
.fcol__list a:hover { color: #fff; text-decoration-color: var(--yellow); }
.fauthor { display: flex; align-items: flex-start; gap: 12px; }
.fauthor__ava { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--yellow); color: var(--ink); font: 800 16px/1 var(--ff-d); }
.fauthor__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fauthor__name { color: #fff; font: 700 16px/1.3 var(--ff-d); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color var(--t); }
.fauthor__name:hover { text-decoration-color: var(--yellow); }
.fauthor__role { font-size: 14px; line-height: 1.45; }
.site-footer__write { margin-top: 18px; }
.site-footer .btn--ghost { transition: background-color var(--t), border-color var(--t), color var(--t); }
.site-footer__bottom { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid var(--dark-line); font-size: 14px; }
.site-footer__copy { margin-right: auto; }
.site-footer__policy { color: var(--dark-muted); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color var(--t), text-decoration-color var(--t); }
.site-footer__policy:hover { color: #fff; text-decoration-color: var(--yellow); }
.totop { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--dark-line); border-radius: var(--r); color: #fff; font: 600 14px/1 var(--ff); background-color: transparent; transition: background-color var(--t), border-color var(--t), color var(--t); }
.totop:hover { background-color: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.totop .icon { width: 18px; height: 18px; }
/* до 767 px «Наверх» — квадрат по центру разделительной линии подвала */
@media (max-width: 767px) {
  .site-footer__bottom { flex-direction: column; align-items: flex-start; padding-top: 38px; }
  .totop { position: absolute; left: 50%; top: 0; width: 44px; height: 44px; min-height: 0; padding: 0; justify-content: center; transform: translate(-50%, -50%); background-color: var(--dark); }
  .totop span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* правило «сосед после заголовка» в тексте (.prose h3 + *) не должно сдвигать плюсик FAQ */
.prose .faq__q .faq__sign { margin-top: -1px; }
