/* Шрифты со своего сервера: один файл на семейство, только нужные символы и толщины (tools/fonts.py) */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/manrope.woff2) format('woff2'); }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/fonts/unbounded.woff2) format('woff2'); }
/* Запасные шрифты подогнаны по ширине и высоте строки, поэтому при подмене на фирменный текст не прыгает */
@font-face { font-family: 'Manrope Fallback'; src: local('Arial'), local('Roboto'), local('Helvetica Neue'); size-adjust: 90.9%; ascent-override: 117.2%; descent-override: 33%; line-gap-override: 0%; }
@font-face { font-family: 'Unbounded Fallback'; src: local('Arial'), local('Roboto'), local('Helvetica Neue'); size-adjust: 90.3%; ascent-override: 110.2%; descent-override: 27.1%; line-gap-override: 0%; }

:root {
  --bg: #F2EFE9;
  --paper: #FBFAF7;
  --sand: #D9D3C7;
  --sand-2: #E7E2D8;
  --ink: #14171F;
  --ink-2: #4A4E57;
  --accent: #FF5A1F;
  --accent-ink: #14171F;
  --accent-deep: #C93E0B;

  --display: "Unbounded", "Unbounded Fallback", sans-serif;
  --text: "Manrope", "Manrope Fallback", sans-serif;

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --m: clamp(16px, 3vw, 40px);
  --gap: clamp(96px, 11vw, 168px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 1.0625rem/1.6 var(--text); overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1440px; margin-left: auto; margin-right: auto; padding-left: var(--m); padding-right: var(--m); }
section { margin-top: var(--gap); }
.h2 { font: 600 clamp(32px, 4.4vw, 64px)/1.02 var(--display); letter-spacing: -0.03em; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: 999px;
  font: 700 1rem/1 var(--text); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--ink); color: var(--paper); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--accent); color: var(--ink); }
.btn--ghost { background: var(--sand-2); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.link { font-weight: 700; text-underline-offset: 4px; }
.link:hover { color: var(--accent-deep); }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: var(--bg); transition: transform .35s var(--ease); }
.top.is-hidden { transform: translateY(-100%); }
.top-in { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 1.0625rem/1 var(--display); letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.logo-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); position: relative; }
.logo-mark::after { content: ""; position: absolute; left: 7px; bottom: 6px; width: 4px; height: 10px; background: var(--ink); border-radius: 2px; box-shadow: 6px -4px 0 var(--ink); }
.nav { display: flex; gap: 24px; margin-left: auto; font-weight: 600; font-size: .9375rem; }
.nav a { text-decoration: none; padding: 6px 0; background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.nav a:hover { background-size: 100% 2px; }
.top-phone { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* Image slots (draft until real pictures arrive) */
.slot { background: var(--sand-2); display: flex; align-items: flex-end; justify-content: flex-start; overflow: hidden; }
.slot-label { margin: 14px; padding: 6px 10px; border-radius: 8px; background: var(--paper); font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.slot img { width: 100%; height: 100%; object-fit: cover; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; min-height: calc(100svh - 76px); padding-top: 24px; padding-bottom: 40px; margin-top: 0; }
.hero-title { font: 700 clamp(40px, 4.6vw, 72px)/1 var(--display); letter-spacing: -0.04em; text-wrap: balance; }
.hero-title .w { display: inline-block; }
.hero-title .accent { color: var(--accent); }
.hero-lead { margin-top: 28px; max-width: 52ch; font-size: 1.1875rem; color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; font-size: .9375rem; color: var(--ink-2); }
.hero-facts b { color: var(--ink); font-family: var(--display); font-weight: 600; margin-right: 4px; }

.bento { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.25fr 1fr; gap: 14px; height: min(640px, 72svh); }
.tile { border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; background: var(--paper); position: relative; overflow: hidden; }
.tile--img { grid-column: 1; grid-row: 1; padding: 0; }
.tile--chart { grid-column: 2; grid-row: 1; }
.tile--accent { background: var(--accent); }
.tile--dark { background: var(--ink); color: var(--paper); }
.tile-k { font-size: .875rem; font-weight: 600; }
.tile-v { font: 700 clamp(40px, 4.4vw, 68px)/1 var(--display); letter-spacing: -0.04em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.tile-n { margin-top: auto; font-size: .8125rem; opacity: .8; }
.spark { margin: auto 0 14px; width: 100%; height: auto; overflow: visible; }
.spark path, .line-chart .draw { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin: auto 0 14px; }
.bars i { flex: 1; height: calc(var(--h) * 100%); background: var(--ink); border-radius: 4px; transform-origin: bottom; }

/* Versus */
.versus { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: center; }
.versus-head p { margin-top: 20px; max-width: 44ch; color: var(--ink-2); }
.versus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vs { border-radius: var(--r-lg); padding: 28px; }
.vs--old { background: var(--sand-2); color: var(--ink-2); }
.vs--new { background: var(--ink); color: var(--paper); }
.vs-k { font: 600 1.125rem/1 var(--display); margin-bottom: 20px; }
.vs--new .vs-k { color: var(--accent); }
.vs li { position: relative; padding: 12px 0 12px 30px; font-size: .9875rem; line-height: 1.45; }
.vs li + li { border-top: 1px solid rgba(20, 23, 31, .08); }
.vs--new li + li { border-color: rgba(251, 250, 247, .1); }
.vs--old li::before { content: "×"; position: absolute; left: 2px; top: 10px; font-weight: 700; color: var(--ink-2); }
.vs--old li::after { content: ""; position: absolute; left: 28px; right: 0; top: calc(12px + .74em); height: 2px; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
.vs--new li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* Services: horizontal track */
.services-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.services-note { max-width: 36ch; color: var(--ink-2); }
.track { display: flex; gap: 16px; padding: 40px var(--m) 8px; width: max-content; }
.card {
  width: clamp(300px, 27vw, 400px); flex: none;
  background: var(--paper); border-radius: var(--r-lg); padding: 14px 14px 26px;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-6px); }
.card--accent { background: var(--accent); }
.card--dark { background: var(--ink); color: var(--paper); }
.card--dark .slot { background: #262a33; }
.card--dark .slot-label { background: #353a45; color: var(--paper); }
.card-img { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
.card-h { margin: 22px 12px 0; font: 600 1.4rem/1.15 var(--display); letter-spacing: -0.02em; }
.card-h a { text-decoration: none; }
.card-h a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card-t { margin: 12px 12px 0; font-size: .9875rem; }
.card-p { margin: auto 12px 0; padding-top: 22px; font: 600 1.125rem/1 var(--display); }

/* Results charts */
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.results-head p { max-width: 36ch; color: var(--ink-2); }
.results-head .h2 { flex: 1; }
.charts { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 16px; margin-top: 36px; }
.chart { background: var(--paper); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; height: clamp(360px, 46svh, 440px); }
.chart--wide { background: var(--ink); color: var(--paper); }
.chart--wide figcaption span, .chart--wide .chart-axis { color: #A7ABB3; }
.chart--wide .grid-lines line { stroke: #2C313C; }
.chart--wide .line-chart .area { opacity: .22; }
.chart figcaption { display: flex; flex-direction: column; gap: 2px; }
.chart figcaption b { font-weight: 700; }
.chart figcaption span { font-size: .875rem; color: var(--ink-2); }
.chart-v { font: 700 clamp(36px, 3.4vw, 56px)/1 var(--display); letter-spacing: -0.04em; margin: 14px 0 16px; font-variant-numeric: tabular-nums; }
.line-chart { width: 100%; height: 100%; min-height: 110px; flex: 1; overflow: visible; }
.line-chart path, .line-chart line { vector-effect: non-scaling-stroke; }
.grid-lines line { stroke: var(--sand); stroke-width: 1; stroke-dasharray: 4 6; }
.line-chart .area { fill: var(--accent); opacity: .12; }
.line-chart .dots circle { fill: var(--ink); stroke: var(--paper); stroke-width: 3; }
.line-chart--down .draw { stroke: var(--ink); }
.chart-axis { display: flex; justify-content: space-between; margin-top: 12px; font-size: .8125rem; color: var(--ink-2); }
.vbars { display: flex; align-items: flex-end; gap: 10px; flex: 1; min-height: 120px; }
.vbars > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.vbars i { display: block; height: calc(var(--h) * 100% - 24px); min-height: 6px; background: var(--accent); border-radius: 8px; transform-origin: bottom; }
.vbars > div:last-child i { background: var(--ink); }
.vbars span { font-size: .75rem; color: var(--ink-2); text-align: center; }

/* GEO pinned chat */
.geo { background: var(--ink); color: var(--paper); padding: var(--gap) 0; }
.geo-pin { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.geo-steps { margin-top: 36px; display: grid; gap: 14px; counter-reset: s; }
.geo-steps li { padding: 18px 20px 18px 64px; border-radius: var(--r-md); background: #1E222C; color: #9EA3AD; position: relative; transition: background-color .3s, color .3s; }
.geo-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 20px; top: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #2C313C; color: var(--paper); font: 600 .875rem/1 var(--display); transition: background-color .3s; }
.geo-steps li.is-on { background: #262B36; color: var(--paper); }
.geo-steps li.is-on::before { background: var(--accent); color: var(--ink); }
.geo-steps b { color: var(--paper); }
.chat { background: var(--bg); color: var(--ink); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 16px; min-height: 360px; align-content: start; }
.chat-q { justify-self: end; max-width: 80%; background: var(--ink); color: var(--paper); padding: 14px 18px; border-radius: 20px 20px 4px 20px; }
.chat-a { max-width: 92%; background: var(--paper); padding: 16px 18px; border-radius: 20px 20px 20px 4px; min-height: 140px; }
.chat-who { display: block; font-size: .8125rem; font-weight: 700; color: var(--accent-deep); margin-bottom: 6px; }
.type::after { content: ""; display: inline-block; width: 2px; height: 1.1em; background: var(--accent); vertical-align: -0.15em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.chat-src { font-size: .8125rem; color: var(--ink-2); }
@keyframes blink { 50% { opacity: 0; } }

/* Process */
.process-body { display: grid; grid-template-columns: 40px 1fr; gap: 24px; margin-top: 48px; }
.process-line { position: relative; width: 4px; margin-left: 18px; background: var(--sand); border-radius: 4px; }
.process-line i { position: absolute; inset: 0; background: var(--accent); border-radius: 4px; transform-origin: top; }
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.process-list li { background: var(--paper); border-radius: var(--r-lg); padding: 26px; }
.process-t { display: inline-block; font-size: .8125rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--sand-2); }
.process-list b { display: block; margin-top: 18px; font: 600 1.375rem/1.15 var(--display); letter-spacing: -0.02em; }
.process-list p { margin-top: 10px; font-size: .9375rem; color: var(--ink-2); }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; margin-top: 40px; align-items: stretch; }
.plan { background: var(--paper); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; }
.plan h3 { font: 600 1.375rem/1.1 var(--display); }
.plan-p { font: 700 clamp(30px, 2.8vw, 42px)/1 var(--display); letter-spacing: -0.03em; margin: 22px 0 24px; }
.plan-p span { display: block; margin-top: 8px; font: 600 .875rem/1 var(--text); letter-spacing: 0; color: var(--ink-2); }
.plan ul { display: grid; gap: 10px; margin-bottom: 32px; font-size: .9875rem; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.plan--accent { background: var(--accent); }
.plan--accent .plan-p span { color: var(--ink); }
.plan-badge { align-self: flex-start; background: var(--ink); color: var(--paper); font-size: .8125rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.pricing-more { margin-top: 24px; color: var(--ink-2); }

/* Cases stack */
.cases-head { display: flex; justify-content: space-between; align-items: baseline; }
.stack { margin-top: 40px; display: grid; gap: 24px; }
.case {
  position: sticky; top: 110px;
  min-height: 340px; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 56px);
  background: var(--paper); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end;
  transform-origin: center top;
}
.case:nth-child(2) { top: 130px; }
.case:nth-child(3) { top: 150px; }
.case:nth-child(4) { top: 170px; }
.case--dark { background: var(--ink); color: var(--paper); }
.case--accent { background: var(--accent); }
.case-tag { font-size: .875rem; font-weight: 700; }
.case h3 { font: 600 clamp(24px, 2.4vw, 36px)/1.1 var(--display); letter-spacing: -0.02em; margin: 10px 0 14px; }
.case-text p:last-child { max-width: 52ch; }
.case-num b { display: block; font: 700 clamp(36px, 4.2vw, 64px)/1 var(--display); letter-spacing: -0.04em; white-space: nowrap; }
.case-num span { display: block; margin-top: 10px; font-size: .9375rem; }

/* FAQ */
.stack { padding-bottom: 40px; }
.faq-band { background: var(--sand-2); padding: var(--gap) 0; }
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: start; }
.faq-side { position: sticky; top: 110px; display: grid; gap: 20px; justify-items: start; }
.faq-side p { color: var(--ink-2); max-width: 32ch; }
.faq-list { display: grid; gap: 10px; }
.faq details { background: var(--paper); border-radius: var(--r-md); padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 700; font-size: 1.0625rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--sand-2); display: grid; place-items: center; font: 500 1.25rem/1 var(--text); transition: transform .3s var(--ease), background-color .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--accent); }
.faq details p { padding-bottom: 22px; color: var(--ink-2); max-width: 70ch; }

/* Lead */
.lead-box { background: var(--accent); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.lead-h { font: 700 clamp(32px, 4vw, 60px)/1.02 var(--display); letter-spacing: -0.03em; }
.lead-text p { margin-top: 18px; max-width: 46ch; }
.lead-form { display: grid; gap: 14px; }
.lead-form label { display: grid; gap: 6px; font-size: .875rem; font-weight: 700; }
.lead-form input:not([type=checkbox]) { height: 56px; padding: 0 18px; border: 2px solid transparent; border-radius: 14px; background: var(--paper); font: 600 1rem var(--text); color: var(--ink); }
.lead-form input:focus { outline: none; border-color: var(--ink); }
.lead-form input[aria-invalid=true] { border-color: var(--ink); background: #FFE1D6; }
.lead-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.check > input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex: none; }
.form-msg { font-weight: 700; min-height: 1.6em; }

/* Footer */
.foot { margin-top: var(--gap); background: var(--ink); color: var(--paper); padding: 72px 0 32px; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.foot-brand { display: grid; gap: 10px; align-content: start; }
.foot-brand p { color: #A7ABB3; max-width: 34ch; }
.foot-phone { font: 600 1.75rem/1.2 var(--display); text-decoration: none; margin-top: 14px; }
.foot-brand a:not(.logo) { text-decoration: none; }
.foot-brand a:hover { color: var(--accent); }
.foot-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.foot-nav li + li { margin-top: 10px; }
.foot-nav a { text-decoration: none; color: #D9DBE0; }
.foot-nav a:hover { color: var(--accent); }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; font-size: .875rem; color: #A7ABB3; }

/* Tablet */
@media (max-width: 1100px) {
  .nav, .top-phone { display: none; }
  .top-in .btn { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 40px; }
  .bento { height: 560px; }
  .versus { grid-template-columns: 1fr; }
  .charts { grid-template-columns: 1fr 1fr; }
  .chart--wide { grid-column: 1 / -1; }
  .geo-pin { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .lead-box { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 640px) {
  .top-in { height: 64px; gap: 12px; }
  .logo { font-size: .8125rem; gap: 8px; }
  .logo-mark { width: 22px; height: 22px; }
  .top-in .btn { min-height: 40px; padding: 0 12px; font-size: .8125rem; white-space: nowrap; }
  .case-num b { white-space: normal; font-size: 34px; }
  .hero { padding-top: 24px; }
  .hero-title { font-size: max(22px, min(9.4vw, var(--fit))); }
  .hero-lead { font-size: 1.0625rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .bento { height: auto; grid-template-rows: 220px auto auto; }
  .tile--img { grid-column: 1 / -1; }
  .tile--chart { grid-column: 1 / -1; grid-row: 2; }
  .tile { padding: 20px; min-height: 180px; }
  .services-head, .results-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .track { flex-direction: column; width: auto; padding: 32px var(--m) 0; }
  .card { width: 100%; }
  .charts { grid-template-columns: 1fr; }
  .chart { padding: 22px; height: 340px; }
  .versus-grid { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .process-body { grid-template-columns: 1fr; }
  .process-line { display: none; }
  .process-list { grid-template-columns: 1fr; }
  .case { grid-template-columns: minmax(0, 1fr); gap: 20px; min-height: 0; top: 80px; }
  .case h3 { hyphens: auto; overflow-wrap: break-word; }
  .case:nth-child(2) { top: 92px; } .case:nth-child(3) { top: 104px; } .case:nth-child(4) { top: 116px; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-legal { flex-direction: column; }
}

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

/* ---------- Service page ---------- */
.hero--page { min-height: calc(88svh - 76px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; font-size: .875rem; color: var(--ink-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent-deep); }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; }

.bento--page { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; }
.bento--page .tile { min-height: 230px; }
.tile--wide { grid-column: 1 / -1; grid-row: 1; }
.mini-q { align-self: flex-end; max-width: 80%; margin-top: 14px; padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: var(--accent); color: var(--ink); font-weight: 600; }
.mini-a { max-width: 88%; margin-top: 12px; padding: 14px 16px; border-radius: 18px 18px 18px 4px; background: #262B36; min-height: 4.8em; }
.tile--wide .tile-n { color: #A7ABB3; opacity: 1; padding-top: 12px; }

.def { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.def-body { display: grid; gap: 20px; font-size: 1.125rem; }
.def-answer { font: 500 clamp(20px, 1.7vw, 26px)/1.45 var(--text); padding: 28px; border-radius: var(--r-lg); background: var(--paper); border-left: 6px solid var(--accent); }
.def-body p:not(.def-answer) { color: var(--ink-2); max-width: 70ch; }

.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.who-grid li { background: var(--paper); border-radius: var(--r-lg); padding: 26px; transition: transform .3s var(--ease), background-color .3s; }
.who-grid li:hover { transform: translateY(-4px); background: var(--accent); }
.who-grid b { font: 600 1.25rem/1.2 var(--display); letter-spacing: -0.02em; }
.who-grid p { margin-top: 10px; font-size: .9875rem; color: var(--ink-2); }
.who-grid li:hover p { color: var(--ink); }

.models { margin-left: auto; margin-right: auto; background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 56px); max-width: calc(1440px - 2 * var(--m)); width: calc(100% - 2 * var(--m)); }
.models-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.models-head p { max-width: 40ch; color: #A7ABB3; }
.models-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.model { background: #1E222C; border-radius: var(--r-md); padding: 22px; }
.model h3 { font: 600 1.25rem/1.2 var(--display); color: var(--accent); }
.model p { margin-top: 10px; font-size: .9375rem; color: #C9CCD2; }

.inc-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; counter-reset: inc; }
.inc-list li { background: var(--paper); border-radius: var(--r-lg); padding: 24px; counter-increment: inc; }
.inc-list li::before { content: counter(inc, decimal-leading-zero); display: block; font: 600 .875rem/1 var(--display); color: var(--accent-deep); margin-bottom: 18px; }
.inc-list b { font: 600 1.125rem/1.2 var(--display); letter-spacing: -0.01em; }
.inc-list p { margin-top: 10px; font-size: .9375rem; color: var(--ink-2); }

.table-scroll { overflow-x: auto; margin-top: 36px; border-radius: var(--r-lg); background: var(--paper); }
.cmp { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 1rem; }
.cmp th, .cmp td { text-align: left; padding: 18px 24px; vertical-align: top; }
.cmp thead th { font: 600 1.125rem/1 var(--display); padding-top: 26px; }
.cmp thead th:last-child { color: var(--accent-deep); }
.cmp tbody tr { border-top: 1px solid var(--sand-2); }
.cmp tbody th { font-weight: 700; width: 22%; }
.cmp td:last-child { background: #FFF1EA; font-weight: 600; }

.geo-case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; align-items: stretch; }
.geo-case-text { background: var(--paper); border-radius: var(--r-lg); padding: 32px; display: grid; gap: 20px; align-content: start; }
.geo-case-text > p { font-size: 1.125rem; }
.geo-case-list { display: grid; gap: 12px; }
.geo-case-list li { padding: 16px 18px; border-radius: var(--r-md); background: var(--bg); }
.geo-case-list b { font-family: var(--display); color: var(--accent-deep); }

.limits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.limits-grid p { background: var(--sand-2); border-radius: var(--r-lg); padding: 26px; color: var(--ink-2); }
.limits-grid b { display: block; margin-bottom: 8px; color: var(--ink); font: 600 1.125rem/1.2 var(--display); }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.rel { display: grid; gap: 8px; padding: 26px; border-radius: var(--r-lg); background: var(--paper); text-decoration: none; transition: transform .3s var(--ease), background-color .3s; }
.rel:hover { transform: translateY(-4px); background: var(--ink); color: var(--paper); }
.rel b { font: 600 1.25rem/1.2 var(--display); }
.rel span { font-size: .9375rem; color: var(--ink-2); }
.rel:hover span { color: #C9CCD2; }
.rel em { font-style: normal; font-weight: 700; margin-top: 10px; }

@media (max-width: 1100px) {
  .def, .geo-case-grid { grid-template-columns: 1fr; }
  .who-grid, .models-grid, .limits-grid, .related-grid { grid-template-columns: 1fr 1fr; }
  .inc-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .who-grid, .models-grid, .limits-grid, .related-grid, .inc-list { grid-template-columns: 1fr; }
  .models-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .bento--page { grid-template-rows: auto auto; }
  .tile--wide { min-height: 300px; }
  .def-answer { padding: 22px; }
}
.cmp--3 td:last-child { background: none; font-weight: 500; }
.cmp--3 thead th:last-child { color: var(--ink); }
.cmp--3 td:nth-child(3) { background: #FFF1EA; font-weight: 600; }
.cmp--3 thead th:nth-child(3) { color: var(--accent-deep); }
.who-grid b a { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) left bottom / 100% 2px no-repeat; }
.nw { white-space: nowrap; }

/* Horizontal bars (ROMI by channel) */
.hbars { display: grid; gap: 14px; margin-top: auto; }
.hb { display: grid; grid-template-columns: 7.5em 1fr 4em; align-items: center; gap: 12px; font-size: .9375rem; }
.hb span { color: var(--ink-2); }
.hb i { display: block; height: 22px; width: calc(var(--w) * 100%); min-width: 6px; background: var(--accent); border-radius: 6px; transform-origin: left; }
.hb b { font-family: var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.hb--neg i { background: var(--ink); }
.hb--neg b { color: var(--accent-deep); }

/* Mini dashboard in hero tile */
.mini-romi { display: grid; gap: 6px; margin: 16px 0 4px; }
.mini-romi p { display: flex; justify-content: space-between; padding: 9px 14px; border-radius: 10px; background: #262B36; font-size: .9375rem; }
.mini-romi b { font-family: var(--display); color: var(--accent); }
.mini-romi .neg b { color: #FF8A73; }
@media (max-width: 640px) { .hb { grid-template-columns: 6.5em 1fr 3.6em; font-size: .875rem; } }

/* ---------- Listing pages: head, chips ---------- */
.page-head { padding-top: 40px; margin-top: 0; }
.page-head-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.page-head .hero-lead { margin-top: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--sand-2); color: var(--ink); font: 600 .9375rem/1 var(--text); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.chip:hover { background: var(--ink); color: var(--paper); }
.chip:active { transform: scale(.96); }
.chip.is-on { background: var(--accent); color: var(--ink); }

/* Case cards */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.ccard { position: relative; background: var(--paper); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: transform .35s var(--ease); }
.ccard:hover { transform: translateY(-6px); }
.ccard[hidden] { display: none; }
.ccard--big { grid-column: span 2; }
.ccard--accent { background: var(--accent); }
.ccard--dark { background: var(--ink); color: var(--paper); }
.ccard-img { aspect-ratio: 16 / 7; border-radius: var(--r-md); margin: -12px -12px 6px; }
.ccard-tag { font-size: .8125rem; font-weight: 700; opacity: .75; }
.ccard-h { font: 600 clamp(20px, 1.6vw, 26px)/1.15 var(--display); letter-spacing: -0.02em; overflow-wrap: break-word; hyphens: auto; }
.ccard-h a { text-decoration: none; }
.ccard-h a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.ccard-t { font-size: .9375rem; opacity: .85; }
.ccard-num { margin-top: auto; padding-top: 10px; }
.ccard-num b { display: block; font: 700 clamp(30px, 2.8vw, 44px)/1 var(--display); letter-spacing: -0.03em; }
.ccard-num span { display: block; margin-top: 6px; font-size: .875rem; }
.ccard .spark { margin: 4px 0 0; height: 60px; }
.case-empty { grid-column: 1 / -1; padding: 32px; border-radius: var(--r-lg); background: var(--sand-2); }

/* Calculator */
.calc-box { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.calc-left { background: var(--paper); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); }
.calc-note { margin-top: 12px; color: var(--ink-2); }
.calc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.calc-item { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--r-md); background: var(--bg); cursor: pointer; transition: background-color .2s; }
.calc-item:hover { background: var(--sand-2); }
.calc-item:has(input:checked) { background: #FFE1D3; }
.calc-item input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent-deep); flex: none; }
.calc-item b { display: block; font-weight: 700; }
.calc-item em { font-style: normal; font-size: .875rem; color: var(--ink-2); }
.calc-right { background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 6px; }
.calc-k { font-size: .875rem; color: #A7ABB3; margin-top: 12px; }
.calc-v { font: 700 clamp(36px, 3.6vw, 56px)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc-v--sm { font-size: clamp(28px, 2.6vw, 40px); }
.calc-save { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: #262B36; color: var(--accent); font-weight: 700; font-size: .9375rem; }
.calc-right .btn { margin-top: auto; align-self: flex-start; }
.lead-calc { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: rgba(20, 23, 31, .12); font-weight: 600; }

/* Price tables */
.ptables { display: grid; gap: 16px; }
.pblock { background: var(--paper); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); scroll-margin-top: 100px; }
.pblock-h { font: 600 clamp(22px, 2vw, 30px)/1.1 var(--display); letter-spacing: -0.02em; margin-bottom: 18px; }
.pblock-h a { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) left bottom / 100% 3px no-repeat; }
.ptable { width: 100%; border-collapse: collapse; font-size: .9875rem; }
.ptable th, .ptable td { text-align: left; padding: 14px 12px; vertical-align: top; }
.ptable thead th { font-size: .8125rem; color: var(--ink-2); font-weight: 600; padding-top: 0; }
.ptable tbody tr { border-top: 1px solid var(--sand-2); }
.ptable tbody th { font-weight: 700; width: 22%; }
.ptable td:last-child { width: 22%; font: 600 1rem/1.3 var(--display); text-align: right; white-space: nowrap; }
.ptable-hl { background: #FFF1EA; }

@media (max-width: 1100px) {
  .page-head-row { grid-template-columns: 1fr; gap: 20px; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .calc-box { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .case-grid, .calc-list { grid-template-columns: 1fr; }
  .ccard--big { grid-column: auto; }
  .ptable thead { display: none; }
  .ptable, .ptable tbody, .ptable tr, .ptable th, .ptable td { display: block; width: auto !important; text-align: left !important; white-space: normal !important; }
  .ptable tr { padding: 14px 0; }
  .ptable th, .ptable td { padding: 2px 0; }
  .ptable td:last-child { margin-top: 6px; color: var(--accent-deep); }
}

/* ---------- Case detail page ---------- */
.case-hero { padding-top: 40px; margin-top: 0; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case-tags span { padding: 6px 12px; border-radius: 999px; background: var(--sand-2); font-size: .875rem; font-weight: 700; }
.case-tags span:first-child { background: var(--accent); }
.case-title { margin-top: 20px; max-width: 18ch; font-size: clamp(36px, 4.6vw, 72px); }
.case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.case-metrics .tile { min-height: 180px; justify-content: space-between; }
.tile-v--case { font-size: clamp(32px, 3.4vw, 54px); margin-top: 0; white-space: nowrap; }
.case-cover { margin-top: 14px; aspect-ratio: 21 / 8; border-radius: var(--r-lg); }

.case-brief { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }
.case-facts { display: grid; gap: 10px; margin: 0; position: sticky; top: 110px; }
.case-facts div { background: var(--paper); border-radius: var(--r-md); padding: 16px 20px; }
.case-facts dt { font-size: .8125rem; color: var(--ink-2); font-weight: 600; }
.case-facts dd { margin: 4px 0 0; font-weight: 700; }
.case-facts a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.case-task p { margin-top: 20px; font-size: clamp(18px, 1.4vw, 22px); line-height: 1.55; max-width: 60ch; }

.start-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.start-grid li { position: relative; padding: 24px 24px 24px 56px; border-radius: var(--r-lg); background: var(--sand-2); font-weight: 600; }
.start-grid li::before { content: "×"; position: absolute; left: 22px; top: 20px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: .875rem; }

.geo-case-text .btn { justify-self: start; margin-top: 8px; }

.insight-box { background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }
.insight-h { font: 600 clamp(24px, 2.4vw, 36px)/1.1 var(--display); letter-spacing: -0.02em; color: var(--accent); }
.insight-box p { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.5; }

.case-grid--2 { grid-template-columns: 1fr 1fr; }

@media (max-width: 1100px) {
  .case-brief, .insight-box { grid-template-columns: 1fr; }
  .case-facts { position: static; grid-template-columns: 1fr 1fr; }
  .start-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .case-metrics, .start-grid, .case-facts, .case-grid--2 { grid-template-columns: 1fr; }
  .case-metrics .tile { min-height: 0; gap: 8px; }
  .tile-v--case { white-space: normal; }
  .case-cover { aspect-ratio: 4 / 3; }
}

/* ---------- Industry pages ---------- */
.queries-box { background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; }
.queries-head p { margin-top: 16px; color: #A7ABB3; max-width: 40ch; }
.q-list { display: flex; flex-wrap: wrap; gap: 10px; }
.q { padding: 12px 18px; border-radius: 999px; background: #262B36; font-weight: 600; font-size: .9375rem; }
.q::before { content: "⌕ "; color: #A7ABB3; }
.q--ai { background: var(--accent); color: var(--ink); }
.q--ai::before { content: "✦ "; color: var(--ink); }
.related-grid--4 { grid-template-columns: repeat(4, 1fr); }
.ccard--other { background: var(--sand-2); }
.ccard--other .btn { margin-top: auto; align-self: flex-start; position: relative; z-index: 1; }
@media (max-width: 1100px) {
  .queries-box { grid-template-columns: 1fr; }
  .related-grid--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) { .related-grid--4 { grid-template-columns: 1fr; } }
.hero-title { overflow-wrap: break-word; hyphens: auto; }
.bento .tile-v--case { white-space: normal; }

/* Fix: metric values wrap inside tiles; "all cases" link as a button with breathing room */
.tile-v--case { white-space: normal !important; font-size: clamp(28px, 2.6vw, 44px); overflow-wrap: anywhere; }
.cases-more { margin-top: 40px; }
.cases-more .link { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--sand-2); text-decoration: none; font-weight: 700; transition: background-color .2s, color .2s; }
.cases-more .link::after { content: "→"; }
.cases-more .link:hover { background: var(--ink); color: var(--paper); }
.inc-list--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .inc-list--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .inc-list--3 { grid-template-columns: 1fr; } }

/* Long Russian words on phones: smaller display sizes + last-resort wrap; grids never grow from min-content */
.services { overflow-x: clip; }
@media (max-width: 1100px) { .def, .geo-case-grid, .faq, .case-brief, .insight-box, .queries-box { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .hero-title { font-size: max(22px, min(8.6vw, var(--fit))); overflow-wrap: anywhere; }
  .h2 { font-size: 28px; overflow-wrap: anywhere; }
}

/* ---------- Services hub ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc { background: var(--paper); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.svc--accent { background: var(--accent); }
.svc--dark { background: var(--ink); color: var(--paper); }
.svc-h { font: 600 clamp(22px, 2vw, 30px)/1.1 var(--display); letter-spacing: -0.02em; }
.svc-h a { text-decoration: none; }
.svc-h a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.svc-t { font-size: .9875rem; opacity: .85; }
.svc-p { font: 600 1.125rem/1 var(--display); }
.svc-list { display: grid; gap: 6px; margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(20, 23, 31, .12); }
.svc--dark .svc-list { border-color: rgba(251, 250, 247, .14); }
.svc-list a { text-decoration: none; font-weight: 600; font-size: .9375rem; }
.svc-list a::before { content: "→ "; color: var(--accent-deep); }
.svc--dark .svc-list a::before, .svc--accent .svc-list a::before { color: inherit; }
.svc-list a:hover { text-decoration: underline; }
.q-list--links a { text-decoration: none; color: inherit; }
.q-list--links .q::before { content: none; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.person { background: var(--paper); border-radius: var(--r-lg); padding: 14px 14px 24px; }
.person-img { aspect-ratio: 4 / 5; border-radius: var(--r-md); }
.person-h { margin: 18px 10px 8px; font: 600 1.25rem/1.15 var(--display); }
.person p { margin: 0 10px; font-size: .9375rem; color: var(--ink-2); }

/* ---------- Reviews ---------- */
.reviews-cards { columns: 2 340px; column-gap: 16px; }
.review { break-inside: avoid; margin-bottom: 16px; background: var(--sand-2); border-radius: var(--r-lg); padding: 32px; display: grid; gap: 14px; }
.review-text { margin: 0; }
.review-text p { font-size: 1.0625rem; line-height: 1.55; }
.review-author { font-weight: 700; font-size: .9375rem; }
.review-links { background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: 32px; display: grid; gap: 16px; }
.review-links .review-list { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.review-list { display: grid; gap: 8px; }
.review-list a { display: block; padding: 14px 18px; border-radius: 12px; background: #262B36; text-decoration: none; font-weight: 700; }
.review-list a:hover { background: var(--accent); color: var(--ink); }

/* ---------- Contacts ---------- */
.contacts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.contact-card { background: var(--paper); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-height: 180px; }
.contact-card--accent { background: var(--accent); }
.contact-card--dark { background: var(--ink); color: var(--paper); }
.contact-v { font: 600 clamp(20px, 1.8vw, 26px)/1.2 var(--display); text-decoration: none; overflow-wrap: anywhere; }
.contact-v--sm { font-size: clamp(17px, 1.3vw, 20px); }
.contact-card .tile-n { margin-top: auto; }
.contact-map { margin-top: 14px; aspect-ratio: 21 / 8; border-radius: var(--r-lg); }
.contact-map { position: relative; overflow: hidden; background: #ECEAE4; }
.contact-map > iframe, .contact-map > ymaps, .contact-map > div { display: block; width: 100% !important; height: 100% !important; border: 0; }

/* ---------- Prose (policy, articles) ---------- */
.prose-body { max-width: 72ch; }
.prose-body h2 { font: 600 clamp(22px, 2vw, 28px)/1.2 var(--display); margin: 40px 0 12px; letter-spacing: -0.01em; }
.prose-body p, .prose-body li { font-size: 1.0625rem; line-height: 1.7; }
.prose-body p + p { margin-top: 12px; }

/* ---------- Big calculator ---------- */
.bc-fields { display: grid; gap: 18px; margin-top: 24px; }
.bc-field { display: grid; gap: 8px; font-weight: 700; font-size: .9375rem; }
.bc-field select { height: 52px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--bg); font: 600 1rem var(--text); color: var(--ink); }
.bc-field input[type=range] { accent-color: var(--accent-deep); height: 28px; }
.bc-field output { color: var(--accent-deep); font-family: var(--display); }
.bc-checks { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bc-checks legend { font-weight: 700; font-size: .9375rem; margin-bottom: 8px; padding: 0; }

/* ---------- Visibility check ---------- */
.check-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: start; }
.check-sample { background: var(--paper); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); display: grid; gap: 20px; }
.ui-table--light th { border-bottom-color: var(--sand); }
.ui-table--light td { border-bottom-color: var(--sand-2); }
.ui-table--light caption { color: var(--ink-2); }
.check-list { display: grid; gap: 8px; }
.check-list li { padding-left: 26px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent-deep); border-bottom: 2.5px solid var(--accent-deep); transform: rotate(-45deg); }
.check-form { background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); }
.check-form-h { font: 600 1.5rem/1.1 var(--display); margin-bottom: 4px; }
.check-form a { color: var(--accent); }
.check-form .form-msg { color: var(--accent); }

@media (max-width: 1100px) {
  .svc-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .contacts-grid { grid-template-columns: 1fr 1fr; }
  .check-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .svc-grid, .team-grid, .contacts-grid, .bc-checks { grid-template-columns: 1fr; }
  .contact-map { aspect-ratio: 4 / 3; }
}

/* ---------- Articles and glossary ---------- */
.article-title { max-width: 22ch; font-size: clamp(32px, 4vw, 60px); margin-top: 8px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.article-meta span { padding: 6px 12px; border-radius: 999px; background: var(--sand-2); font-size: .875rem; font-weight: 600; }
.article { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start; }
.article-side { position: sticky; top: 100px; display: grid; gap: 20px; }
.toc-h { font-weight: 700; }
.toc { list-style: decimal; padding-left: 20px; display: grid; gap: 8px; font-size: .9375rem; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--accent-deep); text-decoration: underline; }
.prose-body .def-answer { margin-bottom: 8px; }
.prose-body ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin: 12px 0; }
.prose-body ol { list-style: decimal; padding-left: 24px; display: grid; gap: 6px; margin: 12px 0; }
.prose-note { padding: 20px 24px; border-radius: var(--r-md); background: var(--ink); color: var(--paper); margin: 20px 0; }
.prose-body .table-scroll { margin: 20px 0; }
.cmp--plain td:last-child { background: none; font-weight: 500; }
.prose-body .faq-list { margin-top: 12px; }
.prose-body .faq-list details { background: var(--paper); }
.q-list--light .q { background: var(--paper); color: var(--ink); text-decoration: none; }
.q-list--light .q:hover { background: var(--accent); }
.filters--side { margin-top: 0; }
@media (max-width: 1100px) { .article { grid-template-columns: minmax(0, 1fr); } .article-side { position: static; order: 2; } }

/* Footer sitemap: three titled columns */
.foot-in { grid-template-columns: 1fr 2fr; }
.foot-nav { grid-template-columns: repeat(3, 1fr); }
.foot-h { color: var(--accent); font-weight: 700; font-size: .8125rem; text-transform: none; margin-bottom: 4px; }
@media (max-width: 1100px) { .foot-in { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .foot-nav { grid-template-columns: 1fr 1fr; } .foot-nav ul:first-child { grid-column: 1 / -1; } }
.geo-check { margin-top: 24px; }
.sources { list-style: none !important; padding-left: 0 !important; }
.sources a { color: var(--ink-2); text-underline-offset: 3px; }
.sources a:hover { color: var(--accent-deep); }
.prose-small { margin-top: 24px; font-size: .875rem !important; color: var(--ink-2); padding: 14px 18px; border-radius: 12px; background: var(--sand-2); }
.prose-code { margin: 16px 0; padding: 20px 24px; border-radius: var(--r-md); background: #1E222C; color: #E7E2D8; overflow-x: auto; font: 500 .9375rem/1.6 ui-monospace, Consolas, monospace; }
.ind-cover { aspect-ratio: 2 / 1; margin-top: 0; }
.ccard-img--ind { aspect-ratio: 4 / 3; }
.svc-img { aspect-ratio: 16 / 9; border-radius: var(--r-md); margin-bottom: 18px; }

/* ---------- Подложки ----------
   Фото на всю ширину экрана под блоком + тонировка. Картинку блока задаёт --bg-img
   (по умолчанию ниже; в Битриксе это поле «Фон блока», оно пишет style="--bg-img:url(...)"). */
.hero, .page-head, .case-hero, .process, .lead, .related, .includes, .limits, .versus, .results, .who, .queries, .geo-case, .reviews, .contacts { position: relative; isolation: isolate; }
.hero::before, .page-head::before, .case-hero::before, .process::before, .lead::before, .related::before,
.faq-band::before, .geo::before, .foot::before, .versus::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: var(--bg-tint), var(--bgi, none) center / cover no-repeat; pointer-events: none;
}
/* фото подложки грузится, только когда блок близко к экрану (класс bg-on ставит site.js); первые экраны сразу */
.hero, .page-head, .case-hero, .bg-on { --bgi: var(--bg-img); }
/* первые экраны: светлое фото, к низу растворяется в фон страницы */
.hero, .page-head, .case-hero { --bg-tint: linear-gradient(180deg, rgba(242,239,233,.80) 0%, rgba(242,239,233,.90) 60%, var(--bg) 100%); }
.hero { --bg-img: url(/img/bg/window.webp); }
.hero--page { --bg-img: url(/img/bg/city.webp); }
.page-head { --bg-img: url(/img/bg/lobby.webp); padding-bottom: 56px; }
.case-hero { --bg-img: url(/img/bg/skyline.webp); padding-bottom: 8px; }
.hero::before, .page-head::before, .case-hero::before { top: -96px; }

/* этапы работы: светлое фото, карточки как матовое стекло */
.process { --bg-img: url(/img/bg/living.webp); --bg-tint: linear-gradient(rgba(242,239,233,.74), rgba(242,239,233,.84)); padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
.process-list li { background: rgba(251,250,247,.74); border: 1px solid rgba(255,255,255,.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.process-line { background: rgba(20,23,31,.12); }

/* форма заявки: тёмное фото команды, оранжевая карточка с фактурой */
.lead { --bg-img: url(/img/bg/team.webp); --bg-tint: linear-gradient(90deg, rgba(20,23,31,.80), rgba(20,23,31,.66)); padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
.lead-box { background: linear-gradient(rgba(255,90,31,.93), rgba(255,90,31,.93)), url(/img/bg/warm.webp) center / cover; box-shadow: 0 30px 80px rgba(0,0,0,.35); }

/* «Смотрите также» и сравнение: тёплое дерево, сильно высветлено */
.related { --bg-img: url(/img/bg/shelf.webp); --bg-tint: linear-gradient(rgba(242,239,233,.88), rgba(242,239,233,.93)); padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.versus { --bg-img: url(/img/bg/living.webp); --bg-tint: linear-gradient(rgba(242,239,233,.86), rgba(242,239,233,.92)); padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }

/* FAQ: полоса уже на всю ширину, добавляем фото под песочный тон */
.faq-band { position: relative; isolation: isolate; --bg-img: url(/img/bg/window.webp); --bg-tint: linear-gradient(rgba(231,226,216,.86), rgba(231,226,216,.92)); }
.faq-band details { background: rgba(251,250,247,.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* тёмные блоки: фото цеха под графитом + свечение акцента и сетка точек */
.geo, .foot { position: relative; isolation: isolate; --bg-img: url(/img/bg/workshop.webp); --bg-tint: radial-gradient(700px 420px at 12% 18%, rgba(255,90,31,.20), transparent 65%), radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(rgba(20,23,31,.88), rgba(20,23,31,.92)); background: var(--ink); }
.foot { --bg-tint: radial-gradient(640px 380px at 92% 10%, rgba(255,90,31,.14), transparent 65%), linear-gradient(rgba(20,23,31,.92), rgba(20,23,31,.95)); }
.models, .insight-box { background: radial-gradient(600px 360px at 90% 0%, rgba(255,90,31,.22), transparent 65%), radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(rgba(20,23,31,.88), rgba(20,23,31,.9)), url(/img/bg/workshop.webp) center / cover; }

/* блоки с карточками без фото: мягкое свечение и сетка точек, чтобы фон не был пустым */
.includes::after, .limits::after, .results::after, .who::after, .queries::after, .geo-case::after, .reviews::after, .contacts::after {
  content: ""; position: absolute; z-index: -1; inset: -40px 0; left: 50%; width: 100vw; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(520px 340px at 88% 12%, rgba(255,90,31,.10), transparent 70%), radial-gradient(rgba(20,23,31,.07) 1px, transparent 1px) 0 0 / 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

/* тёмные и оранжевые карточки: тот же приём в малом масштабе */
.tile--dark, .card--dark, .ccard--dark, .svc--dark { background-image: radial-gradient(360px 220px at 100% 0%, rgba(255,90,31,.22), transparent 70%), radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: auto, 20px 20px; }
.tile--accent, .ccard--accent, .svc--accent { background-image: radial-gradient(360px 220px at 100% 0%, rgba(255,255,255,.22), transparent 70%), radial-gradient(rgba(20,23,31,.08) 1px, transparent 1px); background-size: auto, 20px 20px; }
/* светлые подложки плавно входят и выходят, без полос на стыках */
.process::before, .related::before, .versus::before { -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); }
.hero, .page-head, .case-hero { --bg-tint: linear-gradient(180deg, rgba(242,239,233,.70) 0%, rgba(242,239,233,.86) 60%, var(--bg) 100%); }

/* ---------- Мобильное меню ---------- */
.burger { display: none; }
.mnav[hidden] { display: none; }
@media (max-width: 1100px) {
  .burger { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--ink); cursor: pointer; }
  .burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--paper); transition: transform .25s var(--ease), background .2s; }
  .burger span { position: relative; }
  .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
  .burger span::before { top: -6px; } .burger span::after { top: 6px; }
  .burger[aria-expanded=true] span { background: transparent; }
  .burger[aria-expanded=true] span::before { transform: translateY(6px) rotate(45deg); }
  .burger[aria-expanded=true] span::after { transform: translateY(-6px) rotate(-45deg); }
  .burger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .mnav { position: fixed; inset: 0; z-index: 29; overflow-y: auto; padding-top: 84px; padding-bottom: 32px;
    background: radial-gradient(520px 340px at 100% 0%, rgba(255,90,31,.12), transparent 70%), radial-gradient(rgba(20,23,31,.06) 1px, transparent 1px) 0 0 / 22px 22px, var(--bg);
    animation: mnavIn .25s var(--ease); }
  .mnav-in { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
  .mnav-col { display: grid; gap: 2px; align-content: start; }
  .mnav-h { font-size: .8125rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
  .mnav-col a { font: 600 1.25rem/1.25 var(--display); letter-spacing: -0.02em; text-decoration: none; padding: 9px 0; border-bottom: 1px solid rgba(20,23,31,.08); }
  .mnav-col a:hover { color: var(--accent-deep); }
  .mnav-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 8px; }
  .mnav-phone { font: 600 1.5rem/1.2 var(--display); text-decoration: none; }
  html.menu-open { overflow: hidden; }
  html.menu-open .top { transform: none; }
}
@media (max-width: 640px) {
  .mnav { padding-top: 76px; }
  .mnav-in { grid-template-columns: 1fr; gap: 22px; }
  .mnav-col a { font-size: 1.125rem; }
  .mnav-foot .btn { width: 100%; justify-content: center; }
}
@media (max-width: 379px) {
  .top-in .btn--sm { display: none; }
  .burger { margin-left: auto; }
}
@keyframes mnavIn { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .mnav { animation: none; } }
@media (max-width: 440px) {
  .top-in { gap: 8px; }
  .logo { font-size: .875rem; gap: 8px; white-space: normal; line-height: 1.1; max-width: 140px; }
  .logo-mark { width: 22px; height: 22px; }
  .top-in .btn--sm { padding: 0 10px; font-size: .75rem; }
  .burger { width: 40px; height: 40px; }
}
.logo-mark { flex: none; }

/* ---------- Фоновое видео ----------
   Блок с классом has-video: под тонировкой видео вместо фото. Пока видео не играет, видна заставка (poster). */
.has-video { --bg-img: linear-gradient(transparent, transparent); }
.bgv { position: absolute; z-index: -2; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); overflow: hidden; pointer-events: none; }
.bgv video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero > .bgv, .page-head > .bgv { top: -96px; }
.process > .bgv { -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); }
/* первые экраны с видео: текст слева на светлом, справа видео заметнее */
.hero.has-video, .page-head.has-video { --bg-tint: linear-gradient(90deg, rgba(242,239,233,.90) 0%, rgba(242,239,233,.78) 45%, rgba(242,239,233,.42) 100%), linear-gradient(180deg, transparent 75%, var(--bg) 100%); }
.process.has-video { --bg-tint: linear-gradient(rgba(242,239,233,.70), rgba(242,239,233,.80)); }
@media (max-width: 1100px) {
  .hero.has-video, .page-head.has-video { --bg-tint: linear-gradient(180deg, rgba(242,239,233,.84), rgba(242,239,233,.90) 70%, var(--bg)); }
}


/* ---------- Появление первого экрана ----------
   На чистом CSS, без скриптов: начинается сразу и не нагружает процессор (только opacity/transform).
   Абзац и картинка первого экрана (кандидаты LCP) двигаются без прозрачности. */
@keyframes heroRise { from { opacity: 0; transform: translateY(26px); } }
@keyframes heroSlide { from { transform: translateY(18px); } }
@keyframes tileIn { from { opacity: 0; transform: translateY(36px) scale(.96); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-title .w { animation: heroRise .9s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-title .w:nth-child(2) { animation-delay: .08s; }
  .hero-title .w:nth-child(3) { animation-delay: .16s; }
  .hero-title .w:nth-child(4) { animation-delay: .24s; }
  .hero-title .w:nth-child(n+5) { animation-delay: .32s; }
  .hero .crumbs, .page-head .crumbs, .hero-cta, .hero-facts { animation: heroRise .8s cubic-bezier(.16, 1, .3, 1) .35s both; }
  .hero-lead { animation: heroSlide .8s cubic-bezier(.16, 1, .3, 1) .3s both; }
  .bento .tile { animation: tileIn .9s cubic-bezier(.16, 1, .3, 1) both; }
  .bento .tile--img { animation-name: heroSlide; }
  .bento .tile:nth-child(2) { animation-delay: .09s; }
  .bento .tile:nth-child(3) { animation-delay: .18s; }
  .bento .tile:nth-child(4) { animation-delay: .27s; }
}

/* На телефоне первый экран показывается сразу, без появления: так он быстрее для поиска (PageSpeed 99–100).
   Счётчики, столбики и линия в плитках анимируются и здесь, на компьютере появление остаётся целиком. */
@media (max-width: 700px) {
  .hero-title .w, .hero-lead, .hero-cta, .hero-facts, .hero .crumbs, .page-head .crumbs, .bento .tile { animation: none; }
}

/* ---------- Уведомление о cookie ---------- */
.cookie { position: fixed; z-index: 40; left: 20px; bottom: 20px; max-width: 440px; padding: 18px 20px; border-radius: var(--r-md);
  background: var(--paper); color: var(--ink); box-shadow: 0 18px 50px rgba(20,23,31,.18), 0 0 0 1px rgba(20,23,31,.06);
  font-size: .875rem; line-height: 1.5; }
.cookie a { color: inherit; }
.cookie-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cookie.is-hiding { opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 640px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 14px 16px; }
  .cookie-btns .btn { flex: 1; justify-content: center; }
}
html.menu-open .cookie { display: none; }
@media (prefers-reduced-motion: reduce) { .cookie { animation: none; } }

/* ---------- Связь и заявки ---------- */
.top-msg { display: inline-flex; gap: 6px; }
.top-msg a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sand-2); color: var(--ink); transition: background .2s, color .2s; }
.top-msg a:hover { background: var(--ink); color: var(--paper); }
.top-msg svg, .dock svg, .mnav-msg svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 1100px) { .top-msg { display: none; } }
.mnav-msg { display: flex; gap: 10px; }
.mnav-msg a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--sand-2); font-weight: 700; text-decoration: none; }

/* нижняя панель на телефоне */
.dock { display: none; }
@media (max-width: 760px) {
  .dock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; position: fixed; z-index: 35; left: 0; right: 0; bottom: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--paper);
    box-shadow: 0 -1px 0 rgba(20,23,31,.08), 0 -10px 30px rgba(20,23,31,.08); }
  .dock a { display: grid; justify-items: center; gap: 3px; padding: 7px 4px; border-radius: 12px; font-size: .6875rem; font-weight: 700; text-decoration: none; color: var(--ink); }
  .dock a.dock-main { background: var(--accent); color: var(--ink); }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .cookie { bottom: calc(78px + env(safe-area-inset-bottom)); }
  html.menu-open .dock { display: none; }
}

/* форма: способ связи, тема, срок ответа */
.via { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.via legend { font-size: .875rem; font-weight: 700; margin-bottom: 6px; padding: 0; }
.via { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.via legend { grid-column: 1 / -1; }
.via label { display: block; cursor: pointer; }
.via input { position: absolute; opacity: 0; pointer-events: none; }
.via span { display: block; text-align: center; padding: 10px 6px; border-radius: 12px; background: rgba(251,250,247,.55); font-weight: 700; font-size: .875rem; border: 2px solid transparent; }
.via input:checked + span { background: var(--paper); border-color: var(--ink); }
.via input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.form-note { font-size: .8125rem; font-weight: 600; opacity: .85; }
.form-topic { padding: 10px 14px; border-radius: 12px; background: rgba(251,250,247,.6); font-weight: 700; font-size: .875rem; }
.case-cta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ccard .js-topic { margin-top: 10px; font-weight: 700; font-size: .875rem; }

/* квиз */
.quiz-box { background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 56px); display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px;
  background-image: radial-gradient(600px 360px at 100% 0%, rgba(255,90,31,.22), transparent 65%), radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: auto, 22px 22px; }
.quiz-head p { margin-top: 14px; color: #C9CCD3; max-width: 40ch; }
.quiz-step { border: 0; padding: 0; margin: 0; }
.quiz-step[hidden] { display: none; }
.quiz-step legend { font: 600 1.25rem/1.2 var(--display); margin-bottom: 16px; padding: 0; }
.quiz-prog { font-size: .8125rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.quiz-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quiz-opts label { cursor: pointer; }
.quiz-opts input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-opts span { display: block; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-weight: 600; }
.quiz-opts input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.quiz-opts input:focus-visible + span { outline: 2px solid var(--paper); outline-offset: 2px; }
.quiz-nav { display: flex; gap: 10px; margin-top: 18px; }
.quiz-nav .btn--ghost { color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); background: none; }
.quiz-result { padding: 16px 18px; border-radius: 14px; background: rgba(255,90,31,.14); border: 1px solid rgba(255,90,31,.45); margin-bottom: 16px; }
.quiz-result b { display: block; font: 700 clamp(24px, 3vw, 34px)/1.1 var(--display); color: var(--accent); margin-top: 4px; }
.quiz-form .lead-fields { display: grid; gap: 12px; }
.quiz-form label { display: grid; gap: 6px; font-size: .875rem; font-weight: 700; }
.quiz-form input:not([type=checkbox]):not([type=radio]) { height: 52px; padding: 0 16px; border-radius: 12px; border: 2px solid transparent; background: var(--paper); font: 600 1rem var(--text); color: var(--ink); }
.quiz-form .via span { background: rgba(255,255,255,.07); color: var(--paper); }
.quiz-form .via input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.quiz-form .check { display: flex; gap: 10px; font-weight: 600; }
.quiz-form .check a { color: inherit; }
@media (max-width: 900px) { .quiz-box { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 480px) { .quiz-opts { grid-template-columns: 1fr; } }

/* форма при попытке уйти */
.exit { border: 0; padding: 0; border-radius: var(--r-lg); max-width: 520px; width: calc(100% - 32px); background: var(--paper); color: var(--ink); box-shadow: 0 30px 90px rgba(20,23,31,.35); }
.exit::backdrop { background: rgba(20,23,31,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.exit[open] { animation: cookieIn .3s var(--ease); }
.exit-in { padding: clamp(24px, 4vw, 40px); }
.exit-h { font: 700 clamp(24px, 3vw, 32px)/1.08 var(--display); letter-spacing: -0.02em; padding-right: 32px; }
.exit-in > p { margin: 12px 0 18px; color: var(--ink-2); }
.exit-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--sand-2); font-size: 1.25rem; cursor: pointer; }
.exit .lead-form input:not([type=checkbox]) { background: var(--bg); }
.exit-skip { background: none; border: 0; padding: 8px 0 0; color: var(--ink-2); font: 600 .875rem var(--text); text-decoration: underline; cursor: pointer; }

.quiz-nav [hidden], .quiz-step[hidden] { display: none; }
.quiz-form .via legend { font: 700 .875rem/1.4 var(--text); margin-bottom: 6px; }

/* поле-ловушка для ботов: людям не видно, боты заполняют */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- 404 ---------- */
.e404 { padding-bottom: 72px; }
.e404-top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.e404-k { font: 600 .8125rem/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 18px; }
.e404-search { display: flex; align-items: center; gap: 12px; max-width: 560px; margin-top: 32px; padding: 16px 20px; border-radius: 999px; background: var(--paper); box-shadow: 0 1px 0 var(--sand), 0 18px 40px -24px rgba(20,23,31,.35); font: 500 1rem/1.2 var(--text); color: var(--ink-2); }
.e404-search svg { width: 20px; height: 20px; flex: none; color: var(--ink); }
.e404-q { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.e404-path { color: var(--ink); }
.e404-caret { width: 2px; height: 1.2em; flex: none; background: var(--accent); animation: blink 1s steps(1) infinite; margin-left: -10px; }
.e404-found { margin-top: 14px; padding-left: 20px; font-size: .9375rem; color: var(--ink-2); }
.e404-found b { color: var(--ink); }
.e404-art { --px: 0; --py: 0; display: flex; justify-content: center; align-items: center; gap: clamp(4px, 1vw, 14px); font: 700 clamp(120px, 17vw, 260px)/.8 var(--display); letter-spacing: -.06em; color: var(--ink); user-select: none; }
.e404-d { display: inline-block; transform: translate(calc(var(--px) * -14px), calc(var(--py) * -10px)); transition: transform .5s var(--ease); }
.e404-d:last-child { color: var(--accent); transform: translate(calc(var(--px) * 14px), calc(var(--py) * 10px)); }
.e404-radar { position: relative; flex: none; width: .78em; height: .78em; border-radius: 50%; background: var(--ink); overflow: hidden; transform: translate(calc(var(--px) * 6px), calc(var(--py) * 6px)); transition: transform .5s var(--ease);
  box-shadow: inset 0 0 0 .045em var(--ink), inset 0 0 0 .05em rgba(255,90,31,.5);
  background-image: radial-gradient(circle, transparent 0 22%, rgba(251,250,247,.12) 22.5% 23%, transparent 23.5% 46%, rgba(251,250,247,.12) 46.5% 47%, transparent 47.5%),
    linear-gradient(rgba(251,250,247,.1), rgba(251,250,247,.1)) center/1px 100% no-repeat, linear-gradient(rgba(251,250,247,.1), rgba(251,250,247,.1)) center/100% 1px no-repeat; }
.e404-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255,90,31,.55), rgba(255,90,31,0) 70deg, transparent); animation: e404spin 3.2s linear infinite; }
.e404-radar i { position: absolute; width: .05em; height: .05em; border-radius: 50%; background: var(--accent); opacity: 0; animation: e404blip 3.2s linear infinite; }
.e404-radar i:nth-of-type(1) { left: 64%; top: 26%; animation-delay: .35s; }
.e404-radar i:nth-of-type(2) { left: 70%; top: 66%; animation-delay: 1.15s; }
.e404-radar i:nth-of-type(3) { left: 24%; top: 58%; animation-delay: 2.2s; }
@keyframes e404spin { to { transform: rotate(360deg); } }
@keyframes e404blip { 0% { opacity: 1; transform: scale(1.6); } 40% { opacity: 0; transform: scale(1); } 100% { opacity: 0; } }
.e404-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 64px; }
.e404-card { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 168px; padding: 22px; border-radius: var(--r-md); background: var(--paper); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.e404-card::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.e404-card:hover, .e404-card:focus-visible { transform: translateY(-6px); box-shadow: 0 24px 40px -28px rgba(20,23,31,.45); }
.e404-card:hover::after, .e404-card:focus-visible::after { transform: scaleX(1); }
.e404-card-h { font: 600 1.125rem/1.15 var(--display); letter-spacing: -.02em; }
.e404-card-t { font-size: .9375rem; line-height: 1.4; color: var(--ink-2); }
.e404-card-p { display: flex; justify-content: space-between; align-items: center; margin-top: auto; font-weight: 700; }
.e404-card-p svg { width: 22px; height: 22px; transition: transform .4s var(--ease); }
.e404-card:hover .e404-card-p svg { transform: translate(3px, -3px); }
.e404-card--accent { background: var(--accent); }
.e404-card--accent .e404-card-t { color: var(--ink); }
.e404-card--accent::after { background: var(--ink); }
.e404-card--dark { background: var(--ink); color: var(--paper); }
.e404-card--dark .e404-card-t { color: #B9BCC4; }
.e404-help { margin-top: 32px; max-width: 760px; color: var(--ink-2); }
.e404-help a { color: var(--ink); font-weight: 700; }
.js .e404-card { animation: tileIn .8s var(--ease) both; }
.js .e404-card:nth-child(2) { animation-delay: .05s; } .js .e404-card:nth-child(3) { animation-delay: .1s; } .js .e404-card:nth-child(4) { animation-delay: .15s; }
.js .e404-card:nth-child(5) { animation-delay: .2s; } .js .e404-card:nth-child(6) { animation-delay: .25s; } .js .e404-card:nth-child(7) { animation-delay: .3s; } .js .e404-card:nth-child(8) { animation-delay: .35s; }
@media (max-width: 1023px) { .e404-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .e404-top { grid-template-columns: 1fr; gap: 8px; }
  .e404-art { order: -1; justify-content: flex-start; font-size: 34vw; }
  .e404-search { margin-top: 24px; padding: 14px 16px; font-size: .9375rem; }
  .e404-grid { margin-top: 40px; gap: 10px; }
  .e404-card { min-height: 0; padding: 18px; }
}
@media (max-width: 420px) { .e404-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .e404-sweep, .e404-radar i, .e404-caret, .js .e404-card { animation: none; }
  .e404-radar i { opacity: 1; }
}

/* H1 по ширине колонки: --w (длина самого длинного слова, ставит tools/fit_h1.py) уменьшает шрифт,
   чтобы слово влезло целиком, без переноса «Продви-жение» */
.hero-text, .e404-text, .page-head, .case-hero, .page-head-row { container-type: inline-size; }
.hero-title { --fit: calc(100cqi / (var(--w, 11) * .82)); font-size: max(26px, min(clamp(40px, 4.6vw, 72px), var(--fit))); }
.page-head-row > .hero-title { --fit: calc((100cqi - 40px) / 2 / (var(--w, 11) * .82)); }
@media (max-width: 1100px) { .page-head-row > .hero-title { --fit: calc(100cqi / (var(--w, 11) * .82)); } }
@media (max-width: 640px) { .hero-title { font-size: max(21px, min(8.6vw, var(--fit))); } }

/* заголовок над облаком ссылок (блог: «Словарь терминов») */
.h2 + .q-list { margin-top: clamp(24px, 3vw, 40px); }

/* ===================== Разнообразие плиток ===================== */

/* Этапы и сроки: тёмная сцена, светящаяся линия и маркер едут за прокруткой, шаги загораются по очереди */
.process { color: var(--paper); --bg-tint: radial-gradient(820px 440px at 88% 0%, rgba(255,90,31,.20), transparent 65%), radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(rgba(20,23,31,.86), rgba(20,23,31,.94)); }
.process.has-video { --bg-tint: radial-gradient(820px 440px at 88% 0%, rgba(255,90,31,.20), transparent 65%), linear-gradient(rgba(20,23,31,.80), rgba(20,23,31,.90)); }
.process::before, .process > .bgv { -webkit-mask-image: none; mask-image: none; }
.process .h2 { color: #fff; }
.process-body { display: block; position: relative; margin-top: 56px; --p: 0; }
.process-line { position: absolute; top: 31px; left: 56px; right: calc((100% - 48px) / 4 - 56px); width: auto; height: 2px; margin: 0; background: rgba(255,255,255,.16); border-radius: 2px; }
.process-line i { inset: 0 auto 0 0; width: calc(var(--p) * 100%); transform: none; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); box-shadow: 0 0 14px rgba(255,90,31,.8); }
.process-line::after { content: ""; position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(255,90,31,.25), 0 0 22px rgba(255,90,31,.9); }
.process-list { counter-reset: st; }
.process-list li { counter-increment: st; position: relative; margin-top: 88px; color: var(--paper); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); transition: color .5s, border-color .5s, background-color .5s; }
.process-list li::before { content: counter(st, decimal-leading-zero); position: absolute; z-index: 1; top: -88px; left: 24px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 700 1.0625rem/1 var(--display); color: rgba(255,255,255,.85); background: rgba(20,23,31,.92); border: 1px solid rgba(255,255,255,.3); transition: background .5s, color .5s, border-color .5s, box-shadow .5s, transform .5s cubic-bezier(.34,1.56,.64,1); }
.process-list li::after { content: ""; position: absolute; top: -88px; left: 24px; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; pointer-events: none; }
.process-list li.is-on { border-color: rgba(255,90,31,.5); background: rgba(255,255,255,.1); }
.process-list li.is-on::before { color: var(--ink); background: linear-gradient(150deg, var(--accent), var(--accent-deep)); border-color: var(--accent); box-shadow: 0 0 28px rgba(255,90,31,.6); transform: scale(1.1); }
.process-list li.is-on::after { animation: stPulse 1.4s ease-out 1; }
.process-list li:last-child.is-on::after { animation: stPulse 2s ease-out infinite; }
@keyframes stPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.st-anim .process-list li:not(.is-on) { color: rgba(251,250,247,.55); }
.st-anim .process-list li:not(.is-on) p, .st-anim .process-list li:not(.is-on) .process-t { opacity: .6; }
.process-t { background: rgba(255,90,31,.16); color: #FFB08F; transition: opacity .5s; }
.process-list b { color: inherit; }
.process-list p { color: rgba(251,250,247,.75); transition: opacity .5s; }
@media (min-width: 701px) { .process-list li { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); } }
@media (max-width: 1100px) {
  .process-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .process-list li { overflow-wrap: break-word; hyphens: auto; }
  .process-line { display: block; top: 50px; bottom: 60px; left: 31px; right: auto; width: 2px; height: auto; }
  .process-line i { inset: 0 0 auto 0; width: 100%; height: calc(var(--p) * 100%); }
  .process-line::after { left: 50%; top: calc(var(--p) * 100%); }
  .process-list li { margin: 0 0 0 84px; }
  .process-list li::before, .process-list li::after { top: 18px; left: -84px; }
}
@media (max-width: 640px) {
  .process-line { left: 23px; top: 42px; }
  .process-list li { margin-left: 64px; padding: 20px; }
  .process-list li::before, .process-list li::after { left: -64px; width: 48px; height: 48px; font-size: .9375rem; }
}

/* Что входит: матовое стекло на цветном свечении, номер контуром */
.includes::after { background: radial-gradient(560px 380px at 10% 35%, rgba(255,90,31,.34), transparent 70%), radial-gradient(600px 420px at 90% 70%, rgba(122,140,255,.30), transparent 70%), radial-gradient(420px 300px at 50% 100%, rgba(255,196,120,.22), transparent 70%), radial-gradient(rgba(20,23,31,.06) 1px, transparent 1px) 0 0 / 24px 24px; }
.inc-list li { position: relative; overflow: hidden; background: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.85); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 24px 44px -32px rgba(20,23,31,.45); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.inc-list li::before { font: 700 2.5rem/1 var(--display); color: transparent; -webkit-text-stroke: 1.2px var(--accent); margin-bottom: 14px; }
.inc-list li:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 #fff, 0 30px 50px -30px rgba(255,90,31,.45); }
@media (min-width: 701px) { .inc-list li { -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); } }

/* свет за курсором на карточках (координаты --mx/--my ставит site.js) */
.inc-list li::after, .model::after, .who-grid li::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255,90,31,.18), transparent 65%); }
.inc-list li:hover::after, .model:hover::after, .who-grid li:hover::after { opacity: 1; }

/* Кому подходит и похожие сетки: светлые карточки чередуются с тёмными */
.who-grid li { position: relative; overflow: hidden; }
.who-grid li:nth-child(4n+2), .who-grid li:nth-child(4n+3):last-child { color: var(--paper); background: var(--ink) radial-gradient(360px 220px at 100% 0%, rgba(255,90,31,.26), transparent 70%); }
.who-grid li:nth-child(4n+2) p, .who-grid li:nth-child(4n+3):last-child p { color: #C9CCD2; }
.who-grid li:nth-child(4n+2):hover, .who-grid li:nth-child(4n+3):last-child:hover { background-color: #1E222C; box-shadow: 0 0 0 1px rgba(255,90,31,.6), 0 24px 44px -24px rgba(255,90,31,.55); }
.who-grid li:nth-child(4n+2):hover p, .who-grid li:nth-child(4n+3):last-child:hover p { color: #E3E5E9; }
.who-grid li:nth-child(4n+2) b a, .who-grid li:nth-child(4n+3):last-child b a { color: var(--paper); }
.who-grid li::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 4px; background: var(--accent); margin-bottom: 18px; transition: width .4s var(--ease); }
.who-grid li:hover::before { width: 56px; background: var(--ink); }
.who-grid li:nth-child(4n+2):hover::before, .who-grid li:nth-child(4n+3):last-child:hover::before { background: var(--accent); }

/* Ограничения: «предупреждения» с пунктирной рамкой и значком */
.limits-grid p { position: relative; padding: 26px 26px 26px 76px; background: rgba(251,250,247,.6); border: 1.5px dashed rgba(20,23,31,.22); transition: border-color .3s; }
.limits-grid p::before { content: "!"; position: absolute; left: 24px; top: 24px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 1rem/1 var(--display); color: var(--accent-deep); background: rgba(255,90,31,.12); box-shadow: 0 0 0 6px rgba(255,90,31,.06); }
.limits-grid p:hover { border-color: rgba(255,90,31,.55); }
@media (max-width: 640px) { .limits-grid p { padding: 74px 20px 22px; } .limits-grid p::before { left: 20px; top: 22px; } }

/* Тёмные модели: стекло на графите, подсветка рамки */
.model { position: relative; overflow: hidden; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: border-color .4s, transform .4s var(--ease); }
.model:hover { border-color: rgba(255,90,31,.5); transform: translateY(-3px); }
@media (min-width: 701px) { .model { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); } }

@media (prefers-reduced-motion: reduce) {
  .process-list li.is-on::after { animation: none; }
  .inc-list li, .model, .who-grid li::before { transition: none; }
}
.limits + .limits .limits-grid p::before { content: "\00D7"; font-size: 1.25rem; color: var(--ink); background: rgba(20,23,31,.08); box-shadow: 0 0 0 6px rgba(20,23,31,.04); }

/* ===================== Нижняя форма заявки: компактная стеклянная панель ===================== */
.lead { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.lead-box { position: relative; overflow: hidden; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start;
  padding: clamp(24px, 3.4vw, 44px); color: var(--paper); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 80px rgba(0,0,0,.35);
  background: radial-gradient(520px 320px at 0% 0%, rgba(255,90,31,.38), transparent 70%), radial-gradient(420px 300px at 100% 100%, rgba(255,90,31,.16), transparent 70%), rgba(20,23,31,.72); }
@media (min-width: 701px) { .lead-box { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); } }
.lead-box::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 55%); mask-image: linear-gradient(90deg, #000, transparent 55%); }
.lead-text { position: relative; z-index: 1; }
.lead-h { font-size: clamp(28px, 3vw, 44px); color: #fff; }
.lead-text p { margin-top: 14px; color: #C9CCD2; font-size: 1rem; max-width: 42ch; }
.lead-text .lead-calc { background: rgba(255,90,31,.16); color: #FFD2C0; }
.lead .lead-form { position: relative; z-index: 1; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.lead .lead-form > * { grid-column: 1 / -1; }
.lead .lead-form > label:nth-of-type(1), .lead .lead-form > label:nth-of-type(2) { grid-column: auto; }
.lead .lead-form label { gap: 6px; font-size: .8125rem; font-weight: 600; color: #B9BCC4; }
.lead .lead-form input:not([type=checkbox]):not([type=radio]) { height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: var(--paper); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.lead .lead-form input::placeholder { color: rgba(251,250,247,.4); }
.lead .lead-form input:focus { border-color: var(--accent); background: rgba(255,255,255,.09); box-shadow: 0 0 0 4px rgba(255,90,31,.18); }
.lead .lead-form input[aria-invalid=true] { border-color: var(--accent); background: rgba(255,90,31,.12); }
.lead .via { gap: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lead .via legend { margin: 0 0 6px; color: #B9BCC4; font-weight: 600; font-size: .8125rem; }
.lead .via span { padding: 12px 6px; border: 1px solid rgba(255,255,255,.14); border-radius: 0; background: rgba(255,255,255,.05); color: #DADCE1; transition: background-color .25s, color .25s, border-color .25s; }
.lead .via label + label span { border-left: 0; }
.lead .via label:first-of-type span { border-radius: 12px 0 0 12px; }
.lead .via label:last-of-type span { border-radius: 0 12px 12px 0; }
.lead .via input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.lead .via input:focus-visible + span { outline: 2px solid var(--accent); }
.lead .lead-form .check { font-size: .8125rem; font-weight: 500; color: #B9BCC4; }
.lead .lead-form .check a { color: var(--paper); }
.lead .check > input { accent-color: var(--accent); }
.lead .lead-form .btn { grid-column: 1; min-height: 52px; background: var(--accent); color: var(--ink); box-shadow: 0 12px 30px -12px rgba(255,90,31,.8); }
.lead .lead-form .btn:hover { background: #fff; color: var(--ink); }
.lead .form-note { grid-column: 2; align-self: center; margin: 0; padding-left: 22px; position: relative; color: #C9CCD2; opacity: 1; }
.lead .form-note::before { content: ""; position: absolute; left: 2px; top: .35em; width: 10px; height: 10px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 4px rgba(61,220,132,.18); animation: leadPulse 2s ease-out infinite; }
@keyframes leadPulse { 50% { box-shadow: 0 0 0 7px rgba(61,220,132,0); } }
.lead .form-msg { color: #FFD2C0; }
.lead .form-topic { color: #FFD2C0; }
@media (max-width: 1100px) { .lead-box { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .lead .lead-form { grid-template-columns: minmax(0, 1fr); }
  .lead .lead-form > label:nth-of-type(1), .lead .lead-form > label:nth-of-type(2), .lead .lead-form .btn, .lead .form-note { grid-column: 1; }
  .lead .form-note { padding-left: 22px; }
}
@media (prefers-reduced-motion: reduce) { .lead .form-note::before { animation: none; } }
/* слева на компьютере: схематичный «отчёт аудита», полосы заполняются по кругу */
@media (min-width: 1101px) {
  .lead-text::after { content: ""; display: block; margin-top: 32px; height: 132px; max-width: 360px; border-radius: 16px; border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(var(--accent), var(--accent)) 22px 26px / 62% 8px no-repeat, linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28)) 22px 52px / 84% 8px no-repeat,
      linear-gradient(rgba(255,255,255,.2), rgba(255,255,255,.2)) 22px 78px / 46% 8px no-repeat, linear-gradient(rgba(255,255,255,.14), rgba(255,255,255,.14)) 22px 104px / 70% 8px no-repeat, rgba(255,255,255,.04);
    animation: leadScan 6s var(--ease) infinite; }
}
@keyframes leadScan {
  0% { background-size: 0 8px, 0 8px, 0 8px, 0 8px, auto; }
  40%, 85% { background-size: 62% 8px, 84% 8px, 46% 8px, 70% 8px, auto; }
  100% { background-size: 62% 8px, 84% 8px, 46% 8px, 70% 8px, auto; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .lead-text::after { animation: none; } }

/* логотип: знак из digital-studio-art-direction-v3/32-logo (файлы html/img/logo-mark*.svg), встроен в CSS без лишнего запроса */
.logo-mark { width: 30px; height: 30px; border-radius: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="30 30 106 106"><path d="M40 108V48h44" fill="none" stroke="%2314171F" stroke-width="14"/><path d="M64 124V72h44" fill="none" stroke="%2314171F" stroke-width="14"/><path d="M83 100l43-43m-32 0h32v32" fill="none" stroke="%23FF5A1F" stroke-width="14"/></svg>') center / contain no-repeat; }
.logo-mark::after { content: none; }
.logo--light .logo-mark { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="30 30 106 106"><path d="M40 108V48h44" fill="none" stroke="%23F2EFE9" stroke-width="14"/><path d="M64 124V72h44" fill="none" stroke="%23F2EFE9" stroke-width="14"/><path d="M83 100l43-43m-32 0h32v32" fill="none" stroke="%23FF5A1F" stroke-width="14"/></svg>'); }
@media (max-width: 640px) { .logo-mark { width: 26px; height: 26px; } }

/* ===================== Блог: группы рубрик на главной блога ===================== */
.blog-group { margin-top: clamp(40px, 5vw, 72px); }
.blog-group .h2 a { color: inherit; text-decoration: none; }
.blog-group .h2 a:hover { color: var(--accent); }
.blog-group .case-grid { margin-top: clamp(16px, 2vw, 24px); }
.blog-more { margin-top: 20px; }
