/* ============================================================
   ГК Сфера — промышленные полимерные полы
   Light steel-industrial design system. Native CSS, no build.
   Accent locked: industrial blue #1f5fd4. Radius rule:
   surfaces 18px, inputs 12px, interactive pills 999px.
   ============================================================ */

:root {
  --bg:        #fbfcfd;
  --bg-2:      #eef2f6;
  --bg-3:      #e6ecf1;
  --panel:     #ffffff;
  --line:      #e3e9ee;
  --line-2:    #d2dbe2;

  --ink:       #0f1820;
  --ink-2:     #44525e;
  --ink-3:     #616e7a;   /* контраст 5.2 на белом — проходит WCAG AA */

  --accent:    #1f5fd4;
  --accent-2:  #1545a0;   /* hover / text on white (AA) */
  --accent-soft:#e9f0fc;

  --r:     18px;
  --r-sm:  12px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(15,24,32,.05), 0 10px 30px rgba(20,44,84,.06);
  --sh-2: 0 2px 8px rgba(15,24,32,.06), 0 28px 64px rgba(20,44,84,.11);
  --sh-card-hover: 0 4px 12px rgba(15,24,32,.07), 0 34px 70px rgba(20,44,84,.15);

  --maxw: 1240px;
  --nav-h: 74px;

  --font:  'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(72px, 9vw, 132px); position: relative; }
.section--tint { background: var(--bg-2); }
.section--ink { background: #0f1820; color: #eef3f7; }

.h-sec {
  font-weight: 700; letter-spacing: -.02em; line-height: 1.06;
  font-size: clamp(30px, 4.2vw, 52px);
}
.lead {
  color: var(--ink-2); font-size: clamp(17px, 1.5vw, 20px);
  max-width: 60ch; line-height: 1.6;
}
.sec-head { margin-bottom: clamp(34px, 4.5vw, 60px); }
.sec-head .lead { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding-inline: 26px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 16px; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s var(--ease),
              box-shadow .25s var(--ease), border-color .25s var(--ease), color .2s;
  will-change: transform;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(31,95,212,.28); }
.btn--primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(31,95,212,.36); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); background: rgba(15,24,32,.03); }
.btn--light { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn--lg { height: 60px; padding-inline: 34px; font-size: 17px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-2); font-weight: 600;
  transition: gap .25s var(--ease);
}
.link-arrow svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.link-arrow:hover { gap: 12px; }
.link-arrow:hover svg { transform: translateX(2px); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--accent); z-index: 90; transition: width .1s linear;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 80;
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.nav.scrolled {
  background: rgba(251,252,253,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(20,44,84,.05);
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; width: auto; height: 42px; }
.nav.scrolled .brand img { height: 38px; transition: height .3s var(--ease); }
.footer__brand .brand img { height: 54px; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 9px 13px; border-radius: var(--r-pill); font-size: 15.5px; color: var(--ink-2); font-weight: 500;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--ink); background: rgba(15,24,32,.05); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__phone { font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; white-space: nowrap; line-height: 1.15; }
.nav__phone small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-bottom: 2px; }
.nav__phone:hover { color: var(--accent-2); }
.nav__phone:hover small { color: var(--ink-3); }
/* ниже 1040px .nav__phone скрывается медиазапросом — телефону в мобильном
   меню нужна большая специфичность, иначе он тоже пропадёт */
.mobile-menu .nav__phone--mob { display: block; font-size: 20px; padding: 16px 0; }
.mobile-menu .nav__phone--mob small { display: block; font-size: 13px; margin-top: 4px; margin-bottom: 0; }
.nav .btn { height: 46px; padding-inline: 20px; font-size: 15px; }
.nav__burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line-2); align-items: center; justify-content: center; }
.nav__burger span { width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
.nav__burger span::before { top: -6px; } .nav__burger span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; overflow: hidden; }
.hero__video, .hero__poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(248,250,252,.48) 0%, rgba(248,250,252,.18) 40%, rgba(248,250,252,0) 62%),
    linear-gradient(0deg, rgba(248,250,252,.4) 0%, rgba(248,250,252,0) 26%),
    linear-gradient(180deg, rgba(248,250,252,.42) 0%, rgba(248,250,252,0) 15%);
}
.hero__inner {
  position: relative; z-index: 2; width: 100%; padding-top: calc(var(--nav-h) + 8px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 400px);
  gap: clamp(20px, 2.4vw, 36px); align-items: center;
}
@media (max-width: 1080px) { .hero__inner { grid-template-columns: 1fr; } }

/* форма прямо на первом экране: до кнопок ниже доходит меньше половины */
.hero__form {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 22px;
  padding: clamp(20px, 1.8vw, 28px);
  box-shadow: 0 2px 10px rgba(15,24,32,.06), 0 30px 60px rgba(20,44,84,.22);
}
.hero__form-title { font-size: clamp(19px, 1.5vw, 23px); letter-spacing: -.02em; margin-bottom: 6px; }
.hero__form-sub { font-size: 13.5px; color: var(--ink-3); line-height: 1.5; margin-bottom: 16px; }
.hero__form .field { margin-bottom: 12px; }
.hero__form textarea { min-height: 62px; resize: vertical; }
.hero__form-btn { width: 100%; justify-content: center; margin-top: 2px; }
.hero__form .consent { margin-top: 12px; }
.field__opt { font-weight: 400; color: var(--ink-3); }
.hero__card {
  max-width: 640px;
  background: rgba(255,255,255,.28);
  backdrop-filter: blur(7px) saturate(135%);
  -webkit-backdrop-filter: blur(7px) saturate(135%);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 26px;
  padding: clamp(26px, 3vw, 44px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 2px 10px rgba(15,24,32,.06), 0 40px 80px rgba(20,44,84,.18);
}
.hero__card h1,
.hero__card .hero__sub,
.hero__card .hero__meta b,
.hero__card .hero__meta small { text-shadow: 0 1px 10px rgba(255,255,255,.55); }
@media (prefers-reduced-transparency: reduce) {
  .hero__card { background: rgba(255,255,255,.9); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero__card h1, .hero__card .hero__sub,
  .hero__card .hero__meta b, .hero__card .hero__meta small { text-shadow: none; }
}
.hero h1 {
  font-weight: 700; letter-spacing: -.03em; line-height: 1.02;
  font-size: clamp(34px, 4.6vw, 58px); margin: 20px 0 18px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__sub { font-size: clamp(17px, 1.55vw, 20px); color: var(--ink-2); max-width: 52ch; line-height: 1.55; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(15,24,32,.1); }
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.hero__meta small { font-size: 13px; color: var(--ink-3); }

.field textarea {
  width: 100%; min-height: 96px; resize: vertical; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--panel);
  padding: 13px 16px; font: inherit; font-size: 16px; line-height: 1.45; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea::placeholder { color: var(--ink-3); }
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31,95,212,.12); }
.field__hint { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 500; margin-top: 6px; line-height: 1.45; }
.field__hint a { color: var(--accent-2); font-weight: 600; border-bottom: 1px solid rgba(31,95,212,.3); }
.field__hint a:hover { border-color: var(--accent-2); }
.field__opt { font-weight: 500; color: var(--ink-3); }

/* ---------- Вложения к заявке ---------- */
.filedrop {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 20px 16px; border-radius: var(--r-sm); cursor: pointer;
  border: 1.5px dashed var(--line-2); background: var(--bg-2);
  transition: border-color .2s, background .2s;
}
.filedrop:hover { border-color: var(--accent); background: var(--accent-soft); }
.filedrop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.filedrop svg { width: 24px; height: 24px; color: var(--accent-2); margin-bottom: 4px; }
.filedrop__text { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.filedrop__hint { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.filelist { list-style: none; display: grid; gap: 8px; margin-top: 10px; }
.filelist:empty { margin-top: 0; }
.filelist li {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 12px;
  border-radius: 11px; background: var(--panel); border: 1px solid var(--line); font-size: 13.5px;
}
.filelist .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.filelist .sz { flex: none; color: var(--ink-3); font-family: var(--mono); font-size: 12px; }
.filelist .rm {
  flex: none; width: 26px; height: 26px; border-radius: 8px; color: var(--ink-3);
  display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s;
}
.filelist .rm:hover { background: #fef3f2; color: #b42318; }
.filelist .rm svg { width: 14px; height: 14px; }
.filelist__err { margin-top: 9px; font-size: 13px; color: #b42318; }

/* ---------- Trust band ---------- */
.trust { background: #0f1820; color: #eaf0f5; padding-block: clamp(48px, 6vw, 76px); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.trust__grid .stat b {
  display: block; font-size: clamp(34px, 4.4vw, 54px); font-weight: 700; letter-spacing: -.03em; line-height: 1;
  color: #fff;
}
.trust__grid .stat span { display: block; margin-top: 10px; color: #94a6b4; font-size: 14.5px; max-width: 22ch; }
.trust__grid .stat .unit { color: #7fb0ff; }
.marquee { margin-top: 46px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 0; animation: marquee 34s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 30px; padding-right: 30px; color: #5e7184; font-family: var(--mono); font-size: 14px; letter-spacing: .05em; white-space: nowrap; }
.marquee__track span::after { content: "•"; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- Segments ---------- */
.seg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.seg {
  position: relative; border-radius: var(--r); overflow: hidden; min-height: 240px;
  background: var(--panel); border: 1px solid var(--line); padding: 26px;
  display: flex; flex-direction: column; justify-content: flex-end;
  text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.seg:hover { transform: translateY(-4px); box-shadow: var(--sh-card-hover); border-color: transparent; }
.seg--img { color: #fff; border: none; min-height: 320px; }
.seg--img::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transition: transform .6s var(--ease);
}
.seg--img:hover::before { transform: scale(1.06); }
.seg--img::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(8,14,20,.82) 0%, rgba(8,14,20,.32) 46%, rgba(8,14,20,.08) 100%);
}
.seg--food::before  { background-image: url("assets/gal/food-01.jpg"); }
.seg--ware::before  { background-image: url("assets/gal/ware-01.jpg"); }
.seg--shop::before  { background-image: url("assets/gal/shop-01.jpg"); }
.seg--pharm::before { background-image: url("assets/gal/pharm-01.jpg"); }
.seg--park::before  { background-image: url("assets/gal/park-01.jpg"); }
.seg--comm::before  { background-image: url("assets/gal/comm-04.jpg"); }
.seg__badge {
  position: relative; z-index: 2; align-self: flex-start; margin-top: 14px;
  padding: 5px 11px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600;
  letter-spacing: .01em; background: rgba(255,255,255,.16); color: #fff;
  backdrop-filter: blur(4px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
.seg__ic { position: relative; z-index: 2; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-2); margin-bottom: auto; }
.seg--img .seg__ic { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(4px); }
.seg__ic svg { width: 23px; height: 23px; }
.seg h3 { position: relative; z-index: 2; font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin-top: 18px; }
.seg p { position: relative; z-index: 2; font-size: 14.5px; color: var(--ink-2); margin-top: 7px; }
.seg--img p { color: #c8d4dd; }
.seg__go { position: relative; z-index: 2; margin-top: 16px; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14.5px; color: var(--accent-2); }
.seg--img .seg__go { color: #fff; }
.seg__go svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.seg:hover .seg__go svg { transform: translateX(3px); }

/* ---------- Differentiation ---------- */
.diff__top { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 72px); align-items: start; margin-bottom: 54px; }
.diff__quote { font-size: clamp(20px, 2vw, 25px); line-height: 1.5; color: var(--ink); font-weight: 500; letter-spacing: -.01em; }
.diff__quote b { color: var(--accent-2); font-weight: 700; }
.diff__aside { background: var(--ink); color: #eaf0f5; border-radius: var(--r); padding: 28px; box-shadow: var(--sh-2); }
.diff__aside h4 { font-size: 15px; color: #8aa0b2; font-weight: 600; margin-bottom: 18px; font-family: var(--mono); letter-spacing: .04em; }
.diff__readout { display: flex; flex-direction: column; gap: 14px; }
.diff__readout .row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.diff__readout .row:last-child { border-bottom: none; padding-bottom: 0; }
.diff__readout .k { color: #9fb1c0; font-size: 14.5px; }
.diff__readout .v { font-family: var(--mono); font-size: 17px; color: #fff; font-weight: 600; }
.diff__readout .v.ok { color: #57d99a; }
.diff__note { margin-top: 18px; font-size: 12.5px; color: #6f8392; }

.cause-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.cause {
  display: grid; grid-template-columns: 56px 1fr 1fr; gap: 26px; align-items: start;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.cause__n { font-family: var(--mono); font-size: 15px; color: var(--accent-2); font-weight: 600; padding-top: 3px; }
.cause__bad h4 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 7px; }
.cause__bad p { color: var(--ink-2); font-size: 15px; }
.cause__good { background: var(--accent-soft); border-radius: var(--r-sm); padding: 16px 18px; }
.cause__good .tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--accent-2); text-transform: uppercase; letter-spacing: .06em; font-family: var(--mono); margin-bottom: 7px; }
.cause__good .tag svg { width: 15px; height: 15px; }
.cause__good p { font-size: 15px; color: var(--ink); }

/* ---------- Systems ---------- */
.sys-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sys {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 26px 26px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start;
  text-align: left; font: inherit; color: inherit; width: 100%; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.sys__go {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 14.5px; color: var(--accent-2);
}
.sys__go svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.sys:hover .sys__go svg { transform: translateX(3px); }
.sys::before { content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 3px; border-radius: 3px; background: var(--accent); opacity: .9; }
.sys:hover { transform: translateY(-4px); box-shadow: var(--sh-card-hover); border-color: transparent; }
.sys__tag { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; }
.sys h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 12px 0 14px; line-height: 1.18; }
.sys__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 30px; padding-inline: 13px; border-radius: var(--r-pill); background: var(--bg-2); color: var(--ink-2); font-size: 13px; font-weight: 500; border: 1px solid var(--line); }

/* ---------- Process ---------- */
.proc { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 880px; margin-inline: auto; position: relative; }
.proc__line { position: absolute; left: 23px; top: 30px; bottom: 30px; width: 2px; background: var(--line); overflow: hidden; }
.proc__line i { position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .1s linear; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 24px; padding: 22px 0; position: relative; z-index: 1; }
.step__dot {
  width: 48px; height: 48px; border-radius: var(--r-pill); background: var(--panel); border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 600; color: var(--ink-3);
  transition: border-color .3s, color .3s, background .3s;
}
.step.in .step__dot { border-color: var(--accent); color: var(--accent-2); }
.step__body h4 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.step__body p { color: var(--ink-2); margin-top: 6px; font-size: 15.5px; max-width: 58ch; }
.step__body .accent { color: var(--accent-2); font-weight: 600; }

/* ---------- Cases ---------- */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 60px); align-items: center; }
.case + .case { margin-top: clamp(48px, 6vw, 88px); }
.case:nth-child(even) .case__media { order: 2; }
.case__media { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-2); aspect-ratio: 16/10; }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.case:hover .case__media img { transform: scale(1.04); }
.case__badge {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding-inline: 14px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.9); backdrop-filter: blur(6px); font-size: 13px; font-weight: 600; box-shadow: var(--sh-1);
}
.case__badge i { width: 8px; height: 8px; border-radius: 50%; background: #2ec27e; }
.case__tag { font-family: var(--mono); font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-2); }
.case h3 { font-size: clamp(23px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.02em; margin: 14px 0 16px; line-height: 1.12; }
.case__spec { display: grid; grid-template-columns: repeat(2, auto); gap: 14px 36px; margin-top: 22px; }
.case__spec div { display: flex; flex-direction: column; }
.case__spec .k { font-size: 13px; color: var(--ink-3); }
.case__spec .v { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-top: 2px; }
.case__result { margin-top: 22px; padding: 14px 18px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--ink); font-size: 15px; display: flex; gap: 11px; align-items: flex-start; }
.case__result svg { width: 19px; height: 19px; color: var(--accent-2); flex: none; margin-top: 1px; }

/* ---------- Guarantee ---------- */
.guarantee { background: #0f1820; color: #eef3f7; }
.guarantee .grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.guarantee h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 700; letter-spacing: -.02em; line-height: 1.06; }
.guarantee .lead { color: #aebecb; margin-top: 20px; }
.guarantee ul { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.guarantee li { display: flex; gap: 13px; align-items: flex-start; color: #d2dde5; font-size: 16px; }
.guarantee li svg { width: 21px; height: 21px; color: #57d99a; flex: none; margin-top: 2px; }
.doc {
  background: linear-gradient(180deg, #ffffff, #f6f8fa); color: var(--ink);
  border-radius: var(--r); padding: 32px; box-shadow: var(--sh-2); position: relative;
  border: 1px solid rgba(255,255,255,.5);
}
.doc__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.doc__head b { font-size: 14px; font-family: var(--mono); letter-spacing: .03em; color: var(--ink-2); }
.doc__seal { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent-2); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10px; font-weight: 700; text-align: center; transform: rotate(-8deg); line-height: 1.1; }
.doc__clause { font-size: 16px; line-height: 1.62; color: var(--ink); }
.doc__clause b { color: var(--accent-2); }
.doc__sign { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line-2); display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); font-family: var(--mono); }

/* ---------- Quiz ---------- */
.quiz { display: grid; grid-template-columns: .85fr 1.15fr; gap: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-2); background: var(--panel); border: 1px solid var(--line); }
.quiz__side { background: #0f1820; color: #eef3f7; padding: clamp(30px, 3.5vw, 48px); display: flex; flex-direction: column; }
.quiz__side h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.quiz__side p { color: #9fb1c0; margin-top: 16px; font-size: 15.5px; }
.quiz__list { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.quiz__list li { position: relative; padding-left: 26px; font-size: 14.5px; color: #cbd7e1; line-height: 1.45; }
.quiz__list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg); border-radius: 1px;
}
.quiz__mgr { margin-top: auto; padding-top: 28px; }
.quiz__mgr span { display: block; font-size: 13.5px; color: #7f93a3; }
.quiz__mgr a { display: inline-block; margin-top: 7px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -.02em; color: #fff; }
.quiz__mgr a:hover { color: #7fb0ff; }
.quiz__mgr small { display: block; font-size: 12.5px; color: #6f8392; margin-top: 7px; }
.quiz__main { padding: clamp(28px, 3.5vw, 46px); display: flex; flex-direction: column; justify-content: center; }
.quiz__form-title { font-size: clamp(20px, 1.7vw, 24px); font-weight: 700; letter-spacing: -.02em; }
.quiz__form-sub { font-size: 14px; color: var(--ink-3); line-height: 1.55; margin: 8px 0 22px; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.field input {
  width: 100%; height: 52px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--panel);
  padding-inline: 16px; font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31,95,212,.12); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-3); margin-top: 14px; cursor: pointer; }
.consent input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent-2); cursor: pointer; }
.consent a { color: var(--accent-2); text-decoration: underline; }
/* подсветка, когда заявку отправляют без отметки */
.consent--bad { color: #f04438; }
.consent--bad input[type="checkbox"] { outline: 2px solid #f04438; outline-offset: 2px; border-radius: 3px; }
.field__hint--files { display: block; margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.field__hint--files a { color: var(--accent-2); text-decoration: underline; }

/* ---------- Блок с ценами на главной ---------- */
.prices__note { margin-top: 18px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); max-width: 78ch; }
.prices__note a { color: var(--accent-2); text-decoration: underline; font-weight: 600; }
.prices__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.prices__cta span { font-size: 14px; color: var(--ink-3); }
#prices .tbl { box-shadow: var(--sh-1); }
#prices .tbl tbody tr:nth-child(even) td { background: #f7f9fb; }

/* ---------- Уведомление о cookie ---------- */
.cookiebar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120;
  display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between;
  max-width: 880px; margin: 0 auto; padding: 16px 20px; border-radius: 16px;
  background: #0b1218; color: #cdd9e3; box-shadow: 0 18px 50px rgba(8,16,24,.32); }
.cookiebar p { margin: 0; flex: 1 1 360px; font-size: 13.5px; line-height: 1.55; }
.cookiebar a { color: #fff; text-decoration: underline; }
.cookiebar .btn { flex: none; height: 42px; padding: 0 22px; font-size: 14px; }
@media (max-width: 560px) {
  .cookiebar { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; }
  .cookiebar .btn { width: 100%; }
}
/* плашка перекрывает плавающие кнопки мессенджеров — прячем их до её закрытия */
.has-cookiebar .fab { display: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; text-align: left; font-size: clamp(17px, 1.7vw, 20px); font-weight: 600; letter-spacing: -.01em; }
.faq__q .pm { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; transition: border-color .25s, background .25s; }
.faq__q .pm::before, .faq__q .pm::after { content: ""; position: absolute; background: var(--ink); border-radius: 2px; left: 50%; top: 50%; transition: transform .3s var(--ease), background .25s; }
.faq__q .pm::before { width: 13px; height: 2px; transform: translate(-50%,-50%); }
.faq__q .pm::after { width: 2px; height: 13px; transform: translate(-50%,-50%); }
.faq__item.open .pm { border-color: var(--accent); background: var(--accent); }
.faq__item.open .pm::before, .faq__item.open .pm::after { background: #fff; }
.faq__item.open .pm::after { transform: translate(-50%,-50%) scaleY(0); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.faq__a p { padding-bottom: 26px; color: var(--ink-2); font-size: 16px; max-width: 70ch; line-height: 1.6; }

/* ---------- Final CTA ---------- */
.cta-band { background: var(--accent); color: #fff; border-radius: clamp(20px, 3vw, 32px); padding: clamp(40px, 5.5vw, 76px); position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 180%;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 62%); pointer-events: none;
}
.cta-band .grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 46px); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; }
.cta-band p { color: rgba(255,255,255,.86); margin-top: 16px; font-size: 17px; max-width: 46ch; }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; }
.cta-band .actions .phone { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.cta-band .actions small { color: rgba(255,255,255,.8); font-size: 14px; }

/* ---------- Footer ---------- */
.footer { background: #0b1218; color: #9fb1c0; padding-block: 64px 36px; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.1fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand .brand { color: #fff; margin-bottom: 16px; }
.footer__brand p { font-size: 14.5px; max-width: 34ch; }
.footer h5 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; letter-spacing: .02em; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer ul a { font-size: 14.5px; color: #9fb1c0; transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer__contacts a { display: block; color: #eaf0f5; font-weight: 600; font-size: 17px; margin-bottom: 8px; letter-spacing: -.01em; }
.footer__contacts span { font-size: 14px; display: block; margin-bottom: 4px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 26px; font-size: 13px; color: #7a8c9d; }
.footer__made a, .footer__bottom a { color: #9fb1c0; font-weight: 600; border-bottom: 1px solid rgba(159,177,192,.35); transition: color .2s, border-color .2s; }
.footer__made a:hover, .footer__bottom a:hover { color: #fff; border-color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .seg, .sys, .case__media img { transition: none !important; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 95; background: rgba(251,252,253,.98); backdrop-filter: blur(10px); display: none; flex-direction: column; padding: 90px 24px 32px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 22px; font-weight: 600; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 24px; }
.mobile-menu__close { position: absolute; top: 22px; right: 22px; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line-2); font-size: 24px; }

/* ---------- Form error ---------- */
.form-err { margin-top: 12px; font-size: 14px; line-height: 1.5; color: #b42318; background: #fef3f2; border: 1px solid #fecdca; border-radius: 12px; padding: 10px 12px; }
.form-err a { color: #912018; font-weight: 600; text-decoration: underline; }

/* ---------- Текстовая страница (политика) ----------
   ВНИМАНИЕ: класс .doc уже занят карточкой договора в блоке гарантии,
   поэтому страница называется .legal — не переименовывать обратно. */
.legal { padding-block: clamp(110px, 12vw, 150px) clamp(60px, 7vw, 90px); background: var(--bg); }
.legal__inner { max-width: 800px; }
.legal__back {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600;
  color: var(--ink-2); margin-bottom: 26px; transition: color .2s;
}
.legal__back:hover { color: var(--accent-2); }
.legal__back svg { width: 17px; height: 17px; }
.legal h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.legal__meta { font-family: var(--mono); font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.legal h2 {
  font-size: clamp(19px, 2vw, 23px); font-weight: 700; letter-spacing: -.02em;
  margin-top: 42px; margin-bottom: 14px; padding-top: 26px; border-top: 1px solid var(--line);
}
.legal p { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin-top: 13px; }
.legal p b, .legal li b { color: var(--ink); font-weight: 600; }
.legal ul { margin-top: 14px; display: grid; gap: 10px; padding-left: 0; list-style: none; }
.legal li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.legal li::before {
  content: ""; position: absolute; left: 6px; top: 11px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
}
.legal a:not(.btn):not(.legal__back) { color: var(--accent-2); font-weight: 600; border-bottom: 1px solid rgba(31,95,212,.3); }
.legal a:not(.btn):not(.legal__back):hover { border-color: var(--accent-2); }
.legal__cta { margin-top: 46px; }

/* ---------- Messenger buttons ---------- */
.msgs { margin-top: 18px; }
.msgs__label { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 10px; letter-spacing: .01em; }
.msgs__row { display: flex; flex-wrap: wrap; gap: 9px; }
.msg {
  display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 17px;
  border-radius: var(--r-pill); background: #fff; border: 1.5px solid var(--line-2);
  font-weight: 600; font-size: 15px; color: var(--ink); letter-spacing: -.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s, background .25s;
}
.msg:hover { transform: translateY(-2px); box-shadow: var(--sh-1); border-color: var(--ink-3); }
.msg svg { width: 22px; height: 22px; flex: none; }
.msg img { width: 22px; height: 22px; flex: none; border-radius: 6px; }
.msg--tg svg { color: #2AABEE; }
.msgs--dark .msgs__label { color: rgba(255,255,255,.62); }
.msgs--dark .msg { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); color: #fff; }
.msgs--dark .msg:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.footer .msgs { margin-top: 14px; margin-bottom: 4px; }
/* .footer__contacts a задаёт display:block — возвращаем кнопкам inline-flex, иначе иконка встаёт над подписью */
.footer__contacts .msg { display: inline-flex; height: 42px; padding: 0 14px; font-size: 14px; font-weight: 600; margin-bottom: 0; letter-spacing: -.01em; }
.cta-band .msgs { margin-top: 18px; }

/* ---------- Floating messengers ---------- */
.fab {
  position: fixed; right: 20px; bottom: 22px; z-index: 100;
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s, bottom .3s var(--ease);
}
.fab.in { opacity: 1; visibility: visible; transform: none; }
.fab__btn {
  position: relative; width: 54px; height: 54px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(8,14,20,.18), inset 0 0 0 1px rgba(15,24,32,.06);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.fab__btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 28px rgba(8,14,20,.26); }
.fab__btn svg { width: 28px; height: 28px; }
.fab__btn img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.fab__btn--tg svg { color: #2AABEE; }
.fab__btn span {
  position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: #0f1820; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: -.01em;
  padding: 8px 12px; border-radius: 9px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
}
.fab__btn:hover span { opacity: 1; transform: translateY(-50%); }

/* ---------- Promo ---------- */
.promo {
  position: fixed; left: 20px; bottom: 22px; z-index: 101;
  width: min(370px, calc(100vw - 40px));
  display: flex; gap: 14px; padding: 18px 18px 18px 16px;
  background: #fff; border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(8,14,20,.22);
  animation: promoIn .45s var(--ease);
}
.promo[hidden] { display: none; }
@keyframes promoIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.promo__badge {
  flex: none; width: 56px; height: 56px; border-radius: 14px;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; letter-spacing: -.03em;
  box-shadow: 0 8px 20px rgba(31,95,212,.32);
}
.promo__body { min-width: 0; }
.promo__body b { display: block; font-size: 16px; letter-spacing: -.02em; }
.promo__body p { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.45; }
.promo__body p b { display: inline; color: var(--ink); }
.promo__body .btn { margin-top: 13px; height: 44px; font-size: 15px; }
.promo__close {
  position: absolute; top: 9px; right: 9px; width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; color: var(--ink-3);
  transition: background .2s, color .2s;
}
.promo__close:hover { background: var(--bg-2); color: var(--ink); }
.promo__close svg { width: 15px; height: 15px; }

body.gal-open .fab, body.gal-open .promo { display: none; }

/* ---------- Gallery modal ---------- */
.gal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 28px; }
.gal[hidden] { display: none; }
.gal__backdrop { position: absolute; inset: 0; background: rgba(8,14,20,.62); backdrop-filter: blur(6px); animation: galFade .25s var(--ease); }
.gal__panel {
  position: relative; z-index: 2; width: min(1120px, 100%); max-height: 100%;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); border-radius: var(--r-lg, 22px); box-shadow: 0 40px 90px rgba(8,14,20,.4);
  animation: galIn .32s var(--ease);
}
@keyframes galFade { from { opacity: 0; } }
@keyframes galIn { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.gal__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 24px clamp(20px, 3vw, 34px); border-bottom: 1px solid var(--line); background: #fff;
}
.gal__head h3 { font-size: clamp(21px, 2.4vw, 27px); font-weight: 700; letter-spacing: -.025em; margin-top: 8px; }
.gal__head p { font-size: 14.5px; color: var(--ink-2); margin-top: 7px; max-width: 68ch; }
.gal__close {
  flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line-2);
  display: flex; align-items: center; justify-content: center; color: var(--ink); background: #fff;
  transition: background .2s, border-color .2s;
}
.gal__close:hover { background: var(--bg-2); border-color: var(--ink-3); }
.gal__close svg { width: 20px; height: 20px; }
.gal__body { overflow-y: auto; padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 34px) clamp(24px, 3vw, 34px); }
.gal__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.gal__item {
  position: relative; border: none; padding: 0; cursor: pointer; overflow: hidden;
  border-radius: 14px; background: var(--bg-3); aspect-ratio: 3 / 2; display: block; width: 100%;
  box-shadow: var(--sh-1);
}
.gal__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.gal__item:hover img { transform: scale(1.05); }
.gal__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 12px 11px; text-align: left;
  font-size: 12.5px; line-height: 1.35; color: #fff; font-weight: 500;
  background: linear-gradient(0deg, rgba(8,14,20,.88) 12%, rgba(8,14,20,0) 100%);
}
.gal__cta {
  margin-top: 26px; padding: clamp(22px, 3vw, 30px); border-radius: var(--r);
  background: var(--bg-2); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(22px, 3vw, 36px); align-items: start;
}
.gal__cta-copy h4 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.gal__cta-copy p { font-size: 15px; color: var(--ink-2); margin-top: 9px; }
.gal__phone { display: inline-block; margin-top: 16px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.gal__phone:hover { color: var(--accent-2); }
.gal__phone-note { display: block; font-size: 13px; color: var(--ink-3); margin-top: 5px; }
.gal__form .field + .field { margin-top: 12px; }
.gal__form .btn { margin-top: 16px; }
.gal__form .consent { margin-top: 12px; }
.gal__ok { margin-top: 16px; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-align: center; }
.gal__ok .check { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); display: flex; align-items: center; justify-content: center; }
.gal__ok .check svg { width: 22px; height: 22px; }
.gal__ok b { display: block; font-size: 17px; }
.gal__ok span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 5px; }
body.gal-open { overflow: hidden; }

/* ---------- Быстрая форма заявки ----------
   ВНИМАНИЕ: класс .lead уже занят типографикой абзацев (см. выше),
   поэтому модалка называется .qform — не переименовывать обратно. */
.qform { position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center; padding: 24px; }
.qform[hidden] { display: none; }
.qform__backdrop { position: absolute; inset: 0; background: rgba(8,14,20,.62); backdrop-filter: blur(6px); animation: galFade .25s var(--ease); }
.qform__panel {
  position: relative; z-index: 2; width: min(480px, 100%); max-height: 100%; overflow-y: auto;
  background: var(--bg); border-radius: var(--r-lg, 22px); padding: clamp(24px, 4vw, 34px);
  box-shadow: 0 40px 90px rgba(8,14,20,.4); animation: galIn .32s var(--ease);
}
.qform__panel h3 { font-size: clamp(21px, 2.4vw, 26px); font-weight: 700; letter-spacing: -.025em; margin-top: 10px; }
.qform__desc { font-size: 14.5px; color: var(--ink-2); margin-top: 9px; margin-bottom: 20px; }
.qform__close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 11px;
  border: 1.5px solid var(--line-2); background: #fff; color: var(--ink);
  display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s;
}
.qform__close:hover { background: var(--bg-2); border-color: var(--ink-3); }
.qform__close svg { width: 18px; height: 18px; }
.qform__panel .btn { margin-top: 6px; }
.qform__panel .consent { margin-top: 12px; }
.qform__alt { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.qform__alt button { font: inherit; font-weight: 600; color: var(--accent-2); text-decoration: underline; }
.qform__alt button:hover { color: var(--accent); }
body.qform-open { overflow: hidden; }
body.qform-open .fab, body.qform-open .promo { display: none; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 140; background: rgba(6,10,14,.94); display: flex; align-items: center; justify-content: center; padding: 4vh 6vw; }
.lb[hidden] { display: none; }
.lb__stage { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.lb__img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.lb__bar { display: flex; align-items: baseline; gap: 14px; color: #c8d4dd; font-size: 14px; flex-wrap: wrap; justify-content: center; text-align: center; }
.lb__count { font-family: "JetBrains Mono", monospace; font-size: 13px; color: #7f93a4; flex: none; }
.lb__close, .lb__nav {
  position: absolute; z-index: 2; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.09); color: #fff; border: 1px solid rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.lb__close:hover, .lb__nav:hover { background: rgba(255,255,255,.2); }
.lb__close { top: 22px; right: 22px; }
.lb__close svg { width: 22px; height: 22px; }
.lb__nav svg { width: 26px; height: 26px; }
.lb__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .fab { right: 14px; bottom: 14px; gap: 8px; }
  .fab__btn { width: 48px; height: 48px; }
  .fab__btn svg { width: 25px; height: 25px; }
  .fab__btn img { width: 27px; height: 27px; }
  .fab__btn span { display: none; }
  .promo { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 15px; gap: 12px; }
  .promo__badge { width: 48px; height: 48px; font-size: 15px; border-radius: 12px; }
  /* плашка занимает низ экрана — поднимаем кнопки мессенджеров над ней */
  body.promo-on .fab { bottom: calc(var(--promo-h, 0px) + 26px); }
}
@media (max-width: 900px) {
  .gal { padding: 0; }
  .gal__panel { border-radius: 0; height: 100%; width: 100%; }
  .gal__cta { grid-template-columns: 1fr; }
  .lb { padding: 0; }
  .lb__img { max-height: 70vh; border-radius: 0; }
  .lb__nav--prev { left: 10px; }
  .lb__nav--next { right: 10px; }
  .lb__close { top: 14px; right: 14px; }
}
@media (max-width: 1040px) {
  .seg-grid, .sys-grid { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .diff__top { grid-template-columns: 1fr; }
  .quiz { grid-template-columns: 1fr; }
  .quiz__side { order: 2; }
}
@media (max-width: 1040px) {
  .nav__links, .nav__phone { display: none; }
  .nav__burger { display: flex; }
}
@media (max-width: 860px) {
  .guarantee .grid, .cta-band .grid { grid-template-columns: 1fr; }
  .case, .case:nth-child(even) .case__media { grid-template-columns: 1fr; }
  .case:nth-child(even) .case__media { order: 0; }
  .case__media { order: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }
  .nav .btn--primary { display: none; }
  .seg-grid, .sys-grid,   .trust__grid { grid-template-columns: 1fr; gap: 26px; }
  .cause { grid-template-columns: 1fr; gap: 14px; padding: 24px 0; }
  .cause__n { padding-top: 0; }
  .case__spec { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__card { padding: 24px 20px; }
  .brand img { height: 34px; }
  .footer__brand .brand img { height: 44px; }
  .gal__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gal__item figcaption { font-size: 11px; padding: 20px 8px 8px; }
}
/* ---------- Первый экран: квалификатор по объёму ----------
   Живёт внутри <h1> как продолжение заголовка, поэтому крупные
   размеры заголовка приходится сбрасывать явно. */
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 14px; vertical-align: middle; position: relative; top: -.22em;
  padding: 8px 15px 8px 13px; border-radius: var(--r-pill);
  background: var(--accent-soft); border: 1px solid rgba(31,95,212,.22);
  font-size: clamp(14px, 1.05vw, 16px); font-weight: 600; line-height: 1.2;
  letter-spacing: -.01em; color: var(--accent-2); white-space: nowrap;
}
.hero__badge svg { width: 17px; height: 17px; flex: none; }

/* ---------- Страница «спасибо» ---------- */
.thanks { text-align: left; }
.thanks__check {
  width: 62px; height: 62px; border-radius: 50%; margin-bottom: 22px;
  background: var(--accent-soft); color: var(--accent-2);
  display: flex; align-items: center; justify-content: center;
}
.thanks__check svg { width: 30px; height: 30px; }
.thanks__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.thanks__back {
  display: inline-block; margin-top: 24px; font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  transition: color .2s;
}
.thanks__back:hover { color: var(--accent-2); }
.thanks h1 { font-size: clamp(28px, 3.4vw, 44px); }
.thanks .hero__sub { font-size: 16.5px; }

/* поле, из-за которого не отправилась форма */
.field--err input, .field--err textarea { border-color: #f04438; }
.field--err input:focus, .field--err textarea:focus { box-shadow: 0 0 0 4px rgba(240,68,56,.12); }

/* ---------- Сводка отправленной заявки на странице «спасибо» ---------- */
.recap {
  margin-top: 24px; padding: 18px 20px; border-radius: var(--r-sm);
  background: var(--bg-2); border: 1px solid var(--line);
}
.recap[hidden] { display: none; }
.recap__head b { display: block; font-size: 15px; letter-spacing: -.01em; }
.recap__head span { display: block; font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.recap__list {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 16px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 14.5px;
}
.recap__list dt { color: var(--ink-3); white-space: nowrap; }
.recap__list dd { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.recap__phone { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.recap__fix {
  display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600;
  color: var(--accent-2); border-bottom: 1px solid rgba(31,95,212,.35); transition: color .2s, border-color .2s;
}
.recap__fix:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 560px) {
  .recap__list { grid-template-columns: 1fr; gap: 2px; }
  .recap__list dd { margin-bottom: 8px; }
}

/* на странице «спасибо» карточка плотнее — чтобы сводка помещалась на экран */
.hero__card.thanks { padding: clamp(26px, 3vw, 38px) clamp(24px, 3vw, 40px); }
.thanks .thanks__check { width: 52px; height: 52px; margin-bottom: 16px; }
.thanks .thanks__check svg { width: 26px; height: 26px; }
.thanks .hero__sub { margin-top: 12px; }
.thanks .recap { margin-top: 20px; padding: 16px 18px; }
.thanks .thanks__row { margin-top: 20px; }
.thanks .thanks__back { margin-top: 18px; }
/* последняя строка заголовка и плашка не должны разъезжаться по строкам */
.hero__h1-tail { white-space: normal; }
@media (min-width: 900px) { .hero__h1-tail { white-space: nowrap; } }


@media (max-width: 760px) {
  /* на телефоне форма — главное на экране, поэтому текст над ней ужимаем;
     те же цифры всё равно повторяются в блоке ниже */
  .hero__meta { display: none; }
  .hero__cta { margin-top: 22px; }
  .hero__cta .btn--ghost { display: none; }
  .hero__form { padding: 18px 16px; }
  .hero__form-sub { margin-bottom: 14px; }
}

/* ============================================================
   ВНУТРЕННИЕ СТРАНИЦЫ (объекты, системы, статьи)
   ============================================================ */
.page { padding-top: 0; }
.crumbs { padding: calc(var(--nav-h) + 18px) 0 0; font-size: 13.5px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.crumbs span { margin: 0 2px; }

.page-hero { padding: 26px 0 10px; }
.page-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 46%); gap: clamp(22px, 3vw, 44px); align-items: center; }
.page-hero__inner--solo { grid-template-columns: minmax(0, 860px); justify-content: start; }
.page-hero h1 { font-size: clamp(31px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.028em; margin: 0 0 16px; }
.page-lead { font-size: clamp(16px, 1.35vw, 18.5px); color: var(--ink-2); line-height: 1.62; max-width: 62ch; }
.page-rev { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.page-facts { display: flex; flex-wrap: wrap; gap: 22px; margin: 24px 0 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.page-facts div { display: flex; flex-direction: column; }
.page-facts b { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.page-facts small { font-size: 13px; color: var(--ink-3); }
.page-hero__alt { margin-top: 20px; font-size: 14px; color: var(--ink-3); line-height: 1.55; }
.page-hero__alt a { color: var(--accent-2); font-weight: 600; }

/* Форма в шапке внутренней страницы: за ней нет видео, поэтому плотный фон
   вместо стекла — так текст читается увереннее. */
.hero__form--page {
  background: var(--panel);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  align-self: start;
}

/* Фото объекта полосой под шапкой */
.page-banner { margin: 10px 0 0; }
.page-banner img {
  width: 100%; height: auto; aspect-ratio: 21 / 8; object-fit: cover;
  border-radius: var(--r); display: block;
}
.page-banner figcaption { font-size: 13px; color: var(--ink-3); margin-top: 10px; }
@media (max-width: 760px) {
  .page-banner img { aspect-ratio: 3 / 2; }
}

/* Ссылки внутри текста должны быть видны: до этого они были того же цвета,
   что и абзац, без подчёркивания — читатель их просто не замечал. */
.narrow p a, .narrow li a, .narrow td a, .note a {
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-color: rgba(21, 69, 160, .35);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .15s, text-decoration-color .15s;
}
.narrow p a:hover, .narrow li a:hover, .narrow td a:hover, .note a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}
.narrow .tbl a { font-weight: 600; }

.narrow { max-width: 880px; }
/* Длина строки: 66–72 знака читаются ровно, 85 — уже утомляют.
   Ограничиваем только текст; таблицы и галереи занимают всю ширину. */
.narrow > p, .narrow > ul, .narrow > ol { max-width: 62ch; }
.section--alt { background: var(--bg-2, #f4f7fa); }
.narrow p { margin-bottom: 18px; line-height: 1.7; }
.narrow p:last-child { margin-bottom: 0; }

/* Заголовок раздела внутри статьи не должен спорить с заголовком страницы:
   на главной .h-sec — витринный размер, здесь нужен текстовый. */
.narrow h2.h-sec {
  font-size: clamp(23px, 2.2vw, 31px);
  line-height: 1.22; letter-spacing: -.02em;
  margin: 52px 0 16px;
}
.narrow h2.h-sec:first-child { margin-top: 0; }
.narrow h3 {
  font-size: clamp(18px, 1.5vw, 20px); font-weight: 650;
  line-height: 1.3; letter-spacing: -.01em; margin: 30px 0 10px;
}
.narrow > .scroll-x, .narrow > .tbl, .narrow > .note { margin-bottom: 26px; }
.narrow > *:last-child { margin-bottom: 0; }

.list-num, .list-ok { margin: 0 0 24px; padding-left: 0; list-style: none; counter-reset: li; }
.list-num li, .list-ok li { position: relative; padding-left: 34px; margin-bottom: 14px; line-height: 1.68; }
.list-num li:last-child, .list-ok li:last-child { margin-bottom: 0; }
.list-num li::before {
  counter-increment: li; content: counter(li);
  position: absolute; left: 0; top: 1px; width: 23px; height: 23px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.list-ok li::before {
  content: ''; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}

.tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 24px; }
.tbl th, .tbl td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; vertical-align: top; }
.tbl tbody tr:nth-child(even) td { background: #fbfcfd; }
/* в числовых таблицах последний столбец — цена: не ломаем и равняем вправо */
.tbl--num td:last-child, .tbl--num th:last-child { white-space: nowrap; text-align: right; }
.tbl--num td:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.tbl th { background: var(--ink); color: #fff; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.tbl tr:last-child td { border-bottom: 0; }
/* Полоса прокрутки у таблиц не видна, пока её не тронешь: подсказываем
   тенью у правого края, что строку можно утянуть вбок. */
.scroll-x {
  overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%;
  background:
    linear-gradient(to right, var(--bg) 30%, rgba(251,252,253,0)) left center / 28px 100% no-repeat,
    linear-gradient(to left, var(--bg) 30%, rgba(251,252,253,0)) right center / 28px 100% no-repeat,
    radial-gradient(farthest-side at 0 50%, rgba(15,24,32,.12), transparent) left center / 12px 100% no-repeat,
    radial-gradient(farthest-side at 100% 50%, rgba(15,24,32,.12), transparent) right center / 12px 100% no-repeat;
  background-attachment: local, local, scroll, scroll;
}
.section--alt .scroll-x, .section--tint .scroll-x {
  background-color: transparent;
}

.note { background: var(--accent-soft, #e9f0fc); border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0; padding: 14px 18px; font-size: 14.5px; line-height: 1.62;
  margin-bottom: 24px; }
.note:last-child { margin-bottom: 0; }

.pgal { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 22px; }
.pgal__item { margin: 0; }
.pgal__item img { width: 100%; height: auto; border-radius: 14px; display: block; }
.pgal__item figcaption { font-size: 13px; color: var(--ink-3); margin-top: 10px; line-height: 1.5; }

.page-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 2vw, 26px); margin-top: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.page-form .field { margin-bottom: 14px; }
.page-form textarea { min-height: 62px; resize: vertical; }
.link-more { font-weight: 600; color: var(--accent); }

@media (max-width: 860px) {
  /* На телефоне форма должна быть сразу после вводного абзаца, а не за
     цифрами и телефоном: до неё иначе приходится листать целый экран. */
  .page-hero__inner { display: flex; flex-direction: column; }
  .page-hero__inner > div:first-child { display: contents; }
  .page-hero h1      { order: 1; }
  .page-rev          { order: 1; }
  .page-lead         { order: 2; }
  .hero__form--page  { order: 3; margin-top: 4px; }
  .page-facts        { order: 4; }
  .page-hero__alt    { order: 5; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* строка ссылок на подробные страницы под сеткой сегментов */
.seg-links { margin-top: 18px; font-size: 14.5px; color: var(--ink-3); }
.seg-links a { font-weight: 600; color: var(--accent); }
.seg-links a:hover { color: var(--accent-2); }
.seg-links__soon { display: block; margin-top: 4px; font-size: 13px; }

/* ============================================================
   МЕНЮ РАЗДЕЛОВ (объекты, системы)
   ============================================================ */
.menu { display: flex; align-items: center; gap: 4px; margin-left: 18px; }
.menu__item { position: relative; }
.menu__btn, .menu__link {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; padding: 9px 11px; border-radius: 9px;
  font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; white-space: nowrap;
}
.menu__btn:hover, .menu__link:hover,
.menu__item--open .menu__btn { background: var(--accent-soft); color: var(--accent-2); }
.menu__btn svg { width: 15px; height: 15px; transition: transform .18s; }
.menu__item--open .menu__btn svg { transform: rotate(180deg); }

.menu__drop {
  position: absolute; z-index: 30; top: calc(100% + 8px); left: 0;
  min-width: 290px; list-style: none; margin: 0; padding: 8px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15,24,32,.18);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s;
}
.menu__item--open .menu__drop { opacity: 1; visibility: visible; transform: none; }
.menu__drop a {
  display: block; padding: 9px 12px; border-radius: 9px;
  font-size: 14.5px; color: var(--ink); line-height: 1.35;
}
.menu__drop a:hover { background: var(--bg); color: var(--accent-2); }
.menu__drop a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-2); font-weight: 600; }

.page-meta { margin-top: 18px; font-size: 13px; color: var(--ink-3); line-height: 1.6; }

@media (max-width: 1100px) {
  .menu { display: none; }
}

/* строка быстрых ссылок по объектам: видна там, где выпадающее меню скрыто */
.navlinks { display: none; }
@media (max-width: 1100px) {
  /* шапка стала в две строки: высоту задаём с запасом,
     иначе строка ссылок обрезается, а контент уезжает под неё */
  :root { --nav-h: 114px; }
  .nav { height: auto; min-height: var(--nav-h); align-items: flex-start; padding: 10px 0 8px; }
  .nav__inner { flex-wrap: wrap; gap: 10px 16px; }
  .navlinks {
    display: flex; order: 4; width: 100%; gap: 6px;
    overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
    margin-top: -2px;
  }
  .navlinks::-webkit-scrollbar { display: none; }
  .navlinks a {
    flex: none; font-size: 13.5px; font-weight: 600; white-space: nowrap;
    padding: 7px 12px; border-radius: 999px; background: var(--bg); color: var(--ink-2);
  }
  .navlinks a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-2); }
}

/* ---------- Фокус с клавиатуры ----------
   Обводка нужна тем, кто ходит по сайту табом, и не мешает тем, кто кликает. */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* выделение внутри строк перелинковки: без синтетического начертания */
.seg-links b { font-weight: 700; }
