/* Nasledie Digital — светлый корпоративный стиль: белый фон, насыщенный синий, тёмно-синий подвал */
:root {
  --blue: #1F4FD8;
  --blue-dark: #173DB0;
  --navy: #0B1B4D;
  --ink: #16213F;
  --muted: #5A6583;
  --line: #E1E7F3;
  --soft: #F3F6FD;
  --tint: #E8EEFD;
  --white: #FFFFFF;
  --hot: #F2542D;
  --r-lg: 22px;
  --r-md: 16px;
  --shadow: 0 10px 30px rgba(20, 45, 120, .08);
  --font: "Manrope", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; flex: none; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--navy); letter-spacing: -0.02em; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid rgba(31, 79, 216, .45); outline-offset: 3px; border-radius: 8px; }
section[id] { scroll-margin-top: 84px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--blue); color: var(--white); font: 700 16px/1 var(--font); text-decoration: none;
  box-shadow: 0 8px 20px rgba(31, 79, 216, .25); transition: background .15s;
}
.btn:hover { background: var(--blue-dark); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; box-shadow: none; white-space: nowrap; }
.btn--line { background: var(--white); color: var(--blue); box-shadow: inset 0 0 0 1.5px #BCCBF3; }
.btn--line:hover { background: var(--tint); }
.btn--white { background: var(--white); color: var(--blue); box-shadow: none; }
.btn--white:hover { background: var(--tint); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 5px 10px rgba(31, 79, 216, .28)); }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text b { font-size: 18px; font-weight: 800; color: var(--navy); }
.logo__text small { font-size: 12px; color: var(--muted); }
.top__nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 600; }
.top__nav a { text-decoration: none; color: var(--ink); }
.top__nav a:hover { color: var(--blue); }
.top__actions { display: flex; align-items: center; gap: 16px; }
.top__tg { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--navy); }
.top__tg svg { color: var(--blue); font-size: 18px; }
.top__burger { display: none; width: 44px; height: 44px; border: 1.5px solid var(--line); background: var(--white); border-radius: 12px; cursor: pointer; place-items: center; color: var(--navy); }
.top__burger svg { font-size: 22px; }

/* Первый экран */
.hero {
  position: relative; overflow: hidden; padding: 64px 0 90px;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(31, 79, 216, .12), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(31, 79, 216, .06), transparent 60%),
    linear-gradient(180deg, #F6F9FF 0%, #FFFFFF 100%);
}
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.08; font-weight: 800; }
.lead { font-size: 19px; color: var(--muted); margin: 22px 0 32px; max-width: 34em; }
.hero__trust { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; font-size: 14.5px; color: var(--muted); max-width: 32em; }
.hero__trust svg { font-size: 26px; color: var(--blue); margin-top: -2px; }

.hero__visual { position: relative; display: flex; justify-content: flex-end; align-items: center; gap: 24px; min-height: 560px; }
.phone {
  position: relative; width: 296px; flex: none; background: var(--white); border-radius: 36px; padding: 16px 14px 26px;
  box-shadow: 0 0 0 9px #0F1F57, 0 40px 80px rgba(11, 27, 77, .28); min-height: 520px;
}
.phone__head { display: flex; gap: 12px; align-items: center; padding: 6px 6px 14px; border-bottom: 1px solid var(--line); }
.phone__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.phone__name { font-weight: 700; font-size: 15px; color: var(--navy); }
.phone__status { font-size: 12.5px; color: #15803D; }
.dm { list-style: none; margin: 0; padding: 16px 2px 0; display: flex; flex-direction: column; gap: 10px; }
.dm__msg { max-width: 86%; padding: 10px 13px; border-radius: 18px; font-size: 14.5px; line-height: 1.4; }
.dm__msg--in { background: var(--soft); align-self: flex-start; border-bottom-left-radius: 6px; }
.dm__msg--out { background: var(--blue); color: var(--white); align-self: flex-end; border-bottom-right-radius: 6px; }
.lead-card {
  position: absolute; left: -38px; right: 30px; bottom: -26px; background: var(--white);
  border-radius: 16px; padding: 14px 18px 14px 56px; box-shadow: 0 18px 40px rgba(11, 27, 77, .2);
  display: flex; flex-direction: column; font-size: 14px; color: var(--muted);
}
.lead-card::before { content: ""; position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%; background: #16A34A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.lead-card b { color: var(--navy); font-size: 15px; }

.js .dm__msg, .js .lead-card { opacity: 0; translate: 0 10px; transition: opacity .4s var(--ease-out), translate .4s var(--ease-out); }
.js .is-shown { opacity: 1; translate: 0 0; }

.quick {
  width: 228px; flex: none; background: var(--white);
  border-radius: var(--r-lg); padding: 8px; box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.quick__item { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px; border-radius: 14px; border: 0; background: none; text-align: left; cursor: pointer; text-decoration: none; }
.quick__item:hover { background: var(--soft); }
.quick__item + .quick__item { border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; }
.quick__item b { display: block; font-size: 14.5px; color: var(--navy); }
.quick__item small { display: block; font-size: 12.5px; color: var(--muted); }
.quick__ic { width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--blue); display: grid; place-items: center; flex: none; }
.quick__ic svg { font-size: 20px; }

/* Секции */
.section { padding: 88px 0; }
.section--soft { background: var(--soft); }
.h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; font-weight: 800; margin-bottom: 14px; }
.sub { color: var(--muted); font-size: 18px; margin-bottom: 36px; }
.h2.center { margin-bottom: 44px; }
.ic { width: 52px; height: 52px; border-radius: 16px; background: var(--tint); color: var(--blue); display: grid; place-items: center; flex: none; }
.ic svg { font-size: 26px; }

/* Услуги */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.svc { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.svc__body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.svc__top { display: flex; gap: 14px; align-items: center; }
.svc h3 { font-size: 20px; line-height: 1.25; font-weight: 800; }
.svc p { color: var(--muted); font-size: 15.5px; }
.svc__img { width: 100%; height: 100%; object-fit: cover; }
.svc__pic { display: contents; }
.svc__pic source { display: none; } /* <picture> не ломает сетку карточки: картинкой в сетке остаётся img */
.badge { align-self: flex-start; background: #FFECE6; color: #C2410C; font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; margin-top: -4px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat; }
.svc__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.price { font-size: 20px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.price small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.price small.price__note { white-space: normal; max-width: 200px; line-height: 1.3; }

/* Шаги */
.section--strip { padding: 64px 0; }
.section--strip .h2.center { margin-bottom: 32px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.step__ic { width: 56px; height: 56px; border-radius: 50%; background: var(--white); color: var(--blue); display: grid; place-items: center; box-shadow: var(--shadow), 0 0 0 1px var(--line); margin-bottom: 4px; }
.step__ic svg { font-size: 24px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: calc(50% + 38px); right: calc(-50% + 38px); border-top: 2px dashed #B9C8EE; }
.steps b { color: var(--navy); font-size: 15.5px; }
.steps b::before { content: counter(step) ". "; color: var(--blue); }
.steps span { color: var(--muted); font-size: 14px; line-height: 1.45; }

/* Почему мы */
.why { list-style: none; margin: 40px 0 0; padding: 18px 20px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.why__item { display: flex; gap: 12px; align-items: flex-start; }
.why__item .ic { width: 40px; height: 40px; border-radius: 12px; }
.why__item .ic svg { font-size: 20px; }
.why__item b { display: block; color: var(--navy); font-size: 15px; line-height: 1.3; }
.why__item > span:last-child > span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.4; margin-top: 2px; }

/* Аудит заявок — платный второй шаг после бесплатного разбора (решение 04.10.2026) */
.audit { scroll-margin-top: 84px; margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 30px 32px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow), 0 0 0 1px var(--line); border-left: 4px solid var(--blue); }
.audit__main { display: grid; gap: 10px; }
.audit__when { color: var(--blue); font-size: 14.5px; font-weight: 700; }
.audit h3 { font-size: 24px; line-height: 1.2; font-weight: 800; }
.audit__main > p:last-child { color: var(--muted); font-size: 15.5px; max-width: 62ch; }
.audit__side { display: grid; gap: 18px; padding-left: 32px; border-left: 1px solid var(--line); }
.audit__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Калькулятор */
.calc { display: grid; grid-template-columns: .8fr 1.2fr; background: var(--white); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.calc__intro { padding: 44px; background: linear-gradient(160deg, #EDF2FF, #F8FAFF); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.calc__intro p { color: var(--muted); }
.calc__form { padding: 36px 40px; display: grid; gap: 22px; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 800; color: var(--navy); margin-bottom: 12px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label, .opts label { cursor: pointer; }
.chips input, .opts input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 600; font-size: 15px; background: var(--white); }
.chips input:checked + span { border-color: var(--blue); background: var(--tint); color: var(--blue); }
.chips input:focus-visible + span, .opts input:focus-visible + span { outline: 3px solid rgba(31, 79, 216, .45); outline-offset: 2px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opts label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; align-items: center; padding: 12px 14px 12px 44px; border-radius: 12px; border: 1.5px solid var(--line); position: relative; font-size: 15px; font-weight: 600; }
.opts label::before { content: ""; position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #B9C4DD; background: var(--white); }
.opts label:has(input:checked) { border-color: var(--blue); background: var(--tint); }
.opts label:has(input:checked)::before { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; border-color: var(--blue); }
.opts label[hidden] { display: none; }
.opts em { font-style: normal; color: var(--muted); font-weight: 600; font-size: 14px; }
.calc__result { display: grid; gap: 4px; padding: 20px 22px; border-radius: 16px; background: var(--navy); color: #C9D5F5; }
.calc__result b { color: var(--white); font-size: 30px; font-weight: 800; line-height: 1.2; }
.calc__result small { font-size: 14px; }
.calc__note { font-size: 13px; color: var(--muted); }

/* Работы */

/* FAQ */
details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; }
summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 700; font-size: 17px; color: var(--navy); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--blue); display: grid; place-items: center; font-size: 20px; font-weight: 700; }
details[open] summary::after { content: "−"; }
details p { padding: 0 24px 22px; color: var(--muted); }

/* Призыв */
.banner {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 36px 44px;
  border-radius: 26px; color: var(--white);
  background: radial-gradient(500px 300px at 90% 0%, rgba(255, 255, 255, .14), transparent 60%), linear-gradient(120deg, #1F4FD8, #0B1B4D);
}
.banner__ic { width: 72px; height: 72px; border-radius: 20px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; }
.banner__ic svg { font-size: 34px; }
.banner h2 { color: var(--white); font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.banner p { color: #D5DEF8; }

/* Подвал */
.foot { background: var(--navy); color: #B9C5E6; padding-top: 56px; font-size: 15px; }
.foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.foot h3 { color: var(--white); font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.foot__grid a, .foot__link { display: block; text-decoration: none; margin-bottom: 9px; color: #B9C5E6; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.foot__grid a:hover, .foot__link:hover { color: var(--white); }
.logo--light .logo__text b { color: var(--white); }
.logo--light .logo__text small { color: #97A6D2; }
.foot__about { margin-top: 18px; max-width: 26em; }
.foot__muted { color: #8C9BC8; font-size: 14px; }
.foot__bottom a { color: #B9C5E6; }
.foot__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #8C9BC8; }

/* Консультант */
.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer; background: var(--blue); color: var(--white); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(31, 79, 216, .4); }
.chat-fab svg { font-size: 28px; }
.chat { position: fixed; right: 22px; bottom: 96px; z-index: 51; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 130px)); background: var(--white); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(11, 27, 77, .3); }
.chat[hidden] { display: none; }
.chat__head { background: var(--blue); color: var(--white); padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; }
.chat__head b { display: block; font-size: 16px; }
.chat__head span { font-size: 13px; color: #D5DEF8; }
.chat__close { width: 40px; height: 40px; margin: -6px -8px -6px 0; display: grid; place-items: center; background: none; border: 0; border-radius: 10px; color: var(--white); cursor: pointer; }
.chat__close svg { font-size: 22px; }
.chat__close:hover { background: rgba(255, 255, 255, .14); }
.chat:focus { outline: none; }
.chat__log { list-style: none; margin: 0; padding: 16px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: var(--soft); }
.chat__log li { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; white-space: pre-line; }
.chat__log .bot { background: var(--white); align-self: flex-start; border-bottom-left-radius: 5px; }
.chat__log .me { background: var(--blue); color: var(--white); align-self: flex-end; border-bottom-right-radius: 5px; }
.chat__log a { color: var(--blue); font-weight: 700; }
.chat__quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; background: var(--soft); }
.chat__quick button { border: 1.5px solid var(--blue); background: var(--white); color: var(--blue); border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 600; cursor: pointer; }
.chat__quick button:hover { background: var(--tint); }
.chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat__form input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; font: 400 16px/1.2 var(--font); }
.chat__form button { width: 46px; border: 0; border-radius: 12px; background: var(--blue); color: var(--white); display: grid; place-items: center; cursor: pointer; }
.chat__form button svg { font-size: 18px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .dm__msg, .js .lead-card { opacity: 1; translate: none; transition: none; }
}

/* Большие мониторы: шире сетка и крупнее текст */
@media (min-width: 1600px) {
  .wrap { max-width: 1400px; }
  body { font-size: 18px; }
  .hero { padding: 88px 0 110px; }
  .hero h1 { font-size: 66px; }
  .lead { font-size: 20px; }
  .phone { width: 320px; }
  .quick { width: 250px; }
  .section { padding: 104px 0; }
}

/* Ноутбук и планшет горизонтально */
@media (max-width: 1140px) {
  .top__nav { gap: 18px; }
  .top__tg { display: none; }
  .hero__visual { flex-direction: column; justify-content: center; gap: 56px; min-height: 0; }
  .quick { width: min(100%, 420px); }
  /* Планшет и небольшой ноутбук: две колонки карточек, фото сверху */
  .svc { grid-template-columns: 1fr; }
  .svc__img { order: -1; height: 210px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .steps li:nth-child(3)::after { display: none; }
  .why { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .audit { grid-template-columns: 1fr; gap: 22px; }
  .audit__side { padding-left: 0; padding-top: 20px; border-left: 0; border-top: 1px solid var(--line); }
}

/* Планшет вертикально */
@media (max-width: 900px) {
  .top__nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; box-shadow: var(--shadow);
  }
  .top__nav.is-open { display: flex; }
  .top__nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .top__burger { display: grid; }
  .top__actions { margin-left: auto; }
  .hero { padding: 44px 0 72px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .calc { grid-template-columns: 1fr; }
  .calc__intro { padding: 32px; }
  .calc__form { padding: 28px 32px 32px; }
  .banner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}

/* Телефон */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top__row { gap: 12px; min-height: 64px; }
  .logo__mark { width: 38px; height: 38px; }
  .logo__text b { font-size: 16px; }
  .logo__text small { display: none; }
  .top .btn--sm { min-height: 40px; padding: 0 12px; font-size: 13.5px; }
  .top__nav { padding: 8px 16px 16px; }
  .lead { font-size: 17px; }
  .actions .btn { width: 100%; }
  .phone { width: 300px; }
  .lead-card { left: -14px; right: 14px; }
  .services { grid-template-columns: 1fr; gap: 18px; }
  .svc { grid-template-columns: 1fr; }
  .svc__img { order: -1; height: 190px; }
  .svc__body { padding: 22px; }
  .section--strip { padding: 52px 0; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 0; text-align: left; align-items: start; }
  .steps li::after { display: none; }
  .step__ic { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
  .step__ic svg { font-size: 20px; }
  .why { grid-template-columns: 1fr; gap: 14px; padding: 18px 16px; margin-top: 28px; }
  .audit { margin-top: 28px; padding: 22px 18px; }
  .audit h3 { font-size: 21px; }
  .audit__btns .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.25; }
  .opts { grid-template-columns: 1fr; }
  .calc__intro, .calc__form { padding: 24px 20px; }
  .banner { padding: 30px 22px; }
  .banner .btn { width: 100%; }
  .foot__grid { grid-template-columns: 1fr; }
  .chat { right: 12px; bottom: 86px; }
  .chat-fab { right: 16px; bottom: 16px; }
  .foot__bottom { padding-bottom: 96px; }
}

/* Юридические страницы */
.doc { max-width: 820px; margin: 0 auto; padding: 56px 24px 80px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; margin-bottom: 10px; }
.doc h2 { font-size: 21px; font-weight: 800; margin: 32px 0 10px; }
.doc p, .doc li { margin-bottom: 10px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc .muted { color: var(--muted); }
.doc .todo { background: #FFF4D6; border-radius: 6px; padding: 0 4px; }
.doc table { border-collapse: collapse; width: 100%; margin: 8px 0 16px; font-size: 15px; }
.doc td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; overflow-wrap: break-word; }
.doc td:first-child { min-width: 92px; }
.doc { overflow-wrap: break-word; }
.back { display: inline-block; margin-bottom: 28px; color: var(--blue); font-weight: 700; text-decoration: none; }
.foot__docs { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot__docs .foot__link { display: inline; margin: 0; font: inherit; color: #B9C5E6; }
.foot__grid a.logo { display: flex; margin-bottom: 0; }

/* Уведомление о cookie */
.cookie { position: fixed; left: 22px; bottom: 22px; z-index: 49; max-width: 460px; display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 16px 40px rgba(11, 27, 77, .18); font-size: 14px; line-height: 1.45; color: var(--muted); }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { color: var(--blue); }
.cookie__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie__btns .btn { flex: 1; }
@media (max-width: 640px) {
  .cookie { left: 12px; right: 90px; bottom: 12px; max-width: none; flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; font-size: 13px; }
}

/* Наши работы */
.works { background: linear-gradient(180deg, var(--white) 0%, var(--soft) 100%); }
.works__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.works__head .sub { max-width: 680px; }
.works__kicker { color: var(--blue); font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.works__pdf { margin-bottom: 30px; }
.wfilter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.wfilter button { font: 700 14.5px/1 var(--font); color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 11px 18px; cursor: pointer; transition: color .15s ease, background-color .15s ease, border-color .15s ease, transform .16s var(--ease-out); }
.wfilter button:hover { border-color: var(--blue); color: var(--blue); }
.wfilter button.is-on { background: var(--navy); border-color: var(--navy); color: var(--white); }

.wgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.wcard { grid-column: span 3; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .wcard:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(20, 45, 120, .16); } }
.wcard[hidden] { display: none; }
.wcard__text { padding: 22px 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.wcard h3 { font-size: 20px; line-height: 1.2; font-weight: 800; color: var(--navy); }
.wcard p { color: var(--muted); font-size: 15px; }
.wcard__media { position: relative; overflow: hidden; background: var(--tint); }
.wcard__media img { display: block; max-width: 100%; height: auto; transition: transform .5s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .wcard:hover .wcard__media img { transform: scale(1.03); } }
[data-zoom] { cursor: zoom-in; }

.wtags { display: flex; flex-wrap: wrap; gap: 6px; }
.wtag { font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--tint); color: var(--blue); }
.wtag--own { background: #E6F7EE; color: #0F7A46; }
.wtag--demo { background: #FFF4D6; color: #8A5A00; }
.wtag--client { background: #F1E9FF; color: #6B3FC4; }
.wstack { display: flex; flex-wrap: wrap; gap: 6px; }
.wstack span { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); }
.wlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.wlist li { position: relative; padding-left: 22px; }
.wlist li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--tint); }
.wtry { align-self: flex-start; font: 800 15px/1 var(--font); color: var(--blue); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.wtry:hover { text-decoration: underline; }

/* Тёмно-синие карточки: «Этот сайт» и MLM */
.wcard--navy { background: radial-gradient(700px 420px at 92% 0%, #2A5BE8 0%, transparent 62%), var(--navy); border-color: var(--navy); }
.wcard--navy h3 { color: var(--white); }
.wcard--navy p { color: #C9D5F5; }
.wcard--navy .wtag { background: rgba(255, 255, 255, .12); color: #DCE6FF; }
.wcard--navy .wtag--own { background: rgba(34, 181, 115, .2); color: #7BE3B2; }
.wcard--navy .wtag--demo { background: var(--sun, #FFD23F); color: var(--navy); }
.wcard--navy .wstack span { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #DCE6FF; }
.wcard--navy .wlist { color: #E4EBFF; }
.wcard--navy .wlist li::before { background: #6F9BFF; box-shadow: 0 0 0 4px rgba(111, 155, 255, .22); }
.wcard--navy .wtry { color: #9DBBFF; }

/* Главный кейс — «Этот сайт»: текст слева, сайт в браузере справа */
.wcard--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.wcard--lead .wcard__text { padding: 40px 40px 40px 42px; justify-content: center; gap: 12px; }
.wcard--lead h3 { font-size: clamp(28px, 3vw, 38px); }
.wcard--lead p { font-size: 16.5px; }
.wcard--lead .wlist { font-size: 15.5px; gap: 8px; }
.wcard--lead .wtry { margin-top: 4px; font-size: 16px; }
.wcard--lead .wmedia--browser { height: auto; min-height: 380px; display: flex; flex-direction: column; padding: 40px 0 0; background: transparent; }
.wcard--lead .browser { border-radius: 12px 0 0 0; }
.wcard--lead .wmedia--browser > img:not(.wfloat) { flex: 1 1 0; min-height: 0; height: auto; border-radius: 0; object-position: left top; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.wcard--lead .wmedia--browser > .wfloat--calc { width: 40%; right: 28px; bottom: 28px; border: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }

/* MLM: компактная, как «Финансовый симулятор» — телефоны сверху, текст снизу */
.wcard--mlm .wcard__text { padding: 20px 26px 24px; gap: 8px; }
.wcard--mlm .wmedia--phones { flex: 1 1 auto; height: auto; min-height: 210px; }
.wcard--mlm .wstats { grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px; margin: 2px 0; }
.wcard--mlm .wstats li { display: flex; align-items: baseline; gap: 6px; padding: 6px 11px; border-radius: 10px; }
.wcard--mlm .wstats b { display: inline; font-size: 17px; }
.wcard--mlm .wstats span { font-size: 13px; }
.wstats { list-style: none; margin: 4px 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wstats li { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 10px 14px; }
.wstats b { display: block; color: var(--white); font-size: 24px; font-weight: 800; line-height: 1.1; }
.wstats span { color: #B9C5E6; font-size: 13px; }
.wmedia--phones { background: transparent; min-height: 330px; }
.wphone { position: absolute; width: 132px; border-radius: 22px; border: 7px solid #050D2B; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); background: var(--white); }
.wphone--back { left: 12%; top: 44px; transform: rotate(-7deg); }
.wphone--front { left: 38%; top: 22px; transform: rotate(5deg); z-index: 2; }
.wcard:hover .wmedia--phones .wphone--back { transform: rotate(-9deg) translateY(-6px); }
.wcard:hover .wmedia--phones .wphone--front { transform: rotate(3deg) translateY(-10px); }
.wmedia--phones .wfloat { position: absolute; z-index: 3; width: 140px; right: 8%; bottom: 22px; border-radius: 14px; box-shadow: 0 20px 44px rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .5); }
.wcard:hover .wmedia--phones .wfloat { transform: translateY(-6px); }
.wbadge { display: none; position: absolute; left: 18px; bottom: 14px; z-index: 4; background: rgba(255, 255, 255, .95); color: var(--navy); font-size: 12px; font-weight: 700; padding: 7px 11px; border-radius: 10px; }

/* Карточки с «браузером» */
.wmedia--browser { height: 250px; padding: 20px 20px 0; background: linear-gradient(160deg, #E8EEFD, #D5E0FB); }
.wmedia--browser > img { width: 100%; height: calc(100% - 34px); object-fit: cover; object-position: top; border-radius: 0 0 6px 6px; box-shadow: 0 16px 40px rgba(20, 45, 120, .2); }
.browser { display: flex; align-items: center; gap: 6px; background: #F7F9FE; border-radius: 10px 10px 0 0; padding: 9px 12px; box-shadow: 0 16px 40px rgba(20, 45, 120, .12); }
.browser i { width: 9px; height: 9px; border-radius: 50%; background: #F2542D; }
.browser i:nth-child(2) { background: #FFB020; }
.browser i:nth-child(3) { background: #22B573; }
.browser span { margin-left: 10px; flex: 1; font-size: 11.5px; color: var(--muted); background: var(--white); border-radius: 6px; padding: 3px 10px; }
.wmedia--browser > .wfloat--calc { position: absolute; z-index: 3; height: auto; object-fit: contain; right: 12px; bottom: 12px; width: 36%; border-radius: 10px; }
.wcard:hover .wmedia--browser > .wfloat--calc { transform: translateY(-6px); }
.wcard--dark { background: #0E1626; border-color: #0E1626; }
.wcard--dark h3 { color: var(--white); }
.wcard--dark p { color: #AEB9D6; }
.wcard--dark .wstack span { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); color: #DCE6FF; }
.wcard--dark .wtag { background: rgba(255, 255, 255, .1); color: #DCE6FF; }
.wcard--dark .wtag--own { background: rgba(34, 181, 115, .18); color: #7BE3B2; }
.wcard--dark .wmedia--browser { background: linear-gradient(160deg, #13203A, #0A1222); }
.browser--dark { background: #1A2338; }
.browser--dark span { background: #0E1626; color: #8A96B8; }

/* Финансовый симулятор: компактная карточка, высота — по книге */
.wcard--fin .wmedia--browser { height: auto; min-height: 210px; flex: 1 1 auto; display: flex; flex-direction: column; padding: 20px 22px 0; }
.wcard--fin .wmedia--browser > img { flex: 1 1 0; min-height: 0; height: auto; object-position: left top; }
.wcard--fin .wcard__text { padding: 20px 26px 24px; gap: 8px; }

/* Джарвис: чат растягивается на высоту соседней карточки MLM */
.wcard--jarvis .wmedia--chat { flex: 1 1 auto; display: flex; padding: 0 26px 20px; }
.wcard--jarvis .wchat { display: flex; flex-direction: column; justify-content: space-between; gap: 7px; font-size: 13.5px; }
.wcard--jarvis .wchat__head { margin: 0 -26px; padding: 10px 26px; background: rgba(255, 255, 255, .55); border-bottom: 1px solid rgba(20, 45, 120, .08); }
.wcard--jarvis .wchat__day { align-self: center; margin: 12px 0 0; font-size: 12.5px; font-weight: 700; color: #4B5B85; background: rgba(255, 255, 255, .6); padding: 4px 12px; border-radius: 999px; }
.wcard--jarvis .wmsg { align-self: flex-start; padding: 7px 12px; }
.wcard--jarvis .wchat__ava { width: 32px; height: 32px; font-size: 14px; }
.wcard--jarvis .wcard__text { padding: 20px 26px 24px; gap: 8px; }
.wcard--jarvis .wmsg--out { align-self: flex-end; }
.wmedia--chat { padding: 18px 16px; background: linear-gradient(160deg, #DCE6F4, #C9D8F0); }
.wchat { width: 100%; display: grid; gap: 8px; font-size: 14px; line-height: 1.4; }
.wchat__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; color: var(--navy); }
.wchat__head b { display: block; font-size: 15px; }
.wchat__head small { display: block; font-size: 12.5px; color: #15803D; }
.wchat__ava { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--white); font-weight: 800; }
.wmsg { max-width: 86%; background: var(--white); border-radius: 14px; padding: 9px 13px; box-shadow: 0 2px 6px rgba(20, 45, 120, .06); }
.wmsg--out { justify-self: end; background: #DFF7C8; }
.wmsg--voice { display: flex; align-items: center; gap: 8px; }
.wmsg--voice i { width: 110px; height: 16px; background: repeating-linear-gradient(90deg, #4CA34C 0 3px, transparent 3px 6px); border-radius: 3px; opacity: .75; }

/* Призыв под работами */
.wcta { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 30px; border-radius: var(--r-lg); background: var(--white); border: 1px dashed #BCCBF3; }
.wcta b { display: block; font-size: 20px; color: var(--navy); }
.wcta span { color: var(--muted); }

/* Просмотр картинок */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 12, 35, .82); }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 14px; display: block; margin: 0 auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__close { position: absolute; top: -18px; right: -18px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.lightbox__close svg { font-size: 22px; }
@media (max-width: 760px) { .lightbox__close { top: 8px; right: 8px; } }

@media (max-width: 1140px) {
  .wcard--lead .wcard__text { padding: 34px 30px 34px 34px; }
  .wphone { width: 120px; border-width: 6px; border-radius: 20px; }
  .wphone--back { left: 8%; }
  .wphone--front { left: 36%; }
  .wmedia--phones .wfloat { width: 124px; right: 6%; }
  .wcard--mlm .wstats li { padding: 6px 9px; }
}
@media (max-width: 900px) {
  .wcard, .wcard--lead { grid-column: 1 / -1; }
  .wcard--lead { grid-template-columns: 1fr; }
  .wcard--lead .wcard__text { padding: 32px 28px 26px; }
  .wcard--lead .wmedia--browser { min-height: 0; height: 340px; padding: 0 0 0 28px; }
  .wcard--jarvis .wmedia--chat { padding: 24px 28px; }
  .wcard--mlm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wcard--mlm .wcard__media { order: 2; }
  .wcard--mlm .wmedia--phones { height: auto; min-height: 260px; }
  .wcard--mlm .wcard__text { justify-content: center; padding: 26px 24px 26px 28px; }
  .wcard--mlm .wstats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wcard--mlm .wstats li { display: block; padding: 7px 10px; }
  .wcard--mlm .wstats b { display: block; }
  .wcard--mlm .wstats span { display: block; font-size: 12.5px; line-height: 1.3; margin-top: 2px; }
  .wphone { width: 132px; border-width: 7px; border-radius: 22px; }
  .wphone--back { left: 6%; top: 40px; }
  .wphone--front { left: auto; right: 10%; top: 22px; }
  .wmedia--phones .wfloat { width: 130px; left: 22%; right: auto; bottom: 20px; }
  .wcard--fin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wcard--fin .wcard__media { order: 2; }
  .wcard--fin .wmedia--browser { min-height: 230px; padding: 22px 0 0 0; }
  .wcard--fin .browser { border-radius: 10px 0 0 0; }
  .wcard--fin .wcard__text { justify-content: center; padding: 26px 24px 26px 28px; }
  .works__pdf { margin-bottom: 20px; }
}
@media (max-width: 640px) {
  .wgrid { grid-template-columns: 1fr; gap: 18px; }
  .wcard--lead .wcard__text { padding: 28px 24px 24px; }
  .wcard--lead .wmedia--browser { height: 230px; padding-left: 24px; }
  .wcard--lead .wmedia--browser > .wfloat--calc { width: 46%; right: 14px; bottom: 14px; }
  .wcard--jarvis .wmedia--chat { padding: 22px 18px; }
  .wcard--mlm { grid-template-columns: 1fr; }
  .wcard--mlm .wcard__media { order: 0; }
  .wcard--mlm .wmedia--phones { min-height: 0; height: 220px; }
  .wcard--mlm .wcard__text { padding: 20px 24px 24px; }
  .wcard--mlm .wstats li { padding: 6px 9px; gap: 5px; }
  .wcard--mlm .wstats span { display: block; font-size: 12.5px; line-height: 1.3; margin-top: 2px; }
  .wphone { width: 118px; border-width: 6px; border-radius: 18px; }
  .wphone--back { left: 6%; top: 34px; }
  .wphone--front { left: auto; right: 34%; top: 18px; }
  .wmedia--phones .wfloat { width: 124px; left: auto; right: 5%; bottom: 18px; }
  .wcard--fin { grid-template-columns: 1fr; }
  .wcard--fin .wcard__media { order: 0; }
  .wcard--fin .wmedia--browser { min-height: 0; height: 210px; padding: 18px 18px 0; }
  .wcard--fin .browser { border-radius: 10px 10px 0 0; }
  .wcard--fin .wcard__text { padding: 20px 24px 24px; }
  .wcta { padding: 22px 20px; }
  .wcta .btn { width: 100%; }
  .wcard:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wcard, .wcard *, .wcard *::before, .wcard *::after { transition: none !important; }
  .wcard:hover { transform: none; }
  .wcard:hover .wcard__media img, .wcard:hover .wmedia--phones .wfloat, .wcard:hover .wmedia--browser > .wfloat--calc { transform: none; }
  .wcard:hover .wmedia--phones .wphone--back { transform: rotate(-7deg); }
  .wcard:hover .wmedia--phones .wphone--front { transform: rotate(5deg); }
}

/* ---- Правки по аудиту 01.10 ---- */
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--navy); color: var(--white); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
.hero__note { margin-top: 16px; font-size: 14.5px; color: var(--muted); max-width: 34em; }
.hero__note b { color: var(--navy); }

/* Шапка: звонок, меню с контактами, иконка «×» */
.top__call { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); place-items: center; color: var(--blue); background: var(--white); }
.top__call svg { font-size: 20px; }
.top__burger-close { display: none; }
.top__burger[aria-expanded="true"] .top__burger-open { display: none; }
.top__burger[aria-expanded="true"] .top__burger-close { display: block; }
.top__nav-contacts { display: none; }
@media (max-width: 1140px) { .top__call { display: grid; } }
@media (max-width: 900px) {
  .top__nav-contacts { display: grid; gap: 2px; padding-top: 10px; }
  .top__nav-contacts a, .top__nav-contacts button { display: flex; align-items: center; gap: 10px; padding: 10px 0; border: 0; background: none; color: var(--navy); font: 700 15px/1.3 var(--font); text-decoration: none; cursor: pointer; text-align: left; }
  .top__nav-contacts svg { color: var(--blue); font-size: 18px; }
  .top__nav-contacts .btn { justify-content: center; margin-top: 8px; padding: 0 18px; background: var(--blue); color: var(--white); }
}
@media (max-width: 600px) { .top__actions { gap: 8px; } .top__call, .top__burger { width: 40px; height: 40px; } }
/* Телефон: в шапке — звонок и меню; кнопка разбора есть на первом экране и в меню */
@media (max-width: 480px) { .top__actions > .btn { display: none; } }
/* Узкие телефоны (360): короче логотип и кнопка, без горизонтальной прокрутки */
@media (max-width: 380px) {
  .wrap { padding: 0 12px; }
  .top__row { gap: 8px; }
  .logo { gap: 8px; }
  .logo__mark { width: 34px; height: 34px; }
  .logo__text b { font-size: 15px; }
  .top .btn--sm { padding: 0 10px; font-size: 13px; }
}

/* Калькулятор: отправить расчёт */
.calc__send { justify-self: start; margin-top: 10px; }

/* Финальный блок: телефон и короткая форма */
.banner__actions { display: grid; gap: 10px; justify-items: center; }
.banner__tel { color: #D5DEF8; font-size: 14.5px; text-decoration: none; }
.banner__tel:hover { color: var(--white); }
.callme { margin-top: 20px; display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 14px 16px; align-items: end; padding: 24px 28px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.callme__head { grid-column: 1; grid-row: span 2; align-self: center; }
.callme__head b { display: block; color: var(--navy); font-size: 18px; }
.callme__head span { color: var(--muted); font-size: 14.5px; }
.callme__field span { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.callme__field input { width: 100%; min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; font: 400 16px/1.2 var(--font); color: var(--ink); }
.callme__field input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(31, 79, 216, .18); }
.callme .btn { min-height: 48px; grid-column: 4; grid-row: 1; }
.callme__field:nth-of-type(1) { grid-column: 2; grid-row: 1; }
.callme__field:nth-of-type(2) { grid-column: 3; grid-row: 1; }
.callme__consent { grid-row: 2; }
.callme__consent { grid-column: 2 / 5; display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.callme__consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.callme__consent a { color: var(--blue); }
.callme__legal { grid-column: 2 / 5; grid-row: 3; margin: -6px 0 0 28px; font-size: 12.5px; color: var(--muted); }
.callme__legal a { color: var(--blue); }
.callme__msg { grid-column: 1 / -1; font-size: 14.5px; color: #15803D; }
.callme__msg:empty { display: none; }
.callme__msg.is-bad { color: #B42318; }
.callme__msg a { color: var(--blue); font-weight: 700; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) {
  .callme { grid-template-columns: 1fr 1fr; }
  .callme__head { grid-column: 1 / -1; grid-row: 1; }
  .callme__field:nth-of-type(1) { grid-column: 1; grid-row: 2; }
  .callme__field:nth-of-type(2) { grid-column: 2; grid-row: 2; }
  .callme__consent { grid-column: 1 / -1; grid-row: 3; }
  .callme .btn { grid-column: 1 / -1; grid-row: 5; }
  .callme__legal { grid-column: 1 / -1; grid-row: 4; }
}
@media (max-width: 600px) {
  .callme { grid-template-columns: 1fr; padding: 22px 18px; }
  .callme__field:nth-of-type(1), .callme__field:nth-of-type(2) { grid-column: 1; grid-row: auto; }
  .callme__consent, .callme__legal, .callme .btn, .callme__head { grid-row: auto; }
}

/* Фильтр работ: единственная карточка в строке — во всю ширину */
.wcard.is-alone { grid-column: 1 / -1; }
.wcard--jarvis.is-alone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 640px) { .wcard--jarvis.is-alone { grid-template-columns: 1fr; } }

/* К5: компактный cookie-баннер на телефоне; кнопка консультанта поднимается над ним */
.cookie__short { display: none; }
@media (max-width: 640px) {
  .cookie { left: 10px; right: 10px; bottom: 10px; gap: 7px; padding: 9px 12px; font-size: 12.5px; line-height: 1.4; border-radius: 14px; }
  .cookie__full { display: none; }
  .cookie__short { display: block; }
  .cookie__btns { flex-wrap: nowrap; gap: 8px; }
  .cookie__btns .btn { min-height: 36px; padding: 0 10px; font-size: 13px; }
  body.has-cookie .chat-fab { bottom: calc(var(--cookie-h, 0px) + 20px); }
  body.has-cookie .chat { bottom: calc(var(--cookie-h, 0px) + 86px); }
}

/* Страница 404 */
.nf { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }
.nf__code { font-size: 72px; font-weight: 800; line-height: 1; color: var(--tint); -webkit-text-stroke: 2px var(--blue); margin-bottom: 12px; }
.nf__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }

/* ---- Книга: тёмная «сцена» в цвет обложки ----
   Глубокий синий → почти чёрный, золотой свет из-за книги, звёзды как на обложке. Симулятор рядом — графитовый, без золота: карточки не сливаются. */
.wcard--book { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  background:
    radial-gradient(300px 280px at 76% 46%, rgba(242, 186, 86, .24), rgba(242, 186, 86, 0) 70%),
    radial-gradient(520px 360px at 4% 115%, rgba(48, 78, 200, .26), rgba(48, 78, 200, 0) 65%),
    linear-gradient(158deg, #0F1D4C 0%, #081233 40%, #040817 78%, #02040C 100%);
  border-color: #16224C; }
.wcard--book::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .75;
  background:
    radial-gradient(circle at 8% 14%, rgba(255, 255, 255, .7) 0 .8px, transparent 1.6px),
    radial-gradient(circle at 21% 72%, rgba(255, 255, 255, .45) 0 .7px, transparent 1.4px),
    radial-gradient(circle at 34% 9%, rgba(255, 236, 190, .7) 0 1px, transparent 1.8px),
    radial-gradient(circle at 45% 88%, rgba(255, 255, 255, .4) 0 .7px, transparent 1.4px),
    radial-gradient(circle at 52% 24%, rgba(255, 255, 255, .55) 0 .7px, transparent 1.4px),
    radial-gradient(circle at 63% 6%, rgba(255, 255, 255, .6) 0 .8px, transparent 1.6px),
    radial-gradient(circle at 88% 12%, rgba(255, 236, 190, .65) 0 1px, transparent 1.8px),
    radial-gradient(circle at 96% 48%, rgba(255, 255, 255, .5) 0 .7px, transparent 1.4px),
    radial-gradient(circle at 92% 90%, rgba(255, 255, 255, .4) 0 .7px, transparent 1.4px),
    radial-gradient(circle at 15% 40%, rgba(255, 255, 255, .35) 0 .6px, transparent 1.3px),
    radial-gradient(circle at 40% 52%, rgba(255, 255, 255, .3) 0 .6px, transparent 1.3px); }
@media (hover: hover) and (pointer: fine) { .wcard--book:hover { box-shadow: 0 24px 50px rgba(8, 14, 40, .3), 0 0 0 1px rgba(214, 176, 100, .28); } }
.wcard--book .wcard__text { position: relative; z-index: 2; justify-content: center; gap: 12px; padding: 28px 0 28px 30px; }
.wcard--book h3 { color: var(--white); font-size: 22px; }
.wcard--book p { color: #C3CCE8; }
.wcard--book .wtag { background: rgba(242, 196, 106, .14); color: #F4D58E; box-shadow: inset 0 0 0 1px rgba(242, 196, 106, .22); }
.wcard--book .wtag--client { background: rgba(176, 150, 255, .16); color: #DCD0FF; box-shadow: none; }

.wmedia--book { order: 2; display: flex; align-items: center; justify-content: center; padding: 22px 26px 36px 8px; background: transparent; overflow: visible; }

/* Сцена: лёгкий 3D-наклон за курсором (--tx/--ty ставит app.js), блик на обложке следует за курсором (--gx/--gy) */
.bookscene { --tx: 0deg; --ty: 0deg; --gx: 30%; --gy: 22%; position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 300px;
  transform: perspective(1100px) rotateX(var(--tx)) rotateY(var(--ty)); }
/* will-change — только пока курсор над карточкой (класс ставит app.js) */
.wcard--book.is-live .bookscene, .wcard--book.is-live .book3d__glare { will-change: transform; }
/* Карточка вне экрана — анимации на паузе (класс ставит app.js через IntersectionObserver) */
.wcard--book.is-paused :is(.bglow__rays, .bsparks i, .book3d, .book3d__floor) { animation-play-state: paused; }

/* Золотой ореол из-за книги: тёплое ядро, холодная кайма, медленные лучи */
.bglow { position: absolute; left: 50%; top: 42%; width: 135%; aspect-ratio: 1; translate: -50% -50%; z-index: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 216, 145, .62), rgba(242, 186, 90, .26) 36%, rgba(110, 132, 230, .08) 62%, rgba(110, 132, 230, 0) 78%); }
.bglow__rays { position: absolute; inset: 8%; border-radius: 50%; opacity: .4;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 140, 0) 0deg 9deg, rgba(255, 214, 140, .34) 11deg, rgba(255, 214, 140, 0) 13deg 22deg);
  -webkit-mask: radial-gradient(closest-side, #000 18%, transparent 72%); mask: radial-gradient(closest-side, #000 18%, transparent 72%);
  animation: bk-rays 60s linear infinite; }
@keyframes bk-rays { to { transform: rotate(1turn); } }

/* Искры золота: мерцают по очереди (только opacity и transform); на компьютере 8, на телефоне 6 */
.bsparks { position: absolute; inset: -6% -8% 22%; z-index: 3; pointer-events: none; }
.bsparks i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: radial-gradient(circle, #FFF6DA 0 30%, #F2C46A 55%, rgba(242, 196, 106, 0) 72%); box-shadow: 0 0 6px 1px rgba(242, 196, 106, .55); opacity: 0; animation: bk-spark 4.8s ease-in-out infinite; }
.bsparks i:nth-child(1) { left: 6%; top: 18%; animation-delay: 0s; }
.bsparks i:nth-child(2) { left: 18%; top: 4%; animation-delay: .7s; width: 3px; height: 3px; }
.bsparks i:nth-child(3) { left: 82%; top: 10%; animation-delay: 1.4s; }
.bsparks i:nth-child(4) { left: 94%; top: 34%; animation-delay: 2.1s; width: 3px; height: 3px; }
.bsparks i:nth-child(5) { left: 2%; top: 52%; animation-delay: 2.8s; width: 3px; height: 3px; }
.bsparks i:nth-child(6) { left: 90%; top: 62%; animation-delay: 3.5s; }
.bsparks i:nth-child(7) { left: 48%; top: -2%; animation-delay: 4.2s; width: 5px; height: 5px; }
.bsparks i:nth-child(8) { left: 66%; top: 2%; animation-delay: 1s; width: 3px; height: 3px; }
@keyframes bk-spark { 0%, 100% { opacity: 0; transform: translateY(4px) scale(.4); } 40% { opacity: .95; transform: translateY(-3px) scale(1); } 70% { opacity: .2; transform: translateY(-8px) scale(.7); } }

/* Объёмная книга: настоящая обложка автора, корешок из развёртки, тыльная крышка; «дышит» и отражается в столе */
.book3d { --t: 11cqw; --ry: 24deg; --ry-h: 13deg; position: relative; z-index: 2; width: 72%; container-type: inline-size; perspective: 1000px; perspective-origin: 30% 42%;
  filter: drop-shadow(0 0 16px rgba(255, 196, 96, .32)) drop-shadow(0 0 40px rgba(255, 210, 130, .18));
  -webkit-box-reflect: below 3px linear-gradient(transparent 84%, rgba(255, 255, 255, .09));
  animation: bk-float 6.5s ease-in-out infinite; }
.book3d__body { position: relative; transform-style: preserve-3d; transform: rotateY(var(--ry)) rotateX(3deg); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) and (pointer: fine) { .wcard--book:hover .book3d__body { transform: rotateY(var(--ry-h)) rotateX(2deg) translateY(-4px); } }
.wcard__media .wbook, .wcard:hover .wcard__media .wbook { position: relative; display: block; width: 100%; max-width: none; height: auto; border-radius: 2px 7px 7px 2px; transform: translateZ(calc(var(--t) / 2)); }
.wbook:focus-visible { outline: 2px solid #F4D58E; outline-offset: 4px; }
.book3d__back { position: absolute; inset: 0; border-radius: 2px 7px 7px 2px; background: linear-gradient(90deg, #0B1020, #1A2140); transform: translateZ(calc(var(--t) / -2)); }
.book3d__spine { position: absolute; top: 0; bottom: 0; right: 100%; width: var(--t); transform-origin: right center; transform: translateZ(calc(var(--t) / 2)) rotateY(-90deg); border-radius: 4px 0 0 4px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .08) 35%, rgba(255, 255, 255, .14) 78%, rgba(255, 255, 255, .3) 90%, rgba(0, 0, 0, .25)),
    url("img/case-book-spine.jpg") center / 100% 100% no-repeat, #0B1020; }
/* Блик и фактура переплёта: сгиб у корешка, диагональный отблеск, матовое зерно, кант картона */
.book3d__gloss { position: absolute; inset: 0; overflow: hidden; border-radius: 2px 7px 7px 2px; pointer-events: none; transform: translateZ(calc(var(--t) / 2 + .5px));
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .6) 0, rgba(255, 255, 255, .32) 1.8%, rgba(255, 255, 255, .08) 3.4%, rgba(0, 0, 0, .42) 5%, rgba(255, 255, 255, .2) 6.6%, rgba(0, 0, 0, 0) 10%),
    linear-gradient(118deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .16) 43%, rgba(255, 255, 255, .04) 50%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .14)); }
.book3d__gloss::before { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='80' height='80' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light; }
/* Блик за курсором — отдельный слой, двигается только transform (app.js), обложка не перерисовывается */
.book3d__glare { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(60% 45% at 50% 50%, rgba(255, 255, 255, .3), rgba(255, 255, 255, .07) 45%, rgba(255, 255, 255, 0) 70%);
  transform: translate(calc(var(--gx) - 50%), calc(var(--gy) - 50%)); }
.book3d__gloss::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .26), inset -1px 0 0 rgba(255, 255, 255, .12); }
/* Закладка-лента выглядывает снизу */
.book3d__ribbon { position: absolute; left: 18%; top: calc(100% - 6px); width: 7px; height: 22px; transform: translateZ(calc(var(--t) / 2 - 3px)) rotate(5deg); transform-origin: top center;
  background: linear-gradient(90deg, #7A1E2C, #B8394A 45%, #8A2433); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
/* Стол: тёплый отсвет и контактная тень, в такт «дыханию» */
.book3d__floor { position: absolute; left: -6%; right: -10%; bottom: -18px; height: 36px; z-index: 1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(50% 32% at 54% 50%, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0)), radial-gradient(closest-side, rgba(242, 196, 106, .26), rgba(242, 196, 106, .08) 60%, rgba(242, 196, 106, 0));
  animation: bk-floor 6.5s ease-in-out infinite; }
@keyframes bk-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes bk-floor { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.92); opacity: .75; } }

/* Задняя обложка — маленькая карточка на втором плане, по клику открывается крупно */
.bback { position: absolute; right: 24px; top: 24px; z-index: 3; width: 46px; margin: 0; transform: rotate(6deg); transition: transform .3s var(--ease-out); }
.wcard__media .bback img, .wcard:hover .wcard__media .bback img { width: 100%; height: auto; transform: none; border-radius: 2px 4px 4px 2px; opacity: .82; box-shadow: 0 8px 18px rgba(0, 0, 0, .55), 0 0 0 1px rgba(242, 196, 106, .35); transition: opacity .2s ease; }
.bback img:hover, .bback img:focus-visible { opacity: 1; }
.bback img:focus-visible { outline: 2px solid #F4D58E; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .bback:hover { transform: rotate(3deg) translateY(-3px); } }

@media (max-width: 1140px) {
  .wcard--book { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wcard--book .wcard__text { padding: 24px 0 24px 24px; }
  .wmedia--book { padding: 22px 20px 36px 6px; }
}
@media (max-width: 900px) {
  .wcard--book { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .wcard--book .wcard__text { padding: 30px 0 30px 32px; }
  .wmedia--book { padding: 34px 28px 42px 12px; }
  .bookscene { max-width: 260px; }
}
@media (max-width: 640px) {
  .wcard--book { grid-template-columns: 1fr; }
  .wcard--book .wmedia--book { order: 0; padding: 36px 20px 40px; }
  .bookscene { max-width: 250px; }
  .wcard--book .wcard__text { padding: 6px 24px 26px; }
  .bback { right: 22px; top: 22px; width: 42px; }
}
/* Тач и узкие экраны: без лучей, мерцания и «дыхания» — сцена неподвижна */
@media (hover: none), (max-width: 640px) {
  .bglow__rays { animation: none; opacity: .3; }
  .bsparks i { animation: none; opacity: .55; transform: none; }
  .bsparks i:nth-child(n+7) { display: none; }
  .book3d, .book3d__floor { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .book3d, .book3d__floor, .bglow__rays, .bsparks i { animation: none !important; }
  .wcard--book:hover .book3d__body { transform: rotateY(var(--ry)) rotateX(3deg); }
  .bookscene { transform: none !important; }
  .bback:hover { transform: rotate(6deg); }
}

/* ---- Движение (по правилам Эмиля Ковальски) ----
   Сильные кривые вместо стандартных ease; отклик на нажатие; окна появляются от места вызова;
   подъёмы при наведении — только с мышью; при «уменьшить движение» — только прозрачность. */
:root { --ease-out: cubic-bezier(.23, 1, .32, 1); }

/* Нажатие: кнопка чуть «проседает» — интерфейс отвечает сразу */
.btn, .chat-fab, .chat__form button, .chat__quick button, .quick__item, .lightbox__close {
  transition: background-color .15s ease, color .15s ease, transform .16s var(--ease-out); }
.btn:active, .chat__form button:active, .chat__quick button:active, .wfilter button:active, .lightbox__close:active { transform: scale(.97); }
.quick__item:active { transform: scale(.98); }
.chat-fab:active { transform: scale(.94); }

/* Консультант раскрывается из своей кнопки (правый нижний угол), закрывается мгновенно */
.chat { transform-origin: bottom right; transition: opacity .2s var(--ease-out), transform .24s var(--ease-out); }
@starting-style { .chat:not([hidden]) { opacity: 0; transform: translateY(8px) scale(.96); } }

/* Увеличенная картинка: мягкое появление из центра, фон затемняется плавно */
.lightbox[open] { transition: opacity .2s var(--ease-out), transform .24s var(--ease-out); }
@starting-style { .lightbox[open] { opacity: 0; transform: scale(.97); } }
.lightbox[open]::backdrop { transition: opacity .2s ease; }
@starting-style { .lightbox[open]::backdrop { opacity: 0; } }

/* Плашка cookie выезжает снизу, откуда и стоит */
.cookie { transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
@starting-style { .cookie:not([hidden]) { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  .btn:active, .chat__form button:active, .chat__quick button:active, .wfilter button:active, .lightbox__close:active, .quick__item:active, .chat-fab:active { transform: none; }
  @starting-style { .chat:not([hidden]), .lightbox[open], .cookie:not([hidden]) { transform: none; } }
}

/* Шапка: шесть пунктов меню — не переносим их по словам, на ноутбуке плотнее */
.top__nav a { white-space: nowrap; }
@media (max-width: 1599px) and (min-width: 1141px) { .top__row { gap: 22px; } .top__nav { gap: 20px; } }
/* Пункт «Выгода» на внутренних страницах: в строке шапки для него нет места (переносится логотип) — он в меню-бургере (≤1199) и в подвале */
@media (min-width: 901px) { .top__nav-opt { display: none; } }

/* ---- Выгода в цифрах: сравнение и мини-расчёт ---- */
.benefit .sub { max-width: 760px; }
.benefit__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; align-items: start; }
.bcompare { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow), 0 0 0 1px var(--line); overflow: hidden; }
.btable { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.35; }
.btable thead th { padding: 18px 18px 14px; text-align: left; font-size: 14px; font-weight: 800; color: var(--navy); }
.btable thead th.btable__ai { color: var(--blue); }
.btable tbody th { padding: 16px 18px 16px 22px; text-align: left; vertical-align: top; width: 26%; font-size: 14.5px; font-weight: 700; color: var(--navy); }
.btable td { padding: 16px 18px; vertical-align: top; width: 37%; }
.btable tbody tr { border-top: 1px solid var(--line); }
.btable td.btable__ai, .btable thead th.btable__ai { background: var(--tint); }
.btable td b { display: block; color: var(--ink); font-size: 16.5px; font-weight: 800; }
.btable td.btable__ai b { color: var(--blue-dark); }
.btable td small { display: block; margin-top: 3px; color: var(--muted); font-size: 13.5px; }

.bcalc { display: grid; gap: 20px; padding: 28px; border-radius: var(--r-lg); background: linear-gradient(160deg, #EDF2FF, #F8FAFF); box-shadow: 0 0 0 1px var(--line); }
.bcalc__title { font-size: 20px; font-weight: 800; line-height: 1.25; }
.bcalc__field { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 12px; }
.bcalc__field label { font-weight: 800; color: var(--navy); font-size: 15px; }
.bcalc__field output { font-weight: 800; font-size: 20px; color: var(--blue-dark); white-space: nowrap; }
.bcalc__field input { grid-column: 1 / -1; }
.bcalc__scale { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
/* Слайдер: синяя заливка до значения (--fill ставит app.js), крупный бегунок под палец */
.bcalc input[type="range"] { --fill: 23%; -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 4px 0 0; background: transparent; cursor: pointer; }
.bcalc input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--blue) var(--fill), #C9D5F2 var(--fill)); }
.bcalc input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: #C9D5F2; }
.bcalc input[type="range"]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--blue); }
.bcalc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: var(--white); border: 3px solid var(--blue); box-shadow: 0 3px 10px rgba(20, 45, 120, .25); }
.bcalc input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 3px solid var(--blue); box-shadow: 0 3px 10px rgba(20, 45, 120, .25); }
.bcalc input[type="range"]:focus-visible { outline: 3px solid rgba(31, 79, 216, .45); outline-offset: 4px; }
.bcalc .chips span { min-width: 84px; text-align: center; }
.bcalc__result { display: grid; gap: 10px; margin: 0; padding: 18px 20px; border-radius: 16px; background: var(--navy); color: #C9D5F5; }
.bcalc__result p { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; font-size: 14.5px; }
.bcalc__result b { color: var(--white); font-size: 18px; font-weight: 800; white-space: nowrap; }
.bcalc__total { padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .16); }
.bcalc__total span { color: var(--white); font-weight: 700; }
.bcalc__total b { font-size: 26px; color: #9EE6BF; }
.bcalc__send { width: 100%; min-height: 54px; padding: 12px 20px; line-height: 1.25; text-align: center; }
.bcalc__note { font-size: 13px; line-height: 1.5; color: var(--muted); }
.bcalc__note a { color: var(--blue); }
.benefit__disclaimer { margin-top: 18px; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 900px; }

@media (max-width: 1140px) {
  .benefit__grid { grid-template-columns: 1fr; }
  .bcalc { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .bcalc__title { grid-column: 1 / -1; }
  .bcalc__field { grid-column: 1; grid-row: 2; }
  .bcalc fieldset { grid-column: 1; grid-row: 3; }
  .bcalc__note { grid-column: 1; grid-row: 4; }
  .bcalc__result { grid-column: 2; grid-row: 2 / span 2; align-self: start; }
  .bcalc__send { grid-column: 2; grid-row: 4; align-self: start; }
}
@media (max-width: 760px) {
  .bcalc { grid-template-columns: 1fr; }
  .bcalc__field, .bcalc fieldset, .bcalc__note, .bcalc__result, .bcalc__send { grid-column: auto; grid-row: auto; }
  /* Таблица на телефоне: строка — заголовок сверху, два значения рядом */
  .btable thead { display: none; }
  .btable, .btable tbody { display: block; }
  .btable tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .btable tbody tr:first-child { border-top: 0; }
  .btable tbody th { grid-column: 1 / -1; width: auto; padding: 14px 16px 8px; }
  .btable td { width: auto; padding: 0 16px 14px; }
  .btable td.btable__ai { background: none; }
  .btable td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; color: var(--muted); }
  .btable td.btable__ai::before { color: var(--blue-dark); }
  .btable td b { font-size: 15.5px; }
  .btable td small { font-size: 13px; }
}
@media (max-width: 600px) {
  .bcalc { padding: 22px 18px; gap: 18px; }
  .bcalc__total b { font-size: 23px; }
}
@media (max-width: 380px) {
  .btable tbody th { padding: 12px 12px 6px; }
  .btable td { padding: 0 12px 12px; }
  .bcalc { padding: 20px 14px; }
  .bcalc .chips span { min-width: 0; padding: 10px 13px; }
}

/* ---- StoryBrand (08.10): ставки, проводник, план из 3 шагов, 5 обещаний, успех ---- */
/* Ставки: тихая полоса сразу после первого экрана */
.stakes { padding: 44px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stakes__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 40px; align-items: center; }
.stakes__title { font-size: 22px; line-height: 1.3; font-weight: 800; max-width: 14em; }
.stakes__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stakes__list li { display: grid; gap: 4px; align-content: start; padding: 4px 24px; border-left: 2px solid var(--tint); }
.stakes__list b { color: var(--navy); font-size: 15px; font-weight: 800; }
.stakes__list span { color: var(--ink); font-size: 16px; line-height: 1.45; }

/* Проводник: сочувствие + честная слабость */
.guide__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.guide__main .h2 { max-width: 16em; }
.guide__main p { color: var(--muted); font-size: 18px; max-width: 34em; }
.guide__honest { padding: 28px 30px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow), 0 0 0 1px var(--line); border-left: 4px solid var(--blue); }
.guide__honest h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.guide__honest p { color: var(--ink); font-size: 16px; line-height: 1.55; }

/* План из 3 шагов */
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; margin: 0 auto; gap: 28px; }
.steps--3 span { max-width: 22em; }
.works__kicker.center { margin-bottom: 8px; }

/* 5 обещаний — номера здесь настоящие: это список из пяти */
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; counter-reset: promise; }
.promise-list li { counter-increment: promise; position: relative; display: grid; gap: 4px; padding: 20px 0 20px 64px; border-top: 1px solid var(--line); align-content: start; }
.promise-list li::before { content: counter(promise); position: absolute; left: 0; top: 18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--blue); font-size: 19px; font-weight: 800; }
.promise-list b { color: var(--navy); font-size: 17px; line-height: 1.3; }
.promise-list span { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.promise-list a { color: var(--blue); }
.promise-list li:last-child { grid-column: 1 / -1; max-width: calc(50% - 20px); }

/* Успех перед финальным призывом */
.section--final { padding-top: 72px; }
.success { margin-bottom: 40px; }
.success__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.success__list li { display: grid; gap: 6px; padding: 22px 24px; border-radius: var(--r-md); background: var(--soft); }
.success__list b { color: var(--blue); font-size: 15px; font-weight: 800; }
.success__list span { color: var(--ink); font-size: 16.5px; line-height: 1.45; }
.success__shift { margin-top: 18px; color: var(--navy); font-size: 18px; font-weight: 700; }

@media (max-width: 1140px) {
  .stakes__row { grid-template-columns: 1fr; gap: 20px; }
  .stakes__title { max-width: none; }
  .stakes__list li:first-child { padding-left: 0; border-left: 0; }
  .guide__grid { grid-template-columns: 1fr; gap: 28px; }
  .steps--3 li:nth-child(3)::after { display: none; }
}
@media (max-width: 760px) {
  .promise-list { grid-template-columns: 1fr; gap: 0; }
  .promise-list li:last-child { max-width: none; }
  .success__list { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 600px) {
  .stakes { padding: 32px 0; }
  .stakes__title { font-size: 20px; }
  .stakes__list { grid-template-columns: 1fr; gap: 14px; }
  .stakes__list li { padding: 0 0 0 14px; border-left: 2px solid var(--tint); }
  .stakes__list li:first-child { padding-left: 14px; border-left: 2px solid var(--tint); }
  .guide__honest { padding: 22px 18px; }
  .guide__main p { font-size: 17px; }
  .steps--3 { grid-template-columns: 1fr; gap: 14px; }
  .promise-list li { padding: 18px 0 18px 56px; }
  .promise-list li::before { width: 40px; height: 40px; font-size: 17px; }
  .section--final { padding-top: 56px; }
  .success__list li { padding: 18px; }
}

/* ---- Производительность ----
   Секции ниже первого экрана браузер не раскладывает и не рисует, пока до них не дошли (content-visibility).
   Высоты-заглушки близки к реальным, чтобы полоса прокрутки не прыгала; «auto» запоминает настоящую высоту.
   Перед переходом по якорю app.js снимает это свойство (класс cv-off), чтобы прокрутка попадала точно. */
main > .section, .foot { content-visibility: auto; contain-intrinsic-size: auto 900px; }
#services { contain-intrinsic-size: auto 1240px; }
#projects { contain-intrinsic-size: auto 580px; }
#cases { contain-intrinsic-size: auto 2000px; }
#benefit { contain-intrinsic-size: auto 1130px; }
#stakes { contain-intrinsic-size: auto 200px; }
#guide { contain-intrinsic-size: auto 400px; }
#process { contain-intrinsic-size: auto 700px; }
#promises { contain-intrinsic-size: auto 810px; }
#calc { contain-intrinsic-size: auto 970px; }
#faq { contain-intrinsic-size: auto 830px; }
main > .section:not([id]) { contain-intrinsic-size: auto 810px; }
main > .sp-price { contain-intrinsic-size: auto 740px; } /* bani.html: цена */
.foot { contain-intrinsic-size: auto 690px; }
@media (max-width: 900px) {
  #services { contain-intrinsic-size: auto 1610px; }
  #projects { contain-intrinsic-size: auto 790px; }
  #cases { contain-intrinsic-size: auto 3070px; }
  #benefit { contain-intrinsic-size: auto 1400px; }
  #stakes { contain-intrinsic-size: auto 220px; }
  #guide { contain-intrinsic-size: auto 510px; }
  #process { contain-intrinsic-size: auto 890px; }
  #promises { contain-intrinsic-size: auto 940px; }
  #calc { contain-intrinsic-size: auto 1180px; }
  #faq { contain-intrinsic-size: auto 790px; }
  main > .section:not([id]) { contain-intrinsic-size: auto 1160px; }
  .foot { contain-intrinsic-size: auto 990px; }
}
@media (max-width: 600px) {
  #services { contain-intrinsic-size: auto 2730px; }
  #projects { contain-intrinsic-size: auto 905px; }
  #cases { contain-intrinsic-size: auto 3940px; }
  #benefit { contain-intrinsic-size: auto 2060px; }
  #stakes { contain-intrinsic-size: auto 340px; }
  #guide { contain-intrinsic-size: auto 670px; }
  #process { contain-intrinsic-size: auto 1100px; }
  #promises { contain-intrinsic-size: auto 1220px; }
  #calc { contain-intrinsic-size: auto 1530px; }
  #faq { contain-intrinsic-size: auto 920px; }
  main > .section:not([id]) { contain-intrinsic-size: auto 1630px; }
  main > .sp-price { contain-intrinsic-size: auto 1350px; }
  .foot { contain-intrinsic-size: auto 1600px; }
}
.cv-off main > .section, .cv-off .foot { content-visibility: visible; }

/* Флагманский продукт: штат ИИ-сотрудников (тёмная секция, чтобы выделялась среди услуг) */
.flagship { background: var(--navy); color: #DCE4FA; }
.flagship .h2 { color: var(--white); }
.flagship .sub { color: #B9C6EC; max-width: 820px; }
.flagship__tag { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #FFD9CC; font-size: 14px; font-weight: 700; }
.flagship__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; }
.flagship__staff { padding: 26px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.flagship__staff h3 { color: var(--white); font-size: 20px; margin-bottom: 16px; }
.checks--light li { color: #DCE4FA; }
.checks--light b { color: var(--white); }
.flagship__tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tier { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; border-radius: var(--r-md); background: var(--white); color: var(--ink); font-size: 15px; line-height: 1.5; }
.tier h3 { font-size: 18px; }
.tier__price { font-size: 24px; font-weight: 800; color: var(--blue); white-space: nowrap; }
.tier__price small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.tier--main { background: linear-gradient(160deg, #2A5BE6, var(--blue-dark)); color: #E6ECFF; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); }
.tier--main h3, .tier--main .tier__price { color: var(--white); }
.flagship__note { margin-top: 26px; max-width: 900px; font-size: 14.5px; color: #9FB0DD; }
.flagship__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn--ghost-light { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .08); }
@media (max-width: 1000px) {
  .flagship__grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .flagship__tiers { grid-template-columns: 1fr; }
  .flagship__staff { padding: 20px; }
}

/* Флагман: «Как посчитано» */
.flagship__calc { margin-top: 18px; max-width: 900px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); }
.flagship__calc summary { color: var(--white); font-size: 16px; padding: 16px 56px 16px 20px; }
.flagship__calc summary::after { background: rgba(255, 255, 255, .12); color: var(--white); }
.flagship__calc-body { padding: 0 20px 18px; font-size: 14.5px; color: #C7D2F2; }
.flagship__calc-body p { padding: 0; margin: 0 0 12px; color: #C7D2F2; }
.flagship__calc-body ul { margin: 12px 0; padding-left: 20px; }
.flagship__calc-body li { margin-bottom: 6px; }
.flagship__calc-body b { color: var(--white); }
.flagship__calc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.flagship__calc table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13.5px; }
.flagship__calc th, .flagship__calc td { padding: 7px 8px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .12); white-space: nowrap; }
.flagship__calc th:first-child, .flagship__calc td:first-child { white-space: normal; }
.flagship__calc thead th { color: #9FB0DD; font-weight: 700; }
.flagship__calc tfoot th, .flagship__calc tfoot td { color: var(--white); font-weight: 700; border-bottom: 0; }

/* Cookie: короткая плашка и на компьютере, чтобы не закрывать первый экран */
.cookie { max-width: 380px; gap: 10px; padding: 12px 14px; font-size: 13px; }
.cookie__full { display: none; }
.cookie__short { display: block; }

/* Страница «Штат ИИ» и заглушка на главной */
.teaser { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 36px; align-items: center; }
.flagship--teaser { padding: 64px 0; }
.flagship--teaser .sub { margin-bottom: 24px; }
.teaser__facts { margin: 0; display: grid; gap: 12px; }
.teaser__facts > div { padding: 18px 20px; border-radius: var(--r-md); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.teaser__facts dt { font-size: 14px; color: #B9C6EC; font-weight: 600; }
.teaser__facts dd { margin: 2px 0 0; color: var(--white); font-size: 26px; font-weight: 800; }
.teaser__facts .teaser__small { font-size: 14px; font-weight: 500; color: #B9C6EC; }
.sp-back { display: inline-block; margin-bottom: 18px; color: #B9C6EC; font-size: 15px; text-decoration: none; }
.sp-back:hover { color: var(--white); }
.sp-hero { padding: 56px 0 64px; }
.sp-h1 { font-size: clamp(32px, 4.4vw, 52px); max-width: 860px; }
.sp-facts { margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sp-facts > div { padding: 16px 18px; border-radius: var(--r-md); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.sp-facts dt { color: var(--white); font-size: 26px; font-weight: 800; white-space: nowrap; }
.sp-facts dd { margin: 4px 0 0; color: #B9C6EC; font-size: 14.5px; line-height: 1.45; }
.sp-nav { position: sticky; top: 76px; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.sp-nav .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.sp-nav .wrap::-webkit-scrollbar { display: none; }
.sp-nav a { flex: none; padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--navy); text-decoration: none; background: var(--soft); }
.sp-nav a:hover { background: var(--tint); }
.sp-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sp-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); }
.sp-card b { font-size: 18px; color: var(--navy); }
.sp-card span { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.sp-voice { margin-top: 20px; color: var(--muted); }
.sp-tiers { margin-bottom: 28px; }
.sp-final { text-align: center; }
.sp-final .sub { margin-left: auto; margin-right: auto; max-width: 620px; }
.sp-final .flagship__cta { justify-content: center; }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
section[id] { scroll-margin-top: 130px; }
@media (max-width: 860px) {
  .teaser { grid-template-columns: 1fr; gap: 24px; }
  .sp-cards, .sp-facts { grid-template-columns: 1fr; }
  .steps--4 { grid-template-columns: 1fr; }
  .steps--4 li:not(:last-child)::after { display: none; }
  .sp-hero { padding: 36px 0 44px; }
  .sp-facts dt { font-size: 22px; }
}
@media (max-width: 1100px) { .sp-tiers { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .sp-nav { top: 64px; } }

/* Страницы «Проекты бань» и «Проекты домов и турбаз»: галерея визуализаций */
.sp-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sp-gallery li { margin: 0; }
.sp-gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sp-gallery img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-md); background: var(--soft); }
.sp-gallery figcaption { font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.sp-gallery figcaption b { display: block; color: var(--navy); font-size: 16px; }
.sp-gallery--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp-mark { margin-top: 18px; font-size: 14px; color: var(--muted); }
.sp-also { margin-top: 18px; font-size: 15px; color: #B9C6EC; }
.sp-also a { color: var(--white); }
.teaser-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.teaser-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.teaser-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.teaser-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.teaser-card__body b { font-size: 20px; color: var(--navy); }
.teaser-card__body span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.teaser-card__body em { margin-top: auto; padding-top: 6px; font-style: normal; font-weight: 700; color: var(--blue); }
@media (hover: hover) and (pointer: fine) { .teaser-card { transition: box-shadow .2s var(--ease-out), transform .2s var(--ease-out); } .teaser-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(20, 45, 120, .12); } }
@media (max-width: 860px) { .sp-gallery, .sp-gallery--wide, .teaser-pair { grid-template-columns: 1fr; } }
@media (min-width: 861px) and (max-width: 1100px) { .sp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.section:not(.section--soft):not(.flagship) .tier:not(.tier--main) { border: 1px solid var(--line); }
.tier--main .tier__price small { color: #C9D6FF; }

/* Страница «ИИ-помощник руководителя»: блок «Важно знать» — одна колонка */
.sp-cards--list { grid-template-columns: 1fr; }
/* assistant.html v2: «Мы сами так работаем», два столбца «На компьютере / В Telegram», списки в пакетах, сравнение на 4 варианта */
.sp-sub-last { margin-bottom: 0; max-width: 820px; }
.sp-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; max-width: 1040px; font-size: 16.5px; }
.sp-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp-card h3 { font-size: 21px; }
.sp-card .checks { margin: 6px 0 4px; color: var(--ink); }
.sp-card .checks b { font-size: inherit; }
.sp-card--warn { border-left: 4px solid var(--hot); }
.tier .checks { font-size: 14.5px; }
.tier--main .checks li::before { background-color: rgba(255, 255, 255, .24); }
.flagship__note b { color: var(--white); }
.flagship__note + .flagship__note { margin-top: 12px; }
.btable--wide td { width: auto; }
@media (min-width: 761px) { .btable--wide tbody th { width: 22%; } }
.tier__price small { white-space: normal; }
.wrap--narrow > .sp-cards { margin-left: auto; margin-right: auto; }
@media (max-width: 860px) { .sp-proof, .sp-cards--2 { grid-template-columns: 1fr; } }
/* Пункт «ИИ-помощник» в шапке: на ноутбуках не помещается — там он в подвале и блоком на главной; в мобильном меню виден */
@media (max-width: 1599px) and (min-width: 901px) { .top__nav-wide { display: none; } }
/* Шаги без значков (страницы услуг) на телефоне: заголовок не зажимается в колонку для значка */
@media (max-width: 600px) { .steps--4 li { grid-template-columns: 1fr; row-gap: 4px; } }

/* Страница «Проектирование домов» и блок на главной */
.sp-lead { margin: -4px 0 14px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; color: #DCE4FA; }
.teaser--light .teaser__facts > div { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.teaser--light .teaser__facts dt, .teaser--light .teaser__facts .teaser__small { color: var(--muted); }
.teaser--light .teaser__facts dd { color: var(--navy); }
.teaser--light .sub { margin-bottom: 0; }
.sp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 18px; font-size: 15px; color: #B9C6EC; }
.sp-crumbs a { color: #B9C6EC; text-decoration: none; }
.sp-crumbs a:hover { color: var(--white); }
.sp-crumbs [aria-current] { color: var(--white); }
.sp-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sp-price .sp-cards { margin-bottom: 4px; }
.sp-card--gift { background: var(--tint); border-color: transparent; }
.sp-more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--blue); text-decoration: none; }
.sp-more:hover { text-decoration: underline; }
.sp-group + .sp-group { margin-top: 40px; }
.sp-group__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0 0 16px; font-size: 22px; color: var(--navy); }
.sp-group__title a { font-size: 15px; font-weight: 700; color: var(--blue); text-decoration: none; }
.sp-group__title a:hover { text-decoration: underline; }
.sp-gallery img.sp-plan { object-fit: contain; background: var(--white); }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1101px) { .sp-tiers--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 800px; } }
@media (max-width: 1100px) { .sp-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .sp-cards--2, .sp-cards--4 { grid-template-columns: 1fr; }
  .steps--3 { grid-template-columns: 1fr; }
  .steps--3 li:not(:last-child)::after { display: none; }
}
@media (max-width: 600px) { .steps--3 li { grid-template-columns: 1fr; row-gap: 4px; } }
/* Шапка 901–1199: семь пунктов и кнопка не помещаются в строку (была горизонтальная прокрутка) — меню уходит в бургер, как на планшете */
@media (min-width: 901px) and (max-width: 1199px) {
  .top__nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; box-shadow: var(--shadow);
  }
  .top__nav.is-open { display: flex; }
  .top__nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .top__nav .top__nav-opt, .top__nav .top__nav-wide { display: block; }
  .top__burger { display: grid; }
  .top__actions { margin-left: auto; }
  .top__nav-contacts { display: grid; gap: 2px; padding-top: 10px; }
  .top__nav-contacts a, .top__nav-contacts button { display: flex; align-items: center; gap: 10px; padding: 10px 0; border: 0; background: none; color: var(--navy); font: 700 15px/1.3 var(--font); text-decoration: none; cursor: pointer; text-align: left; }
  .top__nav-contacts svg { color: var(--blue); font-size: 18px; }
  .top__nav-contacts .btn { justify-content: center; margin-top: 8px; padding: 0 18px; background: var(--blue); color: var(--white); }
}
/* proektirovanie-domov.html: высоты-заглушки секций (замер 09.10: 1440, 768, 390 px) */
.po > #who { contain-intrinsic-size: auto 520px; }
.po > #price { contain-intrinsic-size: auto 1010px; }
.po > #what { contain-intrinsic-size: auto 720px; }
.po > #examples { contain-intrinsic-size: auto 1480px; }
.po > #builders { contain-intrinsic-size: auto 610px; }
.po > #how { contain-intrinsic-size: auto 340px; }
.po > #qa { contain-intrinsic-size: auto 760px; }
.po > .section:not([id]) { contain-intrinsic-size: auto 390px; }
@media (max-width: 900px) {
  .po > #who { contain-intrinsic-size: auto 990px; }
  .po > #price { contain-intrinsic-size: auto 1650px; }
  .po > #what { contain-intrinsic-size: auto 1140px; }
  .po > #examples { contain-intrinsic-size: auto 5190px; }
  .po > #builders { contain-intrinsic-size: auto 720px; }
  .po > #how { contain-intrinsic-size: auto 490px; }
  .po > #qa { contain-intrinsic-size: auto 710px; }
  .po > .section:not([id]) { contain-intrinsic-size: auto 340px; }
}
@media (max-width: 600px) {
  .po > #who { contain-intrinsic-size: auto 1130px; }
  .po > #price { contain-intrinsic-size: auto 2190px; }
  .po > #what { contain-intrinsic-size: auto 1540px; }
  .po > #examples { contain-intrinsic-size: auto 3310px; }
  .po > #builders { contain-intrinsic-size: auto 800px; }
  .po > #how { contain-intrinsic-size: auto 460px; }
  .po > #qa { contain-intrinsic-size: auto 760px; }
  .po > .section:not([id]) { contain-intrinsic-size: auto 560px; }
}
