/* ==========================================================================
   FRESH — базовые стили: токены, сетка, типографика, кнопки, карточки,
   шапка, подвал, формы, окно, рамки устройств.
   Стили конкретных секций — в blocks/<имя>/style.css.
   ========================================================================== */

/* Inter — по макетам (сверено по «Контакты.png»: форма букв «ж», «к», «д», плотный трекинг). Вариативный, 100–900. */
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-cyrillic.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0301, U+0400-04FF, U+2116;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0000-024F, U+02BB-02DC, U+0304-0329, U+2000-206F, U+20AC, U+2122, U+2190-2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Caveat";
	src: url("../fonts/caveat-cyrillic.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
	unicode-range: U+0301, U+0400-04FF, U+2116;
}
@font-face {
	font-family: "Caveat";
	src: url("../fonts/caveat-latin.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
	unicode-range: U+0000-00FF;
}

/* Токены — по замерам макетов в масштабе 1440 (см. docs/guideline.md). */
:root {
	/* Цвета */
	--c-ink: #0b0d0e;
	--c-text: #1a1f24;
	--c-muted: #6b7789;        /* серо-голубой подзаголовков и текста карточек */
	--c-line: #e4eaee;
	--c-bg: #ffffff;
	--c-bg-soft: #f6f8fa;
	--c-mint-soft: #ebfbf8;
	--c-dark: #010d0a;
	--c-dark-2: #031a14;
	--c-dark-card: rgba(255, 255, 255, 0.04);
	--c-dark-line: rgba(255, 255, 255, 0.1);
	--c-dark-muted: rgba(255, 255, 255, 0.68);
	--c-accent: #00e5bd;
	--c-accent-2: #22eea8;
	--c-accent-ink: #0bbf86;   /* акцент на светлом фоне — темнее для контраста */
	--c-accent-soft: #e3f9f1;
	--g-accent: linear-gradient(90deg, #2ff0b0 0%, #00dcc6 100%);

	/* Сетка: контент 1270 px — на 1440 поля по 85 px, как в макетах */
	--container: 1270px;
	--gutter: 24px;
	--radius: 16px;
	--radius-sm: 12px;
	--radius-lg: 22px;
	/* Замеры главной: надзаголовок на 36 px ниже смены фона, контент кончается за ~40 px до неё,
	   между секциями на одном фоне ~52 px */
	--section-top: 30px;
	--section-y: 40px;
	--section-gap: 52px;
	--shadow: 0 6px 26px rgba(12, 32, 26, 0.07);
	--shadow-hover: 0 14px 38px rgba(12, 32, 26, 0.12);

	/* Типографика */
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-hand: "Caveat", "Segoe Print", cursive;
	--fs-h1: 52px;
	--lh-h1: 1.12;
	--fs-h2: 36px; /* главная 38, SEO 36, контакты 34, разработка 33 — среднее */
	--lh-h2: 1.2;
	--fs-h3: 20px;            /* заголовок карточки */
	--fs-lead: 18px;          /* подзаголовок первого экрана и форм */
	--fs-body: 16px;
	--fs-card: 15px;          /* текст карточки */
	--fs-small: 14px;
	--fs-eyebrow: 15px;
	--ls-head: -0.025em;

	/* Кнопки */
	--btn-h: 54px;
	--btn-h-sm: 44px;
	--btn-px: 30px;
	--btn-radius: 12px;
	--btn-fs: 16px;

	--header-h: 96px;
}

/* Компактная страница: макеты «О компании» и «Разработка сайтов» — между секциями ~30 px */
.density-compact {
	--section-top: 26px;
	--section-y: 22px;
	--section-gap: 30px;
}
/* Плотная страница: макет «О компании» — H2 ≈32 px (по ширине строк), карточки почти вплотную к заголовку */
@media (min-width: 1025px) {
	.density-tight {
		--fs-h2: 32px;
	}
	.density-tight .section-head {
		margin-bottom: 8px;
	}
	/* Логотипы в строку без полей вокруг, надзаголовок сразу под карточками кейсов (≈20 px до центра строки) */
	.density-tight .section.logos-block {
		padding-top: 0;
	}
	.density-tight .logos-block--row .logo-item__inner {
		min-height: 0;
		padding-block: 0;
	}
}

@media (max-width: 1024px) {
	:root {
		--section-y: 56px;
		--section-top: 44px;
		--section-gap: 56px;
		--header-h: 76px;
		--fs-h1: 44px;
		--fs-h2: 34px;
	}
}
@media (max-width: 640px) {
	:root {
		--gutter: 16px;
		--section-y: 44px;
		--section-top: 36px;
		--section-gap: 44px;
		--fs-eyebrow: 13px;
		--header-h: 64px;
		--fs-h1: 34px;
		--fs-h2: 28px;
		--fs-h3: 18px;
		--fs-lead: 16px;
		--btn-h: 50px;
	}
}

/* ---------- Сброс ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.55;
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	/* clip, а не hidden — не ломает position: sticky у шапки; прячет выезжающее меню */
	overflow-x: clip;
}
img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}
a {
	color: inherit;
	text-decoration: none;
}
button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
}
button {
	cursor: pointer;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
	margin: 0;
}
/* :where — нулевая специфичность, чтобы отступы списков в блоках не перебивались сбросом */
:where(ul[class], ol[class]) {
	list-style: none;
	padding: 0;
}
h1,
h2,
h3,
h4 {
	color: var(--c-ink);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: var(--ls-head);
}
/* Без одиноких слов в последней строке абзацев и заголовков; висячие предлоги и переносы по дефису
   в коротких словах — типограф при выводе (inc/typography.php, класс .nowrap) */
h1,
h2,
h3,
h4,
p,
li {
	text-wrap: pretty;
}
.nowrap {
	white-space: nowrap;
}
.icon {
	width: 1em;
	height: 1em;
	flex: none;
}
.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.skip-link {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--c-accent);
	color: var(--c-ink);
	border-radius: 8px;
}
.skip-link:focus {
	top: 12px;
}
:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 2px;
}

/* ---------- Сетка ---------- */
.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.container--narrow {
	max-width: calc(820px + var(--gutter) * 2);
}
.section {
	padding: var(--section-top) 0 var(--section-y);
	position: relative;
}
/* Две секции подряд на одном фоне — не удваиваем отступ */
.section--light + .section--light,
.section--white + .section--white,
.section--mint + .section--mint,
.section--dark + .section--dark {
	padding-top: calc(var(--section-gap) - var(--section-y));
}
.section--light {
	background: var(--c-bg-soft);
}
.section--white {
	background: var(--c-bg);
}
.section--mint {
	background: var(--c-mint-soft);
}
.section--dark,
.dark {
	background: var(--c-dark);
	color: var(--c-dark-muted);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.dark h1,
.dark h2,
.dark h3,
.dark h4 {
	color: #fff;
}
/* Тёмный фон с зелёным свечением и линиями — как в макетах */
.glow-bg {
	background:
		url("../img/lines.svg") right bottom / cover no-repeat,
		radial-gradient(55% 75% at 88% 78%, rgba(18, 214, 140, 0.24), transparent 62%),
		radial-gradient(40% 60% at 6% 0%, rgba(0, 170, 130, 0.12), transparent 70%),
		linear-gradient(180deg, #021512 0%, var(--c-dark) 100%);
}
.section--compact {
	padding: calc(var(--section-y) * 0.6) 0;
}

/* ---------- Типографика секций ---------- */
.eyebrow {
	font-size: var(--fs-eyebrow);
	line-height: 1.3;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--c-accent-ink);
	margin-bottom: 10px;
}
.dark .eyebrow,
.section--dark .eyebrow {
	color: var(--c-accent);
}
.section-title {
	font-size: var(--fs-h2);
	line-height: var(--lh-h2);
}
.accent {
	color: var(--c-accent-ink);
}
.dark .accent,
.section--dark .accent {
	color: var(--c-accent);
}
.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 48px;
	margin-bottom: 20px;
}
.section-head__aside {
	max-width: 380px;
	font-size: 14px;
	color: var(--c-muted);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}
/* Кнопки/стрелки без текста — к правому краю */
.section-head__aside:not(:has(p)) {
	align-items: flex-end;
}
.dark .section-head__aside,
.section--dark .section-head__aside {
	color: var(--c-dark-muted);
}
@media (max-width: 860px) {
	.section-head {
		flex-direction: column;
		align-items: flex-start;
	}
	.section-head__aside {
		text-align: left;
		align-items: flex-start;
		max-width: none;
	}
}
.lead {
	font-size: 17px;
	color: var(--c-muted);
}
.hand {
	font-family: var(--font-hand);
	font-weight: 500;
	font-size: 28px;
	line-height: 1.05;
	color: #fff;
}

/* ---------- Кнопки ---------- */
.btns {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: var(--btn-h);
	padding: 0 var(--btn-px);
	border-radius: var(--btn-radius);
	border: 1.5px solid transparent;
	font-weight: 600;
	font-size: var(--btn-fs);
	line-height: 1.2;
	white-space: nowrap;
	transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn__arrow {
	width: 18px;
	height: 18px;
	transition: transform 0.2s ease;
}
.btn:hover .btn__arrow {
	transform: translateX(3px);
}
.btn--primary {
	background: var(--g-accent);
	color: #04130e;
	box-shadow: 0 8px 24px rgba(0, 229, 189, 0.22);
}
.btn--primary:hover {
	box-shadow: 0 12px 30px rgba(0, 229, 189, 0.36);
	transform: translateY(-1px);
}
.btn--outline {
	border-color: var(--c-accent);
	color: var(--c-ink);
	background: transparent;
}
.dark .btn--outline,
.section--dark .btn--outline {
	color: #fff;
	border-color: rgba(0, 229, 189, 0.7);
}
.btn--outline:hover {
	background: rgba(0, 229, 189, 0.1);
}
/* Мятная: «Смотреть все проекты» на главной */
.btn--soft {
	background: var(--c-mint-soft);
	color: var(--c-accent-ink);
	border-color: transparent;
}
.btn--soft:hover {
	background: #d8f6ef;
}
.dark .btn--soft,
.section--dark .btn--soft {
	background: rgba(0, 229, 189, 0.12);
	color: var(--c-accent);
}
.btn--link {
	min-height: 0;
	padding: 0;
	border: 0;
	color: var(--c-accent-ink);
	font-weight: 600;
}
.dark .btn--link {
	color: var(--c-accent);
}
.btn--sm {
	min-height: var(--btn-h-sm);
	padding: 0 22px;
	font-size: 15px;
}
.btn--pill {
	border-radius: 999px;
}
.btn--block {
	width: 100%;
}
.btn[disabled] {
	opacity: 0.6;
	pointer-events: none;
}
.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 14px;
	color: var(--c-accent-ink);
}
.dark .link-arrow {
	color: var(--c-accent);
}
.link-arrow .icon {
	width: 16px;
	height: 16px;
	transition: transform 0.2s;
}
.link-arrow:hover .icon {
	transform: translateX(3px);
}
/* Круглая кнопка-стрелка */
.round-arrow {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--g-accent);
	color: #04130e;
	flex: none;
	transition: transform 0.2s;
}
.round-arrow .icon {
	width: 18px;
	height: 18px;
}
a:hover > .round-arrow,
.round-arrow:hover {
	transform: translateX(2px);
}
.circle-arrow {
	color: var(--c-accent-ink);
	width: 26px;
	height: 26px;
}

/* ---------- Карточки и мелочи ---------- */
.card {
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	border: 1px solid rgba(15, 40, 32, 0.04);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}
a.card:hover,
.card--hover:hover {
	box-shadow: var(--shadow-hover);
	transform: translateY(-2px);
}
.dark .card {
	background: var(--c-dark-card);
	border-color: var(--c-dark-line);
	box-shadow: none;
}
.card__title {
	font-size: var(--fs-h3);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--c-ink);
}
.dark .card__title {
	color: #fff;
}
.card__text {
	font-size: var(--fs-card);
	color: var(--c-muted);
	line-height: 1.5;
}
.dark .card__text {
	color: var(--c-dark-muted);
}
.icon-box {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--c-accent-soft);
	color: var(--c-accent-ink);
	flex: none;
}
.icon-box .icon {
	width: 26px;
	height: 26px;
	stroke-width: 1.7;
}
.icon-box--round {
	border-radius: 50%;
	background: var(--g-accent);
	color: #04130e;
}
.dark .icon-box {
	background: rgba(0, 229, 189, 0.1);
	color: var(--c-accent);
	border: 1px solid rgba(0, 229, 189, 0.35);
}
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.chip {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	line-height: 1.3;
	font-weight: 500;
	background: var(--c-accent-soft);
	color: #127a5b;
}
.tag {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--c-accent);
	border: 1px solid currentColor;
}
.tag--solid {
	background: var(--g-accent);
	color: #04130e;
	border: 0;
}
.check-list {
	display: grid;
	gap: 8px;
}
.check-list li {
	position: relative;
	padding-left: 26px;
	font-size: 14px;
	line-height: 1.45;
}
.check-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--c-accent-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.check-list--plain li::before {
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230bbf86' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
	background-size: 15px;
}
.dot-list {
	display: grid;
	gap: 4px;
}
.dot-list li {
	position: relative;
	padding-left: 14px;
	font-size: 14px;
}
.dot-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--c-accent);
}
.num {
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--g-accent);
	color: #04130e;
	font-size: 13px;
	font-weight: 700;
	flex: none;
}
.grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
}
@media (max-width: 1024px) {
	.grid {
		grid-template-columns: repeat(min(var(--cols, 3), 2), minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.grid {
		grid-template-columns: 1fr;
	}
	.grid--keep2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
/* Нечётная последняя карточка в сетке на 2 колонки — на всю строку, а не одна с пустотой справа
   (планшет и телефон; на широком экране — только в сетках по 2) */
.grid[style*="--cols:2"] > :last-child:nth-child(odd):not(:only-child) {
	grid-column: 1 / -1;
}
@media (max-width: 1024px) {
	.grid:not([style*="--cols:1"]) > :last-child:nth-child(odd):not(:only-child) {
		grid-column: 1 / -1;
	}
}
@media (max-width: 640px) {
	.grid:not(.grid--keep2) > :last-child:nth-child(odd):not(:only-child) {
		grid-column: auto;
	}
}

/* Плашка со статистикой поверх картинки (как «+42% Рост заявок») */
.stat-float {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 16px 20px;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
	color: var(--c-ink);
}
.stat-float__value {
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
}
.stat-float__label {
	font-size: 12px;
	line-height: 1.3;
	color: var(--c-muted);
	margin-top: 6px;
	max-width: 150px;
}
.stat-float .icon-box {
	width: 42px;
	height: 42px;
}
.stat-float__bars {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	height: 42px;
	margin-left: auto;
}
.stat-float__bars i {
	width: 9px;
	border-radius: 2px;
	background: var(--c-accent-2);
	opacity: 0.45;
}
.stat-float__bars i:nth-child(even) {
	opacity: 0.8;
}
.stat-float__bars i:last-child {
	opacity: 1;
}

/* ---------- Рамки устройств ---------- */
.devices {
	position: relative;
	width: 100%;
	max-width: 620px;
	margin-inline: auto;
	container-type: inline-size;
}
.devices--pair {
	padding-right: 14%;
}
.devices--pair.devices--phone-left {
	padding-right: 0;
	padding-left: 14%;
}
.devices--phone-left .phone {
	right: auto;
	left: 0;
}
/* Ноутбук в духе современного MacBook: тонкая рамка экрана, алюминиевая кромка крышки,
   низкий корпус шире экрана с выемкой под палец. Размеры — от ширины ноутбука (cqi). */
.laptop {
	position: relative;
	container-type: inline-size;
	filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.35));
}
.laptop__screen {
	position: relative;
	margin: 0 7.5%;
	aspect-ratio: 16 / 10.2;
	border: max(2px, 1.1cqi) solid #0b0c0e;
	border-top-width: max(3px, 1.5cqi);
	border-bottom-width: max(3px, 1.7cqi);
	border-radius: max(5px, 2.6cqi) max(5px, 2.6cqi) 0 0;
	background: #0b0c0e;
	box-shadow: 0 0 0 max(1px, 0.25cqi) #b9bfc5;
	overflow: hidden;
}
.laptop__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	border-radius: max(2px, 0.8cqi) max(2px, 0.8cqi) 0 0;
}
.laptop__base {
	position: relative;
	height: max(4px, 2.1cqi);
	background: linear-gradient(180deg, #eef0f2 0%, #c9ced3 35%, #9ca3aa 75%, #737a82 100%);
	border-radius: 0.4cqi 0.4cqi 45% 45% / 0.4cqi 0.4cqi 100% 100%;
}
.laptop__base::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	width: 13%;
	height: 42%;
	transform: translateX(-50%);
	background: linear-gradient(180deg, #a7aeb5, #c6cbd0);
	border-radius: 0 0 1.2cqi 1.2cqi;
}
.phone {
	position: absolute;
	right: 0;
	bottom: -4%;
	width: 24%;
	aspect-ratio: 9 / 19.5;
	border: max(3px, 0.8cqi) solid #0b0c0e;
	border-radius: max(12px, 3.6cqi);
	background: #0b0c0e;
	overflow: hidden;
	box-shadow: 0 0 0 max(1px, 0.2cqi) #b9bfc5, 0 24px 40px rgba(0, 0, 0, 0.4);
}
.phone__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	border-radius: max(9px, 2.8cqi);
}

/* ---------- Шапка ---------- */
.site-header__cta.btn {
	min-height: 52px;
	padding: 0 28px;
	font-size: 15px;
}
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	color: #fff;
	/* Как в макетах: шапка прозрачная поверх тёмного первого экрана, фон появляется при прокрутке */
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background-color 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled,
.nav-open .site-header {
	background: rgba(1, 13, 10, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom-color: rgba(255, 255, 255, 0.06);
}
/* Первая секция (всегда тёмная: первый экран или заголовок страницы) заходит под шапку */
.site-main > .hero:first-child,
.site-main > .page-header:first-child {
	margin-top: calc(var(--header-h) * -1);
	padding-top: calc(var(--header-h) + 8px);
}
.admin-bar .site-header {
	top: 32px;
}
.site-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: var(--header-h);
}
.logo {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: #fff;
	flex: none;
}
/* Логотип из настроек может быть любой ширины: высота фиксирована, слишком широкий вписывается без искажений */
.logo__img {
	width: auto;
	height: 48px;
	max-width: 240px;
	object-fit: contain;
	object-position: left center;
}
@media (max-width: 640px) {
	.logo__img {
		height: 34px;
		max-width: 170px;
	}
}
.logo__mark {
	width: 38px;
	height: 38px;
}
.logo__text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}
.logo__text b {
	font-size: 21px;
	font-weight: 800;
	letter-spacing: 0.01em;
	color: var(--c-accent-2);
}
.logo__text small {
	font-size: 11px;
	color: var(--c-accent);
	opacity: 0.85;
	margin-top: 2px;
}
.nav {
	flex: 1;
}
.nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
}
.nav__list > li {
	position: relative;
}
.nav__list a {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px 15px;
	font-size: 15px;
	font-weight: 500;
	border-radius: 999px;
	transition: color 0.2s, background-color 0.2s;
}
.nav__list a:hover {
	color: var(--c-accent);
}
.nav__list .current-menu-item > a,
.nav__list .current-menu-ancestor > a {
	color: var(--c-accent);
}
.nav__list .menu-item-has-children > a::after {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	margin-left: 4px;
}
.nav__list .sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 250px;
	padding: 8px;
	background: #fff;
	color: var(--c-ink);
	border-radius: var(--radius-sm);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: 0.2s ease;
}
.nav__list .sub-menu::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -10px;
	height: 10px;
}
.nav__list li:hover > .sub-menu,
.nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.nav__list .sub-menu a {
	border-radius: 8px;
	padding: 10px 12px;
}
.nav__list .sub-menu a:hover {
	background: var(--c-accent-soft);
	color: var(--c-ink);
}
.nav__mobile-extra {
	display: none;
}
.site-header__contacts {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-left: auto;
}
.header-phone {
	display: flex;
	align-items: center;
	gap: 10px;
}
.header-phone .icon {
	width: 20px;
	height: 20px;
	color: var(--c-accent);
}
.header-phone span {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}
.header-phone b {
	font-size: 16px;
	font-weight: 600;
}
.header-phone small {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.6);
}
.burger {
	display: none;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	position: relative;
}
.burger span,
.burger span::before,
.burger span::after {
	position: absolute;
	left: 11px;
	width: 22px;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: 0.25s;
}
.burger span {
	top: 21px;
}
.burger span::before {
	content: "";
	left: 0;
	top: -7px;
}
.burger span::after {
	content: "";
	left: 0;
	top: 7px;
}
.nav-open .burger span {
	background: transparent;
}
.nav-open .burger span::before {
	top: 0;
	transform: rotate(45deg);
}
.nav-open .burger span::after {
	top: 0;
	transform: rotate(-45deg);
}
@media (max-width: 1180px) {
	.header-phone small {
		display: none;
	}
	.nav__list a {
		padding: 8px 9px;
	}
}
@media (max-width: 1024px) {
	/* backdrop-filter делает шапку контейнером для position: fixed — меню на весь экран тогда не раскрыть */
	.site-header.is-scrolled,
	.nav-open .site-header {
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		background: var(--c-dark);
	}
	.burger {
		display: block;
	}
	.site-header__cta,
	.header-phone span {
		display: none;
	}
	.nav {
		position: fixed;
		inset: var(--header-h) 0 0;
		background: var(--c-dark);
		padding: 20px var(--gutter) 40px;
		overflow-y: auto;
		/* Не translateX: у шапки backdrop-filter, фиксированное меню считается внутри неё и дало бы горизонтальный скролл */
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
	}
	.admin-bar .nav {
		top: calc(var(--header-h) + 46px);
	}
	.nav-open .nav {
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.nav__list {
		flex-direction: column;
		align-items: stretch;
	}
	.nav__list a {
		font-size: 18px;
		padding: 12px 0;
	}
	.nav__list .sub-menu {
		position: static;
		opacity: 1;
		/* inherit, не visible: иначе подменю закрытого меню остаётся невидимым, но кликабельным поверх страницы */
		visibility: inherit;
		transform: none;
		background: transparent;
		color: #fff;
		box-shadow: none;
		padding: 0 0 8px 16px;
	}
	.nav__list li:hover > .sub-menu,
	.nav__list li:focus-within > .sub-menu {
		visibility: inherit;
	}
	.nav__list .sub-menu a {
		font-size: 15px;
		padding: 8px 0;
		color: rgba(255, 255, 255, 0.75);
	}
	.nav__list .sub-menu a:hover {
		background: none;
		color: var(--c-accent);
	}
	.nav__list .menu-item-has-children > a::after {
		display: none;
	}
	.nav__mobile-extra {
		display: grid;
		gap: 16px;
		margin-top: 24px;
		padding-top: 24px;
		border-top: 1px solid var(--c-dark-line);
	}
	.nav__phone {
		font-size: 20px;
		font-weight: 600;
	}
	.nav-open {
		overflow: hidden;
	}
}

/* ---------- Хлебные крошки и простой заголовок ---------- */
.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.85);
}
.crumbs li + li::before {
	content: "/";
	margin-right: 4px;
	opacity: 0.6;
}
.crumbs a {
	color: var(--c-accent);
}
.crumbs a:hover {
	text-decoration: underline;
}
.page-header {
	padding: 48px 0 56px;
	color: #fff;
}
.page-header {
	background:
		radial-gradient(55% 120% at 90% 100%, rgba(18, 214, 140, 0.2), transparent 62%),
		var(--c-dark);
}
.page-header__title {
	color: #fff;
	font-size: clamp(30px, 4vw, 48px);
	max-width: 900px;
}
.page-header__meta {
	margin-top: 12px;
	color: var(--c-dark-muted);
	font-size: 14px;
}

/* ---------- Подвал ---------- */
.site-footer {
	background: var(--c-dark);
	color: rgba(255, 255, 255, 0.72);
	padding: 32px 0 30px;
	font-size: 15px;
}
/* Колонки по макету главной: «Услуги» с x=425, «Компания» с 680, «Контакты» с 895 */
.site-footer__grid {
	display: grid;
	grid-template-columns: 308px 223px 183px minmax(0, 1fr) auto;
	gap: 32px;
}
.site-footer__brand p {
	margin: 12px 0 16px;
	max-width: 300px;
	font-size: 14px;
	line-height: 1.4;
}
.site-footer__title {
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 10px;
}
.site-footer__menu {
	display: grid;
	gap: 6px;
}
.site-footer__menu a:hover,
.site-footer__contacts a:hover {
	color: var(--c-accent);
}
.site-footer__contacts {
	display: grid;
	gap: 9px;
}
.site-footer__contacts li {
	display: flex;
	align-items: center;
	gap: 10px;
}
.site-footer__contacts .icon {
	width: 20px;
	height: 20px;
	color: var(--c-accent);
}
.socials {
	display: flex;
	gap: 10px;
}
.socials a {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid rgba(0, 229, 189, 0.5);
	color: var(--c-accent);
	transition: 0.2s;
}
.socials a:hover {
	background: var(--c-accent);
	color: var(--c-dark);
}
.socials .icon {
	width: 17px;
	height: 17px;
}
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 48px;
	margin-top: 36px;
	padding-top: 22px;
	border-top: 1px solid var(--c-dark-line);
	font-size: 15px;
	color: rgba(255, 255, 255, 0.6);
}
/* «Политика» — под колонкой «Услуги» */
.site-footer__bottom > :first-child {
	flex: 0 0 292px;
}
.site-footer__bottom a:hover {
	color: #fff;
}
.site-footer__slogan {
	margin-left: auto;
}
@media (max-width: 1180px) {
	.site-footer__grid {
		grid-template-columns: 1.4fr 1fr 1fr 1.3fr auto;
	}
	.site-footer__bottom > :first-child {
		flex-basis: auto;
	}
}
@media (max-width: 1024px) {
	.site-footer__grid {
		grid-template-columns: 1fr 1fr 1fr;
	}
	.site-footer__brand {
		grid-column: 1 / -1;
	}
}
/* Планшет: нижняя строка подвала — 2+2 (раньше 3+1 с девизом одним во второй строке) */
@media (min-width: 641px) and (max-width: 1024px) {
	.site-footer__bottom {
		display: grid;
		grid-template-columns: auto auto;
		justify-content: space-between;
	}
	.site-footer__bottom > :nth-child(even) {
		justify-self: end;
	}
	.site-footer__slogan {
		margin-left: 0;
	}
}
@media (max-width: 640px) {
	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
	.site-footer__grid > .site-footer__col:nth-last-child(2),
	.site-footer__cta {
		grid-column: 1 / -1;
	}
	.site-footer__slogan {
		margin-left: 0;
	}
	/* Зоны нажатия ссылок 37–40 px: пункты меню и контакты чуть реже, нижняя строка — без видимых изменений */
	.site-footer__menu {
		gap: 0;
		margin-block: -7px;
	}
	.site-footer__menu a {
		display: block;
		padding-block: 7px;
	}
	.site-footer__contacts {
		gap: 0;
	}
	.site-footer__contacts li {
		min-height: 40px;
	}
	.site-footer__contacts a {
		align-self: stretch;
		display: flex;
		align-items: center;
	}
	.site-footer__bottom a {
		padding-block: 6px;
		margin-block: -6px;
	}
	.socials a {
		position: relative;
	}
	.socials a::after {
		content: "";
		position: absolute;
		inset: -5px;
		border-radius: 50%;
	}
}

/* ---------- Формы ---------- */
.lead-form {
	display: grid;
	gap: 14px;
}
.lead-form__fields {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(var(--form-cols, 1), minmax(0, 1fr));
}
.lead-form__fields .field--message {
	grid-column: 1 / -1;
}
.lead-form__trap {
	position: absolute;
	left: -9999px;
}
.field {
	display: grid;
	gap: 6px;
}
.field__label {
	font-size: 14px;
	color: var(--c-text);
}
.field__label i {
	color: var(--c-accent-ink);
	font-style: normal;
}
.field input,
.field textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--c-line);
	border-radius: 10px;
	background: #fff;
	font-size: 15px;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea {
	display: block;
	resize: none;
	min-height: 96px;
	max-height: 220px;
	/* Растёт по тексту: CSS там, где поддерживается, иначе — main.js */
	field-sizing: content;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(120, 135, 150, 0.45) transparent;
}
.field input::placeholder,
.field textarea::placeholder {
	color: #a7b0b8;
}
.field input:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--c-accent);
	box-shadow: 0 0 0 3px rgba(0, 229, 189, 0.18);
}
.field.is-invalid input,
.field.is-invalid textarea {
	border-color: #e5484d;
}
.field__error {
	font-size: 12px;
	color: #e5484d;
	min-height: 0;
}
.field__error:empty {
	display: none;
}
.consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: var(--c-muted);
	cursor: pointer;
}
.consent input {
	appearance: none;
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 1.5px solid #c3ccd3;
	border-radius: 5px;
	background: #fff;
	flex: none;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.consent input::after {
	content: "";
	width: 9px;
	height: 5px;
	margin-top: -2px;
	border: solid #fff;
	border-width: 0 0 2px 2px;
	transform: rotate(-45deg) scale(0);
	transition: transform 0.15s;
}
.consent input:checked {
	background: var(--c-accent-ink);
	border-color: var(--c-accent-ink);
}
.consent input:checked::after {
	transform: rotate(-45deg) scale(1);
}
.consent input:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 229, 189, 0.25);
}
.consent a {
	color: var(--c-accent-ink);
	text-decoration: underline;
}
.lead-form__status {
	font-size: 14px;
}
.lead-form__status.is-ok {
	color: var(--c-accent-ink);
	font-weight: 600;
}
.lead-form__status.is-error {
	color: #e5484d;
}
.lead-form--dark .field input,
.lead-form--dark .field textarea {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.14);
	color: #fff;
}
.lead-form--dark .field input::placeholder,
.lead-form--dark .field textarea::placeholder {
	color: rgba(255, 255, 255, 0.55);
}
.lead-form--dark .consent {
	color: rgba(255, 255, 255, 0.6);
}
.lead-form--dark .consent input {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.3);
}
.lead-form--dark .consent input:checked {
	background: var(--g-accent);
	border-color: transparent;
}
.lead-form--dark .consent input::after {
	border-color: #03140f;
}
.lead-form--dark .consent a {
	color: var(--c-accent);
}
.lead-form--dark .field textarea {
	min-height: 52px;
}
.lead-form.is-sent .lead-form__fields,
.lead-form.is-sent .consent,
.lead-form.is-sent .lead-form__submit {
	display: none;
}

/* ---------- Окно ---------- */
.modal {
	position: fixed;
	inset: 0;
	z-index: 500;
	display: grid;
	place-items: center;
	padding: 16px;
}
.modal[hidden] {
	display: none;
}
.modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(1, 10, 8, 0.72);
	backdrop-filter: blur(4px);
}
.modal__dialog {
	position: relative;
	width: min(520px, 100%);
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 36px 32px 30px;
	background: #fff;
	border-radius: var(--radius-lg);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
	animation: modal-in 0.25s ease;
}
@keyframes modal-in {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.98);
	}
}
.modal__close {
	position: absolute;
	right: 14px;
	top: 14px;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: var(--c-bg-soft);
	display: grid;
	place-items: center;
}
.modal__close .icon {
	width: 20px;
	height: 20px;
}
.modal__title {
	font-size: 26px;
	margin-bottom: 8px;
}
.modal__lead {
	font-size: 14px;
	color: var(--c-muted);
	margin-bottom: 20px;
}
.modal-open {
	overflow: hidden;
}

/* ---------- Слайдер: стрелки ---------- */
.slider-nav {
	display: flex;
	gap: 8px;
}
.slider-nav button {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1.5px solid var(--c-accent);
	background: transparent;
	color: var(--c-accent-ink);
	display: grid;
	place-items: center;
	transition: 0.2s;
	position: relative;
}
/* Зона нажатия 44 px при видимом круге 34 px: на телефоне палец попадал в «Смотреть все проекты» */
.slider-nav button::after {
	content: "";
	position: absolute;
	inset: -5px;
	border-radius: 50%;
}
.dark .slider-nav button {
	color: var(--c-accent);
}
.slider-nav button:hover {
	background: var(--c-accent);
	color: var(--c-dark);
}
.slider-nav button.swiper-button-disabled {
	opacity: 0.35;
	pointer-events: none;
}
.slider-nav .icon {
	width: 18px;
	height: 18px;
}
.head-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

/* ---------- Пагинация ---------- */
.pager,
.nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 32px;
}
.pager .page-numbers,
.nav-links .page-numbers {
	display: grid;
	place-items: center;
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	color: var(--c-ink);
}
.page-numbers.current {
	background: var(--g-accent);
	color: #04130e;
}
.page-numbers:not(.current):hover {
	background: var(--c-accent-soft);
}
.page-numbers .icon {
	width: 18px;
	height: 18px;
	color: var(--c-accent-ink);
}

/* ---------- Блог и текстовые страницы ---------- */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
@media (max-width: 1024px) {
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.post-grid {
		grid-template-columns: 1fr;
	}
}
.post-card {
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.post-card__img {
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--c-mint-soft);
}
.post-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.post-card__body {
	padding: 20px 22px 24px;
	display: grid;
	gap: 10px;
}
.post-card__date {
	font-size: 12px;
	color: var(--c-muted);
}
.content {
	font-size: 17px;
	line-height: 1.7;
}
.content > * + * {
	margin-top: 1em;
}
.content h2 {
	font-size: 28px;
	margin-top: 1.6em;
}
.content h3 {
	font-size: 22px;
	margin-top: 1.4em;
}
.content a {
	color: var(--c-accent-ink);
	text-decoration: underline;
}
.content ul,
.content ol {
	padding-left: 1.3em;
}
.content img {
	border-radius: var(--radius-sm);
}
.content__cover {
	margin-bottom: 28px;
}
/* Таблицы в тексте страниц (политика и т. п.) */
.content .wp-block-table {
	overflow-x: auto;
}
.content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
}
.content th,
.content td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--c-line);
	text-align: left;
	vertical-align: top;
}
.content tbody th {
	width: 34%;
	color: var(--c-ink);
	font-weight: 600;
	background: var(--c-bg-soft);
}
/* Реквизит из «Настроек сайта» не заполнен — шорткод [fresh_req] выводит заметную пометку */
.fresh-req-missing {
	padding: 1px 6px;
	border-radius: 4px;
	background: #fff1b8;
	color: #6b4e00;
	font-weight: 600;
}

/* ---------- Ленты, которые листаются вбок ---------- */
/* Затухание у правого края показывает, что дальше есть пункты; в конце ленты оно исчезает */
@property --row-fade {
	syntax: "<length>";
	inherits: false;
	initial-value: 0px;
}
@keyframes fresh-row-fade {
	0%,
	85% {
		--row-fade: 48px;
	}
	100% {
		--row-fade: 0px;
	}
}
@media (max-width: 640px) {
	.cases-archive__filter,
	.gallery-tabs__tabs,
	.blog-cats {
		--row-fade: 48px;
		-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - var(--row-fade)), transparent);
		mask-image: linear-gradient(90deg, #000 calc(100% - var(--row-fade)), transparent);
	}
	@supports (animation-timeline: scroll()) {
		/* Лента помещается целиком — шкала прокрутки неактивна, затухания нет */
		.cases-archive__filter,
		.gallery-tabs__tabs,
		.blog-cats {
			--row-fade: 0px;
			animation: fresh-row-fade linear both;
			animation-timeline: scroll(self inline);
		}
	}
}

/* Ручные переносы в описаниях рассчитаны на компьютер — на телефоне давали рваные строки.
   После <br> в тексте остаётся перевод строки, поэтому слова не склеиваются */
@media (max-width: 640px) {
	.hero__text br,
	.steps-vlist__text br,
	.steps-line__text br,
	.steps-grid__text br,
	.price-card__text br {
		display: none;
	}
}

/* ---------- Появление при прокрутке ---------- */
/* Прячем только при работающем JS — без него контент виден сразу */
.js .reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
	html {
		scroll-behavior: auto;
	}
}

/* Подсказка в редакторе для пустого блока */
.block-placeholder {
	padding: 32px;
	border: 2px dashed var(--c-line);
	border-radius: var(--radius);
	text-align: center;
	color: var(--c-muted);
}

/* ---------- Уведомление о cookie ---------- */
/* Выводится скрытым, показывает main.js при первом заходе. Ниже шапки (100, в ней мобильное меню) и окна заявки (500) */
.cookie-notice {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 90;
	display: flex;
	align-items: center;
	gap: 18px;
	max-width: 480px;
	padding: 16px 18px 16px 20px;
	/* Мятная обводка — чтобы карточка читалась и на тёмном первом экране */
	border: 1px solid rgba(0, 229, 189, 0.3);
	border-radius: var(--radius);
	background: var(--c-dark);
	box-shadow: 0 14px 38px rgba(1, 13, 10, 0.3);
	color: var(--c-dark-muted);
	font-size: 14px;
	line-height: 1.5;
}
.cookie-notice[hidden] {
	display: none;
}
.cookie-notice__text {
	margin: 0;
}
.cookie-notice__text a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.cookie-notice__text a:hover {
	color: var(--c-accent);
}
.cookie-notice__btn {
	flex-shrink: 0;
}
@media (max-width: 640px) {
	.cookie-notice {
		left: 12px;
		right: 12px;
		bottom: 12px;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		max-width: none;
		padding: 16px;
	}
}
