/* d4 — «Тёмная премиум-витрина». Всё оформление на шести переменных генератора. */

:root {
	/* базовые — перезаписываются блоком Custom overrides в конце файла */
	--color-bg: #0b0b0e;
	--color-surface: #14141a;
	--color-text: #ecebe6;
	--color-accent: #c9a55f;
	--font-base: 'Segoe UI', system-ui, sans-serif;
	--radius: 8px;

	/* производные — считаются от базовых, поэтому подхватывают любую палитру */
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--line: color-mix(in srgb, var(--color-text) 14%, transparent);
	--line-2: color-mix(in srgb, var(--color-text) 30%, transparent);
	--muted: color-mix(in srgb, var(--color-text) 62%, var(--color-bg));
	--accent-ink: color-mix(in srgb, var(--color-accent) 82%, var(--color-text));
	--accent-soft: color-mix(in srgb, var(--color-accent) 8%, transparent);
	--tint: color-mix(in srgb, var(--color-text) 4%, var(--color-bg));
	--glass: linear-gradient(180deg, color-mix(in srgb, var(--color-text) 5%, transparent), color-mix(in srgb, var(--color-text) 1%, transparent));
	--r: min(var(--radius), 4px);
	--wrap: 1280px;
	--pad: clamp(18px, 4vw, 56px);
	--gap: clamp(28px, 4vw, 64px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-base);
	font-size: 17px;
	line-height: 1.7;
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, blockquote, figure, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-ink); }

::selection { background: var(--color-accent); color: var(--color-bg); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

.skip {
	position: absolute; left: -9999px; top: 0; z-index: 50;
	padding: 12px 18px; background: var(--color-text); color: var(--color-bg);
	font-family: var(--font-mono); font-size: 12px;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* стеклянная панель: подсветка сверху + мягкая заливка */
.panel {
	border: 1px solid var(--line);
	border-top-color: var(--line-2);
	border-radius: var(--r);
	background: var(--glass);
}

/* световое пятно акцентом (единственная «графика» шаблона) */
.glow {
	position: absolute; pointer-events: none; z-index: 0;
	background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--color-accent) 16%, transparent), transparent 70%);
}
.glow--hero { inset: -18% -10% auto 28%; height: 620px; }
.glow--cta { inset: auto -10% -30% 20%; height: 520px; }

/* типографика */

.kick {
	display: flex; align-items: center; gap: 14px;
	font-family: var(--font-mono); font-size: 11px;
	letter-spacing: .24em; text-transform: uppercase;
	color: var(--accent-ink);
}
.kick i { display: block; width: clamp(24px, 5vw, 64px); height: 1px; background: currentColor; opacity: .55; flex: none; }

.sh { margin-bottom: clamp(30px, 4vw, 56px); }
.sh__t {
	margin-top: 18px;
	font-size: clamp(28px, 4.2vw, 54px);
	font-weight: 400; line-height: 1.07; letter-spacing: -.02em;
	max-width: 26ch; text-wrap: pretty;
}

.prose p { max-width: 68ch; margin-bottom: 1.1em; color: var(--muted); text-wrap: pretty; hyphens: auto; }
.prose p:last-child { margin-bottom: 0; }
.prose--drop { font-size: 16.5px; }
.prose--drop > p:first-child::first-letter {
	float: left; font-size: 4em; line-height: .82;
	padding: .05em .12em 0 0; color: var(--accent-ink);
}

/* секции */

.sec { position: relative; padding-block: clamp(56px, 7vw, 112px); scroll-margin-top: 80px; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec--hero { padding-top: clamp(48px, 6vw, 96px); }
.sec > .wrap { position: relative; z-index: 1; }

/* шапка */

.hdr {
	position: sticky; top: 0; z-index: 30;
	background: color-mix(in srgb, var(--color-bg) 82%, transparent);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 28px); min-height: 74px; }
.hdr__logo { margin-right: auto; font-size: clamp(19px, 2.4vw, 22px); letter-spacing: .02em; }
.hdr__nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.hdr__link {
	font-family: var(--font-mono); font-size: 11px;
	letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
	padding-block: 8px; border-bottom: 1px solid transparent;
}
.hdr__link:hover { color: var(--accent-ink); border-bottom-color: var(--color-accent); }
.hdr__link--cta { display: none; }
.hdr__cta {
	font-family: var(--font-mono); font-size: 11px;
	letter-spacing: .16em; text-transform: uppercase;
	padding: 12px 20px; white-space: nowrap;
	border: 1px solid var(--line-2); border-radius: var(--r);
	background: var(--glass);
}
.hdr__cta:hover { border-color: var(--color-accent); color: var(--accent-ink); }

.burger { display: none; width: 46px; height: 46px; flex: none; padding: 12px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; height: 1px; margin: 5px 0; background: var(--color-text); transition: transform .25s, opacity .2s; }

/* кнопки */

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 54px; padding: 15px 32px;
	font-family: var(--font-mono); font-size: 12px;
	letter-spacing: .16em; text-transform: uppercase;
	border: 1px solid transparent; border-radius: var(--r);
	cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary {
	background: var(--color-text); color: var(--color-bg); border-color: var(--color-text);
}
.btn--primary:hover {
	background: color-mix(in srgb, var(--color-accent) 70%, var(--color-text));
	border-color: transparent; color: var(--color-bg);
}
.btn--ghost { border-color: var(--line-2); background: var(--glass); }
.btn--ghost:hover { border-color: var(--color-accent); color: var(--accent-ink); }

/* ссылка-звонок вместо формы, если у клиента нет Telegram-бота */
.cta__call {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 54px; padding: 15px 32px; margin-top: 10px;
	font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
	background: var(--color-text); color: var(--color-bg);
	border: 1px solid var(--color-text); border-radius: var(--r);
}
.cta__call:hover { background: color-mix(in srgb, var(--color-accent) 70%, var(--color-text)); color: var(--color-bg); }

/* герой */

.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: var(--gap); align-items: end; }
.hero:not(:has(.hero__fig)) { grid-template-columns: minmax(0, 1fr); }
.hero__t {
	margin: 26px 0 26px;
	font-size: clamp(40px, 6.6vw, 88px);
	font-weight: 400; line-height: 1.03; letter-spacing: -.025em;
	max-width: 19ch; text-wrap: balance;
}
.hero__s { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 47ch; text-wrap: pretty; }
.hero__acts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(30px, 3.4vw, 44px); }
.hero__fig { padding: 10px; }
.hero__fig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: calc(var(--r) - 1px); }
.hero__fig figcaption { padding: 12px 4px 2px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--muted); }
.kick--hero i { width: clamp(20px, 4vw, 48px); opacity: 1; }

/* о компании */

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: var(--gap); }
.stats { display: flex; flex-direction: column; }
.stat { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.stat:first-child { border-top-color: var(--line-2); }
.stat__v { display: block; font-size: clamp(30px, 3.6vw, 44px); line-height: 1; letter-spacing: -.02em; }
.stat__l { display: block; margin-top: 9px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* сетки: линейки рисуются фоном в зазорах — 6 / 9 / 12 ложатся одинаково */

.grid { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line-2); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr)); }

.card, .case { background: var(--color-bg); padding: 30px clamp(20px, 2vw, 32px) 34px; transition: background-color .2s; }
.card:hover { background: var(--tint); }
.card__n { display: block; margin-bottom: 20px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; color: var(--accent-ink); }
.card__t { font-size: 20px; font-weight: 400; line-height: 1.28; margin-bottom: 12px; }
.card__x { font-size: 14.5px; line-height: 1.72; color: var(--muted); text-wrap: pretty; }

/* услуги — строки прайса; последняя колонка фиксирована, чтобы ряды совпадали */

.list { border-top: 1px solid var(--line-2); }
.row {
	display: grid; grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.3fr) 11rem;
	gap: clamp(14px, 2vw, 36px); align-items: baseline;
	padding: 24px 0 26px; border-bottom: 1px solid var(--line);
	transition: background .2s;
}
.row:hover { background: linear-gradient(90deg, var(--accent-soft), transparent 60%); }
.row__n { font-family: var(--font-mono); font-size: 12px; color: var(--accent-ink); }
.row__t { font-size: 21px; font-weight: 400; line-height: 1.25; }
.row__x { font-size: 14.5px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.row__p { font-size: 19px; white-space: nowrap; color: var(--accent-ink); }

/* этапы */

.steps { border-top: 1px solid var(--line-2); }
.step {
	display: grid; grid-template-columns: clamp(4rem, 8vw, 7rem) minmax(0, 1fr) minmax(0, 1.5fr);
	gap: clamp(14px, 2vw, 36px); align-items: start;
	padding: 28px 0 30px; border-bottom: 1px solid var(--line);
}
.step__n { font-size: clamp(28px, 3.4vw, 42px); line-height: 1; letter-spacing: -.03em; color: var(--accent-ink); }
.step__t { font-size: 21px; font-weight: 400; line-height: 1.3; }
.step__x { font-size: 15px; line-height: 1.72; color: var(--muted); text-wrap: pretty; }

/* кейсы */

.case .kick { margin-bottom: 20px; }
.case__r { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.04; letter-spacing: -.03em; color: var(--accent-ink); }
.case__t { margin: 16px 0 10px; font-size: 19px; font-weight: 400; line-height: 1.3; }
.case__x { font-size: 14.5px; line-height: 1.72; color: var(--muted); text-wrap: pretty; }

/* отзывы — стеклянные панели */

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.quote { display: flex; flex-direction: column; gap: 22px; padding: 30px clamp(20px, 2vw, 30px) 26px; }
.quote blockquote { font-size: 16px; line-height: 1.74; text-wrap: pretty; }
.quote blockquote::before { content: '«'; color: var(--accent-ink); }
.quote blockquote::after { content: '»'; color: var(--accent-ink); }
.quote figcaption { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.quote__n { display: block; font-size: 16px; }
.quote__r { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* галерея — мозаика на пять кадров */

.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.2vw, 18px); }
.gal__i { display: flex; flex-direction: column; gap: 10px; }
.gal__i img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); border-radius: var(--r); }
.gal__i figcaption { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--muted); }
.gal__i--1 { grid-column: span 2; grid-row: span 2; }
.gal__i--1 img { aspect-ratio: 1 / 1; height: 100%; }

/* ошибки и советы */

.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line-2); }
.duo__c { background: var(--color-bg); padding: clamp(22px, 2.4vw, 34px) clamp(20px, 2vw, 32px); }
.duo__c--tip { background: var(--color-surface); }
.duo__h { margin-bottom: 24px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.duo__c--tip .duo__h { color: var(--accent-ink); }
.duo__i + .duo__i { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.duo__t { display: flex; gap: 12px; font-size: 18px; font-weight: 400; line-height: 1.32; }
.duo__m { flex: none; width: 1.2em; text-align: center; font-family: var(--font-mono); color: var(--accent-ink); }
.duo__c--tip .duo__m { color: var(--color-text); }
.duo__x { margin-top: 8px; padding-left: 2.2em; font-size: 14.5px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }

/* таблицы */

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
	padding: 0 18px 14px 0; text-align: left; font-weight: 400;
	font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
	color: var(--muted); border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.tbl th.is-last { padding-right: 0; color: var(--accent-ink); }
.tbl td { padding: 16px 18px 16px 0; font-size: 15px; color: var(--muted); border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl td:first-child { font-size: 16.5px; color: var(--color-text); }
.tbl td.is-last { padding-right: 0; font-size: 16.5px; color: var(--accent-ink); white-space: nowrap; }
.tbl tbody tr { transition: background-color .2s; }
.tbl tbody tr:hover { background: var(--tint); }
.tbl th.is-us { color: var(--accent-ink); border-bottom-color: var(--color-accent); }
.tbl th.is-us, .tbl td.is-us { padding-inline: 18px; background: var(--accent-soft); }
.tbl td.is-us { color: var(--color-text); }

/* FAQ */

.faq { border-top: 1px solid var(--line-2); }
.faq__i { border-bottom: 1px solid var(--line); }
.faq__q {
	display: flex; gap: clamp(12px, 2vw, 28px); align-items: baseline;
	position: relative; padding: 24px 46px 24px 0; cursor: pointer;
	font-size: clamp(17px, 1.7vw, 22px); line-height: 1.35; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
	content: '+'; position: absolute; right: 0; top: 22px;
	font-family: var(--font-mono); font-size: 22px; line-height: 1; color: var(--accent-ink);
}
.faq__i[open] .faq__q::after { content: '\2013'; }
.faq__n { flex: none; font-family: var(--font-mono); font-size: 12px; color: var(--accent-ink); }
.faq__a { padding: 0 46px 28px clamp(12px, 2vw, 28px); }
.faq__a p { max-width: 78ch; font-size: 15.5px; line-height: 1.78; color: var(--muted); text-wrap: pretty; }
.faq__i[open] .faq__a { animation: fade .25s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } }

/* SEO-текст */

.sec--seo .prose--cols { columns: 2; column-gap: clamp(28px, 4vw, 62px); }
.prose--cols p { max-width: none; font-size: 15px; line-height: 1.8; }

/* заявка */

.cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: var(--gap); align-items: start; }
.cta__t { margin: 20px 0 18px; font-size: clamp(28px, 4.2vw, 52px); font-weight: 400; line-height: 1.06; letter-spacing: -.025em; max-width: 22ch; text-wrap: balance; }
.cta__s { color: var(--muted); max-width: 44ch; text-wrap: pretty; }
.cta__r { padding: clamp(24px, 2.6vw, 36px); }
.cta__form { display: flex; flex-direction: column; }
.cta__input {
	width: 100%; min-height: 56px; padding: 15px 2px;
	font: inherit; font-size: 16px; color: var(--color-text);
	background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
}
.cta__input::placeholder { color: var(--muted); }
.cta__input:focus, .cta__input:focus-visible { outline: none; border-bottom-color: var(--color-accent); }
.cta__form .btn { margin-top: 26px; width: 100%; }
.cta__privacy { margin-top: 16px; font-family: var(--font-mono); font-size: 10.5px; line-height: 1.65; letter-spacing: .04em; color: var(--muted); }
.cta__msg:not(:empty) { margin-top: 14px; padding: 12px 16px; font-size: 14px; background: var(--color-surface); border-left: 2px solid var(--color-accent); }
.cta__msg.is-err { border-left-color: color-mix(in srgb, var(--color-text) 60%, var(--color-accent)); }

/* подвал */

.ftr { border-top: 1px solid var(--line-2); padding-top: clamp(40px, 5vw, 68px); }
.ftr__in { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.ftr__logo { margin-bottom: 14px; font-size: 22px; letter-spacing: .02em; }
.ftr__x { max-width: 46ch; font-size: 14.5px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.ftr__h { margin-bottom: 18px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); }
.ftr__l li { padding: 8px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.ftr__b { margin-top: clamp(34px, 4vw, 56px); padding-block: 24px; border-top: 1px solid var(--line); }
.ftr__b p { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; color: var(--muted); }

/* адаптив */

@media (max-width: 1000px) {
	.hero, .about, .cta { grid-template-columns: minmax(0, 1fr); }
	.hero { align-items: start; }
	.hero__fig img { aspect-ratio: 16 / 10; }
	.stats { flex-direction: row; gap: clamp(14px, 3vw, 30px); }
	.stat { flex: 1; }
	.step { grid-template-columns: clamp(3rem, 8vw, 4.5rem) minmax(0, 1fr); }
	.step__x { grid-column: 2; }
	.ftr__in { grid-template-columns: 1fr 1fr; }
	.ftr__c--about { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
	.hdr__nav {
		position: fixed; inset: 0; z-index: 40;
		flex-direction: column; align-items: flex-start; justify-content: center;
		gap: 2px; padding: 88px var(--pad) 40px;
		background: var(--color-bg);
		transform: translateX(100%); transition: transform .3s ease;
		overflow-y: auto;
	}
	.hdr__nav.is-open { transform: none; }
	.hdr__link {
		width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line);
		font-family: var(--font-base); font-size: clamp(21px, 5.5vw, 30px);
		letter-spacing: -.02em; text-transform: none; color: var(--color-text);
	}
	.hdr__link--cta { display: block; color: var(--accent-ink); }
	.hdr__cta { display: none; }
	.burger { display: block; position: relative; z-index: 41; }
	body.nav-open { overflow: hidden; }
	body.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
	body.nav-open .burger span:nth-child(2) { opacity: 0; }
	body.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

	.row { grid-template-columns: 2.4rem minmax(0, 1fr); row-gap: 8px; }
	.row__x, .row__p { grid-column: 2; }
	.row__p { font-size: 17px; }
	.gal { grid-template-columns: repeat(2, 1fr); }
	.gal__i--1 { grid-column: span 2; grid-row: auto; }
	.gal__i--1 img, .gal__i img { aspect-ratio: 3 / 2; height: auto; }
	.sec--seo .prose--cols { columns: 1; }
}

@media (max-width: 680px) {
	body { font-size: 16px; }
	.prose--drop > p:first-child::first-letter { font-size: 3.4em; }
	.stats { flex-direction: column; }
	.faq__q { padding-right: 34px; }
	.faq__a { padding-right: 0; }
	.ftr__in { grid-template-columns: 1fr; }

	/* таблицы разворачиваются в карточки */
	.tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
	.tbl thead { display: none; }
	.tbl tr { padding-block: 6px 12px; border-bottom: 1px solid var(--line-2); }
	.tbl tbody tr:hover { background: none; }
	.tbl td, .tbl td:first-child, .tbl td.is-last { padding: 9px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
	.tbl td.is-us { padding-inline: 0; background: none; }
	.tbl td:last-child { border-bottom: 0; }
	.tbl td::before {
		content: attr(data-l); display: block;
		font-family: var(--font-mono); font-size: 10.5px; line-height: 1.5;
		letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
	}
	.tbl td:not(:first-child) { display: grid; grid-template-columns: 42% 1fr; gap: 12px; align-items: baseline; }
	.tbl td:first-child::before { margin-bottom: 3px; color: var(--accent-ink); }
	.tbl td.is-us::before, .tbl td.is-last::before { color: var(--accent-ink); }
}

@media (max-width: 400px) {
	.gal { grid-template-columns: 1fr; }
	.gal__i--1 { grid-column: auto; }
	.btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media print {
	.hdr, .burger, .cta__form, .skip, .glow { display: none; }
	body { font-size: 12pt; }
}

/* === Custom overrides === */
:root {
	--color-bg: #f6f1e7;
	--color-surface: #fffdfc;
	--color-text: #1e1b2e;
	--color-accent: #1bb3a5;
	--font-base: 'Cormorant', system-ui, sans-serif;
	--radius: 14px;
}
