/*
Theme Name: Макспол Недвижимость — Каталог
Description: Тема по утверждённой версии «сайт каталог 1». Главная с местами под виджеты.
Version: 1.3.2
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: makspol-catalog
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
:root {
  --white: #FFFFFF;
  --soft: #F7F8FB;
  --text: #222428;
  --muted: #555560;
  --line: #CCCCCC;
  --hair: #E8E9EC;
  --red: #DC2F2F;
  --red-dark: #C42626;
  --ph: #E4E6EA;
  --ph-text: #8A8D95;
  --map: #EEF0F3;

  --display: 'Geologica', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header: 76px;
  --screen: calc(100svh - var(--header));
  --max: 1760px;
  --gutter: clamp(20px, 3vw, 48px);
  /* Расстояние от края экрана до контента — для блоков «в край» */
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  /* Скругления только у кнопок, меток и всплывающих карточек */
  --pill: 50px;
  --r-card: 16px;
  /* Заголовки: тонкий Geologica прописными, без сжатия */
  --title: clamp(34px, min(4.4vw, 7.6vh), 76px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
body { margin: 0; background: var(--soft); color: var(--text); font-family: 'Onest', system-ui, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--red); color: var(--white); }
a { color: var(--text); text-decoration: none; transition: color .25s; }
a:hover { color: var(--red); }
button, input, select { font-family: inherit; color: inherit; }
input:focus, select:focus { outline: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
img { display: block; }
.h { font-family: var(--display); font-weight: 400; letter-spacing: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
/* Крупные заголовки — тонкие, прописные */
.section-title, .contact h2, .hero h1 { font-family: var(--display); font-weight: 300; text-transform: uppercase; letter-spacing: 0; line-height: 1; }
/* Заголовки разделов: каждая часть с новой строки, ровно по левому краю */
.section-title .l1, .section-title .l2, .section-title .l3, .contact h2 .l1, .contact h2 .l2, .contact h2 .l3 { display: block; }
/* Мелкие подписи прописными */
.reset, .article-meta, .cycle-step, .foot-label, .modal-call-label, .modal-or, .all-link, .header-nav, .btn, .menu-btn {
  text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 500;
}
/* Метки и цены набраны Onest, даже если в разметке у них класс заголовка */
.header-phone, .modal-call-num { font-family: 'Onest', system-ui, sans-serif; }
/* Buttons: компактные «таблетки» */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 24px; border-radius: var(--pill); white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.btn-lg { height: 54px; padding: 0 32px; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn-ghost-dark { border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-ghost-dark:hover { border-color: var(--white); color: var(--white); }
/* Header: прозрачная поверх фото первого экрана, светлая после прокрутки */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; gap: 48px; height: var(--header); }
.header::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); z-index: -1; background: rgba(247,248,251,0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair); transition: opacity .4s var(--ease); }
.header-logo img { height: 32px; width: auto; transition: filter .4s var(--ease); }
.header-nav { display: flex; gap: 30px; white-space: nowrap; }
.header-nav a { position: relative; padding: 8px 0; }
/* При наведении на меню остальные пункты приглушаются */
.header-nav a { transition: opacity .3s var(--ease); }
.header-nav:hover a:not(:hover) { opacity: .45; }
.header-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.header-phone { font-size: 15px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.header-call { height: 40px; padding: 0 20px; }
.menu-btn { display: none; height: 40px; padding: 0 18px; border-radius: var(--pill); border: 1px solid var(--line); background: transparent; cursor: pointer; }
.header.on-hero:not(.menu-open)::before { opacity: 0; }
.header.on-hero:not(.menu-open) .header-logo img { filter: brightness(0) invert(1); }
.header.on-hero:not(.menu-open) .header-nav a, .header.on-hero:not(.menu-open) .header-phone, .header.on-hero:not(.menu-open) .menu-btn { color: var(--white); }
.header.on-hero:not(.menu-open) .menu-btn { border-color: rgba(255,255,255,0.5); }
.menu { position: absolute; left: 12px; right: 12px; top: calc(var(--header) - 4px); z-index: 30; background: var(--white); border-radius: var(--r-card); padding: 8px 24px 24px; box-shadow: 0 24px 48px rgba(34,36,40,0.12); display: flex; flex-direction: column; }
.menu[hidden] { display: none; }
.menu a.h { padding: 14px 0; font-size: 26px; font-weight: 300; text-transform: uppercase; border-bottom: 1px solid var(--hair); }
.menu a.h:nth-child(6) { border-bottom: none; }
/* Шапка: шесть разделов и длинная кнопка не помещаются, сжимаем заранее */
@media (max-width: 1360px) {
  .header { gap: 32px; }
  .header-nav { gap: 22px; }
  .header-actions { gap: 16px; }
}
@media (max-width: 1279px) { .header-phone { display: none; } }
@media (max-width: 1120px) {
  .header-nav { display: none; }
  .menu-btn { display: inline-block; }
}
.menu-phone { margin-top: 14px; font-size: 17px; font-weight: 500; }
/* Hero: фото на весь экран вместе с зоной под шапкой.
   Слева крупный заголовок с главным обещанием, справа плашка-пример лота с тремя ценами:
   цена застройщика, цена со скидкой на его сайте и закрытая цена Макспол Недвижимость.
   Внизу четыре ценности в одну линию и сноска с уточнением */
.hero-wrap { max-width: none; padding: 0; }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(640px, 100svh, 1000px); padding: calc(var(--header) + 24px) var(--edge) clamp(20px, 3.4vh, 40px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) auto minmax(28px, .7fr) auto auto; column-gap: 24px; color: var(--white); background: #2B2F36; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; transform-origin: 70% 40%; animation: heroZoom 20s var(--ease) both; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,20,24,0.45) 0%, rgba(18,20,24,0) 24%), linear-gradient(90deg, rgba(18,20,24,0.68) 0%, rgba(18,20,24,0.5) 45%, rgba(18,20,24,0) 72%), linear-gradient(0deg, rgba(18,20,24,0.72) 0%, rgba(18,20,24,0) 45%); }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-text { grid-column: 1 / 8; grid-row: 2; align-self: center; }
/* Заголовок в пять строк: кегль подобран так, чтобы он помещался на первом экране рядом с плашкой */
.hero h1 { margin: 0; color: var(--white); font-size: clamp(38px, min(4.7vw, 8.4vh), 88px); line-height: 1.08; }
.hero h1 .l1, .hero h1 .l2, .hero h1 .l3, .hero h1 .l4, .hero h1 .l5 { display: block; }
.hero-mark { font-size: .4em; vertical-align: top; position: relative; top: .1em; margin-left: .06em; }
/* Плашка-пример: крупная белая карточка без тяжёлой тени, подписи прописными, цены строками.
   Акцент — красная строка с закрытой ценой Макспол Недвижимость */
.hero-offer { grid-column: 8 / -1; grid-row: 2; align-self: end; justify-self: end; width: min(100%, 680px); padding: clamp(22px, 3.2vh, 34px) clamp(22px, 2.2vw, 34px); border-radius: 20px; background: var(--white); color: var(--text); box-shadow: 0 20px 50px rgba(10,12,16,0.25); }
.offer-lot { display: flex; align-items: center; gap: 16px; padding-bottom: clamp(14px, 2vh, 20px); border-bottom: 1px solid var(--hair); }
.offer-plan { flex: none; width: 58px; height: 45px; fill: none; stroke: var(--text); stroke-width: 1.6; }
.offer-name { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.offer-sub { margin: 4px 0 0; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.offer-prices { display: flex; flex-direction: column; margin: clamp(14px, 2vh, 20px) 0 0; }
/* Все три строки цен — плашки одной ширины и с одинаковыми отступами, как красная строка */
.offer-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: clamp(12px, 1.8vh, 16px) clamp(16px, 1.4vw, 22px); border-radius: 14px; background: #F1F2F5; }
.offer-row + .offer-row { margin-top: 8px; }
.offer-row dt { font-size: 13px; font-weight: 600; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.offer-row dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.offer-base { font-size: 20px; font-weight: 500; color: var(--muted); }
.offer-site { font-size: 23px; font-weight: 600; }
.offer-site s { text-decoration-color: var(--red); text-decoration-thickness: 2.5px; }
.offer-row.offer-row-our { align-items: center; padding: clamp(14px, 2vh, 20px) clamp(16px, 1.4vw, 22px); background: var(--red); }
.offer-row-our dt { font-size: 14px; color: var(--white); }
/* Цена Макспол Недвижимость статична и размыта настолько, что цифры не прочитать: её называют по телефону */
.offer-hidden { display: inline-block; font-family: var(--display); font-size: clamp(28px, min(2.4vw, 4.6vh), 38px); font-weight: 500; color: var(--white); text-shadow: 0 0 4px var(--white); filter: blur(8px); user-select: none; pointer-events: none; }
/* Кнопка на белой карточке — тёмная «таблетка», при наведении красная */
.hero .offer-call { width: 100%; height: 56px; margin-top: clamp(14px, 2vh, 20px); font-size: 13px; font-weight: 600; background: var(--text); color: var(--white); }
.hero .offer-call:hover { background: var(--red); color: var(--white); }
/* Внизу экрана одна строка: где и сколько работает компания */
.hero-since { grid-column: 1 / -1; grid-row: 4; margin: 0; padding-top: clamp(14px, 2.2vh, 20px); border-top: 1px solid rgba(255,255,255,0.3); font-family: var(--display); font-size: clamp(22px, min(2.1vw, 3.8vh), 36px); font-weight: 300; line-height: 1.2; color: var(--white); }
.hero-note { grid-column: 1 / -1; grid-row: 5; margin: clamp(14px, 2.4vh, 24px) 0 0; max-width: 980px; font-size: 12px; line-height: 1.45; color: rgba(255,255,255,0.6); }
.hero-text, .hero-offer, .hero-since { animation: riseIn 1.1s var(--ease) both; }
.hero-offer { animation-delay: .15s; }
.hero-since { animation-delay: .3s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
/* Partners: тихая лента, логотипы в сером */
.partners { padding: 40px 0; overflow: hidden; border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partners-track { display: flex; align-items: center; gap: 88px; width: max-content; padding-left: 88px; animation: marquee 80s linear infinite; }
.partners:hover .partners-track { animation-play-state: paused; }
.partners-track img { width: auto; flex: none; opacity: .45; filter: grayscale(1); transition: opacity .4s; }
.partners-track img:hover { opacity: .9; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Лента нужна в движении по просьбе заказчика; при «уменьшить движение» она просто идёт медленнее */
@media (prefers-reduced-motion: reduce) {
  .partners-track { animation-duration: 160s; }
}
.section-title { margin: 0; font-size: var(--title); }
/* Steps: тёмная полоса; слева заголовок и описание этапа, справа круг, внизу этапы */
.steps-wrap { max-width: none; padding: 0; }
.steps { background: linear-gradient(rgba(22,24,28,0.86), rgba(22,24,28,0.86)), url(img/steps-bg.jpg) center / cover no-repeat var(--text); color: var(--white); padding: clamp(72px, 8vw, 120px) var(--edge) clamp(56px, 6vw, 96px); display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; }
.steps-side { display: contents; }
.steps .section-title { grid-column: 1 / -1; grid-row: 1; color: var(--white); }
.cycle-box { grid-column: 1 / -1; grid-row: 2; min-width: 0; margin-top: 64px; }
.cycle-desc-l { grid-column: 1 / -1; grid-row: 3; margin: 36px auto 0; max-width: 560px; min-height: 7.5em; font-family: var(--display); font-size: clamp(18px, 1.6vw, 26px); font-weight: 300; line-height: 1.45; color: rgba(255,255,255,0.86); text-align: center; }
.cycle-desc-l.swap { animation: cardIn .7s var(--ease) both; }
.cycle { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; margin: 0 auto; }
.cycle-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cycle-track { fill: none; stroke: rgba(255,255,255,0.18); stroke-width: 1; }
.cycle-progress { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; }
.cycle-mark { position: absolute; left: var(--x); top: var(--y); z-index: 2; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: none; background: none; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--white); }
.cycle-mark span { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.32); background: var(--text); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; transition: background .4s, border-color .4s, color .4s, transform .5s cubic-bezier(.34,1.56,.64,1); }
.cycle-mark:hover span { border-color: var(--white); }
.cycle-mark.done span { border-color: var(--red); color: var(--red); }
.cycle-mark.on span { background: var(--red); border-color: var(--red); color: var(--white); transform: scale(1.15); }
.cycle-ball { position: absolute; left: 50%; top: 0; z-index: 3; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px rgba(220,47,47,0.16); pointer-events: none; transition: transform .35s ease; }
.cycle-ball.rest { transform: scale(0); }
.cycle-card { position: absolute; inset: 20%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.cycle-card.swap > * { animation: cardIn .7s var(--ease) both; }
.cycle-step { color: rgba(255,255,255,0.5); font-size: 11px; }
.cycle-title { margin: 0; font-family: var(--display); font-size: clamp(22px, 2.1vw, 34px); font-weight: 300; text-transform: uppercase; line-height: 1.08; color: var(--white); }
.cycle-card .btn { margin-top: 8px; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cycle-card.swap > *, .cycle-desc-l.swap { animation: none; }
}
.steps-list { grid-column: 1 / -1; grid-row: 4; list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 24px; }
.steps-list button { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 0 0; border: none; border-top: 1px solid rgba(255,255,255,0.18); background: none; text-align: left; cursor: pointer; font-size: 14px; line-height: 1.4; color: rgba(255,255,255,0.72); transition: color .4s var(--ease); }
.steps-list button:hover { color: var(--white); }
.steps-list .num { font-family: var(--display); font-size: clamp(30px, 2.8vw, 48px); font-weight: 200; line-height: 1; transition: color .4s; }
.steps-list .bar { position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--red); }
.steps-list li.done .num { color: rgba(255,255,255,0.85); }
.steps-list li.on button { color: var(--white); }
.steps-list li.on .num { color: var(--red); }
.reset { height: 46px; padding: 0 10px; border: none; background: transparent; color: var(--muted); cursor: pointer; flex: none; font-size: 11px; }
.reset.on { color: var(--red); }
.ph { background: var(--ph); color: var(--ph-text); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.round { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: background .3s; }
.round:hover { background: var(--soft); }
/* Contact: скруглённая карточка. Слева заголовок, под ним текст с кнопками, справа снимок вплотную к краям;
   снимок плавно растворяется в фоне карточки почти на половину своей ширины */
.contact-wrap { margin-top: clamp(64px, 7vw, 120px); }
.contact { --studio: #e6ecec; --pad: clamp(32px, 3.6vw, 60px); --h: clamp(420px, 34vw, 560px); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); grid-template-rows: 1fr auto; height: var(--h); border-radius: 32px; overflow: hidden; background: var(--studio); }
.contact h2 { grid-column: 1; grid-row: 1; margin: 0; padding: var(--pad) var(--pad) 0; font-size: clamp(28px, 2.6vw, 46px); line-height: 1.04; }
.contact-body { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; gap: 24px; padding: 0 var(--pad) var(--pad); }
.contact-photo { grid-column: 2; grid-row: 1 / 3; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.04) 6%, rgba(0,0,0,0.16) 13%, rgba(0,0,0,0.38) 21%, rgba(0,0,0,0.66) 30%, rgba(0,0,0,0.88) 39%, #000 48%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.04) 6%, rgba(0,0,0,0.16) 13%, rgba(0,0,0,0.38) 21%, rgba(0,0,0,0.66) 30%, rgba(0,0,0,0.88) 39%, #000 48%); }
.contact-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.contact p { margin: 0; max-width: 26em; color: rgba(34,36,40,0.78); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.5; }
.contact-buttons { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; max-width: 420px; }
.contact-call { grid-column: 1 / -1; }
/* Кнопки мессенджеров на светлой карточке — с тёмной обводкой */
.contact .btn-ghost-dark { border-color: rgba(34,36,40,0.3); color: var(--text); }
.contact .btn-ghost-dark:hover { border-color: var(--text); color: var(--text); }
/* Modal: звонок или мессенджер */
html.modal-open { overflow: hidden; }
.modal { width: min(960px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px); padding: 0; border: none; border-radius: 20px; background: var(--white); color: var(--text); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 40px 80px rgba(18,20,24,0.28); }
.modal[open] { animation: modalIn .5s var(--ease); }
.modal::backdrop { background: rgba(18,20,24,0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .modal[open] { animation: none; }
}
.modal-grid { display: grid; grid-template-columns: minmax(0,1fr) 360px; min-height: 520px; }
.modal-body { display: flex; flex-direction: column; padding: 48px 52px 40px; }
.modal-title { margin: 0; font-family: var(--display); font-size: 34px; font-weight: 300; text-transform: uppercase; line-height: 1.02; }
.modal-sub { margin: 16px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.modal-call { margin-top: 32px; height: auto; min-height: 74px; padding: 12px 28px; text-transform: none; letter-spacing: 0; border-radius: var(--pill); }
.modal-call-text { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.modal-call-label { opacity: .8; font-size: 11px; }
.modal-call-num { font-family: 'Onest', sans-serif; font-size: 24px; font-weight: 500; letter-spacing: .01em; }
.modal-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.modal-or { display: flex; align-items: center; gap: 14px; margin-top: 26px; color: var(--muted); font-size: 11px; }
.modal-or::before, .modal-or::after { content: ''; flex: 1; height: 1px; background: var(--hair); }
.modal-msg { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 16px; }
.msg { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border-radius: var(--pill); border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--text); transition: border-color .3s; }
.msg:hover { border-color: var(--text); color: var(--text); }
.modal-or + .modal-msg, .modal-or + .cb-form { margin-top: 16px; }
.cb-form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.cb-form[hidden] { display: none; }
.cb-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); gap: 8px; }
.cb-field input { width: 100%; height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--white); font-size: 15px; transition: border-color .3s; }
.cb-field input:focus { border-color: var(--text); }
.cb-field input[aria-invalid="true"] { border-color: var(--red); }
.cb-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cb-agree { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.cb-agree input { flex: none; width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--red); }
.cb-agree a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.cb-agree.err { color: var(--red); }
.cb-submit { height: 48px; }
.cb-submit:disabled { opacity: .6; cursor: default; }
.cb-msg { margin: 0; font-size: 13px; color: var(--red); }
.cb-msg:empty { display: none; }
.cb-done { margin-top: 16px; padding: 20px 22px; border-radius: var(--r-card); background: var(--soft); font-size: 15px; line-height: 1.55; }
.cb-done b { display: block; font-family: var(--display); font-size: 20px; font-weight: 300; text-transform: uppercase; margin-bottom: 4px; }
.cb-done .btn { margin-top: 16px; width: 100%; }
/* Окно «Получить планировки»: сначала форма ради презентации, звонок и мессенджеры ниже */
.or-call { display: none; }
.modal-photo { overflow: hidden; }
.modal-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.modal-close { position: absolute; right: 16px; top: 16px; z-index: 2; }
.card { background: var(--white); padding: 24px 28px; display: flex; flex-direction: column; gap: 16px; min-width: 0; min-height: 0; }
/* Пресс-центр: горизонтальная лента одинаковых карточек с обложками, справа видна следующая карточка */
.articles { padding-top: clamp(64px, 7vw, 120px); }
.articles-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.all-link { display: inline-flex; align-items: center; padding: 6px 0 4px; border-bottom: 1px solid currentColor; }
.articles-nav { display: flex; align-items: center; gap: 8px; }
.articles-nav .all-link { margin-right: 12px; }
.articles-arrow { border: 1px solid var(--line); transition: opacity .3s, background .3s; }
.articles-arrow:disabled { opacity: .35; cursor: default; }
.articles-list { display: flex; column-gap: clamp(16px, 1.6vw, 24px); margin-top: clamp(28px, 4vw, 56px); padding: 0 var(--edge); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: var(--edge); scrollbar-width: none; }
.articles-list::-webkit-scrollbar { display: none; }
/* Footer: тёмный, огромный тонкий телефон, ниже — разделы и соцсети */
.footer { margin-top: clamp(64px, 7vw, 120px); background: var(--text); color: var(--white); }
.footer a { color: rgba(255,255,255,0.82); }
.footer a:hover { color: var(--white); }
.footer .wrap { padding-top: clamp(56px, 6vw, 96px); padding-bottom: 32px; }
.foot { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; row-gap: 56px; }
.foot-contacts { grid-column: 1 / -1; grid-row: 1; display: flex; flex-direction: column; gap: 14px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.25); }
.footer .foot-phone { font-family: var(--display); font-size: clamp(40px, 7.4vw, 136px); font-weight: 200; line-height: .95; letter-spacing: 0; white-space: nowrap; color: var(--white); }
.foot-mail { font-size: 16px; }
.foot-brand { grid-column: 1 / 5; grid-row: 2; display: flex; flex-direction: column; gap: 14px; }
.foot-brand img { height: 34px; width: auto; align-self: flex-start; filter: brightness(0) invert(1); }
.foot-brand span { font-size: 14px; color: rgba(255,255,255,0.6); }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.foot > nav.foot-col { grid-column: 7 / 10; grid-row: 2; }
.foot > div.foot-col { grid-column: 10 / -1; grid-row: 2; }
.foot-label { color: rgba(255,255,255,0.6); font-size: 11px; }
.socials { display: flex; gap: 8px; margin-top: 4px; }
.footer .social { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.85); display: flex; align-items: center; justify-content: center; transition: background .3s, color .3s, border-color .3s; }
.social svg { width: 18px; height: 18px; }
.footer .social:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.25); font-size: 13px; color: rgba(255,255,255,0.55); }
.footer .foot-bottom a { color: rgba(255,255,255,0.55); }
/* О компании: текст и ссылка на основной сайт, ниже фото всей компании во всю ширину */
.about { padding-top: clamp(64px, 7vw, 120px); }
.about-head { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; align-items: start; width: 100%; }
.about-head .section-title { grid-column: 1 / 7; margin: 0; }
.about-body { grid-column: 7 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.about-body p { margin: 0; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.5; color: var(--muted); }
.about .about-link { height: 56px; padding: 0 32px; background: var(--text); color: var(--white); font-size: 16px; letter-spacing: 0; text-transform: none; }
.about .about-link:hover { background: var(--red); color: var(--white); }
.about-photo { margin-top: clamp(24px, 3vw, 48px); height: min(44vw, 66vh); overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 94%; }
.footer .foot-main { display: block; margin-top: 10px; color: rgba(255,255,255,0.85); text-decoration: underline; text-underline-offset: 3px; }
.footer .foot-main:hover { color: var(--white); }
.article { flex: none; width: clamp(280px, min(30vw, 62vh), 560px); display: flex; flex-direction: column; scroll-snap-align: start; color: var(--text); }
.article-photo { aspect-ratio: 3 / 2; border-radius: var(--r-card); }
.article-meta { margin-top: 14px; color: var(--muted); font-size: 11px; }
.article-title { margin-top: 8px; font-size: clamp(17px, 1.4vw, 22px); line-height: 1.25; transition: color .3s; }
.article:hover { color: var(--text); }
.article:hover .article-title { color: var(--red); }
/* Появление блоков при прокрутке (класс ставит script.js) */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .hero-bg img, .hero-text, .hero-offer, .hero-since { animation: none; }
}
/* Medium screens */
@media (max-width: 1180px) {
  .header { gap: 32px; }
  .header-nav { gap: 22px; }
  .header-phone { display: none; }
  .hero-text { grid-column: 1 / 7; }
  .hero h1 { font-size: min(4.5vw, 10vh); }
  .hero-offer { grid-column: 7 / -1; }
  .contact { --h: 460px; }
  .steps-list { gap: 16px; }
}
@media (max-width: 960px) {
  .header-nav { gap: 16px; }
}
/* ---------- Каждый раздел ровно на один экран (компьютер) ---------- */
@media (min-width: 901px) and (min-height: 620px) {
  html.makspol-home { scroll-snap-type: y proximity; }
  #top, #steps, #press, #contacts { scroll-snap-align: start; }
  .hero { min-height: 0; height: 100svh; }
  /* Этапы: слева заголовок и описание этапа, справа круг, внизу этапы в ряд */
  .steps-wrap { height: var(--screen); }
  .steps { height: 100%; padding: clamp(36px, 7vh, 88px) var(--edge) clamp(28px, 5vh, 60px); grid-template-rows: auto minmax(0, 1fr) auto; }
  .steps .section-title { grid-column: 1 / 7; grid-row: 1; }
  .cycle-desc-l { grid-column: 1 / 6; grid-row: 2; align-self: center; margin: 0; max-width: 520px; min-height: 0; text-align: left; font-size: clamp(17px, min(1.6vw, 2.9vh), 26px); }
  .cycle-box { grid-column: 7 / -1; grid-row: 1 / span 2; margin: 0; display: flex; align-items: center; justify-content: center; min-height: 0; }
  .cycle { width: auto; height: 100%; max-height: 600px; max-width: 100%; margin: 0; }
  .steps-list { grid-row: 3; margin-top: clamp(20px, 4vh, 48px); }
  .steps-list button { gap: clamp(6px, 1.4vh, 12px); padding-top: clamp(12px, 2.2vh, 20px); }
  .steps-list .num { font-size: clamp(26px, min(2.8vw, 5.4vh), 48px); }
  /* В колонке flex обёртки с margin: auto сжимаются до содержимого — растягиваем на всю ширину */
  .articles > .wrap { width: 100%; }
  /* «Не нашли подходящий вариант?» — компактная карточка между экранами */
  .contact-wrap { margin-top: clamp(32px, 6vh, 72px); margin-bottom: clamp(32px, 6vh, 72px); }
  .card { padding: clamp(14px, 2.6vh, 24px) 28px; gap: clamp(8px, 1.6vh, 16px); }
  /* Пресс-центр: горизонтальная лента одинаковых карточек с обложками, справа видна следующая карточка */
  .articles { height: var(--screen); display: flex; flex-direction: column; padding-top: clamp(24px, 5vh, 56px); padding-bottom: clamp(16px, 3vh, 32px); }
  /* Обложки тянутся на всю высоту экрана */
  .articles-list { flex: 1; min-height: 0; margin-top: clamp(16px, 3.4vh, 40px); }
  .article-photo { flex: 1; min-height: 0; aspect-ratio: auto; }
  /* Подвал обычной высоты сразу после пресс-центра */
  .footer { margin-top: 0; }
  .footer .foot-phone { font-size: clamp(40px, min(7.4vw, 15vh), 136px); }
}
/* Узкий компьютер: в ячейке «по срокам сдачи» легенда уходит под кольцо */
@media (min-width: 901px) and (max-width: 1180px) and (min-height: 620px) {
  .card { padding-left: 20px; padding-right: 20px; }
}
/* Пять пунктов меню уже не помещаются в строку: прячем их под кнопку «Меню» */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .menu-btn { display: inline-block; }
  .hero { grid-template-rows: minmax(0, 1fr) auto auto minmax(28px, .5fr) auto auto; }
  .hero-text { grid-column: 1 / -1; grid-row: 2; }
  .hero h1 { font-size: min(7vw, 60px); }
  .hero-offer { grid-column: 1 / -1; grid-row: 3; justify-self: start; margin-top: 28px; }
  .hero-since { grid-row: 5; margin-top: 8px; }
  .hero-note { grid-row: 6; }
  .steps-list { display: none; }
  .foot-brand { grid-column: 1 / -1; }
  .foot > nav.foot-col { grid-column: 1 / 7; grid-row: 3; }
  .foot > div.foot-col { grid-column: 7 / -1; grid-row: 3; }
}
/* Планшет: первый экран — на весь экран */
@media (min-width: 761px) and (max-width: 900px) {
  .hero { min-height: 100svh; }
}
/* Mobile */
@media (max-width: 760px) {
  .about { padding-top: 56px; }
  .about-head { display: block; }
  .about-body { margin-top: 16px; }
  .about .about-link { width: 100%; }
  .about-photo { height: 62vw; }
  :root { --header: 64px; --gutter: 20px; }
  .header { gap: 12px; }
  .header-logo img { height: 26px; }
  .header-nav { display: none; }
  .header-actions { gap: 8px; }
  .header-call { display: none; }
  .menu-btn { display: inline-block; }
  .menu { left: -12px; right: -12px; }
  .menu a.h { font-size: 24px; }
  /* Первый экран на телефоне: заголовок, ниже панель с текстом, ценностями и кнопкой */
  .hero { min-height: 100svh; padding: calc(var(--header) + 20px) var(--gutter) 16px; display: flex; flex-direction: column; justify-content: flex-end; }
  .hero-bg img { object-position: 60% 30%; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(18,20,24,0.72) 0%, rgba(18,20,24,0.62) 35%, rgba(18,20,24,0.45) 60%, rgba(18,20,24,0.75) 100%); }
  .hero h1 { font-size: min(9.6vw, 48px); line-height: 1.08; }
  .hero-text { margin-top: auto; }
  .hero-offer { width: 100%; margin-top: 20px; padding: 18px; }
  .offer-name { font-size: 14px; }
  .offer-sub, .offer-row dt { font-size: 12px; }
  .offer-base { font-size: 17px; }
  .offer-site { font-size: 19px; }
  /* На узком экране подпись над ценой, чтобы размытая цена не выходила за блок */
  .offer-row.offer-row-our { flex-direction: column; align-items: flex-start; gap: 4px; }
  .offer-hidden { font-size: 28px; filter: blur(7px); }
  .offer-call { height: 52px; }
  .hero-since { margin-top: 24px; font-size: 22px; }
  .hero-note { margin-top: 16px; font-size: 11px; }
  .partners { padding: 26px 0; }
  .partners-track { gap: 52px; padding-left: 52px; animation-duration: 50s; }
  .section-title { font-size: clamp(30px, 8.6vw, 40px); }
  .steps { padding: 64px var(--gutter) 56px; min-height: var(--screen); }
  .cycle-box { margin-top: 48px; }
  .cycle { max-width: 330px; }
  .cycle-mark span { width: 30px; height: 30px; font-size: 12px; }
  .cycle-card { inset: 21%; gap: 8px; }
  .cycle-title { font-size: 19px; }
  .cycle-card .btn { height: 40px; padding: 0 16px; margin-top: 4px; }
  .cycle-desc-l { margin-top: 28px; min-height: 9em; font-size: 17px; }
  .reset { height: 46px; }
  .contact-wrap { margin-top: 56px; margin-bottom: 56px; }
  .contact { --pad: 22px; display: flex; flex-direction: column; height: auto; border-radius: 24px; }
  .contact h2 { padding-top: 32px; font-size: clamp(28px, 8.4vw, 38px); }
  .contact-body { gap: 22px; padding-top: 18px; padding-bottom: 8px; }
  .contact-buttons { max-width: none; }
  .contact-photo { order: 3; margin: 12px 0 0; aspect-ratio: 3 / 2; -webkit-mask-image: none; mask-image: none; }
  .contact p { font-size: 15px; }
  .contact-buttons .btn { height: 50px; padding: 0 16px; }
  .modal { width: 100%; max-height: calc(100% - 24px); margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .modal[open] { animation-name: sheetIn; }
  .modal-grid { grid-template-columns: minmax(0,1fr); min-height: 0; }
  .modal-photo { display: none; }
  .modal-body { padding: 32px 20px calc(24px + env(safe-area-inset-bottom)); }
  .modal-title { font-size: 26px; padding-right: 44px; }
  .modal-sub { font-size: 14px; }
  .modal-call { margin-top: 22px; min-height: 64px; }
  .modal-call-num { font-size: 21px; }
  .modal-or { margin-top: 20px; }
  .modal-close { right: 12px; top: 12px; border: 1px solid var(--hair); }
  .card { padding: 22px 18px; }
  .articles { padding-top: 56px; }
  .articles-list { margin-top: 24px; }
  /* На телефоне лента листается пальцем, стрелки не нужны */
  .articles-arrow { display: none; }
  .articles-nav .all-link { margin-right: 0; }
  .article { width: 78vw; }
  .article-title { font-size: 17px; }
  .footer { margin-top: 56px; }
  .footer .wrap { padding-top: 48px; padding-bottom: 28px; }
  .foot { row-gap: 36px; }
  .foot-contacts { padding-bottom: 36px; }
  /* Номер всегда в одну строку: кегль считается от ширины экрана */
  .footer .foot-phone { font-size: min(9.6vw, 46px); }
  .foot-mail { font-size: 15px; }
  .foot-brand img { height: 28px; }
  .foot-bottom { flex-direction: column-reverse; gap: 8px; margin-top: 40px; padding-top: 20px; font-size: 12px; }
}
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Заглушки вместо виджетов каталога и аналитики ---------- */
.stub-section { padding-top: clamp(40px, 5vw, 72px); }
.stub-wrap { width: 100%; margin-top: clamp(16px, 3vh, 32px); }
.widget-stub { height: clamp(360px, 60vh, 640px); border-radius: 24px; font-size: 14px; }
@media (max-width: 900px) { #analytics { padding-bottom: 56px; } }
@media (min-width: 901px) and (min-height: 620px) {
  /* Как и виджеты, заглушка занимает весь экран */
  #catalog, #analytics { scroll-snap-align: start; }
  .stub-section { height: var(--screen); display: flex; flex-direction: column; padding-top: clamp(16px, 3vh, 28px); padding-bottom: clamp(16px, 3vh, 32px); }
  .stub-section > .wrap { width: 100%; }
  .stub-section > .stub-wrap { flex: 1; min-height: 0; }
  .stub-wrap:first-of-type { margin-top: 0; }
  .widget-stub { height: 100%; }
}

/* Страница политики конфиденциальности */
.legal { padding-top: calc(var(--header) + clamp(32px, 5vw, 72px)); }
.legal-body { max-width: 760px; overflow-wrap: anywhere; }
.legal-body h1 { margin: 0; font-family: var(--display); font-weight: 300; font-size: clamp(20px, 6.6vw, 52px); line-height: 1.1; text-transform: uppercase; overflow-wrap: normal; }
.legal-body .legal-sub { margin: 16px 0 0; color: rgba(0,0,0,0.6); }
.legal-body h2 { margin: 44px 0 14px; font-family: var(--display); font-weight: 400; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; }
.legal-body p { margin: 0 0 12px; }
.legal-body h1 + p { margin-top: 28px; }
.legal-body ul { margin: 0 0 12px; padding-left: 20px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.legal-footer { margin-top: clamp(48px, 6vw, 96px); }
.legal-footer .wrap { padding-top: 0; }
.legal-footer .foot-bottom { margin-top: 0; border-top: 0; }

/* Страница ЖК (шаблон) */
.zhk { padding-top: calc(var(--header) + clamp(24px, 4vw, 56px)); }
.zhk-crumbs { margin-bottom: 16px; font-size: 13px; color: var(--muted); }
.zhk-crumbs a { color: var(--muted); }
.zhk-crumbs a:hover { color: var(--red); }
.zhk-crumbs span[aria-hidden] { margin: 0 8px; }
.zhk h1 { margin: 0; font-family: var(--display); font-weight: 300; font-size: clamp(32px, 4.4vw, 68px); line-height: 1; text-transform: uppercase; }
.zhk-lead { margin: 24px 0 0; max-width: 820px; font-size: 17px; color: var(--muted); }
.zhk-keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; margin: 28px 0 0; padding: 0; list-style: none; }
.zhk-keys li { padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.4); }
.zhk-keys span { display: block; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.zhk-keys b { display: block; margin-top: 4px; font-size: 17px; font-weight: 500; }
.zhk-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
/* Фото с главными фактами поверх: затемнение слева и снизу, чтобы текст читался */
.zhk-cover { position: relative; display: flex; align-items: flex-end; min-height: clamp(520px, 46vw, 680px); overflow: hidden; color: var(--white); background: var(--text); }
.zhk-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 30%; }
.zhk-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,22,26,0.88) 0%, rgba(20,22,26,0.7) 34%, rgba(20,22,26,0) 62%), linear-gradient(0deg, rgba(20,22,26,0.5) 0%, rgba(20,22,26,0) 40%); }
.zhk-cover-text { position: relative; z-index: 1; width: 100%; max-width: 680px; padding: clamp(24px, 3.4vw, 56px); }
.zhk-sec { margin-top: clamp(64px, 7vw, 112px); }
.zhk-sec h2, .zhk-cta h2 { margin: 0 0 24px; font-family: var(--display); font-weight: 300; font-size: clamp(26px, 3vw, 44px); line-height: 1.05; text-transform: uppercase; }
.zhk-sec h3 { margin: 0 0 12px; font-family: var(--display); font-weight: 400; font-size: 18px; }
.zhk-answer { margin: 0 0 28px; max-width: 820px; font-size: 19px; line-height: 1.45; }
.zhk-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: 32px; margin: 0; }
.zhk-facts div { padding: 14px 0; border-top: 1px solid var(--hair); }
.zhk-facts dt { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.zhk-facts dd { margin: 4px 0 0; font-weight: 500; }
.zhk-scroll { overflow-x: auto; max-width: 820px; }
.zhk-table { width: 100%; border-collapse: collapse; }
.zhk-table th, .zhk-table td { padding: 12px 0; border-bottom: 1px solid var(--hair); text-align: left; font-weight: 400; vertical-align: top; }
.zhk-table td { padding-left: 16px; text-align: right; font-weight: 500; white-space: nowrap; }
.zhk-table thead th { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.zhk-table thead th + th { text-align: right; }
.zhk-note { margin: 12px 0 24px; font-size: 13px; color: var(--muted); }
.zhk-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); max-width: 1200px; }
.zhk-list { margin: 0; padding: 0; list-style: none; }
.zhk-list li { padding: 12px 0; border-top: 1px solid var(--hair); }
.zhk-two + .zhk-text { margin-top: 32px; }
.zhk-text { max-width: 760px; }
.zhk-text p { margin: 0 0 14px; }
.zhk-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; max-width: 1400px; }
.zhk-split .zhk-table + h3 { margin-top: 28px; }
.zhk-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; max-width: 1400px; }
.zhk-faq-item { padding: 20px 0; border-top: 1px solid var(--hair); }
.zhk-faq-item h3 { margin-bottom: 8px; }
.zhk-faq-item p { margin: 0; color: var(--muted); }
.zhk-cta { margin-top: clamp(64px, 7vw, 112px); padding: clamp(32px, 5vw, 64px); background: var(--text); color: var(--white); }
.zhk-cta p { margin: 0 0 24px; color: rgba(255,255,255,0.75); }
.zhk-updated { margin: 24px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .zhk-two, .zhk-split, .zhk-faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .zhk-lead { font-size: 16px; }
  .zhk-cover { min-height: 600px; }
  .zhk-cover img { object-position: 62% 0%; height: 62%; }
  .zhk-cover::after { background: linear-gradient(0deg, rgba(20,22,26,1) 0%, rgba(20,22,26,1) 42%, rgba(20,22,26,0) 64%); }
  .zhk-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .zhk-keys b { font-size: 15px; }
  .zhk-actions .btn, .zhk-sec > .btn, .zhk-cta .btn { width: 100%; }
  .zhk-answer { font-size: 17px; }
  .zhk-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
}

/* WordPress: preserve fixed header while the admin toolbar is visible. */
body.admin-bar .header{top:32px}
.wp-basic{padding-top:calc(var(--header) + 48px);padding-bottom:64px;min-height:65vh}
.wp-basic .entry-content{max-width:780px;margin:32px auto;font-size:18px;line-height:1.7}
.wp-basic h1{font-family:var(--display);font-weight:300;font-size:clamp(32px,4vw,64px);line-height:1.15}
@media(max-width:782px){body.admin-bar .header{top:46px}}
@media(max-width:600px){body.admin-bar .header{position:absolute}}

.zhk-cover-empty{min-height:0}
.zhk-cover-empty::after{display:none}
.zhk-two:has(>div:only-child),.zhk-split:has(>.zhk-text:empty){grid-template-columns:minmax(0,1fr)}
.zhk{overflow-wrap:anywhere}
.zhk-table th{overflow-wrap:anywhere}

.msp-widget-frame{display:block;width:100%;height:100%;min-height:600px;border:0}.stub-wrap:has(.msp-widget-frame){flex:1;min-height:0}.stub-wrap:has(script){display:block}

.article-photo{position:relative;overflow:hidden;display:block}.article-photo.ph{display:flex}.article-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
