/* ЭиК Групп — основные стили
   Палитра — из логотипа: индиго → фиолетовый → пурпурный; тёмные блоки — глубокий фиолетовый. */

@font-face {
	font-family: "Golos Text";
	src: url("../fonts/golos-text.woff") format("woff");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "PT Mono";
	src: url("../fonts/pt-mono.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--paper: #f6f5fb;
	--sheet: #ffffff;
	--ink: #1c1830;
	--ink-2: #3a3450;
	--muted: #625d75;
	--line: #e2deef;
	--line-2: #eeebf6;
	--tint: #f0edfb;
	--night: #160f33;
	--night-2: #221852;
	--petrol: #2a1d5c;
	--petrol-2: #36277a;
	--petrol-3: #5d53c1;
	--guilloche: #8a4fd6;
	--stamp: #6b4fe0;
	--stamp-2: #5638c8;
	--stamp-tint: #efeafd;
	--magenta: #c43cd1;
	--grad: linear-gradient(115deg, #5d53c1 0%, #8f4edb 55%, #c43cd1 100%);
	--ok: #1f8a5a;
	--err: #c0262d;

	--font: "Golos Text", "Segoe UI", Roboto, Arial, sans-serif;
	--mono: "PT Mono", "SFMono-Regular", Consolas, monospace;

	--fs-xs: 0.8125rem;   /* 13 */
	--fs-sm: 0.9375rem;   /* 15 */
	--fs-base: 1.0625rem; /* 17 */
	--fs-lead: 1.1875rem; /* 19 */
	--fs-h4: 1.25rem;     /* 20 */
	--fs-h3: 1.5rem;      /* 24 */
	--fs-h2: clamp(1.75rem, 1.2rem + 1.9vw, 2.5rem);
	--fs-h1: clamp(2rem, 1.25rem + 3vw, 3.25rem);

	--wrap: 1240px;
	--gut: 20px;
	--header-h: 76px;
	--r: 10px;
	--r-lg: 18px;
	--shadow: 0 1px 2px rgba(28, 24, 48, .04), 0 12px 32px -16px rgba(42, 29, 92, .22);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: var(--fs-base);
	line-height: 1.6;
	font-feature-settings: "kern", "liga";
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--petrol-3); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--stamp); }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 750; letter-spacing: -0.025em; line-height: 1.08; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h4); line-height: 1.25; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--stamp); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 12px; top: -100px; z-index: 200;
	background: var(--stamp); color: #fff; padding: 10px 16px; border-radius: var(--r);
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap--text { max-width: 820px; }
.muted { color: var(--muted); }
mark.todo { background: #fff2b8; color: var(--ink); padding: 0 4px; }

/* ── Кнопки ── */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 22px;
	border: 1.5px solid transparent; border-radius: var(--r);
	font: 600 var(--fs-base)/1.2 var(--font); text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn--stamp { background: var(--grad); background-size: 140% 100%; background-position: 0 0; color: #fff; box-shadow: 0 8px 20px -10px rgba(143, 78, 219, .8); transition: background-position .3s, box-shadow .2s, transform .2s; }
.btn--stamp:hover { background-position: 100% 0; color: #fff; }
.btn--light { background: #fff; color: var(--petrol); }
.btn--light:hover { background: var(--stamp-tint); color: var(--petrol); }
.btn--outline-light { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--ink { background: var(--petrol); color: #fff; }
.btn--ink:hover { background: var(--petrol-2); color: #fff; }
.btn--ghost { border-color: var(--petrol); color: var(--petrol); background: transparent; }
.btn--ghost:hover { background: var(--petrol); color: #fff; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.0625rem; }
.btn--sm { min-height: 42px; padding: 9px 16px; font-size: var(--fs-sm); }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-strong { font-weight: 600; color: var(--petrol); text-decoration: underline; text-decoration-color: var(--guilloche); text-decoration-thickness: 2px; }
.link-strong:hover { color: var(--stamp); text-decoration-color: currentColor; }

.ico { flex: none; }

/* ── Шапка ── */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--sheet); border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__bar { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--petrol); text-decoration: none; flex: none; }
.brand:hover { color: var(--petrol); }
.brand__mark { color: var(--stamp); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand__sub { font-size: var(--fs-xs); color: var(--muted); margin-top: 3px; }
.brand__img { max-height: 48px; width: auto; }
.brand--light, .brand--light:hover { color: #fff; }
.brand--light .brand__mark { color: #d6c4ff; }
.brand--light .brand__sub { color: #b7b0d6; }

.nav { flex: 1 1 auto; }
.site-header__bar { gap: 20px; }
.nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.nav .menu > li { position: static; display: flex; align-items: center; }
.site-header__bar { position: relative; }
.nav .menu > li > a {
	display: block; padding: 10px 11px; color: var(--ink); text-decoration: none;
	font-size: var(--fs-sm); font-weight: 500; border-radius: var(--r); white-space: nowrap;
}
.nav .menu > li > a:hover,
.nav .menu > li.current-menu-item > a,
.nav .menu > li.current-page-ancestor > a { color: var(--stamp); }
.nav .menu > li.current-menu-item > a { box-shadow: inset 0 -2px 0 var(--stamp); border-radius: 0; }
.nav__mobile-contacts { display: none; }

.mega-toggle { display: none; background: none; border: 0; padding: 6px; margin-left: -8px; color: var(--muted); cursor: pointer; }
.mega {
	position: absolute; left: var(--gut); top: calc(100% - 10px); z-index: 60;
	visibility: hidden; opacity: 0; transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility 0s .15s;
	padding-top: 12px;
}
.has-mega:hover > .mega,
.has-mega:focus-within > .mega,
.has-mega.is-open > .mega { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.mega__inner {
	background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-lg);
	box-shadow: 0 18px 40px -18px rgba(42, 29, 92, .3);
	padding: 24px 28px 18px; width: min(940px, 92vw);
}
.has-mega:nth-child(2) .mega__inner { width: min(680px, 92vw); }
.mega__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 32px; }
.mega__h { font-size: var(--fs-xs); font-weight: 700; color: var(--guilloche); margin: 0 0 6px; }
.mega__col { margin-bottom: 14px; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega__col li a { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; color: var(--ink); text-decoration: none; font-size: var(--fs-sm); line-height: 1.35; }
.mega__col li a:hover { color: var(--stamp); }
.mega__price { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mega__regs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 28px; }
.mega__regs a { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; padding: 6px 0; color: var(--ink); text-decoration: none; font-size: var(--fs-sm); line-height: 1.3; border-bottom: 1px solid var(--line-2); }
.mega__regs a:hover { color: var(--stamp); }
.code { font-family: var(--mono); font-size: .92em; color: var(--petrol-3); white-space: nowrap; }
.mega__foot { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.mega__foot a { font-weight: 600; color: var(--petrol); }

.site-header__contacts { display: flex; align-items: center; gap: 18px; flex: none; }
.hdr-phone { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.hdr-phone__num { font-weight: 700; color: var(--ink); font-size: 1.0625rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hdr-phone__hint { font-size: var(--fs-xs); color: var(--muted); }
.hdr-phone:hover .hdr-phone__num { color: var(--stamp); }
.hdr-msg { display: flex; gap: 4px; }
.hdr-msg a { display: grid; place-items: center; width: 40px; height: 40px; color: var(--petrol); border-radius: var(--r); }
.hdr-msg a:hover { background: var(--tint); color: var(--stamp); }
.burger { display: none; background: none; border: 0; padding: 8px; color: var(--petrol); cursor: pointer; margin-left: auto; }

@media (max-width: 1600px) {
	.hdr-msg { display: none; }
	.nav .menu > li > a { padding: 10px 8px; }
}
@media (max-width: 1300px) {
	.hdr-phone__hint { display: none; }
	.hdr-cta { display: none; }
}
@media (max-width: 1120px) {
	:root { --header-h: 64px; }
	.burger { display: block; }
	.site-header__contacts { margin-left: auto; }
	.site-header__contacts + .burger { margin-left: 0; }
	.nav {
		position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
		background: var(--sheet); overflow-y: auto; padding: 8px var(--gut) 120px;
		display: none;
	}
	.admin-bar .nav { top: calc(var(--header-h) + 46px); }
	.nav.is-open { display: block; }
	.nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line-2); }
	.nav .menu > li > a { flex: 1; padding: 15px 0; font-size: var(--fs-base); }
	.nav .menu > li.current-menu-item > a { box-shadow: none; }
	.mega-toggle { display: block; padding: 14px; margin: 0; }
	.has-mega.is-open > .mega-toggle .ico { transform: rotate(180deg); }
	.mega { position: static; width: 100%; padding: 0 0 14px; display: none; visibility: visible; opacity: 1; transform: none; }
	.has-mega:hover > .mega, .has-mega:focus-within > .mega { display: none; }
	.has-mega.is-open > .mega { display: block; }
	.mega__inner { width: auto !important; border: 0; box-shadow: none; padding: 0; }
	.mega__cols, .mega__regs { grid-template-columns: 1fr; }
	.mega__regs a { grid-template-columns: 9em 1fr; }
	.nav__mobile-contacts { display: flex; flex-direction: column; gap: 8px; padding: 22px 0; }
	.nav__phone { font-size: 1.375rem; font-weight: 700; color: var(--ink); text-decoration: none; }
}
@media (max-width: 560px) {
	.site-header__contacts { display: none; }
	.brand__sub { display: none; }
}

/* ── Секции ── */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.section__head p { color: var(--muted); font-size: var(--fs-lead); margin: 0; }
.section__head--row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; max-width: none; }

/* ── Формы ── */
.lead-form { display: grid; gap: 16px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { min-width: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
	width: 100%; font: 400 var(--fs-base)/1.45 var(--font); color: var(--ink);
	background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r);
	padding: 12px 14px; transition: border-color .12s, box-shadow .12s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--petrol-3); box-shadow: 0 0 0 3px rgba(107, 79, 224, .18); }
.field input::placeholder, .field textarea::placeholder { color: #9a94ad; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field label, .field legend { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); margin-bottom: 8px; padding: 0; }

/* поля «на линейке» */
.field--line input[type="text"], .field--line textarea {
	border: 0; border-bottom: 1.5px solid var(--ink-2); border-radius: 0; padding: 6px 0 8px; background: transparent;
	font-size: var(--fs-lead);
}
.field--line textarea { min-height: 64px; }
.field--line input:focus, .field--line textarea:focus { box-shadow: none; border-bottom-color: var(--stamp); }

.field--choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.field--choice legend { width: 100%; }
.field--choice label { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-sm); color: var(--ink); cursor: pointer; }
.field--choice input { accent-color: var(--stamp); width: 17px; height: 17px; }

.file-pick { position: relative; display: inline-flex !important; align-items: center; gap: 8px; color: var(--petrol) !important; font-size: var(--fs-sm) !important; font-weight: 500 !important; cursor: pointer; margin: 0 !important; }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-pick span { text-decoration: underline; text-decoration-style: dashed; text-underline-offset: .25em; }
.file-pick:hover { color: var(--stamp) !important; }
.file-pick:focus-within { outline: 3px solid var(--stamp); outline-offset: 3px; }
.field--file small { display: block; font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.file-pick.has-file span { text-decoration: none; font-weight: 600; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-xs); color: var(--muted); line-height: 1.45; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--stamp); }
.consent a { color: inherit; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form-actions .btn { min-width: 210px; }
.lead-form--hero .form-actions .btn { width: 100%; min-height: 54px; font-size: 1.0625rem; }
.form-msg { margin: 0; font-size: var(--fs-sm); flex: 1 1 200px; }
.form-msg:empty { display: none; }
.form-msg.is-ok { color: var(--ok); font-weight: 600; }
.form-msg.is-err { color: var(--err); }
.field.has-error input, .field.has-error textarea { border-color: var(--err); }
.consent.has-error { color: var(--err); }

/* ── Регламенты ── */
.reg-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.reg-grid a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 20px 22px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.reg-grid a:hover { border-color: #cfc6f3; box-shadow: var(--shadow); }
.reg-grid a:hover .reg-grid__code { color: var(--stamp); }
.reg-grid__code { font-family: var(--mono); font-size: 1.0625rem; color: var(--petrol); }
.reg-grid__name { font-size: var(--fs-sm); line-height: 1.4; }
.reg-grid__form { margin-top: auto; padding-top: 8px; font-size: var(--fs-xs); color: var(--muted); }
.reg-grid--hub { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reg-grid--hub a { background: var(--sheet); }


/* ── Команда ── */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.team__photo { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; display: grid; place-items: center;
	background: linear-gradient(160deg, #3b2c7c, #1e1546); }
.team__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.team__item:hover .team__photo img { transform: scale(1.04); }
.team__initials { font-size: 3rem; font-weight: 800; color: rgba(255,255,255,.35); margin-bottom: 30%; }
.team__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 16px; background: linear-gradient(180deg, transparent, rgba(16, 10, 40, .88)); color: #fff; }
.team__name { display: block; font-weight: 700; font-size: 1.0625rem; line-height: 1.25; }
.team__role { display: block; font-size: var(--fs-xs); color: rgba(255,255,255,.75); margin-top: 3px; line-height: 1.35; }

/* ── Отзывы ── */
.section--reviews { background: var(--sheet); border-top: 1px solid var(--line); }
.reviews { display: grid; gap: 40px; }
.reviews:not(.reviews--both) .reviews__ya { max-width: 640px; }
.reviews--both { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.reviews__ya iframe { width: 100%; height: 620px; border: 1px solid var(--line); border-radius: var(--r); display: block; margin-bottom: 14px; background: var(--paper); }
.reviews__h { font-weight: 700; margin: 0 0 14px; }
.letters { list-style: none; margin: 0; padding: 4px 2px 16px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; }
.letters li { scroll-snap-align: start; }
.letters a { display: block; border-radius: 12px; background: var(--sheet); padding: 8px; aspect-ratio: 210 / 297; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.letters a:hover { transform: translateY(-4px); }
.letters img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(22, 15, 51, .88); }
.lightbox img { max-height: 88vh; width: auto; margin: 0 auto; background: #fff; }
.lightbox button { position: fixed; top: 14px; right: 14px; background: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }

/* ── Блог ── */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-card { position: relative; background: var(--sheet); border-radius: var(--r-lg); padding: 24px 24px 26px; display: flex; flex-direction: column; border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card::before { content: ""; display: block; height: 6px; width: 48px; border-radius: 3px; background: var(--grad); margin-bottom: 18px; }
.post-card:has(.post-card__img)::before { display: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__img { display: block; margin: -24px -24px 18px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__meta { font-size: var(--fs-xs); color: var(--muted); margin: 0 0 8px; }
.post-card__title { font-size: var(--fs-h4); margin: 0 0 10px; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--stamp); }
.post-card__excerpt { color: var(--muted); font-size: var(--fs-sm); margin: 0; }

.cat-tabs { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-tabs a { display: block; padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); font-size: var(--fs-sm); background: var(--sheet); }
.cat-tabs a[aria-current] { background: var(--petrol); color: #fff; border-color: var(--petrol); }

.pagination { margin-top: 40px; }
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); background: var(--sheet); color: var(--ink); text-decoration: none; border-radius: var(--r); }
.page-numbers.current { background: var(--petrol); color: #fff; border-color: var(--petrol); }

/* ── FAQ ── */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq__item[open] { border-color: #d2c8f5; }
.faq__item summary {
	list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: flex-start;
	padding: 18px 0; font-weight: 600; font-size: var(--fs-base); line-height: 1.4;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .ico { color: var(--stamp); margin-top: 2px; transition: transform .2s; }
.faq__item[open] summary .ico { transform: rotate(180deg); }
.faq__item summary:hover { color: var(--stamp); }
.faq__a { padding: 0 40px 20px 0; color: var(--ink-2); }
.faq__a p { margin: 0; }

/* ── Финальная форма ── */
.cta { background: var(--sheet); border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 96px) 0; }
.cta__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.cta__intro p { color: var(--muted); font-size: var(--fs-lead); }
.cta__contacts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.cta__contacts a { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; text-decoration: none; }
.cta__contacts a:hover { color: var(--stamp); }
.cta__contacts .ico { color: var(--stamp); }
.cta__form { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3vw, 34px); }

/* ── Внутренние страницы ── */
.page-head { background: var(--sheet); border-bottom: 1px solid var(--line); padding: 26px 0 clamp(30px, 4vw, 48px); }
.page-head h1 { max-width: 20em; margin-bottom: 0; }
.page-head__lead { margin-top: 16px; font-size: var(--fs-lead); color: var(--muted); max-width: 46em; }
.page-head__lead p:last-child { margin-bottom: 0; }
.page-head--404 { padding: 72px 0; }
.page-body { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(48px, 6vw, 80px); }

.crumbs { margin-bottom: 18px; font-size: var(--fs-xs); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li { color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--stamp); text-decoration: underline; }

.prose { max-width: 46em; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); margin: 1.8em 0 .6em; }
.prose h3 { font-size: var(--fs-h4); margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--guilloche); }
.prose ol li::marker { font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: var(--fs-sm); display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.prose td:first-child { font-family: var(--mono); color: var(--petrol); white-space: nowrap; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--stamp); color: var(--ink-2); }
.prose img { margin: 1.4em 0; }
.prose strong { font-weight: 650; }

/* ── Страница услуги ── */
.svc-hero { background: var(--sheet); border-bottom: 1px solid var(--line); padding: 26px 0 clamp(36px, 5vw, 56px); }
.svc-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.svc-hero h1 { margin-bottom: 16px; }
.svc-hero__intro { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 0 32px; align-items: start; }
.svc-hero__intro > :not(.svc-hero__doc) { grid-column: 1; }
.svc-hero__intro > .facts { grid-column: 1 / -1; grid-template-columns: auto auto minmax(0, 1fr); }
.facts__item--price dd { white-space: nowrap; }
.svc-hero__doc { grid-column: 2; grid-row: 1 / span 3; margin-top: 8px; transform: rotate(4deg); filter: drop-shadow(0 18px 24px rgba(42, 29, 92, .22)); }
.svc-hero__doc .doc-svg, .svc-hero__doc img { display: block; width: 100%; height: auto; border-radius: 3px; }
.svc-hero__doc img { aspect-ratio: 210 / 297; object-fit: cover; border-radius: 10px; }
.svc-hero__lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 36em; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 28px 0 0; border-top: 2px solid var(--ink); }
.facts__item { padding: 14px 20px 0 0; }
.facts__item + .facts__item { border-left: 1px solid var(--line); padding-left: 20px; }
.facts dd { line-height: 1.3; }
.facts dt { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 700; font-size: var(--fs-base); }
.facts__item--price dd { font-size: 1.75rem; letter-spacing: -0.02em; color: var(--petrol); font-variant-numeric: tabular-nums; }
.svc-hero__form { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 24px 26px 26px; box-shadow: var(--shadow); }
.svc-hero__form-h { font-weight: 800; font-size: 1.25rem; margin: 0 0 14px; letter-spacing: -0.01em; }

.svc-body { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(48px, 6vw, 80px); align-items: start; }
.svc-body__aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.who { margin-bottom: 28px; }
.who h2, .svc-faq h2, .examples h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); }
.who__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.who__list li { border-radius: 14px; }
.who__list li { display: flex; gap: 10px; align-items: flex-start; background: var(--sheet); padding: 14px 16px; font-size: var(--fs-sm); line-height: 1.45; }
.who__list .ico { color: var(--stamp); margin-top: 1px; }
.svc-faq { margin-top: 48px; }

.aside-card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.aside-card--plain { background: transparent; }
.aside-card__h { font-weight: 700; margin: 0 0 12px; }
.aside-card__list { margin: 0 0 14px; padding-left: 1.2em; font-size: var(--fs-sm); }
.aside-card__list li { margin-bottom: 6px; }
.aside-card__list li::marker { color: var(--guilloche); }
.aside-card__note { font-size: var(--fs-xs); color: var(--muted); }
.aside-card .btn { width: 100%; }
.aside-regs { list-style: none; margin: 0; padding: 0; }
.aside-regs li a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font-size: var(--fs-sm); line-height: 1.35; }
.aside-regs li a:hover { color: var(--stamp); }
.aside-regs .code { display: block; margin-bottom: 2px; }
.aside-regs--wide { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.aside-services { list-style: none; margin: 0 0 16px; padding: 0; }
.aside-services a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font-size: var(--fs-sm); }
.aside-services a:hover { color: var(--stamp); }
.aside-services .price { white-space: nowrap; font-weight: 700; }

.section--related { background: var(--sheet); border-top: 1px solid var(--line); padding: clamp(44px, 5vw, 72px) 0; }
.section--related h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); margin-bottom: 22px; }
.related { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.related a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); text-decoration: none; color: var(--ink); }
.related a:hover { border-color: var(--petrol); background: var(--sheet); }
.related__t { font-weight: 700; }
.related__d { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
.related__p { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--petrol); }

/* ── Страница регламента ── */
.reg-hero { background: var(--sheet); border-bottom: 1px solid var(--line); padding: 26px 0 clamp(32px, 4vw, 52px); }
.reg-hero__title { display: flex; flex-direction: column; gap: 10px; max-width: 22em; }
.reg-hero__code { font-family: var(--mono); font-weight: 400; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); color: var(--stamp); letter-spacing: 0; }
.reg-hero__name { font-size: var(--fs-h1); }
.reg-hero__form { margin: 18px 0 0; display: inline-block; padding: 10px 14px; background: var(--tint); border-left: 3px solid var(--guilloche); }
.reg-hero__form span { color: var(--muted); }
.examples { margin-top: 40px; }
.examples__note { color: var(--muted); font-size: var(--fs-sm); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 12px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); font-size: var(--fs-sm); }

/* ── Хабы ── */
.hub { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 80px); display: grid; gap: clamp(36px, 4vw, 56px); }
.hub__group h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 0; }
.hub__group .reg-grid { margin-top: 18px; }
.hub-list { list-style: none; margin: 0; padding: 0; }
.hub-list a { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2.4fr); gap: 8px 32px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); align-items: baseline; }
.hub-list a:hover .hub-list__t { color: var(--stamp); }
.hub-list__t { font-weight: 700; font-size: var(--fs-lead); line-height: 1.3; }
.hub-list__d { color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }
.hub-list__meta { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.hub-list__price { font-weight: 700; white-space: nowrap; }
.hub-list__term { font-size: var(--fs-xs); color: var(--muted); }

/* ── Контакты ── */
.contacts { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 80px); }
.contacts__list { margin: 0; }
.contacts__list > div { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 9em 1fr; gap: 16px; }
.contacts__list dt { color: var(--muted); font-size: var(--fs-sm); }
.contacts__list dd { margin: 0; font-weight: 500; }
.contacts__list dd a { color: var(--ink); }
.contacts__msg { display: flex; flex-wrap: wrap; gap: 16px; }
.contacts__msg a { display: inline-flex; align-items: center; gap: 6px; }
.contacts__map iframe { width: 100%; min-height: 420px; border: 1px solid var(--line); }
.map-placeholder { height: 100%; min-height: 320px; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; background: var(--tint); padding: 24px; color: var(--muted); }

/* ── Проверка документа ── */
.registry { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 80px); align-items: start; }
.registry h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); }
.registry-links { list-style: none; margin: 0 0 40px; padding: 0; border-top: 2px solid var(--ink); }
.registry-links a { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.registry-links a:hover { color: var(--stamp); }
.registry-links__t { font-weight: 700; }
.registry-links__d { grid-column: 1; font-size: var(--fs-sm); color: var(--muted); }
.registry-links .ico { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--petrol-3); }
.registry__aside { position: sticky; top: calc(var(--header-h) + 20px); }
.aside-card--form { border-top: 3px solid var(--stamp); }

/* ── Поиск, пустые состояния ── */
.search-form { display: flex; gap: 8px; margin-top: 22px; max-width: 560px; }
.search-form input { flex: 1; min-width: 0; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--sheet); }
.empty { padding: 32px; background: var(--sheet); border: 1px dashed var(--line); max-width: 680px; }

.article__meta { color: var(--muted); font-size: var(--fs-sm); margin: 14px 0 0; }
.article__img { margin: 0 0 32px; }

/* ── Подвал ── */
.site-footer { background: var(--night); color: #b8b2d6; padding: 64px 0 0; font-size: var(--fs-sm); }
.site-footer a { color: #ece8fb; text-decoration: none; }
.site-footer a:hover { color: #e2d4ff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); gap: 36px; padding-bottom: 48px; }
.site-footer__about p { margin: 18px 0; max-width: 28em; }
.site-footer__h { color: #fff; font-weight: 700; margin: 0 0 14px; font-size: var(--fs-base); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.f-contacts a { display: inline-flex; align-items: center; gap: 10px; }
.f-contacts .ico { color: #c9a8ff; }
.f-regs li:not(:last-child) a { font-family: var(--mono); }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; padding-bottom: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: var(--fs-xs); color: #9d96bd; }
.site-footer__legal p { margin: 0; }

/* ── Мобильная панель связи ── */
.mobile-bar { display: none; }
@media (max-width: 720px) {
	body { padding-bottom: 64px; }
	.mobile-bar {
		display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
		background: var(--sheet); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(42,29,92,.25);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 60px; color: var(--petrol); text-decoration: none; font-size: 11px; font-weight: 600; }
	.mobile-bar__cta { background: var(--stamp); color: #fff !important; font-size: 13px !important; }
}

/* ── Адаптив ── */
@media (max-width: 1100px) {
	.situations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.reg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.process { grid-template-columns: 1fr; gap: 0; }
	.process li { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding: 0 0 26px; }
	.process li::before { grid-row: 1 / span 2; margin: 0; }
	.process li::after { left: 21px; right: auto; top: 46px; bottom: 0; border-top: 0; border-left: 2px dotted var(--line); }
	.process h3 { margin-top: 10px; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1023px) {
	.hero__grid, .trust, .cta__grid, .faq-wrap, .svc-hero__grid, .svc-body, .contacts, .registry, .reviews--both { grid-template-columns: 1fr; }
	.hero__title { max-width: none; }
	.price-groups { columns: 1; }
	.svc-body__aside, .registry__aside { position: static; }
	.post-grid, .related { grid-template-columns: 1fr 1fr; }
	.reg-grid--hub { grid-template-columns: 1fr 1fr; }
	.hub-list a { grid-template-columns: 1fr auto; }
	.hub-list__d { grid-column: 1 / -1; grid-row: 2; }
	.hub-list__meta { grid-row: 1; grid-column: 2; }
}
@media (max-width: 720px) {
	:root { --gut: 16px; }
	body { font-size: 1rem; }
	.situations, .reg-grid, .reg-grid--hub, .post-grid, .related, .who__list, .trust__list, .aside-regs--wide { grid-template-columns: 1fr; }
	.letters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.field-row { grid-template-columns: 1fr; }
	.price-list a { grid-template-columns: 1fr auto; }
	.price-list__term { grid-row: 2; font-size: var(--fs-xs); }
	.price-list__price { grid-row: 1 / span 2; grid-column: 2; align-self: center; min-width: 0; }
	.facts { display: grid; grid-template-columns: 1fr 1fr; }
	.svc-hero__intro { grid-template-columns: 1fr; }
	.svc-hero__doc { display: none; }
	.facts__item, .facts__item + .facts__item { border: 0; margin: 0; padding: 14px 12px 0 0; }
	.facts__item--price { grid-column: 1 / -1; }
	.form-actions .btn { width: 100%; }
	.site-footer__grid, .site-footer__legal { grid-template-columns: 1fr; }
	.contacts__list > div { grid-template-columns: 1fr; gap: 2px; }
	.reviews__ya iframe { height: 520px; }
	.section__head--row { flex-direction: column; gap: 8px; }
}

@media print {
	.site-header, .site-footer, .mobile-bar, .cta, .svc-hero__form, .svc-body__aside { display: none !important; }
}
