/* ==========================================================================
   ASFALT-MSK — asfalt-msk.com
   Единый файл стилей для всех страниц сайта
   ========================================================================== */

:root {
  --bg: #0B0B0C;
  --bg-2: #111214;
  --bg-3: #15171A;
  --card: #17191C;
  --field: #0F1012;
  --footer: #08090A;
  --ink: #EDEBE7;
  --ink-2: #C4C0B8;
  --muted: #B8B4AC;
  --muted-2: #9E9A92;
  --muted-3: #8C8880;
  --muted-4: #6F6B65;
  --amber: #FFC629;
  --amber-hi: #FFDA6B;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .12);
  --tg: #26A5E4;
  --r-sm: 11px;
  --r-md: 14px;
  --r-lg: 20px;
  --maxw: 1320px;
  --pad-x: clamp(14px, 3vw, 24px);
  /* Заголовки и цифры набраны тем же Manrope, что и текст:
     Unbounded слишком «кричит» в крупных кеглях. */
  --font-display: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Unbounded оставлен ровно одному элементу — надписи логотипа. */
  --font-logo: Unbounded, "Trebuchet MS", sans-serif;
  --font-text: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, iframe { max-width: 100%; }
img { display: block; height: auto; }

a { color: var(--amber); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--amber-hi); }

button, input, select, textarea { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.wrap { max-width: var(--maxw); margin: 0 auto; }
.sec { position: relative; overflow: hidden; padding: clamp(48px, 6.5vw, 92px) var(--pad-x); }
.sec--alt { background: var(--bg-2); border-top: 1px solid rgba(255, 255, 255, .06); }
.sec--dark { background: var(--bg); border-top: 1px solid rgba(255, 255, 255, .06); }
.sec--tight { padding-top: clamp(34px, 4.6vw, 64px); padding-bottom: clamp(30px, 4vw, 48px); }

.eyebrow {
  font-size: 12.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
}

.h1 { font-size: clamp(30px, 4.2vw, 55px); line-height: 1.03; letter-spacing: -.03em; }
.h2 { font-size: clamp(25px, 3.2vw, 40px); line-height: 1.08; }
.h3 { font-size: clamp(20px, 2.3vw, 29px); line-height: 1.15; font-weight: 600; }
.accent { color: var(--amber); }

.lead { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 680px; }
.text { font-size: 16px; line-height: 1.65; color: var(--muted); }
.text--narrow { max-width: 78ch; }
.note { font-size: 13.5px; color: var(--muted-3); line-height: 1.6; }
.small { font-size: 14px; color: var(--muted-3); line-height: 1.6; }
.stack { display: flex; flex-direction: column; gap: 15px; }
.mt-1 { margin-top: 14px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 26px; }
.mt-4 { margin-top: clamp(26px, 3.4vw, 40px); }

/* ---------------------------------------------------------------- grids -- */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.grid--stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; }
.grid--split {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
}
.grid--split-center { align-items: center; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------------------------------------------------------------- cards -- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.card--hover:hover { border-color: rgba(255, 198, 41, .4); }
.card__title { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; line-height: 1.3; }
.card__title--amber { color: var(--amber); }
.card__text { font-size: 14.5px; color: var(--muted-2); line-height: 1.55; margin-top: 10px; }

.stat { background: var(--bg-3); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.stat__v {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -.02em;
}
.stat__k { font-size: 13px; color: var(--muted-3); line-height: 1.45; margin-top: 7px; }

.icon-box {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: rgba(255, 198, 41, .1);
  border: 1px solid rgba(255, 198, 41, .28);
  display: grid; place-items: center;
  flex: none;
}
.icon-box svg { fill: var(--amber); }
.icon-box--sm { width: 40px; height: 40px; border-radius: var(--r-sm); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--ink-2);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  padding: 10px 15px;
}
.chip__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); flex: none; }
.chip--amber { background: var(--amber); border-color: var(--amber); color: #0B0B0C; font-weight: 800; }
.pill {
  min-width: 74px; height: 34px; padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 198, 41, .1);
  border: 1px solid rgba(255, 198, 41, .28);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  color: var(--amber); white-space: nowrap; flex: none;
}

.bullets { display: flex; flex-direction: column; gap: 11px; }
.bullet { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.bullet::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber); margin-top: 9px; flex: none;
}
.bullets--boxed {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 22px 24px; margin-top: 16px;
}

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; cursor: pointer;
  font-weight: 800; font-size: 15px;
  padding: 16px 22px;
  border-radius: 13px;
  transition: background .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease;
  text-align: center;
}
.btn--primary { background: var(--amber); color: #0B0B0C; }
.btn--primary:hover { background: var(--amber-hi); color: #0B0B0C; }
.btn--ghost { background: transparent; color: var(--amber); border: 1px solid rgba(255, 198, 41, .45); }
.btn--ghost:hover { background: rgba(255, 198, 41, .1); color: var(--amber); }
.btn--line { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn--line:hover { border-color: var(--amber); color: var(--amber); }
.btn--block { width: 100%; padding: 18px; font-size: 16px; }
.btn--tg { background: var(--tg); color: #fff; }
.btn--max { background: linear-gradient(120deg, #4A90E2, #9B59D6); color: #fff; }
.btn--tg:hover, .btn--max:hover { color: #fff; opacity: .88; }

.shine { position: relative; overflow: hidden; }
.shine::after {
  content: ""; position: absolute; inset: 0; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
  animation: shine 3.2s linear infinite;
}

/* --------------------------------------------------------------- header -- */
.topbar {
  display: block; padding: 10px 14px; line-height: 1.45;
  background: var(--amber); color: #0B0B0C;
  font-size: clamp(11.5px, 2.6vw, 13.5px); font-weight: 700; text-align: center;
}
.topbar__dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #0B0B0C; margin-right: 9px; vertical-align: middle; animation: floaty 2.4s ease-in-out infinite; }

.header {
  position: sticky; top: 0; z-index: 80;
  backdrop-filter: blur(14px);
  background: rgba(11, 11, 12, .9);
  border-bottom: 1px solid var(--line);
}
.header__row {
  max-width: var(--maxw); margin: 0 auto;
  padding: 12px var(--pad-x);
  display: flex; align-items: center; gap: 14px; flex-wrap: nowrap;
}
.logo { display: flex; align-items: center; gap: 11px; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); opacity: .92; }
.logo__mark {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  background: var(--bg-3); border: 1px solid var(--line-2);
  display: grid; place-items: center; flex: none; overflow: hidden;
}
.logo__mark svg path { fill: var(--amber); }
.logo__text { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; flex: none; }
.logo__name { font-family: var(--font-logo); font-weight: 800; font-size: clamp(14px, 3vw, 17.5px); letter-spacing: .01em; }
.logo__sub { font-size: clamp(8px, 1.6vw, 9.2px); letter-spacing: .22em; text-transform: uppercase; color: var(--muted-3); margin-top: 5px; }

.nav {
  display: flex; gap: clamp(9px, 1.1vw, 20px);
  margin: 0 auto; justify-content: center;
  font-size: clamp(12.5px, .95vw, 14.5px); font-weight: 600;
  flex: 1 1 auto; white-space: nowrap; min-width: 0; overflow: hidden;
}
.nav a { color: var(--ink-2); padding-bottom: 5px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--amber); }
.nav a.is-active { color: var(--amber); border-bottom-color: var(--amber); }

.header__cta { display: flex; align-items: center; gap: 14px; flex: none; }
.header__phone { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; color: var(--ink); }
.header__phone:hover { color: var(--ink); }
.header__phone b { font-family: var(--font-display); font-size: clamp(14px, 1.15vw, 16px); font-weight: 600; white-space: nowrap; }
.header__phone span { font-size: 11px; color: var(--muted-3); }

.burger-zone { display: none; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.icon-btn {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; flex: none; padding: 0;
  border: 1px solid var(--line-2); background: #1B1D20; cursor: pointer;
}
.icon-btn--amber { background: var(--amber); border-color: var(--amber); }
.burger { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, width .2s ease;
}
.burger span:nth-child(2) { width: 14px; }
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.drawer {
  display: none; overflow: hidden;
  max-height: 0; opacity: 0;
  background: #0F1113;
  transition: max-height .32s ease, opacity .25s ease;
}
.drawer.is-open { max-height: 680px; opacity: 1; border-top: 1px solid var(--line); }
.drawer__inner { display: flex; flex-direction: column; gap: 2px; padding: 8px 16px 18px; }
.drawer a {
  padding: 15px 4px; border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: var(--ink); font-size: 16.5px; font-weight: 700;
}
.drawer a:hover { color: var(--amber); }
.drawer a.is-active { color: var(--amber); }
.drawer__phone { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--amber); padding: 18px 4px 6px; border: 0; }
.drawer__note { font-size: 13px; color: var(--muted-3); padding: 0 4px 14px; }
.drawer__cta { border: 0; background: var(--amber); color: #0B0B0C; border-radius: 13px; font-weight: 800; font-size: 16px; padding: 17px; text-align: center; }
.drawer__cta:hover { color: #0B0B0C; }

/* ----------------------------------------------------------------- hero -- */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 5vw, 76px) var(--pad-x) clamp(34px, 4.4vw, 60px); }
.dashes {
  position: absolute; left: -10%; right: -10%; height: 10px;
  background-image: repeating-linear-gradient(90deg, rgba(255, 198, 41, .45) 0 70px, transparent 70px 190px);
  animation: dashmove 7s linear infinite;
}
.dashes--bottom { bottom: 0; }
.dashes--top { top: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted-3); }
.crumbs > * { flex: none; }
.crumbs a { color: var(--muted-3); }
.crumbs a:hover { color: var(--amber); }
.crumbs span:last-child { color: var(--ink-2); }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--bg-3); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px; padding: 9px 15px;
  font-size: 12.5px; color: var(--ink-2); font-weight: 600;
}

/* ------------------------------------------------------------ forms ----- */
.field {
  width: 100%;
  background: var(--field);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 16px;
  color: var(--ink);
  font-size: 16px;
}
.field:focus { outline: none; border-color: rgba(255, 198, 41, .55); }
.field::placeholder { color: #6F6B65; }
textarea.field { resize: vertical; }
.form-box { background: var(--card); border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; padding: clamp(22px, 3vw, 32px); }
.form-box__title { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.form-grid { display: flex; flex-direction: column; gap: 14px; }
.form-ok { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.form-ok__mark { width: 52px; height: 52px; border-radius: var(--r-md); background: var(--amber); display: grid; place-items: center; }
.is-hidden { display: none !important; }

/* ------------------------------------------------------------ services -- */
.svc { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; transition: border-color .2s ease; }
.svc:hover { border-color: rgba(255, 198, 41, .4); }
.svc__head { display: flex; align-items: center; gap: 14px; }
.svc__name { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.svc__text { font-size: 14.5px; color: var(--muted-2); line-height: 1.6; margin-top: 14px; }
.svc__price { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--amber); margin-top: 18px; }
.svc__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ------------------------------------------------------------- process -- */
.step { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.step__n { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: rgba(255, 198, 41, .35); line-height: 1; }
.step__title { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; margin-top: 14px; line-height: 1.3; }
.step__text { font-size: 14.5px; color: var(--muted-2); line-height: 1.55; margin-top: 9px; }

/* ----------------------------------------------------------------- faq --- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; cursor: pointer;
  background: transparent; border: 0; color: var(--ink);
  font-size: 16.5px; font-weight: 700; line-height: 1.4;
  padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start; justify-content: space-between;
}
.faq__q:hover { color: var(--amber); }
.faq__sign { color: var(--amber); font-size: 22px; line-height: 1; flex: none; transition: transform .25s ease; }
.faq__item.is-open .faq__sign { transform: rotate(45deg); }
.faq__a { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .3s ease, opacity .25s ease; }
.faq__item.is-open .faq__a { max-height: 620px; opacity: 1; }
.faq__a p { font-size: 15.5px; color: var(--muted-2); line-height: 1.65; padding: 0 24px 24px; }

/* ---------------------------------------------------------- portfolio --- */
.work { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.work__media { position: relative; background: var(--field); border-bottom: 1px solid rgba(255, 255, 255, .07); aspect-ratio: 4 / 3; }
.work__media img { width: 100%; height: 100%; object-fit: cover; }
.work__ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: 20px; text-align: center;
  font-size: 13px; color: var(--muted-4); line-height: 1.5;
}
.work__tag {
  position: absolute; left: 12px; top: 12px;
  background: rgba(11, 11, 12, .86); border: 1px solid rgba(255, 198, 41, .35);
  color: var(--amber); border-radius: 999px; padding: 7px 12px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.work__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.work__title { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; line-height: 1.3; }
.work__text { font-size: 14px; color: var(--muted-2); line-height: 1.55; }
.work__specs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 6px; }
.work__spec { font-size: 12.5px; color: var(--ink-2); background: var(--field); border: 1px solid rgba(255, 255, 255, .09); border-radius: 999px; padding: 7px 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; }
.filter {
  padding: 12px 17px; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 600;
  background: var(--card); color: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.filter:hover { border-color: rgba(255, 198, 41, .45); color: var(--amber); }
.filter.is-active { background: var(--amber); border-color: var(--amber); color: #0B0B0C; font-weight: 800; }

/* ----------------------------------------------------------- documents -- */
.doc { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(26px, 3vw, 48px); align-items: start; }
.doc__aside { position: sticky; top: 150px; }
.toc { background: var(--card); border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--r-lg); padding: 24px; }
.toc__title { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-3); font-weight: 800; }
.toc__list { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.toc__list a { display: flex; gap: 10px; padding: 9px 0; font-size: 14px; color: var(--muted); line-height: 1.4; }
.toc__list a:hover { color: var(--amber); }
.toc__list b { color: var(--amber); flex: none; }
.aside-cta { background: var(--amber); color: #0B0B0C; border-radius: var(--r-lg); padding: 22px 24px; margin-top: 14px; }
.aside-cta h3 { font-size: 16px; line-height: 1.25; }
.aside-cta p { font-size: 14px; line-height: 1.5; margin: 9px 0 14px; opacity: .85; }
.aside-cta a { display: inline-block; background: #0B0B0C; color: var(--amber); font-weight: 800; font-size: 14.5px; padding: 14px 18px; border-radius: 12px; }
.aside-cta a:hover { opacity: .85; color: var(--amber); }
.doc__body { display: flex; flex-direction: column; gap: clamp(26px, 3vw, 40px); min-width: 0; }
.doc__sec { scroll-margin-top: 160px; }
.doc__sec-head { display: flex; gap: 14px; align-items: baseline; }
.doc__sec-n { font-family: var(--font-display); font-size: 13px; font-weight: 800; color: var(--amber); flex: none; }
.doc__sec .text { margin-top: 16px; }

/* ---------------------------------------------------------------- map ---- */
.map { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); background: var(--card); min-height: 340px; flex: 1; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }

.contact-tile { display: flex; align-items: center; gap: 16px; background: var(--amber); color: #0B0B0C; border-radius: 18px; padding: 22px 24px; }
.contact-tile:hover { background: var(--amber-hi); color: #0B0B0C; }
.contact-tile__label { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
.contact-tile__phone { font-family: var(--font-display); font-size: clamp(19px, 2.4vw, 25px); font-weight: 700; letter-spacing: -.02em; margin-top: 5px; white-space: nowrap; }
.contact-card { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.contact-card__label { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-3); }
.contact-card__value { font-size: 15px; color: var(--ink); line-height: 1.5; margin-top: 5px; font-weight: 600; }

/* -------------------------------------------------------------- footer -- */
.footer { background: var(--footer); border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 60px) var(--pad-x) 26px; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 40px; }
.footer__logo-mark { width: 54px; height: 54px; border-radius: var(--r-md); background: var(--amber); display: grid; place-items: center; flex: none; }
.footer__logo-mark svg path { fill: #0B0B0C; }
.footer__col-title { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); font-weight: 700; }
.footer__links { display: flex; flex-direction: column; margin-top: 12px; font-size: 14.5px; }
.footer__links a { color: var(--muted); padding: 11px 0; }
.footer__links a:hover { color: var(--amber); }
.footer__links a.is-active { color: var(--amber); font-weight: 700; }
.footer__list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.footer__phone { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.footer__phone:hover { color: var(--amber); }
.footer__social { display: flex; align-items: center; gap: 9px; margin-top: 22px; }
.soc { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; overflow: hidden; }
.soc:hover { opacity: .82; }
.soc--tg { background: var(--tg); }
.footer__bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: 12.5px; color: var(--muted-4);
}
.footer__bottom a { color: var(--muted-4); padding: 10px 0; }
.footer__bottom a:hover { color: var(--amber); }
.footer__legal { display: flex; gap: 8px 20px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- dock -- */
.dock { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.dock a { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); overflow: hidden; }
.dock a:hover { opacity: .88; }
.dock__call { background: var(--amber); }
.dock__tg { background: var(--tg); }

.mobbar {
  display: none; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 95;
  gap: 8px; padding: 8px; border-radius: 17px;
  background: rgba(15, 17, 19, .94); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
}
.mobbar__call { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; border-radius: 13px; background: var(--amber); color: #0B0B0C; font-weight: 800; font-size: 15px; }
.mobbar__call:hover { color: #0B0B0C; }
.mobbar__icon { width: 52px; height: 50px; border-radius: 13px; display: grid; place-items: center; flex: none; overflow: hidden; }
.spacer { height: 0; }

/* ----------------------------------------------------------- calculator -- */
.calc { background: var(--card); border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; padding: clamp(22px, 3vw, 32px); }
.calc__label { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-3); }
.calc__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px; margin-top: 12px; }
.calc__opt {
  text-align: left; cursor: pointer; padding: 15px 16px; border-radius: 13px;
  background: var(--field); border: 1px solid var(--line-2); color: var(--ink);
  font-size: 14.5px; font-weight: 700; line-height: 1.3;
  transition: border-color .18s ease, background .18s ease;
}
.calc__opt span { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted-3); margin-top: 6px; }
.calc__opt:hover { border-color: rgba(255, 198, 41, .5); }
.calc__opt.is-active { background: rgba(255, 198, 41, .12); border-color: var(--amber); }
.calc__result { background: var(--field); border: 1px solid rgba(255, 198, 41, .3); border-radius: 18px; padding: 24px; margin-top: 20px; }
.calc__sum { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 38px); font-weight: 800; color: var(--amber); letter-spacing: -.02em; line-height: 1.1; }
.calc__rows { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.calc__row { display: flex; justify-content: space-between; gap: 14px; font-size: 14.5px; color: var(--muted); border-bottom: 1px dashed rgba(255, 255, 255, .1); padding-bottom: 9px; }
.calc__row b { color: var(--ink); white-space: nowrap; }

/* -------------------------------------------------------------- effects -- */
@keyframes dashmove { from { background-position-x: 0; } to { background-position-x: 190px; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes shine { 0% { transform: translateX(-140%); } 100% { transform: translateX(360%); } }
@keyframes pulsering { 0% { transform: scale(.85); opacity: .55; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------------------------------------------------------- responsive -- */
@media (max-width: 1200px) {
  .nav, .header__cta, .dock { display: none !important; }
  .burger-zone { display: flex; }
  .drawer { display: block; }
  .mobbar { display: flex; }
  .spacer { height: 84px; }
}

@media (max-width: 1000px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc__aside { position: static; }
}

@media (max-width: 560px) {
  .card, .svc, .step { padding: 20px; }
  .faq__q { padding: 18px 18px; font-size: 15.5px; }
  .faq__a p { padding: 0 18px 20px; }
}

@media print {
  .header, .topbar, .dock, .mobbar, .drawer, .spacer { display: none !important; }
  body { background: #fff; color: #111; }
}

/* ------------------------------------------------------------ формы: ошибка -- */
.form-error {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(226, 87, 76, .45);
  background: rgba(226, 87, 76, .10);
  color: #FFB4AD;
  font-size: 13.5px;
  line-height: 1.45;
}

/* ========================================================= пропорции сеток == */
/* auto-fit подбирал число колонок «сколько влезет»: шесть карточек вставали
   как 4 + 2, четыре — как 3 + 1. Ниже число колонок задано явно, чтобы
   последний ряд нигде не оставался с одиноким элементом.
   Все запросы — только min-width, иначе между max-width: 1199px и
   min-width: 1200px остаётся щель на дробных ширинах экрана. */

/* Четыре показателя — 2 × 2: блоки компактные и помещаются даже на телефоне. */
@media (min-width: 400px) {
  .grid--stats:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Три карточки: либо три в ряд, либо одна под другой.
   На планшете auto-fit давал 2 + 1 — третья висела в пустом ряду. */
.grid--3:has(> :nth-child(3):last-child) {
  grid-template-columns: minmax(0, 1fr);
}

/* Четыре карточки: 2 × 2 ровнее, чем 3 + 1. */
@media (min-width: 561px) {
  .grid--3:has(> :nth-child(4):last-child),
  .grid--4:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1001px) {
  /* Ровно три в ряд: шесть карточек → 3 + 3, три → один ряд. */
  .grid--3,
  .grid--3:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }

  /* Заголовок героя занимает половину ширины страницы,
     поэтому 55px там читается как «кричит». */
  .hero .grid--split .h1 { font-size: clamp(34px, 3.1vw, 44px); }
}

@media (min-width: 1200px) {
  /* На широком экране четыре элемента помещаются в один ряд. */
  .grid--3:has(> :nth-child(4):last-child),
  .grid--4:has(> :nth-child(4):last-child),
  .grid--stats:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Но показатели внутри узкой колонки героя — по-прежнему 2 × 2. */
  .grid--split .grid--stats:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(2, 1fr);
  }
}
