/* ==========================================================================
   Dev Units — main styles. Design grid: 1920 wide, 1760 container, 80 gutters.
   ========================================================================== */

:root {
	--c-text: #080e1b;
	--c-text-2: #2c333f;
	--c-logo: #0d092a;
	--c-primary: #372ec0;
	--c-primary-hover: #2a22a3;
	--c-navy: #232c5b;
	--c-navy-2: #252d61;
	--c-soft: #f4f5ff;
	--c-border: #e5e5ec;
	--c-muted: #8488a2;
	--c-white: #fff;

	--f-head: 'Unbounded', 'Arial', sans-serif;
	--f-body: 'Nunito Sans', 'Arial', sans-serif;
	--f-ui: 'Inter', 'Arial', sans-serif;

	--container: 1760px;
	--gutter: clamp(16px, 4.17vw, 80px);
	--gap: clamp(12px, 1.25vw, 24px);
	--sec: clamp(64px, 8.33vw, 160px);
	--sec-sm: clamp(40px, 4.17vw, 80px);
	--track-pl: clamp(16px, 27.5vw, 528px);
	--radius: 16px;
	--radius-lg: 24px;
	--blur-glow: 260px;
	--blur-glow-lg: 347px;
	/* Pre-computed glows: a #372ec0 disc blurred by a gaussian as alpha stops out to radius + 3σ (σ 250 / 334 px = .96 of the old blur radii, fitted to the Figma render). Same look as filter: blur(), no per-frame cost. */
	--glow-g-card: radial-gradient(closest-side, rgb(55 46 192 / 0.743) 0.0%, rgb(55 46 192 / 0.734) 4.8%, rgb(55 46 192 / 0.709) 9.5%, rgb(55 46 192 / 0.669) 14.3%, rgb(55 46 192 / 0.615) 19.0%, rgb(55 46 192 / 0.550) 23.8%, rgb(55 46 192 / 0.479) 28.6%, rgb(55 46 192 / 0.404) 33.3%, rgb(55 46 192 / 0.331) 38.1%, rgb(55 46 192 / 0.262) 42.9%, rgb(55 46 192 / 0.200) 47.6%, rgb(55 46 192 / 0.147) 52.4%, rgb(55 46 192 / 0.105) 57.1%, rgb(55 46 192 / 0.071) 61.9%, rgb(55 46 192 / 0.047) 66.7%, rgb(55 46 192 / 0.029) 71.4%, rgb(55 46 192 / 0.018) 76.2%, rgb(55 46 192 / 0.010) 81.0%, rgb(55 46 192 / 0.006) 85.7%, rgb(55 46 192 / 0.003) 90.5%, rgb(55 46 192 / 0.002) 95.2%, rgb(55 46 192 / 0.001) 100.0%);
	--glow-g-banner: radial-gradient(closest-side, rgb(55 46 192 / 0.632) 0.0%, rgb(55 46 192 / 0.624) 4.8%, rgb(55 46 192 / 0.601) 9.5%, rgb(55 46 192 / 0.563) 14.3%, rgb(55 46 192 / 0.513) 19.0%, rgb(55 46 192 / 0.455) 23.8%, rgb(55 46 192 / 0.393) 28.6%, rgb(55 46 192 / 0.329) 33.3%, rgb(55 46 192 / 0.267) 38.1%, rgb(55 46 192 / 0.209) 42.9%, rgb(55 46 192 / 0.159) 47.6%, rgb(55 46 192 / 0.117) 52.4%, rgb(55 46 192 / 0.083) 57.1%, rgb(55 46 192 / 0.057) 61.9%, rgb(55 46 192 / 0.038) 66.7%, rgb(55 46 192 / 0.024) 71.4%, rgb(55 46 192 / 0.015) 76.2%, rgb(55 46 192 / 0.009) 81.0%, rgb(55 46 192 / 0.005) 85.7%, rgb(55 46 192 / 0.003) 90.5%, rgb(55 46 192 / 0.001) 95.2%, rgb(55 46 192 / 0.001) 100.0%);
	--glow-g-stats: radial-gradient(closest-side, rgb(55 46 192 / 0.930) 0.0%, rgb(55 46 192 / 0.924) 4.8%, rgb(55 46 192 / 0.905) 9.5%, rgb(55 46 192 / 0.874) 14.3%, rgb(55 46 192 / 0.828) 19.0%, rgb(55 46 192 / 0.768) 23.8%, rgb(55 46 192 / 0.694) 28.6%, rgb(55 46 192 / 0.609) 33.3%, rgb(55 46 192 / 0.517) 38.1%, rgb(55 46 192 / 0.422) 42.9%, rgb(55 46 192 / 0.331) 47.6%, rgb(55 46 192 / 0.249) 52.4%, rgb(55 46 192 / 0.179) 57.1%, rgb(55 46 192 / 0.122) 61.9%, rgb(55 46 192 / 0.079) 66.7%, rgb(55 46 192 / 0.049) 71.4%, rgb(55 46 192 / 0.029) 76.2%, rgb(55 46 192 / 0.016) 81.0%, rgb(55 46 192 / 0.008) 85.7%, rgb(55 46 192 / 0.004) 90.5%, rgb(55 46 192 / 0.002) 95.2%, rgb(55 46 192 / 0.001) 100.0%);
	--glow-g-giant: radial-gradient(closest-side, rgb(55 46 192 / 0.533) 0.0%, rgb(55 46 192 / 0.526) 4.8%, rgb(55 46 192 / 0.505) 9.5%, rgb(55 46 192 / 0.471) 14.3%, rgb(55 46 192 / 0.428) 19.0%, rgb(55 46 192 / 0.378) 23.8%, rgb(55 46 192 / 0.324) 28.6%, rgb(55 46 192 / 0.270) 33.3%, rgb(55 46 192 / 0.218) 38.1%, rgb(55 46 192 / 0.171) 42.9%, rgb(55 46 192 / 0.130) 47.6%, rgb(55 46 192 / 0.095) 52.4%, rgb(55 46 192 / 0.068) 57.1%, rgb(55 46 192 / 0.047) 61.9%, rgb(55 46 192 / 0.031) 66.7%, rgb(55 46 192 / 0.020) 71.4%, rgb(55 46 192 / 0.012) 76.2%, rgb(55 46 192 / 0.007) 81.0%, rgb(55 46 192 / 0.004) 85.7%, rgb(55 46 192 / 0.002) 90.5%, rgb(55 46 192 / 0.001) 95.2%, rgb(55 46 192 / 0.001) 100.0%);
	--glow-g-form: radial-gradient(closest-side, rgb(55 46 192 / 0.871) 0.0%, rgb(55 46 192 / 0.863) 4.8%, rgb(55 46 192 / 0.840) 9.5%, rgb(55 46 192 / 0.803) 14.3%, rgb(55 46 192 / 0.750) 19.0%, rgb(55 46 192 / 0.685) 23.8%, rgb(55 46 192 / 0.608) 28.6%, rgb(55 46 192 / 0.524) 33.3%, rgb(55 46 192 / 0.437) 38.1%, rgb(55 46 192 / 0.352) 42.9%, rgb(55 46 192 / 0.272) 47.6%, rgb(55 46 192 / 0.203) 52.4%, rgb(55 46 192 / 0.144) 57.1%, rgb(55 46 192 / 0.098) 61.9%, rgb(55 46 192 / 0.064) 66.7%, rgb(55 46 192 / 0.040) 71.4%, rgb(55 46 192 / 0.024) 76.2%, rgb(55 46 192 / 0.013) 81.0%, rgb(55 46 192 / 0.007) 85.7%, rgb(55 46 192 / 0.004) 90.5%, rgb(55 46 192 / 0.002) 95.2%, rgb(55 46 192 / 0.001) 100.0%);

	--fs-h1: clamp(32px, 3.34vw, 64px);
	--fs-h2: clamp(28px, 2.71vw, 52px);
	--fs-giant: clamp(52px, 10vw, 192px);
	--fs-h3: clamp(20px, 1.46vw, 28px);
	--fs-h4: clamp(18px, 1.25vw, 24px);
	--fs-h5: clamp(17px, 1.05vw, 20px);
	--fs-lead: clamp(16px, 0.94vw, 18px);

	--ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--c-text);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; }
.sr-only, .skip-link:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 8px 16px; background: var(--c-white); border-radius: 8px; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(960px + var(--gutter) * 2); }
.section { position: relative; padding-block: var(--sec-sm); }
/* White sections next to dark/colored blocks get the larger 160px rhythm from the design. */
:is(.section--dark, .banner, .application) + .section:not(.section--dark) { padding-top: var(--sec); }
.section:not(.section--dark, .reviews):has(+ :is(.section--dark, .banner, .application, .logos)) { padding-bottom: var(--sec); }
.section--dark { padding-block: var(--sec); }
.section--dark { background: var(--c-navy); color: var(--c-white); overflow: hidden; isolation: isolate; contain: paint; }
.main { display: block; }
/* the blue block's content slides under the next block instead of leaving the section (main.js, overlap) */
.is-overlapped { overflow: clip; }

/* glow = blurred #372ec0 ellipses from the design; host needs overflow:hidden + isolation.
   Figma layer blur 600 / 800 → CSS 260px / 347px (≈ .433R: matches the Figma render pixel-to-pixel, R/2 comes out ~10/255 dimmer). */
.glow, .benefit--accent::after, .card--dark::before, .card--soft::before, .compare__card--good::before, .plan--featured::before, .quiz__side::before, .banner::after, .footer__glow {
	content: ''; position: absolute; z-index: -1; pointer-events: none;
	--glow-pad: calc(3 * var(--glow-blur, var(--blur-glow)));
	width: calc(var(--glow-size, 824px) + 2 * var(--glow-pad)); height: calc(var(--glow-size, 824px) + 2 * var(--glow-pad)); margin: calc(-1 * var(--glow-pad));
	left: var(--glow-l, auto); right: var(--glow-r, auto); top: var(--glow-t, auto); bottom: var(--glow-b, auto);
	background: var(--glow-g, var(--glow-g-card)); opacity: var(--glow-o, 1);
}
/* Card glows scale with the card: --glow-w = the card's content width at 1920 (cqw ignores padding), offsets are 1920 px values × --u */
.benefit--accent, .card--dark, .card--soft, .compare__card--good, .plan--featured, .quiz__side { container-type: inline-size; }
.benefit--accent::after, .card--dark::before, .card--soft::before, .compare__card--good::before, .plan--featured::before, .quiz__side::before {
	--u: calc(100cqw / var(--glow-w)); --glow-size: calc(824 * var(--u)); --glow-blur: calc(260 * var(--u));
}
.glow--left { --glow-l: -378px; --glow-t: 513px; --glow-blur: var(--blur-glow-lg); --glow-g: var(--glow-g-giant); }
.cases .glow--left { --glow-t: 484px; }
.glow--stats { --glow-size: 1539px; --glow-r: -928px; --glow-t: -957px; --glow-blur: var(--blur-glow-lg); --glow-g: var(--glow-g-stats); }
.glow--form { --glow-size: 1351px; --glow-l: -900px; --glow-t: 371px; --glow-blur: var(--blur-glow-lg); --glow-g: var(--glow-g-form); }

/* ---------- typography ---------- */
.h2 { font-family: var(--f-head); font-weight: 500; font-size: var(--fs-h2); line-height: 1.05; letter-spacing: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--gap); margin-bottom: clamp(32px, 2.92vw, 56px); }
.section-head--center { align-items: center; }
.section-head__text { max-width: 1364px; }
.section-head__sub { margin-top: 24px; font-size: var(--fs-lead); line-height: 1.46; font-weight: 400; color: var(--c-text-2); }
.section-head__actions { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }

.rich { font-size: 16px; line-height: 1.78; color: var(--c-text-2); }
.rich > * + * { margin-top: .4em; }
.rich ul { padding-left: 0; }
.rich ul li { position: relative; padding-left: 28px; }
.rich ul li + li { margin-top: 12px; }
.rich ul li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 2px; background: var(--c-primary); }
.rich ol { padding-left: 1.4em; list-style: decimal; }
.rich a { color: var(--c-primary); text-decoration: underline; }
.rich b, .rich strong { font-weight: 700; color: var(--c-text); }
.rich--lg { font-size: var(--fs-lead); line-height: 1.67; }

/* ---------- buttons ---------- */
.btn {
	--btn-bg: var(--c-primary);
	--btn-fg: var(--c-white);
	--btn-bd: var(--c-primary);
	position: relative;
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 56px; padding: 12px 56px;
	border-radius: 1000px; border: 1px solid var(--btn-bd);
	background: var(--btn-bg); color: var(--btn-fg);
	font-family: var(--f-body); font-weight: 700; font-size: 16px; line-height: 20px;
	text-transform: uppercase; text-align: center; white-space: nowrap;
	isolation: isolate;
	transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), padding .3s var(--ease), margin .3s var(--ease), width .3s var(--ease);
}
/* Arrow = separate circle glued to the capsule's right edge (Figma Button 558:3982 / Button Mobile 775:2015) */
.btn__arrow {
	position: absolute; left: calc(100% + 1px); top: calc(50% - 28px); display: grid; place-items: center;
	width: 56px; height: 56px; border-radius: 50%;
	background: var(--btn-bg); color: var(--btn-fg);
	transform: scale(0); transform-origin: left center;
	transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.btn__arrow .icon { width: 12px; height: 12px; }
.btn--outline .btn__arrow, .btn--compact:not(.btn--inline-arrow) .btn__arrow { display: none; }
.btn[data-size="sm"] .btn__arrow { top: calc(50% - 24px); width: 48px; height: 48px; }
.btn--inline-arrow .btn__arrow { left: auto; right: 12px; top: calc(50% - 9px); width: 18px; height: 18px; background: none; transform: translateX(-8px); opacity: 0; transition: transform .3s var(--ease), opacity .25s var(--ease); }
.btn--inline-arrow .btn__arrow .icon { width: 16px; height: 15px; }
.btn--white { --btn-bg: var(--c-white); --btn-fg: var(--c-text); --btn-bd: var(--c-white); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--c-text); --btn-bd: var(--c-navy); }
.btn[data-size="sm"] { min-height: 48px; padding: 13px 24px; }
.btn--compact { min-height: 48px; padding: 12px 32px; }
/* Hover (feedback 26.10, п. 2/18): capsule + circle = the default button width. The capsule gives up 57px (circle 56 + 1px gap),
   the margin keeps the flow width, so neighbours never move and the circle never runs into them. */
/* п. 3 (видео): the hit area keeps the full default width while the capsule shrinks, so the hover can't flicker at the right edge */
.btn::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
@media (hover: hover) and (min-width: 768px) {
	.btn:is(.btn--primary, .btn--white):not(.btn--compact, [data-size="sm"]):hover::after { right: -58px; }
	.btn[data-size="sm"]:is(.btn--primary, .btn--white):hover::after { right: -49px; }
	.btn[data-size="sm"]:is(.btn--primary, .btn--white):hover .btn__arrow { transform: scale(1); }
	.btn--compact.btn--inline-arrow:hover { padding-left: 20px; padding-right: 44px; }
	.btn--inline-arrow:hover .btn__arrow { transform: none; opacity: 1; }
	.btn--inline-arrow.btn--primary:hover { --btn-bg: var(--c-primary-hover); --btn-bd: var(--c-primary-hover); }
	.btn:is(.btn--primary, .btn--white):not(.btn--compact, [data-size="sm"]):hover { padding-inline: 27.5px; margin-right: 57px; }
	.btn:is(.btn--primary, .btn--white):not(.btn--compact, [data-size="sm"]):hover .btn__arrow { transform: scale(1); }
	.plan .btn:is(.btn--primary, .btn--white):hover { width: calc(100% - 56px); padding-inline: 24px; margin-right: 0; }
	.btn--white:hover { --btn-fg: var(--c-navy); }
	.btn--outline:hover { --btn-bg: var(--c-primary); --btn-bd: var(--c-primary); --btn-fg: var(--c-white); }
}
/* Touch / phones: no hover circle at all — it used to stay «stuck» next to the button after a tap */
@media (hover: none), (max-width: 767px) {
	.btn__arrow { display: none; }
	.btn--outline:not(.btn--compact) { padding-inline: 32px; }
	.banner__actions, .section-head__actions { flex-wrap: wrap; }
}
.btn:disabled, .btn.is-loading { opacity: .7; pointer-events: none; }

.link { color: var(--c-primary); text-decoration: underline; text-underline-offset: 2px; }

/* messengers */
.messengers { display: flex; align-items: center; gap: 24px; }
.messenger { display: inline-flex; width: 32px; height: 32px; color: var(--c-primary); transition: color .2s, transform .25s var(--ease); }
.messenger .icon { width: 32px; height: 32px; }
@media (hover: hover) {
	.messenger:hover { color: var(--c-primary-hover); }
	:is(.banner, .quiz__contacts, .section--dark, .application) .messenger:hover { color: var(--c-soft); }
}
.contact-row { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }

/* ---------- header ---------- */
/* no backdrop-filter: the 96% white background hides the blur anyway, and it was re-rendered on every scroll frame */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); transition: box-shadow .3s; }

.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }
.logo { font-family: var(--f-body); font-weight: 700; font-size: clamp(28px, 2.0834vw, 40px); line-height: 1.2; color: var(--c-logo); letter-spacing: -.01em; white-space: nowrap; }
.logo img { max-height: 48px; width: auto; }
.header__nav ul { display: flex; gap: 32px; }
.header__nav a { font-weight: 700; text-transform: uppercase; font-size: 15px; }
.header__nav a:hover { color: var(--c-primary); }
.header__actions { display: flex; align-items: center; gap: 24px; }
.header__phone { font-weight: 700; font-size: 16px; line-height: 20px; text-transform: uppercase; white-space: nowrap; }
.header__phone:hover { color: var(--c-primary); }
.header__messengers { gap: 16px; }
.header__call { display: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c-primary); background: var(--c-white); color: var(--c-primary); transition: background-color .2s, color .2s; }
.header__call .icon { width: 22px; height: 22px; }
.header__call:hover, .header__call:active { background: var(--c-primary); color: var(--c-white); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(32px, 4.17vw, 80px) var(--sec-sm); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1017px) minmax(0, 1fr); gap: 56px; align-items: center; justify-content: space-between; min-height: 600px; }
.hero__inner > .hero__content:only-child { grid-column: 1 / -1; max-width: 1017px; }
.hero__title { font-family: var(--f-head); font-weight: 500; font-size: var(--fs-h1); line-height: 1.06; }
.hero__text { max-width: 41em; margin-top: 24px; font-size: var(--fs-lead); line-height: 1.53; }
.hero__text b, .hero__text strong { font-weight: 800; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 40px; }
.hero__media { justify-self: end; width: 100%; }
.hero__media img { width: auto; max-width: 100%; max-height: 600px; margin-left: auto; }
/* 836×600 column; the 898×535 picture overhangs it by 62px on the left (sizes as % of the column to keep scaling) */
.hero__media--wide img { width: 107.42%; max-width: none; max-height: none; aspect-ratio: 898 / 535; margin: 2.512% 0 5.263% -7.416%; object-fit: cover; object-position: 50% 32.3%; }

/* 1500–1919 (incl. 110/125 % zoom): headings keep the design's measure relative to their size, so they wrap like in Figma */
@media (min-width: 1500px) {
	.hero__title { max-width: 15.9em; } /* 1017 / 64: three lines (feedback 26.10, п. 17) */
	.compare__intro .h2 { width: 10.52em; max-width: calc(100% + 24px); } /* 547 / 52, may use the intro's 24px right padding */
}

/* ---------- benefits ---------- */
.benefits { padding-block: 40px var(--sec-sm); }
.benefits__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.benefit { position: relative; padding: 32px; }
.benefit + .benefit::before { content: ''; position: absolute; left: -12px; top: 0; bottom: 0; width: 1px; background: var(--c-border); }
.benefit--accent + .benefit::before, .benefit--accent::before { display: none; }
.benefit--accent { overflow: hidden; isolation: isolate; border-radius: var(--radius); background: var(--c-navy); color: var(--c-white); }
.benefit--accent::after { --glow-w: 358; --glow-l: calc(257 * var(--u)); --glow-t: calc(-412 * var(--u)); }
.benefit__title { font-family: var(--f-head); font-weight: 500; font-size: var(--fs-h5); line-height: 1.27; }
.benefit__text { margin-top: 16px; font-size: var(--fs-lead); line-height: 1.34; color: var(--c-text-2); }
.benefit--accent .benefit__text { color: var(--c-white); }

/* ---------- cards grid ---------- */
.cards__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
	position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
	min-height: 294px; padding: 32px; border-radius: var(--radius); overflow: hidden; isolation: isolate;
	background: var(--c-soft); transition: background-color .3s var(--ease), color .3s var(--ease);
}
.card__head { display: flex; justify-content: space-between; gap: 16px; }
.card__title { font-family: var(--f-head); font-weight: 500; font-size: var(--fs-h3); line-height: 1.27; max-width: 480px; }
.card__dot { flex: none; width: 12px; height: 12px; border-radius: 4px; background: var(--c-primary); }
.card__text { font-size: 16px; line-height: 1.5; color: var(--c-text-2); }
.card--outline { background: var(--c-white); border: 1px solid var(--c-border); }
.card--outline .card__head { position: static; }
.card--outline .card__dot { position: absolute; right: 32px; bottom: 32px; width: 8px; height: 8px; border-radius: 2px; }
.card--outline .card__text { padding-right: 24px; }
.card--dark { color: var(--c-white); background: var(--c-navy); }
.card--dark::before, .card--soft::before { --glow-w: 507; --glow-l: calc(265 * var(--u)); --glow-t: calc(-521 * var(--u)); }
/* «Признаки заражения»: the dark look of 1573:3406 is the hover state of the soft cards */
.card--soft::before { --glow-o: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s; }
.card--soft .card__dot { transition: background-color .3s var(--ease); }
.card--soft .card__text { transition: color .3s var(--ease); }
@media (hover: hover) {
	.card--soft:hover { color: var(--c-white); background: var(--c-navy); }
	.card--soft:hover::before { --glow-o: 1; visibility: visible; transition-delay: 0s; }
	.card--soft:hover .card__dot { background: var(--c-white); }
	.card--soft:hover .card__text { color: var(--c-border); }
}
.card--dark .card__dot { background: var(--c-white); }
.card--dark .card__text { color: var(--c-border); }
.card .btn { align-self: flex-start; }
.card--dark:has(.btn) { justify-content: flex-start; }
.card--dark:has(.btn) .card__text { margin-top: -8px; }
.card--dark:has(.btn) .card__dot { display: none; }
.card--dark:has(.btn)::before { --glow-l: calc(84 * var(--u)); --glow-t: calc(-506 * var(--u)); }

/* ---------- compare ---------- */
.compare__inner { display: grid; grid-template-columns: minmax(0, 571fr) minmax(0, 1165fr); gap: 24px; align-items: start; }
.compare__intro { padding-right: 24px; }
.compare__text { margin-top: 24px; font-size: var(--fs-lead); line-height: 1.67; color: var(--c-text-2); }
.compare__text p + p { margin-top: .889em; }
.compare__intro .contact-row { margin-top: 40px; }
.compare__cards { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.compare__card { position: relative; padding: 40px; overflow: hidden; isolation: isolate; }
.compare__card--good { z-index: 1; min-height: 400px; border-radius: var(--radius-lg); background: var(--c-navy); color: var(--c-white); }
.compare__card--good::before { --glow-w: 503; --glow-l: calc(235 * var(--u)); --glow-t: calc(-456 * var(--u)); }
/* rounded on all sides; the left 24px tuck under the dark card, so its corners never show as square */
.compare__card--bad { min-height: 359px; margin-left: -24px; padding-left: 64px; border-radius: var(--radius); background: var(--c-soft); }
.compare__title { font-family: var(--f-head); font-weight: 500; font-size: var(--fs-h3); line-height: 1.3; }
.compare__card--bad .compare__title { font-size: var(--fs-h4); }
.compare__list { margin-top: 32px; padding-top: 32px; border-top: 1px solid #8488a2; display: grid; gap: 16px; }
.compare__card--bad .compare__list { border-color: var(--c-border); }
.compare__list li { display: flex; gap: 12px; font-weight: 600; font-size: 16px; line-height: 1.53; }
.compare__card--bad .compare__list li { color: var(--c-text-2); }
.compare__mark { flex: none; display: grid; place-items: center; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: var(--c-soft); color: var(--c-primary); }
.compare__mark .icon { width: 10px; height: 10px; }
.compare__card--bad .compare__mark { background: none; border: 1px solid var(--c-muted); }
/* One «VS» split by the cards' seam. Both cards have a 502px content box at 1920 (cqw = same unit), positions from the design. */
.compare__card--bad { container-type: inline-size; }
.compare__vs {
	position: absolute; z-index: -1; left: 77.29cqw; top: 40.04cqw; pointer-events: none;
	font-family: 'Montserrat', var(--f-head); font-weight: 900; font-size: 38.2cqw; line-height: 1.4; letter-spacing: -.05em; white-space: nowrap;
	background: linear-gradient(180deg, rgba(66, 142, 250, 0), rgba(244, 245, 255, 1)); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .3;
}
.compare__vs--light { left: -34.06cqw; top: calc(40.04cqw + var(--vs-dy, -4.18cqw)); background: none; color: var(--c-border); opacity: .75; }

/* ---------- banner ---------- */
.banner { position: relative; overflow: hidden; isolation: isolate; background: var(--c-navy); color: var(--c-white); }
.banner__bg { position: absolute; inset: 0; z-index: -1; }
.banner__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.banner::after { --glow-size: 945px; --glow-r: -419px; --glow-t: -537px; --glow-blur: var(--blur-glow-lg); --glow-g: var(--glow-g-banner); }
.banner:has(.banner__text)::after { --glow-o: .56; }
.banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 212px; padding-block: 48px; }
.banner:has(.banner__text) .banner__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to left, rgba(8, 14, 27, 0) 0%, rgba(8, 14, 27, .64) 64%, rgba(8, 14, 27, .64) 100%); }
/* owner's call (QA-038): text block centred with equal space above and below, 44 / 24 px at 1920, scaled like the type */
.banner:has(.banner__text) .banner__inner { min-height: clamp(200px, 13.334vw, 256px); padding-block: clamp(32px, 2.2917vw, 44px); }
.banner:has(.banner__text) .banner__title { max-width: 1034px; }
.banner__title { max-width: 1197px; font-family: var(--f-head); font-weight: 600; font-size: clamp(22px, 2.0834vw, 40px); line-height: 1.06; }
.banner__text { max-width: 1034px; margin-top: clamp(16px, 1.25vw, 24px); font-size: var(--fs-lead); font-weight: 400; line-height: 1.5; }
.banner__actions { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.banner .messenger { color: var(--c-white); }
@media (hover: hover) { .banner .messenger:hover { color: var(--c-soft); } }

/* ---------- pricing ---------- */
.pricing__grid { display: grid; gap: 24px; }
.pricing__grid--1 { grid-template-columns: minmax(0, 571px); }
.pricing__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pricing__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pricing__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pricing__grid { grid-auto-rows: auto; }
.plan { position: relative; display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; gap: 32px; padding: 32px; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; isolation: isolate; background: var(--c-white); }
.plan__name { font-family: var(--f-head); font-weight: 500; font-size: var(--fs-h4); line-height: 1.3; }
.plan__desc { margin-top: 16px; font-size: 16px; line-height: 1.53; color: var(--c-text-2); }
/* in the design the term is the description's last line after one empty line (same 16/24.48 text node) */
.plan__term { margin-top: 1.53em; font-size: 16px; line-height: 1.53; color: var(--c-text-2); }
.plan__price { align-self: end; font-family: var(--f-head); font-weight: 500; font-size: clamp(24px, 1.67vw, 32px); line-height: 1.27; }
.pricing__grid--4 .plan__price { font-size: clamp(24px, 1.4584vw, 28px); }
.plan .btn { width: 100%; padding-inline: 24px; }
.plan__features { display: grid; align-content: start; gap: 16px; padding-top: 32px; border-top: 1px solid var(--c-border); }
.plan__features li { display: flex; gap: 8px; font-size: 16px; line-height: 1.5; color: var(--c-text-2); }
.plan__features .icon { flex: none; width: 16px; height: 16px; margin-top: 4px; padding: 3px; border-radius: 50%; background: var(--c-primary); color: var(--c-white); }
.plan__features b, .plan__features strong { font-weight: 800; color: var(--c-text); }
.plan--featured { background: var(--c-navy); border-color: var(--c-primary); color: var(--c-white); }
.plan--featured::before { --glow-w: 505; --glow-r: calc(-475 * var(--u)); --glow-t: calc(-412 * var(--u)); }
.pricing__grid--4 .plan--featured::before { --glow-w: 356; }
/* п. 24: container-type disables subgrid, so the featured plan lost the shared rows (price/button drifted up).
   Its glow scales with the viewport instead (design px × screen/1920; 4 columns are 356/505 of the 3-column card). */
.plan--featured { container-type: normal; }
.plan--featured::before { --u: calc(min(100vw, 1920px) / 1920); }
.pricing__grid--4 .plan--featured::before { --u: calc(min(100vw, 1920px) / 1920 * .705); }
.plan--featured .plan__desc, .plan--featured .plan__term, .plan--featured .plan__features li { color: var(--c-white); }
.plan--featured .plan__features { border-color: rgba(255, 255, 255, .24); }
.plan--featured .plan__features b, .plan--featured .plan__features strong { color: var(--c-white); }
.plan--soft { background: var(--c-soft); }

.tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 24px; border-radius: 1000px; background: #f0f0f4; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs__btn { flex: 1 0 auto; min-height: 56px; padding: 12px 24px; border-radius: 1000px; font-weight: 700; font-size: 16px; transition: background-color .25s, color .25s; }
.tabs__btn[aria-selected="true"] { background: var(--c-navy); color: var(--c-white); }
.tabs.has-indicator { position: relative; isolation: isolate; }
.tabs.has-indicator .tabs__btn { position: relative; z-index: 1; transition: color .35s var(--ease), flex-basis .45s var(--ease), flex-grow .45s var(--ease); }
.tabs.has-indicator .tabs__btn[aria-selected="true"] { background: transparent; }
.tabs__indicator { position: absolute; left: 0; top: 0; z-index: 0; width: 0; height: 0; border-radius: 1000px; background: var(--c-navy); pointer-events: none; }
.tabs.is-ready .tabs__indicator { transition: transform .45s var(--ease), width .45s var(--ease), height .45s var(--ease); }
.pricing__panel.is-entering { animation: tabIn .45s var(--ease); }
@keyframes tabIn { from { opacity: 0; transform: translateY(12px); } }
.tabs__btn:not([aria-selected="true"]):hover { color: var(--c-primary); }
/* desktop pills as in the design: 8px track, active 539 of 1744, the rest share the remainder (text centres ≈ thirds) */
@media (min-width: 1201px) {
	.section-head:has(+ .tabs) { margin-bottom: 32px; }
	.tabs { gap: 16px; padding: 8px; margin-bottom: 32px; }
	.tabs__btn { flex: 1 1 0; min-height: 52px; padding: 14px 24px; font-size: clamp(15px, .99vw, 19px); line-height: 1.21; }

}

.help-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding: 32px; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-soft); }
.help-bar__title { font-family: var(--f-head); font-weight: 500; font-size: var(--fs-h5); line-height: 1.27; margin-bottom: 8px; }
.help-bar__text p { font-size: var(--fs-lead); line-height: 1.53; color: var(--c-text-2); }
.help-bar__actions { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.help-bar__phone { font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.help-bar__actions .messengers { gap: 16px; }

/* ---------- stats ---------- */
.stats__title { max-width: 1260px; }
.stats__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(40px, 4.17vw, 80px); align-items: start; }
.stat:not(:first-child) { padding-top: 12px; }
.stat { display: flex; flex-direction: column; gap: 16px; }
.stat__number { font-family: var(--f-head); font-weight: 500; font-size: clamp(48px, 4.17vw, 80px); line-height: 1.02; }
.stat:first-child .stat__number { font-size: clamp(56px, 5.42vw, 104px); line-height: 1.08; }
.stat__label { font-family: var(--f-head); font-weight: 400; font-size: clamp(20px, 1.67vw, 32px); line-height: 1; }
.stat__text { max-width: 260px; font-family: var(--f-ui); font-weight: 400; font-size: 16px; line-height: 1.5; }

/* ---------- faq ---------- */
.faq__inner { display: grid; grid-template-columns: minmax(0, 555fr) minmax(0, 1165fr); gap: 40px; align-items: start; }
.faq__intro { position: sticky; top: 120px; padding-right: 40px; }
.faq__text { margin-top: 24px; font-size: var(--fs-lead); line-height: 1.67; color: var(--c-text-2); }
.faq__intro .contact-row { margin-top: 40px; }
.faq__list { display: grid; gap: 40px; }
/* Figma draws FAQ text on whole-pixel pitches (24/32.4 → 32, 16/28.48 → 28) and keeps the divider inside the 40px */
.faq-item { padding-bottom: 39px; border-bottom: 1px solid var(--c-border); }
.faq-item__q button { display: flex; align-items: flex-start; gap: 16px; width: 100%; text-align: left; font-family: var(--f-head); font-weight: 500; font-size: var(--fs-h4); line-height: 1.3334; }
/* Figma faq 1278:19895: closed «+» 14px on #e5e5ec, hover #372ec0 + white, open «×» 10px (the plus turned 45°) on #232c5b */
.faq-item__icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-border); color: var(--c-text); transition: background-color .3s var(--ease), color .3s var(--ease); }
.faq-item__icon .icon { width: 24px; height: 24px; transition: transform .3s var(--ease); }
.faq-item.is-open .faq-item__icon { background: var(--c-navy); color: var(--c-white); }
.faq-item.is-open .faq-item__icon .icon { transform: rotate(45deg); }
.faq-item:not(.is-open) .faq-item__q button:hover .faq-item__icon { background: var(--c-primary); color: var(--c-white); }
.faq-item__body { padding: 16px 0 0 48px; }
.faq-item__body .rich { line-height: 1.75; }
.faq-item__body .rich > p + p { margin-top: 0; }
.faq-item__body .rich ul li + li { margin-top: 16px; }
.link-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 24px; border-radius: var(--radius); background: var(--c-soft); transition: background-color .25s; }
.link-card:hover { background: #ebedff; }
.link-card__title { display: block; font-weight: 700; font-size: clamp(16px, 1.0417vw, 20px); line-height: 1.21; color: var(--c-text); }
.link-card__text { display: block; margin-top: 8px; font-weight: 400; font-size: clamp(14px, .8334vw, 16px); line-height: 1.5; color: var(--c-text); }
.link-card__icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--c-primary); color: var(--c-white); transition: background-color .25s var(--ease); }
.link-card__icon .icon { width: 28.8px; height: 28.8px; transition: transform .35s var(--ease); }
.link-card:hover .link-card__icon { background: var(--c-primary-hover); }
.link-card:hover .link-card__icon .icon { transform: rotate(45deg); }

/* ---------- giant title sections (process, cases) ---------- */
.giant { --giant-pt: clamp(80px, 11.5vw, 220px); padding-block: var(--giant-pt) clamp(80px, 14.95vw, 287px); }
.giant.cases { --giant-pt: var(--sec); padding-block: var(--sec); }
/* pinned: the same top space as «Этапы работы» */
.giant.cases.is-pinned { --giant-pt: clamp(80px, 11.5vw, 220px); }
/* Desktop: the section is pinned under the header and page scroll drives the track (main.js sets the height and the shift) */
.giant.is-pinned { padding-block: 0; overflow: clip; }
.giant.is-pinned .giant__pin { position: sticky; top: var(--header-h, 0px); height: calc(100vh - var(--header-h, 0px)); padding-top: max(24px, calc(var(--pin-pt, var(--giant-pt)) - (100vh - var(--header-h, 0px)) * .1)); overflow: hidden; }
/* feedback 28.10: title and cards sit 10% of the screen higher, so they are read mid-screen, not at the bottom */
.giant.is-pinned .slider__track { position: relative; overflow: visible; scroll-snap-type: none; cursor: auto; will-change: transform; }
.giant__title { position: relative; z-index: 0; font-family: var(--f-head); font-weight: 600; font-size: var(--fs-giant); line-height: 1.02; white-space: nowrap; margin-left: -.01em; }
.slider { position: relative; z-index: 1; margin-top: calc(var(--fs-giant) * -0.255); }
.slider__track {
	display: flex; gap: 24px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
	padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); padding-left: var(--track-pl);
	scroll-padding-left: var(--track-pl);
	scrollbar-width: none; cursor: grab;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.slider__track.is-dragging * { pointer-events: none; user-select: none; }
.slider__track > * { scroll-snap-align: start; flex: none; }
.slider-dots { display: none; }

.step {
	--card-rgb: 100, 165, 255; --card-a: .8; --card-bg: rgba(var(--card-rgb), var(--card-a));
	display: flex; flex-direction: column; gap: 16px; width: 320px; min-height: 346px; padding: 32px;
	border-radius: var(--radius); background: var(--card-bg); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
	transition: background-color .3s var(--ease);
}
.step:nth-child(2) { --card-rgb: 66, 142, 250; }
.step:nth-child(3) { --card-rgb: 66, 121, 250; }
.step:nth-child(4) { --card-rgb: 66, 82, 250; }
.step:nth-child(n+5) { --card-rgb: 88, 66, 250; }
.step:hover { --card-a: 1; }
.step__num { font-family: var(--f-head); font-weight: 500; font-size: var(--fs-h4); line-height: 1.25; }
.step__title { font-family: var(--f-body); font-weight: 600; font-size: 24px; line-height: 1.25; }
.step__text { margin-top: auto; padding-top: 16px; font-size: 16px; line-height: 1.5; }

.case {
	display: flex; gap: 16px; width: min(1165px, calc(100vw - var(--track-pl) - var(--gutter))); min-height: 520px; padding: 16px;
	--card-bg: rgba(100, 165, 255, .8);
	border-radius: var(--radius-lg); background: var(--card-bg); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
}
.case--compact { min-height: 480px; }
.case:nth-child(2) { --card-bg: rgba(66, 142, 250, .8); }
.case:nth-child(3) { --card-bg: rgba(66, 121, 250, .8); }
.case:nth-child(n+4) { --card-bg: rgba(66, 82, 250, .8); }
/* Pinned strips move every frame, so the live backdrop blur is replaced by a pre-rendered «ghost» of the giant title
   (main.js: title erased with the section colour + its blurred copy) under the card's translucent fill. */
.giant.is-pinned :is(.step, .case) { position: relative; isolation: isolate; overflow: hidden; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.giant.is-pinned :is(.step, .case)::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--card-bg); transition: background-color .3s var(--ease); pointer-events: none; }
.giant__ghost { position: absolute; z-index: -2; background-size: 100% 100%; pointer-events: none; will-change: transform; }
.case__side { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; flex: 0 0 280px; padding: 24px; border-radius: 8px; background: rgba(255, 255, 255, .1); }
.case__num { font-family: var(--f-head); font-weight: 700; font-size: clamp(40px, 2.92vw, 56px); line-height: .81; color: rgba(255, 255, 255, .56); }
.case__facts { display: grid; gap: 24px; }
.case__facts dt { font-size: clamp(14px, .8334vw, 16px); line-height: 1.53; color: rgba(255, 255, 255, .72); }
.case__facts dd { font-weight: 600; font-size: clamp(16px, 1.0417vw, 20px); line-height: 1.19; }
.case__main { display: flex; flex-direction: column; gap: 32px; flex: 1; min-width: 0; padding: 16px; }
.case__head { display: flex; justify-content: space-between; gap: 24px; }
.case__title { font-family: var(--f-head); font-weight: 500; font-size: clamp(20px, 1.6667vw, 32px); line-height: 1.3; max-width: 760px; }
.case__logo { flex: none; width: 200px; height: 200px; border-radius: 13px; overflow: hidden; background: var(--c-navy); }
.case__logo img { width: 100%; height: 100%; object-fit: cover; }
.case__text { margin-top: auto; color: var(--c-white); font-size: var(--fs-lead); line-height: 1.53; }
.case__text b, .case__text strong { color: var(--c-white); }
/* «Проблема» / «Результат» look like the «Срок» / «Услуга» labels, so the text doesn't read as one solid block */
.case__label { display: block; margin-bottom: 4px; font-size: clamp(14px, .8334vw, 16px); line-height: 1.53; color: rgba(255, 255, 255, .72); }
.case__meta { display: flex; align-items: center; gap: 0; margin-top: auto; }
.case__meta-item { flex: 1; padding: 8px 24px; border-left: 1px solid rgba(255, 255, 255, .4); font-weight: 600; font-size: clamp(16px, 1.0417vw, 20px); line-height: 1.19; }
.case__meta-item:first-child { border-left: 0; }
.case__meta-item span { display: block; font-weight: 500; font-size: clamp(12px, .8334vw, 16px); line-height: 1.53; opacity: .8; }
.case__meta-item--accent { flex: 0 0 auto; min-width: 216px; margin-right: 24px; padding: 8px 16px; border: 0; border-radius: 8px; background: var(--c-white); color: var(--c-text); }
.case__meta-item--accent + .case__meta-item { border-left: 0; }
.case__link { flex: none; display: grid; place-items: center; width: 56px; height: 56px; margin-left: 16px; border: 1px solid var(--c-white); border-radius: 50%; background: var(--c-white); color: var(--c-navy); transition: color .25s var(--ease), background-color .25s var(--ease); }
.case__link .icon { width: 20px; height: 20px; transition: transform .35s var(--ease); }
.case--link { position: relative; cursor: pointer; }
.case__cover { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.case__cover:focus-visible { outline: 2px solid var(--c-white); outline-offset: 3px; }
.case__link--end { align-self: flex-end; margin: 16px 0 0; }
.case--link:hover .case__link { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white); }
.case--link:hover .case__link .icon { transform: rotate(45deg); }
/* Type=Outline for dark backgrounds */
.case__link--outline { background: transparent; color: var(--c-white); }
.case__link--outline:hover { background: var(--c-white); color: var(--c-primary); }
.case__link--outline[aria-disabled="true"] { opacity: 0; }

/* ---------- case study ---------- */
.case-study__inner { display: grid; grid-template-columns: minmax(0, 555fr) minmax(0, 1165fr); gap: 40px; }
.case-study__text { margin-top: 24px; font-size: var(--fs-lead); line-height: 1.67; color: var(--c-text-2); }
.case-study__title { font-family: var(--f-head); font-weight: 700; font-size: var(--fs-h4); line-height: 1.35; margin-bottom: 16px; }
.case-study__body .rich > * + * { margin-top: 16px; }
.case-study__body .rich ul li + li { margin-top: 8px; }
.case-study__image { margin-top: 56px; border-radius: var(--radius-lg); overflow: hidden; }
.case-study__image img { width: 100%; height: clamp(220px, 24.9vw, 478px); object-fit: cover; }

/* ---------- reviews ---------- */
.reviews { overflow: hidden; }
.reviews .section-head { margin-bottom: 56px; }
.slider-nav { display: flex; gap: 16px; }
.slider-nav__btn { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(55, 46, 192, .86); color: var(--c-primary); transition: background-color .25s, color .25s, opacity .25s; }
.slider-nav__btn .icon { width: 24px; height: 24px; }
.slider-nav__btn--prev .icon { transform: rotate(180deg); }
.slider-nav__btn:hover { background: var(--c-primary); color: var(--c-white); }
.slider-nav__btn:disabled { opacity: .64; pointer-events: none; }
.container--bleed { max-width: none; padding-inline: 0; }
.reviews__track { padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); scroll-padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.review { display: flex; gap: 24px; width: min(1165px, calc(100vw - var(--gutter) * 2)); min-height: 424px; padding: 40px; border-radius: 32px; border: 1px solid var(--c-border); background: var(--c-white); }
.review:first-child { background: var(--c-soft); border-color: var(--c-soft); }
.review__person { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; flex: 0 0 233px; padding-bottom: 24px; }
.review__name { font-family: var(--f-head); font-weight: 500; font-size: var(--fs-h5); line-height: 1.27; }
.review__role { margin-top: 16px; font-size: var(--fs-lead); line-height: 1.53; }
.review__logo img { max-width: 140px; max-height: 72px; width: auto; object-fit: contain; }
.review__body { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; flex: 1; min-width: 0; padding-bottom: 24px; }
.review__text { font-size: var(--fs-lead); line-height: 1.67; color: var(--c-text-2); }
.review__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.review__facts dt { font-family: var(--f-ui); font-weight: 600; font-size: 16px; line-height: 1.5; text-transform: uppercase; }
.review__facts dd { margin-top: 8px; font-family: var(--f-ui); font-weight: 400; font-size: 16px; line-height: 1.5; color: var(--c-text-2); }

/* ---------- logos ---------- */
.logos { padding-bottom: 64px; }
.logos__viewport { padding-block: 7px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.logos__track { display: flex; width: max-content; animation: logos var(--logos-dur, 40s) linear infinite; }
.logos__viewport:hover .logos__track { animation-play-state: paused; }
.logos__list { display: flex; gap: 16px; padding-right: 16px; }
.logos__item { display: grid; place-items: center; width: 280px; height: 165px; }
.logos__item img { max-width: 142px; max-height: 91px; width: auto; object-fit: contain; }
@keyframes logos { to { transform: translateX(-50%); } }

/* ---------- application / form ---------- */
.application { position: relative; overflow: hidden; isolation: isolate; padding-block: 120px; background: var(--c-navy-2); color: var(--c-white); }
.application__inner { display: grid; grid-template-columns: minmax(0, 743fr) minmax(0, 868fr); gap: 40px; justify-content: space-between; }
.application__text { margin-top: 24px; max-width: 743px; font-size: var(--fs-lead); line-height: 1.4; }
.lead-form { display: grid; gap: 24px; align-content: start; }
.lead-form__fields { display: grid; gap: 16px; }
.lead-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form__tariff { padding: 12px 24px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-size: 15px; }
.field__input {
	width: 100%; height: 56px; padding: 12px 24px; border-radius: 100px; border: 1px solid rgba(229, 229, 236, .4);
	background: transparent; color: var(--c-white); font-family: var(--f-ui); font-size: 16px; line-height: 24px;
	transition: border-color .2s, background-color .2s;
}
.field__input::placeholder { color: var(--c-white); opacity: 1; }
.field__input:focus { outline: 0; border-color: var(--c-white); background: rgba(255, 255, 255, .06); }
.field__input.is-invalid { border-color: #ff8a8a; }
.lead-form .btn { justify-self: start; margin-top: 16px; }
.lead-form__error { color: #ffb4b4; font-size: 15px; }
.consent { display: flex; gap: 8px; font-family: var(--f-ui); font-weight: 400; font-size: 14px; line-height: 1.5; cursor: pointer; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.checkbox { position: relative; flex: none; display: grid; place-items: center; width: 24px; height: 24px; }
.checkbox input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.checkbox__box { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 2px; border: 1px solid var(--c-white); color: transparent; transition: background-color .2s, border-color .2s; }
.checkbox:hover .checkbox__box { background: var(--c-white); }
.checkbox__box .icon { width: 12px; height: 12px; }
.checkbox input:checked + .checkbox__box { background: var(--c-white); border-color: var(--c-white); color: var(--c-primary); }
.checkbox input:focus-visible + .checkbox__box { outline: 2px solid var(--c-white); outline-offset: 2px; }

/* ---------- problems (task → solution cards) ---------- */
.problems__title { max-width: 930px; }
.problems__nav { margin-left: 8px; }
.problems__grid.is-paged > .is-off { display: none; }
.problem.is-flip-in { animation: flipIn .55s var(--ease) both; }
.problem.is-flip-in-back { animation: flipInBack .55s var(--ease) both; }
@keyframes flipIn { from { opacity: 0; transform: perspective(1200px) rotateY(-60deg) translateX(24px); } }
@keyframes flipInBack { from { opacity: 0; transform: perspective(1200px) rotateY(60deg) translateX(-24px); } }
.problems__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (min-width: 768px) and (max-width: 1199px) { .problems__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Rows shared across a row of cards (subgrid): title / text / divider / bottom text, so dividers line up; spare space sits above the divider */
.problem { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; padding: 32px; border-radius: var(--radius); border: 1px solid var(--c-border); background: var(--c-white); }
.problem:nth-child(8n+1), .problem:nth-child(8n+3), .problem:nth-child(8n+6), .problem:nth-child(8n+8) { background: var(--c-soft); border-color: var(--c-soft); }
.problem__title { font-family: var(--f-head); font-weight: 500; font-size: var(--fs-h5); line-height: 1.27; }
.problem__text { margin-top: 16px; font-size: 16px; line-height: 1.5; color: var(--c-text-2); }
.problem > div:first-child, .problem__solution { display: contents; }
.problem__arrow { display: flex; align-items: center; gap: 8px; align-self: end; margin-top: 64px; }
.problem__arrow::after { content: ''; flex: 1; height: 1px; background: var(--c-border); }
.problem__arrow span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-navy); color: var(--c-white); }
.problem__arrow .icon { width: 24px; height: 24px; }
.problem__solution p { margin-top: 16px; font-weight: 600; font-size: 16px; line-height: 1.5; color: var(--c-text-2); }

/* ---------- included (rows) ---------- */
.included__title { margin-bottom: 56px; }
.included__list { border-top: 1px solid var(--c-border); }
.included__item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 868px); gap: 24px 68px; padding: 25px 0; border-bottom: 1px solid var(--c-border); }
.included__name { position: relative; padding-left: 36px; font-family: var(--f-head); font-weight: 500; font-size: var(--fs-h3); line-height: 1.3; }
.included__name::before { content: ''; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 4px; background: var(--c-primary); }
.included__text { font-size: var(--fs-lead); line-height: 1.53; color: var(--c-text); }
.included__toggle { display: flex; align-items: flex-start; gap: 16px; width: 100%; padding: 0; text-align: left; font: inherit; color: inherit; cursor: default; pointer-events: none; }
.included__icon { display: none; }
@media (hover: hover) and (min-width: 768px) {
	.included__item { transition: opacity .3s var(--ease); }
	.included__list:hover .included__item:not(:hover) { opacity: .48; }
}

/* ---------- calculator ---------- */
.quiz { display: grid; grid-template-columns: minmax(0, 1189fr) minmax(0, 571fr); border-radius: var(--radius); overflow: hidden; }
.quiz__main { position: relative; display: flex; flex-direction: column; padding: 56px; background: var(--c-soft); min-height: 800px; }
.quiz__progress { position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--c-border); }
.quiz__progress span { display: block; height: 100%; width: 20%; background: var(--c-primary); transition: width .4s var(--ease); }
.quiz__step { margin: 0; padding: 0; border: 0; min-width: 0; flex: 1; }
.quiz__question { display: block; padding: 0; font-family: var(--f-head); font-weight: 500; font-size: var(--fs-h3); line-height: 1.3; max-width: 900px; }
.quiz__hint { margin-top: 16px; font-size: 16px; line-height: 1.5; max-width: 900px; }
.quiz__options { display: grid; gap: 16px; margin-top: 32px; max-height: 520px; overflow-y: auto; padding-right: 24px; }
/* Figma 1625:4338: 4px #080e1b capsule thumb, no track */
.quiz__options::-webkit-scrollbar { width: 4px; }
.quiz__options::-webkit-scrollbar-track { background: transparent; }
.quiz__options::-webkit-scrollbar-thumb { border-radius: 33px; background: var(--c-text); }
@supports not selector(::-webkit-scrollbar) { .quiz__options { scrollbar-width: thin; scrollbar-color: var(--c-text) transparent; } }
.quiz-option { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 20px; border-radius: 8px; border: 1px solid var(--c-border); background: var(--c-white); cursor: pointer; transition: border-color .2s; }
.quiz-option input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-option:has(input:checked) { border-color: var(--c-primary); }
.quiz-option:has(input:focus-visible) { outline: 2px solid var(--c-primary); outline-offset: 2px; }
/* Radio «Одиночный» 1387:11861: 16px circle in a 24px frame; off: 1px #080e1b, on: white with a 4px #372ec0 ring */
.quiz-option__radio { flex: none; display: grid; place-items: center; width: 24px; height: 24px; }
.quiz-option__radio::after { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--c-text); background: transparent; transition: border-color .2s, border-width .2s, background-color .2s; }
.quiz-option input:checked ~ .quiz-option__radio::after { border: 4px solid var(--c-primary); background: var(--c-white); }
.quiz-option__body { flex: 1; min-width: 0; display: grid; gap: 8px; }
.quiz-option__title { font-weight: 700; font-size: clamp(18px, 1.0417vw, 20px); line-height: 1.21; }
.quiz-option__text { font-weight: 400; font-size: 16px; line-height: 1.5; color: var(--c-text); }
.quiz-option__price { flex: none; padding: 4px 6px; border-radius: 4px; background: var(--c-primary); color: var(--c-white); font-size: 14px; line-height: 1.28; white-space: nowrap; }
.quiz-option__info { display: none; }
.quiz__nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; }
/* ≥1024: the card fits the window under the header (800 as in Figma when there is room); options scroll inside, the nav row stays at the bottom */
@media (min-width: 1024px) {
	.quiz__main { height: min(800px, calc(100svh - var(--header-h, 96px) - 48px)); min-height: 0; }
	.quiz__step:not([hidden]) { display: flex; flex-direction: column; min-height: 0; }
	.quiz__options { flex: 1 1 auto; min-height: 0; max-height: none; }
	.quiz__step--finish { overflow-y: auto; }
}
.quiz__counter { font-weight: 700; font-size: 20px; line-height: 1.21; }
.quiz__buttons { display: flex; gap: 16px; }
.quiz__back { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--c-primary); background: transparent; color: var(--c-primary); transition: background-color .2s, color .2s; }
.quiz__back .icon { width: 19px; height: 18px; transform: rotate(180deg); }
.quiz__back:hover, .quiz__back:active { background: var(--c-primary); color: var(--c-white); }
.quiz__next { min-height: 56px; gap: 10px; }
.quiz__next .icon { width: 19px; height: 18px; }
.quiz__next:disabled { opacity: .45; pointer-events: none; }
.quiz__side { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 16px; padding: 56px; color: var(--c-white); background: linear-gradient(76deg, var(--c-navy) 48%, #322ea4 90%); }
/* Figma handles (0,1)→(.87,0) live in the frame's normalized space; 76deg/48–90% is the pixel-space equivalent (fit to the render, ≤3/255) */
.quiz__side::before { --glow-w: 459; --glow-r: calc(-327 * var(--u)); --glow-t: calc(-412 * var(--u)); }
.quiz__estimate, .quiz__support { padding: 32px; border-radius: 8px; border: 1px solid var(--c-muted); background: rgba(100, 165, 255, .08); }
.quiz__estimate-label { display: block; font-weight: 700; text-transform: uppercase; color: #d4d5ea; }
.quiz__estimate-price { display: block; margin-top: 8px; font-family: var(--f-head); font-weight: 500; font-size: clamp(22px, 1.46vw, 28px); line-height: 1.3; }
.quiz__estimate-list { display: grid; gap: 16px; margin-top: 16px; font-weight: 400; font-size: 16px; line-height: 1.5; color: var(--c-white); }
.quiz__estimate-list div { display: flex; gap: 6px; }
.quiz__estimate-list dd { color: var(--c-white); }
.quiz__support b { display: block; font-weight: 700; font-size: 20px; line-height: 1.21; }
.quiz__support p { margin-top: 12px; font-weight: 400; font-size: 16px; line-height: 1.5; }
.quiz__contacts { margin-top: auto; padding-top: 32px; }
.quiz__contacts b { display: block; font-weight: 700; font-size: 20px; line-height: 1.21; }
.quiz__contacts p { margin-top: 8px; font-weight: 400; font-size: 16px; line-height: 1.5; }
.quiz__contacts .messengers { margin-top: 16px; }
.quiz__contacts .messenger { color: var(--c-white); }
@media (hover: hover) { .quiz__contacts .messenger:hover { color: var(--c-soft); } }
.quiz__finish { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 412px); gap: 24px; margin-top: 32px; align-items: start; }
.quiz-summary { padding: 16px 24px 24px; border-radius: 8px; background: var(--c-white); }
.quiz-summary__list li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--c-border); }
.quiz-summary__num { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-soft); font-weight: 700; font-size: 14px; }
.quiz-summary__body { flex: 1; min-width: 0; }
.quiz-summary__body small { display: block; font-size: 12px; color: var(--c-muted); }
.quiz-summary__body span { font-size: 16px; line-height: 1.4; }
.quiz-summary__list b { flex: none; font-weight: 700; white-space: nowrap; }
.quiz-summary__total { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 16px; }
.quiz-summary__total > * { display: block; width: 100%; }
.quiz-summary__total div span { display: block; font-size: 12px; color: var(--c-muted); }
.quiz-summary__total b { font-family: var(--f-head); font-weight: 500; font-size: clamp(24px, 1.67vw, 32px); color: var(--c-primary); }
.quiz__form-card { padding: 24px; border-radius: 8px; background: var(--c-navy); color: var(--c-white); }
.quiz__form-title { font-family: var(--f-head); font-weight: 500; font-size: 22px; line-height: 1.3; margin-bottom: 24px; }
.quiz__form-card .lead-form { gap: 16px; }
.quiz__form-card .lead-form__fields { gap: 12px; }

/* ---------- footer ---------- */
.footer { position: relative; overflow: hidden; isolation: isolate; padding-top: 120px; }
.footer__glow { --glow-l: calc(50% - 412px); --glow-b: -815px; --glow-o: .45; --glow-blur: var(--blur-glow-lg); --glow-g: var(--glow-g-giant); }
.footer__top { display: flex; justify-content: space-between; gap: 40px; }
.footer__logo { display: block; font-weight: 700; font-size: clamp(36px, 2.92vw, 56px); line-height: 1.2; color: var(--c-logo); }
.footer__address { max-width: 421px; margin-top: 24px; font-family: var(--f-ui); font-weight: 400; font-size: 16px; line-height: 1.5; }
.footer__nav ul { display: grid; gap: 12px; }
.footer__nav a { font-family: var(--f-ui); font-weight: 400; font-size: 16px; line-height: 1.5; color: var(--c-text); transition: color .2s; }
.footer__nav a:hover { color: var(--c-primary); }
.footer__contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; font-family: var(--f-ui); font-weight: 400; font-size: 16px; line-height: 1.5; }
.footer__contacts > a:hover { color: var(--c-primary); }
.footer__contacts .messengers { gap: 16px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 160px; padding-top: 40px; border-top: 1px solid var(--c-border); font-family: var(--f-ui); font-weight: 400; font-size: 14px; line-height: 1.44; color: var(--c-muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a:hover, .footer__cookie-btn:hover { color: var(--c-primary); }
.footer__cookie-btn { font-size: inherit; color: inherit; }
/* 385/462 block at x=54, top 609 from the footer top; the footer (876) clips it from below */
.footer__name { margin-top: 129px; margin-bottom: -.5065em; padding-left: 2.8125vw; font-family: var(--f-body); font-weight: 800; font-size: clamp(80px, 20.053vw, 385px); line-height: 1.2; letter-spacing: 0; color: var(--c-navy-2); white-space: nowrap; user-select: none; }

/* ---------- modals & cookie ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal__overlay { position: absolute; inset: 0; background: rgba(8, 14, 27, .56); animation: fade .25s var(--ease); }
.modal__dialog { position: relative; width: min(800px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 56px 48px 48px; border-radius: var(--radius-lg); background: #f7f8fa; box-shadow: 0 24px 80px rgba(8, 14, 27, .2); animation: pop .3s var(--ease); }
.modal__dialog--sm { width: min(628px, 100%); }
.modal__dialog--form { width: min(640px, 100%); background: var(--c-navy-2); color: var(--c-white); }
.modal__dialog--form .modal__close { color: var(--c-white); }
.modal__dialog--form .modal__close:hover { background: rgba(255, 255, 255, .12); }
.modal__dialog--form .modal__text { margin: 16px 0 32px; color: rgba(255, 255, 255, .8); }
.modal__dialog--form .lead-form__tariff { display: none; }
.modal__eyebrow { margin-bottom: 8px; font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: #d4d5ea; }
.modal__close { position: absolute; top: 24px; right: 24px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; transition: background-color .2s; }
.modal__close:hover { background: var(--c-border); }
.modal__close .icon { width: 24px; height: 24px; }
.modal__title { padding-right: 32px; font-family: var(--f-head); font-weight: 500; font-size: clamp(24px, 1.67vw, 32px); line-height: 1.3; }
.modal__text { margin: 24px 0 40px; font-size: 16px; line-height: 1.5; color: var(--c-text-2); }
.modal__text--sm { font-size: 14px; line-height: 1.6; }
.modal__text a { color: var(--c-primary); text-decoration: underline; }
.cookie-settings { display: grid; gap: 32px; }
.cookie-settings__item { display: flex; gap: 8px; cursor: pointer; }
.cookie-settings__item .checkbox { margin-top: 2px; }
.cookie-settings__item .checkbox__box { border-color: var(--c-muted); background: var(--c-white); }
.cookie-settings__item .checkbox:hover .checkbox__box { border-color: var(--c-primary); }
.cookie-settings__item .checkbox input:checked + .checkbox__box { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white); }
.cookie-settings__item .checkbox input:disabled + .checkbox__box { opacity: .6; }
.cookie-settings__title { display: block; font-weight: 600; font-size: 18px; line-height: 1.5; }
.cookie-settings__text { display: block; margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--c-text-2); }
.cookie-settings .btn { justify-self: start; margin-top: 8px; }
.cookie {
	position: fixed; right: 24px; bottom: 24px; z-index: 90; display: grid; gap: 24px; width: min(540px, calc(100vw - 32px));
	padding: 24px; border-radius: 16px; background: var(--c-white); box-shadow: 0 8px 40px rgba(8, 14, 27, .14); animation: pop .35s var(--ease);
}
.cookie__text { display: grid; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--c-text-2); }
.cookie__text a { color: var(--c-primary); text-decoration: underline; }
.cookie__actions { display: flex; gap: 16px; }
.cookie__pic { position: absolute; right: 24px; bottom: 16px; width: 72px; height: auto; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
body.has-modal { overflow: hidden; }

/* ---------- plain pages ---------- */
.page-content .entry__title { margin-bottom: 40px; }
.entry__content { font-size: 18px; line-height: 1.7; color: var(--c-text-2); }
.entry__content > * + * { margin-top: 1em; }
.entry__content h2, .entry__content h3 { font-family: var(--f-head); font-weight: 500; color: var(--c-text); margin-top: 1.6em; line-height: 1.25; }
.entry__content a { color: var(--c-primary); text-decoration: underline; }
.entry__content ul { list-style: disc; padding-left: 1.4em; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1440px) {
	.hero__inner { min-height: 0; }
	.stats__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.pricing__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1440px) {
	.quiz__finish { grid-template-columns: 1fr; }
}

@media (max-width: 1200px) {
	.quiz { grid-template-columns: 1fr; }
	.quiz__main { min-height: 0; }
	.quiz__side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
	.quiz__contacts { margin-top: 0; padding-top: 0; }
	.included__item { grid-template-columns: 1fr; gap: 12px; }
	.header__phone { display: none; }
	.hero__text { padding-right: 0; }
	.benefits__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.benefit + .benefit::before { display: none; }
	.benefit:not(.benefit--accent) { border: 1px solid var(--c-border); border-radius: var(--radius); }
	.cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.compare__inner, .faq__inner, .case-study__inner { grid-template-columns: 1fr; gap: 40px; }
	.compare__intro, .faq__intro { position: static; padding-right: 0; max-width: 760px; }
	.pricing__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pricing__grid--3 .plan:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.application__inner { grid-template-columns: 1fr; }
	.help-bar { flex-direction: column; align-items: flex-start; }
	.case__logo { width: 140px; height: 140px; }
}

@media (max-width: 1024px) {
	html { scroll-padding-top: 80px; }
	.hero__text { max-width: none; }
	.header__inner { min-height: 72px; }
	.header__nav { display: none; }
	.hero__inner { grid-template-columns: 1fr; gap: 32px; }
	.hero__media { justify-self: center; max-width: 440px; }
	.section-head { flex-direction: column; align-items: flex-start; }
	.section-head--center { flex-direction: row; align-items: flex-end; }
	.stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
	.banner__inner { flex-direction: column; align-items: flex-start; }
	.banner:has(.banner__text) .banner__inner { align-items: flex-end; padding-block: 72px; }
	.banner:has(.banner__text) .banner__bg::after { background: linear-gradient(180deg, rgba(8, 14, 27, 0), rgba(8, 14, 27, .9)); }
	.case { flex-direction: column; min-height: 0; }
	.case__side { flex: none; flex-direction: row; align-items: flex-start; flex-wrap: wrap; }
	.case__facts { grid-template-columns: repeat(2, minmax(0, 200px)); }
	.case__logo { display: none; }
	.review { flex-direction: column; min-height: 0; }
	.review__person { flex: none; flex-direction: row; align-items: flex-start; padding-bottom: 0; }
	.review__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer { padding-top: 80px; }
	.footer__top { flex-direction: column; }
	.footer__bottom { flex-direction: column; margin-top: 64px; }
	.footer__name { margin-top: 64px; }
}

@media (max-width: 767px) {
	/* 6: buttons in the blocks span the content width */
	:is(.hero__actions, .section-head__actions, .banner__actions, .card, .lead-form, .application, .help-bar__actions) .btn { width: 100%; justify-self: stretch; }
	.section-head__actions .btn { flex: 1 1 100%; }
	.banner__actions { width: 100%; }
	/* 11: reviews — swipe + dots only */
	.reviews .slider-nav { display: none; }
	/* 13: compare cards edge to edge, 40% tighter around the divider */
	.compare__cards { margin-inline: calc(-1 * var(--gutter)); }
	.compare__card { border-radius: 0; }
	.compare__card--bad { border-radius: 0; }
	.compare__list { margin-top: 19px; padding-top: 19px; }
	/* 21, 22: stacked tabs as pills on a soft card, no inner scrollbars */
	.tabs { padding: 6px; gap: 4px; border-radius: 24px; background: var(--c-soft); }
	.tabs__btn { border-radius: 1000px; font-size: 14px; }
	.tabs__indicator { border-radius: 1000px; }
	:is(.problems__grid, .cards__grid, .pricing__grid)[data-slider-track] { overflow-y: hidden; }
	/* 25: «Что входит» accordion */
	.included__toggle { pointer-events: auto; cursor: pointer; gap: 12px; }
	.included__icon { display: grid; }
	.included__name { padding-left: 0; }
	.included__name::before { display: none; }
	.included__item { gap: 0; padding: 20px 0; }
	.included__item .included__text { padding: 16px 0 0; font-size: 15px; }
	.included__toggle { font-family: var(--f-head); font-size: 17px; line-height: 1.3334; }
	.included__item .included__icon { width: 28px; height: 28px; }
	.included__item:not(.is-open) .included__icon { background: var(--c-border); color: var(--c-text); }
	.included__item.is-open .included__icon { background: var(--c-navy); color: var(--c-white); }
	.included__icon .icon { transition: transform .3s var(--ease); }
	.included__item.is-open .included__icon .icon { transform: rotate(45deg); }
	/* 26: «Услуга» across the card */
	.case__side { flex-direction: column; align-items: stretch; }
	.case__facts { width: 100%; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
	/* 28: cost — label left, price right */
	.case__meta-item--accent { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 18px; font-weight: 700; }
	.case__meta-item--accent span { font-size: 14px; font-weight: 500; opacity: 1; }
	/* 32: stats keep the usual dark background */
	.glow--stats { display: none; }
	/* 33 */
	.case-study__image { display: none; }
	:is(.problems__grid, .cards__grid, .pricing__grid)[data-slider-track] {
		display: flex; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-left: var(--gutter);
		overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
	}
	:is(.problems__grid, .cards__grid, .pricing__grid)[data-slider-track]::-webkit-scrollbar { display: none; }
	:is(.problems__grid, .cards__grid, .pricing__grid)[data-slider-track] > * { flex: 0 0 min(86%, 360px); scroll-snap-align: start; }
	.problems__nav { display: none; }
	.problem { display: flex; flex-direction: column; }
	.problem__arrow { align-self: stretch; margin-top: auto; padding-top: 32px; }
	.plan { display: flex; flex-direction: column; }
	.plan__price { align-self: flex-start; margin-top: auto; }
	.card { min-height: 320px; }
	/* 12: tabs stacked */
	.tabs { flex-direction: column; overflow: visible; border-radius: 16px; }
	.tabs__btn { flex: none; width: 100%; }
	.tabs__indicator { border-radius: 12px; }
	.tabs:not(.has-indicator) .tabs__btn { border-radius: 12px; }
	/* 10: messengers live in the header on phones; the header button becomes a call icon */
	:is(.hero__actions, .section-head__actions, .banner__actions, .contact-row, .help-bar__actions) .messengers { display: none; }
	.header .btn { display: none; }
	.header__call { display: grid; }
	/* 14: smaller buttons */
	.btn { min-height: 48px; padding: 12px 24px; font-size: 14px; line-height: 18px; }
	.btn--compact { min-height: 44px; }
	/* 15: phone button in the text blocks — full width, light */
	.contact-row .btn--outline { width: 100%; min-height: 48px; }
	/* 16: case logo stays on phones */
	.case__head { align-items: flex-start; }
	.case__logo { display: block; width: 72px; height: 72px; border-radius: 8px; }
	.compare__vs--light { display: none; }
	.banner:has(.banner__text) .banner__inner { align-items: flex-start; }
	.problems__grid { gap: 12px; }
	.problem { padding: 24px; }
	.problem__arrow { margin-top: 32px; }
	.problem:nth-child(n) { background: var(--c-white); border-color: var(--c-border); }
	.problem:nth-child(odd) { background: var(--c-soft); border-color: var(--c-soft); }
	.problem.is-off { display: flex; }
	.included__title { margin-bottom: 32px; }
	/* 11: the quiz keeps one height on every step; options (and the last step) scroll inside, the nav row stays at the bottom */
	.quiz__main { height: min(620px, calc(100svh - var(--header-h, 72px) - 24px)); min-height: 0; padding: 32px 16px 0; }
	.quiz__step:not([hidden]) { display: flex; flex-direction: column; min-height: 0; }
	.quiz__options { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; margin-top: 24px; gap: 12px; }
	.quiz__step--finish { overflow-y: auto; overscroll-behavior: contain; }
	/* Compact options: title + price + «i»; the description opens under them across the card, up to the «i» (4) */
	.quiz-option { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto; align-items: start; column-gap: 10px; row-gap: 8px; padding: 14px 12px; }
	.quiz-option__body { display: contents; }
	.quiz-option__radio { grid-column: 1; grid-row: 1; }
	.quiz-option__title { grid-column: 2; grid-row: 1; font-size: 16px; padding-top: 2px; }
	.quiz-option__price { grid-column: 3; grid-row: 1; margin-top: 1px; font-size: 13px; }
	.quiz-option__info { grid-column: 4; grid-row: 1; }
	.quiz-option__text { grid-column: 2 / -1; grid-row: 2; display: none; font-size: 14px; line-height: 1.5; }
	.quiz-option.is-info .quiz-option__text { display: block; }
	/* 5: «i» stays visible; open = the site's grey */
	.quiz-option__info { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--c-muted); color: var(--c-text-2); font: 700 13px/1 var(--f-ui); transition: background-color .2s, color .2s, border-color .2s; }
	.quiz-option.is-info .quiz-option__info { border-color: var(--c-border); background: var(--c-border); color: var(--c-text); }
	.quiz__nav { position: static; flex: none; margin: 16px -16px 0; padding: 12px 16px; background: var(--c-soft); box-shadow: 0 -1px 0 var(--c-border); }
	.quiz__counter { font-size: 16px; }
	.quiz__side { grid-template-columns: 1fr; padding: 24px 16px; }
	.quiz__estimate, .quiz__support { padding: 20px; }
	.quiz-summary { padding: 8px 16px 16px; }
	.quiz-summary__list li { gap: 10px; }
	body { font-size: 15px; }

	.header__messengers { gap: 12px; }
	.header__messengers .messenger, .header__messengers .messenger .icon { width: 28px; height: 28px; }
	.header__actions { gap: 12px; }
	.logo { font-size: 28px; }
	.btn { white-space: normal; }
	.hero__actions .btn { flex: 1 1 auto; }
	.hero__media--wide { justify-self: stretch; max-width: none; }
	.benefits { padding-top: 16px; }
	.benefits__list { grid-template-columns: 1fr; gap: 12px; }
	.benefit { padding: 24px; }
	.card { padding: 24px; }
	.card--outline .card__dot { right: 24px; bottom: 24px; }
	.section-head__actions { width: 100%; justify-content: space-between; }
	.compare__cards { grid-template-columns: 1fr; }
	.compare__card { padding: 28px 24px; }
	.compare__card--good { min-height: 0; }
	.compare__card--bad { min-height: 0; margin: -16px 0 0; padding-top: 44px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
	.compare__vs { font-size: 46vw; left: auto; right: -4vw; top: auto; bottom: -14vw; }

	.plan { padding: 24px; gap: 24px; }
	.tabs { border-radius: 16px; }
	.tabs__btn { min-height: 48px; padding: 10px 16px; font-size: 14px; }
	.help-bar { padding: 24px; }
	.help-bar__actions { flex-wrap: wrap; }
	.stats__list { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
	.stat__text { font-size: 14px; }
	.faq__list { gap: 24px; }
	.faq-item { padding-bottom: 24px; }
	.faq-item__q button { gap: 12px; font-size: 17px; }
	.faq-item__icon { width: 28px; height: 28px; }
	.faq-item__body { padding-left: 0; }
	.link-card__icon { width: 44px; height: 44px; }
	.giant__title { white-space: normal; line-height: 1; }
	.slider { margin-top: 24px; }
	/* 9: space under the giant title = the section's top padding */
	.giant .slider { margin-top: 56px; }
	.slider__track { padding-left: var(--gutter); scroll-padding-left: var(--gutter); padding-right: var(--gutter); gap: 12px; }
	/* Process Section Mobile 837:4688: 300x300 cards 24px apart, section 56 / 56 */
	.giant.process { padding-block: 56px; }
	.process__track { gap: 24px; }
	.step { width: 300px; min-height: 300px; padding: 24px; gap: 24px; }
	/* Indicators 818:4465 under the swipe sliders */
	.slider-dots { display: flex; justify-content: center; margin-top: 16px; }
	.slider-dots button { display: grid; place-items: center; width: 20px; height: 10px; }
	.slider-dots button::before { content: ''; width: 16px; height: 2px; border-radius: 100px; background: var(--c-border); transition: width .2s, background-color .2s; }
	.slider-dots button[aria-current="true"] { width: 28px; }
	.slider-dots button[aria-current="true"]::before { width: 24px; background: var(--c-primary); }
	/* dark sections: NO DESIGN (the component has only the light variant), to be confirmed with the owner */
	.section--dark .slider-dots button::before { background: rgba(255, 255, 255, .4); }
	.section--dark .slider-dots button[aria-current="true"]::before { background: var(--c-white); }
	.step__title { font-size: 20px; }
	.case { width: calc(100vw - 48px); padding: 12px; }
	.case__side { padding: 16px; }
	.case__main { padding: 8px; gap: 24px; }
	.cases__track { align-items: stretch; }
	.case__text, .case__meta { margin-top: 0; }
	.case__text { font-size: 15px; }
	.case__meta { flex-wrap: wrap; gap: 12px; }
	.case__meta-item { flex: 1 1 40%; padding: 4px 12px; }
	.case__meta-item--accent { flex: 1 1 100%; margin: 0; }
	.case-study__image { margin-top: 32px; }
	.review { width: calc(100vw - 48px); padding: 24px; border-radius: 24px; }
	.review__facts { gap: 16px; }
	.review__facts dt { font-size: 14px; }
	.review__facts dd { font-size: 14px; }
	.reviews .section-head { margin-bottom: 32px; }
	/* 9: description → buttons = heading → description (24px) */
	.section-head { gap: 24px; }
	.hero__actions, .compare__intro .contact-row, .faq__intro .contact-row { margin-top: 24px; }
	.banner__inner { gap: 24px; }
	/* 10: cost plate a bit taller */
	.case__meta-item--accent { padding-block: 16px; }
	.slider-nav__btn { width: 48px; height: 48px; }
	.logos__item { width: 180px; height: 110px; }
	.logos__item img { max-width: 120px; }
	.application { padding-block: 64px; }
	.lead-form .btn { justify-self: stretch; }
	.footer__name { padding-left: 0; text-align: center; font-size: 19.5vw; }
	/* 44×44 tap targets for the 32px messenger icons, ≥8px apart (header icons are hidden ≤420px) */
	.messenger { position: relative; }
	.messenger:not(.header__messengers *)::after { content: ''; position: absolute; inset: -6px; }
	.help-bar__actions .messengers, .footer__contacts .messengers { gap: 20px; }
	/* ≥44px tap height for phone/e-mail and footer links, text size unchanged */
	.help-bar__phone { display: inline-block; padding-block: 11px; }
	.footer__contacts { gap: 4px; }
	.footer__contacts > a { padding-block: 10px; }
	.footer__links { row-gap: 0; }
	.footer__links a, .footer__cookie-btn { display: inline-block; padding-block: 12px; }
	.modal__dialog { padding: 48px 20px 24px; }
	.cookie { right: 8px; bottom: 8px; width: calc(100vw - 16px); padding: 20px; gap: 16px; }
	.cookie__text { padding-right: 0; font-size: 14px; gap: 10px; }
	.cookie__pic { display: none; }
	.cookie__actions .btn { flex: 1; padding-inline: 16px; }
}

@media (max-width: 420px) {
	.review__person { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* WordPress admin bar for logged-in editors */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 0; } }
