/* ==========================================================================
   Evicominfo 2026 — mobile-first styles
   ========================================================================== */

:root {
	--red: #e3173e;
	--red-d: #c20f31;
	--red-soft: #fde8ec;
	--ink: #141416;
	--ink-2: #2b2b30;
	--muted: #6b6b74;
	--line: #e7e4de;
	--bg: #ffffff;
	--bg-2: #f5f3ef;
	--dark: #111113;
	--dark-2: #1c1c20;
	--ok: #1f9d55;
	--viber: #7360f2;
	--whatsapp: #25d366;
	--telegram: #229ed9;

	--f-display: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--f-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--r: 14px;
	--r-lg: 22px;
	--gutter: 16px;
	--wrap: 1320px;
	--header-h: 64px;
	--section: clamp(56px, 4vw + 40px, 112px);
	--shadow: 0 1px 2px rgb(20 20 22 / .06), 0 8px 28px rgb(20 20 22 / .08);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 900px) {
	:root { --gutter: 32px; --header-h: 76px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 56px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 16px/1.6 var(--f-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 17px; } }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(860px + var(--gutter) * 2); }

.h1, .h2, .h3, .phero__title, .hero__title, .pf__title {
	font-family: var(--f-display);
	font-weight: 700;
	letter-spacing: -.03em;
	hyphens: auto;
	overflow-wrap: break-word;
}
.h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3.25rem); }
.h2 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.6rem); margin-bottom: .7em; }
.h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); }
.h4 { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lead { font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.kicker {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
	color: var(--red); margin-bottom: 18px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }

.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * .55) 0; }
.section--first { padding-top: 24px; }
.section--head { padding-bottom: 8px; }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section__head .h2 { margin: 0; }
.section__lead { margin: 0; color: var(--muted); max-width: 42ch; }

/* ---------- Buttons ---------- */
.btn {
	--b: var(--ink);
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 46px; padding: 10px 22px;
	border: 1.5px solid var(--b); border-radius: 999px;
	background: var(--b); color: #fff;
	font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; text-align: center;
	transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 1rem; }
.btn--primary { --b: var(--red); }
.btn--primary:hover { --b: var(--red-d); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--ghost { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .45); color: #fff; backdrop-filter: blur(6px); }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--light { --b: #fff; color: var(--ink); }
.btn--light:hover { --b: var(--red); color: #fff; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--ink); }
.link-arrow .icon { transition: transform .2s var(--ease); color: var(--red); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Top bar & header ---------- */
.topbar { display: none; background: var(--dark); color: #c9c9cf; font-size: .82rem; }
@media (min-width: 900px) { .topbar { display: block; } }
.topbar__in { display: flex; align-items: center; gap: 28px; min-height: 38px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.topbar__item .icon { width: 15px; height: 15px; color: var(--red); }
a.topbar__item:hover { color: #fff; }
.lang { display: flex; gap: 4px; margin-left: auto; }
.lang a { padding: 2px 8px; border-radius: 6px; text-decoration: none; font-weight: 700; }
.lang a[aria-current] { background: var(--red); color: #fff; }
.lang a:not([aria-current]):hover { color: #fff; }

.header {
	position: sticky; top: 0; z-index: 60;
	background: rgb(255 255 255 / .94);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgb(20 20 22 / .06); }
.header__in { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.logo { flex: none; }
.logo img { width: 124px; height: auto; }
@media (min-width: 900px) { .logo img { width: 150px; } }

.nav { display: none; }
@media (min-width: 1140px) { .nav { display: block; margin-left: 12px; } }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__list > li > a, .nav__link {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 14px; border: 0; border-radius: 999px; background: none;
	font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--ink);
}
.nav__list > li > a:hover, .nav__link:hover, .nav__link[aria-expanded="true"] { background: var(--bg-2); }
.nav__link .icon { width: 16px; height: 16px; transition: transform .2s; }
.nav__link[aria-expanded="true"] .icon { transform: rotate(180deg); }

.mega {
	position: absolute; left: 0; right: 0; top: 100%;
	background: #fff; border-top: 1px solid var(--line); box-shadow: 0 24px 48px rgb(20 20 22 / .12);
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; }
.mega__in { padding-top: 28px; padding-bottom: 32px; }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; list-style: none; }
.mega__link { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 16px; border-radius: var(--r); text-decoration: none; }
.mega__link:hover { background: var(--bg-2); }
.mega__num { grid-row: span 2; font: 700 .8rem/1.9 var(--f-display); color: var(--red); }
.mega__title { font-weight: 800; line-height: 1.3; }
.mega__sub { font-size: .85rem; color: var(--muted); line-height: 1.4; }

.header__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.hphone { display: none; align-items: center; gap: 10px; }
@media (min-width: 700px) { .hphone { display: flex; } }
.hphone__main { font-weight: 800; font-size: 1.05rem; text-decoration: none; white-space: nowrap; }
.hphone__main:hover { color: var(--red); }
.hphone__msg { display: flex; gap: 6px; }
.msg { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; }
.msg .icon { width: 18px; height: 18px; }
.msg--viber { background: var(--viber); }
.msg--whatsapp { background: var(--whatsapp); }
.msg--telegram { background: var(--telegram); }
.msg:hover { filter: brightness(1.1); }
.header__cta { display: none; }
@media (min-width: 700px) { .header__cta { display: inline-flex; } }

.burger { display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; margin-right: -8px; border: 0; background: none; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1140px) { .burger { display: none; } }

.drawer {
	position: fixed; inset: var(--header-h) 0 0; z-index: 55;
	background: #fff; overflow-y: auto; overscroll-behavior: contain;
	padding-bottom: calc(96px + env(safe-area-inset-bottom));
	animation: drawer-in .25s var(--ease);
}
.drawer[hidden] { display: none; }
@keyframes drawer-in { from { opacity: 0; transform: translateY(-8px); } }
.drawer__in { padding: 20px var(--gutter); max-width: 640px; margin: 0 auto; }
.drawer__label { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.drawer__dirs, .drawer__links { list-style: none; }
.drawer__dirs a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.drawer__dirs .icon { color: var(--red); width: 18px; }
.drawer__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.drawer__links a { padding: 10px 16px; border-radius: 999px; background: var(--bg-2); font-weight: 700; text-decoration: none; }
.drawer__contacts { display: grid; gap: 10px; }
.drawer__contacts > a { font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.drawer__contacts small { font-weight: 500; color: var(--muted); font-size: .85rem; }
.drawer__msg { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.drawer__msg .msg { width: auto; height: 40px; padding: 0 14px 0 10px; gap: 8px; border-radius: 999px; display: inline-flex; font-weight: 700; font-size: .9rem; text-decoration: none; }
.lang--big { margin: 12px 0 0; }
.lang--big a { padding: 8px 14px; border: 1px solid var(--line); }
body.drawer-open { overflow: hidden; }

/* ---------- Mobile action bar ---------- */
.actionbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
	display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
	background: #fff; border-top: 1px solid var(--line);
	padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
	box-shadow: 0 -8px 24px rgb(20 20 22 / .08);
}
.actionbar__btn {
	display: flex; flex-direction: column; align-items: center; gap: 2px;
	padding: 6px 4px; border: 0; border-radius: 10px; background: none;
	font-size: .72rem; font-weight: 700; text-decoration: none; color: var(--ink);
}
.actionbar__btn .icon { width: 22px; height: 22px; }
.actionbar__btn--viber .icon { color: var(--viber); }
.actionbar__btn--whatsapp .icon { color: var(--whatsapp); }
.actionbar__btn--telegram .icon { color: var(--telegram); }
.actionbar__btn--cta { background: var(--red); color: #fff; }
body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
	.actionbar { display: none; }
	body { padding-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; align-items: flex-end;
	min-height: min(86svh, 760px);
	background: var(--dark); color: #fff;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 7s linear; }
.hero__img.is-active { opacity: 1; transform: scale(1); }
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(0deg, rgb(10 10 12 / .92) 0%, rgb(10 10 12 / .55) 45%, rgb(10 10 12 / .25) 100%),
		linear-gradient(90deg, rgb(10 10 12 / .7) 0%, transparent 70%);
}
.hero__in { padding-top: 96px; padding-bottom: 40px; }
.hero .kicker { color: #fff; }
.hero .kicker::before { background: var(--red); }
.hero__title { font-size: clamp(1.85rem, 1.1rem + 3.6vw, 4.1rem); line-height: 1.08; max-width: 17ch; margin-bottom: .45em; }
.hero__text { font-size: clamp(1rem, .95rem + .4vw, 1.25rem); color: #dcdce2; max-width: 54ch; margin-bottom: 28px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__btns .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .hero__btns .btn { flex: 0 0 auto; } }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .18); max-width: 720px; }
.hero__stats strong { display: block; font: 700 clamp(1.3rem, 1rem + 1.4vw, 2.2rem)/1.1 var(--f-display); }
.hero__stats span { display: block; font-size: .82rem; color: #b8b8c0; line-height: 1.35; margin-top: 4px; }
@media (min-width: 900px) { .hero__in { padding-bottom: 64px; } }

/* ---------- Directions ---------- */
.dirs { background: var(--bg); }
.dirs__grid { display: grid; gap: 10px; list-style: none; }
.dcard__link { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.dcard__link:hover { border-color: transparent; box-shadow: var(--shadow); }
.dcard__img { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.dcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.dcard__body { position: relative; padding-right: 28px; }
.dcard__num { font: 700 .72rem/1 var(--f-display); color: var(--red); }
.dcard__title { font: 700 1rem/1.25 var(--f-display); margin: 6px 0 4px; letter-spacing: -.01em; hyphens: auto; }
.dcard__sub { font-size: .85rem; line-height: 1.45; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dcard__arrow { position: absolute; right: 0; top: 50%; translate: 0 -50%; color: var(--red); }

@media (min-width: 640px) {
	.dirs__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.dcard__link { position: relative; display: block; height: 100%; min-height: 300px; padding: 0; border: 0; overflow: hidden; color: #fff; background: var(--dark); }
	.dcard__img { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
	.dcard__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(10 10 12 / .9) 0%, rgb(10 10 12 / .35) 55%, rgb(10 10 12 / .1) 100%); }
	.dcard__link:hover .dcard__img img { transform: scale(1.05); }
	.dcard__body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; }
	.dcard__num { position: absolute; top: 22px; left: 22px; color: #fff; background: var(--red); padding: 6px 9px; border-radius: 999px; }
	.dcard__title { font-size: clamp(1.05rem, .9rem + .5vw, 1.35rem); margin: 0 0 6px; }
	.dcard__sub { color: #d6d6dc; }
	.dcard__arrow { top: 18px; right: 18px; translate: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgb(255 255 255 / .12); backdrop-filter: blur(6px); color: #fff; transition: background .2s, transform .3s var(--ease); }
	.dcard__link:hover .dcard__arrow { background: var(--red); transform: rotate(45deg); }
}
@media (min-width: 1100px) {
	.dirs__grid { grid-template-columns: repeat(12, 1fr); }
	.dcard { grid-column: span 3; }
	.dcard--big { grid-column: span 6; }
	.dcard--big .dcard__link { min-height: 440px; }
	.dcard--big .dcard__title { font-size: 1.9rem; max-width: 18ch; }
	.dcard--big .dcard__sub { font-size: 1rem; max-width: 46ch; }
	.dcard:nth-child(7):nth-last-child(2), .dcard:nth-child(8):last-child { grid-column: span 6; }
	.dcard__link { min-height: 340px; }
}

/* ---------- Production ---------- */
.prod { background: var(--dark); color: #fff; }
.prod .lead { color: #c9c9cf; }
.prod__grid { display: grid; gap: 36px; }
.prod__list { list-style: none; margin: 28px 0 32px; border-top: 1px solid rgb(255 255 255 / .12); }
.prod__list li { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; border-bottom: 1px solid rgb(255 255 255 / .12); font: 700 clamp(1.05rem, .95rem + .6vw, 1.45rem)/1.25 var(--f-display); letter-spacing: -.01em; }
.prod__list span { font-size: .75rem; color: var(--red); }
.prod__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.prod__imgs img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); aspect-ratio: 4 / 3; }
.prod__imgs img:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
@media (min-width: 960px) { .prod__grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; margin: 0 calc(var(--gutter) * -1) 24px; padding: 2px var(--gutter) 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .chips { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; } }
.chip {
	flex: none; scroll-snap-align: start;
	display: inline-flex; align-items: center; gap: 6px;
	min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
	background: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; color: var(--ink);
	transition: background .2s, color .2s, border-color .2s;
}
.chip small { font-weight: 600; color: var(--muted); }
.chip:hover { border-color: var(--ink); }
.chip[aria-selected="true"], .chip[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-selected="true"] small, .chip[aria-current] small { color: #aaa; }
.chips--sub { margin-top: -12px; }
.chips--sub .chip { min-height: 34px; font-size: .85rem; background: var(--bg-2); border-color: transparent; }
.chips--sub .chip[aria-current] { background: var(--red); }

/* ---------- Works ---------- */
.works { background: var(--bg-2); }
.works__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; transition: opacity .25s; }
.works__grid.is-loading { opacity: .4; pointer-events: none; }
@media (min-width: 700px) { .works__grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1100px) { .works__grid { grid-template-columns: repeat(4, 1fr); } }
.work__link { display: block; text-decoration: none; color: var(--ink); }
.work__img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: #e9e6e0; }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work__link:hover .work__img img { transform: scale(1.05); }
.work__count { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: rgb(0 0 0 / .6); color: #fff; font-size: .72rem; font-weight: 700; }
.work__body { padding: 10px 2px 0; }
.work__cat { font-size: .74rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .06em; }
.work__title { font-size: .95rem; font-weight: 700; line-height: 1.35; margin: 2px 0 0; }
.works__grid--page { margin-top: 8px; }
.section--first .works__grid { background: none; }
.more { display: flex; justify-content: center; margin-top: 32px; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 700; text-decoration: none; }
.pager .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .page-numbers.dots { border: 0; background: none; }
.pager a.page-numbers:hover { border-color: var(--ink); }

/* ---------- Steps ---------- */
.steps__list { display: grid; gap: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding: 0 0 26px 58px; }
.step::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step__n { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; font: 700 .85rem/1 var(--f-display); }
.step__title { font-size: 1.1rem; margin: 8px 0 6px; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (min-width: 900px) {
	.steps__list { grid-template-columns: repeat(5, 1fr); gap: 24px; }
	.step { padding: 64px 0 0; }
	.step::before { left: 52px; right: -24px; top: 21px; bottom: auto; width: auto; height: 2px; }
}

/* ---------- Reviews ---------- */
.reviews { background: var(--bg-2); }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 380px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
.review { display: flex; flex-direction: column; padding: 26px; border-radius: var(--r-lg); background: #fff; }
.review__stars { display: flex; gap: 2px; color: #f5a623; margin-bottom: 14px; }
.review__stars .icon { width: 18px; height: 18px; fill: currentColor; }
.review blockquote { margin: 0 0 18px; font-size: 1.02rem; line-height: 1.55; }
.review blockquote p { margin: 0; }
.review__author { margin: auto 0 0; font-weight: 800; }
.review__author span { display: block; font-weight: 500; color: var(--muted); font-size: .85rem; }
.slider-nav { display: none; gap: 8px; }
@media (min-width: 900px) { .slider-nav { display: flex; } }
.slider-nav button { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ink); background: none; }
.slider-nav button:hover { background: var(--ink); color: #fff; }

/* ---------- Clients ---------- */
.clients__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; }
@media (min-width: 700px) { .clients__list { grid-template-columns: repeat(6, 1fr); } }
.clients__list li { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.clients__list img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.clients__list li:hover img { filter: none; opacity: 1; }

/* ---------- CTA + form ---------- */
.cta { background: var(--bg); }
.cta__grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .cta__grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.cta__contacts { list-style: none; display: grid; gap: 10px; margin: 24px 0; }
.cta__contacts li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.cta__contacts a { text-decoration: none; }
.cta__contacts a:hover { color: var(--red); }
.cta__contacts .icon { color: var(--red); }
.cta__msg { display: flex; flex-wrap: wrap; gap: 8px; }
.msg-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px 8px 12px; border-radius: 999px; color: #fff; font-weight: 700; font-size: .92rem; text-decoration: none; }
.msg-btn--viber { background: var(--viber); }
.msg-btn--whatsapp { background: var(--whatsapp); }
.msg-btn--telegram { background: var(--telegram); }
.msg-btn:hover { filter: brightness(1.08); }
.cta__form { padding: 22px; border-radius: var(--r-lg); background: var(--bg-2); }
@media (min-width: 700px) { .cta__form { padding: 36px; } }

.lead-form { display: grid; gap: 14px; }
@media (min-width: 700px) { .lead-form { grid-template-columns: 1fr 1fr; gap: 16px; } .field--wide, .lead-form__foot, .lead-form__status { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea {
	width: 100%; min-height: 52px; padding: 12px 16px;
	border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
	font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23141416' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgb(20 20 22 / .06); }
.field.has-error input, .field.has-error .file-drop { border-color: var(--red); }
.field-err { font-size: .82rem; color: var(--red); min-height: 0; }
.file-drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px dashed #cfcac1; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.file-drop:hover, .file-drop.is-drag { border-color: var(--ink); }
.file-drop.has-file { border-style: solid; border-color: var(--ok); background: #f1fbf5; }
.file-drop .icon { width: 24px; height: 24px; color: var(--red); }
.file-drop strong { display: block; font-size: .95rem; }
.file-drop small { display: block; color: var(--muted); font-size: .8rem; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lead-form__foot { display: grid; gap: 10px; }
.lead-form__foot .btn { width: 100%; }
@media (min-width: 700px) { .lead-form__foot { grid-template-columns: auto 1fr; align-items: center; gap: 18px; } .lead-form__foot .btn { width: auto; } }
.lead-form__consent { margin: 0; font-size: .78rem; color: var(--muted); line-height: 1.4; }
.lead-form__status { margin: 0; font-weight: 700; }
.lead-form__status:empty { display: none; }
.lead-form__status.is-ok { padding: 14px 16px; border-radius: 12px; background: #e8f7ee; color: #146c3a; }
.lead-form__status.is-err { padding: 14px 16px; border-radius: 12px; background: var(--red-soft); color: var(--red-d); }
.lead-form.is-done .field, .lead-form.is-done .lead-form__foot { display: none; }

/* ---------- Modal ---------- */
.modal { width: 100%; max-width: 100%; max-height: 100%; margin: auto 0 0; padding: 0; border: 0; background: transparent; color: var(--ink); }
.modal::backdrop { background: rgb(10 10 12 / .6); backdrop-filter: blur(3px); }
.modal[open] { animation: sheet-in .3s var(--ease); }
@keyframes sheet-in { from { transform: translateY(30px); opacity: 0; } }
.modal__box { position: relative; max-height: 92svh; overflow-y: auto; padding: 28px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #fff; }
.modal__title { font: 700 1.35rem/1.2 var(--f-display); padding-right: 40px; letter-spacing: -.01em; }
.modal__sub { color: var(--muted); font-size: .95rem; }
.modal__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bg-2); }
@media (min-width: 700px) {
	.modal { max-width: 680px; margin: auto; }
	.modal__box { padding: 40px; border-radius: 24px; }
}
body.modal-open { overflow: hidden; }

/* ---------- Page hero (directions, services) ---------- */
.phero { padding: 20px 0 calc(var(--section) * .6); background: var(--bg-2); }
.phero__grid { display: grid; gap: 28px; margin-top: 12px; }
@media (min-width: 900px) { .phero__grid { grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; } }
.phero__title { font-size: clamp(1.7rem, 1.1rem + 2.8vw, 3.4rem); line-height: 1.1; }
.phero__img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: #e9e6e0; }
.phero__img img { width: 100%; height: 100%; object-fit: cover; }
.phero__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }
.phero--compact .phero__img { aspect-ratio: 16 / 10; }
.price-tag { font-size: .95rem; color: var(--muted); }
.price-tag strong { font: 700 1.2rem/1 var(--f-display); color: var(--ink); }

.ticks { list-style: none; display: grid; gap: 10px; margin: 20px 0 0; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.ticks .icon { flex: none; width: 24px; height: 24px; padding: 4px; margin-top: 1px; border-radius: 50%; background: var(--red); color: #fff; stroke-width: 3; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; font-size: .85rem; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; color: #bbb; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs [aria-current] { color: var(--ink-2); }

.subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgb(255 255 255 / .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav__in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.subnav a:hover, .subnav a.is-active { background: var(--bg-2); }
.subnav a:last-child { margin-left: auto; background: var(--red); color: #fff; }

.types { display: grid; gap: 14px; list-style: none; }
@media (min-width: 640px) { .types { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .types { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.type { border-radius: var(--r-lg); background: var(--bg-2); overflow: hidden; }
.type__img { aspect-ratio: 4 / 3; }
.type__img img { width: 100%; height: 100%; object-fit: cover; }
.type__body { padding: 20px 22px 22px; }
.type__title { font-size: 1.12rem; }
.type__body p { margin: 0; color: var(--ink-2); font-size: .95rem; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.gallery__item { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: #e9e6e0; cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item--big { grid-column: span 2; grid-row: span 2; }
.gallery--compact { grid-template-columns: repeat(3, 1fr); }
.gallery--compact .gallery__item--big { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
.gallery--work { grid-template-columns: repeat(3, 1fr); }
.gallery--work .gallery__item--big { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }

.prices { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.prices td { padding: 16px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices td:last-child { text-align: right; font-weight: 800; white-space: nowrap; padding-left: 16px; }

.benefits { background: var(--bg-2); }
.benefits__list { display: grid; gap: 14px; list-style: none; counter-reset: b; }
@media (min-width: 640px) { .benefits__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .benefits__list { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.benefits__list li { padding: 24px; border-radius: var(--r-lg); background: #fff; }
.benefits__list h3 { font-size: 1.08rem; }
.benefits__list p { margin: 0; color: var(--muted); font-size: .95rem; }
.benefits__icon { display: block; width: 44px; height: 44px; margin-bottom: 14px; }
.benefits__icon img { width: 100%; height: 100%; object-fit: contain; }
.benefits__list--num li { counter-increment: b; }
.benefits__list--num li::before { content: counter(b, decimal-leading-zero); display: block; margin-bottom: 12px; font: 700 .85rem/1 var(--f-display); color: var(--red); }

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 800; font-size: 1.05rem; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { flex: none; color: var(--red); transition: transform .25s var(--ease); }
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__a { padding: 0 0 20px; color: var(--ink-2); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 28px; }
.pills a { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--bg-2); font-weight: 600; font-size: .92rem; text-decoration: none; }
.pills a:hover { background: var(--ink); color: #fff; }
.related { border-top: 1px solid var(--line); }

.split { display: grid; gap: 28px; }
@media (min-width: 900px) {
	.split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
	.split--rev > :first-child { order: 2; }
	.split--single { grid-template-columns: minmax(0, 860px); }
}
.split__img { border-radius: var(--r-lg); overflow: hidden; }
.split__img img { width: 100%; height: auto; }

.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; }
@media (min-width: 800px) { .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1100px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } }
.svc a { display: block; text-decoration: none; }
.svc__img { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.svc a:hover img { transform: scale(1.05); }
.svc__title { display: flex; justify-content: space-between; gap: 8px; margin: 10px 0 0; font-size: .98rem; line-height: 1.35; }
.svc__title .icon { flex: none; color: var(--red); width: 18px; }

/* ---------- Portfolio single ---------- */
.pf { display: grid; gap: 28px; margin-top: 16px; }
@media (min-width: 1000px) { .pf { grid-template-columns: 1.7fr 1fr; gap: 48px; align-items: start; } .pf__info { position: sticky; top: calc(var(--header-h) + 24px); } }
.pf__title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); line-height: 1.15; }
.pf__meta { display: grid; gap: 12px; margin: 20px 0; }
.pf__meta div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pf__meta dt { color: var(--muted); font-size: .9rem; }
.pf__meta dd { margin: 0; font-weight: 700; }
.pf__meta a { text-decoration: none; color: var(--red); }
.pf__cta { display: grid; gap: 14px; justify-items: start; margin-top: 24px; padding: 24px; border-radius: var(--r-lg); background: var(--bg-2); }
.pf__cta p { margin: 0; font-weight: 700; }

/* ---------- Pages ---------- */
.prose { max-width: 75ch; }
.prose h2 { font: 700 clamp(1.3rem, 1.1rem + .9vw, 1.9rem)/1.2 var(--f-display); margin: 1.6em 0 .6em; letter-spacing: -.01em; }
.prose h3 { font-size: 1.2rem; margin: 1.4em 0 .5em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--red); }
.prose a { color: var(--red); }
.prose img { border-radius: var(--r); margin: 1.2em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; display: block; overflow-x: auto; }
.prose td, .prose th { padding: 10px; border: 1px solid var(--line); }
.about-seo { background: var(--bg-2); }
.about-seo .prose { color: var(--ink-2); font-size: .95rem; }

.contacts { display: grid; gap: 28px; }
@media (min-width: 960px) { .contacts { grid-template-columns: 1fr 1.3fr; gap: 48px; } }
.contacts__info { display: grid; gap: 28px; }
@media (min-width: 600px) { .contacts__info { grid-template-columns: 1fr 1fr; } }
.contacts__block p { margin-bottom: .4em; }
.contacts__phones { list-style: none; display: grid; gap: 6px; margin-bottom: 14px; }
.contacts__phones a { font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.contacts__phones span { color: var(--muted); font-size: .9rem; }
.contacts__map { min-height: 340px; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); }
.contacts__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; list-style: none; }
@media (min-width: 800px) { .team { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.member__img { aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); }
.member__img img { width: 100%; height: 100%; object-fit: cover; }
.member__name { font-size: 1.05rem; margin: 12px 0 2px; }
.member__role { color: var(--muted); font-size: .9rem; margin: 0; }

.posts { display: grid; gap: 20px; list-style: none; }
@media (min-width: 700px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post-card a { display: block; text-decoration: none; }
.post-card__img { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--bg-2); margin-bottom: 12px; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card time { font-size: .82rem; color: var(--muted); }
.post-card__title { font-size: 1.1rem; margin: 4px 0 6px; }
.post-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.post-hero { margin: 16px 0 24px; border-radius: var(--r-lg); overflow: hidden; }

.nf { text-align: center; }
.nf__code { font: 700 clamp(5rem, 3rem + 10vw, 10rem)/1 var(--f-display); color: var(--red); margin: 0; }
.nf .pills { justify-content: center; margin: 28px 0; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #b9b9c1; font-size: .93rem; padding: 56px 0 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.3fr 1.2fr 1fr 1.1fr; gap: 48px; } }
.footer__brand img { width: 170px; margin-bottom: 18px; }
.footer__brand p { max-width: 34ch; }
.footer__social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--dark-2); color: #fff; }
.footer__social a:hover { background: var(--red); }
.footer__social .icon { width: 19px; height: 19px; }
.footer__title { font: 700 .8rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer__col ul { list-style: none; display: grid; gap: 9px; }
.footer__phone { font-weight: 800; color: #fff; font-size: 1.02rem; }
.footer__contacts span { color: #85858d; font-size: .85rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 48px; padding-top: 22px; padding-bottom: 24px; border-top: 1px solid #2a2a2f; font-size: .82rem; color: #85858d; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto 1fr auto; background: rgb(8 8 10 / .96); color: #fff; animation: fade .2s; touch-action: pan-y; }
@keyframes fade { from { opacity: 0; } }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-weight: 700; font-size: .9rem; }
.lb__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 8px; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; }
.lb__btn { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .1); color: #fff; }
.lb__btn:hover { background: rgb(255 255 255 / .2); }
.lb__nav { display: flex; justify-content: center; gap: 16px; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
	.lb__nav { position: absolute; inset: 50% 0 auto; justify-content: space-between; padding: 0 24px; pointer-events: none; translate: 0 -50%; }
	.lb__nav .lb__btn { pointer-events: auto; width: 56px; height: 56px; }
}

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.reveal { opacity: 1; transform: none; }
}

/* ---------- Clients marquee (home) ---------- */
.marquee { display: grid; gap: 12px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__row { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee__row--rev { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee__track { display: flex; gap: 12px; padding-right: 12px; list-style: none; }
.marquee__track li { display: grid; place-items: center; width: 168px; height: 92px; padding: 14px 20px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.marquee__track img { max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (min-width: 900px) {
	.reviews .scroller { margin: 0; padding-left: 0; padding-right: 0; }
}
.pills small { color: var(--muted); font-weight: 500; }
.pills a:hover small { color: #bbb; }
.work__cat { text-transform: none; letter-spacing: 0; font-size: .78rem; line-height: 1.3; display: block; }
.pills__main { background: var(--ink) !important; color: #fff; }

/* ---------- Sub-services ---------- */
.subs { display: grid; gap: 12px; list-style: none; }
@media (min-width: 640px) { .subs { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .subs { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.sub a { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; height: 100%; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; text-decoration: none; transition: box-shadow .2s, border-color .2s; }
.sub a:hover { border-color: transparent; box-shadow: var(--shadow); }
.sub__img { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.sub__img img { width: 100%; height: 100%; object-fit: cover; }
.sub__title { display: flex; justify-content: space-between; gap: 8px; font-size: 1.05rem; margin: 0 0 4px; }
.sub__title .icon { flex: none; color: var(--red); width: 18px; }
.sub__body p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.45; }
@media (min-width: 1000px) {
	.sub a { display: block; padding: 0; overflow: hidden; }
	.sub__img { aspect-ratio: 4 / 3; border-radius: 0; }
	.sub__body { padding: 18px 20px 20px; }
}

/* 7 services on the home grid: 2 big + 3 + 2 */
@media (min-width: 1100px) {
	.dirs__grid .dcard:nth-child(n+3):nth-child(-n+5):nth-last-child(n+3) { grid-column: span 4; }
	.dirs__grid .dcard:nth-child(6):nth-last-child(2), .dirs__grid .dcard:nth-child(7):last-child { grid-column: span 6; }
	.dirs__grid .dcard:nth-child(8):last-child { grid-column: span 3; }
}
.dcard__subs { display: none; }
@media (min-width: 640px) {
	.dcard__subs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; list-style: none; }
	.dcard__subs li { padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / .14); backdrop-filter: blur(6px); font-size: .76rem; font-weight: 700; }
}

/* Mega menu with sub-services */
.mega__kids { padding-left: 34px; display: grid; gap: 4px; margin-top: 6px; list-style: none; }
.mega__kids a { font-size: .82rem; color: var(--muted); text-decoration: none; }
.mega__kids a:hover { color: var(--red); }
.mega__item { padding: 16px; border-radius: var(--r); }
.mega__item:hover { background: var(--bg-2); }
.mega__item .mega__link { padding: 0; }
.mega__item .mega__link:hover { background: none; }
.drawer__kids { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.drawer__kids a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); font-size: .85rem; font-weight: 600; text-decoration: none; }
.drawer__dirs li.has-kids > a { border-bottom: 0; }
.prod__list a { color: inherit; text-decoration: none; }
.prod__list a:hover { color: var(--red); }

/* ==========================================================================
   Service page v2 (mobile-first)
   ========================================================================== */
.section--alt { background: var(--bg-2); }
.kicker--link { text-decoration: none; margin-bottom: 10px; }
.kicker--link:hover { color: var(--red-d); }
.count { font: 600 .9rem/1 var(--f-body); color: var(--muted); vertical-align: middle; margin-left: 6px; }

/* Hero */
.svc-hero { padding: 16px 0 28px; background: var(--bg-2); }
.svc-hero__grid { display: grid; gap: 22px; margin-top: 14px; }
.svc-hero__title { font: 700 clamp(1.65rem, 1.1rem + 2.6vw, 3.2rem)/1.08 var(--f-display); letter-spacing: -.02em; margin: 0 0 12px; hyphens: auto; overflow-wrap: break-word; }
.svc-hero__lead { font-size: 1.02rem; color: var(--ink-2); margin: 0 0 18px; max-width: 58ch; }
.svc-hero__img { order: -1; margin: 0 calc(var(--gutter) * -1); aspect-ratio: 16 / 10; overflow: hidden; background: #e9e6e0; }
.svc-hero__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.svc-hero__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.svc-hero__btns .btn { grid-column: 1 / -1; }
.svc-hero__btns .msg-btn { justify-content: center; }
@media (min-width: 560px) {
	.svc-hero__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
}
@media (min-width: 960px) {
	.svc-hero { padding: 20px 0 40px; }
	.svc-hero__grid { grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
	.svc-hero__img { order: 0; margin: 0; border-radius: var(--r-lg); aspect-ratio: 4 / 3; }
}

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.fact { padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.fact dt { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 2px 0 0; font-weight: 800; font-size: 1rem; line-height: 1.25; }
.fact--accent { background: var(--ink); border-color: var(--ink); color: #fff; }
.fact--accent dt { color: #a9a9b1; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .facts { grid-template-columns: repeat(4, 1fr); } }

.ticks--row { display: grid; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.ticks--row li { font-size: .95rem; }
@media (min-width: 700px) { .ticks--row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ticks--row { grid-template-columns: repeat(4, 1fr); } }

/* Options: horizontal swipe on phones, grid on larger screens */
.opts { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 10px; scrollbar-width: none; }
.opts::-webkit-scrollbar { display: none; }
.opt { scroll-snap-align: start; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.opt__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.opt__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.opt__body { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 18px; }
.opt__title { font-size: 1.1rem; line-height: 1.25; margin: 0 0 6px; }
.opt__title a { text-decoration: none; }
.opt__title a:hover { color: var(--red); }
.opt__text { font-size: .92rem; color: var(--muted); margin: 0 0 10px; }
.opt__specs { list-style: none; display: grid; gap: 6px; margin: 0 0 14px; font-size: .88rem; }
.opt__specs li { display: flex; gap: 8px; align-items: flex-start; }
.opt__specs .icon { width: 16px; height: 16px; color: var(--red); margin-top: 2px; stroke-width: 3; }
.opt__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.opt__price { font-weight: 800; font-size: .98rem; }
.opt__foot .btn { min-height: 40px; padding: 8px 16px; font-size: .88rem; }
@media (min-width: 640px) {
	.opts { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: 16px; }
}
@media (min-width: 1000px) { .opts { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* About + specs */
.about-svc { display: grid; gap: 24px; }
.about-svc .h2 { margin-bottom: .5em; }
@media (min-width: 960px) { .about-svc { grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; } .about-svc--single { grid-template-columns: minmax(0, 860px); } }
.specs-card { padding: 20px; border-radius: var(--r-lg); background: #fff; }
@media (min-width: 700px) { .specs-card { padding: 28px; } }
.specs-card__title { font: 700 1.05rem/1.2 var(--f-display); margin: 0 0 12px; }
.specs { margin: 0; }
.specs div { display: grid; grid-template-columns: 42% 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.specs div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; }

/* Price */
.price-svc { display: grid; gap: 24px; }
@media (min-width: 960px) { .price-svc { grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; } .quick-calc { position: sticky; top: calc(var(--header-h) + 72px); } }
.factors { list-style: none; counter-reset: fc; display: grid; gap: 10px; margin: 16px 0 20px; }
@media (min-width: 700px) { .factors { grid-template-columns: 1fr 1fr; } }
.factors li { counter-increment: fc; position: relative; padding: 14px 14px 14px 52px; border-radius: 12px; background: var(--bg-2); }
.factors li::before { content: counter(fc); position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; font: 700 .8rem/1 var(--f-display); }
.factors strong { display: block; line-height: 1.3; }
.factors span { display: block; font-size: .88rem; color: var(--muted); margin-top: 2px; }
.quick-calc { padding: 22px; border-radius: var(--r-lg); background: var(--ink); color: #fff; }
.quick-calc__title { font: 700 1.1rem/1.35 var(--f-display); margin: 0 0 16px; }
.quick-calc__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-calc__btns .btn { grid-column: 1 / -1; }
.quick-calc__btns .msg-btn { justify-content: center; }
.quick-calc__phone { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: #fff; font-weight: 800; font-size: 1.1rem; text-decoration: none; }
.quick-calc__phone .icon { color: var(--red); }

.step__time { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: var(--red-soft); color: var(--red-d); font-size: .8rem; font-weight: 700; }
.step__time .icon { width: 14px; height: 14px; }

/* Legacy portfolio photos have white vignettes baked in: crop them slightly. */
.work__img img, .sub__img img, .dcard__img img, .gallery__item img { transform: scale(1.1); }
.work__link:hover .work__img img, .gallery__item:hover img { transform: scale(1.15); }
@media (min-width: 640px) { .dcard__link:hover .dcard__img img { transform: scale(1.15); } }
@media (max-width: 639px) {
	.benefits__list { grid-template-columns: 1fr 1fr; gap: 8px; }
	.benefits__list li { padding: 14px; }
	.benefits__list h3 { font-size: .95rem; margin-bottom: 4px; }
	.benefits__list p { font-size: .84rem; line-height: 1.45; }
}

/* Onest: slightly larger display sizes, tighter tracking for a modern look */
.hero__title { font-size: clamp(2.1rem, 1.2rem + 4vw, 4.6rem); line-height: 1.02; font-weight: 800; }
.svc-hero__title { font-size: clamp(2rem, 1.2rem + 3vw, 3.8rem); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; }
.h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.dcard__title, .mega__title, .opt__title, .sub__title, .step__title, .type__title, .work__title, .benefits__list h3 { letter-spacing: -.015em; }
.dcard__title { font-weight: 700; }
.prod__list li { font-weight: 700; letter-spacing: -.02em; }
.modal__title, .quick-calc__title, .specs-card__title { letter-spacing: -.02em; }
.opt__foot:not(:has(.opt__price)) { justify-content: flex-start; }
.opt__foot .btn:only-child { width: 100%; }
/* The "about" block now follows the hero directly: separate it with white, options on grey. */
.svc-hero + .subnav + #about, .svc-hero + #about { background: #fff; }
#about + #options { background: var(--bg-2); }
#options .opt { border-color: transparent; }
.specs-card { border: 1px solid var(--line); }

/* ---------- Size tuning: fit the first screen on laptops (1366×650, 125% scaling) ---------- */
.h1, .h2, .h3, .phero__title, .hero__title, .pf__title, .svc-hero__title, .dcard__title, .opt__title { hyphens: manual; overflow-wrap: normal; word-break: normal; }
.hero { min-height: 0; align-items: center; }
.hero__in { padding-top: clamp(48px, 7vh, 88px); padding-bottom: clamp(32px, 5vh, 56px); }
.hero .kicker { margin-bottom: 14px; }
.hero__title { font-size: clamp(1.9rem, 1.1rem + 2.4vw, 3.4rem); line-height: 1.06; max-width: 20ch; margin-bottom: .4em; }
.hero__text { font-size: clamp(1rem, .95rem + .25vw, 1.15rem); margin-bottom: 22px; }
.hero__stats { margin-top: 26px; padding-top: 18px; }
.hero__stats strong { font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); }
@media (min-width: 900px) and (min-height: 700px) { .hero { min-height: min(calc(100svh - 114px), 640px); } }

.svc-hero__title { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.9rem); line-height: 1.08; }
.h2 { font-size: clamp(1.55rem, 1.15rem + 1.3vw, 2.4rem); }
.h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.8rem); }
@media (min-width: 1100px) { .dcard--big .dcard__title { font-size: 1.6rem; } }
.section { padding: clamp(48px, 3vw + 32px, 96px) 0; }

/* ---------- Work photos: swipe slider on phones, grid on desktop ---------- */
.work-slider__bar { display: none; }
@media (max-width: 999px) {
	.pf { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
	.pf__info { padding: 0 var(--gutter); }
	.gallery--work { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
	.gallery--work::-webkit-scrollbar { display: none; }
	.gallery--work .gallery__item, .gallery--work .gallery__item--big { flex: 0 0 100%; aspect-ratio: 4 / 3; border-radius: 0; scroll-snap-align: center; grid-column: auto; }
	.gallery--work .gallery__item img { transform: none; }
	.work-slider__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) 0; }
	.work-slider__count { font-weight: 800; font-size: .9rem; }
	.work-slider__dots { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
	.work-slider__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .2s, width .2s; }
	.work-slider__dots i.is-on { width: 18px; border-radius: 4px; background: var(--red); }
}

/* iOS Safari: height:100% + aspect-ratio on <img> in an auto-height grid stretches the photo. */
.prod { overflow: hidden; }
.prod__imgs img { height: auto; aspect-ratio: 4 / 3; }
.prod__imgs img:first-child { aspect-ratio: 16 / 9; }

/* ---------- Cookie notice (plugin) must not sit on top of the mobile action bar ---------- */
#cookie-notice { font-family: var(--f-body) !important; }
#cookie-notice .cn-button { border-radius: 999px !important; }
@media (max-width: 899px) {
	#cookie-notice { bottom: calc(88px + env(safe-area-inset-bottom)) !important; }
	body.cookies-not-set .actionbar { box-shadow: none; }
}
