/* ТОО «MEDIA Информ Плюс» — сайт-визитка. Одна светлая тема, цвета — только через токены. */
:root {
  --bg: #F4F8FD;
  --surface: #FFFFFF;
  --surface-2: #EEF3FA;
  --ink: #0F2142;
  --ink-2: #44567A;
  --ink-3: #74849F;
  --line: #DCE6F3;
  --line-2: #C9D7EA;
  --brand: #27449E;
  --brand-2: #2B60A8;
  --brand-3: #4F86C9;
  --brand-soft: #E9F0FB;
  --brand-ink: #1C3480;
  --ok: #1F8A5B;
  --ok-soft: #E4F4EC;
  --err: #C23B3B;
  --wa: #25D366;
  --tg: #2AABEE;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Manrope", "Onest", system-ui, sans-serif;

  --fs-xs: 12.5px;
  --fs-sm: 14.5px;
  --fs: 16.5px;
  --fs-lg: 18.5px;
  --fs-xl: 22px;
  --fs-h3: 21px;
  --fs-h2: clamp(28px, 2.2vw + 14px, 42px);
  --fs-h1: clamp(34px, 3.4vw + 14px, 62px);

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 33, 66, .05), 0 2px 8px rgba(15, 33, 66, .04);
  --shadow: 0 2px 6px rgba(15, 33, 66, .05), 0 12px 32px rgba(15, 33, 66, .07);
  --shadow-lg: 0 24px 64px rgba(15, 33, 66, .18);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --sec: clamp(64px, 7vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 28px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--fs)/1.65 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0; letter-spacing: -.015em; line-height: 1.18; }
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -.025em; line-height: 1.06; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-3) 70%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-soft); color: var(--brand-ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.fill { fill: currentColor; stroke: none; }

/* ---------- Кнопки ---------- */
.btn {
  --b: var(--brand); --c: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px; border-radius: 12px; border: 1px solid var(--b);
  background: var(--b); color: var(--c); cursor: pointer;
  font: 700 14px/1.2 var(--font-head); letter-spacing: .06em; text-transform: uppercase; text-align: center;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--b) 22%, transparent);
}
.btn:hover { --b: var(--brand-ink); color: var(--c); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.light { --b: #fff; --c: var(--brand); box-shadow: 0 10px 28px rgba(15, 33, 66, .14); }
.btn.light:hover { --b: #fff; --c: var(--brand-ink); }
.btn.ghost { background: transparent; color: var(--brand); border-color: var(--line-2); box-shadow: none; }
.btn.ghost:hover { border-color: var(--brand); background: var(--surface); color: var(--brand-ink); }
.btn.sm { min-height: 42px; padding: 10px 18px; font-size: 12.5px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn .ic { width: 18px; height: 18px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.chip-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
  font: 600 14px/1 var(--font); cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.chip-btn:hover { border-color: var(--brand-3); color: var(--brand); }
.chip-btn .ic { width: 18px; height: 18px; }
.chip-btn.wa .ic { color: var(--wa); }
.chip-btn.tg .ic { color: var(--tg); }
.chip-btn.ig .ic { color: #D6409F; }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; padding: 12px 0 0; pointer-events: none; }
.header .bar {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; gap: 22px; height: var(--header-h); padding: 0 14px 0 22px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, border-color .25s;
}
.header.scrolled .bar { box-shadow: var(--shadow); border-color: var(--line-2); }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; min-width: 0; }
.nav a {
  padding: 10px 8px; border-radius: 8px; color: var(--ink); white-space: nowrap;
  font: 700 12.5px/1 var(--font-head); letter-spacing: .07em; text-transform: uppercase;
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--brand); background: var(--brand-soft); }
.header .tools { display: flex; align-items: center; gap: 10px; flex: none; }
.header .btn { white-space: nowrap; }
.h-phone { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.h-phone b { font: 800 16px/1.2 var(--font-head); letter-spacing: -.01em; }
.h-phone span { font-size: 12px; color: var(--ink-3); }
.h-phone:hover b { color: var(--brand); }
.burger {
  display: none; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; align-items: center; justify-content: center; color: var(--ink);
}
.burger .ic { width: 22px; height: 22px; }

/* Общий номер виден в шапке на любой ширине: уже 1360 px меню уходит в «бургер»,
   а на телефонах номер встаёт на место кнопки «Связаться» (запись — в первом экране и в нижней панели). */
@media (max-width: 1360px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header .tools { margin-left: auto; }
}
@media (max-width: 640px) { .header .btn-contact { display: none; } }
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .header { padding-top: 8px; }
  .header .bar { padding: 0 8px 0 14px; gap: 10px; border-radius: 14px; }
  .logo img { height: 34px; }
  .h-phone b { font-size: 15px; }
  .h-phone span { font-size: 11.5px; }
  .burger { width: 44px; height: 44px; }
}
@media (max-width: 359px) {
  .header .bar { padding: 0 6px 0 10px; gap: 8px; }
  .logo img { height: 28px; }
  .h-phone b { font-size: 14px; }
  .burger { width: 40px; height: 40px; }
}

/* Мобильное меню */
.mnav {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column;
  background: var(--surface); padding: 16px var(--gutter) 24px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
}
.mnav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease); }
.mnav .top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.mnav .top img { height: 36px; }
.mnav nav { display: flex; flex-direction: column; margin: 20px 0; border-top: 1px solid var(--line); }
.mnav nav a { padding: 16px 2px; border-bottom: 1px solid var(--line); color: var(--ink); font: 700 19px/1.2 var(--font-head); display: flex; justify-content: space-between; align-items: center; }
.mnav nav a .ic { color: var(--ink-3); }
.mnav .foot { margin-top: auto; display: grid; gap: 12px; }
.mnav .foot a.tel { font: 800 22px/1.2 var(--font-head); color: var(--ink); }
.mnav .foot small { color: var(--ink-3); font-size: var(--fs-sm); }

/* ---------- Первый экран ---------- */
.hero { position: relative; margin-top: calc(-1 * (var(--header-h) + 12px)); padding-top: calc(var(--header-h) + 12px); overflow: hidden; }
.hero .bg { position: absolute; inset: 0; z-index: -2; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 40%; animation: heroZoom 18s var(--ease) both; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(244, 248, 253, .97) 0%, rgba(244, 248, 253, .9) 32%, rgba(244, 248, 253, .45) 55%, rgba(244, 248, 253, 0) 72%),
    linear-gradient(0deg, var(--bg) 0%, rgba(244, 248, 253, 0) 22%);
}
.hero .inner { min-height: clamp(560px, 74vh, 760px); display: flex; flex-direction: column; justify-content: center; padding: 56px 0 132px; }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { margin-top: 22px; max-width: 34em; font-size: clamp(17px, .5vw + 14px, 20px); line-height: 1.6; color: var(--ink-2); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero .enter > * { animation: up .9s var(--ease) both; }
.hero .enter > *:nth-child(2) { animation-delay: .08s; }
.hero .enter > *:nth-child(3) { animation-delay: .16s; }
.hero .enter > *:nth-child(4) { animation-delay: .24s; }
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  font: 700 12.5px/1.3 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }

@media (max-width: 760px) {
  .hero .bg img { object-position: 78% 30%; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(244, 248, 253, .96) 0%, rgba(244, 248, 253, .9) 46%, rgba(244, 248, 253, .55) 70%, rgba(244, 248, 253, .2) 100%),
      linear-gradient(0deg, var(--bg) 0%, rgba(244, 248, 253, 0) 18%);
  }
  .hero .inner { min-height: 0; padding: 40px 0 96px; }
  .hero .actions .btn { flex: 1 1 100%; }
}

/* Плашки-факты под первым экраном */
.facts { position: relative; z-index: 2; margin-top: -84px; }
.facts .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fact {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; min-height: 108px; padding: 20px 22px;
  border-radius: var(--r-lg); color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 55%, var(--brand-3) 130%);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--brand) 26%, transparent);
}
.fact::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.fact .ic { width: 30px; height: 30px; stroke-width: 1.6; opacity: .95; }
.fact b { display: block; font: 800 17px/1.25 var(--font-head); }
.fact span { display: block; font-size: var(--fs-sm); line-height: 1.4; opacity: .86; margin-top: 3px; }
@media (max-width: 1020px) { .facts .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .facts { margin-top: -64px; }
  .facts .grid { gap: 10px; }
  .fact { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; padding: 16px; }
  .fact .ic { width: 26px; height: 26px; }
  .fact b { font-size: 15.5px; }
  .fact span { font-size: 13px; }
}

/* ---------- Секции ---------- */
.section { padding: var(--sec) 0; }
.section.tight { padding-top: calc(var(--sec) * .6); }
.section.white { background: var(--surface); }
.section.soft { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.head.center .eyebrow { align-self: center; }
.head p { color: var(--ink-2); font-size: var(--fs-lg); line-height: 1.6; }
.sub { font: 800 clamp(21px, .8vw + 15px, 27px)/1.25 var(--font-head); letter-spacing: -.01em; margin-bottom: 22px; }
.block + .block, .about + .block { margin-top: clamp(56px, 6vw, 88px); }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-sm); }

/* Направления */
.dirs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.dir {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.dir:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.dir .ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.dir .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.dir:hover .ph img { transform: scale(1.04); }
.dir .num {
  position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px;
  border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--brand);
  font: 800 12px/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase;
}
.dir .num .ic { width: 16px; height: 16px; }
.dir .body { display: flex; flex-direction: column; gap: 14px; padding: 24px 26px 26px; flex: 1; }
.dir h3 { font-size: 24px; }
.dir .desc { color: var(--ink-2); }
.ticks { list-style: none; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 30px; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2327449E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.dir .ticks { font-size: var(--fs-sm); color: var(--ink); }
.spec { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.spec .who { display: flex; align-items: center; gap: 12px; }
.ava {
  width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-3)); color: #fff;
  font: 800 16px/1 var(--font-head); overflow: hidden;
}
.ava img { width: 100%; height: 100%; object-fit: cover; }
.ava .ic { width: 22px; height: 22px; stroke-width: 2; }
.spec .who b { display: block; font: 700 15.5px/1.3 var(--font-head); }
.spec .who > div > span { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.35; }
.spec .addr { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.spec .addr .ic { width: 18px; height: 18px; color: var(--brand); }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 1020px) { .dirs { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin: 0 auto; } }

/* О компании */
.about { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.about .text { display: grid; gap: 18px; font-size: var(--fs-lg); line-height: 1.7; color: var(--ink-2); }
.about .text p:first-child { color: var(--ink); font-size: clamp(19px, .5vw + 16px, 22px); line-height: 1.55; font-weight: 500; }
.about .pic { position: relative; }
.about .pic img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow); }
.badge {
  position: absolute; left: -22px; bottom: 26px; display: flex; align-items: center; gap: 14px; max-width: 300px;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.badge .yr { font: 800 34px/1 var(--font-head); color: var(--brand); letter-spacing: -.03em; }
.badge span { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.clients {
  margin-top: 8px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px;
  border-radius: var(--r-lg); background: var(--brand-soft); color: var(--brand-ink); font-size: var(--fs);
}
.clients .ic { width: 26px; height: 26px; margin-top: 1px; }
@media (max-width: 900px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .badge { left: 12px; bottom: 12px; right: 12px; max-width: none; }
}

/* Почему мы */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.why li {
  list-style: none; display: flex; flex-direction: column; gap: 14px; padding: 22px; min-height: 150px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .25s, transform .25s var(--ease);
}
.why li:hover { border-color: var(--brand-3); transform: translateY(-2px); }
.why .ic-box { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.why .ic-box .ic { width: 23px; height: 23px; }
.why b { font: 700 16.5px/1.35 var(--font-head); }
@media (max-width: 1020px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why { grid-template-columns: minmax(0, 1fr); gap: 8px; } .why li { flex-direction: row; align-items: center; padding: 12px 14px; min-height: 0; gap: 14px; } .why b { font-size: 15.5px; } .why .ic-box { width: 40px; height: 40px; flex: none; } }

/* Оценка */
.objects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.obj { padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.obj .ic-box { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-3)); }
.obj .ic-box .ic { width: 26px; height: 26px; }
.obj b { font: 700 17px/1.3 var(--font-head); }
.obj p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; }
.obj.wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
.obj.wide .t { padding: 24px; display: grid; gap: 12px; align-content: start; }
.obj.wide img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
.obj.ask { background: var(--brand-soft); border-color: transparent; }
.obj.ask .btn { justify-self: start; margin-top: 4px; }
@media (max-width: 1020px) { .objects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .objects { grid-template-columns: minmax(0, 1fr); }
  .obj.wide { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .obj.wide img { min-height: 0; aspect-ratio: 16 / 9; order: -1; }
}

.purposes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px; list-style: none; }
.purposes li {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); line-height: 1.5;
}
.purposes .n { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font: 800 13px/1 var(--font-head); }
@media (max-width: 1020px) { .purposes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .purposes { grid-template-columns: minmax(0, 1fr); } .purposes li { padding: 12px 0; } }

.callout {
  display: flex; align-items: center; gap: 24px; justify-content: space-between; flex-wrap: wrap;
  margin-top: 28px; padding: 26px 30px; border-radius: var(--r-xl); color: #fff;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 70%, var(--brand-3) 140%);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--brand) 24%, transparent);
}
.callout p { max-width: 720px; font-size: var(--fs-lg); line-height: 1.55; }
.callout p b { font-weight: 700; }
.callout.soft { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
@media (max-width: 640px) { .callout { padding: 22px; } .callout .btn { width: 100%; } }

.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.who-card { padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.who-card .ic-box { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.who-card .ic-box .ic { width: 22px; height: 22px; }
.who-card p { line-height: 1.55; }
@media (max-width: 900px) { .who-grid { grid-template-columns: minmax(0, 1fr); } .who-card { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; } }

/* Документы — вкладки */
.tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 22px; max-width: 100%; overflow-x: auto; }
.tabs button {
  border: 0; background: transparent; padding: 12px 18px; border-radius: 10px; cursor: pointer; white-space: nowrap;
  font: 700 14.5px/1.2 var(--font-head); color: var(--ink-2); transition: background .2s, color .2s, box-shadow .2s;
}
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.panel { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.panel[hidden] { display: none; }
.panel h4 { font: 800 13px/1.3 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin: 4px 0 14px; }
.panel h4:not(:first-child) { margin-top: 28px; }
.docs { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; counter-reset: d; }
.docs li { position: relative; padding: 14px 0 14px 44px; border-bottom: 1px solid var(--line); line-height: 1.55; counter-increment: d; }
.docs li::before {
  content: counter(d); position: absolute; left: 0; top: 12px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--brand); font: 800 13px/1 var(--font-head);
}
.docs.opt li::before { content: ""; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2327449E' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: transparent; }
@media (max-width: 760px) { .docs { grid-template-columns: minmax(0, 1fr); } .tabs { display: flex; } .tabs button { flex: 1; padding: 12px; white-space: normal; } }

/* Шаги */
.steps { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; counter-reset: s; position: relative; }
.steps li { counter-increment: s; position: relative; display: grid; gap: 10px; align-content: start; padding-top: 64px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--brand); color: var(--brand); font: 800 17px/1 var(--font-head); z-index: 1;
}
.steps li::after { content: ""; position: absolute; left: 46px; right: -12px; top: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.steps li:last-child::after { display: none; }
.steps li:last-child::before { background: var(--brand); color: #fff; }
.steps b { font: 700 15.5px/1.35 var(--font-head); }
.steps p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 1100px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 720px; }
  .steps li { padding: 0 0 26px 66px; min-height: 72px; }
  .steps li::after { left: 22px; right: auto; top: 46px; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 12px); }
  .steps li:last-child { padding-bottom: 0; }
}

/* Двухколоночный блок направления */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.split .pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow); }
.split .pic { position: sticky; top: calc(var(--header-h) + 40px); }
.split .stack { display: grid; gap: 22px; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split .pic { position: static; order: -1; } }

.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.card .ic-box { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.card .ic-box .ic { width: 21px; height: 21px; }
.card b { font: 700 16px/1.35 var(--font-head); }
.card p { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.55; }
@media (max-width: 560px) { .cards2 { grid-template-columns: minmax(0, 1fr); } }

.flow { list-style: none; display: grid; gap: 0; counter-reset: f; }
.flow li { counter-increment: f; position: relative; padding: 0 0 22px 58px; }
.flow li::before {
  content: counter(f); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand); color: #fff; font: 800 15px/1 var(--font-head);
}
.flow li::after { content: ""; position: absolute; left: 18px; top: 40px; bottom: 4px; width: 2px; background: var(--line); }
.flow li:last-child { padding-bottom: 0; }
.flow li:last-child::after { display: none; }
.flow b { display: block; font: 700 16.5px/1.35 var(--font-head); margin-bottom: 4px; }
.flow p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.6; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r); background: var(--surface-2); color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; }
.note .ic { color: var(--brand); margin-top: 1px; }

/* Вопросы */
.faq { max-width: 880px; margin: 0 auto; display: grid; gap: 12px; }
.qa { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.qa[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; font: 700 17px/1.4 var(--font-head); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .pm { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); transition: transform .3s var(--ease); }
.qa summary .pm .ic { width: 18px; height: 18px; }
.qa[open] summary .pm { transform: rotate(45deg); }
.qa .a { padding: 0 24px 22px; color: var(--ink-2); line-height: 1.65; }
@media (max-width: 560px) { .qa summary { padding: 16px 18px; font-size: 16px; } .qa .a { padding: 0 18px 18px; } }

/* Блок записи */
.book {
  position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff;
  background: linear-gradient(120deg, rgba(23, 41, 99, .94), rgba(39, 68, 158, .88) 55%, rgba(79, 134, 201, .7)), url("img/photo/hero-1200.jpg") center / cover;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); padding: clamp(28px, 5vw, 64px);
}
.book h2 { color: #fff; }
.book .intro { display: grid; gap: 18px; align-content: center; }
.book .intro p { opacity: .9; font-size: var(--fs-lg); line-height: 1.6; }
.book .intro .ticks li::before { background-color: rgba(255, 255, 255, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.book .form-card { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .book { grid-template-columns: minmax(0, 1fr); } }

/* Партнёры */
.partners { display: grid; gap: 16px; max-width: 1040px; margin: 0 auto; }
.partner {
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-sm);
}
.partner.no-logo { grid-template-columns: minmax(0, 1fr); }
.partner .logo-box { display: grid; place-items: center; padding: 28px; border-right: 1px solid var(--line); }
.partner .logo-box img { width: 100%; max-width: 280px; aspect-ratio: 16 / 9; object-fit: contain; }
.partner .info { display: grid; gap: 14px; align-content: start; padding: clamp(22px, 3vw, 34px); }
.partner .tag { font: 800 12.5px/1.3 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.partner h3 { font-size: 24px; margin-top: -6px; }
.partner .lead { color: var(--ink-2); }
.partner .ticks { font-size: var(--fs-sm); }
.partner .addr { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; line-height: 1.45; }
.partner .addr .ic { color: var(--brand); margin-top: 1px; }
@media (max-width: 760px) {
  .partner { grid-template-columns: minmax(0, 1fr); }
  .partner .logo-box { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px; }
}

/* Контакты */
.contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.office { padding: 26px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.office .city { font: 800 12.5px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.office address { font-style: normal; font: 700 19px/1.4 var(--font-head); }
.office address span { display: block; }
/* Адрес всегда в три строки (область / город / улица, дом): строки не переносятся, а шрифт подгоняется под ширину
   карточки, чтобы самая длинная строка влезала на любом экране. В старых браузерах без container queries
   строки просто переносятся по пробелам («г.», «д.», «вп.» неразрывно с тем, к чему относятся). */
@supports (container-type: inline-size) {
  .office address { container-type: inline-size; }
  .office address span { white-space: nowrap; font-size: min(19px, 6.2cqw); }
}
.office .maps { display: flex; flex-wrap: wrap; gap: 8px; }
.office.main { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; align-items: center; gap: 18px 40px; background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 70%, var(--brand-3) 140%); color: #fff; border: 0; }
.office.main .lines { display: grid; gap: 12px; }
.office.main .city { color: rgba(255, 255, 255, .75); }
.office.main a { color: #fff; }
.c-line { display: flex; align-items: center; gap: 12px; font-size: var(--fs-lg); }
.c-line .ic { width: 22px; height: 22px; opacity: .85; }
.c-line b { font: 800 22px/1.2 var(--font-head); letter-spacing: -.01em; }
.specs-list { display: grid; gap: 12px; padding-left: 40px; border-left: 1px solid rgba(255, 255, 255, .2); }
.specs-list .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.specs-list .row span { font-size: 14px; opacity: .85; }
.specs-list .row a { font-weight: 600; white-space: nowrap; }
@media (max-width: 1020px) { .office.main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .office.main .btn { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 640px) { .contacts, .office.main { grid-template-columns: minmax(0, 1fr); } .specs-list { padding: 16px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .2); } .office.main .btn { width: 100%; } }

/* Подвал */
.footer { margin-top: var(--sec); background: var(--brand-ink); color: rgba(255, 255, 255, .78); padding: 56px 0 28px; font-size: var(--fs-sm); }
.footer .cols { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.footer img { height: 44px; width: auto; margin-bottom: 16px; }
.footer h4 { color: #fff; font: 800 12.5px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { color: rgba(255, 255, 255, .9); }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer .copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: rgba(255, 255, 255, .6); font-size: 13px; }
@media (max-width: 820px) { .footer .cols { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Плавающая кнопка на телефоне */
.mbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: none; gap: 8px; padding: 8px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform: translateY(140%); transition: transform .35s var(--ease);
}
.mbar.show { transform: none; }
.mbar .btn { flex: 1; min-height: 48px; padding: 0 12px; }
.mbar .call { flex: 0 0 52px; padding: 0; }
@media (max-width: 760px) { .mbar { display: flex; } .footer { padding-bottom: 96px; } }

/* ---------- Форма ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .field .lbl { font: 600 13.5px/1.3 var(--font); color: var(--ink-2); }
.field label i { font-style: normal; color: var(--err); }
.input {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); font: 400 16px/1.4 var(--font);
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
textarea.input { min-height: 96px; resize: vertical; }
select.input { padding-right: 40px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2374849F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") right 12px center / 20px no-repeat; }
.input::placeholder { color: #9AA7BC; }
.input:hover { border-color: var(--brand-3); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-3) 22%, transparent); }
.field.bad .input { border-color: var(--err); }
.field .err { display: none; color: var(--err); font-size: 13px; }
.field.bad .err { display: block; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 520px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.consent { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pick label { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick .opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; height: 100%; padding: 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); transition: border-color .2s, background .2s, box-shadow .2s;
  font: 700 14px/1.25 var(--font-head); color: var(--ink);
}
.pick .opt .ic { width: 22px; height: 22px; color: var(--brand); }
.pick label:hover .opt { border-color: var(--brand-3); }
.pick input:checked + .opt { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.pick input:focus-visible + .opt { outline: 3px solid color-mix(in srgb, var(--brand-3) 70%, transparent); outline-offset: 2px; }
@media (max-width: 520px) { .pick { grid-template-columns: minmax(0, 1fr); gap: 6px; } .pick .opt { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; } }

/* ---------- Всплывающее окно ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal[hidden] { display: none; }
.modal.open { visibility: visible; }
.modal .shade { position: absolute; inset: 0; background: rgba(15, 33, 66, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.modal.open .shade { opacity: 1; }
.modal .box {
  position: relative; width: 100%; max-width: 580px; max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: clamp(22px, 4vw, 38px);
  opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .3s var(--ease), transform .35s var(--ease);
}
.modal.open .box { opacity: 1; transform: none; }
.modal .x {
  position: absolute; right: 14px; top: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--surface-2); color: var(--ink-2); display: grid; place-items: center; transition: background .2s, color .2s, transform .2s;
}
.modal .x:hover { background: var(--brand-soft); color: var(--brand); transform: rotate(90deg); }
.modal h2 { font-size: clamp(24px, 2vw + 12px, 32px); padding-right: 44px; }
.modal .lead { margin: 10px 0 22px; color: var(--ink-2); }
.spec-mini { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.spec-mini .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.spec-mini .who b { display: block; font: 700 15px/1.3 var(--font-head); }
.spec-mini .who > div > span { display: block; font-size: 12.5px; color: var(--ink-3); }
.spec-mini .links .chip-btn { min-height: 38px; padding: 0 11px; font-size: 13px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; margin: 4px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 560px) {
  .modal { padding: 0; place-items: end stretch; }
  .modal .box { max-width: none; max-height: 94dvh; border-radius: 22px 22px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); transform: translateY(40px); }
}

.done { display: grid; gap: 16px; text-align: center; justify-items: center; padding: 8px 0; }
.done .mark { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); animation: pop .5s var(--ease) both; }
.done .mark .ic { width: 34px; height: 34px; stroke-width: 2.4; }
.done .mark.wait { background: var(--brand-soft); color: var(--brand); }
.done h3 { font-size: 24px; }
.done p { color: var(--ink-2); max-width: 30em; }
.done .links { justify-content: center; }
.done .links .btn { min-width: 220px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Тост */
.toast { position: fixed; left: 50%; bottom: 96px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: var(--shadow-lg); transition: opacity .25s, transform .25s var(--ease); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Появление при прокрутке */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-group > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal-group.in > * { opacity: 1; transform: none; }
.js .reveal-group.in > *:nth-child(2) { transition-delay: .06s; }
.js .reveal-group.in > *:nth-child(3) { transition-delay: .12s; }
.js .reveal-group.in > *:nth-child(4) { transition-delay: .18s; }
.js .reveal-group.in > *:nth-child(5) { transition-delay: .24s; }
.js .reveal-group.in > *:nth-child(6) { transition-delay: .3s; }
.js .reveal-group.in > *:nth-child(7) { transition-delay: .36s; }
.js .reveal-group.in > *:nth-child(8) { transition-delay: .42s; }
.js .reveal-group.in > *:nth-child(n+9) { transition-delay: .46s; }

/* Простые страницы */
.page { padding: calc(var(--sec) * .6) 0 0; }
.page .doc { max-width: 820px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 52px); }
.page .doc h1 { font-size: clamp(30px, 2vw + 18px, 44px); margin-bottom: 14px; }
.page .doc h2 { font-size: 21px; margin: 30px 0 10px; }
.page .doc p, .page .doc li { color: var(--ink-2); line-height: 1.7; }
.page .doc ul { padding-left: 22px; display: grid; gap: 6px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js .reveal-group > * { opacity: 1; transform: none; }
}
