/* INVENTO — страница статьи (pages/articles.php): зоны и швы, сетки раскладки, шапка, секции страницы и блоки тела.
   Страницу собирает раскладка (page-assets/article/config/layout.php): классы зон и сеток ставит article_render(),
   секции — page-assets/article/sections/*.php, блоки тела (.a-*) — page-assets/article/blocks/*.php.
   Токены и общие элементы — base.css; эксперт — global/expert.css; карточка объекта — global/property-card.css;
   карточка статьи («Материалы по теме») — global/article-card.css; лайтбокс и карта — global/lightbox.css, global/map.css. */

/* ══════════ 0. Общее страницы ══════════ */
.ap { --hdr-c: 64px; --col: 760px; --seam: clamp(150px, 16vw, 230px); }
/* Контейнер статьи уже общего: колонка чтения 760 + боковая 320 */
.ap main { --container: 1200px; --bleed: max(var(--gutter), (100vw - var(--container)) / 2); }
html:has(> body.ap) { scroll-padding-top: calc(64px + 28px); }
.ap .section { padding-block: 0; }
.ap .h2 { font-size: clamp(26px, 3.2vw, 46px); }
.ap .sec-head { margin-bottom: clamp(24px, 3.4vw, 44px); }
.a-dash { margin: 0 .3em; opacity: .6; }

/* ══════════ 1. Зоны: фон и шов — по паре «тон до → тон после» (data-after, data-tone); шов — «Горизонт» (base.css) ══════════ */
.az { padding-bottom: clamp(64px, 8vw, 120px); }
.az--dusk { padding-top: calc(var(--header-h) + 6px); padding-bottom: clamp(36px, 5vw, 64px);
  /* верхний слой гасит свечение к нижнему краю: следующая зона начинается с чистого тёмного, без видимой границы */
  background: linear-gradient(180deg, rgb(12 22 29 / 0) calc(100% - 200px), var(--ink) 100%), radial-gradient(52% 460px at 88% -6%, rgb(226 183 59 / .26), transparent 70%), radial-gradient(46% 420px at -4% 96%, rgb(62 98 120 / .5), transparent 70%), var(--ink); }
/* светлая после тёмной — солнце садится в море */
.az[data-tone="paper"][data-after="ink"] { padding-top: calc(var(--seam) * .82); --hz-y: calc(var(--seam) * .6); --hz-x: 84%; background: var(--hz-sunset); }
/* тёмная после светлой — силуэт города */
.az[data-tone="ink"][data-after="paper"] { padding-top: calc(var(--seam) * 1.25); --hz-from: var(--paper); --hz-y: calc(var(--seam) * 1.02); background: var(--hz-city); }
/* солнечная после светлой и после тёмной— пляж с пальмами */
.az[data-tone="sun"][data-after="paper"] { --hz-from: var(--paper); --hz-y: calc(var(--seam) * .5 - 24px); background: var(--hz-beach); }
.az[data-tone="sun"][data-after="ink"] { padding-top: var(--seam); --hz-y: calc(var(--seam) * .8); background: var(--hz-beach); }
.az[data-tone="sun"] { padding-bottom: 0; }
/* тёмная после солнечной — город на закате перед подвалом */
.az[data-tone="ink"][data-after="sun"] { padding-bottom: 0; --hz-from: var(--sun); --hz-y: var(--seam); background: var(--hz-city); }
.az[data-tone="ink"][data-after="sun"].az--empty { min-height: 280px; }
/* светлая после солнечной; одинаковые тона подряд — без шва */
.az[data-tone="paper"][data-after="sun"] { padding-top: var(--seam); --hz-from: var(--sun); --hz-y: calc(var(--seam) * .7); background: var(--hz-sea); }
.az[data-tone="paper"][data-after="paper"], .az[data-tone="paper"]:not([data-after]) { background: var(--paper); }
.az[data-tone="ink"][data-after="ink"] { background: var(--ink); }
.az[data-tone="paper"]:not([data-after]) { padding-top: calc(var(--header-h) + 40px); }
.az--missing { min-height: 70vh; }
/* Шапка с обложкой-фоном сама занимает зону от верха страницы: фото уходит под шапку сайта, низ фото тает в тёмный шов */
.az--dusk:has(.ahero--photo) { padding-top: 0; padding-bottom: 0; }
.az--dusk:has(.ahero--photo) + .az[data-tone="paper"] { padding-top: calc(var(--seam) * .62); --hz-y: calc(var(--seam) * .46); }

/* ══════════ 2. Сетки рядов ══════════ */
.agrid { display: grid; grid-template-columns: minmax(0, 1fr); }
.agrid + .agrid { margin-top: clamp(48px, 6vw, 84px); }
.agrid__main { min-width: 0; }
.agrid__main > * + * { margin-top: clamp(28px, 3.6vw, 44px); }
.agrid--text > .agrid__main, .agrid--rail > .agrid__main { width: 100%; max-width: var(--col); }
.agrid__aside { display: none; }
@media (min-width: 1100px) {
  .agrid--rail { grid-template-columns: minmax(0, var(--col)) minmax(0, 320px); justify-content: space-between; align-items: start; }
  .agrid__aside { display: block; position: sticky; top: calc(var(--hdr-c) + 24px); }
  .agrid__sticky { display: grid; gap: 14px; }
  .agrid--rail .atoc--fold { display: none; }
}
/* Раскладки без боковой колонки: колонка чтения и шапка — по центру; широкие блоки тела выходят за колонку */
.ap--brief .agrid--text > .agrid__main, .ap--update .agrid--text > .agrid__main, .ap--longread .agrid--text > .agrid__main { margin-inline: auto; }
.ap--brief .ahero__in > *, .ap--update .ahero__in > * { width: 100%; max-width: var(--col); margin-inline: auto; }
@media (min-width: 1100px) { .ap--longread .abody, .ap--brief .abody { --wide: 120px; } }

/* ══════════ 3. Шапка статьи ══════════ */
.acrumbs { padding-top: 12px; }
.acrumbs__here { min-width: 0; }
.acrumbs__here span { display: inline-block; max-width: min(46ch, 60vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.ahero { position: relative; }
.ahero__in { display: flex; flex-direction: column; gap: clamp(18px, 2.6vw, 34px); }
.ahero__copy { display: grid; gap: clamp(14px, 1.6vw, 20px); justify-items: start; max-width: 960px; min-width: 0; }
.ahero__label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ahero__cat { font: 800 12px/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.ahero__title { font: 700 clamp(27px, 4.4vw, 60px)/1.07 var(--font-display); letter-spacing: -.035em; color: var(--paper); text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.ahero__lead { max-width: 64ch; font: 500 clamp(17px, 1.5vw, 21px)/1.55 var(--font-body); color: rgb(241 236 233 / .88); text-wrap: pretty; }
.ahero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 6px; }
.ahero__author { --ex-ring: rgb(241 236 233 / .2); }
.ahero__facts { display: flex; flex-wrap: wrap; gap: 8px 20px; font: 700 14px/1.3 var(--font-body); color: rgb(241 236 233 / .82); }
.ahero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.ahero__facts .i { width: 16px; height: 16px; color: var(--sun); }
.ahero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ahero__chips .chip { --chip-bg: rgb(241 236 233 / .07); --chip-bd: rgb(241 236 233 / .16); min-height: 36px; padding: 0 14px; font-size: 13px; }
.ahero__chips .chip .i { width: 14px; height: 14px; color: var(--sun); }
.ahero__chips .chip:hover .i { color: var(--ink); }
.ahero--plain .ahero__in { padding-bottom: 4px; }

/* Обложка — фон всей шапки, как первый экран главной (home.css, .hero): фото под шапкой сайта, затемнение, текст поверх.
   Крошки — сверху, текст — внизу; на телефоне между ними окно фото не меньше четверти экрана, ниже текст на тёмном.
   photo — высота по тексту, не меньше ~80 % экрана; tall (лонгрид) — на весь экран */
.ahero--photo { isolation: isolate; display: flex; min-height: clamp(560px, 82svh, 880px); padding: calc(var(--header-h) + 6px) 0 clamp(48px, 6vw, 96px); }
.ahero--tall { min-height: max(640px, 100svh); }
.ahero--photo .ahero__in { justify-content: space-between; gap: max(40px, 24svh); }
.ahero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--ink); }
.ahero__bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ahero__bg .photo-credit { --credit-x: var(--gutter); --credit-y: 14px; z-index: 3; }
.ahero__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgb(12 22 29 / .62) 0%, rgb(12 22 29 / .12) 16%, rgb(12 22 29 / .3) 34%, rgb(12 22 29 / .84) 56%, rgb(12 22 29 / .94) 80%, var(--ink) 100%); }
.ahero--photo .ahero__title, .ahero--photo .ahero__lead { text-shadow: 0 2px 30px rgb(12 22 29 / .55); }
@media (min-width: 1024px) {
  .ahero--photo .ahero__in { gap: 40px; }
  .ahero__shade { background:
    linear-gradient(90deg, rgb(12 22 29 / .88) 0%, rgb(12 22 29 / .72) 38%, rgb(12 22 29 / .3) 68%, rgb(12 22 29 / .06) 92%),
    linear-gradient(180deg, rgb(12 22 29 / .6) 0%, rgb(12 22 29 / 0) 22%, rgb(12 22 29 / 0) 50%, rgb(12 22 29 / .8) 80%, var(--ink) 94%); }
}
.static .ahero--photo { min-height: 760px; }

/* Плавающая кнопка мессенджеров не спорит с первым экраном */
.ap .fab { transition: opacity .25s, visibility 0s .25s; }
.js:not(.ap-past) .ap .fab { opacity: 0; visibility: hidden; pointer-events: none; }

/* ══════════ 4. Секции над телом и боковая колонка ══════════ */
/* Мини-карточка эксперта: в боковой колонке — тёмная, под шапкой — светлая строка, наезжает на шов */
.aexpert--mini { padding: 18px; border-radius: 24px; background: var(--ink); box-shadow: var(--shadow-lift); }
.aexpert--mini .ex-avatar { --ex-ring: rgb(241 236 233 / .2); }
.aexpert--strip { position: relative; z-index: 3; margin-top: calc(var(--seam) * -.6); padding: 14px 16px; border-radius: 24px; background: var(--white); box-shadow: var(--shadow-lift); }
.aexpert--strip .icon-btn { --ib-bg: var(--paper); --ib-fg: var(--ink); }

/* Оглавление */
.atoc__list { counter-reset: toc; display: grid; }
.atoc__list a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; min-height: 40px; padding: 9px 10px; border-radius: 12px; font: 700 14px/1.35 var(--font-body); color: var(--navy-3); counter-increment: toc; transition: color var(--dur), background-color var(--dur); }
.atoc__list a::before { content: counter(toc, decimal-leading-zero); padding-top: 2px; font: 800 11px/1.3 var(--font-body); letter-spacing: .04em; color: var(--bronze); }
.atoc__list a:hover { color: var(--ink); background: var(--paper); }
.atoc__list a[aria-current="true"] { color: var(--ink); background: rgb(244 205 84 / .4); }
.atoc--rail { padding: 18px 12px 12px; border-radius: 24px; background: var(--white); box-shadow: var(--shadow-paper); }
.atoc__title { padding: 0 10px 8px; font: 800 11px/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); }
.atoc--rail .atoc__list { max-height: min(46vh, 420px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.atoc--fold { border-radius: 20px; background: var(--white); box-shadow: var(--shadow-paper); }
.atoc--fold summary { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 18px; list-style: none; cursor: pointer; border-radius: 20px; font: 800 15px/1 var(--font-body); }
.atoc--fold summary::-webkit-details-marker { display: none; }
.atoc--fold summary > .i:first-child { width: 18px; height: 18px; color: var(--bronze); }
.atoc--fold summary b { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--paper); font-size: 12px; }
.atoc__chev { margin-left: auto; transition: rotate .3s var(--ease-out); }
.atoc--fold[open] .atoc__chev { rotate: 180deg; }
.atoc--fold nav { padding: 0 8px 10px; }

/* CTA боковой колонки */
.arail-cta { display: grid; gap: 10px; }
.arail-cta__note { display: flex; align-items: center; justify-content: center; gap: 6px; font: 600 12.5px/1.3 var(--font-body); color: var(--muted); }
.arail-cta__note .i { width: 14px; height: 14px; color: var(--bronze); }

/* Главное коротко */
.akey { padding: clamp(20px, 3vw, 30px); border-radius: 28px; background: var(--g-sun-r); box-shadow: var(--shadow-lift); rotate: -.8deg; transition: rotate .5s var(--ease-out); }
.akey:hover, .akey:focus-within { rotate: 0deg; }
.akey__list { display: grid; gap: 12px; margin-top: 16px; }
.akey__list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; font: 700 16px/1.45 var(--font-body); }
.akey__n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--sun); font: 800 12px/1 var(--font-display); }

/* Плашка устаревшего гида */
.astale { display: grid; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 24px; background: var(--ink); box-shadow: var(--shadow-lift); }
.astale__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--sun); color: var(--ink); rotate: -6deg; }
.astale__title { font: 700 17px/1.2 var(--font-display); letter-spacing: -.02em; }
.astale__copy p + p { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
@media (min-width: 700px) { .astale { grid-template-columns: auto minmax(0, 1fr) auto; } }

/* Карточка кейса: «паспорт» сделки со штампом */
.acase { position: relative; padding: clamp(22px, 3vw, 32px); border-radius: 28px; background: var(--white); box-shadow: var(--shadow-paper); }
.acase::before { content: ""; position: absolute; inset: 8px; border: 1.5px dashed rgb(12 22 29 / .14); border-radius: 22px; pointer-events: none; }
.acase__stamp { position: absolute; right: 22px; top: -18px; display: grid; justify-items: center; gap: 2px; padding: 10px 14px; border: 2px dashed var(--ink); border-radius: 10px; background: var(--sun); color: var(--ink); font: 700 11px/1 var(--font-body); letter-spacing: .08em; rotate: 6deg; box-shadow: 0 10px 20px -10px rgb(0 0 0 / .5); }
.acase__stamp b { font: 800 13px/1 var(--font-display); letter-spacing: 0; text-transform: uppercase; }
.acase__grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 18px 0 0; }
.acase__wide { grid-column: 1 / -1; }
.acase__grid dt { font: 800 11px/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); }
.acase__grid dd { margin: 6px 0 0; font: 600 16px/1.45 var(--font-body); }
.acase__num { font: 800 clamp(19px, 2vw, 26px)/1.1 var(--font-display) !important; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.acase__num .price { font: inherit; }
.acase__grid .is-result dd { display: inline; font-weight: 800; background: linear-gradient(transparent 58%, rgb(244 205 84 / .75) 58%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.acase__project { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px 16px 8px 8px; border-radius: 18px; background: var(--paper); transition: background-color var(--dur); }
.acase__project:hover { background: var(--sand); }
.acase__thumb { display: block; width: 72px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--night); }
.acase__thumb img { width: 100%; height: 100%; object-fit: cover; }
.acase__ptext { display: grid; gap: 3px; }
.acase__ptext b { font: 700 16px/1.2 var(--font-display); letter-spacing: -.02em; }
.acase__ptext small { font: 600 13px/1.3 var(--font-body); color: var(--navy-3); }
.acase__go { color: var(--bronze); transition: translate .3s var(--ease-out); }
.acase__project:hover .acase__go { translate: 4px 0; }
.acase__expert { position: relative; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); }
.acase__expert .icon-btn { --ib-bg: var(--paper); --ib-fg: var(--ink); }

/* Карточка проекта-обновления */
.aupdate { display: grid; gap: 14px; }
.aupdate__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font: 700 14px/1.2 var(--font-body); color: var(--navy-3); font-variant-numeric: tabular-nums; }
.aupdate__head time { margin-left: auto; }
.aupdate__until { display: inline-flex; align-items: center; gap: 6px; color: var(--bronze); }
.aupdate__until .i { width: 15px; height: 15px; }
.aupdate__card { position: relative; display: grid; border-radius: 28px; overflow: hidden; background: var(--white); box-shadow: var(--shadow-paper); }
.aupdate__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--night); }
.aupdate__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aupdate__body { display: grid; gap: 8px; align-content: center; padding: 20px 22px 22px; }
.aupdate__name { font: 700 clamp(22px, 2.4vw, 30px)/1.1 var(--font-display); letter-spacing: -.03em; }
.aupdate__link:hover { color: var(--bronze); }
.aupdate__loc { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--navy-3); }
.aupdate__loc .i { width: 16px; height: 16px; color: var(--bronze); }
.aupdate__price .price { font: 800 clamp(19px, 1.8vw, 23px)/1.1 var(--font-display); letter-spacing: -.03em; }
.aupdate__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.aupdate.is-ended .aupdate__card { opacity: .75; }
.aupdate__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.aupdate__photos--1 { grid-template-columns: minmax(0, 1fr); }
.aupdate__photo { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--night); cursor: zoom-in; }
.aupdate__photo img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease-out); }
.aupdate__photo:hover img { scale: 1.05; }
.aupdate__photo time { position: absolute; left: 8px; bottom: 8px; padding: 6px 10px; border-radius: var(--r-pill); background: rgb(12 22 29 / .7); color: var(--paper); font: 800 11.5px/1 var(--font-body); font-variant-numeric: tabular-nums; }
@media (min-width: 700px) {
  .aupdate__card { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); }
  .aupdate__media { aspect-ratio: auto; min-height: 200px; }
  .aupdate__photos--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ══════════ 5. Тело статьи: типографика и блоки ══════════ */
.abody { --text: 700px; --wide: 0px; counter-reset: h2; font-size: clamp(17px, 1.25vw, 18.5px); line-height: 1.75; color: var(--ink); }
.abody > * { margin-block: 0; }
.abody > * + * { margin-top: 1.3em; }
.abody > .a-p, .abody > .a-h2, .abody > .a-h3, .abody > .a-list { max-width: var(--text); }
.ap--brief .abody > .a-figure--wide, .ap--longread .abody > .a-figure--wide, .ap--longread .abody > .a-gallery { margin-inline: calc(-1 * var(--wide)); }
/* ссылки, жирный и курсив внутри текста: курсив — акцентным шрифтом */
.abody :is(.a-p, .a-list, .a-callout, .a-faq__a, .a-step__text, .a-table, .a-compare, figcaption, .a-project__note) a,
.akey a { font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-color var(--dur), color var(--dur); }
.abody :is(.a-p, .a-list, .a-faq__a, .a-step__text, .a-table, .a-compare, figcaption) a:hover { color: var(--bronze); text-decoration-color: var(--ink); }
.abody strong, .akey strong { font-weight: 800; }
.abody :is(.a-p, .a-list, .a-callout, .a-faq__a, .a-step__text, .a-table, .a-compare) em, .akey em { font: italic 600 1.16em/1 var(--font-accent); letter-spacing: -.005em; }

/* Абзац; вводный — крупнее, с буквицей */
.a-p { text-wrap: pretty; }
.a-p--lead { font-size: clamp(19px, 1.6vw, 22.5px); line-height: 1.6; font-weight: 500; }
.a-p--lead::first-letter { float: left; margin: .06em .14em 0 0; font: 800 3.5em/.8 var(--font-display); letter-spacing: -.04em; color: var(--ink); text-shadow: .055em .055em 0 var(--sun); }

/* Заголовки: H2 с номером раздела, как в оглавлении */
.a-h2 { counter-increment: h2; margin-top: 2.3em !important; font: 700 clamp(24px, 2.6vw, 36px)/1.1 var(--font-display); letter-spacing: -.03em; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.a-h2::before { content: counter(h2, decimal-leading-zero); display: block; width: max-content; margin-bottom: 14px; padding-left: 44px; background: var(--g-stripe) left center / 32px 3px no-repeat; font: 800 12px/1.2 var(--font-body); letter-spacing: .16em; color: var(--bronze); }
.a-h2 em, .a-h3 em { font-family: var(--font-accent); font-style: italic; font-weight: 600; font-size: 1.18em; letter-spacing: -.01em; line-height: .9; color: var(--accent-lg); }
.a-h3 { margin-top: 1.9em !important; font: 700 clamp(19px, 1.7vw, 23px)/1.2 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.a-h2 + *, .a-h3 + * { margin-top: .9em !important; }

/* Списки */
.a-list { display: grid; gap: .65em; counter-reset: li; }
.a-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.a-list--bullet li::before { content: ""; width: 9px; height: 9px; margin: .68em 0 0 9px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 2.5px var(--ink); }
.a-list--number li { counter-increment: li; }
.a-list--number li::before { content: counter(li); display: grid; place-items: center; width: 28px; height: 28px; margin-top: .12em; border-radius: 50%; background: var(--ink); color: var(--sun); font: 800 12px/1 var(--font-display); }
.a-list__check { display: grid; place-items: center; width: 26px; height: 26px; margin-top: .16em; border-radius: 50%; background: var(--ink); color: var(--sun); }
.a-list__check .i { width: 14px; height: 14px; }

/* Цитата */
.a-quote--pull { position: relative; margin-block: 2.4em !important; padding: clamp(30px, 4vw, 46px) clamp(22px, 4vw, 46px) clamp(24px, 3vw, 36px); border-radius: 32px; background: var(--white); box-shadow: var(--shadow-paper); rotate: -1deg; transition: rotate .5s var(--ease-out), box-shadow .5s; }
.a-quote--pull:hover { rotate: 0deg; box-shadow: var(--shadow-lift); }
.a-quote__mark { position: absolute; left: clamp(22px, 4vw, 46px); top: -26px; width: 56px; height: 56px; padding: 15px; border-radius: 50%; background: var(--sun); color: var(--ink); box-shadow: 0 14px 30px -12px rgb(110 84 5 / .7); rotate: -8deg; }
.a-quote--pull blockquote p { font: italic 600 clamp(24px, 2.7vw, 37px)/1.16 var(--font-accent); letter-spacing: -.012em; text-wrap: balance; }
.a-quote--plain { padding-left: 22px; border-left: 4px solid var(--sun); }
.a-quote--plain blockquote p { font: italic 600 clamp(21px, 2vw, 27px)/1.3 var(--font-accent); }
.a-quote figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-top: 16px; font: 800 14px/1.3 var(--font-body); }
.a-quote figcaption span { font-weight: 600; color: var(--navy-3); }

/* Врезка */
.a-callout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: clamp(18px, 2.4vw, 26px); border-radius: 26px; }
.a-callout__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; rotate: -6deg; }
.a-callout__icon .i { width: 22px; height: 22px; }
.a-callout__title { margin-bottom: 6px; font: 700 clamp(17px, 1.5vw, 19px)/1.2 var(--font-display); letter-spacing: -.02em; }
.a-callout__body p + p { margin-top: .6em; }
.a-callout__body p:not(.a-callout__title) { font-size: .94em; line-height: 1.6; }
.a-callout--tip { background: var(--g-sun-r); box-shadow: var(--shadow-paper); }
.a-callout--tip .a-callout__icon { background: var(--ink); color: var(--sun); }
.a-callout--warning { background: var(--ink); box-shadow: var(--shadow-lift); }
.a-callout--warning .a-callout__icon { background: var(--sun); color: var(--ink); }
.a-callout--warning p:not(.a-callout__title) { color: rgb(241 236 233 / .86); }
.a-callout--info { background: var(--white); border: 1.5px dashed rgb(12 22 29 / .2); }
.a-callout--info .a-callout__icon { background: var(--paper); color: var(--bronze); }

/* Изображение */
.a-figure { margin-block: 2em !important; }
.a-figure__zoom { position: relative; display: block; border-radius: 26px; overflow: hidden; background: var(--night); box-shadow: var(--shadow-paper); cursor: zoom-in; }
.a-figure__img { width: 100%; transition: scale 1.2s var(--ease-out); }
.a-figure--wide .a-figure__img { aspect-ratio: 2 / 1; object-fit: cover; }
.a-figure__zoom:hover .a-figure__img { scale: 1.03; }
.a-figure__more { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(12 22 29 / .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--paper); opacity: 0; transition: opacity var(--dur); }
.a-figure__zoom:hover .a-figure__more, .a-figure__zoom:focus-visible .a-figure__more { opacity: 1; }
@media (hover: none) { .a-figure__more { opacity: 1; } }
.a-figure figcaption, .a-gallery figcaption, .a-video figcaption { margin-top: 12px; padding-left: 14px; border-left: 3px solid var(--sun); font: 600 14px/1.5 var(--font-body); color: var(--navy-3); }
.a-figure__source { opacity: .8; }
.a-figure--tilt { padding: 6px 14px 14px 6px; }
.a-figure--tilt .a-figure__zoom { border-radius: 28px; rotate: -1.6deg; box-shadow: 14px 14px 0 var(--sun), var(--shadow-lift); transition: rotate .5s var(--ease-out); }
.a-figure--tilt .a-figure__zoom:hover, .a-figure--tilt .a-figure__zoom:focus-visible { rotate: 0deg; }
.a-figure--tilt figcaption { margin-top: 26px; }

/* Галерея: первое фото крупное, на телефоне — лента (.rail) */
.a-gallery { margin-block: 2em !important; }
.a-gallery__grid { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.a-gallery__item { position: relative; display: block; height: 100%; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--night); cursor: zoom-in; }
.a-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease-out); }
.a-gallery__item:hover img { scale: 1.06; }
.a-gallery__more { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: 4px; background: rgb(12 22 29 / .62); font: 800 17px/1 var(--font-display); color: var(--sun); }
.a-gallery__more .i { width: 22px; height: 22px; }
@media (min-width: 768px) {
  .a-gallery__grid--3, .a-gallery__grid--5 { grid-template-columns: 2fr 1fr; }
  .a-gallery__grid--5 { grid-template-columns: 2fr 1fr 1fr; }
  .a-gallery__grid--3 > :first-child, .a-gallery__grid--5 > :first-child { grid-row: span 2; }
  .a-gallery__grid--3 > :first-child .a-gallery__item, .a-gallery__grid--5 > :first-child .a-gallery__item { aspect-ratio: auto; }
  .a-gallery__extra { display: none; }
  .a-gallery__more { display: grid; }
}

/* Видео: плеер появляется по нажатию */
.a-video { margin-block: 2em !important; }
.a-video__play { position: relative; isolation: isolate; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; color: var(--paper); box-shadow: var(--shadow-lift);
  background: radial-gradient(50% 60% at 50% 46%, rgb(244 205 84 / .3), transparent 70%), var(--night); }
.a-video__poster { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; filter: brightness(.72); transition: scale 1.2s var(--ease-out); }
.a-video__play:hover .a-video__poster { scale: 1.04; }
.a-video__btn { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--sun); color: var(--ink); box-shadow: 0 0 0 10px rgb(244 205 84 / .18), var(--glow); transition: scale .25s var(--ease-spring); }
.a-video__btn .i { width: 34px; height: 34px; margin-left: 4px; }
.a-video__play:hover .a-video__btn { scale: 1.08; }
.a-video__title { position: absolute; left: 20px; right: 20px; bottom: 16px; font: 700 clamp(15px, 1.4vw, 18px)/1.25 var(--font-display); letter-spacing: -.02em; text-shadow: 0 1px 16px rgb(12 22 29 / .8); }
.a-video__frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 26px; background: var(--ink); box-shadow: var(--shadow-lift); }

/* Таблица и сравнение: на узком экране прокручиваются вбок, у края — тень */
.a-table, .a-compare { margin-block: 1.8em !important; overflow-x: auto; overscroll-behavior-x: contain; border-radius: 22px; box-shadow: var(--shadow-paper); scrollbar-width: thin; scrollbar-color: rgb(12 22 29 / .25) transparent;
  background:
    linear-gradient(90deg, var(--white) 30%, rgb(255 255 255 / 0)) left / 44px 100% no-repeat local,
    linear-gradient(270deg, var(--white) 30%, rgb(255 255 255 / 0)) right / 44px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgb(12 22 29 / .24), transparent) left / 16px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgb(12 22 29 / .24), transparent) right / 16px 100% no-repeat scroll,
    var(--white); }
.a-table:focus-visible, .a-compare:focus-visible { outline-offset: 4px; border-radius: 22px; }
.a-table table, .a-compare table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.a-table caption, .a-compare caption { padding: 18px 20px 4px; text-align: left; font: 800 12px/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); }
.a-table th, .a-table td, .a-compare th, .a-compare td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.a-table thead th { vertical-align: bottom; font: 800 11px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--navy-3); }
.a-table tbody th { font-weight: 800; }
.a-table tbody tr:last-child > *, .a-compare tbody tr:last-child > * { border-bottom: 0; }
.a-compare table { min-width: calc(150px + var(--cols) * 180px); }
.a-compare thead td { border-bottom: 0; }
.a-compare thead th { vertical-align: bottom; border-bottom: 0; }
.a-compare thead b { display: block; font: 700 17px/1.15 var(--font-display); letter-spacing: -.02em; }
.a-compare thead small { display: block; margin-top: 4px; font: 600 12.5px/1.3 var(--font-body); color: var(--navy-3); }
.a-compare tbody th { width: 150px; font: 800 12px/1.35 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--navy-3); }
.a-compare tbody tr:first-child > * { border-top: 1px solid var(--line); }
.a-compare .is-pick { background: rgb(244 205 84 / .26); }
.a-compare thead .is-pick { background: var(--sun); border-radius: 18px 18px 0 0; }
.a-compare tbody tr:last-child .is-pick { border-radius: 0 0 18px 18px; }
.a-compare__pick { display: inline-flex; align-items: center; min-height: 22px; margin-bottom: 8px; padding: 0 10px; border-radius: var(--r-pill); background: var(--ink); color: var(--sun); font: 800 10px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }

/* Цифры: значение сверху, подпись под ним (в разметке dt — подпись, dd — значение) */
.a-stats { --cols: 2; container-type: inline-size; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 22px 0; margin-block: 2.2em !important; padding: clamp(22px, 3vw, 34px) clamp(8px, 1.4vw, 16px); border-radius: 30px; }
.a-stats__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 2px clamp(12px, 1.6vw, 20px); border-left: 2px solid var(--line); }
.a-stats dd { margin: 0; font: 800 clamp(19px, calc((100cqi / var(--cols) - 44px) / 7.4), 42px)/1 var(--font-display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--fg); }
.a-stats dd .price { font: inherit; }
.a-stats dt { font: 700 13.5px/1.35 var(--font-body); color: var(--muted); }
.a-stats--sun { background: var(--g-sun-r); box-shadow: var(--shadow-lift); rotate: -.8deg; transition: rotate .5s var(--ease-out); }
.a-stats--sun:hover { rotate: 0deg; }
.a-stats--ink { background: var(--ink); box-shadow: var(--shadow-lift); }
.a-stats--ink dd { color: var(--sun); }
.a-stats--plain { padding-inline: 0; border-radius: 0; border-block: 1px solid var(--line); }
@media (min-width: 700px) { .a-stats { --cols: var(--n, 3); } }

/* Карточка проекта */
.a-project { position: relative; display: grid; margin-block: 2em !important; border-radius: 28px; overflow: hidden; background: var(--white); box-shadow: var(--shadow-paper); font-size: 15px; line-height: 1.5; transition: translate .5s var(--ease-out), box-shadow .5s; }
.a-project:not(.a-project--sold):hover { translate: 0 -6px; box-shadow: var(--shadow-lift); }
.a-project__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--night); }
.a-project__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out); }
.a-project:hover .a-project__img { scale: 1.05; }
.a-project__tag { position: absolute; left: 14px; top: 14px; rotate: -4deg; box-shadow: 0 10px 24px -10px rgb(0 0 0 / .5); }
.a-project__body { display: grid; gap: 8px; align-content: start; padding: 20px 22px 22px; }
.a-project__kicker { display: flex; align-items: center; gap: 8px; font: 800 11px/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--bronze); }
.a-project__kicker .i { width: 16px; height: 16px; }
.a-project__title { font: 700 clamp(22px, 2.3vw, 28px)/1.1 var(--font-display); letter-spacing: -.03em; }
.a-project__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.a-project__link:focus-visible { outline: none; }
.a-project:has(.a-project__link:focus-visible) { outline: 3px solid var(--ink); outline-offset: 4px; }
.a-project__loc { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--navy-3); }
.a-project__loc .i { width: 16px; height: 16px; color: var(--bronze); }
.a-project__price .price { font: 800 clamp(19px, 1.8vw, 24px)/1.1 var(--font-display); letter-spacing: -.03em; }
.a-project__params { display: flex; flex-wrap: wrap; gap: 6px; }
.a-project__params li { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 8px; background: var(--paper); font: 700 12.5px/1 var(--font-body); color: var(--navy); }
.a-project__note { font-size: 14.5px; color: var(--navy-3); }
.a-project__actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; pointer-events: none; }
.a-project__actions > :not(.a-project__go) { pointer-events: auto; }
.a-project__go { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: var(--ink); color: var(--sun); font: 800 14px/1 var(--font-body); }
.a-project__go .i { width: 16px; height: 16px; transition: translate .3s var(--ease-out); }
.a-project:hover .a-project__go .i { translate: 4px 0; }
.a-project__msg { width: 44px; height: 44px; --ib-bg: var(--paper); --ib-fg: var(--ink); }
.a-project__lead { min-height: 44px; padding: 0 8px; font: 800 14px/1 var(--font-body); color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.a-project__lead:hover { text-decoration-color: var(--ink); }
@media (min-width: 700px) {
  .a-project:not(.a-project--sold) { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
  .a-project__media { aspect-ratio: auto; min-height: 240px; }
}
/* Проект продан: вместо карточки — пометка и похожие */
.a-project--sold { gap: 16px; padding: 20px; overflow: visible; background: transparent; border: 1.5px dashed rgb(12 22 29 / .22); box-shadow: none; }
.a-project__sold { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font: 700 15px/1.45 var(--font-body); }

/* Мини-карточки проектов: похожие и подборка */
.a-minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.a-mini__link { display: grid; grid-template-rows: auto 1fr; height: 100%; border-radius: 20px; overflow: hidden; background: var(--white); box-shadow: var(--shadow-paper); transition: translate .45s var(--ease-out), box-shadow .45s; }
.a-mini__link:hover { translate: 0 -4px; box-shadow: var(--shadow-lift); }
.a-mini__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--night); }
.a-mini__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease-out); }
.a-mini__link:hover img { scale: 1.06; }
.a-mini__body { display: grid; gap: 4px; align-content: start; padding: 12px 14px 14px; font-size: 14px; line-height: 1.35; }
.a-mini__body b { font: 700 15px/1.2 var(--font-display); letter-spacing: -.02em; }
.a-mini__body small { display: flex; align-items: center; gap: 4px; font: 600 12.5px/1.3 var(--font-body); color: var(--navy-3); }
.a-mini__body small .i { width: 14px; height: 14px; color: var(--bronze); }
.a-mini__body .price { margin-top: 2px; font: 800 15px/1.2 var(--font-body); }
.a-collection { margin-block: 2em !important; padding: clamp(16px, 2.2vw, 22px); border-radius: 28px; background: var(--sand); }
.a-collection__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 14px; }
.a-collection__title { font: 700 clamp(19px, 1.8vw, 23px)/1.15 var(--font-display); letter-spacing: -.02em; }
.a-collection__all { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font: 800 14px/1 var(--font-body); }
.a-collection__all .i { width: 16px; height: 16px; transition: translate .3s var(--ease-out); }
.a-collection__all:hover { color: var(--bronze); }
.a-collection__all:hover .i { translate: 4px 0; }
.a-expert { margin-block: 2em !important; }

/* Встроенный CTA */
.a-cta { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 16px; align-items: center; margin-block: 2.2em !important; padding: clamp(20px, 3vw, 30px); border-radius: 28px; background: var(--ink); box-shadow: 0 44px 80px -40px rgb(12 22 29 / .7); }
.a-cta::before { content: ""; position: absolute; right: -110px; top: -130px; z-index: -1; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, rgb(244 205 84 / .26), transparent); pointer-events: none; }
.a-cta__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--sun); color: var(--ink); rotate: -6deg; }
.a-cta__icon .i { width: 26px; height: 26px; }
.a-cta__title { font: 700 clamp(19px, 1.8vw, 24px)/1.15 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.a-cta__text { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.a-cta__btn { justify-self: start; }
@media (min-width: 700px) { .a-cta { grid-template-columns: auto minmax(0, 1fr) auto; } .a-cta__btn { justify-self: end; } }

/* FAQ */
.a-faq { display: grid; gap: 10px; }
.a-faq__item { border-radius: 20px; background: var(--white); box-shadow: var(--shadow-paper); }
.a-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 16px 14px 20px; list-style: none; cursor: pointer; border-radius: 20px; font: 700 clamp(16px, 1.4vw, 18px)/1.3 var(--font-display); letter-spacing: -.02em; }
.a-faq__item summary::-webkit-details-marker { display: none; }
.a-faq__item summary .i { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--paper); transition: rotate .3s var(--ease-out), background-color var(--dur); }
.a-faq__item[open] summary .i { rotate: 180deg; background: var(--sun); }
.a-faq__a { padding: 0 20px 20px; font-size: .94em; line-height: 1.65; color: var(--navy); }
.a-faq__a p + p { margin-top: .7em; }

/* Шаги */
.a-steps { display: grid; }
.a-step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; padding-bottom: 26px; }
.a-step::before { content: ""; position: absolute; left: 27px; top: 62px; bottom: 6px; width: 2px; border-radius: 2px; background: rgb(12 22 29 / .14); }
.a-step:last-child { padding-bottom: 0; }
.a-step:last-child::before { display: none; }
.a-step__n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--ink); color: var(--sun); font: 800 17px/1 var(--font-display); letter-spacing: -.02em; }
.a-step:nth-child(even) .a-step__n { background: var(--sun); color: var(--ink); rotate: 4deg; }
.a-step__body { padding-top: 4px; }
.a-step__title { font: 700 clamp(18px, 1.6vw, 21px)/1.2 var(--font-display); letter-spacing: -.02em; }
.a-step__term { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; margin-top: 8px; padding: 0 10px; border-radius: var(--r-pill); background: rgb(244 205 84 / .4); font: 800 12px/1 var(--font-body); color: var(--bronze-deep); }
.a-step__term .i { width: 13px; height: 13px; }
.a-step__text { margin-top: 8px; font-size: .94em; line-height: 1.65; color: var(--navy); }
.a-step__text p + p { margin-top: .6em; }

/* Карта */
.a-map { margin-block: 2em !important; }
.a-map .pmap { min-height: clamp(300px, 42vw, 420px); }
.a-map figcaption { margin-top: 12px; }
.a-map__points { display: flex; flex-wrap: wrap; gap: 8px; }
.a-map__points li { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); background: var(--white); color: var(--ink); font: 700 13.5px/1 var(--font-body); box-shadow: var(--shadow-paper); }
.a-map__points .i { width: 15px; height: 15px; color: var(--bronze); }
.a-map__points a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.a-map__points a:hover { color: var(--bronze); }

/* Заметки сборки — только сотруднику в предпросмотре черновика */
.adebug { padding: 14px 18px; border-radius: 16px; border: 1.5px dashed var(--bronze); font: 600 13px/1.5 var(--font-body); color: var(--bronze-deep); }
.adebug summary { cursor: pointer; font-weight: 800; }
.adebug ul { margin-top: 8px; padding-left: 18px; list-style: disc; }

/* ══════════ 6. Секции под телом ══════════ */
.amention__grid { padding-bottom: 0; }
.amention .pcard-grid > :nth-child(3n + 2) .pcard__inner, .amention .pcard-grid > :nth-child(3n + 2):hover .pcard__inner { translate: none; } /* в статье карточки — в ряд, без сдвига */
.amention .pcard-grid > li:hover .pcard__inner { translate: 0 -8px; }

/* Проверено */
.areviewed { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 20px; background: var(--white); box-shadow: var(--shadow-paper); font: 600 14.5px/1.45 var(--font-body); color: var(--navy); }
.areviewed b { color: var(--ink); font-weight: 800; }
/* рецензент — ссылка на профиль внутри фразы: подчёркивание видно сразу (у ex-name-link оно появляется при наведении) */
.areviewed .ex-name-link { color: var(--ink); text-decoration-color: rgb(176 135 11 / .5); }
.areviewed .ex-name-link:hover, .areviewed .ex-name-link:focus-visible { color: var(--bronze); text-decoration-color: var(--gold); }
.areviewed__icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--sun); color: var(--ink); }
.areviewed__icon .i { width: 16px; height: 16px; }

/* Поделиться */
.ashare { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ashare__title { font: 800 12px/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); }
.ashare__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ashare .icon-btn { --ib-bg: var(--white); --ib-fg: var(--ink); box-shadow: var(--shadow-paper); }
.ashare .icon-btn:hover { --ib-bg: var(--ink); --ib-fg: var(--sun); }
.ashare__pdf { margin-left: 6px; }

/* Подписка: одна строка и кнопка */
.asub { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 16px; align-items: center; justify-items: start; padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 36px); border-radius: 28px; background: var(--night); border: 1px solid rgb(241 236 233 / .12); box-shadow: var(--shadow-lift); }
.asub::before { content: ""; position: absolute; right: -90px; top: -110px; z-index: -1; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, rgb(136 171 191 / .36), transparent); pointer-events: none; }
.asub__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--sun); color: var(--ink); rotate: -8deg; }
.asub__icon .i { width: 28px; height: 28px; }
.asub__title { font: 700 clamp(19px, 2vw, 27px)/1.15 var(--font-display); letter-spacing: -.03em; text-wrap: balance; }
.asub__title em { font-family: var(--font-accent); font-style: italic; font-weight: 600; font-size: 1.18em; letter-spacing: -.01em; line-height: .9; color: var(--sun); }
@media (min-width: 800px) { .asub { grid-template-columns: auto minmax(0, 1fr) auto; } }

/* ══════════ 7. Зона «Солнце»: CTA-блок с формой; «Вечер»: сноски ══════════ */
.ap .acta { padding-top: calc(var(--seam) * .8); padding-bottom: clamp(70px, 8vw, 120px); overflow-x: clip; }
.acta__rays { position: absolute; right: -12vw; top: calc(var(--seam) * .4); bottom: 0; width: 64vw; z-index: -1; pointer-events: none; background: repeating-linear-gradient(118deg, transparent 0 36px, rgb(12 22 29 / .07) 36px 60px); -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent); }
.acta__grid { position: relative; display: grid; gap: 44px; }
.acta__copy { display: grid; gap: 20px; align-content: start; justify-items: start; }
.acta__manager { display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 22px; background: rgb(255 255 255 / .4); }
.acta__manager b { display: block; font: 700 16px/1.2 var(--font-display); letter-spacing: -.02em; }
.acta__manager p span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--bronze-deep); }
.acta__msg { display: flex; flex-wrap: wrap; gap: 10px; }
.acta__card { position: relative; padding: clamp(24px, 3vw, 40px); border-radius: 32px; background: var(--ink); box-shadow: 0 60px 100px -40px rgb(12 22 29 / .75); }
.acta__sticker { position: absolute; top: -20px; right: 24px; rotate: 5deg; }
.acta__card-title { margin-bottom: 20px; padding-right: 8px; font: 700 clamp(20px, 2vw, 26px)/1.15 var(--font-display); letter-spacing: -.03em; text-wrap: balance; }
@media (min-width: 1024px) {
  .acta__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: clamp(40px, 6vw, 96px); align-items: start; }
  .acta__card { margin-bottom: -150px; rotate: 1.2deg; }
}
.anotes { padding: 300px 0 clamp(40px, 5vw, 64px); }
@media (max-width: 1023.98px) { .anotes { padding-top: 290px; } }
.anotes__title { margin-bottom: 14px; font: 800 12px/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.anotes__list { display: grid; gap: 8px; max-width: 900px; padding-left: 18px; list-style: decimal; font-size: 12.5px; line-height: 1.6; color: rgb(241 236 233 / .64); }
.anotes__list li::marker { color: var(--sun); font-weight: 800; }

/* ══════════ 8. Плавающее: черновик, «Наверх» ══════════ */
.adraft { position: fixed; left: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 8px; max-width: min(420px, calc(100vw - 32px)); margin: 0; padding: 10px 16px; border-radius: var(--r-pill); background: var(--sun); color: var(--ink); font: 700 13px/1.3 var(--font-body); box-shadow: 0 12px 30px -10px rgb(0 0 0 / .45); }
.adraft .i { width: 16px; height: 16px; flex: none; }
@media (min-width: 1024px) { .adraft { bottom: 16px; } }
/* «Наверх»: появляется после двух экранов прокрутки; на десктопе — над плавающей кнопкой мессенджеров */
.atop { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: calc(var(--z-float) - 1); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--sun); border: 1px solid rgb(241 236 233 / .18); box-shadow: var(--shadow-lift); opacity: 0; translate: 0 12px; transition: opacity .25s, translate .3s var(--ease-out), background-color var(--dur), color var(--dur); }
.atop.is-on { opacity: 1; translate: 0 0; }
.atop .i { rotate: -90deg; }
.atop:hover { background: var(--sun); color: var(--ink); }
@media (min-width: 1024px) { .atop { right: 32px; bottom: 104px; } }

/* ══════════ 9. Печать: «Скачать PDF» у гида — печать страницы без оболочки сайта ══════════ */
@media print {
  body::after, .zone::before, .header, .progress, .skip, .footer, .fab, .mbar, .atop, .adraft, .toast, dialog,
  .agrid__aside, .ashare, .arelated, .asub, .acta, .amention, .a-cta, .a-video, .a-map, .ahero__chips, .acrumbs, .a-figure__more { display: none !important; }
  html, body, .az { background: #fff !important; color: #000 !important; }
  .az { padding: 0 !important; }
  .az[data-tone] { --fg: #000; --muted: #333; --line: #bbb; --accent: #000; --accent-lg: #000; }
  .ahero__title, .ahero__lead, .ahero__facts, .ahero__cat, .ex-author, .ex-author__text small { color: #000 !important; text-shadow: none !important; }
  .ahero--photo { display: block; min-height: 0; padding: 0; }
  .ahero__bg { position: relative; inset: auto; margin-bottom: 18px; aspect-ratio: 2; border-radius: 12px; }
  .ahero__bgimg { transform: none !important; scale: none !important; }
  .ahero__shade { display: none; }
  .agrid, .agrid__main { display: block; max-width: none !important; width: auto !important; }
  .container { width: auto; }
  .abody { font-size: 11.5pt; line-height: 1.55; }
  .akey, .a-stats, .a-quote--pull, .a-figure--tilt .a-figure__zoom { rotate: 0deg !important; }
  .akey, .a-callout, .a-stats, .a-quote--pull, .a-project, .a-table, .a-compare, .a-faq__item, .a-figure__zoom, .acase, .ex-card, .areviewed { box-shadow: none !important; border: 1px solid #bbb; break-inside: avoid; }
  .a-h2, .a-h3 { break-after: avoid; }
  .a-faq__item > .a-faq__a { display: block; }
  .anotes { padding-top: 16px; }
  .anotes__list, .anotes__title { color: #333; }
  a { text-decoration: none !important; }
}
