/* ─────────────────────────────────────────────
   Петроград-Сервис · главная страница
   ───────────────────────────────────────────── */

:root {
  --bg: #f2f2f2;
  --white: #fff;
  --ink: #121214;
  --ink-2: rgba(18, 18, 20, .52);
  --ink-3: rgba(18, 18, 20, .3);
  --line: rgba(18, 18, 20, .14);
  --chip: #ebebeb;
  --dark: #121214;
  --accent: #1e96f0;
  --accent-d: #107fd6;
  --accent-l: #8ccbf8;

  --gut: 24px;
  --gap: 12px;
  --hdr: 80px;
  /* столбец, с которого начинаются заголовки секций — как у «Как организована работа» */
  --col: calc(100vw - min(62vw, 1000px) - max(var(--gut), 6vw));

  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* без «висячих» слов: последняя строка абзаца или заголовка не из одного слова (Chrome, Safari, Edge).
   Там, где этого не хватает (и в остальных браузерах), висячее слово склеивает js/main.js → «висячие слова» */
p, li, dd, dt, h3, h4, summary, figcaption, label span, .chip, .more { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 0;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
canvas { display: block; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.num { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: 0; }

.scene { position: absolute; inset: 0; width: 100%; height: 100%; }

/* появление при прокрутке */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.is-in { opacity: 1; transform: none; }

/* ───────── шапка ───────── */
.hdr {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  height: var(--hdr); padding: 0 var(--gut);
  display: flex; align-items: center;
  pointer-events: none;
  transition: height .45s var(--ease);
}
.hdr > * { pointer-events: auto; position: relative; }
/* подложка с размытием: появляется после начала прокрутки */
.hdr::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: rgba(242, 242, 242, .72);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .4s, background .4s, border-color .4s;
}
.hdr.is-dark::before { background: rgba(18, 18, 20, .55); border-bottom-color: rgba(255, 255, 255, .1); }
.hdr.is-scrolled { --hdr: 68px; }
.hdr.is-scrolled::before { opacity: 1; }
.hdr.is-scrolled .hbtn { height: 42px; }

.logo { display: flex; align-items: center; gap: 10px; width: calc(25vw - var(--gut)); flex: none; transition: color .3s, opacity .4s, transform .5s var(--ease); }
.logo__mark { width: 30px; height: 30px; fill: currentColor; flex: none; }
.logo__beam { fill: var(--accent); }
.logo__name { font-size: 17px; font-weight: 600; line-height: .92; letter-spacing: -.02em; }
.logo__sub { font-size: 10px; line-height: 1.05; letter-spacing: 0; opacity: .5; margin-left: 6px; }

.nav { display: flex; gap: clamp(12px, 1.5vw, 26px); padding-left: var(--gap); font-size: 15px; white-space: nowrap; transition: opacity .4s, transform .5s var(--ease); }
.nav a { position: relative; padding: 8px 0; transition: color .3s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.is-active::after { transform: scaleX(1); }
.js-tone.on-dark { color: #fff; }

.hdr__right { margin-left: auto; display: flex; gap: 6px; }
.hbtn {
  height: 48px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); font-size: 14px; white-space: nowrap;
  transition: background .3s, color .3s, height .45s var(--ease);
}
.hbtn svg { width: 13px; height: 13px; fill: currentColor; }
.hbtn:hover { background: var(--ink); color: #fff; }
.hbtn--accent { background: var(--accent); color: #fff; }
.hbtn--accent:hover { background: var(--accent-d); }
.hbtn--ic { width: 48px; padding: 0; justify-content: center; }
.hbtn--ic svg, .hbtn .tg-ico { width: 19px; height: 19px; }
.tg-ico { fill: currentColor; flex: none; }
.ftr__tg, .menu__tg { display: inline-flex; align-items: center; gap: 10px; transition: color .3s; }
.ftr__tg { margin-top: 10px; font-size: 17px; color: rgba(255, 255, 255, .85); }
.ftr__tg:hover { color: var(--accent-l); }
.ftr__tg .tg-ico { width: 34px; height: 34px; padding: 8px; background: var(--accent); color: #fff; }
.menu__tg { margin-top: 14px; font-size: 18px; font-weight: 500; }
.menu__tg .tg-ico { width: 36px; height: 36px; padding: 8px; background: var(--accent); color: #fff; }
.contact--tg a { display: inline-flex; align-items: center; gap: 12px; }
.contact--tg .tg-ico { width: 40px; height: 40px; padding: 9px; background: var(--accent); color: #fff; }
.contact--tg a + a { margin-top: 10px; }
/* Max: свой фирменный градиент, чтобы не путать с Telegram */
.hbtn--max .max-ico { width: 19px; height: 19px; }
.ftr__msg, .menu__msg { display: flex; flex-wrap: wrap; gap: 10px 22px; }
/* у официальной иконки Max свой фон и скругление — убираем нашу подложку и отступы */
.ftr__max .tg-ico, .menu__max .tg-ico, .contact--tg .max-ico { background: none; padding: 0; }

/* «сейчас на связи»: окошко домика светится тёплым в рабочие часы */
.live { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1.3; color: rgba(255, 255, 255, .6); }
.live svg { width: 40px; height: 40px; flex: none; overflow: visible; }
.live__house { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.live__win { fill: rgba(255, 255, 255, .18); transition: fill .4s; }
.live.is-on { color: #fff; }
.live.is-on .live__win { fill: #ffbf5e; filter: drop-shadow(0 0 3px #ffb347) drop-shadow(0 0 8px rgba(255, 166, 60, .85)); animation: liveGlow 3.2s ease-in-out infinite; }
.live.is-on .live__house { stroke: #ffd59a; }
@keyframes liveGlow { 50% { filter: drop-shadow(0 0 2px #ffb347) drop-shadow(0 0 4px rgba(255, 166, 60, .5)); fill: #ffcf80; } }
@media (prefers-reduced-motion: reduce) { .live.is-on .live__win { animation: none; } }
.contact .live { margin-top: 14px; color: var(--ink-2); }
.contact .live.is-on { color: var(--ink); }
.contact .live.is-on .live__house { stroke: #e39a2f; }
.ftr .live { margin-top: 4px; }
.acard .live { margin: -14px 0 24px; }
.hbtn--sq { width: 48px; transition: background .3s, color .3s, height .45s var(--ease), width .45s var(--ease); padding: 0; justify-content: center; gap: 4px; display: none; }
.hbtn--sq i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

/* ───────── кнопки ───────── */
.btns { display: flex; gap: 6px; flex-wrap: wrap; }
.btn { display: inline-flex; gap: 6px; height: 50px; font-size: 14px; cursor: pointer; }
.btn span { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 28px; transition: background .3s, color .3s; }
.btn i { width: 50px; flex: none; position: relative; background: var(--chip); transition: background .3s; }
.btn i::before, .btn i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; background: var(--ink); transition: transform .5s var(--ease), background .3s; }
.btn i::after { transform: rotate(90deg); }
.btn:hover i::before { transform: rotate(180deg); }
.btn:hover i::after { transform: rotate(270deg); }
.btn--accent span { background: var(--accent); color: #fff; }
.btn--accent:hover span { background: var(--accent-d); }
.btn--light span { background: #fff; color: var(--ink); }
.btn--light i { background: rgba(255, 255, 255, .22); }
.btn--light i::before, .btn--light i::after { background: #fff; }
.btn--light:hover span { background: var(--ink); color: #fff; }

.chip { display: inline-block; padding: 9px 14px; background: var(--chip); font-size: 13px; line-height: 1; }
.chip--line { background: none; border: 1px solid var(--line); color: var(--ink-2); }

/* ───────── первый экран ───────── */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 700px; }
.hero__panel {
  position: absolute; inset: 0; background: var(--dark); color: #fff; overflow: hidden;
}

.hero__content {
  position: absolute; left: var(--gut); right: var(--gut); bottom: 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px var(--gap); align-items: end;
  pointer-events: none;
}
.hero__content a { pointer-events: auto; }
.hero__title {
  grid-column: 1 / 4;
  font-size: clamp(40px, 5.7vw, 94px); font-weight: 400; line-height: .92; letter-spacing: -.02em;
  text-indent: 12%; max-width: 15em; text-wrap: balance;
}
.hero__side { grid-column: 4; }
.hero__side p { font-size: 17px; line-height: 1.3; color: rgba(255, 255, 255, .7); max-width: 30em; }
.hero__rule { grid-column: 1 / -1; height: 1px; background: rgba(255, 255, 255, .18); margin-top: 6px; }
.hero__facts { grid-column: 1 / 4; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-self: start; }
.hero__facts dt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .6); margin-bottom: 8px; }
.hero__facts svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent-l); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hero__facts dd { font-size: clamp(17px, 1.5vw, 22px); font-weight: 500; letter-spacing: -.02em; line-height: 1.08; max-width: 14em; padding-right: 16px; }
.hero__cta { grid-column: 4; align-self: start; width: 100%; }


/* ───────── секции ───────── */
.sec { padding: clamp(96px, 11vw, 168px) var(--gut) 0; }
.sec__head { position: relative; margin-bottom: clamp(36px, 4.6vw, 68px); padding-left: calc(var(--col) - var(--gut)); }
.sec__tag { display: block; font-size: 13px; color: var(--ink-2); }
/* метка над заголовком, заголовок и подзаголовок — с одного столбца, без отступа первой строки */
.sec__head .sec__tag { margin-bottom: 18px; }
.sec__head .h2 { text-indent: 0; }
.h2 {
  font-size: clamp(36px, 5.7vw, 92px); font-weight: 400; line-height: .93; letter-spacing: -.02em;
  text-indent: calc(25% + var(--gap) / 2);
}
.h2--sm { font-size: clamp(34px, 4.3vw, 68px); text-indent: 0; }
.sec__lead { margin: 26px 0 0; max-width: 25em; color: var(--ink-2); font-size: 17px; line-height: 1.3; }

/* ───────── услуги ───────── */
.svc { border-top: 1px solid var(--line); }
.svc__row {
  display: grid; grid-template-columns: 1fr 1fr 2fr; gap: var(--gap);
  padding: 30px 0 34px; border-bottom: 1px solid var(--line); position: relative;
}
.svc__row { scroll-margin-top: calc(var(--hdr) + 24px); }
.svc__row::before { content: ''; position: absolute; inset: 0 calc(var(--gut) * -1); background: var(--white); opacity: 0; transition: opacity .4s; z-index: -1; }
.svc__row:hover::before { opacity: 1; }
.svc__ttl { display: flex; gap: 18px; align-items: baseline; padding-right: 20px; }
.svc__ttl h3 { font-size: clamp(22px, 2.1vw, 32px); font-weight: 500; letter-spacing: -.02em; line-height: .98; }
.svc__txt { color: var(--ink-2); max-width: 26em; padding-right: 20px; }
.svc__list { columns: 2; column-gap: var(--gap); }
.svc__list li { position: relative; break-inside: avoid; padding: 0 0 11px 20px; font-weight: 500; letter-spacing: 0; }
.svc__list a { transition: color .3s; }
.svc__list a:hover { color: var(--accent-d); }
.svc__list li::before { content: ''; position: absolute; left: 0; top: .5em; width: 9px; height: 1.5px; background: var(--accent); }

/* ───────── карточки объектов ───────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.card { position: relative; background: var(--white); display: flex; flex-direction: column; }
.card > .chip { position: absolute; z-index: 2; left: 16px; top: 16px; }
.card__pic { position: relative; aspect-ratio: 1 / .86; overflow: hidden; }
.card__pic canvas { width: 100%; height: 100%; }
.card__pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__pic img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .card:hover .card__pic img { transform: none; } }
.card__body { padding: 6px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1; margin-bottom: 10px; max-width: 13em; }
.card p { color: var(--ink-2); font-size: 17px; line-height: 1.3; margin-bottom: 24px; min-height: 5.6em; }
.card .btn { margin-top: auto; }
.card--note { grid-column: span 2; min-height: 420px; background: #6fa7b8 url(https://images.unsplash.com/photo-1725018934271-eeda9ce5df3c?auto=format&fit=crop&w=1800&q=72) center bottom / cover no-repeat; } /* жилой комплекс, Unsplash (бесплатная лицензия) */
.card--note > .chip { background: var(--white); }
.card--note .card__body { padding-top: 68px; }
.card--note h3 { max-width: none; color: #fff; text-shadow: 0 1px 14px rgba(18, 40, 60, .35); }
.card--note p { min-height: 0; margin-bottom: 0; max-width: 34em; color: #fff; text-shadow: 0 1px 12px rgba(18, 40, 60, .35); }
.card--cta {
  grid-column: auto; color: #fff; min-height: 380px;
  background:
    linear-gradient(118deg, transparent 0 46%, rgba(255, 255, 255, .09) 46% 100%),
    linear-gradient(64deg, rgba(255, 255, 255, .08) 0 34%, transparent 34% 100%),
    var(--accent);
}
.card--cta .card__body { padding-top: 24px; }
.card--cta h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.02em; line-height: .96; margin-bottom: 14px; }
.card--cta p { color: rgba(255, 255, 255, .82); max-width: 34em; }
.card--cta .btn { align-self: flex-start; min-width: min(100%, 320px); }
.cards__note { margin-top: 18px; max-width: none; font-size: 14px; line-height: 1.4; color: var(--ink-2); }

/* ───────── состав проекта (разбор по слоям) ───────── */
/* высота дорожки = сколько листать до конца разбора: ~45% экрана на слой */
.layers { position: relative; height: 430vh; margin: 0 calc(var(--gut) * -1); }
.layers__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.layers__sticky::before, .layers__sticky::after {
  content: ''; position: absolute; top: 12%; bottom: 12%; width: 9px; z-index: 1; opacity: .35;
  background: repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 6px);
}
.layers__sticky::before { left: 0; }
.layers__sticky::after { right: 0; }

.layers__list { position: absolute; z-index: 2; left: var(--gut); top: 50%; transform: translateY(-50%); width: min(23%, 300px); }
.layers__list button { display: grid; grid-template-columns: 52px 1fr; align-items: baseline; width: 100%; text-align: left; padding: 11px 0; border-top: 1px solid var(--line); color: var(--ink-3); transition: color .4s; }
.layers__list li:last-child button { border-bottom: 1px solid var(--line); }
.layers__list .num { font-size: 26px; font-weight: 400; letter-spacing: -.02em; line-height: .9; color: var(--accent); opacity: .4; transition: opacity .4s; }
.layers__list button:hover .num { opacity: .75; }
.layers__list b { font-size: 17px; font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.layers__list em { grid-column: 2; font-style: normal; font-size: 12px; line-height: 1.1; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .4s, margin .5s var(--ease); }
.layers__list button:hover { color: var(--ink); }
.layers__list button.is-on { color: var(--ink); }
.layers__list button.is-on .num { opacity: 1; }
.layers__list button.is-on em { max-height: 3em; opacity: .5; margin-top: 6px; }

.layers__info { position: absolute; z-index: 2; right: var(--gut); top: 50%; transform: translateY(-50%); width: min(21%, 290px); transition: opacity .35s, transform .5s var(--ease); }
.layers__info.is-swap { opacity: 0; transform: translateY(calc(-50% + 14px)); }
.layers__info .num { display: block; color: var(--accent); margin-bottom: 18px; font-size: clamp(48px, 4.6vw, 76px); font-weight: 400; letter-spacing: -.03em; line-height: .85; }
.layers__info h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.02em; line-height: .96; margin-bottom: 12px; }
.layers__info p { color: var(--ink-2); font-size: 17px; line-height: 1.3; }

.layers__hint { position: absolute; z-index: 2; left: 50%; bottom: 34px; transform: translateX(-50%); font-size: 12px; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 8px; transition: opacity .4s; }
.layers__hint i { width: 1px; height: 26px; background: var(--ink); transform-origin: top; animation: hint 1.8s var(--ease) infinite; }
.layers.is-moved .layers__hint { opacity: 0; }
@keyframes hint { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ───────── как организована работа ───────── */
.about { position: relative; padding-bottom: 0; }
.about__panel {
  position: relative; display: flex; flex-direction: column; padding-top: 110px; background: var(--dark); color: #fff; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 75% 100%, 75% calc(100% - var(--st) * 1), 50% calc(100% - var(--st) * 1), 50% calc(100% - var(--st) * 2), 25% calc(100% - var(--st) * 2), 25% calc(100% - var(--st) * 3), 0 calc(100% - var(--st) * 3));
}
.about__head {
  --fs: clamp(44px, 6vw, 104px);
  position: relative; z-index: 1; align-self: stretch; margin: 0 max(var(--gut), 6vw) 0 var(--col);
  display: grid; align-items: end;
}
.about__head .sec__tag { color: rgba(255, 255, 255, .5); margin-bottom: 18px; }
.about__head .h2 { grid-area: 2 / 1; font-size: var(--fs); line-height: 1.02; max-width: none; }
/* подзаголовок — отдельной строкой под заголовком: на любой ширине не наезжает, даже если заголовок переносится */
.about__head p { grid-area: 3 / 1; margin: 24px 0 0; max-width: 28em; font-size: 17px; line-height: 1.35; color: rgba(255, 255, 255, .6); }
.about__head .tags { margin-top: 36px; }
.about__stage { position: relative; width: min(96%, 1820px); height: clamp(540px, 82vh, 940px); margin: 32px auto 90px; }
/* края сцены растворяются в фоне: без чётких границ у асфальта и земли */
#interiorCanvas {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 78%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 78%, transparent);
  mask-composite: intersect;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.tags li { padding: 10px 16px; font-size: 13px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(6px); }

/* ступени выравниваются в одну линию по мере прокрутки: --flat от 0 до 1 задаёт main.js */
.about { --flat: 0; --st: calc(44px * (1 - var(--flat))); }
.why { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: calc(var(--st) * -3); position: relative; padding: 0 var(--gut); }
.why__item { text-align: center; padding: 44px 28px 0; }
.why__item:nth-child(2) { margin-top: var(--st); }
.why__item:nth-child(3) { margin-top: calc(var(--st) * 2); }
.why__item:nth-child(4) { margin-top: calc(var(--st) * 3); }
.why__item .num { display: block; margin-bottom: 44px; }
.why__item h3 { font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; letter-spacing: -.02em; line-height: .98; margin: 0 auto 12px; max-width: 9em; }
.why__item p { color: var(--ink-2); font-size: 17px; line-height: 1.3; max-width: 19em; margin: 0 auto; }

/* ───────── решения ───────── */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.case { background: var(--white); display: flex; flex-direction: column; }
.case__body { display: flex; flex-direction: column; flex: 1; }
.case .more { margin-top: auto; padding-top: 22px; }
.case__pic { aspect-ratio: 16 / 9.4; background: #f8f8f8; border-bottom: 1px solid var(--bg); display: grid; place-items: center; overflow: hidden; }
.case__pic svg { width: 78%; height: auto; overflow: visible; transition: transform .8s var(--ease); }
.case:hover .case__pic svg { transform: scale(1.05); }
.case__pic svg * { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: square; }
.case__pic .s { stroke: var(--ink); stroke-width: 1; }
.case__pic .f { fill: #e9e9e9; }
.case__pic .a { stroke: var(--accent); stroke-width: 1.5; }
.case__pic .a-f { fill: var(--accent); }
.case__pic .a-h { fill: rgba(30, 150, 240, .14); }
.case__pic .d { stroke-dasharray: 5 5; }
.case__pic .t { stroke-width: 4; opacity: .16; }
.case__pic .dot circle { fill: #f8f8f8; stroke: var(--ink); stroke-width: 1; }
.case__body { padding: 22px 24px 28px; }
.case__tag { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 16px; max-width: 28em; }
.case h2, .case h3 { font-size: clamp(19px, 1.6vw, 23px); font-weight: 600; letter-spacing: -.02em; line-height: 1; margin-bottom: 12px; }
.case p { color: var(--ink-2); font-size: 17px; line-height: 1.3; }

/* ───────── этапы ───────── */

/* ───────── вопросы ───────── */
.sec--faq { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.faq__head { position: sticky; top: calc(var(--hdr) + 36px); padding-top: 22px; }
.faq__head .sec__tag { margin-bottom: 18px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 30px 0; font-size: clamp(18px, 1.6vw, 23px); font-weight: 500; letter-spacing: -.02em; line-height: 1.02; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-d); }
.faq summary i { flex: none; width: 40px; height: 40px; background: var(--white); position: relative; transition: background .3s; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; background: var(--ink); transition: transform .5s var(--ease), background .3s; }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { background: var(--accent); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: #fff; }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { color: var(--ink-2); font-size: 17px; line-height: 1.35; letter-spacing: 0; max-width: 40em; padding: 0 64px 26px 0; }

/* ───────── запрос КП ───────── */
.kp { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: 0 var(--gut); margin-top: clamp(96px, 11vw, 168px); scroll-margin-top: 92px; }
.kp__intro {
  color: #fff; padding: 36px 36px 40px; display: flex; flex-direction: column; min-height: 640px;
  background:
    linear-gradient(118deg, transparent 0 52%, rgba(255, 255, 255, .08) 52% 100%),
    linear-gradient(58deg, rgba(255, 255, 255, .07) 0 30%, transparent 30% 100%),
    var(--accent);
}
.kp__intro .sec__tag { color: rgba(255, 255, 255, .75); margin-bottom: 20px; }
.kp__intro > p { margin-top: 22px; max-width: 30em; color: rgba(255, 255, 255, .85); line-height: 1.3; }
.kp__list { margin-top: auto; padding-top: 48px; }
.kp__list li { display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 15px 0; border-top: 1px solid rgba(255, 255, 255, .3); font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; letter-spacing: -.02em; line-height: 1.02; }
.kp__list .num { color: rgba(255, 255, 255, .7); }

.kp__form { background: var(--white); padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px var(--gap); align-content: start; }
.fld { grid-column: 1 / -1; display: block; }
.fld--half { grid-column: auto; }
.fld span { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 4px; }
.fld input, .fld select, .fld textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none;
  padding: 8px 0 11px; font-size: 18px; font-weight: 500; letter-spacing: 0; outline: none; resize: vertical;
  transition: border-color .3s; appearance: none; -webkit-appearance: none;
}
.fld select { cursor: pointer; padding-right: 28px; text-overflow: ellipsis;
  background: linear-gradient(var(--ink), var(--ink)) right 5px center/11px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) right 10px center/1.5px 11px no-repeat; }
.fld select:invalid, .fld select.is-empty { color: var(--ink-3); }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--accent); }
.fld.is-err input, .fld.is-err select { border-color: #e0483a; }
.fld .fld__req { font-style: normal; color: var(--accent-d); margin-left: 2px; }
.fld .fld__opt { font-style: normal; color: var(--ink-3); margin-left: 8px; }
.fld .fld__opt::before { content: '· '; }
.legal-note .fld__req { font-style: normal; color: var(--accent-d); }
.check .fld__req { font-style: normal; color: var(--accent-d); margin-left: 2px; }
.fld__err { display: none; margin-top: 6px; font-size: 12px; line-height: 1.3; color: #d23b2e; }
.fld.is-err .fld__err { display: block; }
.kp__submit { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; margin-top: 10px; }
.kp__legal { display: grid; gap: 8px; }
.legal-note { font-size: 12px; color: var(--ink-2); line-height: 1.3; }
.legal-note a { text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 3px; }
.kp__legal .check.is-err i, .check.is-err i { border-color: #e5484d; }
.kp__status { grid-column: 1 / -1; font-size: 17px; color: var(--accent-d); min-height: 1.2em; }
.kp__status.is-err { color: #d23b2e; }

/* ───────── подвал ───────── */
.ftr { background: var(--dark); color: #fff; margin-top: clamp(96px, 11vw, 168px); padding: 64px var(--gut) 34px; overflow: hidden; position: relative; isolation: isolate; }
/* тёплые пятна света в подвале: плавно следуют за курсором с разной скоростью и сливаются друг с другом */
.ftr__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; filter: blur(28px); }
.ftr__glow i {
  position: absolute; left: 0; top: 0; border-radius: 50%; mix-blend-mode: screen; will-change: transform;
  width: var(--s, 640px); aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 170, 64, var(--a, .42)), rgba(255, 140, 40, calc(var(--a, .42) * .38)) 48%, rgba(255, 120, 30, 0) 100%);
  transform: translate3d(-50%, -50%, 0);
}
.ftr__glow i:nth-child(1) { --s: min(58vw, 820px); --a: .44; }
.ftr__glow i:nth-child(2) { --s: min(46vw, 640px); --a: .36; }
.ftr__glow i:nth-child(3) { --s: min(36vw, 480px); --a: .3; }
.ftr__top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--gap); }
.ftr__col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -.01em; }
.ftr__col .sec__tag { color: rgba(255, 255, 255, .5); margin-bottom: 14px; letter-spacing: 0; }
.ftr__col a { transition: color .3s; }
.ftr__col a:hover { color: var(--accent-l); }
.ftr__big { font-size: clamp(28px, 3.5vw, 56px); font-weight: 400; letter-spacing: -.02em; line-height: 1.02; margin-bottom: 8px; overflow-wrap: anywhere; }
.ftr__addr { font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -.01em; margin-top: 14px; }
.ftr__note { font-size: 13px; line-height: 1.3; color: rgba(255, 255, 255, .5); }
.ftr__gap { margin-top: 26px; margin-bottom: 0 !important; }
.ftr__gap + .ftr__addr { margin-top: 0; }
.ftr__word { font-size: calc((100vw - var(--gut) * 2) * .111); font-weight: 500; letter-spacing: -.02em; line-height: .8; white-space: nowrap; margin: clamp(60px, 9vw, 140px) 0 26px -0.06em; }
.ftr__bot { margin-top: clamp(56px, 7vw, 110px); display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--gap); padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, .5); }
.ftr__bot a { transition: color .3s; }
.ftr__bot a:hover { color: #fff; }
.ftr__dev { position: relative; margin: clamp(40px, 5vw, 72px) 0 14px; font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, .38); }
.ftr__dev a { transition: color .3s; }
.ftr__dev a:hover { color: #fff; }

/* ───────── линейка прокрутки ───────── */
.ruler { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: 8px; pointer-events: none; mix-blend-mode: difference;
  background: repeating-linear-gradient(to right, rgba(255, 255, 255, .5) 0 1px, transparent 1px 8px); mask-image: linear-gradient(to top, #000 0 5px, transparent 5px); -webkit-mask-image: linear-gradient(to top, #000 0 5px, transparent 5px); }
.ruler i { display: none; }

/* ───────── мобильное меню ───────── */
.menu { position: fixed; z-index: 45; inset: 0; background: var(--bg); padding: 104px var(--gut) 40px; display: flex; flex-direction: column; justify-content: space-between; }
.menu[hidden] { display: none; }
.menu nav { display: grid; }
.menu nav a { font-size: 34px; letter-spacing: -.02em; padding: 10px 0; border-bottom: 1px solid var(--line); }
.menu__tel { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }

/* ───────── адаптив ───────── */
@media (max-width: 1180px) {
  .nav { display: none; }
  .hbtn--sq { display: inline-flex; }
  .logo { width: auto; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card--cta { grid-column: auto; }
  .svc__row { grid-template-columns: 1fr 1fr; }
  .svc__list { grid-column: 1 / -1; padding-left: 0; }
}

@media (max-width: 900px) {
  :root { --gut: 16px; --gap: 8px; --hdr: 68px; --col: var(--gut); }
  .logo__sub { display: none; }
  .hbtn--tel span { display: none; }
  .hbtn--tel { width: 48px; padding: 0; justify-content: center; }
  .hbtn--accent { display: none; }

  .hero { height: auto; min-height: 0; }
  .hero__panel { position: relative; height: auto; min-height: 100svh; padding: 34svh var(--gut) 24px; display: flex; flex-direction: column; justify-content: flex-end; }
  .hero__content { position: relative; z-index: 1; left: auto; right: auto; bottom: auto; grid-template-columns: 1fr; gap: 20px; }
  .hero__content > * { grid-column: auto; }
  .hero__title { text-indent: 0; font-size: clamp(30px, 9vw, 64px); }
  .hero__rule { margin-top: 4px; }
  .hero__facts { grid-template-columns: 1fr; gap: 16px; }
  .hero__facts dd { max-width: none; }

  .sec__head .sec__tag { position: static; margin-bottom: 14px; }
  .h2 { text-indent: 0; font-size: clamp(34px, 9.6vw, 56px); }
  .sec__lead { margin-left: 0; }

  .svc__row { grid-template-columns: 1fr; gap: 14px; }
  .svc__list { columns: 1; }
  .cards, .cases { grid-template-columns: 1fr; }
  .card p { min-height: 0; }
  .card--cta { min-height: 300px; }

  .layers__sticky::before, .layers__sticky::after { display: none; }
  .layers__list { top: 84px; transform: none; width: auto; right: var(--gut); display: flex; gap: 4px; }
  .layers__list li { flex: 1; }
  .layers__list button { display: block; padding: 10px 0; text-align: center; border: 0; border-top: 2px solid var(--line); }
  .layers__list li:last-child button { border-bottom: 0; }
  .layers__list b, .layers__list em { display: none; }
  .layers__list .num { font-size: 17px; }
  .layers__list button.is-on { border-top-color: var(--accent); }
  .layers__info { top: auto; bottom: 48px; left: var(--gut); right: var(--gut); width: auto; transform: none; }
  .layers__info.is-swap { transform: translateY(10px); }
  .layers__info p { font-size: 16px; }
  .layers__info .num { font-size: 40px; margin-bottom: 12px; }
  .layers__hint { display: none; }

  .about { --st: 0px; }
  .about__panel { padding-top: 96px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 100%, 50% calc(100% - 36px), 0 calc(100% - 36px)); }
  .about__head { align-self: stretch; width: auto; margin: 0 var(--gut); }
  .about__head p { grid-area: 3 / 1; margin: 18px 0 0; }
  .about__head .tags { margin-top: 22px; }
  .about__stage { width: 100%; height: 54svh; min-height: 340px; margin: 12px 0 30px; }
  .why { grid-template-columns: 1fr 1fr; margin-top: 0; gap: 36px var(--gap); padding-top: 40px; }
  .why__item { padding: 0 6px; margin-top: 0 !important; }
  .why__item .num { margin-bottom: 16px; }


  .sec--faq, .kp { grid-template-columns: 1fr; }
  .faq__head { position: static; margin-bottom: 22px; }
  .faq details p { padding-right: 0; }
  .kp__intro { min-height: 0; padding: 26px 22px 28px; }
  .kp__form { padding: 26px 22px; }
  .kp__submit { grid-template-columns: 1fr; }

  .ftr__top { grid-template-columns: 1fr 1fr; gap: 40px var(--gap); }
  .ftr__contacts { grid-column: 1 / -1; }
  .ftr__bot { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .fld--half { grid-column: 1 / -1; }
  .why { grid-template-columns: 1fr; }
  .ftr__top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .layers__hint i { animation: none; }
}

/* ───────── поп-ап «Запросить КП» ───────── */
.modal {
  width: min(520px, calc(100vw - 32px)); max-width: none; max-height: calc(100svh - 32px);
  margin: auto; padding: 0; border: 0; background: var(--white); color: var(--ink); overflow: auto;
  opacity: 0; transform: translateY(18px);
  transition: opacity .35s var(--ease), transform .45s var(--ease), overlay .45s allow-discrete, display .45s allow-discrete;
}
.modal[open] { opacity: 1; transform: none; }
@starting-style { .modal[open] { opacity: 0; transform: translateY(18px); } }
.modal::backdrop {
  background: rgba(18, 18, 20, .45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .35s, overlay .45s allow-discrete, display .45s allow-discrete;
}
.modal[open]::backdrop { opacity: 1; }
@starting-style { .modal[open]::backdrop { opacity: 0; } }

.modal__box { position: relative; padding: 36px 36px 32px; display: grid; gap: 22px; }
.modal__close { position: absolute; top: 0; right: 0; width: 56px; height: 56px; background: var(--chip); transition: background .3s; }
.modal__close::before, .modal__close::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; margin: -.75px 0 0 -8px; background: var(--ink); transform: rotate(45deg); transition: background .3s; }
.modal__close::after { transform: rotate(-45deg); }
.modal__close:hover { background: var(--ink); }
.modal__close:hover::before, .modal__close:hover::after { background: #fff; }
.modal__head .sec__tag { margin-bottom: 14px; }
.modal__title { font-size: clamp(30px, 3.4vw, 44px); font-weight: 400; letter-spacing: -.02em; line-height: .96; padding-right: 48px; }
.modal__lead { margin-top: 14px; color: var(--ink-2); }
.modal__purpose { justify-self: start; background: rgba(30, 150, 240, .12); color: var(--accent-d); }
.modal__purpose[hidden] { display: none; }
.modal .btn { width: 100%; margin-top: 4px; }
.modal__status { font-size: 15px; color: #e0483a; min-height: 1.2em; margin-top: -10px; }
.modal__status:empty { display: none; }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px; line-height: 1.3; color: var(--ink-2); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check i { width: 22px; height: 22px; border: 1px solid var(--ink-3); position: relative; transition: background .25s, border-color .25s; }
.check i::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) scale(.4); opacity: 0; transition: transform .3s var(--ease), opacity .2s; }
.check input:checked + i { background: var(--accent); border-color: var(--accent); }
.check input:checked + i::after { opacity: 1; transform: rotate(45deg) scale(1); }
.check input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 3px; }
.check a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 3px; transition: text-decoration-color .3s; }
.check a:hover { text-decoration-color: var(--ink); }
.check.is-err i { border-color: #e0483a; }

.modal__done { padding: 36px 36px 32px; display: grid; gap: 14px; }
.modal__box[hidden], .modal__done[hidden] { display: none; }
.modal__done .num { color: var(--accent); }
.modal__done h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 400; letter-spacing: -.02em; line-height: .98; padding-right: 48px; }
.modal__done p { color: var(--ink-2); }
.modal__done .btn { margin-top: 10px; }

@media (max-width: 520px) {
  .modal__box, .modal__done { padding: 28px 20px 24px; }
}

/* ───────── ссылка «подробнее» ───────── */
.more { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); transition: color .3s; }
.more i { width: 30px; height: 30px; flex: none; position: relative; background: var(--chip); transition: background .3s, transform .5s var(--ease); }
.more i::before { content: ''; position: absolute; left: 9px; right: 9px; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--ink); transition: background .3s; }
.more i::after { content: ''; position: absolute; right: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3.75px; border: solid var(--ink); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); transition: border-color .3s; }
a.more:hover i, a:hover > .more i, a:hover .more i { background: var(--accent); transform: translateX(4px); }
a.more:hover i::before, a:hover .more i::before { background: #fff; }
a.more:hover i::after, a:hover .more i::after { border-color: #fff; }
.sec__more { margin-top: 28px; display: flex; justify-content: flex-end; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }

/* ───────── этапы: карусель ───────── */
.car { position: relative; margin: 0 calc(var(--gut) * -1); }
.car__track {
  display: flex; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain;
  padding: 0 var(--gut); scroll-padding: 0 var(--gut); scroll-snap-type: x proximity;
  scrollbar-width: none; cursor: grab;
  touch-action: pan-y; /* горизонтальный свайп обрабатывает main.js с фиксацией направления */
}
.car__track::-webkit-scrollbar { display: none; }
.car__track.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.car__track.is-drag * { pointer-events: none; }
.car__track { padding-top: 12px; padding-bottom: 12px; margin: -12px 0; }
.stepc {
  flex: 0 0 calc((100vw - var(--gut) * 2 - var(--gap) * 3) / 3.4); min-width: 300px; position: relative;
  scroll-snap-align: start; background: var(--white); padding: 26px 28px 30px; display: flex; flex-direction: column;
  transition: background .45s var(--ease);
}
/* голубые уголки при наведении */
.stepc::before {
  content: ''; position: absolute; inset: -14px; pointer-events: none; opacity: 0;
  --c: var(--accent); --l: 24px; --w: 2px;
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) left top / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) right top / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) right top / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) left bottom / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) left bottom / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) right bottom / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) right bottom / var(--w) var(--l);
  background-repeat: no-repeat;
  transition: inset .5s var(--ease), opacity .3s;
}
.stepc:hover, .stepc:focus-within { background: #eaf5fe; }
.stepc:hover::before, .stepc:focus-within::before { inset: -6px; opacity: 1; }
.stepc header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 34px; }
.stepc__n { font-size: clamp(56px, 6vw, 92px); letter-spacing: -.02em; line-height: .8; color: var(--accent); }
.stepc h3 { font-size: clamp(21px, 1.8vw, 26px); font-weight: 600; letter-spacing: -.02em; line-height: 1.02; min-height: 2.04em; }
.stepc__ico { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 190px; padding: 22px 0 30px; color: var(--ink); }
.stepc__ico svg { height: 132px; width: auto; max-width: 100%; overflow: visible; }
.stepc__ico .ico-a { color: var(--accent); }
.stepc__ico .ico-f { color: var(--accent); transform-box: fill-box; transform-origin: center; }
.stepc__txt { color: var(--ink-2); font-size: 16px; line-height: 1.32; min-height: 5.28em; }
/* прорисовка линий при наведении (и один раз при появлении на тач-экранах) */
@keyframes ico-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ico-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
.stepc__ico .ico-l, .stepc__ico .ico-a { stroke-dasharray: 1; stroke-dashoffset: 0; }
.stepc:hover .ico-l, .stepc.is-draw .ico-l { animation: ico-draw 1.3s var(--ease) both; }
.stepc:hover .ico-a, .stepc.is-draw .ico-a { animation: ico-draw .6s var(--ease) .9s both; }
.stepc:hover .ico-f, .stepc.is-draw .ico-f { animation: ico-pop .5s var(--ease) .9s both; }
@media (prefers-reduced-motion: reduce) {
  .stepc .ico-l, .stepc .ico-a, .stepc .ico-f { animation: none !important; }
}

.car__btn {
  position: absolute; z-index: 3; top: 50%; width: 60px; height: 60px; margin-top: -42px;
  background: var(--ink); transition: opacity .35s, background .3s, transform .4s var(--ease);
}
.car__btn::before { content: ''; position: absolute; left: 20px; right: 20px; top: 50%; height: 1.5px; margin-top: -.75px; background: #fff; }
.car__btn::after { content: ''; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -5.25px; border: solid #fff; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.car__btn--next { right: var(--gut); }
.car__btn--prev { left: var(--gut); transform: scaleX(-1); }
.car__btn:hover { background: var(--accent); }
.car__btn[disabled] { opacity: 0; pointer-events: none; }
.car::before, .car::after {
  content: ''; position: absolute; z-index: 2; top: 0; bottom: 22px; width: clamp(60px, 9vw, 150px); pointer-events: none;
  opacity: 0; transition: opacity .35s;
}
.car::before { left: 0; background: linear-gradient(to right, var(--bg) 8%, rgba(242, 242, 242, 0)); }
.car::after { right: 0; background: linear-gradient(to left, var(--bg) 8%, rgba(242, 242, 242, 0)); }
.car.can-prev::before, .car.can-next::after { opacity: 1; }
.car__bar { position: relative; height: 2px; margin: 20px var(--gut) 0; background: var(--line); }
.car__bar i { position: absolute; left: 0; top: 0; height: 100%; width: 30%; background: var(--accent); }

/* ───────── шапка внутренней страницы ───────── */
.ptop { padding-top: calc(var(--hdr) + 44px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-2); margin-bottom: clamp(36px, 4.5vw, 64px); }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--ink); }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs span { color: var(--ink); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptop .sec__head { margin-bottom: 0; }
.sec--flush { padding-top: clamp(48px, 5.5vw, 84px); }

.dhead { display: grid; grid-template-columns: 3fr 1fr; gap: 22px var(--gap); }
.dhead > * { grid-column: 1; }
.dhead .chip { background: var(--white); }
.phead__meta { color: var(--accent-d); }
.h1d { font-size: clamp(32px, 4.1vw, 66px); font-weight: 400; letter-spacing: -.02em; line-height: .98; max-width: 19em; text-wrap: balance; }
.dhead__lead { color: var(--ink-2); max-width: 46em; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.36; margin-top: 6px; }

/* ───────── каталог услуг ───────── */
.pbanner img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.8); }
.pbanner { aspect-ratio: 21 / 8; overflow: hidden; background: var(--chip); margin: 0 0 var(--gap); }

/* пять направлений плиткой — оглавление страницы */
.dnav { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); margin-bottom: clamp(40px, 5vw, 72px); }
.dtile { background: var(--white); display: grid; grid-template-columns: auto 1fr; align-content: start; column-gap: 10px; padding-bottom: 18px; }
.dtile__pic { grid-column: 1 / -1; aspect-ratio: 4 / 3; overflow: hidden; background: #dadce1; margin-bottom: 14px; }
.dtile__pic img, .dgrp__pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.dtile:hover .dtile__pic img { transform: scale(1.04); }
.dtile__n { padding-left: 16px; font-size: 12px; line-height: 1.5; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dtile__t { padding-right: 16px; font-size: 17px; font-weight: 500; letter-spacing: -.01em; line-height: 1.12; transition: color .3s; }
.dtile__c { grid-column: 2; padding: 6px 16px 0 0; font-size: 13px; color: var(--ink-2); }
.dtile:hover .dtile__t { color: var(--accent-d); }

/* направление: слева картинка и описание, справа подробные услуги и полный список работ */
.dgrp { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap); padding: 30px 0 clamp(48px, 5vw, 76px); border-top: 1px solid var(--line); scroll-margin-top: var(--hdr); }
.dgrp__side { position: sticky; top: calc(var(--hdr) + 20px); align-self: start; padding-right: 28px; }
.dgrp__pic { aspect-ratio: 4 / 3; overflow: hidden; background: #dadce1; margin-bottom: 22px; }
.dgrp__side .num { display: block; margin-bottom: 10px; }
.dgrp__side h2 { font-size: clamp(24px, 2.3vw, 34px); font-weight: 500; letter-spacing: -.02em; line-height: 1; margin-bottom: 12px; }
.dgrp__side p { color: var(--ink-2); max-width: 24em; }
.dgrp__main { min-width: 0; }
.dgrp__main > .sec__tag { margin-bottom: 12px; }
.dgrp__cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); margin-bottom: 28px; }
.dgrp__cards .scard { min-height: 260px; }

/* полный список работ направления — раскрывается */
.wl { background: var(--white); }
.wl summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 18px 20px 18px 24px; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.wl summary::-webkit-details-marker { display: none; }
.wl summary b { font-size: 13px; font-weight: 500; color: var(--accent-d); }
.wl summary i { margin-left: auto; width: 30px; height: 30px; flex: none; position: relative; background: var(--chip); transition: background .3s; }
.wl summary i::before { content: ''; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -6px 0 0 -4px; border: solid var(--ink); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .35s var(--ease), border-color .3s; }
.wl[open] summary i::before { margin-top: -2px; transform: rotate(-135deg); }
.wl summary:hover i { background: var(--accent); }
.wl summary:hover i::before { border-color: #fff; }
.wl .svc__list { padding: 20px 24px 12px; border-top: 1px solid var(--bg); }
.scard { background: var(--white); padding: 20px 24px 24px; min-height: 300px; display: flex; flex-direction: column; transition: background .35s; }
.scard .chips { margin: 0 -4px 40px; }
.scard h3 { font-size: clamp(20px, 1.7vw, 24px); font-weight: 600; letter-spacing: -.02em; line-height: 1.04; margin-bottom: 12px; transition: color .3s; }
.scard p { color: var(--ink-2); font-size: 16px; line-height: 1.32; margin-bottom: 26px; }
.scard .more { margin-top: auto; }
.scard:hover h3 { color: var(--accent-d); }

/* ───────── синяя полоса с призывом ───────── */
.band {
  margin: clamp(96px, 11vw, 168px) var(--gut) 0; padding: 40px 36px; color: #fff;
  display: grid; grid-template-columns: 3fr 1fr; gap: var(--gap); align-items: end;
  background:
    linear-gradient(118deg, transparent 0 62%, rgba(255, 255, 255, .08) 62% 100%),
    linear-gradient(58deg, rgba(255, 255, 255, .07) 0 24%, transparent 24% 100%),
    var(--accent);
}
.band__txt p { margin-top: 18px; max-width: 40em; color: rgba(255, 255, 255, .88); }
.band .btn { width: 100%; }

/* ───────── детальная страница: статья + боковая колонка ───────── */
.dbody { display: grid; grid-template-columns: 3fr 1fr; gap: var(--gap); padding: clamp(40px, 4.5vw, 68px) var(--gut) 0; align-items: start; }
.darticle { min-width: 0; }
.dviz { position: relative; margin: 0; background: var(--white); aspect-ratio: 16 / 8.2; overflow: hidden; }
.dviz figcaption { position: absolute; left: 16px; right: 16px; top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; pointer-events: none; }
.dviz__hint { font-size: 12px; color: var(--ink-3); }
.dviz--scheme { display: grid; place-items: center; background: var(--white); border: 0; aspect-ratio: 16 / 7.4; }
.dviz--scheme svg { width: min(62%, 560px); }

.dsec { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap); padding: 30px 0 clamp(40px, 4.4vw, 64px); border-top: 1px solid var(--line); }
.dviz + .dsec, .facts + .dsec { margin-top: clamp(40px, 4.4vw, 64px); }
.dsec__ttl { display: contents; }
.dsec__ttl .num { display: block; grid-column: 1 / -1; margin-bottom: -2px; }
.dsec__ttl h2 { grid-column: 1; padding-right: 24px; }
.dsec__body { grid-column: 2; }
.dsec__ttl h2 { font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -.02em; line-height: 1.02; }
.dsec__body > * + * { margin-top: 22px; }
.dp { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.36; letter-spacing: -.01em; max-width: 38em; }
.dlist li { position: relative; padding: 13px 0 13px 28px; border-bottom: 1px solid var(--line); font-size: clamp(17px, 1.35vw, 19px); line-height: 1.3; }
.dlist li:first-child { border-top: 1px solid var(--line); }
.dlist li::before { content: ''; position: absolute; left: 0; top: 1.5em; width: 12px; height: 1.5px; background: var(--accent); }
.dtiles, .dol { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.dol { grid-template-columns: 1fr; }
.dtiles li, .dol li { background: var(--white); padding: 18px 20px 22px; display: grid; gap: 22px; align-content: space-between; font-weight: 500; letter-spacing: -.01em; line-height: 1.24; }
.dol li { grid-template-columns: 40px 1fr; gap: 12px; align-items: baseline; padding: 18px 20px; }
.dtiles .num, .dol .num { color: var(--accent); }
.dchips { display: flex; flex-wrap: wrap; gap: 6px; }
.dchips li { background: var(--white); padding: 12px 16px; font-size: 15px; font-weight: 500; }
.dsteps li { display: grid; grid-template-columns: 40px 1fr 1.5fr; gap: 12px var(--gap); padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.dsteps li:first-child { border-top: 1px solid var(--line); }
.dsteps .num { color: var(--accent); }
.dsteps h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.dsteps p { color: var(--ink-2); }
.dmore { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.dmore span:last-child { color: var(--ink-2); }

.gminis { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.gmini { background: var(--white); padding: 20px 22px 22px; }
.gmini h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 14px; }
.gmini li { position: relative; padding: 0 0 8px 20px; }
.gmini li::before { content: ''; position: absolute; left: 0; top: .62em; width: 9px; height: 1.5px; background: var(--accent); }
.gmini a { transition: color .3s; }
.gmini a:hover { color: var(--accent-d); }

.dex { display: grid; grid-template-columns: 1fr 2fr; gap: 0; background: var(--white); margin-top: 12px; }
.dex__pic { aspect-ratio: auto; border: 0; border-right: 1px solid var(--bg); min-height: 240px; }
.dex__body { padding: 26px 28px 28px; display: flex; flex-direction: column; align-items: flex-start; }
.dex__body .sec__tag { color: var(--accent-d); margin-bottom: 16px; }
.dex__body h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; letter-spacing: -.02em; line-height: 1.04; margin-bottom: 12px; }
.dex__body p { color: var(--ink-2); margin-bottom: 24px; }
.dex__body .more { margin-top: auto; }
.dex:hover .dex__pic svg { transform: scale(1.05); }
.dnote { background: rgba(30, 150, 240, .1); padding: 26px 28px 30px; margin-top: 12px; }
.dnote .sec__tag { color: var(--accent-d); margin-bottom: 14px; }
.dnote p { font-size: clamp(20px, 1.9vw, 28px); letter-spacing: -.02em; line-height: 1.16; max-width: 34em; }

.daside { position: sticky; top: 92px; display: grid; gap: var(--gap); }
.acard {
  color: #fff; padding: 24px 24px 24px; display: flex; flex-direction: column; min-height: 280px;
  background:
    linear-gradient(118deg, transparent 0 46%, rgba(255, 255, 255, .09) 46% 100%),
    linear-gradient(64deg, rgba(255, 255, 255, .08) 0 34%, transparent 34% 100%),
    var(--accent);
}
.acard h2 { font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -.02em; line-height: 1; margin-bottom: 12px; }
.acard p { color: rgba(255, 255, 255, .85); margin-bottom: 28px; }
.acard .btn { margin-top: auto; }
.alist { background: var(--white); padding: 22px 24px 24px; }
.alist .sec__tag { margin-bottom: 16px; }
.alist ul { margin-bottom: 20px; }
.alist ul:last-child { margin-bottom: 0; }
.alist li { border-top: 1px solid var(--line); }
.alist li a { display: block; padding: 11px 0; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; transition: color .3s, padding .4s var(--ease); }
.alist li a:hover { color: var(--accent-d); padding-left: 8px; }
.alist dl div { padding: 12px 0; border-top: 1px solid var(--line); }
.alist dt { font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.alist dd { font-weight: 500; letter-spacing: -.01em; line-height: 1.24; overflow-wrap: anywhere; }
.nextc { background: var(--white); padding: 22px 24px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.nextc b { font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; transition: color .3s; }
.nextc:hover b { color: var(--accent-d); }

/* ───────── как мы работаем: строки этапов, таблица, гарантии ───────── */
.prows { display: grid; gap: var(--gap); }
.prow { background: var(--white); display: grid; grid-template-columns: 1fr 1fr 2fr; gap: var(--gap); padding: 26px 0 30px; }
.prow > div { padding: 0 28px; }
.prow__ttl { display: flex; flex-direction: column; align-items: flex-start; }
.prow__n { font-size: clamp(44px, 4.4vw, 68px); letter-spacing: -.02em; line-height: .8; color: var(--accent); margin-bottom: 22px; }
.prow h2 { font-size: clamp(21px, 1.8vw, 26px); font-weight: 600; letter-spacing: -.02em; line-height: 1.04; margin-bottom: 18px; }
.prow .chip { margin-top: auto; }
.prow .sec__tag { margin-bottom: 10px; }
.prow p { line-height: 1.34; max-width: 34em; }

.ptable-wrap { overflow-x: auto; background: var(--white); }
.ptable { width: 100%; border-collapse: collapse; min-width: 640px; }
.ptable th, .ptable td { text-align: left; vertical-align: top; padding: 18px 28px; border-bottom: 1px solid var(--bg); font-weight: 400; line-height: 1.3; }
.ptable thead th { font-size: 13px; color: var(--ink-2); padding-top: 20px; padding-bottom: 14px; }
.ptable tbody th { font-weight: 500; letter-spacing: -.01em; width: 38%; }
.ptable__t { color: var(--accent-d); font-weight: 500; white-space: nowrap; width: 14%; }
.ptable tbody td:last-child { color: var(--ink-2); }
.ptable tbody tr:last-child > * { border-bottom: 0; }

/* ───── пример сроков: компактная диаграмма + 3D-модель активного этапа ───── */
.tl { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: stretch; }
.tl__chart { background: var(--white); display: flex; flex-direction: column; }
.tl__head, .tl__row { display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 16px; align-items: center; padding: 0 22px; }
.tl__head { padding-top: 18px; padding-bottom: 10px; }
.tl__head .sec__tag { grid-column: 1 / 3; margin: 0; }
.tl__axis { position: relative; height: 16px; font-size: 12px; color: var(--ink-2); }
.tl__axis span { position: absolute; bottom: 0; transform: translateX(-50%); white-space: nowrap; }
.tl__axis span:first-child { transform: none; }
.tl__axis span:last-child { transform: translateX(-100%); }
.tl__axis span:last-child::after { content: ' мес'; }
.tl__rows { flex: 1; display: flex; flex-direction: column; }
.tl__row { flex: 1; min-height: 54px; border-top: 1px solid var(--bg); cursor: pointer; outline: none; transition: background .35s var(--ease); }
.tl__row:hover, .tl__row:focus-visible { background: #f4f9fe; }
.tl__row.is-on { background: #eaf5fe; }
.tl__n { font-size: 12px; color: var(--ink-3); transition: color .3s; }
.tl__row.is-on .tl__n { color: var(--accent-d); }
.tl__name { font-size: 15px; font-weight: 500; letter-spacing: -.01em; line-height: 1.18; padding: 8px 0; }
.tl__track {
  position: relative; align-self: stretch;
  background: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 12.5%);
  border-right: 1px solid var(--line);
}
.tl__bar {
  position: absolute; top: 50%; left: var(--s); width: var(--w); min-width: 6px; height: 10px; margin-top: -5px;
  background: var(--accent-l); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) .25s, background .3s;
}
.tl__row.is-on .tl__bar { background: var(--accent); }
.tl__chart.is-in .tl__bar { transform: scaleX(1); }
.tl__dur {
  position: absolute; top: 50%; transform: translateY(-50%); left: calc(var(--s) + var(--w) + 8px);
  white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--ink-2); transition: color .3s;
}
.tl__dur--l { left: auto; right: calc(100% - var(--s) + 8px); }
.tl__row.is-on .tl__dur { color: var(--accent-d); }
.tl__sum { display: flex; align-items: baseline; gap: 18px; padding: 18px 22px 20px; border-top: 1px solid var(--bg); }
.tl__sum strong { flex: none; font-size: clamp(28px, 2.6vw, 40px); font-weight: 400; letter-spacing: -.02em; line-height: 1; color: var(--accent); }
.tl__sum p { font-size: 14px; line-height: 1.35; color: var(--ink-2); max-width: 36em; }

.tl__viz { position: relative; margin: 0; background: var(--white); min-height: 460px; overflow: hidden; }
.tl__viz figcaption { position: absolute; inset: auto 0 0 0; padding: 18px 22px 20px; pointer-events: none; background: linear-gradient(to top, var(--white) 62%, rgba(255, 255, 255, 0)); }
.tl__viz > .chip { position: absolute; left: 22px; top: 18px; z-index: 1; }
.tl__cap .num { display: block; margin-bottom: 6px; color: var(--accent-d); }
.tl__cap h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 6px; }
.tl__cap p { font-size: 15px; line-height: 1.32; color: var(--ink-2); min-height: 2.64em; }
@media (max-width: 1100px) {
  .tl { grid-template-columns: 1fr; }
  .tl__viz { order: -1; min-height: 0; height: clamp(320px, 62vw, 460px); }
}
@media (max-width: 600px) {
  .tl__head, .tl__row { grid-template-columns: 20px minmax(0, 1fr); column-gap: 10px; padding: 0 16px; }
  .tl__head .sec__tag { display: none; }
  .tl__axis { grid-column: 2; }
  .tl__axis span:last-child::after { content: ''; }
  .tl__row { padding-top: 10px; padding-bottom: 12px; }
  .tl__name { grid-column: 2; padding: 0 0 8px; }
  .tl__n { align-self: start; padding-top: 2px; }
  .tl__track { grid-column: 2; height: 22px; }
  .tl__sum { flex-direction: column; gap: 8px; padding: 16px; }
  .tl__viz { height: 340px; }
  .tl__viz figcaption { padding: 14px 16px 16px; }
}

.gcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.gcard { background: var(--white); padding: 22px 26px 30px; min-height: 260px; display: flex; flex-direction: column; }
.gcard .num { color: var(--accent); margin-bottom: auto; padding-bottom: 48px; }
.gcard h3 { font-size: clamp(21px, 1.8vw, 26px); font-weight: 600; letter-spacing: -.02em; line-height: 1.04; margin-bottom: 12px; }
.gcard p { color: var(--ink-2); }

/* ───────── о компании, контакты, юридические тексты ───────── */
/* о компании: вступление с цифрами */
.abt__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gap); margin-top: clamp(36px, 4vw, 60px); }
.abt__head { grid-column: 1 / -1; margin-bottom: clamp(40px, 5vw, 76px); }
.abt__head .sec__tag { margin-bottom: 18px; }
.abt__head .h1d { max-width: 14em; }
.abt__l { padding-right: clamp(0px, 4vw, 80px); }
.abt__txt p { color: var(--ink); max-width: 30em; line-height: 1.4; }
.abt__txt p + p { margin-top: 12px; }
.abt__l > .btn { margin-top: 32px; }
.abt__ph { margin: clamp(48px, 6vw, 92px) 0 0; aspect-ratio: 4 / 3; max-width: 640px; overflow: hidden; background: var(--white); }
.abt__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.abt__stats { display: flex; flex-direction: column; }
.abt__stat { border-bottom: 1px solid var(--ink-3); padding: 0 0 18px; }
.abt__stat + .abt__stat { margin-top: clamp(48px, 6vw, 96px); }
.abt__stat dt { font-size: clamp(54px, 6.6vw, 112px); font-weight: 400; letter-spacing: -.03em; line-height: .9; margin-bottom: 28px; }
.abt__stat dt sup { font-size: .45em; vertical-align: top; position: relative; top: .1em; margin-left: .03em; }
.abt__stat dd { color: var(--ink-2); max-width: 28em; line-height: 1.35; }
@media (max-width: 900px) {
  .abt__grid { grid-template-columns: 1fr; }
  .abt__l { padding-right: 0; display: contents; }
  .abt__txt { order: 1; }
  .abt__l > .btn { order: 2; justify-self: start; margin-bottom: 48px; }
  .abt__stats { order: 3; }
  .abt__ph { order: 4; margin-top: 48px; }
  .abt__stat dt { margin-bottom: 16px; }
  .abt__stat + .abt__stat { margin-top: 40px; }
}

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.fact { background: var(--white); padding: 24px 26px 28px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.fact b { font-size: clamp(36px, 4.4vw, 68px); font-weight: 400; letter-spacing: -.02em; line-height: .9; color: var(--accent); }
.fact p { color: var(--ink-2); max-width: 22em; }

.contacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.contact { background: var(--white); padding: 22px 26px 28px; min-height: 200px; display: flex; flex-direction: column; }
.contact--wide { grid-column: span 2; }
.contact .sec__tag { margin-bottom: auto; padding-bottom: 40px; }
.contact a { font-size: clamp(20px, 1.9vw, 28px); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; overflow-wrap: anywhere; transition: color .3s; }
.contact a:hover { color: var(--accent-d); }
.contact p { color: var(--ink-2); margin-top: 10px; }
.contact__addr { font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; color: var(--ink) !important; max-width: 24em; }
.contacts + .kp, .sec + .kp { margin-top: var(--gap); }
.sec--faq + .kp { margin-top: clamp(120px, 13vw, 200px); }

.prose { margin: clamp(40px, 4.5vw, 68px) var(--gut) 0; padding-left: calc(25% + var(--gap) / 2); max-width: none; }
.prose > * { max-width: 44em; }
.prose h2 { font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -.02em; line-height: 1.06; margin: 44px 0 14px; }
.prose p { color: var(--ink); line-height: 1.45; margin-bottom: 14px; overflow-wrap: anywhere; }
.prose .dlist { margin-bottom: 14px; }

.kp__legal a, .check a { text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 3px; }

@media (max-width: 1180px) {
  .dnav { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scrollbar-width: none; }
  .stepc { flex-basis: calc((100vw - var(--gut) * 2 - var(--gap) * 2) / 2.4); }
  .dbody { grid-template-columns: 1fr; }
  .daside { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .contacts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .stepc { flex-basis: 82vw; min-width: 0; padding: 22px 22px 26px; }
  /* одинаковая сетка внутри карточек: при листании заголовок, иконка и текст стоят на одной высоте */
  .stepc header { margin-bottom: 26px; }
  .stepc header .chip { white-space: nowrap; }
  .stepc h3 { font-size: 20px; line-height: 1.04; min-height: 3.12em; }
  .stepc__ico { flex: none; height: 168px; min-height: 0; padding: 0; }
  .stepc__ico svg { height: 112px; }
  .stepc__txt { flex: 1; min-height: 0; }
  .car__btn { display: none; }
  .car::before, .car::after { display: none; }
  .sec__more { justify-content: flex-start; }
  .ptop { padding-top: calc(var(--hdr) + 28px); }
  .dhead, .band, .dgrp, .dsec, .prow, .dex { grid-template-columns: 1fr; }
  .pbanner { aspect-ratio: 4 / 3; }
  .dgrp__cards, .gcards, .facts, .gminis, .dtiles, .daside, .contacts { grid-template-columns: 1fr; }
  .contact--wide { grid-column: auto; }
  .scard { min-height: 0; }
  .band { padding: 28px 22px; gap: 28px; }
  .dviz { aspect-ratio: 4 / 3.4; }
  .dviz__hint { display: none; }
  .dviz--scheme svg { width: 82%; }
  .dsec { gap: 18px; }
  .dsec__ttl .num { margin-bottom: -8px; }
  .dsec__ttl h2, .dsec__body { grid-column: 1; }
  .dsteps li { grid-template-columns: 34px 1fr; }
  .dsteps p { grid-column: 2; }
  .dex__pic { border-right: 0; border-bottom: 1px solid var(--bg); min-height: 200px; }
  .prow { gap: 22px; }
  .prow > div { padding: 0 22px; }
  .prose { padding-left: 0; }
  .ptable th, .ptable td { padding: 14px 18px; }
}

.svc__list .svc__sub { padding-left: 0; padding-top: 4px; font-size: 13px; font-weight: 400; color: var(--ink-2); break-after: avoid; }
.svc__list .svc__sub::before { display: none; }
.svc__list .svc__sub:not(:first-child) { margin-top: 14px; }
.svc__ttl h3 a { transition: color .3s; }
.svc__ttl h3 a:hover { color: var(--accent-d); }

/* ───────── направления работ с фото (главная) ───────── */
.dirs { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); }
.dir { grid-column: span 2; background: var(--white); display: flex; flex-direction: column; overflow: hidden; }
.dir--wide { grid-column: span 3; }
.dir__pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #dadce1; }
.dir--wide .dir__pic { aspect-ratio: 16 / 9; }
.dir__pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.dir:hover .dir__pic img { transform: scale(1.04); }
.dir:hover .more i { background: var(--accent); }
.dir:hover .more i::before { background: #fff; }
.dir:hover .more i::after { border-color: #fff; }
.dir__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.dir h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -.02em; line-height: 1.02; margin-bottom: 10px; transition: color .3s; }
.dir:hover h3 { color: var(--accent-d); }
.dir p { color: var(--ink-2); margin-bottom: 24px; max-width: 30em; }
.dir__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.dir__foot .chips { margin: 0 -4px; }
@media (max-width: 1180px) {
  .dirs { grid-template-columns: 1fr 1fr; }
  .dir, .dir--wide { grid-column: auto; }
  .dir:last-child { grid-column: 1 / -1; }
  .dir__pic, .dir--wide .dir__pic { aspect-ratio: 16 / 10; }
}
@media (max-width: 900px) {
  .dirs { grid-template-columns: 1fr; }
  .dir:last-child { grid-column: auto; }
}

/* ───────────── уведомление о cookie ───────────── */
.ftr__cookie { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; transition: color .3s; }
.ftr__cookie:hover { color: #fff; }
.ckb {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(400px, calc(100vw - 32px));
  background: var(--white); color: var(--ink); padding: 22px 22px 20px; box-shadow: 0 18px 60px rgba(18, 18, 20, .18);
  transition: opacity .4s, transform .5s var(--ease);
}
.ckb[hidden] { display: none; }
@starting-style { .ckb { opacity: 0; transform: translateY(16px); } }
.ckb.is-out { opacity: 0; transform: translateY(16px); }
.ckb__ttl { font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.ckb__txt { font-size: 14px; line-height: 1.38; color: var(--ink-2); margin-bottom: 16px; }
.ckb__txt a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 3px; }
.ckb__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.btn--sm { height: 44px; font-size: 13px; }
.btn--sm span { padding: 0 12px; }
.btn--line span { border: 1px solid var(--line); color: var(--ink); }
.btn--line:hover span { border-color: var(--ink); }
@media (max-width: 600px) {
  .ckb { left: 16px; right: 16px; bottom: 16px; width: auto; }
}

/* ───────── услуги: компактный вид на мобильных ───────── */
.unav, .svc__cnt { display: none; }
@media (max-width: 900px) {
  /* навигация по разделам, прилипает под шапкой */
  .unav {
    display: flex; gap: 6px; position: sticky; top: var(--hdr); z-index: 20;
    margin: 0 calc(var(--gut) * -1) 6px; padding: 10px var(--gut);
    overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
    background: rgba(242, 242, 242, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .unav::-webkit-scrollbar { display: none; }
  .unav a { flex: none; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; background: var(--white); font-size: 14px; white-space: nowrap; transition: background .3s, color .3s; }
  .unav a b { font-weight: 500; font-size: 12px; color: var(--accent-d); }
  .unav a.is-on { background: var(--ink); color: #fff; }
  .unav a.is-on b { color: var(--accent-l); }

  .dnav { display: none; }
  .dgrp { gap: 14px; padding: 24px 0 34px; scroll-margin-top: calc(var(--hdr) + 66px); }
  .dgrp__side { position: static; padding-right: 0; }
  .dgrp__pic { aspect-ratio: 16 / 10; margin-bottom: 16px; }
  .dgrp__side h2 { font-size: 26px; margin-bottom: 8px; }
  .dgrp__side p { font-size: 16px; line-height: 1.32; }
  .dgrp__cards { gap: 2px; margin-bottom: 14px; }
  .dgrp__cards .scard { min-height: 0; }
  .wl summary { padding: 16px 16px 16px 18px; font-size: 17px; }
  .wl .svc__list { columns: 1; padding: 4px 18px 18px; }

  /* карточка услуги — строка: метки, название, 2 строки описания, стрелка справа */
  .scard { position: relative; min-height: 0; padding: 16px 62px 18px 18px; }
  .scard .chips { margin: 0 0 12px; gap: 4px; }
  .scard .chip { padding: 6px 9px; font-size: 12px; }
  .scard h3 { font-size: 19px; line-height: 1.08; margin-bottom: 6px; }
  .scard p { font-size: 15px; line-height: 1.32; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .scard .more { position: absolute; right: 16px; top: 50%; margin: -15px 0 0; font-size: 0; gap: 0; }
  .scard:active { background: #eaf5fe; }

  /* полный перечень — раскрывающиеся группы */
  .svc { border-top: 0; display: grid; gap: 2px; }
  .svc__row { gap: 0; padding: 0; background: var(--white); border: 0; }
  .svc__row::before { display: none; }
  .svc__ttl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline; padding: 18px 18px 16px; }
  .svc__ttl h3 { font-size: 21px; line-height: 1.05; }
  .svc__cnt {
    grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 8px;
    margin-top: 8px; padding: 0; background: none; border: 0; font: inherit; font-size: 14px; color: var(--accent-d); cursor: pointer;
  }
  .svc__cnt i { width: 9px; height: 9px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .35s var(--ease); }
  .svc__cnt[aria-expanded="true"] i { transform: translateY(2px) rotate(-135deg); }
  .svc__txt { padding: 0 18px 16px; font-size: 15px; line-height: 1.32; }
  .svc__list { padding: 4px 18px 18px; border-top: 1px solid var(--bg); margin: 0; }
  .svc__list li { padding-top: 11px; padding-bottom: 11px; border-bottom: 1px solid var(--bg); font-size: 15px; line-height: 1.3; }
  .svc__list li::before { top: 1.2em; }
  .svc__list li:last-child { border-bottom: 0; }
  .svc__list .svc__sub { border-bottom: 0; padding-bottom: 0; }
  .svc__row.is-shut .svc__list { display: none; }
}

/* ── лента с фото/видео перед вопросами ── */
.vband { margin-top: clamp(96px, 11vw, 168px); position: relative; min-height: clamp(560px, 47vw, 880px); color: #fff; overflow: hidden; background: #6fa9e4; display: flex; }
.vband__media { position: absolute; inset: 0; }
.vband__media img, .vband__media video { width: 100%; height: 100%; object-fit: cover; object-position: 72% 100%; display: block; }
/* лёгкое затемнение слева и снизу — чтобы белый текст читался на светлом небе и домах */
.vband::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(18, 58, 108, .42) 0%, rgba(18, 58, 108, .18) 42%, rgba(18, 58, 108, 0) 64%),
              linear-gradient(0deg, rgba(14, 40, 78, .45) 0%, rgba(14, 40, 78, 0) 42%); }
/* как в референсе: левая часть фото размыта (заранее размытая копия под маской) — текст не спорит с домами, штатив справа резкий */
.vband__media .vband__blur { position: absolute; inset: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 36%, transparent 62%); mask-image: linear-gradient(90deg, #000 0%, #000 36%, transparent 62%); }
.vband__in { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: clamp(56px, 6vw, 96px) var(--gut) clamp(40px, 4.4vw, 72px); }
.vband__t { font-size: clamp(44px, 5.4vw, 92px); font-weight: 400; letter-spacing: -.04em; line-height: .98; max-width: 7.5em; text-shadow: 0 1px 24px rgba(10, 40, 80, .18); }
.vband__sub { margin-top: 22px; max-width: 26em; font-size: 17px; line-height: 1.35; color: rgba(255, 255, 255, .86); }
.vband__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 3vw, 56px); width: min(62%, 980px); }
.vband__facts > div + div { border-left: 1px solid rgba(255, 255, 255, .35); padding-left: clamp(20px, 2.4vw, 40px); }
.vband__ico { display: block; height: 52px; width: auto; max-width: 84px; margin-bottom: clamp(24px, 2.6vw, 40px); }
.vband__facts dt { font-size: clamp(28px, 2.6vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1; margin-bottom: 14px; }
.vband__facts dd { font-size: 15px; line-height: 1.35; color: rgba(255, 255, 255, .82); max-width: 20em; }
@media (max-width: 900px) {
  /* на телефоне: фото сверху с заголовком, факты — на сплошной синей плашке под фото, чтобы не спорили с домами и штативом */
  .vband { --mh: min(118vw, 720px); min-height: 0; background: #2f6cb0; }
  .vband__media { inset: 0 0 auto 0; height: var(--mh); }
  .vband__media img, .vband__media video { object-position: 88% 100%; }
  .vband::after { height: var(--mh); bottom: auto;
    background: linear-gradient(180deg, rgba(18, 58, 108, .32) 0%, rgba(18, 58, 108, 0) 38%, rgba(47, 108, 176, 0) 70%, #2f6cb0 100%); }
  .vband__in { padding: 56px var(--gut) 44px; gap: 0; }
  .vband__media .vband__blur { display: none; }
  .vband__head { min-height: calc(var(--mh) - 56px); }
  .vband__sub { max-width: 17em; }
  .vband__facts { grid-template-columns: 1fr; width: auto; gap: 22px; }
  .vband__facts dt { margin-bottom: 6px; }
  .vband__facts > div + div { border-left: 0; padding-left: 0; }
  .vband__ico { height: 40px; margin-bottom: 14px; }
}
