/*
Theme Name: GreenDiv
Theme URI: https://greendivpro.ru/
Author: GreenDiv
Description: Конверсионная тема мастерской по перетяжке и реставрации мебели. Собрана под платный трафик из Яндекс Директа.
Version: 2.1.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: greendiv
*/

/* ==========================================================================
   Токены
   ========================================================================== */

:root {
	--c-primary: #0f6b66;
	--c-primary-dark: #0a5652;
	--c-primary-soft: #dcece9;
	--c-primary-tint: #f0f7f6;
	--c-accent: #a84b2d;
	--c-accent-dark: #873a22;
	--c-accent-soft: #f6e6de;
	--c-ink: #1d2321;
	--c-ink-soft: #4d5754;
	--c-muted: #59645f;
	--c-bg: #f7f3ec;
	--c-surface: #ffffff;
	--c-line: #e3ded4;
	--c-line-strong: #cdc6b8;
	--c-wa: #17853f;
	--c-wa-dark: #106b32;

	--r-sm: 8px;
	--r-md: 14px;
	--r-lg: 22px;
	--r-pill: 999px;

	--sh-sm: 0 1px 2px rgba(29, 35, 33, .06);
	--sh-md: 0 6px 18px rgba(29, 35, 33, .08);
	--sh-lg: 0 18px 44px rgba(29, 35, 33, .14);

	--f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--f-head: "Georgia", "Times New Roman", serif;

	--wrap: 1200px;
	--gap: clamp(16px, 3vw, 28px);
	--section-y: clamp(56px, 8vw, 104px);
	--header-h: 68px;
}

/* ==========================================================================
   Сброс и база
   ========================================================================== */

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

/* Скрытие через атрибут hidden должно работать поверх любого display,
   заданного в теме, иначе элемент прячется только для скринридеров. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

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

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-ink);
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.6;
	overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(29px, 4vw, 42px); }
h2 { font-size: clamp(25px, 3.6vw, 40px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-primary-dark); }

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }

.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: -9999px; top: 0; z-index: 200;
	background: var(--c-primary); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
	font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
	color: var(--c-accent); margin-bottom: .6em; font-family: var(--f-body);
}
.eyebrow--light { color: rgba(255, 255, 255, .82); }

.section__head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section__head--left { text-align: left; margin-inline: 0; }
.section__lead { color: var(--c-ink-soft); font-size: clamp(16px, 1.6vw, 18px); }

/* ==========================================================================
   Кнопки
   ========================================================================== */

.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 24px; border: 1px solid transparent; border-radius: var(--r-pill);
	font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2;
	text-decoration: none; cursor: pointer; text-align: center;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button .icon { display: inline-flex; width: 20px; height: 20px; flex: 0 0 auto; }
.button .icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.button--lg { padding: 17px 30px; font-size: 17px; }
.button--block { width: 100%; }

.button--accent { background: var(--c-accent); color: #fff; }
.button--accent:hover { background: var(--c-accent-dark); color: #fff; }

.button--primary { background: var(--c-primary); color: #fff; }
.button--primary:hover { background: var(--c-primary-dark); color: #fff; }

.button--outline { background: transparent; color: var(--c-primary); border-color: var(--c-line-strong); }
.button--outline:hover { background: var(--c-primary-tint); border-color: var(--c-primary); color: var(--c-primary-dark); }

.button--whatsapp { background: var(--c-wa); color: #fff; }
.button--whatsapp:hover { background: var(--c-wa-dark); color: #fff; }

.button--light { background: #fff; color: var(--c-primary-dark); }
.button--light:hover { background: #fff; color: var(--c-primary-dark); }

.button--ghost { background: transparent; color: var(--c-ink-soft); border-color: var(--c-line-strong); }
.button--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.button--ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.button--header { padding: 11px 20px; font-size: 15px; }

.icon-button {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c-line);
	background: #fff; cursor: pointer; color: var(--c-ink-soft);
}
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ==========================================================================
   Шапка
   ========================================================================== */

.site-header {
	position: sticky; top: 0; z-index: 90;
	background: rgba(247, 243, 236, .92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--c-line); box-shadow: var(--sh-sm); }

.site-header__inner {
	display: flex; align-items: center; gap: clamp(10px, 1.6vw, 24px);
	min-height: var(--header-h); flex-wrap: nowrap;
}

.brand { display: inline-flex; flex: 0 0 auto; text-decoration: none; }

.site-nav { margin-inline-start: auto; flex: 0 1 auto; min-width: 0; }
.site-nav__list { display: flex; gap: clamp(14px, 1.8vw, 26px); list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
	color: var(--c-ink-soft); text-decoration: none; font-size: 15px; font-weight: 500;
	padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.site-nav__list a:hover { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.site-nav__footer { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }

.header-phone {
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--c-ink); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.header-phone .icon { width: 18px; height: 18px; color: var(--c-primary); }
.header-phone .icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.nav-toggle {
	display: none; width: 44px; height: 44px; border: 1px solid var(--c-line);
	background: #fff; border-radius: var(--r-sm); cursor: pointer; padding: 0;
}
.nav-toggle__lines { display: grid; gap: 5px; justify-items: center; }
.nav-toggle__lines span { display: block; width: 20px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 1200px) {
	.site-nav {
		position: fixed; inset: var(--header-h) 0 auto; margin: 0;
		background: var(--c-surface); border-bottom: 1px solid var(--c-line);
		padding: 20px var(--gap) 28px; box-shadow: var(--sh-lg);
		transform: translateY(-120%); transition: transform .25s ease; visibility: hidden;
	}
	body.nav-open .site-nav { transform: translateY(0); visibility: visible; }
	.site-nav__list { flex-direction: column; gap: 4px; }
	.site-nav__list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--c-line); font-size: 17px; }
	.site-nav__footer { display: grid; gap: 12px; margin-top: 18px; }
	.site-nav__phone { font-size: 20px; font-weight: 700; color: var(--c-ink); text-decoration: none; }
	.nav-toggle { display: block; margin-inline-start: 0; }
	.site-header__actions { margin-inline-start: auto; }
	.site-header__actions .button--header { display: none; }
}

@media (max-width: 820px) {
	.header-phone span:not(.icon) { display: none; }
	.header-phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--c-line); border-radius: 50%; background: #fff; }
}

/* ==========================================================================
   Слайдер «до / после»
   ========================================================================== */

.ba { position: relative; }

.ba__frame {
	position: relative; overflow: hidden; border-radius: var(--r-md);
	background: var(--c-primary-soft); touch-action: pan-y;
	box-shadow: var(--sh-md); cursor: ew-resize; isolation: isolate;
}
.ba__after, .ba__before { display: block; }
.ba__after img, .ba__before img {
	width: 100%; display: block;
	user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.ba__frame { user-select: none; }

.ba__before {
	position: absolute; inset: 0;
	clip-path: inset(0 45% 0 0);
	will-change: clip-path;
}
.ba__before img { height: 100%; object-fit: cover; }

.ba__tag {
	position: absolute; top: 10px; z-index: 3;
	padding: 5px 12px; border-radius: var(--r-pill);
	font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	background: rgba(29, 35, 33, .72); color: #fff; backdrop-filter: blur(4px);
	pointer-events: none;
}
.ba__tag--before { left: 10px; }
.ba__tag--after { right: 10px; background: rgba(15, 107, 102, .85); }
.ba__disclosure {
	position: absolute;
	left: 50%;
	bottom: 10px;
	z-index: 4;
	transform: translateX(-50%);
	padding: 5px 9px;
	border: 1px solid rgba(255, 255, 255, .72);
	border-radius: 999px;
	background: rgba(24, 51, 47, .86);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1;
	text-transform: uppercase;
}

.ba__handle {
	position: absolute; top: 0; bottom: 0; left: 55%; z-index: 4;
	width: 3px; background: #fff; transform: translateX(-50%);
	box-shadow: 0 0 0 1px rgba(29, 35, 33, .18); pointer-events: none;
}
.ba__handle-grip {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 44px; height: 44px; border-radius: 50%; background: #fff;
	display: grid; place-items: center; box-shadow: var(--sh-md); color: var(--c-primary);
}
.ba__handle-grip svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Ползунок остаётся доступным с клавиатуры, но визуально скрыт под ручкой. */
.ba__range {
	position: absolute; inset: auto 0 0; z-index: 5;
	width: 100%; margin: 0; opacity: 0; height: 44px; cursor: ew-resize;
}
.ba__range:focus-visible { opacity: 1; }

/* ==========================================================================
   Первый экран
   ========================================================================== */

.hero { padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 76px); }
.hero__inner {
	display: grid; gap: clamp(28px, 4vw, 56px); align-items: center;
	grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 960px) {
	.hero__inner { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
}

.hero__eyebrow {
	display: inline-flex; align-items: center; gap: 7px;
	font-size: 14px; font-weight: 600; color: var(--c-primary);
	background: var(--c-primary-soft); padding: 6px 14px; border-radius: var(--r-pill);
	margin-bottom: 14px;
}
.hero__pin { display: inline-flex; width: 16px; height: 16px; }
.hero__pin svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; }

.hero h1 { margin-bottom: .4em; }
.hero__lead { font-size: clamp(16px, 1.8vw, 19px); color: var(--c-ink-soft); max-width: 46ch; }

.hero__savings {
	display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
	background: var(--c-accent-soft); color: var(--c-accent-dark);
	padding: 9px 16px; border-radius: var(--r-md); font-weight: 600; font-size: 15px;
	margin-bottom: 20px;
}
.hero__savings strong { font-size: 22px; font-family: var(--f-head); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.hero__actions .button--lg { padding: 15px 22px; font-size: 16px; }

.hero__phone {
	display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
	color: var(--c-ink); margin-bottom: 20px;
}
.hero__phone .icon { width: 22px; height: 22px; color: var(--c-primary); }
.hero__phone .icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero__phone span:nth-of-type(2) { font-size: 21px; font-weight: 700; }
.hero__phone small { display: block; color: var(--c-muted); font-size: 13px; font-weight: 500; }

.hero__trust {
	list-style: none; margin: 0; padding: 0; display: grid; gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero__trust li {
	display: flex; align-items: center; gap: 10px;
	font-size: 15px; font-weight: 600; color: var(--c-ink);
	background: var(--c-surface); border: 1px solid var(--c-line);
	border-radius: var(--r-md); padding: 11px 14px; line-height: 1.25;
}
.hero__trust span {
	display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto;
	border-radius: 50%; background: var(--c-primary); color: #fff;
}
.hero__trust svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 420px) { .hero__trust { grid-template-columns: 1fr; gap: 8px; } }

.hero__media { margin: 0; }
.hero--text .hero__inner { grid-template-columns: minmax(0, 780px); justify-content: center; }
.hero--text .hero__copy { text-align: center; }
.hero--text .hero__actions, .hero--text .hero__trust { justify-content: center; }
.hero .ba__frame { aspect-ratio: 5 / 4; }
.hero .ba__after, .hero .ba__before { position: absolute; inset: 0; }
.hero .ba__after img, .hero .ba__before img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
@media (max-width: 600px) { .hero .ba__frame { aspect-ratio: 4 / 3; } }
.hero__caption { margin-top: 12px; font-size: 14px; color: var(--c-muted); }
.hero__caption strong { color: var(--c-ink); }
.hero__caption span { display: block; }

/* ==========================================================================
   Полоса быстрого расчёта
   ========================================================================== */

.band { background: var(--c-primary); color: #fff; padding-block: clamp(32px, 4.5vw, 56px); }
.band__inner { display: grid; gap: clamp(20px, 3vw, 40px); align-items: center; }
@media (min-width: 900px) { .band__inner { grid-template-columns: 1.4fr 1fr; } }
.band h2 { color: #fff; margin-bottom: .35em; }
.band p { color: rgba(255, 255, 255, .86); max-width: 56ch; }
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   Типы мебели
   ========================================================================== */

.types__grid {
	list-style: none; margin: 0; padding: 0; display: grid; gap: 14px;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
@media (max-width: 560px) {
	.types__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.type-card { padding: 8px 8px 12px; }
	.type-card__label { font-size: 14px; }
}
.type-card {
	display: grid; gap: 10px; width: 100%; padding: 12px 12px 16px;
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md);
	text-decoration: none; color: var(--c-ink); cursor: pointer; font: inherit; text-align: left;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
	position: relative;
}
.type-card:hover { border-color: var(--c-primary); box-shadow: var(--sh-md); transform: translateY(-2px); color: var(--c-ink); }
.type-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-sm); background: var(--c-primary-soft); }
.type-card__media img { width: 100%; height: 100%; object-fit: cover; }
.type-card__label { font-weight: 600; font-size: 16px; }
.type-card__arrow { position: absolute; right: 14px; bottom: 14px; width: 18px; height: 18px; color: var(--c-accent); opacity: 0; transition: opacity .18s ease; }
.type-card:hover .type-card__arrow { opacity: 1; }
.type-card__arrow svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   Портфолио
   ========================================================================== */

.works__filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: clamp(20px, 3vw, 32px); }
.chip {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 18px; border-radius: var(--r-pill); border: 1px solid var(--c-line-strong);
	background: var(--c-surface); color: var(--c-ink-soft); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.chip.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.chip__count { font-size: 13px; opacity: .7; }

.works__grid {
	list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(16px, 2.4vw, 26px);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.works__item.is-hidden { display: none; }

.work-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.work-card .ba__frame { border-radius: 0; box-shadow: none; aspect-ratio: 4 / 3; }
.work-card .ba__after, .work-card .ba__before { position: absolute; inset: 0; }
.work-card .ba__after img, .work-card .ba__before img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.work-card__body { padding: 16px 18px 20px; }
.work-card__title { font-size: 18px; margin-bottom: 4px; }
.work-card__note { font-size: 14px; color: var(--c-muted); margin: 0; }

.works__more { display: grid; justify-items: center; gap: 10px; margin-top: clamp(24px, 3vw, 36px); }
.works__counter { font-size: 14px; color: var(--c-muted); margin: 0; }

/* ==========================================================================
   Сравнение
   ========================================================================== */

.compare__layout { display: grid; gap: clamp(22px, 3vw, 40px); }
@media (min-width: 1000px) { .compare__layout { grid-template-columns: 1.25fr 1fr; align-items: start; } }

.compare__columns { display: grid; gap: 16px; }
@media (min-width: 620px) { .compare__columns { grid-template-columns: 1fr 1fr; } }

.compare__col { padding: clamp(20px, 2.6vw, 28px); border-radius: var(--r-lg); border: 1px solid var(--c-line); background: var(--c-surface); }
.compare__col h3 { margin-bottom: .7em; }
.compare__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.compare__col li { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; }
.compare__col--muted { background: #f1ece3; color: var(--c-ink-soft); }
.compare__col--accent { border-color: var(--c-primary); box-shadow: var(--sh-md); }

.compare__mark { display: inline-flex; width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; }
.compare__mark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.compare__mark--minus { color: #a6483a; }
.compare__mark--plus { color: var(--c-primary); }

.compare__savings { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--c-line); font-size: 16px; }
.compare__savings strong { font-family: var(--f-head); font-size: 22px; color: var(--c-accent-dark); }

.compare__proof { margin: 0; }
.compare__proof .ba__frame, .estimate__proof .ba__frame { aspect-ratio: 3 / 2; }
.compare__proof .ba__after, .compare__proof .ba__before,
.estimate__proof .ba__after, .estimate__proof .ba__before { position: absolute; inset: 0; }
.compare__proof img, .estimate__proof img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.compare__proof figcaption { margin-top: 12px; font-size: 14px; color: var(--c-muted); }
.compare__proof figcaption strong { display: block; color: var(--c-ink); font-size: 15px; }

.compare__cta { margin-top: clamp(24px, 3vw, 36px); text-align: center; }

/* ==========================================================================
   Преимущества
   ========================================================================== */

.why__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.why__card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 26px); }
.why__icon { display: inline-flex; width: 34px; height: 34px; color: var(--c-primary); margin-bottom: 14px; }
.why__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.why__value { font-family: var(--f-head); font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; margin: 0; line-height: 1.1; }
.why__label { color: var(--c-accent); font-weight: 600; font-size: 14px; margin: 2px 0 10px; }
.why__text { color: var(--c-ink-soft); font-size: 15px; margin: 0; }

/* ==========================================================================
   Процесс
   ========================================================================== */

.process__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(18px, 2.4vw, 26px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: step; }
.process__step { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.process__media { position: relative; aspect-ratio: 4 / 3; background: var(--c-primary-soft); }
.process__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.process__number {
	position: absolute; left: 14px; bottom: 14px;
	background: var(--c-accent); color: #fff; font-family: var(--f-head); font-size: 15px; font-weight: 600;
	width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--sh-sm);
}
.process__body { padding: 18px 20px 22px; }
.process__body h3 { font-size: 18px; margin-bottom: .4em; }
.process__body p { font-size: 15px; color: var(--c-ink-soft); margin: 0; }
.process__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: clamp(24px, 3vw, 36px); }

/* ==========================================================================
   Ткани
   ========================================================================== */

.fabrics__layout { display: grid; gap: clamp(24px, 3vw, 48px); align-items: center; }
@media (min-width: 960px) { .fabrics__layout { grid-template-columns: 1fr 1.05fr; } }
.fabrics__kinds { list-style: none; margin: 18px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fabrics__kinds li { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-pill); padding: 7px 16px; font-size: 14px; color: var(--c-ink-soft); }
.fabrics__note { color: var(--c-ink-soft); font-size: 15px; margin-bottom: 22px; }
.fabrics__media { display: grid; gap: 14px; }
.fabrics__shot { margin: 0; }
.fabrics__shot img { width: 100%; border-radius: var(--r-md); box-shadow: var(--sh-md); }
.fabrics__shot figcaption { margin-top: 8px; font-size: 13px; color: var(--c-muted); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq__inner { display: grid; gap: clamp(24px, 3vw, 48px); align-items: start; }
@media (min-width: 900px) { .faq__inner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.faq__actions { margin-top: 20px; }

.faq__list { display: grid; gap: 10px; }
.faq__item { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; }
.faq__item summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 16px 20px; cursor: pointer; font-weight: 600; font-size: 16px; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item[open] summary { color: var(--c-primary); }
.faq__chevron { display: inline-flex; width: 20px; height: 20px; flex: 0 0 auto; transition: transform .2s ease; color: var(--c-muted); }
.faq__chevron svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__answer { padding: 0 20px 18px; color: var(--c-ink-soft); font-size: 15px; }
.faq__answer p { margin: 0; }

/* ==========================================================================
   Форма расчёта
   ========================================================================== */

.estimate__inner { display: grid; gap: clamp(26px, 3.5vw, 52px); align-items: start; }
@media (min-width: 960px) { .estimate__inner { grid-template-columns: 1fr 1fr; } }

.estimate__proof { margin: 22px 0; }
.estimate__proof figcaption { margin-top: 10px; font-size: 14px; color: var(--c-muted); }
.estimate__alt { border-top: 1px solid var(--c-line); padding-top: 20px; }
.estimate__alt p { font-size: 15px; color: var(--c-ink-soft); }
.estimate__alt-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.gd-form {
	background: var(--c-surface); border: 1px solid var(--c-line);
	border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--sh-md);
}
.gd-form__row { display: grid; gap: 14px; }
@media (min-width: 560px) { .gd-form__row { grid-template-columns: 1fr 1fr; } }

.gd-field { display: block; margin-bottom: 14px; }
.gd-field__label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--c-ink); }
.gd-field__label em { font-style: normal; font-weight: 400; color: var(--c-muted); }
.gd-field--required .gd-field__label::after { content: " *"; color: var(--c-accent); }

.gd-input, .gd-select, .gd-textarea {
	width: 100%; padding: 13px 15px; font: inherit; font-size: 16px;
	border: 1px solid var(--c-line-strong); border-radius: var(--r-sm);
	background: #fff; color: var(--c-ink); transition: border-color .18s ease, box-shadow .18s ease;
}
.gd-input:focus, .gd-select:focus, .gd-textarea:focus {
	outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft);
}
.gd-textarea { resize: vertical; min-height: 84px; }

.gd-upload {
	display: block; border: 2px dashed var(--c-line-strong); border-radius: var(--r-md);
	padding: 18px; text-align: center; margin-bottom: 14px; position: relative;
	transition: border-color .18s ease, background-color .18s ease;
}
.gd-upload.is-dragover, .gd-upload:hover { border-color: var(--c-primary); background: var(--c-primary-tint); }
.gd-upload__label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.gd-upload__label em { font-style: normal; font-weight: 400; color: var(--c-muted); }
.gd-upload__hint { display: block; font-size: 14px; color: var(--c-muted); }
.gd-upload input[type="file"] { width: 100%; font-size: 14px; margin-bottom: 8px; }
.gd-upload__preview:not(:empty) { display: block; margin-top: 12px; }
.gd-upload__preview img { max-height: 160px; width: auto; margin-inline: auto; border-radius: var(--r-sm); box-shadow: var(--sh-sm); }
.gd-uploads { min-width: 0; margin: 0 0 14px; padding: 0; border: 0; }
.gd-uploads legend { margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 600; }
.gd-uploads legend em { color: var(--c-muted); font-style: normal; font-weight: 400; }
.gd-uploads__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gd-uploads__note { display: block; margin-top: 8px; color: var(--c-muted); font-size: 13px; }
.gd-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
@media (max-width: 520px) { .gd-uploads__grid { grid-template-columns: 1fr; } }

.gd-consent { display: block; font-size: 13px; color: var(--c-muted); margin-bottom: 16px; line-height: 1.5; }
.gd-consent input { margin-inline-end: 6px; }

.gd-form__submit { display: grid; gap: 10px; }
.gd-submit { width: 100%; }
.gd-submit.is-loading { opacity: .7; cursor: progress; pointer-events: none; }
.gd-form__note { font-size: 13px; color: var(--c-muted); margin: 0; text-align: center; }

.wpcf7 form .wpcf7-response-output {
	margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r-sm);
	border: 1px solid var(--c-line-strong); font-size: 14px;
}
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: #c0563f; background: #fdf1ee; color: #8f331f; }
.wpcf7 form.sent .wpcf7-response-output { display: none; }
.wpcf7-not-valid-tip { display: block; margin-top: 5px; font-size: 13px; color: #a6483a; }
.wpcf7-spinner { display: none; }

.form-fallback { text-align: center; }
.form-fallback__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 16px; }

/* ==========================================================================
   Посадочные
   ========================================================================== */

.breadcrumbs { padding-block: 14px; font-size: 14px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; color: var(--c-muted); }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 8px; color: var(--c-line-strong); }

.related__title { font-size: clamp(20px, 2.4vw, 26px); }
.related__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related__list a { display: inline-block; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-pill); padding: 9px 18px; text-decoration: none; font-size: 15px; }
.related__list a:hover { border-color: var(--c-primary); }

.service-scope { padding-top: clamp(40px, 6vw, 72px); }
.service-scope__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.service-scope__list { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.service-scope__list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; }
.service-scope__list span { display: inline-flex; width: 24px; height: 24px; flex: 0 0 auto; color: var(--c-primary); }
.service-scope__list svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; }
.service-price { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-surface); box-shadow: var(--sh-md); }
.service-price h2 { font-size: clamp(22px, 2.7vw, 30px); }
.service-price ul { margin: 18px 0; padding-left: 22px; color: var(--c-ink-soft); }
.service-price .button { margin-top: 8px; }
@media (max-width: 760px) { .service-scope__layout { grid-template-columns: 1fr; } }

/* ==========================================================================
   Подвал
   ========================================================================== */

.site-footer { background: #16211f; color: rgba(255, 255, 255, .78); padding-block: clamp(40px, 5vw, 64px) 24px; margin-top: var(--section-y); }
.site-footer__grid { display: grid; gap: clamp(24px, 3vw, 40px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.site-footer h2 { color: #fff; font-size: 16px; font-family: var(--f-body); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.brand--footer { margin-bottom: 16px; }
.site-footer__requisites { font-size: 13px; color: rgba(255, 255, 255, .72); }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.site-footer__contacts { display: grid; gap: 9px; align-content: start; font-size: 15px; }
.site-footer__contacts address { font-style: normal; color: rgba(255, 255, 255, .6); font-size: 14px; }
.site-footer__bottom {
	display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
	margin-top: clamp(28px, 4vw, 44px); padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px;
}
.site-footer__legal-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* ==========================================================================
   Липкая панель, модалка, тост
   ========================================================================== */

.contact-dock {
	position: fixed; right: clamp(16px, 2.4vw, 34px); bottom: 28px; z-index: 78;
	font-size: 15px;
}
.contact-dock__toggle {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	min-height: 52px; padding: 0 20px; border-radius: var(--r-pill);
	background: var(--c-primary); color: #fff; box-shadow: var(--sh-lg);
	font-weight: 700; cursor: pointer; list-style: none;
}
.contact-dock__toggle::-webkit-details-marker { display: none; }
.contact-dock__toggle::marker { content: ""; }
.contact-dock__toggle:hover { background: var(--c-primary-dark); }
.contact-dock__panel {
	position: absolute; right: 0; bottom: calc(100% + 10px); width: 210px;
	display: grid; gap: 7px; padding: 10px;
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md);
	box-shadow: var(--sh-lg);
}
.contact-dock:not([open]) .contact-dock__panel { display: none; }
.contact-dock__panel a {
	display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 9px 12px;
	border-radius: var(--r-sm); color: var(--c-ink); font-weight: 600; text-decoration: none;
}
.contact-dock__panel a:hover { background: var(--c-primary-tint); color: var(--c-primary-dark); }
.contact-dock__panel .icon {
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
	width: 32px; height: 32px; border-radius: 50%;
}
.contact-dock__toggle .icon { width: 20px; height: 20px; flex: 0 0 auto; }
.contact-dock__panel .icon svg { width: 18px; height: 18px; }
.contact-dock__panel .icon svg, .contact-dock__toggle .icon svg {
	fill: none; stroke: currentColor; stroke-width: 1.8;
	stroke-linecap: round; stroke-linejoin: round;
}
.contact-dock__toggle .icon svg { width: 100%; height: 100%; }
.contact-dock__phone .icon { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.contact-dock__whatsapp .icon { background: #e5f5eb; color: var(--c-wa-dark); }
.contact-dock__telegram .icon { background: #e5f3fb; color: #176f9b; }
@media (max-width: 900px) { .contact-dock { display: none; } }

.mobile-cta {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
	display: none; gap: 8px; padding: 10px calc(var(--gap) / 1.5) calc(10px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, .97); border-top: 1px solid var(--c-line);
	box-shadow: 0 -6px 20px rgba(29, 35, 33, .1);
	transform: translateY(110%); transition: transform .25s ease;
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta a, .mobile-cta button {
	flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	padding: 12px 6px; border-radius: var(--r-pill); font: inherit; font-size: 14px; font-weight: 600;
	text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
@media (max-width: 400px) {
	.mobile-cta { gap: 6px; padding-inline: 10px; }
	.mobile-cta a, .mobile-cta button { font-size: 13px; padding-inline: 4px; }
	.mobile-cta__wa span:not(.icon), .mobile-cta__tel span:not(.icon) { display: none; }
}
.mobile-cta .icon { width: 17px; height: 17px; }
.mobile-cta .icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mobile-cta__wa { background: var(--c-wa); color: #fff; }
.mobile-cta__tel { background: var(--c-surface); color: var(--c-primary-dark); border-color: var(--c-line-strong); }
.mobile-cta__estimate { background: var(--c-accent); color: #fff; flex: 1.3; }

@media (max-width: 900px) {
	.mobile-cta { display: flex; }
	body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
}

.modal { border: 0; padding: 0; border-radius: var(--r-lg); max-width: min(480px, calc(100vw - 32px)); width: 100%; box-shadow: var(--sh-lg); background: var(--c-surface); }
.modal::backdrop { background: rgba(22, 33, 31, .6); backdrop-filter: blur(3px); }
.modal__panel { padding: clamp(22px, 4vw, 34px); position: relative; }
.modal__close { position: absolute; top: 14px; right: 14px; }
.modal h2 { font-size: clamp(21px, 3vw, 26px); }
.modal__form { margin-top: 18px; }
.modal .gd-form { padding: 0; border: 0; box-shadow: none; background: transparent; }

.status-toast {
	position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); z-index: 120;
	display: flex; align-items: center; gap: 11px; width: max-content;
	max-width: calc(100vw - 32px); padding: 13px 18px; border: 1px solid #a8d9be;
	border-radius: var(--r-md); background: #ecf8f1; color: #155b35;
	box-shadow: var(--sh-lg); font-size: 15px; font-weight: 600; line-height: 1.4; opacity: 0;
	transition: opacity .22s ease, transform .22s ease; pointer-events: none;
}
.status-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.status-toast__icon {
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
	width: 28px; height: 28px; border-radius: 50%; background: #d5f0df; color: #126b3b;
}
.status-toast__icon svg {
	width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4;
	stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 900px) { .status-toast { bottom: 92px; } }

/* ==========================================================================
   Служебные страницы
   ========================================================================== */

.page-hero { padding-block: clamp(32px, 5vw, 60px) 0; }
.entry-content { max-width: 760px; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-inline-start: 22px; }
.entry-content li { margin-bottom: .5em; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--c-line); padding: 10px 12px; text-align: left; }

.error-404 { text-align: center; padding-block: clamp(60px, 10vw, 120px); }
.error-404 .button { margin-top: 20px; }

/* ==========================================================================
   Текстовые страницы и 404
   ========================================================================== */

.page-shell { padding-block: clamp(32px, 5vw, 64px); }
.prose { max-width: 780px; }
.prose .entry-header { margin-bottom: clamp(20px, 3vw, 32px); }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-inline-start: 22px; }
.prose li { margin-bottom: .5em; }
.prose a { text-decoration: underline; }

.post-list { display: grid; gap: 22px; }
.post-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 22px; }
.post-card h2 { font-size: 22px; margin-bottom: .4em; }
.post-card a { text-decoration: none; }

.not-found { padding-block: clamp(60px, 9vw, 110px); }
.not-found__inner { max-width: 620px; margin-inline: auto; text-align: center; }
.not-found__code { font-family: var(--f-head); font-size: clamp(72px, 14vw, 140px); line-height: 1; color: var(--c-primary-soft); margin: 0 0 8px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* Страница «О компании» */
.about__grid { display: grid; gap: clamp(20px, 3vw, 36px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.about__card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 28px); }
.about__card dt { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); font-weight: 600; }
.about__card dd { margin: 4px 0 16px; font-weight: 600; }

/* ==========================================================================
   Фирменный знак
   ========================================================================== */

.brand__lockup { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 38px; height: 38px; flex: 0 0 auto; }
.brand__mark-plate { fill: var(--c-primary); }
.brand__mark-body { fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.brand__mark-stitch { fill: none; stroke: var(--c-accent); stroke-width: 2.1; stroke-linecap: round; stroke-dasharray: 3 3.4; }

.brand__words { display: grid; line-height: 1.05; }
.brand__name {
	font-family: var(--f-head); font-size: 20px; font-weight: 600;
	color: var(--c-ink); letter-spacing: -.01em; white-space: nowrap;
}
.brand__name em { font-style: normal; color: var(--c-primary); }
.brand__tagline {
	font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
	color: var(--c-muted); font-weight: 600; margin-top: 3px;
}
.brand__lockup--light .brand__name { color: #fff; }
.brand__lockup--light .brand__name em { color: #7fd0c9; }
.brand__lockup--light .brand__tagline { color: rgba(255, 255, 255, .55); }
.brand__lockup--light .brand__mark-plate { fill: rgba(255, 255, 255, .12); }

@media (max-width: 520px) {
	.brand__mark { width: 34px; height: 34px; }
	.brand__name { font-size: 17px; }
	.brand__tagline { font-size: 9px; }
}

/* ==========================================================================
   Разделение экранов
   ========================================================================== */

/* Чередуем фон, чтобы соседние блоки читались как отдельные экраны,
   а не как одно бесконечное полотно. */
.types, .compare, .process, .reviews, .estimate { background: var(--c-surface); }
.works, .why, .fabrics, .faq, .related { background: var(--c-bg); }

.types, .works, .compare, .why, .process, .fabrics, .reviews, .faq, .estimate {
	border-top: 1px solid var(--c-line);
}

/* Тонкий акцент над заголовком секции — визуальная «засечка» начала экрана. */
.section__head::before {
	content: ""; display: block; width: 42px; height: 3px; border-radius: 2px;
	background: var(--c-accent); margin: 0 auto 20px;
}
.section__head--left::before { margin-inline: 0; }

/* ==========================================================================
   Появление при прокрутке
   ========================================================================== */

.reveal {
	opacity: 0; transform: translateY(18px);
	transition: opacity .55s cubic-bezier(.22, .61, .36, 1) var(--reveal-delay, 0ms),
	            transform .55s cubic-bezier(.22, .61, .36, 1) var(--reveal-delay, 0ms);
}
.reveal.is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
}

/* Карточки заметнее отзываются на курсор. */
.work-card, .why__card, .process__step, .review-card {
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.work-card:hover, .why__card:hover, .process__step:hover {
	transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--c-line-strong);
}

/* ==========================================================================
   Окно расчёта
   ========================================================================== */

.modal--wide { max-width: min(720px, calc(100vw - 32px)); }
.modal__lead { color: var(--c-ink-soft); font-size: 15px; }
.modal[open] { animation: gd-modal-in .22s cubic-bezier(.22, .61, .36, 1); }
.modal::backdrop { animation: gd-fade-in .22s ease; }

@keyframes gd-modal-in {
	from { opacity: 0; transform: translateY(12px) scale(.98); }
	to   { opacity: 1; transform: none; }
}
@keyframes gd-fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal__alt {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
	margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--c-line);
	font-size: 14px; color: var(--c-muted);
}
.button--sm { padding: 9px 16px; font-size: 14px; }
body.dialog-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.modal[open], .modal::backdrop { animation: none; }
}

/* ==========================================================================
   Контакты
   ========================================================================== */

.contacts { background: var(--c-surface); }
.contacts__layout { display: grid; gap: clamp(20px, 3vw, 34px); }
@media (min-width: 1000px) { .contacts__layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; } }

.contacts__tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 560px) and (max-width: 999px) { .contacts__tiles { grid-template-columns: 1fr 1fr; } }

/* Крупные плитки вместо строчек текста: по ним удобно попадать пальцем. */
.contact-tile {
	display: flex; align-items: center; gap: 14px; width: 100%;
	padding: 16px 18px; border-radius: var(--r-md);
	background: var(--c-bg); border: 1px solid var(--c-line);
	text-decoration: none; color: var(--c-ink); cursor: pointer;
	font: inherit; text-align: left;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.contact-tile:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--c-primary); color: var(--c-ink); }
.contact-tile__icon {
	display: grid; place-items: center; flex: 0 0 auto;
	width: 46px; height: 46px; border-radius: 50%;
	background: var(--c-primary-soft); color: var(--c-primary-dark);
}
.contact-tile__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-tile__body { display: grid; gap: 2px; min-width: 0; }
.contact-tile__body strong { font-size: 17px; font-weight: 600; }
.contact-tile__body small { font-size: 13px; color: var(--c-muted); }
.contact-tile--wa .contact-tile__icon { background: #dff5e6; color: var(--c-wa-dark); }
.contact-tile--tg .contact-tile__icon { background: #ddeefb; color: #1c7ab8; }
.contact-tile--callback .contact-tile__icon { background: var(--c-accent-soft); color: var(--c-accent-dark); }

.contacts__where {
	display: grid; gap: 0; border: 1px solid var(--c-line);
	border-radius: var(--r-lg); overflow: hidden; background: var(--c-bg);
}
.contacts__address { padding: clamp(18px, 2.4vw, 26px); }
.contacts__label {
	display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
	font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted);
}
.contacts__label span, .contacts__hours span { display: inline-flex; width: 16px; height: 16px; color: var(--c-primary); }
.contacts__label svg, .contacts__hours svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contacts__address address { font-style: normal; font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.contacts__hours { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 8px; }
.contacts__note { font-size: 14px; color: var(--c-muted); margin: 0; }

.contacts__map { min-height: 300px; border-top: 1px solid var(--c-line); background: var(--c-primary-soft); }
.contacts__map iframe { display: block; width: 100%; height: 100%; min-height: 300px; border: 0; }

/* ==========================================================================
   Видео работ
   ========================================================================== */

.video { background: var(--c-primary-tint); }

/* Пять карточек в ряд с центровкой: auto-fill оставлял пустую колонку
   справа и весь ряд выглядел сдвинутым влево. */
.video__grid {
	list-style: none; margin: 0 auto; padding: 0 0 10px; display: grid; gap: 16px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	max-width: 1000px;
}
@media (max-width: 900px) { .video__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; } }
@media (max-width: 640px) {
	.video__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: none; }
}
@media (max-width: 380px) {
	.video__grid { grid-template-columns: 1fr; }
}


.video-card__button {
	display: block; position: relative; width: 100%; padding: 0; border: 0; cursor: pointer;
	background: var(--c-primary-soft); border-radius: var(--r-md); overflow: hidden; line-height: 0;
	transition: transform .22s ease, box-shadow .22s ease;
}
.video-card__button:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.video-card__button img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }

.video-card__play {
	position: absolute; inset: 0; display: grid; place-items: center;
	background: linear-gradient(180deg, rgba(29, 35, 33, 0) 55%, rgba(29, 35, 33, .35) 100%);
}
.video-card__play svg {
	width: 54px; height: 54px; fill: #fff; padding: 14px;
	background: rgba(15, 107, 102, .85); border-radius: 50%;
	backdrop-filter: blur(3px); transition: transform .22s ease;
}
.video-card__button:hover .video-card__play svg { transform: scale(1.08); }

.modal--video {
	max-width: min(420px, calc(100vw - 32px)); background: #0d1412; padding: 0; overflow: visible;
}
.modal--video .modal__close { top: -52px; right: 0; background: rgba(255, 255, 255, .92); border-color: transparent; }
.modal__video { display: block; width: 100%; border-radius: var(--r-lg); background: #000; }

/* ==========================================================================
   Загрузка фотографии
   ========================================================================== */

/* Нативное поле файла выглядит как системный элемент и выбивается из формы —
   прячем его и оформляем кнопку сами. */
.gd-upload { cursor: pointer; }
.gd-upload input[type="file"] {
	position: absolute; width: 1px; height: 1px; margin: -1px;
	padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0;
}
.gd-upload__hint {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 44px; padding: 10px 18px; border-radius: var(--r-pill);
	background: var(--c-surface); border: 1px solid var(--c-line-strong);
	font-size: 14px; font-weight: 600; color: var(--c-primary-dark);
	transition: border-color .18s ease, background-color .18s ease;
}
.gd-upload:hover .gd-upload__hint { border-color: var(--c-primary); background: var(--c-primary-tint); }
.gd-upload.has-file .gd-upload__hint { background: var(--c-primary-soft); border-color: var(--c-primary); }
.gd-upload .wpcf7-not-valid-tip { margin-top: 8px; }

/* ==========================================================================
   Блок расчёта
   ========================================================================== */

.estimate__inner { align-items: start; }
.estimate__copy { display: flex; flex-direction: column; }
.estimate__proof { margin: 20px 0 0; }
.estimate__alt { margin-top: auto; padding-top: 20px; }
.estimate__alt p { margin-bottom: 10px; }

/* ==========================================================================
   Рейтинг и отзывы
   ========================================================================== */

.rating-bar {
	display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px, 2vw, 26px);
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg);
	padding: clamp(16px, 2.2vw, 24px); margin-bottom: clamp(20px, 3vw, 32px);
	box-shadow: var(--sh-sm);
}
.rating-bar__score { display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto; }
.rating-bar__value { font-family: var(--f-head); font-size: clamp(34px, 4vw, 44px); font-weight: 600; line-height: 1; }
.rating-bar__stars { display: inline-flex; gap: 2px; }
.rating-bar__stars svg { width: 17px; height: 17px; fill: #e8a33d; }
.rating-bar__body { flex: 1 1 240px; min-width: 0; }
.rating-bar__count { margin: 0; font-size: 16px; }
.rating-bar__meta { margin: 4px 0 0; font-size: 14px; color: var(--c-muted); }
.rating-bar .button { flex: 0 0 auto; }

.review-card__badge {
	display: inline-flex; align-items: center; gap: 7px; margin: 0 0 12px;
	font-size: 12px; font-weight: 600; letter-spacing: .02em;
	color: var(--c-primary-dark); background: var(--c-primary-soft);
	padding: 5px 12px; border-radius: var(--r-pill); align-self: flex-start;
}
.review-card__check { display: inline-flex; width: 13px; height: 13px; }
.review-card__check svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.review-card__text { font-size: 15px; color: var(--c-ink-soft); margin: 0; flex: 1; }

.reviews__hint { text-align: center; font-size: 14px; color: var(--c-muted); margin: 14px 0 0; }
@media (min-width: 1100px) { .reviews__hint { display: none; } }

@media (max-width: 560px) {
	.rating-bar { flex-direction: column; align-items: flex-start; }
	.rating-bar .button { width: 100%; }
}

/* ==========================================================================
   Оформление кадров «до / после»
   ========================================================================== */

/* Отдельно стоящие сравнения получают светлое паспарту: без него кадр
   «висел» на фоне без границы и читался как недогруженная картинка. */
.hero__media .ba,
.compare__proof .ba,
.estimate__proof .ba,
.faq__proof .ba {
	background: var(--c-surface);
	padding: 10px;
	border: 1px solid var(--c-line);
	border-radius: calc(var(--r-md) + 10px);
	box-shadow: var(--sh-md);
}
.hero__media .ba__frame,
.compare__proof .ba__frame,
.estimate__proof .ba__frame,
.faq__proof .ba__frame { box-shadow: none; }

/* Тонкий внутренний контур отделяет фотографию от фона карточки. */
.ba__frame { box-shadow: inset 0 0 0 1px rgba(29, 35, 33, .16); }
.work-card .ba__frame { border-bottom: 1px solid var(--c-line); }

@media (max-width: 560px) {
	.hero__media .ba,
	.compare__proof .ba,
	.estimate__proof .ba,
	.faq__proof .ba { padding: 6px; }
}

/* ==========================================================================
   FAQ: фотография в левой колонке
   ========================================================================== */

.faq__proof { margin: clamp(20px, 3vw, 28px) 0 0; }
.faq__proof figcaption { margin-top: 10px; font-size: 13px; color: var(--c-muted); }
.faq__proof .ba__frame { aspect-ratio: 3 / 2; }
.faq__proof .ba__after, .faq__proof .ba__before { position: absolute; inset: 0; }
.faq__proof img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .faq__proof { max-width: 460px; } }

/* ==========================================================================
   Отзывы: стена карточек в цветах Авито
   ========================================================================== */

:root {
	--avito: #4a7c8c;
	--avito-dark: #35606e;
	--avito-soft: #eef4f5;
	--star: #c9962f;
}

.reviews { background: var(--c-surface); }

/* Раскладка колонками: карточки разной длины укладываются без пустот
   и без горизонтальной прокрутки, которая мешала читать. */
.reviews__wall {
	list-style: none; margin: 0; padding: 0;
	column-count: 3; column-gap: 18px;
}
@media (max-width: 1100px) { .reviews__wall { column-count: 2; } }
@media (max-width: 700px)  { .reviews__wall { column-count: 1; } }

.review-card {
	display: block; break-inside: avoid; margin: 0 0 18px;
	background: var(--c-surface); border: 1px solid var(--c-line);
	border-radius: var(--r-lg); overflow: hidden;
}
.review-card__media { display: block; aspect-ratio: 16 / 9; background: var(--c-primary-soft); }
.review-card__media img { width: 100%; height: 100%; object-fit: cover; }
.review-card__body { margin: 0; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.review-card__text { font-size: 15px; color: var(--c-ink-soft); margin: 0; }
.review-card__author { display: flex; align-items: center; gap: 12px; }
.review-card__avatar {
	width: 40px; height: 40px; border-radius: 50%; background: var(--avito-soft); color: var(--avito-dark);
	display: grid; place-items: center; font-weight: 700; font-family: var(--f-head); font-size: 17px; flex: 0 0 auto;
}
.review-card__author strong { display: block; font-size: 15px; }
.review-card__author small { color: var(--c-muted); font-size: 13px; }

.review-card__badge {
	display: inline-flex; align-items: center; gap: 7px; margin: 0; align-self: flex-start;
	font-size: 12px; font-weight: 600;
	color: var(--avito-dark); background: var(--avito-soft);
	padding: 5px 12px; border-radius: var(--r-pill);
}
.review-card__check { display: inline-flex; width: 13px; height: 13px; }
.review-card__check svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Сводка карточки продавца — в цветах площадки, чтобы источник читался сразу. */
.rating-bar {
	display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px, 2vw, 26px);
	background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--r-lg);
	padding: clamp(16px, 2.2vw, 24px); margin-bottom: clamp(20px, 3vw, 32px);
}
.rating-bar__score { display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto; }
.rating-bar__value { font-family: var(--f-head); font-size: clamp(34px, 4vw, 44px); font-weight: 600; line-height: 1; color: var(--c-ink); }
.rating-bar__stars { display: inline-flex; gap: 2px; }
.rating-bar__stars svg { width: 17px; height: 17px; fill: var(--star); }
.rating-bar__body { flex: 1 1 240px; min-width: 0; }
.rating-bar__count { margin: 0; font-size: 16px; }
.rating-bar__meta { margin: 4px 0 0; font-size: 14px; color: var(--c-ink-soft); }
.rating-bar .button { flex: 0 0 auto; }

@media (max-width: 560px) {
	.rating-bar { flex-direction: column; align-items: flex-start; }
	.rating-bar .button { width: 100%; }
}

/* Кнопка «Показать ещё отзывы». */
.reviews__more { display: grid; justify-items: center; gap: 10px; margin-top: clamp(18px, 2.5vw, 28px); }
.reviews__counter { font-size: 14px; color: var(--c-muted); margin: 0; }
.review-card.is-hidden { display: none; }
