/* d10 — «Типографический максимализм». Всё оформление на шести переменных генератора. */

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

	/* производные — считаются от базовых, поэтому подхватывают любую палитру */
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--ink: var(--color-text);
	--accent-ink: color-mix(in srgb, var(--color-accent) 74%, var(--color-text));
	--accent-on-ink: color-mix(in srgb, var(--color-accent) 56%, var(--color-bg));
	--fill: color-mix(in srgb, var(--color-accent) 12%, var(--color-bg));
	--line: color-mix(in srgb, var(--color-text) 22%, transparent);
	--line-2: color-mix(in srgb, var(--color-text) 11%, transparent);
	--muted: color-mix(in srgb, var(--color-text) 62%, var(--color-bg));
	--muted-on-ink: color-mix(in srgb, var(--color-bg) 72%, var(--color-text));
	/* --radius работает только на элементах ввода: характер стиля — прямые углы */
	--r: clamp(0px, calc(var(--radius) / 2), 12px);
	--wrap: 1320px;
	--pad: clamp(14px, 3.2vw, 40px);
	--gap: clamp(14px, 1.6vw, 24px);
}

*, *::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: 16.5px;
	line-height: 1.6;
	-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; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
ul, ol { list-style: none; }

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

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

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--color-bg); font-weight: 700; }
.skip:focus { left: 0; }

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

/* служебные подписи */

.kick { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); }
.kick--m { color: var(--muted); }
.vlab { writing-mode: vertical-rl; transform: rotate(180deg); align-self: start; font-family: var(--mono); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* заголовки секций: жирная линия сверху, вертикальная подпись слева, кегль во всю ширину */

.sh { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0 clamp(12px, 1.8vw, 26px); border-top: 4px solid var(--ink); padding-top: clamp(14px, 1.8vw, 22px); margin-bottom: clamp(26px, 3.4vw, 52px); }
.sh__b { display: grid; gap: clamp(8px, 1.2vw, 16px); }
.sh__m { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.sh__t { font-size: clamp(30px, 6.4vw, 84px); font-weight: 700; line-height: .94; letter-spacing: -.038em; text-transform: uppercase; text-wrap: balance; }

.prose p { margin-bottom: 1.02em; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }

/* секции — все на --color-bg, без плашек и рамок */

.sec { padding-block: clamp(46px, 5.6vw, 92px); scroll-margin-top: 70px; }
.sec--hero { padding-block: clamp(24px, 3vw, 44px) 0; }
.sec--seo { font-size: 15.5px; }

/* шапка */

.hdr { position: sticky; top: 0; z-index: 30; background: var(--color-bg); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: clamp(10px, 2vw, 24px); min-height: 62px; }
.hdr__logo { font-size: clamp(19px, 2.4vw, 26px); font-weight: 700; letter-spacing: -.04em; text-transform: uppercase; margin-right: auto; }
.hdr__nav { display: flex; align-items: center; gap: clamp(8px, 1.6vw, 22px); }
.hdr__link { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 2px; border-bottom: 2px solid transparent; }
.hdr__link:hover { border-bottom-color: var(--accent-ink); }
.hdr__link--cta { display: none; }
.hdr__cta { padding: 11px 20px; background: var(--ink); color: var(--color-bg); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; transition: background .2s; }
.hdr__cta:hover { background: var(--accent-ink); }

.burger { display: none; width: 44px; height: 42px; flex: none; background: var(--color-bg); border: 2px solid var(--ink); padding: 9px 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 4px 0; transition: transform .25s, opacity .2s; }

/* кнопки */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 56px; padding: 15px 34px; border: 2px solid transparent; border-radius: var(--r);
	font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn--primary, .cta__call { background: var(--ink); color: var(--color-bg); }
.btn--primary:hover, .cta__call:hover { background: var(--accent-ink); }
.btn--ghost { border-color: var(--ink); color: inherit; }
.btn--ghost:hover { background: var(--ink); color: var(--color-bg); }

/* ссылка-звонок, которой генератор подменяет форму без Telegram-бота */
.cta__call {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 56px; padding: 15px 34px; margin-top: 14px; border-radius: var(--r);
	font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

/* герой: заголовок во всю ширину, кегль — единственный приём */

.hero { display: grid; gap: clamp(18px, 2.2vw, 30px); }
.hero__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.hero__t {
	font-size: clamp(40px, 11.6vw, 156px); font-weight: 700; line-height: .84;
	letter-spacing: -.05em; text-transform: uppercase; text-wrap: balance;
}
.hero__t em { font-style: normal; color: var(--accent-ink); }
.hero__b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 2.6vw, 40px); align-items: start; padding-top: clamp(10px, 1.4vw, 18px); border-top: 1px solid var(--line); }
.hero__s { max-width: 46ch; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.hero__acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.hero__fig { margin-top: clamp(8px, 1.2vw, 18px); }
.hero__fig img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* маркиза: один слой текста, дубль в разметке, ноль запросов */

.mq { overflow: hidden; background: var(--ink); color: var(--color-bg); padding: clamp(10px, 1.2vw, 16px) 0; margin-top: clamp(22px, 2.6vw, 38px); }
.mq__t { display: flex; width: max-content; gap: clamp(24px, 3vw, 56px); animation: mq 30s linear infinite; }
.mq__t span { display: flex; align-items: center; gap: clamp(24px, 3vw, 56px); font-size: clamp(19px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
.mq__t span::after { content: '/'; color: var(--accent-on-ink); }
@keyframes mq { to { transform: translateX(-50%); } }

/* факты из footer — строка крупных значений */

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.facts__i { padding: clamp(14px, 1.8vw, 22px) 0; font-family: var(--mono); font-size: 13.5px; letter-spacing: .04em; color: var(--muted); }
.facts__i + .facts__i { border-top: 1px solid var(--line-2); }

/* о нас: врез крупным кеглем + цифры */

.about { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 56px); align-items: start; }
.about__txt p:first-child { font-size: clamp(19px, 2.4vw, 30px); font-weight: 700; line-height: 1.16; letter-spacing: -.028em; margin-bottom: .7em; }
.about__txt p { font-size: 16px; color: var(--muted); max-width: 62ch; }
.about__txt p:first-child { color: var(--color-text); }
.stats { display: grid; border-top: 3px solid var(--ink); }
.stat { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: clamp(12px, 1.6vw, 20px) 0; border-bottom: 1px solid var(--line-2); }
.stat__v { font-size: clamp(30px, 4.2vw, 56px); font-weight: 700; line-height: .9; letter-spacing: -.05em; color: var(--accent-ink); }
.stat__l { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; text-align: right; color: var(--muted); }

/* крупные строки: преимущества, этапы, кейсы — 6 / 9 / 12 держат один ритм */

.big { border-top: 1px solid var(--line); }
.big__i { display: grid; grid-template-columns: 4rem minmax(0, 1.25fr) minmax(0, 1fr); gap: 6px clamp(14px, 2vw, 34px); align-items: start; padding-block: clamp(16px, 2.2vw, 30px); border-bottom: 1px solid var(--line-2); transition: background .2s; }
.big__i:hover { background: var(--color-surface); }
.big__n { font-family: var(--mono); font-size: clamp(14px, 1.4vw, 18px); letter-spacing: -.02em; color: var(--accent-ink); padding-top: .35em; }
.big__t { font-size: clamp(23px, 3.4vw, 46px); font-weight: 700; line-height: .98; letter-spacing: -.035em; text-transform: uppercase; }
.big__x { font-size: 15px; line-height: 1.6; color: var(--muted); text-wrap: pretty; padding-top: .3em; }
.big__r { font-size: clamp(26px, 3.6vw, 50px); font-weight: 700; line-height: .92; letter-spacing: -.045em; color: var(--accent-ink); }

/* услуги — прайс-строки: цена таким же кеглем, как название */

.list { border-top: 3px solid var(--ink); }
.row { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; gap: 4px clamp(12px, 1.8vw, 28px); align-items: baseline; padding-block: clamp(16px, 2vw, 28px); border-bottom: 1px solid var(--line-2); }
.row__n { font-family: var(--mono); font-size: 13px; letter-spacing: -.02em; color: var(--accent-ink); }
.row__t { font-size: clamp(21px, 3vw, 40px); font-weight: 700; line-height: 1; letter-spacing: -.035em; text-transform: uppercase; }
.row__p { grid-column: 3; grid-row: 1; font-size: clamp(17px, 1.9vw, 26px); font-weight: 700; letter-spacing: -.03em; color: var(--accent-ink); white-space: nowrap; }
.row__x { grid-column: 2 / -1; max-width: 78ch; font-size: 15px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* отзывы — цитаты крупным кеглем, без рамок */

.qs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: clamp(18px, 2.4vw, 40px); }
.q { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; border-top: 3px solid var(--ink); }
.q blockquote { font-size: clamp(17px, 1.8vw, 22px); font-weight: 700; line-height: 1.22; letter-spacing: -.024em; text-wrap: pretty; }
.q figcaption { margin-top: auto; }
.q__n { display: block; font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.q__r { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }

/* галерея: 5 кадров — 4 + 2 + 2 + 2 */

.gal { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.gal__i { grid-column: span 2; }
.gal__i img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gal__i figcaption { padding-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gal__i--1 { grid-column: span 4; }
.gal__i--1 img { aspect-ratio: 16 / 9; }

/* ошибки и решения */

.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: clamp(20px, 2.6vw, 44px); }
.duo__c { padding-top: 16px; border-top: 3px solid var(--ink); }
.duo__c--tip { border-top-color: var(--accent-ink); }
.duo__c > .kick { display: block; margin-bottom: 18px; }
.duo__i { padding-block: clamp(14px, 1.8vw, 22px); border-bottom: 1px solid var(--line-2); }
.duo__t { display: flex; gap: 12px; align-items: baseline; font-size: clamp(18px, 2vw, 26px); font-weight: 700; line-height: 1.06; letter-spacing: -.03em; text-transform: uppercase; }
.duo__m { flex: none; font-family: var(--mono); font-size: 15px; color: var(--accent-ink); }
.duo__c--error .duo__m { color: var(--muted); }
.duo__x { margin-top: 8px; padding-left: 27px; font-size: 15px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* таблицы */

.tbl-wrap { overflow-x: auto; }
@media (min-width: 861px) { .tbl-wrap { overflow-x: visible; } }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { padding: 14px 16px 14px 0; text-align: left; border-bottom: 3px solid var(--ink); font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.tbl th.is-us { color: var(--accent-ink); border-bottom-color: var(--accent-ink); }
.tbl td { padding: 14px 16px 14px 0; font-size: 15.5px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl td:first-child { font-size: clamp(17px, 1.8vw, 22px); font-weight: 700; letter-spacing: -.028em; text-transform: uppercase; line-height: 1.1; }
.tbl td.is-us { font-weight: 700; color: var(--accent-ink); }
.tbl tbody tr:hover td { background: var(--color-surface); }

/* FAQ — вопрос крупным кеглем */

.faq { border-top: 3px solid var(--ink); }
.faq__i { border-bottom: 1px solid var(--line-2); }
.faq__q { display: flex; align-items: baseline; gap: clamp(12px, 1.6vw, 22px); padding-block: clamp(16px, 2vw, 26px); cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__n { flex: none; font-family: var(--mono); font-size: 12.5px; letter-spacing: -.02em; color: var(--accent-ink); }
.faq__qt { font-size: clamp(19px, 2.4vw, 32px); font-weight: 700; line-height: 1.04; letter-spacing: -.032em; text-transform: uppercase; }
.faq__q::after { content: '+'; flex: none; margin-left: auto; font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; line-height: 1; color: var(--accent-ink); }
.faq__i[open] .faq__q::after { content: '\2013'; }
.faq__a { padding: 0 0 clamp(18px, 2.2vw, 28px) 2.2rem; }
.faq__a p { max-width: 74ch; font-size: 15.5px; line-height: 1.68; color: var(--muted); text-wrap: pretty; }
.faq__i[open] .faq__a { animation: fade .22s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } }

/* SEO-текст */

.prose--cols { columns: 2; column-gap: clamp(24px, 3.4vw, 60px); border-top: 1px solid var(--line); padding-top: clamp(16px, 2vw, 26px); }
.prose--cols p { font-size: 15px; line-height: 1.74; color: var(--muted); }

/* заявка */

.cta { display: grid; gap: clamp(20px, 2.6vw, 40px); }
.cta__t { font-size: clamp(32px, 8vw, 108px); font-weight: 700; line-height: .86; letter-spacing: -.048em; text-transform: uppercase; text-wrap: balance; }
.cta__b { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 52px); align-items: start; padding-top: clamp(14px, 1.8vw, 22px); border-top: 1px solid var(--line); }
.cta__s { max-width: 44ch; font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); text-wrap: pretty; }
.cta__form { display: grid; gap: 12px; }
.cta__input { width: 100%; min-height: 56px; padding: 15px 18px; font: inherit; font-size: 16px; color: var(--color-text); background: var(--color-bg); border: 2px solid var(--line); border-radius: var(--r); }
.cta__input::placeholder { color: var(--muted); }
.cta__input:focus { outline: none; border-color: var(--ink); }
.cta__form .btn { margin-top: 4px; width: 100%; }
.cta__privacy { margin-top: 14px; font-family: var(--mono); font-size: 11px; line-height: 1.6; letter-spacing: .06em; color: var(--muted); }
.cta__msg:not(:empty) { margin-top: 14px; padding: 13px 16px; font-size: 14.5px; background: var(--fill); }
.cta__msg.is-err { background: var(--color-surface); box-shadow: inset 0 0 0 2px var(--line); }

/* подвал */

.ftr { border-top: 4px solid var(--ink); padding-top: clamp(30px, 3.6vw, 52px); background: var(--color-bg); }
.ftr__in { display: grid; grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 44px); }
.ftr__logo { font-size: clamp(28px, 4.4vw, 58px); font-weight: 700; line-height: .9; letter-spacing: -.05em; text-transform: uppercase; margin-bottom: 14px; }
.ftr__x { max-width: 44ch; font-size: 15px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.ftr__h { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ftr__l { display: grid; gap: 9px; }
.ftr__l li { font-size: 15px; color: var(--muted); }
.ftr__l a:hover { color: var(--accent-ink); }
.ftr__b { margin-top: clamp(26px, 3.2vw, 44px); padding-block: 18px; border-top: 1px solid var(--line-2); }
.ftr__b p { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* адаптив */

@media (max-width: 1000px) {
	.big__i { grid-template-columns: 3rem minmax(0, 1fr); }
	.big__x { grid-column: 2; }
	.about, .hero__b, .cta__b { grid-template-columns: minmax(0, 1fr); }
	.hero__acts { justify-content: flex-start; }
	.hero__fig img { aspect-ratio: 16 / 9; }
	.ftr__in { grid-template-columns: 1fr 1fr; }
	.ftr__c--about { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
	.vlab { display: none; }
	.sh { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
	.hdr__nav {
		position: fixed; inset: 0; z-index: 40;
		flex-direction: column; align-items: stretch; justify-content: center;
		gap: 4px; padding: 86px var(--pad) 40px; background: var(--color-bg);
		transform: translateX(100%); transition: transform .28s ease; overflow-y: auto;
	}
	.hdr__nav.is-open { transform: none; }
	.hdr__link { padding: 16px 4px; border-bottom: 1px solid var(--line-2); font-size: clamp(18px, 5vw, 26px); font-family: var(--font-base); font-weight: 700; letter-spacing: -.03em; }
	.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); }

	.gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gal__i, .gal__i--1 { grid-column: span 1; }
	.gal__i--1 { grid-column: span 2; }
	.gal__i img, .gal__i--1 img { aspect-ratio: 3 / 2; }
	.prose--cols { columns: 1; }
}

@media (max-width: 680px) {
	body { font-size: 16px; }
	.big__i { grid-template-columns: minmax(0, 1fr); }
	.big__n { padding-top: 0; }
	.big__x, .big__i > * { grid-column: 1; }
	.row { grid-template-columns: minmax(0, 1fr) auto; }
	.row__n { grid-column: 1 / -1; }
	.row__p { grid-column: 2; grid-row: 2; align-self: baseline; }
	.row__x { grid-column: 1 / -1; }

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

	.duo__x { padding-left: 0; }
	.faq__a { padding-left: 0; }
	.ftr__in { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
	.gal { grid-template-columns: minmax(0, 1fr); }
	.gal__i--1 { grid-column: span 1; }
	.hero__acts .btn, .btn { width: 100%; }
	.stat { flex-direction: column; align-items: flex-start; gap: 2px; }
	.stat__l { text-align: left; }
}

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

@media print {
	.hdr, .burger, .cta__form, .skip { display: none; }
	body { font-size: 12pt; }
	.mq { background: none; color: var(--color-text); border-block: 1px solid var(--line); }
	.mq__t { animation: none; }
}

/* === Custom overrides === */
:root {
	--color-bg: #fff3ea;
	--color-surface: #ffe6d5;
	--color-text: #1a0f20;
	--color-accent: #7a2cff;
	--font-base: 'Oswald', system-ui, sans-serif;
	--radius: 8px;
}
