﻿/* ==========================================================================
   Белкадастр — кадастровый инженер в Белгороде
   Дизайн-система: мобильный первым, без внешних зависимостей
   ========================================================================== */

/* ---------- Токены ---------- */
:root {
  --brand: #1b6b46;
  --brand-700: #12543a;
  --brand-600: #1b6b46;
  --brand-500: #2d875e;
  --brand-100: #d9ebe1;
  --brand-050: #eaf3ee;

  --ink: #14231c;
  --ink-2: #4b5a52;
  --ink-3: #66756c;

  --bg: #fbfaf6;
  --bg-2: #f2f5ef;
  --surface: #ffffff;
  --line: #e2e8e0;
  --line-2: #eef2ec;

  --sand: #f6f1e6;
  --gold: #a97b32;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(20, 35, 28, .05);
  --shadow: 0 14px 34px -22px rgba(18, 48, 31, .45);
  --shadow-lg: 0 26px 60px -30px rgba(18, 48, 31, .55);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.16; letter-spacing: -.022em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.06rem, 1.6vw, 1.22rem); letter-spacing: -.014em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: var(--brand-100); color: var(--brand-700); }

:focus-visible {
  outline: 3px solid rgba(45, 135, 94, .45);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  background: var(--brand); color: #fff; padding: 12px 18px; border-radius: 10px;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- Утилиты ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(52px, 7.5vw, 96px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--soft { background: var(--bg-2); }
.section--edge { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  font-size: 12.5px; font-weight: 650; letter-spacing: .13em;
  text-transform: uppercase; color: var(--brand);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), rgba(27, 107, 70, .18));
}
.lead { font-size: clamp(1.02rem, 1.35vw, 1.18rem); line-height: 1.62; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.icon { width: 24px; height: 24px; flex: none; fill: none; }
.icon--sm { width: 18px; height: 18px; }

.section-head { max-width: 720px; margin-bottom: clamp(26px, 3.5vw, 44px); }
.section-head--split {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; max-width: none; flex-wrap: wrap;
}
.section-head--split > div { max-width: 680px; }
.section-head p { margin: 14px 0 0; color: var(--ink-2); }

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 650; font-size: 16px; line-height: 1.1;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              box-shadow .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--brand-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 19px; height: 19px; }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: #fff; color: var(--brand-700); border-color: #cbded2; }
.btn--white { --btn-bg: #fff; --btn-fg: var(--brand-700); }
.btn--white:hover { background: #fff; color: var(--brand); box-shadow: 0 18px 40px -24px rgba(0,0,0,.5); }
.btn--max {
  --btn-bg: linear-gradient(135deg, #2f7bff 0%, #7b61ff 55%, #a855f7 100%);
  --btn-fg: #fff;
  box-shadow: 0 10px 24px -18px rgba(88, 74, 255, .95);
}
.btn--max:hover {
  background: linear-gradient(135deg, #2f7bff 0%, #7b61ff 55%, #a855f7 100%);
  color: #fff;
  filter: brightness(1.08);
  box-shadow: 0 16px 32px -18px rgba(88, 74, 255, .95);
}
.btn--outline-white { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.42); }
.btn--outline-white:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.7); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 650; color: var(--brand);
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .18s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Шапка ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 246, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.hdr.is-stuck { border-bottom-color: var(--line); background: rgba(251, 250, 246, .95); }
.hdr__in {
  display: flex; align-items: center; gap: 24px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 18.5px; font-weight: 750; letter-spacing: -.03em; }
.brand__sub { font-size: 11.5px; color: var(--ink-3); letter-spacing: .01em; }

.nav { display: none; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 42px; padding: 0 13px; border-radius: 10px;
  color: var(--ink); font-weight: 550; font-size: 15.5px;
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.nav__link:hover, .nav__link[aria-expanded="true"] { background: var(--brand-050); color: var(--brand-700); }
.nav__link .icon { width: 15px; height: 15px; color: var(--ink-3); transition: transform .2s var(--ease); }
.nav__link[aria-expanded="true"] .icon { transform: rotate(180deg); }

.hdr__cta { display: none; align-items: center; gap: 14px; }
.hdr__phone { font-weight: 700; font-size: 15.5px; color: var(--ink); letter-spacing: -.01em; }
.hdr__phone:hover { color: var(--brand); }

.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; border-radius: 11px;
  border: 1px solid var(--line); background: #fff;
}
.burger span { display: block; height: 1.8px; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* Мега-меню */
.mega {
  position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%) translateY(-6px);
  width: min(920px, calc(100vw - 48px));
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 26px;
  opacity: 0; visibility: hidden; transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.mega__col h3 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; font-weight: 650; }
.mega__col h3 a { color: inherit; }
.mega__col h3 a:hover { color: var(--brand); }
.mega__col ul { list-style: none; margin: 0; padding: 0; }
.mega__col li { margin: 0; }
.mega__col a {
  display: block; padding: 6px 8px; margin-left: -8px; border-radius: 8px;
  color: var(--ink); font-size: 14.5px; line-height: 1.35;
}
.mega__col a:hover { background: var(--brand-050); color: var(--brand-700); }
.mega__foot {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-2);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}

/* ---------- Мобильное меню ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 150;
  display: flex; justify-content: flex-end;
  background: rgba(12, 26, 18, .38);
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__panel {
  width: min(400px, 100%);
  height: 100%; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); padding: 18px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  transform: translateX(100%); transition: transform .3s var(--ease);
  display: flex; flex-direction: column; gap: 6px;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer__close { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.drawer__close .icon { width: 20px; height: 20px; }

.mnav { list-style: none; margin: 0; padding: 0; }
.mnav > li { border-bottom: 1px solid var(--line); }
.mnav a, .mnav button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 56px; padding: 8px 2px;
  font-size: 17px; font-weight: 600; color: var(--ink); text-align: left;
}
.mnav button .icon { width: 18px; height: 18px; color: var(--ink-3); transition: transform .2s var(--ease); }
.mnav button[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mnav__sub { list-style: none; margin: 0; padding: 0 0 12px; }
.mnav__sub a { min-height: 42px; font-size: 15px; font-weight: 450; color: var(--ink-2); padding-left: 8px; }
.mnav__sub a:hover { color: var(--brand); }
.mnav__sub h4 { margin: 10px 0 2px 8px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; }
.mnav__sub[hidden] { display: none; }
.drawer__contacts { margin-top: auto; padding-top: 24px; display: grid; gap: 10px; }
.drawer__contacts .btn { width: 100%; }
.drawer__meta { display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); padding-top: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(34px, 5vw, 64px) clamp(44px, 6vw, 76px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 12%, rgba(45, 135, 94, .10), transparent 70%),
    radial-gradient(45% 40% at 4% 78%, rgba(169, 123, 50, .07), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'%3E%3Cg fill='none' stroke='%231b6b46' stroke-opacity='.10' stroke-width='1'%3E%3Cpath d='M-40 132c96-44 172-30 238 8s150 44 244 8 120-24 156-6'/%3E%3Cpath d='M-40 188c96-44 172-30 238 8s150 44 244 8 120-24 156-6'/%3E%3Cpath d='M-40 244c96-44 172-30 238 8s150 44 244 8 120-24 156-6'/%3E%3Cpath d='M-40 300c96-44 172-30 238 8s150 44 244 8 120-24 156-6'/%3E%3Cpath d='M-40 356c96-44 172-30 238 8s150 44 244 8 120-24 156-6'/%3E%3Cpath d='M-40 412c96-44 172-30 238 8s150 44 244 8 120-24 156-6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 520px 520px;
  -webkit-mask-image: radial-gradient(75% 75% at 50% 40%, #000, transparent 78%);
  mask-image: radial-gradient(75% 75% at 50% 40%, #000, transparent 78%);
  pointer-events: none;
}
.hero__grid { display: grid; gap: clamp(30px, 5vw, 56px); align-items: center; }
.hero__copy { max-width: 620px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero__lead { max-width: 540px; margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero__note { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13.5px; }
.hero__note .icon { width: 16px; height: 16px; color: var(--brand); }

.hero__visual { position: relative; max-width: 600px; margin-inline: auto; width: 100%; }
.hero__visual > svg { width: 100%; height: auto; }
.badge-float {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 10px 14px; box-shadow: 0 18px 40px -26px rgba(18, 48, 31, .55);
  font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--ink);
  animation: floaty 7s ease-in-out infinite;
}
.badge-float small { display: block; font-weight: 450; color: var(--ink-3); font-size: 11.5px; }
.badge-float .icon { width: 20px; height: 20px; color: var(--brand); }
.badge-float--tr { top: 12%; right: -2%; }
.badge-float--bl { bottom: 14%; left: -3%; animation-delay: -3.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) {
  .badge-float { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Полоса доверия ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.6); }
.trust__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.trust__item {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); padding: 18px clamp(6px, 2vw, 22px);
  font-size: 13.5px; line-height: 1.35; color: var(--ink-2);
}
.trust__item .icon { width: 22px; height: 22px; color: var(--brand); }

/* ---------- Карточки услуг ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 5px; background: var(--bg-2); border-radius: 13px; border: 1px solid var(--line); margin-bottom: 26px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  min-height: 42px; padding: 0 16px; border-radius: 9px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.tab[aria-selected="true"] { background: #fff; color: var(--brand-700); box-shadow: var(--shadow-sm); }
.tab:hover { color: var(--brand-700); }

.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
.cards[hidden] { display: none; }
.svc {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.svc:hover { transform: translateY(-2px); border-color: #c6dccd; box-shadow: var(--shadow); color: var(--ink); }
.svc__icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand); margin-bottom: 2px;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.svc__icon .icon { width: 22px; height: 22px; }
.svc:hover .svc__icon { background: var(--brand); color: #fff; }
.svc h3 { font-size: 16.5px; line-height: 1.3; }
.svc p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.svc__meta { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.8px; color: var(--ink-3); }
.svc__price { font-weight: 700; color: var(--brand-700); font-size: 13.5px; }
.svc__arrow { width: 17px; height: 17px; opacity: 0; transform: translate(-3px, 3px); transition: .2s var(--ease); color: var(--brand); }
.svc:hover .svc__arrow { opacity: 1; transform: none; }

/* ---------- Преимущества / шаги ---------- */
.features { display: grid; gap: 18px; grid-template-columns: 1fr; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature__icon {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  display: grid; place-items: center; background: #fff; border: 1px solid var(--line);
  color: var(--brand);
}
.feature__icon .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 16px; margin-bottom: 5px; }
.feature p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }

.steps { counter-reset: step; display: grid; gap: 28px; grid-template-columns: 1fr; }
.step { position: relative; padding-left: 56px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -2px;
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand-700);
  font-size: 14px; font-weight: 750; letter-spacing: -.02em;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 19.5px; top: 46px; bottom: -28px;
  border-left: 1px dashed rgba(27, 107, 70, .28);
}
.step h3 { font-size: 16px; margin-bottom: 5px; }
.step p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* ---------- Документы ---------- */
.doc-teaser { display: grid; gap: 14px; }
.doc-teaser .doc-row { height: 100%; }
.doc-teaser .doc-row h3 {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.doc-row {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.doc-row:hover { border-color: #c6dccd; box-shadow: var(--shadow); transform: translateY(-1px); color: var(--ink); }
.doc-row__icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--sand); color: var(--gold); }
.doc-row__icon .icon { width: 19px; height: 19px; }
.doc-row h3 { font-size: 15.2px; line-height: 1.38; font-weight: 600; margin-bottom: 4px; }
.doc-row__meta { font-size: 12.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

/* ---------- CTA-полоса ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--brand-700); color: #fff; border-radius: var(--radius-xl); }
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -60px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 65%);
  pointer-events: none;
}
.cta-band__in { position: relative; z-index: 1; padding: clamp(30px, 5vw, 52px); display: grid; gap: 26px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.78); margin: 12px 0 0; max-width: 560px; }
.cta-band .btn-row { margin-top: 22px; }
.cta-band__contacts { display: grid; gap: 14px; align-content: start; }
.cta-contact { display: flex; align-items: center; gap: 12px; color: #fff; }
.cta-contact:hover { color: #fff; }
.cta-contact .icon { width: 20px; height: 20px; color: rgba(255,255,255,.7); }
.cta-contact strong { display: block; font-size: 17px; letter-spacing: -.01em; }
.cta-contact small { display: block; font-size: 12.5px; color: rgba(255,255,255,.6); }

/* ---------- Подвал ---------- */
.ftr { margin-top: clamp(48px, 6vw, 84px); background: #0f2a1e; color: rgba(255,255,255,.72); font-size: 14px; }
.ftr__top { display: grid; gap: 34px; padding-block: clamp(38px, 5vw, 60px); grid-template-columns: 1fr; }
.ftr .brand { color: #fff; margin-bottom: 14px; }
.ftr .brand__sub { color: rgba(255,255,255,.5); }
.ftr__about { max-width: 330px; line-height: 1.6; }
.ftr h4 { color: #fff; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 14px; font-weight: 650; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ftr a { color: rgba(255,255,255,.72); }
.ftr a:hover { color: #fff; }
.ftr__contacts { display: grid; gap: 10px; }
.ftr__contacts a { display: flex; align-items: center; gap: 10px; }
.ftr__contacts .icon { width: 17px; height: 17px; color: rgba(255,255,255,.45); }
.ftr__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-block: 20px 26px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: 12.5px; color: rgba(255,255,255,.45);
}
.ftr__bottom a { color: rgba(255,255,255,.55); }

/* ---------- Мобильная панель действий ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(251,250,246,.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s var(--ease);
}
.mbar.is-visible { transform: none; }
.mbar .btn { min-height: 48px; font-size: 15px; border-radius: 11px; }
.mbar .btn--ghost { background: #fff; }
body { padding-bottom: 0; }
@media (max-width: 899px) { body.has-mbar { padding-bottom: 72px; } }

/* ---------- Баннер cookie ---------- */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  padding: 0 var(--gutter) calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.cookie[hidden] { display: none; }
.cookie__in {
  pointer-events: auto;
  max-width: var(--container);
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px 18px;
  display: grid;
  gap: 12px;
}
.cookie__text { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cookie__link {
  font-size: 13px; color: var(--ink-3);
  text-decoration: underline; text-underline-offset: 2px;
}
.cookie__link:hover { color: var(--brand); }
body.consent-pending .mbar { display: none; }

@media (min-width: 900px) {
  .cookie { padding-bottom: 16px; }
  .cookie__in { grid-template-columns: 1fr auto; align-items: center; gap: 20px; }
}
/* ---------- Страница услуги ---------- */
.page-head { padding-block: clamp(20px, 3vw, 34px) clamp(26px, 4vw, 42px); background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.8px; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { opacity: .5; }
.crumbs [aria-current] { color: var(--ink-2); }
.page-head h1 { margin-bottom: 16px; max-width: 900px; }
.page-head .lead { max-width: 720px; margin-bottom: 0; }
.doc-page .page-head h1 { font-size: clamp(1.45rem, 2.9vw, 2.15rem); line-height: 1.22; letter-spacing: -.018em; }
.doc-teaser .doc-item h3 {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 32px; padding: 4px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.chip .icon { width: 15px; height: 15px; color: var(--brand); }
.chip--brand { background: var(--brand-050); border-color: var(--brand-100); color: var(--brand-700); }

.layout { display: grid; gap: clamp(32px, 5vw, 56px); padding-block: clamp(32px, 5vw, 56px); grid-template-columns: 1fr; align-items: start; }

.prose { max-width: 780px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.35rem, 2.3vw, 1.72rem); margin: 2.1em 0 .6em; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.7em 0 .5em; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose ul > li, .prose ol > li { position: relative; padding-left: 28px; margin-bottom: .55em; }
.prose ul > li::before {
  content: ""; position: absolute; left: 4px; top: .56em;
  width: 11px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg); border-radius: 1px;
}
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; }
.prose ol > li::before {
  content: counter(n); position: absolute; left: 0; top: .1em;
  width: 20px; height: 20px; border-radius: 6px; background: var(--brand-050);
  color: var(--brand-700); font-size: 11.5px; font-weight: 700;
  display: grid; place-items: center;
}
.prose ul ul { margin-top: .5em; }
.prose ul ul > li::before { background: var(--ink-3); width: 6px; height: 6px; border: 0; border-radius: 50%; top: .66em; left: 5px; transform: none; }

.callout {
  display: grid; grid-template-columns: auto 1fr; gap: 14px;
  padding: 18px 20px; margin: 1.6em 0;
  background: var(--brand-050); border: 1px solid var(--brand-100); border-radius: var(--radius);
  font-size: 14.8px; color: var(--ink-2);
}
.callout .icon { width: 21px; height: 21px; color: var(--brand); margin-top: 2px; }
.callout p:last-child { margin-bottom: 0; }
.callout--warn { background: #fdf8ed; border-color: #f0e2c4; }
.callout--warn .icon { color: var(--gold); }

.price-box {
  margin: 1.8em 0; padding: 22px 24px; border-radius: var(--radius-lg);
  background: #0f2a1e; color: #fff; display: grid; gap: 6px;
}
.price-box .small { color: rgba(255,255,255,.6); }
.price-box strong { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.03em; color: #fff; }

/* Боковая колонка */
.aside { display: grid; gap: 16px; }
.aside__sticky { position: static; display: grid; gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px;
}
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; }
.card--cta { background: var(--brand-050); border-color: var(--brand-100); }
.card__price { font-size: 25px; font-weight: 750; letter-spacing: -.03em; color: var(--brand-700); margin-bottom: 2px; }
.card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; color: var(--ink-2); }
.card__list li { display: flex; gap: 9px; align-items: flex-start; margin: 0; }
.card__list .icon { width: 17px; height: 17px; color: var(--brand); margin-top: 2px; flex: none; }
.card__list a { color: var(--ink-2); }
.card__list a:hover { color: var(--brand); }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 1.4em; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 0 18px; transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.faq details[open] { border-color: #cfe2d6; background: #fcfdfb; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 15.4px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 18px; height: 18px; color: var(--ink-3); transition: transform .2s var(--ease); flex: none; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq__body { padding: 0 0 18px; font-size: 14.8px; color: var(--ink-2); }
.faq__body p:last-child { margin-bottom: 0; }

/* ---------- Документы ---------- */
.docs-tools {
  display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 22px;
}
.search {
  position: relative; display: flex; align-items: center;
}
.search .icon { position: absolute; left: 16px; width: 19px; height: 19px; color: var(--ink-3); pointer-events: none; }
.search input {
  width: 100%; min-height: 52px; padding: 12px 16px 12px 46px;
  border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
  font-size: 16px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.search input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(45,135,94,.12); }
.search input::placeholder { color: var(--ink-3); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  transition: .18s var(--ease);
}
.filter:hover { border-color: #c6dccd; color: var(--brand-700); }
.filter[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.docs-count { font-size: 13.5px; color: var(--ink-3); margin-bottom: 18px; }
.docs-count strong { color: var(--ink); }
.year-group { margin-bottom: 34px; }
.year-group > h2 { font-size: 13px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.year-group > h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.docs-list { display: grid; gap: 10px; }
.doc-item {
  display: grid; grid-template-columns: 1fr; gap: 10px;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.doc-item:hover { border-color: #c6dccd; box-shadow: var(--shadow); }
.doc-item__head { display: flex; gap: 12px; align-items: flex-start; }
.doc-item__icon { width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--sand); color: var(--gold); }
.doc-item__icon .icon { width: 17px; height: 17px; }
.doc-item a { color: var(--ink); }
.doc-item a:hover { color: var(--brand-700); }
.doc-item h3 { font-size: 15px; line-height: 1.4; font-weight: 600; }
.doc-item p { font-size: 13.8px; color: var(--ink-3); margin: 6px 0 0; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.doc-item__side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12.5px; color: var(--ink-3); }
.tag { display: inline-flex; padding: 2px 9px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line-2); font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.doc-item__dl { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--brand); font-size: 13px; }
.doc-item__dl .icon { width: 15px; height: 15px; }
.doc-empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--ink-3); }

/* ---------- Формы ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 15px;
  border: 1px solid var(--line); border-radius: 11px; background: #fff;
  font-size: 16px; color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(45,135,94,.12);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #c05a5a; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.check a { text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { font-size: 13.8px; border-radius: 10px; padding: 10px 12px; display: none; }
.form__status.is-ok { display: block; background: var(--brand-050); color: var(--brand-700); border: 1px solid var(--brand-100); }
.form__status.is-err { display: block; background: #fdf0f0; color: #8f3030; border: 1px solid #f3d5d5; }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.contact-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.contact-card__icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--brand-050); color: var(--brand); }
.contact-card__icon .icon { width: 21px; height: 21px; }
.contact-card h3 { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; margin-bottom: 4px; }
.contact-card a, .contact-card strong { font-size: 17px; font-weight: 650; color: var(--ink); letter-spacing: -.01em; }
.contact-card a:hover { color: var(--brand); }
.contact-card p { margin: 2px 0 0; font-size: 14px; color: var(--ink-3); }

.map-box { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); min-height: 320px; display: grid; place-items: center; }
.map-box__bg {
  position: absolute; inset: 0; opacity: .8;
  background-image:
    linear-gradient(rgba(27,107,70,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,107,70,.06) 1px, transparent 1px);
  background-size: 34px 34px;
}
.map-box__content { position: relative; text-align: center; padding: 30px; max-width: 360px; }
.map-box__pin { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -12px rgba(27,107,70,.8); }
.map-box__pin .icon { width: 26px; height: 26px; }
.map-box iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- CTA-блок в статье ---------- */
.inline-cta {
  margin: 2em 0; padding: 22px; border-radius: var(--radius-lg);
  border: 1px solid var(--brand-100); background: linear-gradient(135deg, var(--brand-050), #f7fbf8);
  display: grid; gap: 12px;
}
.inline-cta h3 { font-size: 18px; }
.inline-cta p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* ---------- Прочее ---------- */
.error-page { padding-block: clamp(60px, 12vw, 140px); text-align: center; }
.error-page .code { font-size: clamp(64px, 14vw, 130px); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--brand); opacity: .16; }
.error-page h1 { margin: 10px 0 12px; }
.error-page p { color: var(--ink-2); max-width: 460px; margin: 0 auto 24px; }

.breadcrumb-list { display: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 639px) {
  .tabs { flex-wrap: wrap; overflow: visible; }
  .tab { flex: 1 1 auto; font-size: 13.5px; padding: 0 12px; }

  .badge-float { font-size: 12px; padding: 8px 11px; gap: 8px; }
  .badge-float .icon { width: 18px; height: 18px; }
  .badge-float small { font-size: 10.5px; }
  .badge-float--tr { right: 4px; top: 6%; }
  .badge-float--bl { left: 4px; bottom: 8%; }

  .hero__actions { display: grid; grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }

  /* компактные карточки услуг: иконка слева, текст справа */
  .cards .svc {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas: "icon title" "icon desc" "meta meta";
    column-gap: 14px;
    row-gap: 4px;
    padding: 16px 18px;
    align-items: start;
  }
  .cards .svc__icon { grid-area: icon; width: 44px; height: 44px; margin: 0; }
  .cards .svc h3 { grid-area: title; }
  .cards .svc p { grid-area: desc; }
  .cards .svc__meta { grid-area: meta; padding-top: 8px; }
  .cards .svc__cat { display: none; }
}

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); gap: 22px 26px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-item { grid-template-columns: 1fr auto; align-items: center; }
  .doc-item__side { justify-content: flex-end; }
  .docs-tools { grid-template-columns: 1fr auto; align-items: center; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .ftr__top { grid-template-columns: 1.4fr 1fr; }
}

@media (min-width: 900px) {
  :root { --header-h: 76px; }
  .nav { display: flex; }
  .hdr__cta { display: flex; }
  .burger { display: none; }
  .hero__grid { grid-template-columns: 1.04fr .96fr; }
  .hero__actions { gap: 14px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .svc { padding: 22px; }
  .features { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .step:not(:last-child)::after { left: auto; right: -22px; top: 19px; bottom: auto; width: 22px; border-left: 0; border-top: 1px dashed rgba(27,107,70,.3); }
  .ftr__top { grid-template-columns: 1.5fr .8fr .8fr 1.1fr; gap: 40px; }
  .layout--sidebar { grid-template-columns: minmax(0, 1fr) 340px; }
  .aside__sticky { position: sticky; top: calc(var(--header-h) + 20px); }
  .cta-band__in { grid-template-columns: 1.3fr .7fr; align-items: center; padding: clamp(38px, 4.5vw, 56px); }
  .doc-teaser { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
  .docs-tools { gap: 16px; }
  .mbar { display: none; }
}

@media (min-width: 1100px) {
  .hero h1 { font-size: clamp(2.7rem, 3.6vw, 3.5rem); }
}

/* Печать */
@media print {
  .hdr, .mbar, .ftr, .aside, .cta-band, .drawer { display: none !important; }
  body { background: #fff; padding: 0; }
  .prose { max-width: none; }
  a { color: #000; text-decoration: underline; }
}
