/* =====================================================================
   Driver Child 2.0 — «Персональный водитель»
   Стиль: тёмная «сцена» с одним тёплым источником света (профиль 2 «Тёмный кинематографичный»).
   Шрифты: Cormorant Unicase (заголовки) + Geologica (текст).
   ===================================================================== */

:root {
	--ink: #0D0C0E;          /* фон-сцена */
	--stage: #17151A;        /* карточки */
	--stage-2: #1F1C21;
	--line: rgba(236, 233, 227, .12);
	--line-strong: rgba(236, 233, 227, .32);
	--text: #ECE9E3;         /* тёплый светлый, не чисто белый */
	--muted: #9C978E;
	--amber: #D9A441;        /* единственный акцент */
	--amber-soft: rgba(217, 164, 65, .16);
	--f-display: "Cormorant Unicase", "Cormorant", Georgia, "Times New Roman", serif;
	--f-body: "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--r: 14px;
	--r-lg: 22px;
	--gutter: max(16px, env(safe-area-inset-left, 0px));
	--gutter-r: max(16px, env(safe-area-inset-right, 0px));
	color-scheme: dark;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html { background: var(--ink); }
body { margin: 0; background: transparent; color: var(--text); font: 300 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
/* Картинки не перехватывают наведение и клик: Яндекс Браузер и Chrome не показывают поверх них
   кнопки «Найти похожее», «Перевести» и т. п., нельзя перетащить или выделить файл.
   Клик по картинке внутри ссылки (карточки) по-прежнему открывает ссылку. */
img { pointer-events: none; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; letter-spacing: -.005em; text-wrap: balance; margin: 0; line-height: 1.12; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dc-skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--text); color: var(--ink); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.dc-skip:focus { top: 12px; }
.dc-wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.dc-eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0; }
.dc-i { width: 18px; height: 18px; flex: none; }
.dc-hl { color: var(--amber); }
.dc-empty { color: var(--muted); padding: 40px 0; }

/* Фон «тёплый графит»: мягкие янтарные пятна света, как от ночных фонарей (неподвижны при прокрутке),
   и лёгкое плёночное зерно поверх, чтобы тёмные плоскости не выглядели плоской заливкой. */
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(900px 600px at 85% -5%, rgba(217, 164, 65, .10), transparent 70%), radial-gradient(800px 700px at -10% 55%, rgba(120, 95, 70, .10), transparent 70%), radial-gradient(900px 700px at 110% 95%, rgba(217, 164, 65, .07), transparent 70%); }
html::after { content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 .9  0 0 0 0 .8  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Кнопки ---------- */
.dc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 15px/1.2 var(--f-body); padding: 14px 24px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.dc-btn--main { background: var(--text); color: var(--ink); }
.dc-btn--main:hover { background: #fff; }
.dc-btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.dc-btn--ghost:hover { border-color: var(--line-strong); }
.dc-btn--sm { padding: 10px 18px; font-size: 14px; }
.dc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.dc-more { color: var(--muted); text-decoration: none; font-size: 14px; }
.dc-more:hover { color: var(--amber); }
.dc-ico { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: inline-grid; place-items: center; color: var(--text); background: none; cursor: pointer; text-decoration: none; flex: none; }
.dc-ico:hover { border-color: var(--line-strong); }

/* ---------- Учебный режим ---------- */
.dc-study-strip { background: #121012; border-bottom: 1px solid rgba(217, 164, 65, .25); font-size: 13px; color: var(--muted); }
.dc-study-strip .dc-wrap { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; justify-content: center; padding-block: 8px; text-align: center; }
.dc-study-strip b { color: var(--amber); font-weight: 500; }
.dc-study-strip button { color: var(--text); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
dialog.dc-study { max-width: min(440px, calc(100vw - 32px)); border: 1px solid rgba(217, 164, 65, .35); border-radius: 20px; background: var(--stage); color: var(--text); padding: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
dialog.dc-study::backdrop { background: rgba(5, 5, 7, .7); backdrop-filter: blur(3px); }
dialog.dc-study h2 { font-size: 28px; margin: 10px 0 12px; }
dialog.dc-study p { color: var(--muted); }
dialog.dc-study form { margin: 8px 0 0; }
.dc-study-badge { display: inline-block; border: 1px dashed rgba(217, 164, 65, .5); border-radius: 999px; padding: 6px 14px; color: var(--amber); font-size: 13px; }

/* ---------- Шапка ---------- */
.dc-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; padding-block: 12px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 31; background: var(--ink); }
.admin-bar .dc-header { top: 32px; }
.dc-header__bar { display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 22px; border: 1px solid var(--line); border-radius: 999px; background: rgba(14, 14, 17, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.dc-logo { font-family: var(--f-display); font-size: 19px; font-weight: 500; letter-spacing: .02em; text-decoration: none; white-space: nowrap; line-height: 1.1; color: var(--text); }
.dc-logo__accent { color: var(--amber); }
.dc-nav { margin-left: auto; }
.dc-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.dc-menu > li { position: relative; }
.dc-menu a { display: block; font-size: 14px; white-space: nowrap; text-decoration: none; color: var(--muted); padding: 9px 11px; border-radius: 999px; }
.dc-menu a:hover, .dc-menu .current-menu-item > a, .dc-menu .current-menu-ancestor > a, .dc-menu .current_page_parent > a { color: var(--text); }
.dc-menu > .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .7; }
.dc-menu .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: calc(100% + 8px); min-width: 260px; background: var(--stage); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s; }
.dc-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.dc-menu li:hover > .sub-menu, .dc-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.dc-menu .sub-menu a { border-radius: 10px; padding: 10px 12px; color: var(--text); white-space: normal; }
.dc-menu .sub-menu a:hover { background: var(--stage-2); }
.dc-header__tel { font-size: 14px; white-space: nowrap; color: var(--text); text-decoration: none; font-variant-numeric: tabular-nums; }
.dc-header__icons { display: none; gap: 6px; }
.dc-burger { display: none; }
@media (max-width: 1180px) {
	.dc-nav, .dc-header__tel { display: none; }
	.dc-header__icons { display: flex; margin-left: auto; }
	.dc-burger { display: inline-grid; }
}
@media (max-width: 600px) {
	.dc-header__order { display: none; }
	.dc-header__bar { gap: 8px; padding-left: 16px; }
	.dc-logo { font-size: 16px; white-space: normal; }
	.dc-logo span { display: block; }
}
@media (max-width: 782px) { .admin-bar .dc-header { top: 46px; } }

/* Мобильное меню */
.dc-drawer { position: fixed; inset: 0; z-index: 60; background: rgba(5, 5, 7, .72); backdrop-filter: blur(4px); }
.dc-drawer__panel { position: absolute; inset: 0 0 0 auto; width: min(420px, 100%); background: var(--stage); border-left: 1px solid var(--line); padding: calc(20px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) 24px; overflow-y: auto; display: grid; align-content: start; gap: 24px; }
.dc-drawer__close { justify-self: end; }
.dc-drawer__menu, .dc-drawer__menu ul { list-style: none; margin: 0; padding: 0; }
.dc-drawer__menu > li { border-bottom: 1px solid var(--line); }
.dc-drawer__menu a { display: block; padding: 14px 0; font-size: 18px; text-decoration: none; }
.dc-drawer__menu .sub-menu { padding: 0 0 12px 14px; }
.dc-drawer__menu .sub-menu a { padding: 8px 0; font-size: 15px; color: var(--muted); }
.dc-drawer__contacts { display: grid; gap: 10px; }
.dc-drawer__contacts a:first-child { font-size: 20px; text-decoration: none; }
.dc-drawer__contacts span { color: var(--muted); font-size: 14px; }
html.dc-lock { overflow: hidden; }

/* ---------- Хлебные крошки ---------- */
.dc-crumbs ol { list-style: none; margin: 0; padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.dc-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.dc-crumbs a { text-decoration: none; }
.dc-crumbs a:hover { color: var(--text); }
.dc-crumbs [aria-current] { color: var(--text); opacity: .8; }

/* ---------- Первый экран ---------- */
.dc-hero { position: relative; overflow: hidden; padding-block: 36px 56px; }
.dc-hero__word { display: none; }
.dc-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); gap: 0; align-items: center; }
.dc-hero__text { position: relative; z-index: 2; }
.dc-hero__text { min-width: 0; }
.dc-hero__title { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.02; font-weight: 300; margin-top: 16px; }
.dc-hero__title em { font-style: normal; color: var(--amber); }
.dc-hero__lead { color: var(--muted); font-size: 18px; max-width: 46ch; margin: 22px 0 26px; }
.dc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 26px; }
.dc-price b { font: 400 clamp(28px, 3vw, 38px) var(--f-display); font-variant-numeric: tabular-nums; }
.dc-price span { color: var(--muted); font-size: 14px; }
.dc-scene { position: relative; z-index: 1; aspect-ratio: 16 / 11; max-width: none; margin-left: -8%; margin-right: calc(-1 * max(0px, (100vw - 1180px) / 2) - var(--gutter-r)); }
/* Машина на фото стоит в нижней части кадра — сцена поднята, чтобы машина была по центру текста */
@media (min-width: 861px) { .dc-home .dc-hero__grid > .dc-scene { transform: translateY(-13%); } .dc-home .dc-scene__img { object-position: 50% 92%; } }
/* Фото первого экрана растворяется в фоне страницы: мягкие края по всем сторонам, без рамки и ореола */
.dc-scene--photo { -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%, #000 80%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 18%, #000 72%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0%, #000 34%, #000 80%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 18%, #000 72%, transparent 100%); mask-composite: intersect; }
.dc-scene:not(.dc-scene--photo) { background: radial-gradient(70% 60% at 50% 70%, #2a2116 0%, transparent 70%); }
.dc-scene__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; filter: brightness(1.12); }
.dc-scene .dc-silhouette { position: absolute; left: 50%; bottom: 16%; width: 82%; transform: translateX(-50%); z-index: 2; }
@media (max-width: 860px) { .dc-hero__grid { grid-template-columns: minmax(0, 1fr); } .dc-scene { order: -1; aspect-ratio: 16 / 11; margin: 0 calc(-1 * var(--gutter-r)) -2% calc(-1 * var(--gutter)); } .dc-scene--photo { -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 14%, #000 74%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 14%, #000 74%, transparent 100%); } }

.dc-chips { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dc-chips li { border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; font-size: 14px; }
.dc-chips b { color: var(--amber); font-weight: 500; }

.dc-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dc-facts li { padding: 26px 24px; display: grid; gap: 4px; }
.dc-facts li + li { border-left: 1px solid var(--line); }
.dc-facts b { font: 400 30px/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.dc-facts span { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) { .dc-facts { grid-template-columns: 1fr; } .dc-facts li + li { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Секции ---------- */
.dc-main { padding-bottom: 24px; }
.dc-sec { padding-top: 80px; }
.dc-sec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 28px; }
.dc-sec__head h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 300; }
.dc-sec__head p { color: var(--muted); max-width: 46ch; margin: 0; }

/* Услуги */
.dc-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dc-services--hub { margin-top: 32px; }
.dc-svc { display: flex; flex-direction: column; border-radius: var(--r); border: 1px solid var(--line); text-decoration: none; overflow: hidden; background: var(--stage); transition: border-color .2s; }
.dc-svc:hover { border-color: rgba(217, 164, 65, .5); }
.dc-svc__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--stage-2); }
.dc-svc__img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.12); transition: transform .6s ease; }
.dc-svc:hover .dc-svc__img { transform: scale(1.03); }


.dc-svc__body { display: grid; gap: 8px; padding: 20px 22px 24px; flex: 1; align-content: start; }
.dc-svc__title { font: 400 23px/1.18 var(--f-display); }
.dc-svc__text { color: var(--muted); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dc-svc__from { font-size: 15px; font-variant-numeric: tabular-nums; }
.dc-svc__from b { color: var(--amber); font-weight: 500; }
@media (max-width: 860px) { .dc-services { grid-template-columns: 1fr; } }

/* Автопарк */
.dc-fleet { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, calc((100% - 32px) / 3)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.dc-fleet > * { scroll-snap-align: start; }
.dc-fleet--page { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin-top: 32px; }
.dc-car { border: 1px solid var(--line); border-radius: var(--r); background: var(--stage); padding: 16px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.dc-car__img { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: radial-gradient(80% 90% at 50% 100%, #3a2e1c, #1d1c20 70%); }
.dc-car__img img { width: 100%; height: 100%; object-fit: cover; }
.dc-car__img .dc-silhouette { width: 86%; margin: 12% auto 0; }
.dc-car__class { color: var(--amber); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.dc-car__title { font: 500 16px/1.3 var(--f-body); }
.dc-car__title a { text-decoration: none; }
.dc-car__title a:hover { color: var(--amber); }
.dc-car__specs { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: 13px; color: var(--muted); }
.dc-car__specs dd { margin: 0; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.dc-car__specs--big { font-size: 16px; gap: 10px 24px; max-width: 420px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 20px 0; }
@media (max-width: 1100px) { .dc-fleet--page { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .dc-fleet { grid-auto-columns: 82%; } }
@media (max-width: 560px) { .dc-fleet--page { grid-template-columns: 1fr; } }
.dc-carpage { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; padding-top: 28px; }
.dc-carpage h1 { font-size: clamp(34px, 4vw, 54px); font-weight: 300; margin-top: 10px; }
.dc-carpage h1 em { font-style: normal; color: var(--amber); }
.dc-carpage__lead { color: var(--muted); font-size: 17px; margin: 18px 0 0; max-width: 52ch; }
.dc-carpage__text { margin-top: 56px; }
.dc-carpage__img { border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(80% 90% at 50% 100%, #2a2318, #141417 70%); aspect-ratio: 16 / 10; display: grid; place-items: center; }
.dc-carpage__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .dc-carpage { grid-template-columns: minmax(0, 1fr); } }

/* Карточки статей */
.dc-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dc-post { min-width: 0; }
.dc-post__link { display: grid; height: 100%; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; background: var(--stage); }
.dc-post__link:hover { border-color: rgba(217, 164, 65, .45); }
.dc-post__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.dc-post__img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.12); transition: transform .6s ease; }
.dc-post__link:hover .dc-post__img img { transform: scale(1.03); }
.dc-cover--empty { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #2b2216, #141417 70%); }
.dc-post__body { display: grid; gap: 8px; align-content: start; padding: 18px 20px 22px; }
.dc-post__cat { color: var(--amber); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.dc-post__title { font: 500 17px/1.35 var(--f-body); }
.dc-post__meta { color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .dc-posts { grid-template-columns: 1fr; } }

/* Фильтр рубрик и пагинация */
.dc-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.dc-filter a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; text-decoration: none; color: var(--muted); }
.dc-filter a span { opacity: .6; margin-left: 4px; }
.dc-filter a:hover { color: var(--text); border-color: var(--line-strong); }
.dc-filter button { font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; background: none; color: var(--muted); cursor: pointer; }
.dc-filter button span { opacity: .6; margin-left: 4px; }
.dc-filter button:hover { color: var(--text); border-color: var(--line-strong); }
.dc-filter button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--ink); }
.dc-filter--cars { margin: 28px 0 0; }
.dc-filter a[aria-current] { background: var(--text); border-color: var(--text); color: var(--ink); }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--muted); }
.page-numbers.current { background: var(--text); color: var(--ink); border-color: var(--text); }

/* ---------- Обычные страницы ---------- */
.dc-page__head { padding: 28px 0 8px; max-width: 820px; }
.dc-page__head h1 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 300; }
.dc-page__lead { color: var(--muted); font-size: 18px; margin: 18px 0 0; max-width: 62ch; }
.dc-page__img { margin: 32px 0 0; border-radius: var(--r-lg); overflow: hidden; max-height: 520px; }
.dc-page__img img { width: 100%; height: 100%; object-fit: cover; }
.dc-contacts { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.dc-contacts li { border: 1px solid var(--line); border-radius: var(--r); background: var(--stage); padding: 18px 20px; display: grid; gap: 6px; }
.dc-contacts span { color: var(--muted); font-size: 13px; }
.dc-contacts a, .dc-contacts b { font-weight: 500; text-decoration: none; }
.dc-contacts a:hover { color: var(--amber); }
.dc-404__box { padding: 64px 0 24px; max-width: 720px; }
.dc-404__code { font: 300 clamp(90px, 16vw, 180px)/1 var(--f-display); color: var(--amber); margin: 0 0 8px; }
.dc-404 h1 { font-size: clamp(34px, 4vw, 52px); }
.dc-404 .dc-actions { margin-top: 28px; }
.dc-book-fallback { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--stage); padding: 28px; }
.dc-book-fallback p { color: var(--muted); }

/* ---------- Содержимое из редактора (страницы и статьи) ---------- */
.dc-content { font-size: 17px; line-height: 1.7; }
.dc-content > * { max-width: 760px; }
.dc-content--wide > * { max-width: 820px; }
.dc-content--wide > .dcb, .dc-content--wide > .wp-block-table, .dc-content--wide > .wp-block-columns, .dc-content--wide > .dc-steps, .dc-content--wide > ol.is-style-steps, .dc-content--wide > .alignwide, .dc-content--wide > .wp-block-group.is-style-wide { max-width: none; }
.dc-content h2 { font-size: clamp(30px, 3.2vw, 42px); font-weight: 300; margin: 72px 0 20px; scroll-margin-top: 110px; }
.dc-content h3 { font: 500 20px/1.3 var(--f-body); margin: 36px 0 12px; }
.dc-content > :first-child { margin-top: 32px; }
.dc-content p { margin: 0 0 18px; }
.dc-content p, .dc-content li, .dc-content td { overflow-wrap: anywhere; }
.dc-content .dc-btn--main { color: var(--ink); text-decoration: none; }
.dc-content .dc-btn--ghost { color: var(--text); text-decoration: none; }
.dc-content a:not(.dc-btn) { color: var(--amber); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.dc-content ul, .dc-content ol { padding-left: 22px; margin: 0 0 20px; }
.dc-content li { margin-bottom: 8px; }
.dc-content li::marker { color: var(--amber); }
.dc-content strong, .dc-content b { font-weight: 500; }
.dc-content blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--amber); color: var(--text); font-size: 19px; }
.dc-content figure { margin: 0 0 24px; }
.dc-content figure img { border-radius: var(--r); }
.dc-content figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.dc-content hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* Таблицы (блок «Таблица») — прокрутка внутри своего контейнера */
/* Таблицы: без светлых линий между строками — строки разделены мягкой «зеброй»,
   шапка — янтарная подпись, первая колонка ярче, остальные приглушены (легче читать на тёмном фоне). */
.wp-block-table { --t-text: #CFC9BF; --t-strong: var(--text); --t-head: var(--amber); --t-bg: rgba(236, 233, 227, .025); --t-zebra: rgba(236, 233, 227, .035); --t-hover: rgba(217, 164, 65, .07);
	overflow-x: auto; border: 0; border-radius: var(--r); background: var(--t-bg); margin: 8px 0 28px; }
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 520px; color: var(--t-text); }
.wp-block-table th, .wp-block-table td { padding: 13px 20px; text-align: left; border: 0; vertical-align: top; }
.wp-block-table thead th, .wp-block-table thead td { color: var(--t-head); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding-top: 16px; padding-bottom: 12px; background: rgba(217, 164, 65, .06); }
.wp-block-table tbody tr:nth-child(even) { background: var(--t-zebra); }
.wp-block-table tbody tr { transition: background .15s; }
.wp-block-table tbody tr:hover { background: var(--t-hover); }
.wp-block-table tbody td:first-child { color: var(--t-strong); font-weight: 500; }
.wp-block-table td { font-variant-numeric: tabular-nums; }
.wp-block-table figcaption { padding: 10px 20px; margin: 0; color: var(--muted); font-size: 13px; }

/* Вопросы и ответы (блок «Подробности») */
.dc-content details { border-bottom: 1px solid var(--line); max-width: 820px; }
.dc-content details:first-of-type, .dc-content h2 + details { border-top: 1px solid var(--line); }
.dc-content summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-size: 18px; position: relative; }
.dc-content summary::-webkit-details-marker { display: none; }
.dc-content summary::after { content: "+"; position: absolute; right: 6px; top: 13px; font: 300 30px/1 var(--f-display); color: var(--amber); transition: transform .2s; }
.dc-content details[open] summary::after { transform: rotate(45deg); }
.dc-content details > :not(summary) { color: var(--muted); max-width: 68ch; }
.dc-content details > :last-child { margin-bottom: 22px; }

/* Шаги (нумерованный список со стилем «Шаги» или классом dc-steps) */
.dc-content ol.is-style-steps, .dc-content ol.dc-steps { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); counter-reset: dc-step; }
.dc-content ol.is-style-steps > li, .dc-content ol.dc-steps > li { counter-increment: dc-step; padding: 24px 22px 0 0; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.dc-content ol.is-style-steps > li::before, .dc-content ol.dc-steps > li::before { content: counter(dc-step, decimal-leading-zero); display: block; font: 300 44px/1 var(--f-display); color: var(--amber); margin-bottom: 14px; }
.dc-content ol.is-style-steps strong, .dc-content ol.dc-steps strong { display: block; color: var(--text); font: 500 17px/1.3 var(--f-body); margin-bottom: 6px; }
@media (max-width: 860px) { .dc-content ol.is-style-steps, .dc-content ol.dc-steps { grid-template-columns: 1fr 1fr; row-gap: 20px; } }
@media (max-width: 480px) { .dc-content ol.is-style-steps, .dc-content ol.dc-steps { grid-template-columns: 1fr; } }

/* Колонки и выноски */
.dc-content .wp-block-columns { display: flex; flex-wrap: wrap; gap: 24px 48px; margin: 0 0 24px; }
.dc-content .wp-block-column { flex: 1 1 280px; min-width: 0; }
.dc-content .dc-note, .dc-content .is-style-note { background: var(--stage); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.dc-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; }
.dc-content .wp-block-button__link { display: inline-flex; padding: 14px 24px; border-radius: 999px; background: var(--text); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }

/* ---------- Статья ---------- */
.dc-art {
	--a-bg: #17171A; --a-text: #E2DED6; --a-muted: #A39E95; --a-line: rgba(226, 222, 214, .14); --a-link: #E2B65C; --a-box: #1F1F23;
	background: var(--a-bg); color: var(--a-text); border-radius: var(--r-lg); margin-top: 18px; transition: background .25s, color .25s;
	/* Всё внутри статьи, что окрашено общими переменными темы (шаги, цитаты, вопросы, таблицы),
	   получает цвета выбранного режима чтения — светлый текст не остаётся на светлом фоне. */
	--text: var(--a-text); --muted: var(--a-muted); --line: var(--a-line); --line-strong: color-mix(in srgb, var(--a-text) 30%, transparent);
}
/* Тёмные вставки внутри статьи (карточка услуги, форма заявки) сохраняют свои цвета в любом режиме */
.dc-art .dc-svc-cta, .dc-art .dcb { --text: #ECE9E3; --muted: #9C978E; --line: rgba(236, 233, 227, .12); --line-strong: rgba(236, 233, 227, .32); color: var(--text); }
html[data-reader="light"] .dc-art { --a-bg: #F2EFE9; --a-text: #1D1C1A; --a-muted: #6B665E; --a-line: #DDD7CC; --a-link: #8A5F0E; --a-box: #E8E3D9; }
html[data-reader="warm"] .dc-art { --a-bg: #EDE3D1; --a-text: #2A2219; --a-muted: #6E6150; --a-line: #D6C8B0; --a-link: #8A4F12; --a-box: #E3D6BE; }
.dc-art__inner { max-width: 1080px; margin: 0 auto; padding: 48px max(16px, 4vw) 56px; display: grid; grid-template-columns: minmax(0, 720px) 260px; gap: 56px; }
.dc-art__main { min-width: 0; }
.dc-art__cat { color: var(--a-link); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.dc-art__title { font-size: clamp(32px, 4vw, 50px); line-height: 1.08; font-weight: 400; margin-top: 12px; }
.dc-art__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--a-muted); font-size: 14px; margin: 18px 0 28px; }
.dc-answer { background: var(--a-box); border-radius: var(--r); padding: 20px 22px; margin-bottom: 32px; border-left: 3px solid var(--amber); }
.dc-answer p { margin: 0; }
.dc-answer .dc-answer__label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--a-muted); margin-bottom: 8px; }
.dc-art__cover { margin: 0 0 8px; border-radius: var(--r); overflow: hidden; }
.dc-art__cover img { width: 100%; }
.dc-prose { font-size: 18px; line-height: 1.72; }
.dc-prose > * { max-width: none; }
.dc-prose h2 { font-size: clamp(28px, 2.8vw, 36px); font-weight: 400; margin: 48px 0 14px; }
.dc-prose > :first-child { margin-top: 32px; }
.dc-prose a, .dc-art .dc-content a:not(.dc-btn) { color: var(--a-link); }
.dc-prose li::marker { color: var(--a-link); }
.dc-prose details, .dc-prose details:first-of-type, .dc-prose hr { border-color: var(--a-line); }
.dc-prose .wp-block-table { --t-text: color-mix(in srgb, var(--a-text) 82%, var(--a-bg)); --t-strong: var(--a-text); --t-head: var(--a-link); --t-bg: color-mix(in srgb, var(--a-text) 3%, transparent); --t-zebra: color-mix(in srgb, var(--a-text) 4.5%, transparent); --t-hover: color-mix(in srgb, var(--a-link) 9%, transparent); }
.dc-prose .wp-block-table thead th { background: color-mix(in srgb, var(--a-link) 8%, transparent); }
.dc-prose details > :not(summary), .dc-prose figcaption { color: var(--a-muted); }
.dc-prose .dc-sources, .dc-prose .is-style-sources { font-size: 14px; color: var(--a-muted); line-height: 1.6; }
.dc-prose .dc-note, .dc-prose .is-style-note { background: var(--a-box); border-color: var(--a-line); }
.dc-art__side { position: sticky; top: 100px; align-self: start; display: grid; gap: 14px; }
.admin-bar .dc-art__side { top: 132px; }
.dc-toc, .dc-reader { border: 1px solid var(--a-line); border-radius: var(--r); padding: 16px 20px; font-size: 14px; }
.dc-side__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--a-muted); margin: 0 0 10px; }
.dc-toc ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.dc-toc a { text-decoration: none; color: var(--a-text); }
.dc-toc a:hover, .dc-toc a.is-active { color: var(--a-link); }
.dc-reader { display: grid; gap: 4px; }
.dc-reader button { text-align: left; font-size: 14px; font-weight: 500; color: var(--a-text); background: none; border: 1px solid transparent; border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.dc-reader button:hover { border-color: var(--a-line); }
.dc-reader button[aria-pressed="true"] { border-color: var(--a-link); }
.dc-svc-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding: 22px 24px; border-radius: 16px; background: #0E0E11; color: var(--text); border: 1px solid var(--line); }
.dc-svc-cta p { margin: 4px 0 0; color: var(--muted); font-size: 14px; max-width: 52ch; }
.dc-svc-cta .dc-svc-cta__title { margin: 0; color: var(--text); font: 400 22px/1.2 var(--f-display); }
@media (max-width: 980px) {
	.dc-art__inner { display: flex; flex-direction: column; gap: 0; padding-top: 28px; }
	.dc-art__main { min-width: 0; width: 100%; }
	.dc-art__side { position: static; order: -1; width: 100%; min-width: 0; margin-bottom: 24px; }
	.dc-reader { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
	.dc-reader .dc-side__label { width: 100%; }
}

/* ---------- Призыв перед подвалом ---------- */
.dc-cta { margin-top: 96px; border-top: 1px solid var(--line); padding-block: 72px; text-align: center; position: relative; overflow: hidden; }
.dc-cta::before { content: ""; position: absolute; left: 50%; top: 100%; width: 720px; height: 720px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(217, 164, 65, .14), transparent); pointer-events: none; }
.dc-cta h2 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 300; position: relative; }
.dc-cta p { color: var(--muted); margin: 14px auto 28px; max-width: 52ch; position: relative; }
.dc-cta .dc-actions { justify-content: center; position: relative; }

/* ---------- Подвал ---------- */
.dc-footer { border-top: 1px solid var(--line); padding-block: 48px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
.dc-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.dc-footer__brand p { color: var(--muted); max-width: 34ch; margin: 14px 0 16px; }
.dc-footer__title { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.dc-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dc-footer ul a { text-decoration: none; opacity: .85; }
.dc-footer ul a:hover { color: var(--amber); opacity: 1; }
.dc-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.dc-socials a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; text-decoration: none; }
.dc-socials a:hover { border-color: var(--line-strong); }
.dc-footer__bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--muted); }
.dc-footer__bottom a { color: var(--muted); }
@media (max-width: 860px) { .dc-footer__grid { grid-template-columns: 1fr 1fr; } .dc-footer__brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
.dc-car[hidden] { display: none; }

/* ---------- Кнопка «Содержание» и окно оглавления в статье ---------- */
.dc-fab { position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--a-line); background: var(--a-box); color: var(--a-text); font: 500 14px var(--f-body); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); cursor: pointer; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .25s, background .25s, color .25s; }
.dc-fab svg { color: var(--a-link); }
.dc-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.dc-fab:hover { border-color: var(--a-link); }
.dc-sheet { position: fixed; inset: 0; z-index: 150; }
.dc-sheet[hidden] { display: none; }
.dc-sheet__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .2s; }
.dc-sheet__panel { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(max(18px, env(safe-area-inset-bottom, 0px)) + 60px); width: min(360px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow-y: auto; display: grid; gap: 14px; padding: 18px; border-radius: 18px; background: var(--a-bg); color: var(--a-text); border: 1px solid var(--a-line); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(12px) scale(.98); transform-origin: bottom right; transition: opacity .2s, transform .2s; }
.dc-sheet.is-open .dc-sheet__backdrop { opacity: 1; }
.dc-sheet.is-open .dc-sheet__panel { opacity: 1; transform: none; }
.dc-sheet__close { justify-self: end; width: 34px; height: 34px; margin: -6px -6px -14px 0; border-radius: 50%; border: 1px solid var(--a-line); background: none; color: var(--a-text); font-size: 20px; line-height: 1; cursor: pointer; }
.dc-sheet .dc-reader { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.dc-sheet .dc-reader .dc-side__label { width: 100%; }
@media (max-width: 600px) {
	.dc-fab span { display: none; }
	.dc-fab { padding: 14px; }
	.dc-sheet__panel { left: 0; right: 0; bottom: 0; width: auto; max-height: 75vh; border-radius: 20px 20px 0 0; padding-bottom: max(18px, env(safe-area-inset-bottom, 0px)); transform: translateY(24px); }
}
@media (prefers-reduced-motion: reduce) { .dc-fab, .dc-sheet__panel, .dc-sheet__backdrop { transition: none; } }

/* Уведомление о cookie (152-ФЗ): компактная плашка внизу слева, не перекрывает основной текст */
.dc-cookie { position: fixed; z-index: 65; left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); max-width: 440px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--stage-2); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); font-size: 13px; line-height: 1.45; color: var(--muted); }
.dc-cookie[hidden] { display: none; }
.dc-cookie p { margin: 0; }
.dc-cookie a { color: var(--text); text-underline-offset: 3px; }
.dc-cookie .dc-btn { padding: 10px 18px; font-size: 14px; flex: none; }
body.dc-cookie-open .dc-fab { bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + var(--dc-cookie-h, 96px) + 12px); }
@media (max-width: 600px) {
	.dc-cookie { right: max(16px, env(safe-area-inset-right, 0px)); max-width: none; }
}
