/* ===== Токены ===== */
:root {
  --ink: #0f1720;          /* графит */
  --ink-2: #16212c;
  --ink-3: #1f2c39;
  --paper: #f4f5f2;        /* бетон светлый */
  --paper-2: #e9ebe6;
  --line: rgba(15, 23, 32, .12);
  --line-dark: rgba(255, 255, 255, .12);
  --text: #18222c;
  --muted: #5b6672;
  --muted-dark: #a3b0bd;
  --brand: #1e7fe0;        /* синий из логотипа */
  --brand-2: #1667b8;
  --hazard: #f5b301;       /* сигнальный жёлтый */
  --radius: 4px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.6 var(--font-body);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--hazard); outline-offset: 3px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.ico { width: 20px; height: 20px; flex: none; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--hazard); color: var(--ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ===== Кнопки ===== */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 2px solid transparent; border-radius: var(--radius);
  font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn--primary:hover::before { transform: translateX(120%); }
.btn--primary:hover { background: var(--brand-2); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.04); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn--ghost-dark { border-color: var(--ink); color: var(--ink); }
.btn--ghost-dark:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* ===== Шапка ===== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: #fff; transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
/* без backdrop-filter: он делает шапку контейнером для fixed-меню и сжимает его до высоты шапки */
.header.is-scrolled, .header.is-open { background: rgba(15, 23, 32, .97); box-shadow: 0 1px 0 var(--line-dark); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand__mark { width: 40px; height: 40px; color: var(--brand); flex: none; }
.brand__text { display: flex; flex-direction: column; font: 800 14px/1.05 var(--font-head); letter-spacing: .04em; }
.brand__text span { font-weight: 600; opacity: .75; letter-spacing: .18em; font-size: 11px; margin-top: 2px; }

.nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99;
  display: flex; flex-direction: column; gap: 4px; padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  background: var(--ink); overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav.is-open { opacity: 1; visibility: visible; transform: none; }
.nav__links { display: flex; flex-direction: column; }
.nav__link {
  display: flex; align-items: baseline; gap: 14px;
  text-decoration: none; font: 700 24px/1.2 var(--font-head); padding: 16px 4px;
  border-bottom: 1px solid var(--line-dark);
  opacity: 0; transform: translateX(-16px); transition: opacity .4s var(--ease), transform .4s var(--ease), color .2s;
}
.nav__link:active, .nav__link:hover { color: var(--hazard); }
.nav__num { font: 600 12px/1 var(--font-body); color: var(--hazard); letter-spacing: .1em; min-width: 22px; }
.nav.is-open .nav__link { opacity: 1; transform: none; }
.nav.is-open .nav__link:nth-child(1) { transition-delay: .05s; }
.nav.is-open .nav__link:nth-child(2) { transition-delay: .1s; }
.nav.is-open .nav__link:nth-child(3) { transition-delay: .15s; }
.nav.is-open .nav__link:nth-child(4) { transition-delay: .2s; }
.nav.is-open .nav__link:nth-child(5) { transition-delay: .25s; }
.nav__extra {
  margin-top: auto; padding-top: 28px; display: grid; gap: 20px;
  opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease) .3s, transform .5s var(--ease) .3s;
}
.nav.is-open .nav__extra { opacity: 1; transform: none; }
.nav__contacts { display: grid; gap: 4px; }
.nav__contacts a, .nav__contacts p {
  display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none;
  font-size: 15px; color: rgba(255,255,255,.85);
}
.nav__contacts a:first-child { font: 700 20px/1.2 var(--font-head); color: #fff; }
.nav__contacts .ico { color: var(--hazard); }
.nav__since { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark); }
.nav__extra .hazard { height: 8px; border-radius: 2px; }

.header__actions { display: flex; align-items: center; gap: 10px; }
.header__phone, .header__cta { display: none; }
.header__phone { align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }

.lang { display: flex; border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.lang button {
  border: 0; background: transparent; padding: 0 10px; height: 34px; min-width: 40px;
  font-size: 13px; font-weight: 600; cursor: pointer; color: rgba(255,255,255,.7);
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); }

.burger {
  width: 44px; height: 44px; display: grid; place-content: center; gap: 5px;
  border: 0; background: transparent; cursor: pointer; padding: 0;
}
.burger span { display: block; width: 24px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Главный экран ===== */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; background: var(--ink); overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 56px;
}
.hero__bg { position: absolute; inset: -40px; will-change: transform; }
.hero__img {
  position: absolute; inset: 0;
  background: url('../images/background.jpg') center 30% / cover no-repeat;
  animation: heroDrift 26s ease-in-out infinite alternate;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 80% 20%, rgba(30,127,224,.18), transparent 60%),
    linear-gradient(180deg, rgba(15,23,32,.6) 0%, rgba(15,23,32,.35) 40%, rgba(15,23,32,.94) 100%);
}
@keyframes heroDrift {
  0%   { transform: scale(1.08) translate3d(0, 0, 0); }
  50%  { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
  100% { transform: scale(1.1) translate3d(1.5%, -2%, 0); }
}
/* строительная пыль */
.hero__dust { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__dust i {
  position: absolute; bottom: -10px; width: var(--s, 3px); height: var(--s, 3px); border-radius: 50%;
  background: rgba(255, 220, 150, .55); filter: blur(.5px);
  animation: dust var(--d, 14s) linear var(--delay, 0s) infinite;
}
@keyframes dust {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  10%  { opacity: .9; }
  100% { transform: translate3d(var(--x, 40px), -110vh, 0); opacity: 0; }
}
.hero__inner { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.85);
}
.eyebrow__dot { width: 8px; height: 8px; background: var(--hazard); box-shadow: 0 0 0 4px rgba(245,179,1,.2); }

.hero__title { font-size: clamp(34px, 6.2vw, 70px); font-weight: 800; letter-spacing: -.02em; max-width: 24ch; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__title .accent { color: var(--hazard); }
.js .hero__title .line > span { transform: translateY(105%); transition: transform 1s var(--ease); }
.js .hero__title .line.accent > span { transition-delay: .12s; }
.is-ready .hero__title .line > span { transform: none; }
.js .hero .eyebrow, .js .hero__lead, .js .hero__cta, .js .stats { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.is-ready .hero .eyebrow { opacity: 1; transform: none; }
.is-ready .hero__lead { opacity: 1; transform: none; transition-delay: .25s; }
.is-ready .hero__cta { opacity: 1; transform: none; transition-delay: .35s; }
.is-ready .stats { opacity: 1; transform: none; transition-delay: .45s; }
.hero__lead { margin-top: 20px; max-width: 56ch; font-size: clamp(16px, 2.2vw, 19px); color: rgba(255,255,255,.82); }
.hero__cta { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 44px;
  background: var(--line-dark); border: 1px solid var(--line-dark);
}
.stats li { background: rgba(15,23,32,.72); padding: 18px 16px; backdrop-filter: blur(6px); }
.stats b { display: block; font: 800 30px/1 var(--font-head); }
.stats span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted-dark); }

.hazard {
  position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: repeating-linear-gradient(-45deg, var(--hazard) 0 14px, var(--ink) 14px 28px);
  background-size: 39.6px 100%;
  animation: hazardMove 1.6s linear infinite;
}
.hazard--static { position: relative; animation-duration: 3s; }
@keyframes hazardMove { to { background-position: 39.6px 0; } }

/* ===== Секции ===== */
.section { padding: 72px 0; }
.section--dark { background: var(--ink); color: #fff; }
.section--alt { background: var(--paper-2); }
.section__head { max-width: 720px; margin-bottom: 40px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
}
.kicker::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.section--dark .kicker { color: var(--hazard); }
.section__title { font-size: clamp(28px, 5vw, 44px); font-weight: 800; letter-spacing: -.015em; }
.section__lead { margin-top: 14px; color: var(--muted); font-size: 17px; }
.section--dark .section__lead { color: var(--muted-dark); }

/* ===== Услуги ===== */
.services { display: grid; gap: 16px; }
.service {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--brand);
  transition: width .4s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(15,23,32,.35); border-color: transparent; }
.service:hover::after { width: 100%; }
.service--main { background: var(--ink); color: #fff; border-color: var(--ink); }
.service--main::after { background: var(--hazard); }
.service__badge {
  align-self: flex-start; margin-bottom: 18px; padding: 6px 10px; border-radius: 2px;
  background: var(--hazard); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.service__icon { width: 52px; height: 52px; color: var(--brand); margin-bottom: 20px; transition: transform .5s var(--ease); }
.service:hover .service__icon { transform: translateY(-4px) rotate(-6deg) scale(1.06); }
.service--main .service__icon { color: var(--hazard); }
.service h3 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.service ul { display: grid; gap: 10px; margin-bottom: 24px; }
.service li { position: relative; padding-left: 20px; color: var(--muted); }
.service--main li { color: var(--muted-dark); }
.service li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--brand); }
.service--main li::before { background: var(--hazard); }
.service__link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; text-decoration: none; color: var(--brand);
}
.service--main .service__link { color: #fff; }
.service__link:hover .ico { transform: translateX(4px); }
.service__link .ico { transition: transform .25s var(--ease); }

/* ===== О компании ===== */
.about { display: grid; gap: 40px; }
.about__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.about__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.05); }
.about__since {
  position: absolute; left: 0; bottom: 0; padding: 18px 22px; background: var(--hazard); color: var(--ink);
}
.about__since b { display: block; font: 800 34px/1 var(--font-head); }
.about__since span { font-size: 13px; font-weight: 600; }
.about__text > p { margin-top: 16px; color: var(--muted-dark); font-size: 17px; }
.about__text > .kicker { margin-top: 0; }
.features { display: grid; gap: 14px; margin-top: 32px; }
.features li {
  display: flex; gap: 14px; padding: 16px; border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: rgba(255,255,255,.03);
}
.features .ico { width: 24px; height: 24px; color: var(--hazard); margin-top: 2px; }
.features b { display: block; font-family: var(--font-head); font-size: 16px; }
.features span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted-dark); }

/* ===== Шаги ===== */
.steps { display: grid; gap: 12px; counter-reset: s; }
.step {
  position: relative; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.step__n { display: block; font: 800 14px/1 var(--font-head); color: var(--brand); letter-spacing: .1em; margin-bottom: 14px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ===== Реквизиты ===== */
.requisites { display: grid; gap: 32px; }
.requisites__head .btn { margin-top: 24px; }
.req { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.req > div { display: grid; gap: 4px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.req > div:last-child { border-bottom: 0; }
.req dt { font-size: 13px; color: var(--muted); }
.req dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.req__copy { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.copy {
  display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line);
  border-radius: var(--radius); background: transparent; cursor: pointer; color: var(--muted);
  transition: color .2s, border-color .2s;
}
.copy:hover { color: var(--brand); border-color: var(--brand); }
.copy .ico { width: 18px; height: 18px; }

/* ===== Контакты ===== */
.contact { display: grid; gap: 40px; }
.contact__list { display: grid; gap: 12px; margin-top: 32px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list .ico {
  width: 44px; height: 44px; padding: 11px; flex: none; color: var(--hazard);
  border: 1px solid var(--line-dark); border-radius: var(--radius);
}
.contact__list span { display: block; font-size: 13px; color: var(--muted-dark); }
.contact__list a, .contact__list p { display: block; font-weight: 600; font-size: 17px; text-decoration: none; overflow-wrap: anywhere; }
.contact__list a { padding: 6px 0; }
.contact__list a:hover { color: var(--hazard); }
.maps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line-dark); border-radius: var(--radius); text-decoration: none; font-size: 14px; font-weight: 600;
  transition: background .2s, border-color .2s;
}
.chip:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }

.form { background: #fff; color: var(--text); border-radius: var(--radius); padding: 28px 20px; border-top: 4px solid var(--hazard); }
.form h3 { font-size: 22px; margin-bottom: 20px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #cfd5da; border-radius: var(--radius);
  background: #fbfbfa; font-size: 16px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background: #fbfbfa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6672' stroke-width='2'/%3E%3C/svg%3E") right 14px center no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(30,127,224,.15); }
.field__err { display: none; color: #c62828; font-size: 13px; }
.field.is-invalid input { border-color: #c62828; }
.field.is-invalid .field__err { display: block; }
.form__note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.form__done { display: flex; gap: 10px; margin-top: 16px; padding: 14px; border-radius: var(--radius); background: #e8f5ec; color: #1b5e33; font-size: 14px; }
.form__done[hidden] { display: none; }
.form__done .ico { color: #1b8a45; }

/* ===== Карта офиса ===== */
.office-map {
  position: relative; margin-top: 56px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-dark); background: var(--ink-2);
  display: flex; flex-direction: column;
}
.office-map__canvas { height: 340px; background: #1a2430; z-index: 0; }
.office-map__canvas .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.5); }
.office-map__hint {
  position: absolute; top: 12px; left: 12px; right: 64px; z-index: 500; width: fit-content; max-width: calc(100% - 76px);
  padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(15,23,32,.85); color: #fff; pointer-events: none; transition: opacity .3s;
}
.office-map.is-active .office-map__hint { opacity: 0; }
.office-card { position: relative; z-index: 2; padding: 22px 20px; background: var(--ink-2); border-top: 4px solid var(--hazard); }
.office-card__label { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hazard); }
.office-card__addr { margin-top: 10px; color: #fff; font: 700 19px/1.35 var(--font-head); }
.office-card__district { margin-top: 4px; color: var(--muted-dark); font-size: 14px; }
.office-card__routes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.btn--ghost-light { border-color: var(--line-dark); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* пин */
.skt-pin { position: relative; width: 56px; height: 56px; }
.skt-pin__pulse { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(245,179,1,.35); animation: pinPulse 2s ease-out infinite; }
.skt-pin__body {
  position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -36px 0 0 -20px;
  background: var(--brand); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  box-shadow: 0 10px 24px rgba(0,0,0,.45); display: grid; place-items: center;
}
.skt-pin__body svg { width: 22px; height: 22px; transform: rotate(45deg); color: #fff; }
@keyframes pinPulse { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.leaflet-container { font-family: var(--font-body); }
.leaflet-control-attribution { font-size: 10px !important; background: rgba(15,23,32,.7) !important; color: var(--muted-dark) !important; }
.leaflet-control-attribution a { color: #fff !important; }
.leaflet-bar a { background: var(--ink) !important; color: #fff !important; border-color: var(--line-dark) !important; width: 36px !important; height: 36px !important; line-height: 36px !important; }
.leaflet-bar a:hover { background: var(--brand) !important; }

/* ===== Подвал ===== */
.footer { position: relative; background: #0a1016; color: var(--muted-dark); font-size: 15px; overflow: hidden; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__cta { background: var(--ink-2); border-bottom: 1px solid var(--line-dark); }
.footer__cta-inner { display: grid; gap: 24px; padding: 48px 0 40px; }
.footer__cta .kicker { color: var(--hazard); }
.footer__cta-title { color: #fff; font-size: clamp(26px, 4.4vw, 40px); font-weight: 800; letter-spacing: -.015em; max-width: 18ch; }
.footer__cta-actions { display: flex; flex-direction: column; gap: 16px; }
.footer__bigphone { display: inline-flex; align-items: center; gap: 12px; color: #fff; font: 800 clamp(22px, 3.4vw, 30px)/1.1 var(--font-head); }
.footer__bigphone .ico { width: 28px; height: 28px; color: var(--hazard); }
.footer__cta .hazard { height: 8px; }

.footer__grid { display: grid; gap: 36px; padding: 56px 0 40px; position: relative; z-index: 1; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer__brand p { max-width: 34ch; }
.footer__badge {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 8px 12px;
  border: 1px solid var(--line-dark); border-radius: var(--radius); font-size: 13px; color: rgba(255,255,255,.85);
}
.footer__col h3 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer__nav { display: grid; gap: 4px; }
.footer__nav a { display: inline-flex; align-items: center; min-height: 36px; position: relative; width: fit-content; }
.footer__nav a::before { content: ""; width: 0; height: 2px; background: var(--hazard); margin-right: 0; transition: width .3s var(--ease), margin .3s var(--ease); }
.footer__nav a:hover::before { width: 14px; margin-right: 10px; }
.footer__contacts { display: grid; gap: 6px; }
.footer__contacts a, .footer__contacts p { display: flex; align-items: flex-start; gap: 10px; min-height: 36px; overflow-wrap: anywhere; }
.footer__contacts .ico { color: var(--hazard); margin-top: 2px; }
.footer__req { margin: 0; display: grid; gap: 12px; }
.footer__req dt { font-size: 12px; }
.footer__req dd { margin: 2px 0 0; color: #fff; font-weight: 600; letter-spacing: .03em; }

.footer__mark {
  font: 800 clamp(48px, 13vw, 180px)/0.85 var(--font-head); letter-spacing: -.03em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.08); text-align: center;
  user-select: none; margin: 0 -2vw; padding-top: 8px;
}
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 20px 0 8px; border-top: 1px solid var(--line-dark); font-size: 13px; position: relative; z-index: 1;
}
.footer__made a { color: #fff; font-weight: 600; border-bottom: 1px solid var(--hazard); padding-bottom: 1px; }
.footer__made a:hover { color: var(--hazard); }
.footer__top { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 600; color: #fff; }
.footer__top .ico { transform: rotate(-90deg); width: 18px; height: 18px; transition: transform .3s var(--ease); }
.footer__top:hover .ico { transform: rotate(-90deg) translateX(3px); }

/* ===== Прелоадер ===== */
.preloader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: var(--ink); color: #fff;
  transition: clip-path .9s cubic-bezier(.7,0,.2,1), visibility 0s .9s;
  clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.preloader__inner { display: grid; justify-items: center; gap: 18px; }
.preloader__mark { width: 72px; height: 72px; }
.pl-box { fill: var(--brand); transform-origin: center; animation: plBox .6s var(--ease) both; }
.pl-b { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: plDraw .7s var(--ease) forwards; }
.pl-b1 { animation-delay: .35s; } .pl-b2 { animation-delay: .5s; } .pl-b3 { animation-delay: .65s; } .pl-ground { animation-delay: .2s; }
@keyframes plBox { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes plDraw { to { stroke-dashoffset: 0; } }
.preloader__name { font: 800 16px/1 var(--font-head); letter-spacing: .08em; opacity: 0; animation: plFade .6s var(--ease) .6s forwards; }
.preloader__name span { font-weight: 600; opacity: .7; letter-spacing: .2em; }
@keyframes plFade { to { opacity: 1; } }
.preloader__bar { width: 160px; height: 6px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; }
.preloader__bar span {
  display: block; height: 100%; width: 0;
  background: repeating-linear-gradient(-45deg, var(--hazard) 0 8px, #b98500 8px 16px);
  animation: plBar 1.1s var(--ease) .2s forwards;
}
@keyframes plBar { to { width: 100%; } }
body.is-loading { overflow: hidden; }

/* ===== Нижняя панель (телефон) ===== */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(15,23,32,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line-dark);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar .btn { min-height: 48px; padding: 0 12px; }

/* ===== Тост ===== */
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 120; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ===== Появление при прокрутке ===== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ===== Планшет ===== */
@media (min-width: 640px) {
  .hero__cta { flex-direction: row; flex-wrap: wrap; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service--main { grid-row: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .req > div { grid-template-columns: 200px 1fr; align-items: center; gap: 16px; }
  .form { padding: 36px 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__cta-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 24px; }
}

/* ===== Десктоп ===== */
@media (min-width: 1024px) {
  :root { --header-h: 84px; }
  .burger, .nav__extra, .nav__num { display: none; }
  .nav__links { flex-direction: row; gap: 4px; }
  .nav__link { opacity: 1; transform: none; }
  .nav {
    position: static; flex-direction: row; gap: 4px; padding: 0; background: none; overflow: visible;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav .nav__link {
    white-space: nowrap;
    font: 500 15px/1 var(--font-body); padding: 10px 10px; border: 0; color: rgba(255,255,255,.8);
    position: relative; transition: color .2s;
  }
  .nav .nav__link::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--hazard);
    transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  }
  .nav .nav__link:hover, .nav .nav__link.is-active { color: #fff; }
  .nav .nav__link:hover::after, .nav .nav__link.is-active::after { transform: scaleX(1); }
  .header__cta { display: inline-flex; }
  .mobile-bar { display: none; }
  .footer { padding-bottom: 24px; }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 48px; }
  .footer__cta-inner { grid-template-columns: 1.2fr 1fr; align-items: end; padding: 72px 0 56px; }
  .footer__cta-actions { justify-content: flex-end; }

  .hero { align-items: center; padding-bottom: 80px; }
  .section { padding: 112px 0; }
  .services { grid-template-columns: 1.2fr 1fr 1fr; }
  .service--main { grid-row: auto; }
  .service { padding: 36px 32px; }
  .about { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 72px; }
  .about__media { aspect-ratio: 4 / 5; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(5, 1fr); gap: 0; }
  .step { border-radius: 0; border-right-width: 0; }
  .step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
  .step:last-child { border-right-width: 1px; border-radius: 0 var(--radius) var(--radius) 0; }
  .step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
  .step.is-in::before { transform: scaleX(1); }
  .requisites { grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
  .contact { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .toast { bottom: 32px; }
  .office-map { margin-top: 80px; display: block; }
  .office-map__canvas { height: 460px; }
  .office-map__hint { top: 16px; left: 50%; right: auto; transform: translateX(-50%); font-size: 13px; white-space: nowrap; max-width: none; }
  .office-card { position: absolute; left: 32px; bottom: 32px; width: 440px; border-radius: var(--radius); box-shadow: 0 24px 60px -20px rgba(0,0,0,.7); }
}

/* на средних ширинах кнопку заявки в шапке прячем (она есть в герое и подвале), телефон — только на широких */
@media (min-width: 1024px) and (max-width: 1239px) {
  .header__cta { display: none; }
  .nav .nav__link { font-size: 14px; padding: 10px 8px; }
}
@media (min-width: 1380px) {
  .header__phone { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero .eyebrow, .js .hero__lead, .js .hero__cta, .js .stats, .js .hero__title .line > span, .nav__link, .nav__extra { opacity: 1; transform: none; }
  .hero__dust { display: none; }
}
.office-map.is-failed .office-map__canvas, .office-map.is-failed .office-map__hint { display: none; }
