/* ==========================================================================
   Olprime - главная «Продукт». Стили секций.
   Эталон: clients/olprime/site/screenshots/produkt-desktop-full.png
   ========================================================================== */

/* ---------- HERO (тёмный премиум + летающие фигуры) ---------- */
.hero { padding-top: 20px; }
/* Зазор после ЛЮБОГО hero. Внутри лежит скруглённая тёмная панель (.hero__panel или
   .svc-hero), и следующий блок, начинающийся вплотную к её нижней границе, читается
   приклеенным - особенно если у него свой фон (.section--mist) или это сетка карточек.
   Правило привязано к .hero, а не к модификатору .hero--dark: панель бывает и без него
   (услуги, ниши, информационные страницы), и версия под модификатор до них не доставала.
   Промежуток задаётся margin, а не padding, чтобы фон следующей секции в него не заходил. */
.hero + * { margin-top: 56px; }
@media (max-width: 640px) { .hero + * { margin-top: 32px; } }
.hero__panel {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: radial-gradient(120% 120% at 15% 10%, #26262a 0%, #17171a 55%, #101012 100%);
  padding: 64px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px;
  min-height: 560px;
}
/* мягкое оранжевое свечение - чтобы не «чисто тёмный» */
.hero__panel::before {
  content: ""; position: absolute; width: 520px; height: 520px;
  right: -80px; bottom: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(229,97,33,.5) 0%, rgba(229,97,33,0) 65%);
  filter: blur(20px); pointer-events: none;
}
.hero__copy { align-self: center; position: relative; z-index: 2; }

.hero__title {
  color: #fff; font-weight: 800; letter-spacing: -.035em;
  font-size: clamp(40px, 4.8vw, 68px); line-height: 1.02;
}
.hero__sub { color: rgba(255,255,255,.72); font-size: 18px; max-width: 40ch; margin-top: 24px; line-height: 1.5; }
.hero__actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* Плавающие дашборд-виджеты (стекло на тёмном, локально) */
.hero__widgets { position: relative; }
.gw {
  position: absolute; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 20px; padding: 18px 20px;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.6);
  animation: floaty 7s ease-in-out infinite;
}
.gw--chart { top: 6%; right: 4%; width: 210px; }
.gw--price { top: 48%; left: 2%; width: 220px; animation-duration: 8.5s; animation-delay: -2s; }
.gw__top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.gw__badge { color: var(--brand); font-weight: 700; }
.gw__val { font-size: 40px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.gw__val--sm { font-size: 32px; display: block; }
.gw__cap { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.gw__bars { display: flex; align-items: flex-end; gap: 6px; height: 46px; margin-top: 12px; border-bottom: 1px solid rgba(255,255,255,.14); }
.gw__bars i { flex: 1; background: linear-gradient(180deg, #f2793a, #d24e0f); border-radius: 4px 4px 0 0; opacity: .95; }
.gw__bar { display: block; height: 8px; border-radius: 99px; background: rgba(255,255,255,.16); margin-top: 14px; overflow: hidden; }
.gw__bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
/* Дашборд «считает вживую»: столбики вырастают, прогресс заливается (синхронно с count-up) */
.js .hero__widgets .gw__bars i { transform: scaleY(0); transform-origin: bottom; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.js .hero__widgets.is-live .gw__bars i { transform: scaleY(1); }
.js .hero__widgets .gw__bars i:nth-child(1) { transition-delay: .05s; }
.js .hero__widgets .gw__bars i:nth-child(2) { transition-delay: .11s; }
.js .hero__widgets .gw__bars i:nth-child(3) { transition-delay: .17s; }
.js .hero__widgets .gw__bars i:nth-child(4) { transition-delay: .23s; }
.js .hero__widgets .gw__bars i:nth-child(5) { transition-delay: .29s; }
.js .hero__widgets .gw__bars i:nth-child(6) { transition-delay: .35s; }
.js .hero__widgets .gw__bar i { transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.2,.7,.2,1) .25s; }
.js .hero__widgets.is-live .gw__bar i { transform: scaleX(1); }

.gchip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap;
  animation: floaty 6s ease-in-out infinite;
}
/* иконка в пилюле - единый приём: белая в оранжевом мини-квадрате */
.gchip svg { width: 22px; height: 22px; flex: none; color: #fff; background: var(--brand);
  padding: 4px; border-radius: 6px; box-sizing: border-box; }
.gchip--1 { top: 2%;  left: 8%;  animation-delay: -.5s; }
.gchip--2 { bottom: 22%; right: 4%; animation-duration: 6.5s; animation-delay: -1.5s; }
.gchip--3 { bottom: 6%;  right: 30%; animation-duration: 5.5s; animation-delay: -2.5s; }
.gchip--4 { bottom: 10%; left: 14%; animation-duration: 7s; animation-delay: -3s; }

@media (max-width: 900px) {
  .hero__panel { grid-template-columns: 1fr; padding: 36px; min-height: 0; }
  .hero__widgets { height: 320px; margin-top: 10px; }
}

/* ---------- ПРЕИМУЩЕСТВА ---------- */
.advantages { padding-top: 28px; }
.advantages__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.adv { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px;
  box-shadow: 0 1px 2px rgba(var(--shadow-rgb), .04), 0 14px 34px -22px rgba(var(--shadow-rgb), .16); }
.adv__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand); color: #fff; }
.adv__icon svg { width: 26px; height: 26px; }
.adv__title { font-size: 19px; font-weight: 700; margin-top: 18px; }
.adv__text { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 760px) { .advantages__grid { grid-template-columns: 1fr; } }

/* ---------- Секции общее ---------- */
.section { padding-block: 64px; }
.section__title { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 36px; }
/* фирменная «точка Olprime» в конце заголовка секции - подпись бренда */
.section__title::after { content: "."; color: var(--brand); }

/* ---------- НИШИ (пилюли-теги по группам) ---------- */
.nishes__group {
  display: grid; grid-template-columns: 190px 1fr; gap: 32px; align-items: start;
  padding-block: 26px; border-top: 1px solid var(--line);
}
.nishes__group:first-of-type { border-top: none; padding-top: 4px; }
.nishes__glabel { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin: 0; padding-top: 11px; }
.nishes__glabel::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-right: 8px; vertical-align: middle; }
.nishes__tags { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 720px) {
  .nishes__group { grid-template-columns: 1fr; gap: 14px; }
  .nishes__glabel { padding-top: 0; }
}
.ntag {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 18px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line);
  font-weight: 600; font-size: 15px; color: var(--ink);
  box-shadow: 0 1px 2px rgba(var(--shadow-rgb), .05);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
/* маркер-точка вместо галочки в каждой пилюле - оранжевый работает акцентно, а не как чек-лист */
.ntag svg { display: none; }
.ntag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }
.ntag:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand-strong); box-shadow: 0 10px 24px -14px rgba(var(--shadow-rgb), .22); }

/* ---------- УСЛУГИ ---------- */
.services__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.service {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 28px;
  box-shadow: 0 1px 2px rgba(var(--shadow-rgb), .04), 0 14px 30px -24px rgba(var(--shadow-rgb), .18);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
/* иконка тонирована в покое, солид-оранж только на hover - убирает «оранжевую рябь» 10 плашек */
.service__icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(229,97,33,.12); color: var(--brand-strong);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.service:hover { border-color: var(--brand); }
.service:hover .service__icon { background: var(--brand); color: #fff; transform: scale(1.08) rotate(-4deg); }
.service__icon svg { width: 22px; height: 22px; }
.service__title { font-size: 17px; font-weight: 700; color: var(--ink); }
.service__text { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); min-height: 2.9em; }
@media (max-width: 640px) { .services__grid { grid-template-columns: 1fr; } }

/* ---------- ПРОЦЕСС ---------- */
.process {
  position: relative; isolation: isolate;
  background: radial-gradient(130% 130% at 12% 0%, #26262a 0%, #17171a 55%, #101012 100%);
  border-radius: var(--r-lg); padding: 48px 56px; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
/* микро-шум против бандинга градиента - «студийная» глубина вместо near-black */
.process::after, .cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: inherit; opacity: .05; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.process__title { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.03em; margin-bottom: 12px; }
.process__title::after { content: "."; color: var(--brand); }
.steps { margin-top: 12px; position: relative; }
/* вертикальный рельс-таймлайн: соединяет этапы, читается как «путь», а не список */
.steps::before {
  content: ""; position: absolute; left: 34px; top: 46px; bottom: 46px; width: 2px; z-index: 0;
  background: linear-gradient(rgba(229,97,33,.55), rgba(229,97,33,.06));
}
.stepline {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 96px 1.25fr 1fr; gap: 32px; align-items: center;
  padding: 26px 0; border-top: 1px solid rgba(255,255,255,.1);
}
.stepline:first-child { border-top: 0; }
.stepline__num {
  justify-self: start; display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 12px; border-radius: 99px; white-space: nowrap;
  font-size: 12px; font-weight: 600; color: var(--brand);
  /* непрозрачный фон (тёмная база + оранжевый wash) - бейдж = узел, перекрывает рельс */
  background: linear-gradient(rgba(229,97,33,.16), rgba(229,97,33,.16)), #201f22;
  border: 1px solid rgba(229,97,33,.35);
}
.stepline__title { font-size: clamp(19px, 1.6vw, 24px); font-weight: 700; color: #fff; letter-spacing: -.01em; }
.stepline__right { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.stepline__text { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.65); }
.stepline__meta { flex: none; font-size: 12px; color: rgba(255,255,255,.75); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 99px; padding: 6px 12px; white-space: nowrap; }
@media (max-width: 820px) {
  .process { padding: 32px 24px; }
  .steps::before { display: none; }
  .stepline { grid-template-columns: 1fr; gap: 10px; }
  .stepline__num { justify-self: start; }
  .stepline__right { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------- КЕЙСЫ ---------- */
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section__title--nomb { margin-bottom: 0; }
.cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.case:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -24px rgba(var(--shadow-rgb), .28); }
.case__img { aspect-ratio: 16 / 10; background: var(--mist); position: relative; overflow: hidden; }
.case__img img { width: 100%; height: 100%; object-fit: cover; }
.case__ph {
  position: absolute; inset: 0; isolation: isolate;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center; padding: 24px; color: #fff; line-height: 1.2;
  background:
    radial-gradient(80% 90% at 78% 12%, rgba(229,97,33,.16), transparent 60%),
    radial-gradient(120% 120% at 20% 10%, #2b2b30 0%, #131315 70%);
}
/* Фирменный мотив «линия роста» (z-index:-1 - над фоном, под текстом) - плейсхолдер выглядит намеренно */
.case__ph::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100' preserveAspectRatio='none'%3E%3Cpolyline points='0,84 33,73 66,77 100,50 133,57 166,28 200,15' fill='none' stroke='%23e56121' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center bottom;
  background-size: 100% 100%; opacity: .4;
}
.case__ph--brand { font-size: 26px; font-weight: 800; letter-spacing: -.02em; opacity: .92; }
.case__ph--brand span { color: var(--brand); }
/* Разный угол свечения и оттенок подложки на каждую карточку - три перестают быть копиями */
.cases__grid .case:nth-child(2) .case__ph {
  background:
    radial-gradient(80% 90% at 22% 88%, rgba(229,97,33,.16), transparent 60%),
    radial-gradient(120% 120% at 80% 8%, #2f2a28 0%, #131315 70%);
}
.cases__grid .case:nth-child(3) .case__ph {
  background:
    radial-gradient(90% 90% at 60% 102%, rgba(229,97,33,.18), transparent 55%),
    radial-gradient(120% 120% at 48% 0%, #2b2b30 0%, #121214 70%);
}
.case__body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.case__client { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
/* Заголовок карточки = оффер/результат (ключевая инфа), не имя клиента */
.case__title { font-size: 18px; font-weight: 700; line-height: 1.34; letter-spacing: -.01em; color: var(--ink); flex: 1; }
.case__text { font-size: 14px; line-height: 1.45; color: var(--ink-soft); flex: 1; }
.case__more { font-weight: 600; color: var(--brand-strong); margin-top: 4px; transition: transform .2s ease; }
.case:hover .case__more { transform: translateX(5px); }
/* Оверлей на фото: тег ниши (сверху) + крупная метрика результата (снизу над градиентом) */
.case__img img { transition: transform .5s ease; }
.case:hover .case__img img { transform: scale(1.04); }
.case .case__ph { z-index: 0; }
.case__overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; justify-content: space-between; padding: 16px;
}
.case__overlay::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,8,6,.34) 0%, rgba(10,8,6,0) 34%, rgba(10,8,6,0) 46%, rgba(10,8,6,.82) 100%);
}
.case__niche-tag {
  align-self: flex-start; display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #fff;
  background: rgba(20,18,16,.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18); padding: 6px 12px; border-radius: var(--r-pill);
}
.case__niche-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); margin-right: 7px; flex: none; }
.case__metric { display: flex; flex-direction: column; gap: 2px; }
.case__metric-num {
  font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1;
  color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.case__metric-cap { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.88); text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.cases__empty { color: var(--ink-soft); }
@media (max-width: 860px) { .cases__grid { grid-template-columns: 1fr; } }

/* ---------- БЛОГ (светлые редакционные карточки, отличны от тёмных кейсов) ---------- */
.posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px;
  box-shadow: 0 1px 2px rgba(var(--shadow-rgb), .04), 0 14px 34px -24px rgba(var(--shadow-rgb), .15);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -24px rgba(var(--shadow-rgb), .24); border-color: #dcd8cf; }
.post-card__top { display: flex; align-items: center; gap: 12px; }
.post-card__chip {
  font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--brand-strong);
  background: rgba(229,97,33,.10); padding: 5px 12px; border-radius: var(--r-pill);
}
.post-card__date { font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.post-card__title { font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.post-card__text { font-size: 14px; line-height: 1.5; color: var(--ink-soft); flex: 1; }
.post-card__more { font-weight: 600; color: var(--brand-strong); margin-top: 2px; transition: transform .2s ease; }
.post-card:hover .post-card__more { transform: translateX(5px); }
@media (max-width: 860px) { .posts__grid { grid-template-columns: 1fr; } }

/* ---------- CTA-блок ---------- */
.cta {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  border-radius: var(--r-lg);
  background: radial-gradient(130% 130% at 12% 0%, #26262a 0%, #17171a 55%, #101012 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.cta__copy { padding: 56px; align-self: center; }
.cta__title { color: #fff; font-size: clamp(26px, 3vw, 40px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.cta__sub { color: rgba(255,255,255,.65); font-size: 17px; margin-top: 16px; max-width: 42ch; line-height: 1.5; }
.cta__copy .btn { margin-top: 28px; }
.cta__media { position: relative; min-height: 360px; background: var(--mist); }
.cta__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta__ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(90% 90% at 78% 30%, rgba(229,97,33,.30), transparent 60%),
    radial-gradient(120% 120% at 70% 20%, #2b2b30, #131315);
}
.cta__ph::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100' preserveAspectRatio='none'%3E%3Cpolyline points='0,84 33,73 66,77 100,50 133,57 166,28 200,15' fill='none' stroke='%23e56121' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center bottom;
  background-size: 100% 100%; opacity: .32;
}
.cta__ph-brand { position: relative; z-index: 1; font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: #fff; opacity: .92; }
.cta__ph-brand span { color: var(--brand); }
@media (max-width: 820px) {
  .cta { grid-template-columns: 1fr; }
  .cta__copy { padding: 36px; }
  .cta__media { min-height: 240px; }
}

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 24px; transition: border-color .2s ease; }
.faq__item[open] { border-color: rgba(229,97,33,.4); }
.faq__q {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 17px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__mark { display: inline-flex; align-items: center; color: var(--brand); transition: transform .2s ease; }
.faq__mark svg { width: 14px; height: 9px; }
.faq__item[open] .faq__mark { transform: rotate(180deg); }
.faq__a { padding-bottom: 20px; color: var(--ink-soft); font-size: 15px; max-width: 70ch; }

/* ---------- ФОРМА ---------- */
/* Единый блок: обе половины стыкуются без зазора, скругление по внешним углам */
.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; }
.lead__pitch {
  background: linear-gradient(150deg, #f2793a, #d24e0f); color: #fff;
  padding: 48px;
}
.lead__title { font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.lead__sub { margin-top: 16px; color: rgba(255,255,255,.9); }
.lead__list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 10px; }
.lead__list li { background: rgba(255,255,255,.14); border-radius: 12px; padding: 14px 18px; font-size: 15px; }

.lead__form { background: var(--ink); padding: 44px 48px; display: flex; flex-direction: column; gap: 18px; }
/* Панель «заявка принята» встаёт на место формы - вторая колонка сетки, тот же фон,
   те же отступы. Центрируем по вертикали: текста тут в разы меньше, чем полей формы,
   и прижатый к верху блок оставлял бы под собой пустой тёмный прямоугольник. */
.lead__done { background: var(--ink); padding: 44px 48px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.lead__done .lead__note { margin-bottom: 0; }
.lead__done-hint { color: rgba(255,255,255,.62); font-size: 15px; line-height: 1.5; }
.lead__done-hint a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); }
.lead__done-hint a:hover { border-bottom-color: var(--brand); }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; }
.field > span { font-size: 14px; color: rgba(255,255,255,.7); }
.field input[type=text], .field input[type=tel] {
  background: #1c1c1f; border: 1px solid #2c2c30; border-radius: 12px;
  padding: 14px 16px; color: #fff; font: inherit;
}
.field input::placeholder { color: #6b6b70; }

/* Способ связи - пилюли-переключатели */
.channels { display: flex; gap: 10px; flex-wrap: wrap; }
.channel { position: relative; }
.channel input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.channel span {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 99px; cursor: pointer;
  background: #1c1c1f; border: 1px solid #2c2c30; color: #fff; font-size: 14px; font-weight: 500;
  transition: background .15s ease, border-color .15s ease;
}
.channel input:checked + span { background: var(--brand); border-color: var(--brand); }
.channel input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Кастомный чекбокс согласия */
.consent { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.4; cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.consent__box {
  flex: none; width: 22px; height: 22px; border-radius: 7px; margin-top: 1px;
  border: 1px solid #3a3a40; background: #1c1c1f; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; transition: .15s ease;
}
.consent__box svg { width: 14px; height: 14px; opacity: 0; transition: opacity .15s ease; }
.consent input:checked + .consent__box { background: var(--brand); border-color: var(--brand); }
.consent input:checked + .consent__box svg { opacity: 1; }
.consent__text a { color: var(--brand); }
.btn--full { width: 100%; justify-content: center; }
/* honeypot - уводим за экран (не display:none, чтобы боты его заполняли) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead__note { border-radius: var(--r-sm); padding: 16px 20px; font-size: 15px; margin-bottom: 16px; }
.lead__note--ok { background: #e7f6ec; color: #1b7a3d; }
.lead__note--err { background: #fbe9e7; color: #c0392b; }
@media (max-width: 820px) { .lead { grid-template-columns: 1fr; } }

/* Поп-ап формы заявки (тёмная панель - под тёмную форму) */
.lead-modal {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.lead-modal.is-open { opacity: 1; visibility: visible; }
.lead-modal__backdrop { position: absolute; inset: 0; background: rgba(10,8,6,.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.lead-modal__dialog {
  position: relative; z-index: 1; width: 100%; max-width: 500px; max-height: 92vh; overflow-y: auto;
  border-radius: var(--r-lg); padding: 36px 34px 30px; color: #fff;
  background: radial-gradient(130% 130% at 12% 0%, #26262a 0%, #17171a 55%, #101012 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 40px 90px -30px rgba(0,0,0,.6);
  transform: translateY(10px) scale(.98); transition: transform .2s ease;
}
.lead-modal.is-open .lead-modal__dialog { transform: none; }
.lead-modal__close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; padding: 0; cursor: pointer;
  border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(255,255,255,.06); color: #fff; font-size: 22px; line-height: 34px;
}
.lead-modal__close:hover { background: rgba(255,255,255,.14); }
.lead-modal__badge {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--brand); margin-bottom: 14px;
}
.lead-modal__badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-right: 8px; }
.lead-modal__title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.08; color: #fff; }
.lead-modal__sub { color: rgba(255,255,255,.66); font-size: 15px; line-height: 1.5; margin: 10px 0 20px; }
.lead-modal__list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 12px; }
.lead-modal__list li { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.84); }
.lead-modal__list svg { width: 20px; height: 20px; flex: none; color: #fff; background: var(--brand); padding: 4px; border-radius: 6px; box-sizing: border-box; margin-top: 1px; }
/* В модалке форма без своего фона/паддинга - иначе второй чёрный прямоугольник */
.lead-modal .lead__form { background: transparent; padding: 0; gap: 16px; }
@media (max-width: 520px) { .lead-modal__dialog { padding: 28px 22px; } }
@media (prefers-reduced-motion: reduce) { .lead-modal, .lead-modal__dialog { transition: none; } }

/* ==========================================================================
   Анимации (активны только при JS: класс .js на <html>)
   ========================================================================== */

/* Reveal-on-scroll для крупных блоков */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Каскад по детям сеток */
.js .stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
.js .stagger.is-visible > * { opacity: 1; transform: none; }
.js .stagger.is-visible > *:nth-child(2) { transition-delay: .07s; }
.js .stagger.is-visible > *:nth-child(3) { transition-delay: .14s; }
.js .stagger.is-visible > *:nth-child(4) { transition-delay: .21s; }
.js .stagger.is-visible > *:nth-child(5) { transition-delay: .28s; }
.js .stagger.is-visible > *:nth-child(6) { transition-delay: .35s; }
.js .stagger.is-visible > *:nth-child(7) { transition-delay: .42s; }
.js .stagger.is-visible > *:nth-child(8) { transition-delay: .49s; }
.js .stagger.is-visible > *:nth-child(9) { transition-delay: .56s; }

/* Плавающие hero-виджеты (keyframes используется .gw/.gchip) */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Наведение: подъём карточек */
.service, .adv { transition: transform .25s ease, box-shadow .25s ease; }
.service:hover, .adv:hover { transform: translateY(-4px); box-shadow: 0 20px 42px -24px rgba(var(--shadow-rgb), .26); }

/* Плавное раскрытие FAQ */
.faq__a { animation: faqIn .3s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Уважение к настройке ОС */
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .stagger > * { opacity: 1; transform: none; transition: none; }
  .gw, .gchip { animation: none; }
  .js .hero__widgets .gw__bars i, .js .hero__widgets .gw__bar i { transform: none; transition: none; }
  .btn:hover, .service:hover { transform: none; }
}

