/* ==========================================================================
   SiteByMe — стили сайта, версия 2 «молочная»
   Референсы владелицы: calendly.com, kobbe.io, b-egg.farm.
   Тёплый молочный фон, тёмно-синий текст и главная кнопка, насыщенный синий —
   акцент, пастельные панели под скриншотами, жёлтый — для бегущей строки и
   отметок, зелёный и коралловый — точечно. Тёмно-синие блоки — только в финале.
   ========================================================================== */

:root {
	--c-paper: #fbf9f4;
	--c-paper-2: #f3efe6;
	--c-card: #ffffff;
	--c-ink: #0b1b2e;
	--c-ink-2: #22324a;
	--c-muted: #5b6672;
	--c-line: rgba(11, 27, 46, 0.1);
	--c-line-strong: rgba(11, 27, 46, 0.2);
	--c-blue: #1463ff;
	--c-blue-hover: #0a4fd6;
	--c-blue-soft: #e3edff;
	--c-yellow: #f5b50c;
	--c-green: #138a4f;
	--c-green-bright: #3bd18a;
	--c-coral: #e0442f;
	--c-coral-bright: #ff7a66;

	--c-navy: #0b1b2e;
	--c-navy-2: #13263f;
	--c-on-navy: #f2f4f7;
	--c-on-navy-muted: #a9b4c2;

	--g-sky: linear-gradient(160deg, #cfe2ff 0%, #e6dcff 55%, #f7e8f1 100%);
	--g-mint: linear-gradient(160deg, #d3f2e2 0%, #d9e8ff 60%, #eef2ff 100%);
	--g-peach: linear-gradient(160deg, #ffe6c7 0%, #ffd9d2 55%, #efdcff 100%);
	--g-lilac: linear-gradient(160deg, #e2dbff 0%, #d4e6ff 50%, #d6f3ea 100%);

	--f-sans: Onest, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
	--s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 88px; --s-10: 120px;
	--section: clamp(72px, 10vw, 128px);
	--gutter: clamp(16px, 4vw, 40px);
	--wrap: 1320px;

	--r-sm: 10px;
	--r-md: 16px;
	--r-lg: 28px;
	--r-xl: 40px;
	--r-pill: 999px;

	--sh-sm: 0 1px 2px rgba(11, 27, 46, 0.06), 0 2px 8px rgba(11, 27, 46, 0.05);
	--sh-md: 0 18px 40px -12px rgba(11, 27, 46, 0.18);
	--sh-lg: 0 40px 80px -24px rgba(11, 27, 46, 0.28);

	--neo: -8px -8px 18px rgba(255, 255, 255, 0.9), 10px 10px 24px rgba(120, 104, 70, 0.14);
	--neo-sm: -4px -4px 10px rgba(255, 255, 255, 0.95), 5px 5px 14px rgba(120, 104, 70, 0.16);
	--neo-in: inset 4px 4px 10px rgba(120, 104, 70, 0.16), inset -4px -4px 10px rgba(255, 255, 255, 0.95);

	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--t: 0.2s;
}

/* ---------- База ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0; background: var(--c-paper); color: var(--c-ink);
	font-family: var(--f-sans); font-size: 17px; line-height: 1.6; font-weight: 400;
	overflow-x: clip; hyphens: none; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-blue-hover); }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; color: inherit; }
h1 { font-size: clamp(42px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.04em; }
h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.035em; }
h3 { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.25; letter-spacing: -0.015em; }
p { margin: 0; }
p, li, dd, summary { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a[href^="tel:"]:not(.sbm-btn) { white-space: nowrap; }

:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 3px; border-radius: 6px; }
.sbm-ink :focus-visible { outline-color: var(--c-yellow); }
::selection { background: var(--c-yellow); color: var(--c-ink); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sbm-skip { position: absolute; left: var(--s-4); top: -60px; z-index: 1000; padding: var(--s-2) var(--s-4); background: var(--c-ink); color: #fff; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.sbm-skip:focus { top: var(--s-4); color: #fff; }
.sbm-mono { font-family: var(--f-mono); }
.sbm-ico { width: 1.25em; height: 1.25em; flex: none; }

.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * { margin-block: 0 !important; }
.sbm-main, .sbm-main .wp-block-post-content { margin: 0 !important; max-width: none !important; padding: 0 !important; }
.sbm-main .wp-block-post-content > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; margin-block: 0 !important; }
.sbm-part { margin: 0 !important; }
.is-layout-flow > * + * { margin-block-start: 0; }

.sbm-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.sbm-paper { background: var(--c-paper); color: var(--c-ink); }
.sbm-light { background: var(--c-paper-2); color: var(--c-ink); }
.sbm-section { padding-block: var(--section); position: relative; }
.sbm-section--tight { padding-top: var(--s-6); }

.sbm-ink { background: var(--c-paper); color: var(--c-on-navy); padding-inline: clamp(8px, 1.4vw, 20px); }
.sbm-ink > .sbm-wrap { position: relative; background: var(--c-navy); border-radius: var(--r-xl); padding-block: var(--section); padding-inline: clamp(24px, 5vw, 72px); max-width: calc(var(--wrap) + 144px); }
.sbm-ink a:not(.sbm-btn) { color: #fff; }

.sbm-lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--c-muted); max-width: 60ch; }
.sbm-ink .sbm-lead { color: var(--c-on-navy-muted); }

/* ---------- Заголовок раздела ---------- */

.sbm-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-8); max-width: 760px; }
.sbm-head p { color: var(--c-muted); font-size: 18px; max-width: 58ch; }
.sbm-ink .sbm-head p { color: var(--c-on-navy-muted); }
.sbm-head--row { max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: var(--s-5); }
.sbm-head--row > div { display: grid; gap: var(--s-4); max-width: 760px; }
@media (min-width: 1041px) {
	.sbm-section:not(.sbm-why) > .sbm-wrap:not(.sbm-faq) > .sbm-head:not(.sbm-head--row) {
		max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); column-gap: var(--s-8); align-items: end;
	}
	.sbm-section:not(.sbm-why) > .sbm-wrap:not(.sbm-faq) > .sbm-head:not(.sbm-head--row) p { padding-bottom: 8px; }
}
@media (max-width: 720px) {
	.sbm-head { margin-bottom: var(--s-7); }
	.sbm-head--row { grid-template-columns: 1fr; align-items: start; }
	.sbm-head--row > .sbm-btn { justify-self: start; }
}

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

.sbm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
	min-height: 56px; padding: 0 var(--s-6); border-radius: var(--r-pill);
	font: 600 17px/1.1 var(--f-sans); text-decoration: none; white-space: nowrap;
	border: 1.5px solid transparent; cursor: pointer;
	transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.sbm-btn .sbm-ico { width: 20px; height: 20px; }
.sbm-btn--primary { background: var(--c-ink); color: #fff; box-shadow: 0 10px 24px -10px rgba(11, 27, 46, 0.55); }
.sbm-btn--primary:hover { background: var(--c-blue); color: #fff; box-shadow: 0 12px 28px -10px rgba(20, 99, 255, 0.6); }
.sbm-btn--ghost { background: var(--c-card); color: var(--c-ink); border-color: var(--c-line-strong); }
.sbm-btn--ghost:hover { color: var(--c-ink); border-color: var(--c-ink); }
.sbm-btn--ghost-dark { background: var(--c-card); color: var(--c-ink); border-color: var(--c-line-strong); }
.sbm-btn--ghost-dark:hover { border-color: var(--c-ink); color: var(--c-ink); }
.sbm-btn--sm { min-height: 44px; padding: 0 var(--s-5); font-size: 15px; }
.sbm-ink .sbm-btn--primary { background: var(--c-yellow); color: var(--c-ink); box-shadow: none; }
.sbm-ink .sbm-btn--primary:hover { background: #ffc83d; color: var(--c-ink); }
.sbm-ink .sbm-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.sbm-ink .sbm-btn--ghost:hover { border-color: #fff; color: #fff; }

.sbm-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.sbm-cta--stack { flex-direction: column; }
.sbm-cta--stack .sbm-btn { width: 100%; }
@media (max-width: 480px) { .sbm-cta .sbm-btn { width: 100%; } }

.sbm-badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--r-pill); font: 600 12px/22px var(--f-mono); color: var(--c-ink); background: #ffe7a6; }

.sbm-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c-green-bright); box-shadow: 0 0 0 4px rgba(59, 209, 138, 0.2); }
.sbm-motion .sbm-dot { animation: sbm-pulse 2.4s var(--ease) 3; }
@keyframes sbm-pulse { 50% { box-shadow: 0 0 0 8px rgba(59, 209, 138, 0); } }

/* ---------- Шапка ---------- */

.sbm-part:has(.sbm-header) { position: sticky; top: 0; z-index: 100; }
.admin-bar .sbm-part:has(.sbm-header) { top: 32px; }
@media (max-width: 782px) { .admin-bar .sbm-part:has(.sbm-header) { top: 46px; } }
.sbm-header {
	background: rgba(251, 249, 244, 0.82); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid transparent; transition: border-color var(--t) var(--ease);
}
.sbm-header.is-scrolled { border-color: var(--c-line); }
.sbm-header__row { display: flex; align-items: center; gap: var(--s-6); min-height: 76px; }

.sbm-logo { display: inline-flex; align-items: center; gap: var(--s-3); color: var(--c-ink); text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -0.03em; flex: none; }
.sbm-logo:hover { color: var(--c-ink); }
.sbm-logo img { width: 36px; height: 36px; border-radius: 10px; }
.sbm-logo b { color: var(--c-blue); font-weight: 700; }

.sbm-nav { margin-left: auto; }
.sbm-nav ul { display: flex; gap: var(--s-1); }
.sbm-nav a { display: block; padding: var(--s-2) var(--s-3); border-radius: var(--r-pill); color: var(--c-ink-2); text-decoration: none; font-size: 16px; font-weight: 500; transition: color var(--t) var(--ease), background-color var(--t) var(--ease); }
.sbm-nav a:hover, .sbm-nav a[aria-current="page"] { color: var(--c-ink); background: rgba(11, 27, 46, 0.06); }
.sbm-nav__mobile-cta { display: none; }

.sbm-header__actions { display: flex; align-items: center; gap: var(--s-4); }
.sbm-header__phone { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--c-ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.sbm-header__phone:hover { color: var(--c-blue); }
.sbm-header__phone .sbm-ico { width: 18px; height: 18px; color: var(--c-green); }

.sbm-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--c-line-strong); border-radius: 50%; background: var(--c-card); cursor: pointer; position: relative; }
.sbm-burger span:not(.screen-reader-text) { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--c-ink); border-radius: 1px; }
.sbm-burger span:nth-child(1) { top: 17px; }
.sbm-burger span:nth-child(2) { top: 25px; }

@media (max-width: 1140px) {
	.sbm-header__phone span { display: none; }
	.sbm-header__phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--c-line-strong); border-radius: 50%; background: var(--c-card); }
}
@media (max-width: 980px) {
	.sbm-header__row { min-height: 64px; gap: var(--s-3); }
	.sbm-header__actions { margin-left: auto; gap: var(--s-2); }
	.sbm-header__actions > .sbm-btn { display: none; }
	.sbm-burger { display: block; }
	.sbm-nav { position: fixed; inset: 64px 0 0; margin: 0; padding: var(--s-6) var(--gutter); background: var(--c-paper); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity 0.2s var(--ease), visibility 0s linear 0.2s; }
	.admin-bar .sbm-nav { top: 110px; }
	.sbm-nav.is-open { opacity: 1; visibility: visible; transition: opacity 0.2s var(--ease); }
	.sbm-nav ul { flex-direction: column; gap: 0; }
	.sbm-nav a { font-size: 26px; font-weight: 600; color: var(--c-ink); padding: var(--s-4) 0; border-bottom: 1px solid var(--c-line); border-radius: 0; letter-spacing: -0.02em; }
	.sbm-nav__mobile-cta { display: block; margin-top: var(--s-6); }
	.sbm-burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
	.sbm-burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
	body.sbm-nav-open { overflow: hidden; }
}

/* ---------- Первый экран: по центру, 3D — в пастельной панели ниже ---------- */

.sbm-hero { position: relative; padding-block: clamp(48px, 7vw, 96px) var(--s-6); overflow: hidden; }
.sbm-hero__glow { display: none; }
.sbm-hero__grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 5vw, 64px); justify-items: center; }
.sbm-hero__text { display: grid; gap: var(--s-5); justify-items: center; text-align: center; max-width: 980px; }
.sbm-hero__kicker {
	display: inline-flex; align-items: center; gap: var(--s-3); padding: 6px 16px 6px 12px; border-radius: var(--r-pill);
	background: var(--c-card); border: 1px solid var(--c-line); color: var(--c-ink-2); font-size: 13px; box-shadow: var(--sh-sm);
}
.sbm-hero h1 { position: relative; z-index: 0; }
.sbm-hero h1 em { font-style: normal; position: relative; white-space: nowrap; color: var(--c-ink); }
.sbm-hero h1 em::after {
	content: ""; position: absolute; left: -0.06em; right: -0.06em; bottom: 0.06em; height: 0.34em; z-index: -1;
	background: var(--c-yellow); border-radius: 0.12em; transform-origin: left; opacity: 0.85;
}
.sbm-motion .sbm-hero h1 em::after { animation: sbm-underline 0.9s 0.35s var(--ease) both; }
@keyframes sbm-underline { from { transform: scaleX(0); } }
.sbm-hero .sbm-lead { margin-inline: auto; }
.sbm-hero .sbm-cta { justify-content: center; margin-top: var(--s-2); }
.sbm-hero__note { color: var(--c-muted); font-size: 15px; max-width: 52ch; }

.sbm-hero__scene {
	position: relative; width: 100%; aspect-ratio: 1320 / 600; max-height: 620px; min-height: 320px;
	border-radius: var(--r-xl); background: var(--g-sky); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.sbm-hero__scene::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(60% 50% at 20% 100%, rgba(211, 242, 226, 0.9), transparent 70%), radial-gradient(50% 60% at 90% 10%, rgba(255, 230, 199, 0.7), transparent 70%);
}
.sbm-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.sbm-hero__fallback { position: absolute; inset: 12% 18%; display: grid; place-items: center; }
.sbm-hero.has-3d .sbm-hero__fallback { display: none; }
.sbm-code { width: 100%; padding: var(--s-6); border-radius: var(--r-lg); background: var(--c-card); box-shadow: var(--sh-lg); font: 500 clamp(15px, 1.6vw, 19px)/1.8 var(--f-mono); color: var(--c-ink); }
.c-k { color: var(--c-coral); } .c-v { color: var(--c-ink); } .c-f { color: var(--c-blue); } .c-s { color: var(--c-green); } .c-n { color: var(--c-coral); }
@media (max-width: 700px) {
	.sbm-hero__scene { aspect-ratio: 4 / 3.4; border-radius: var(--r-lg); }
	.sbm-hero h1 em { white-space: normal; }
}

/* ---------- Факты: мягкие плитки ---------- */

.sbm-facts { padding-block: var(--s-7) var(--s-5); }
.sbm-facts__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.sbm-fact { display: grid; align-content: start; gap: var(--s-1); padding: var(--s-6); border-radius: var(--r-lg); background: var(--c-paper); box-shadow: var(--neo); }
.sbm-fact__num { font: 600 clamp(44px, 5vw, 68px)/1 var(--f-sans); letter-spacing: -0.05em; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.sbm-fact:nth-child(1) .sbm-fact__num { color: var(--c-blue); }
.sbm-fact__label { font-weight: 600; font-size: 18px; }
.sbm-fact__hint { font-size: 15px; color: var(--c-muted); }
@media (max-width: 900px) { .sbm-facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); } .sbm-fact { padding: var(--s-5); } }

/* ---------- Карточки кейсов: скриншот в пастельной панели ---------- */

.sbm-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7) var(--s-5); }
@media (max-width: 1040px) { .sbm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sbm-cards { grid-template-columns: 1fr; gap: var(--s-7); } }
.sbm-card[hidden] { display: none; }
.sbm-card__link { display: grid; gap: var(--s-4); color: inherit; text-decoration: none; height: 100%; align-content: start; }
.sbm-card__link:hover { color: inherit; }

.sbm-card .sbm-browser { padding: clamp(14px, 1.6vw, 22px) clamp(14px, 1.6vw, 22px) 0; border-radius: var(--r-lg); background: var(--g-sky); overflow: hidden; transition: box-shadow var(--t) var(--ease); }
.sbm-card:nth-child(4n + 2) .sbm-browser { background: var(--g-mint); }
.sbm-card:nth-child(4n + 3) .sbm-browser { background: var(--g-peach); }
.sbm-card:nth-child(4n + 4) .sbm-browser { background: var(--g-lilac); }
.sbm-browser__bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 var(--s-3); background: var(--c-card); border-bottom: 1px solid var(--c-line); }
.sbm-card .sbm-browser__bar { border-radius: 12px 12px 0 0; }
.sbm-browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d9d4c7; flex: none; }
.sbm-browser__bar span { margin-left: var(--s-3); flex: 1; min-width: 0; height: 20px; padding: 0 var(--s-3); border-radius: var(--r-pill); background: var(--c-paper-2); color: var(--c-muted); font: 500 12px/20px var(--f-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbm-browser__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-card); }
.sbm-card__thumb, .sbm-card__long { position: absolute; left: 0; top: 0; width: 100%; }
.sbm-card__thumb { height: 100%; object-fit: cover; object-position: top center; }
.sbm-card__long { height: auto; opacity: 0; transform: translateY(0); transition: opacity 0.3s var(--ease), transform 0.8s var(--ease); will-change: transform; }
.sbm-card__link:hover .sbm-browser, .sbm-card__link:focus-visible .sbm-browser { box-shadow: var(--sh-md); }
.sbm-card__link:hover .sbm-card__long, .sbm-card__link:focus-visible .sbm-card__long { opacity: 1; transform: translateY(var(--sbm-shift, 0px)); transition: opacity 0.3s var(--ease), transform var(--sbm-dur, 6s) linear 0.25s; }
.sbm-card.is-playing .sbm-card__long { opacity: 1; transform: translateY(var(--sbm-shift, 0px)); transition: opacity 0.3s var(--ease), transform var(--sbm-dur, 6s) linear 0.4s; }
@media (prefers-reduced-motion: reduce) {
	.sbm-card__link:hover .sbm-card__long, .sbm-card__link:focus-visible .sbm-card__long { transform: none; transition: opacity 0.2s; }
}
.sbm-card__body { display: grid; gap: var(--s-2); justify-items: start; }
.sbm-card__title { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.sbm-card__tags { color: var(--c-muted); font-size: 15px; }
.sbm-card__more { display: inline-flex; align-items: center; gap: var(--s-2); margin-top: var(--s-1); color: var(--c-ink); font-weight: 600; font-size: 15px; }
.sbm-card__more .sbm-ico { width: 18px; height: 18px; transition: translate var(--t) var(--ease); }
.sbm-card__link:hover .sbm-card__more { color: var(--c-blue); }
.sbm-card__link:hover .sbm-card__more .sbm-ico { translate: 4px 0; }

/* ---------- Фильтры и вкладки ---------- */

.sbm-filters, .sbm-tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.sbm-filters { margin-bottom: var(--s-7); }
.sbm-chip {
	display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4); border-radius: var(--r-pill);
	border: 1px solid transparent; background: var(--c-paper); color: var(--c-ink); box-shadow: var(--neo-sm);
	font: 500 15px/1 var(--f-sans); cursor: pointer; transition: box-shadow var(--t) var(--ease), color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.sbm-chip span { font-family: var(--f-mono); font-size: 12px; color: var(--c-muted); }
.sbm-chip:hover { color: var(--c-blue); }
.sbm-chip[aria-pressed="true"], .sbm-chip[aria-selected="true"] { background: var(--c-ink); color: #fff; box-shadow: none; }
.sbm-chip[aria-pressed="true"] span, .sbm-chip[aria-selected="true"] span { color: #ffe7a6; }
.sbm-chip--extra { box-shadow: var(--neo-in); }
.sbm-chip--extra b { font-weight: 600; }
.sbm-filters__empty { color: var(--c-muted); }

/* ---------- Бегущая строка: жёлтая и тёмная ленты ---------- */

.sbm-marquee { position: relative; height: 190px; overflow: hidden; display: grid; place-items: center; background: var(--c-paper); }
.sbm-marquee__band { position: absolute; left: -5%; right: -5%; overflow: hidden; padding: var(--s-4) 0; transition: transform 0.25s var(--ease); }
.sbm-marquee__band--a { background: var(--c-yellow); color: var(--c-ink); transform: rotate(calc(-2.5deg - var(--sv, 0) * 1deg)); z-index: 2; }
.sbm-marquee__band--b { background: var(--c-ink); color: #fff; transform: rotate(calc(2deg + var(--sv, 0) * 1deg)); }
.sbm-marquee__track { display: flex; align-items: center; width: max-content; font-weight: 600; font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -0.02em; white-space: nowrap; }
.sbm-marquee__set { display: flex; align-items: center; gap: var(--s-5); padding-right: var(--s-5); flex: none; }
.sbm-marquee__set a { color: inherit; text-decoration: none; border-radius: 4px; }
.sbm-marquee__set a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.sbm-marquee__track i { font: 700 0.75em/1 var(--f-mono); font-style: normal; opacity: 0.55; }
.sbm-marquee__band--a :focus-visible { outline-color: var(--c-ink); }
.sbm-motion .sbm-marquee__band--a .sbm-marquee__track { animation: sbm-marquee 60s linear infinite; }
.sbm-motion .sbm-marquee__band--b .sbm-marquee__track { animation: sbm-marquee 80s linear infinite reverse; }
.sbm-marquee:hover .sbm-marquee__track, .sbm-marquee:focus-within .sbm-marquee__track, .sbm-marquee.is-paused .sbm-marquee__track { animation-play-state: paused; }
@keyframes sbm-marquee { to { transform: translateX(-50%); } }
.sbm-marquee__pause { position: absolute; right: var(--gutter); bottom: 10px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--c-paper); color: var(--c-ink); box-shadow: var(--neo-sm); cursor: pointer; display: grid; place-items: center; }
.sbm-marquee__pause i { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.sbm-marquee__pause[aria-pressed="true"] i { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
@media (prefers-reduced-motion: reduce) { .sbm-marquee__pause { display: none; } }
@media (max-width: 640px) { .sbm-marquee { height: 150px; } }

/* ---------- Услуги: список с линиями ---------- */

.sbm-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-8); }
.sbm-service { display: grid; grid-template-columns: 56px 1fr; gap: var(--s-5); align-items: start; padding: var(--s-6) 0; border-top: 1px solid var(--c-line-strong); }
.sbm-service__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--c-paper-2); color: var(--c-blue); box-shadow: var(--neo-sm); }
.sbm-service:nth-child(3n + 2) .sbm-service__ico { color: var(--c-green); }
.sbm-service:nth-child(3n) .sbm-service__ico { color: var(--c-coral); }
.sbm-service__ico .sbm-ico { width: 26px; height: 26px; }
.sbm-service__body { display: grid; gap: var(--s-2); justify-items: start; }
.sbm-service__body h3 { font-size: clamp(22px, 2vw, 28px); }
.sbm-service p { color: var(--c-muted); font-size: 16px; }
.sbm-service__more { display: inline-flex; align-items: center; gap: var(--s-2); margin-top: var(--s-2); font-weight: 600; font-size: 15px; text-decoration: none; color: var(--c-ink); }
.sbm-service__more:hover { color: var(--c-blue); }
.sbm-service__more .sbm-ico { width: 18px; height: 18px; transition: translate var(--t) var(--ease); }
.sbm-service__more:hover .sbm-ico { translate: 4px 0; }
@media (max-width: 980px) { .sbm-services { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .sbm-service { padding: var(--s-5) 0; grid-template-columns: 48px 1fr; gap: var(--s-4); } .sbm-service__ico { width: 48px; height: 48px; } }

/* ---------- Этапы ---------- */

#etapy { background: var(--c-paper); }
.sbm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.sbm-step { position: relative; display: grid; align-content: start; gap: var(--s-3); padding: var(--s-6); border-radius: var(--r-lg); background: var(--c-paper); box-shadow: var(--neo); }
.sbm-step::before, .sbm-step::after { content: ""; position: absolute; left: var(--s-6); right: var(--s-6); top: 0; height: 3px; border-radius: 0 0 3px 3px; }
.sbm-step::before { background: var(--c-line); }
.sbm-step::after { background: var(--c-blue); transform-origin: left; }
.sbm-step:nth-child(3)::after { background: var(--c-yellow); }
.sbm-motion .sbm-step::after { transform: scaleX(0); transition: transform 0.7s var(--ease) calc(var(--i) * 140ms + 0.1s); }
.sbm-motion .sbm-step.is-in::after { transform: scaleX(1); }
.sbm-step__num { display: inline-grid; place-items: center; justify-self: start; min-width: 44px; height: 32px; padding: 0 var(--s-3); border-radius: var(--r-pill); background: var(--c-blue-soft); color: #0a47c2; font-size: 13px; font-weight: 600; }
.sbm-step:nth-child(3) .sbm-step__num { background: #ffe7a6; color: var(--c-ink); }
.sbm-step p { color: var(--c-muted); font-size: 16px; }
.sbm-steps__progress { display: none; }
@media (max-width: 980px) { .sbm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sbm-steps { grid-template-columns: 1fr; gap: var(--s-4); } .sbm-step { padding: var(--s-5); } }

/* ---------- Почему мы — тёмная плита ---------- */

.sbm-why { padding-block: 0; }
.sbm-why__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-8); align-items: start; }
.sbm-why .sbm-head { position: sticky; top: 120px; margin-bottom: 0; }
.sbm-why .sbm-head h2 { color: #fff; }
.sbm-why .sbm-head .sbm-cta { margin-top: var(--s-3); }
.sbm-why__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--s-6); }
.sbm-why__item { display: grid; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, 0.18); transition: border-color var(--t) var(--ease); }
.sbm-why__item:hover { border-color: var(--c-yellow); }
.sbm-why__num { font-size: 14px; font-weight: 600; color: var(--c-yellow); }
.sbm-why__item:nth-child(2) .sbm-why__num { color: var(--c-green-bright); }
.sbm-why__item:nth-child(3) .sbm-why__num { color: #8fb5ff; }
.sbm-why__item:nth-child(4) .sbm-why__num { color: var(--c-coral-bright); }
.sbm-why__item h3 { font-size: clamp(20px, 1.8vw, 24px); color: #fff; min-height: 2.5em; display: flex; align-items: flex-end; }
.sbm-why__item p { color: var(--c-on-navy-muted); font-size: 16px; }
@media (max-width: 980px) { .sbm-why__grid { grid-template-columns: 1fr; gap: var(--s-7); } .sbm-why .sbm-head { position: static; } }
@media (max-width: 560px) { .sbm-why__list { grid-template-columns: 1fr; gap: var(--s-6); } .sbm-why__item h3 { min-height: 0; } }

/* ---------- Вопросы: список с линиями ---------- */

#voprosy { background: var(--c-paper); }
.sbm-faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-8); align-items: start; }
.sbm-faq .sbm-head { margin-bottom: 0; position: sticky; top: 120px; }
.sbm-faq__list { display: grid; border-top: 1px solid var(--c-line-strong); }
.sbm-faq__item { border-bottom: 1px solid var(--c-line-strong); }
.sbm-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 20px; line-height: 1.35; letter-spacing: -0.01em; }
.sbm-faq__item summary::-webkit-details-marker { display: none; }
.sbm-faq__item summary:hover { color: var(--c-blue); }
.sbm-faq__item summary i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-paper); color: var(--c-ink); box-shadow: var(--neo-sm); flex: none; transition: background-color var(--t) var(--ease), color var(--t) var(--ease), rotate 0.25s var(--ease); }
.sbm-faq__item[open] summary i { background: var(--c-ink); color: #fff; box-shadow: none; rotate: 45deg; }
.sbm-faq__a { padding: 0 var(--s-8) var(--s-5) 0; color: var(--c-muted); }
@media (max-width: 980px) { .sbm-faq { grid-template-columns: 1fr; gap: var(--s-6); } .sbm-faq .sbm-head { position: static; } }
@media (max-width: 560px) { .sbm-faq__item summary { font-size: 18px; } .sbm-faq__a { padding-right: 0; } }

/* ---------- Контакт с фото — тёмная плита ---------- */

.sbm-contact { padding-block: var(--s-7) var(--s-5); }
.sbm-contact > .sbm-wrap { padding-bottom: 0; overflow: hidden; isolation: isolate; }
.sbm-contact > .sbm-wrap::before {
	content: ""; position: absolute; right: -10%; bottom: -30%; width: 70%; aspect-ratio: 1; z-index: -1;
	background: radial-gradient(closest-side, rgba(245, 181, 12, 0.22), transparent 70%), radial-gradient(closest-side at 70% 30%, rgba(20, 99, 255, 0.35), transparent 70%);
}
.sbm-contact__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--s-7); align-items: end; }
.sbm-contact__text { display: grid; gap: var(--s-5); padding-bottom: var(--section); align-self: center; }
.sbm-contact h1, .sbm-contact h2 { color: #fff; }
.sbm-contact__ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin-top: var(--s-2); }
.sbm-contact__ways a { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--c-navy-2); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; text-decoration: none; font-weight: 600; font-size: 20px; transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease); }
.sbm-contact__ways a:hover { border-color: var(--c-yellow); color: #fff; }
.sbm-contact__ways small { display: block; font-weight: 500; font-size: 14px; color: var(--c-on-navy-muted); }
.sbm-contact__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-yellow); color: var(--c-ink); flex: none; }
.sbm-contact__ico--tg { background: var(--c-blue); color: #fff; }
.sbm-contact__ico .sbm-ico { width: 24px; height: 24px; }
.sbm-contact__photo { position: relative; margin: 0; align-self: end; }
.sbm-contact__photo img { width: 100%; max-width: 500px; margin-inline: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35)); }
.sbm-contact__photo figcaption { position: absolute; left: 0; bottom: var(--s-7); display: grid; padding: var(--s-3) var(--s-5); border-radius: var(--r-md); background: var(--c-card); color: var(--c-ink); box-shadow: var(--sh-lg); }
.sbm-contact__photo figcaption b { font-size: 18px; }
.sbm-contact__photo figcaption span { font-size: 14px; color: var(--c-muted); }
@media (max-width: 1100px) { .sbm-contact__ways { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
	.sbm-contact__grid { grid-template-columns: 1fr; gap: 0; }
	.sbm-contact__text { padding-bottom: var(--s-7); }
	.sbm-contact__photo img { max-width: 340px; }
	.sbm-contact__photo figcaption { left: 50%; translate: -50% 0; bottom: var(--s-5); white-space: nowrap; }
}

/* ---------- Внутренние страницы ---------- */

.sbm-page-hero { padding-block: var(--s-7); }
.sbm-page-hero .sbm-wrap { display: grid; gap: var(--s-5); }
.sbm-page-hero h1 { font-size: clamp(38px, 5vw, 72px); }
.sbm-crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s-2); font: 500 13px/1.4 var(--f-mono); color: var(--c-muted); }
.sbm-crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--c-line-strong); }
.sbm-crumbs a { color: var(--c-muted); text-decoration: none; }
.sbm-crumbs a:hover { color: var(--c-blue); }
.sbm-crumbs [aria-current] { color: var(--c-ink); }

.sbm-case__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; }
.sbm-case__head > div { display: grid; gap: var(--s-4); flex: 1 1 560px; }
.sbm-case__head .sbm-btn { flex: none; }
.sbm-case__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.sbm-case__shots { display: grid; gap: var(--s-4); min-width: 0; padding: clamp(14px, 2vw, 28px); border-radius: var(--r-xl); background: var(--g-sky); }
.sbm-browser--big { border-radius: 14px; overflow: hidden; box-shadow: var(--sh-lg); }
.sbm-browser--big .sbm-browser__bar { height: 40px; }
.sbm-browser__scroll { max-height: min(76vh, 880px); overflow-y: auto; overscroll-behavior: contain; background: var(--c-card); }
.sbm-browser__scroll[hidden] { display: none; }
.sbm-browser__scroll:focus-visible { outline-offset: -3px; }
.sbm-case__shots .sbm-chip { background: rgba(255, 255, 255, 0.7); box-shadow: none; border-color: rgba(255, 255, 255, 0.9); }
.sbm-case__shots .sbm-chip[aria-selected="true"] { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.sbm-case__long { width: 100%; }
.sbm-case__aside { position: sticky; top: 108px; display: grid; gap: var(--s-4); }
.sbm-case__aside h2 { font-size: 24px; margin-top: var(--s-3); }
.sbm-case__aside > p { color: var(--c-muted); }
.sbm-case__facts { display: grid; margin: 0; border-radius: var(--r-md); background: var(--c-card); border: 1px solid var(--c-line); overflow: hidden; }
.sbm-case__facts div { display: grid; grid-template-columns: 120px 1fr; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--c-line); }
.sbm-case__facts div:first-child { border-top: 0; }
.sbm-case__facts dt { color: var(--c-muted); font: 500 13px/1.6 var(--f-mono); }
.sbm-case__facts dd { margin: 0; font-weight: 600; }
.sbm-checks { display: grid; gap: var(--s-3); }
.sbm-checks li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); }
.sbm-checks .sbm-ico { color: var(--c-green); width: 22px; height: 22px; margin-top: 2px; }
.sbm-case__cta { display: grid; gap: var(--s-4); margin-top: var(--s-3); padding: var(--s-5); border-radius: var(--r-lg); background: var(--c-paper); box-shadow: var(--neo); }
.sbm-case__cta p { color: var(--c-muted); }
.sbm-case__cta b { color: var(--c-ink); }
@media (max-width: 980px) { .sbm-case__grid { grid-template-columns: 1fr; } .sbm-case__aside { position: static; } .sbm-browser__scroll { max-height: 70vh; } }

.sbm-prose { max-width: 800px; padding-block: var(--s-6) var(--section); }
.sbm-prose h2 { font-size: clamp(24px, 2.4vw, 32px); margin: var(--s-7) 0 var(--s-4); }
.sbm-prose h2:first-child { margin-top: 0; }
.sbm-prose p, .sbm-prose ul { margin-bottom: var(--s-4); color: var(--c-ink-2); }
.sbm-prose ul { list-style: disc; padding-left: var(--s-5); }
.sbm-prose li { margin-bottom: var(--s-2); }
.sbm-light:has(.sbm-prose) { background: var(--c-paper); }

.sbm-404 { padding-block: var(--s-10); }
.sbm-404__code { font-size: clamp(18px, 2vw, 22px); }

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

.sbm-footer { background: var(--c-paper); border-top: 1px solid var(--c-line); padding-block: var(--s-8) var(--s-6); color: var(--c-muted); }
.sbm-footer__top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); padding-bottom: var(--s-7); border-bottom: 1px solid var(--c-line); }
.sbm-footer__brand { display: grid; gap: var(--s-4); align-content: start; }
.sbm-footer__brand p { max-width: 36ch; font-size: 15px; }
.sbm-footer__nav ul { display: grid; gap: var(--s-2); }
.sbm-footer__nav a { color: var(--c-ink); text-decoration: none; }
.sbm-footer__nav a:hover { color: var(--c-blue); }
.sbm-footer__contacts { display: grid; gap: var(--s-3); align-content: start; justify-items: start; }
.sbm-footer__big { color: var(--c-ink); font-size: clamp(22px, 2vw, 30px); font-weight: 600; text-decoration: none; letter-spacing: -0.02em; }
.sbm-footer__big:hover { color: var(--c-blue); }
.sbm-footer__tg { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--c-blue); font-weight: 600; text-decoration: none; }
.sbm-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-5); font-size: 14px; }
.sbm-footer__bottom a { color: var(--c-muted); }
.sbm-footer__bottom a:hover { color: var(--c-ink); }
@media (max-width: 860px) { .sbm-footer__top { grid-template-columns: 1fr 1fr; } .sbm-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .sbm-footer__top { grid-template-columns: 1fr; } }

/* ---------- Cookie ---------- */

.sbm-cookie { position: fixed; left: var(--s-4); bottom: var(--s-4); z-index: 200; display: grid; gap: var(--s-4); max-width: min(500px, calc(100vw - var(--s-4) * 2)); padding: var(--s-5); border-radius: var(--r-lg); background: var(--c-card); border: 1px solid var(--c-line); box-shadow: var(--sh-lg); font-size: 15px; color: var(--c-ink-2); }
.sbm-cookie[hidden] { display: none; }
.sbm-cookie__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* ---------- Подсказки мышь / палец ---------- */

.sbm-touch-only { display: none; }
@media (hover: none) { .sbm-hover-only { display: none; } .sbm-touch-only { display: inline; } }

/* ---------- Появление и моушн ---------- */

.sbm-motion [data-sbm-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease) calc(var(--i, 0) * 80ms), transform 0.7s var(--ease) calc(var(--i, 0) * 80ms); }
.sbm-motion [data-sbm-reveal].is-in { opacity: 1; transform: none; }
.sbm-motion [data-sbm-reveal].is-instant { transition: none; }

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.sbm-motion .sbm-head h2, .sbm-motion .sbm-page-hero h1 { animation: sbm-wipe linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
		.sbm-motion .sbm-head p { animation: sbm-rise linear both; animation-timeline: view(); animation-range: entry 10% entry 70%; }
		.sbm-motion .sbm-contact__photo img { animation: sbm-parallax linear both; animation-timeline: view(); animation-range: cover; }
		.sbm-motion .sbm-card .sbm-browser__screen { animation: sbm-tilt linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
	}
}
@keyframes sbm-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sbm-rise { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
@keyframes sbm-parallax { from { translate: 0 40px; } to { translate: 0 -40px; } }
@keyframes sbm-tilt { from { translate: 0 28px; } to { translate: 0 0; } }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }
@media (prefers-reduced-motion: reduce) {
	@view-transition { navigation: none; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media print {
	.sbm-header, .sbm-cookie, .sbm-marquee, .sbm-hero__scene { display: none !important; }
	.sbm-ink > .sbm-wrap { background: #fff !important; color: #000 !important; }
}

/* Telegram рядом с телефоном в шапке */
.sbm-header__tg { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #2aabee; color: #fff; flex: none; transition: background-color var(--t) var(--ease); }
.sbm-header__tg:hover { background: #1e96d4; color: #fff; }
.sbm-header__tg .sbm-ico { width: 22px; height: 22px; margin-left: -2px; }
.sbm-header__actions { gap: var(--s-3); }
