/* =========================================================
   НПО «Роском» — regkadastr.ru
   Единый файл стилей. Цвета и размеры меняются в :root.
   ========================================================= */

:root {
  --bg: #f6f5f0;
  --surface: #ffffff;
  --surface-2: #eef1ea;
  --ink: #18221d;
  --ink-2: #44514a;
  --muted: #6b766f;
  --line: #dfe3da;
  --line-strong: #c9d0c4;

  --brand: #1d6b46;
  --brand-strong: #134d32;
  --brand-soft: #e3efe7;
  --accent: #e08a1e;
  --accent-strong: #b86a0c;
  --danger: #a3261b;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(20, 40, 30, .06), 0 1px 1px rgba(20, 40, 30, .04);
  --shadow: 0 10px 30px -12px rgba(20, 45, 32, .22), 0 2px 6px rgba(20, 45, 32, .05);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;

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

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img, svg, iframe { max-width: 100%; }
img { height: auto; border: 0; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 750; }
h2 { font-size: clamp(23px, 2.6vw, 30px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 650; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px rgba(224, 138, 30, .8); }
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-strong); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand-strong); }
.btn-light:hover { background: var(--brand-soft); color: var(--brand-strong); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }

/* ---------- Шапка ---------- */
.topline {
  background: var(--brand-strong); color: #dceadf; font-size: 14px;
}
.topline .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topline a { color: #fff; text-decoration: none; }
.topline a:hover { text-decoration: underline; }
.topline-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topline-info span { display: inline-flex; align-items: center; gap: 7px; }
.topline svg { width: 15px; height: 15px; opacity: .8; }
.topline-info { flex: none; }
/* Старый текст справа в полосе (если в HTML ещё не заменён) показывается как слоган */
.topline .container > span:not(.topline-slogan) { font-size: 0; }
.topline .container > span:not(.topline-slogan) svg { display: none; }
.topline .container > span:not(.topline-slogan)::after {
  content: "Оформление земли - инженерная геодезия, межевание участков, земельный кадастр, проведение землеустройства";
  font-size: 14px; white-space: nowrap;
}
.topline-slogan { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
@media (max-width: 1279px) {
  .topline-info { display: none; }
  .topline .container { justify-content: center; }
}

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(0, 0, 0, .35); }
.header-inner { position: relative; display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); text-decoration: none; }
.logo-mark { width: 44px; height: 44px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.logo-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.nav { margin-left: auto; flex: none; }
.header-actions { margin-left: 28px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-list > li.has-mega { position: static; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: 10px; border: 0; background: none;
  font: inherit; font-size: 15.5px; font-weight: 550; color: var(--ink-2);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.nav-link:hover, .nav-item.is-open > .nav-link { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav-link[aria-current="page"], .nav-item.is-current > .nav-link { color: var(--brand); }
.nav-link .chev { width: 14px; height: 14px; transition: transform .2s; }
.nav-item.is-open > .nav-link .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-item.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a {
  display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2);
  text-decoration: none; font-size: 15px; line-height: 1.35;
}
.dropdown a:hover { background: var(--brand-soft); color: var(--brand-strong); }
.dropdown a[aria-current="page"] { color: var(--brand); font-weight: 600; background: var(--brand-soft); }

.mega { left: 50%; transform: translate(-50%, 6px); width: min(860px, calc(100vw - 40px)); padding: 18px; }
.nav-item.is-open > .mega { transform: translate(-50%, 0); }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 18px; }
.mega-title {
  display: flex; align-items: center; gap: 8px; margin: 2px 12px 8px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
}
.mega-title a { padding: 0; color: inherit; }
.mega-title a:hover { background: none; color: var(--brand); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); font-size: 14.5px;
}
.mega-foot a { display: inline; padding: 0; font-weight: 600; color: var(--brand); }
.mega-foot a:hover { background: none; text-decoration: underline; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-phone { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; text-decoration: none; color: var(--ink); }
.header-phone:hover { color: var(--brand); text-decoration: none; }
.header-phone b { font-size: 17px; font-weight: 700; white-space: nowrap; }
.header-phone small { font-size: 12.5px; color: var(--muted); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  cursor: pointer; text-decoration: none;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn svg { width: 20px; height: 20px; }
.nav-toggle { display: none; }
.nav-close { display: none; }
.header-call { display: none; color: var(--brand); }
.header-phone b { white-space: nowrap; }

.h3 { font-size: 22px; }
/* Шапка сужается ступенями, чтобы меню никогда не наезжало на телефон */
.header-cta { display: none; }
.header .container, .topline .container { max-width: 1360px; }
@media (max-width: 1379px) {
  .header-phone { display: none; }
  .header-call { display: inline-grid; }
  .nav-link { padding: 10px 10px; font-size: 15px; }
}
@media (max-width: 1139px) {
  .logo-sub { display: none; }
  .nav-link { padding: 9px 8px; font-size: 14.5px; }
  .header-actions { margin-left: 16px; gap: 8px; }
}
@media (max-width: 1023px) { .header-actions { margin-left: auto; gap: 8px; } }

@media (max-width: 1023px) {
  :root { --header-h: 64px; }
  .topline { display: none; }
  .header-phone { display: none; }
  .header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-toggle { display: inline-grid; }
  .nav {
    position: fixed; inset: 0 0 0 auto; z-index: 60;
    width: min(400px, 100%); margin: 0;
    background: var(--surface); box-shadow: -20px 0 50px -20px rgba(0,0,0,.35);
    padding: 18px 18px 28px; overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden;
    transition: transform .25s ease, visibility .25s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
  .nav-close { display: inline-grid; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { width: 100%; justify-content: space-between; padding: 13px 12px; font-size: 17px; }
  .dropdown, .mega {
    position: static; width: auto; min-width: 0; transform: none; box-shadow: none; border: 0;
    padding: 0 0 8px 8px; display: none; opacity: 1; visibility: visible;
  }
  .nav-item.is-open > .dropdown, .nav-item.is-open > .mega { display: block; transform: none; }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-title { margin: 12px 12px 4px; }
  .mega-foot { display: none; }
  .nav-contacts { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
  .nav-contacts a { font-weight: 600; text-decoration: none; }
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 55; background: rgba(15, 25, 20, .45);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  body.nav-locked { overflow: hidden; }
  body.nav-locked .header { z-index: 70; }
}
@media (min-width: 1024px) {
  .nav-head, .nav-contacts, .nav-backdrop { display: none; }
}
@media (max-width: 420px) {
  .logo-sub { display: none; }
  .logo-mark { width: 38px; height: 38px; }
  .header-actions .btn { display: none; }
}

/* ---------- Хлебные крошки и шапка страницы ---------- */
.page-head {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: 26px 0 34px;
}
.page-head::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../img/contours.svg") right -120px center / 720px auto no-repeat;
  opacity: .55;
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { max-width: 900px; margin: 14px 0 0; font-size: clamp(28px, 3.6vw, 42px); }
.page-lead { max-width: 760px; margin: 14px 0 0; color: var(--ink-2); font-size: 18px; }

.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14.5px; color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Раскладка внутренних страниц ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding: 40px 0 56px; align-items: start; }
.layout.layout-wide { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1023px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 28px; } }

.content {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow-sm); min-width: 0;
}

/* Типографика основного текста */
.prose { color: var(--ink-2); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin: 1.7em 0 .6em; padding-top: .2em; color: var(--ink); }
.prose h3 { margin: 1.5em 0 .5em; color: var(--ink); }
.prose strong, .prose b { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose ul li::marker { color: var(--brand); }
.prose ol li::marker { color: var(--brand); font-weight: 700; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 10px 10px 0; }
.prose .note { padding: 16px 20px; border-radius: 12px; background: #fff6e8; border: 1px solid #f3d7ae; color: #6b4208; }
.prose .note strong { color: #6b4208; }
.prose img { border-radius: 10px; }
.prose .img-left { float: left; margin: 4px 24px 12px 0; }
.prose .img-right { float: right; margin: 4px 0 12px 24px; }
.prose::after { content: ""; display: table; clear: both; }
.prose .kicker + h2 { margin-top: 0; }
.prose .equipment, .prose .features { padding-left: 0; }
.prose .equipment li { margin: 0; }
@media (max-width: 560px) { .prose .img-left, .prose .img-right { float: none; display: block; margin: 0 auto 16px; } }

.prose .steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 12px; }
.prose .steps > li {
  counter-increment: step; position: relative; margin: 0;
  padding: 16px 18px 16px 64px; background: var(--surface-2); border-radius: 12px;
}
.prose .steps > li::before {
  content: counter(step); position: absolute; left: 16px; top: 14px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 15px;
}

@media (max-width: 560px) {
  .prose .steps > li { padding: 14px 14px 14px 50px; }
  .prose .steps > li::before { left: 12px; top: 14px; width: 28px; height: 28px; font-size: 13.5px; }
}

.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 12px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.table-wrap th, .table-wrap td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-wrap th { background: var(--surface-2); color: var(--ink); }

/* Список файлов: <ul class="files"><li><a href="doc/....doc">Название</a></li></ul> */
.files { list-style: none !important; padding: 0 !important; display: grid; gap: 8px; margin: 0 0 1.5em !important; }
.files li { margin: 0 !important; }
.files a {
  position: relative; display: block; min-height: 72px; padding: 12px 46px 12px 76px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--ink); text-decoration: none; line-height: 1.4;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.files a:hover { border-color: var(--brand); background: #fbfdfb; box-shadow: var(--shadow-sm); color: var(--ink); }
.files a::before {
  content: "DOC"; position: absolute; left: 16px; top: 12px; width: 46px; height: 46px; border-radius: 10px;
  display: grid; place-items: center; font: 700 12px/1 var(--font-mono); letter-spacing: .03em;
  background: #e5edf9; color: #2453a8;
}
.files a[href$=".pdf"]::before { content: "PDF"; background: #fbe6e3; color: var(--danger); }
.files a[href$=".xls"]::before, .files a[href$=".xlsx"]::before { content: "XLS"; background: #e2f2e7; color: var(--brand-strong); }
.files a::after {
  content: ""; position: absolute; right: 16px; top: 50%; margin-top: -10px; width: 20px; height: 20px; opacity: .45;
  background: currentColor;
  -webkit-mask: url("../img/download.svg") center / contain no-repeat;
  mask: url("../img/download.svg") center / contain no-repeat;
}
.files a:hover::after { opacity: 1; color: var(--brand); }
.files .file-extra { margin: 6px 0 0 18px; font-size: 15px; color: var(--muted); }
.files .file-extra a { display: inline; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--brand); text-decoration: underline; }
.files .file-extra a::before, .files .file-extra a::after { content: none; }
@media (max-width: 560px) { .files a { font-size: 15.5px; padding-left: 70px; } .files a::before { left: 12px; width: 44px; height: 44px; } }

/* Блок «Возможно, вас заинтересует» */
.related { margin: 2em 0 0; padding: 20px 22px; border-radius: 14px; background: var(--surface-2); clear: both; }
.related-title { margin: 0 0 10px; font-size: 17px; font-weight: 700; color: var(--ink); }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.related li { margin: 0; }
.related a { display: inline-flex; align-items: baseline; gap: 8px; font-weight: 550; text-decoration: none; }
.related a::before { content: "→"; color: var(--accent); }
.related a:hover { text-decoration: underline; }

/* Список ссылок-карточек (статьи и т.п.) */
.link-cards { list-style: none !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.link-cards li { margin: 0 !important; }
.link-cards a {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 20px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.4;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.link-cards a:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.link-cards small { color: var(--muted); font-weight: 500; font-size: 14px; }
.link-cards .more { margin-top: auto; color: var(--brand); font-size: 14.5px; }

/* ---------- Боковая колонка ---------- */
.sidebar { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 18px); }
@media (max-width: 1023px) { .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.side-title { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.side-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-nav a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 15.5px; line-height: 1.35; }
.side-nav a:hover { background: var(--surface-2); color: var(--ink); }
.side-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); font-weight: 650; }

.side-contact { background: var(--brand-strong); color: #d9e9de; border: 0; }
.side-contact .side-title { color: #a7c9b3; }
.side-contact .phone { display: block; color: #fff; font-size: 23px; font-weight: 750; text-decoration: none; letter-spacing: -.01em; }
.side-contact .phone:hover { color: #fff; text-decoration: underline; }
.side-contact p { margin: 6px 0 16px; font-size: 15px; }
.side-contact .btn { width: 100%; }

.side-offer { background: #fff6e8; border-color: #f3d7ae; }
.side-offer .side-title { color: var(--accent-strong); }
.side-offer p { margin: 0; font-size: 15px; color: #5c3d0e; }
.side-offer b { color: var(--danger); white-space: nowrap; }

.partners-links { font-size: 14px; line-height: 1.6; color: var(--muted); }
.partners-links a { color: var(--ink-2); }

/* ---------- Главная ---------- */
.hero {
  position: relative; overflow: hidden; color: #eaf3ed;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(224, 138, 30, .18), transparent 60%),
    linear-gradient(160deg, #134d32 0%, #0f3d28 55%, #0c2f20 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../img/contours-light.svg") center / 1400px auto repeat; opacity: .5;
}
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: 14px; color: #d6e8dc; }
.hero-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(224,138,30,.25); margin-left: 6px; }
.hero h1 { color: #fff; margin: 20px 0 18px; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: #f6b65e; }
.hero-lead { font-size: 18.5px; color: #cfe2d5; max-width: 600px; margin: 0 0 28px; }
.hero-lead strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 32px 0 0; padding: 0; list-style: none; font-size: 15px; color: #cfe2d5; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 18px; height: 18px; color: #f6b65e; flex: none; }

.hero-visual { position: relative; }
.plan {
  position: relative; border-radius: 22px; overflow: hidden;
  background: #f4f1e6; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.35); aspect-ratio: 5 / 4;
}
.plan svg { display: block; width: 100%; height: 100%; }
.plan-card {
  position: absolute; left: -22px; bottom: 26px; max-width: 290px;
  background: #fff; color: var(--ink); border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.45); font-size: 14.5px; line-height: 1.45;
}
.plan-card b { display: block; font-size: 22px; color: var(--danger); letter-spacing: -.01em; }
.plan-card span { color: var(--muted); }
.plan-tag {
  position: absolute; right: 18px; top: 18px; padding: 8px 12px; border-radius: 10px;
  background: rgba(19,77,50,.92); color: #fff; font: 600 12.5px/1.3 var(--font-mono);
}
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 48px; gap: 36px; }
  .plan-card { left: 12px; bottom: 12px; }
}
@media (max-width: 480px) {
  .plan-card { position: static; max-width: none; margin-top: 12px; }
  .hero-actions .btn { width: 100%; }
}

.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { margin: 0; font-size: clamp(26px, 3.2vw, 38px); }
.section-head p { margin: 10px 0 0; color: var(--ink-2); max-width: 640px; }
.kicker { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
@media (max-width: 640px) { .section { padding: 52px 0; } }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .services { grid-template-columns: 1fr; } }
.service {
  display: flex; flex-direction: column; padding: 26px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.service-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; }
.service-icon svg { width: 28px; height: 28px; }
.service h3 { font-size: 22px; margin-bottom: 8px; }
.service h3 a { color: inherit; text-decoration: none; }
.service h3 a:hover { color: var(--brand); }
.service > p { color: var(--ink-2); font-size: 15.5px; }
.service ul { list-style: none; margin: 6px 0 0; padding: 0; border-top: 1px solid var(--line); }
.service li { border-bottom: 1px solid var(--line); }
.service li a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 2px; color: var(--ink); text-decoration: none; font-size: 15.5px; }
.service li a::after { content: "→"; color: var(--muted); transition: transform .2s, color .2s; }
.service li a:hover { color: var(--brand); }
.service li a:hover::after { color: var(--brand); transform: translateX(3px); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.feature b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 17px; }
.feature span { color: var(--ink-2); font-size: 15px; line-height: 1.5; display: block; }
.feature svg { width: 26px; height: 26px; color: var(--brand); margin-bottom: 10px; }

.equipment { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.equipment li { padding: 8px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; font-size: 14.5px; }

.licenses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 860px) { .licenses { grid-template-columns: repeat(2, 1fr); } }
.license {
  display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.license:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.license-img { display: grid; place-items: center; height: 170px; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.license-img img { max-height: 150px; width: auto; box-shadow: 0 6px 16px -6px rgba(0,0,0,.35); }
.license b { font-size: 15.5px; line-height: 1.35; }
.license span { font-size: 13.5px; color: var(--muted); margin-top: -8px; }

.partner-banner {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 24px;
  border-radius: 16px; border: 1px dashed var(--line-strong); background: var(--surface);
}
.partner-banner .badge { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.partner-banner p { margin: 0; flex: 1 1 320px; color: var(--ink-2); }

/* ---------- Призыв к действию ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 24px; padding: clamp(28px, 5vw, 52px);
  background: linear-gradient(135deg, #1d6b46 0%, #134d32 100%); color: #d9eadf;
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px; align-items: center;
}
.cta::after { content: ""; position: absolute; inset: 0; background: url("../img/contours-light.svg") right center / 900px auto no-repeat; opacity: .45; pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; margin: 0 0 10px; font-size: clamp(24px, 3vw, 34px); }
.cta p { margin: 0; font-size: 17px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }
.cta-wrap { padding: 0 0 72px; }

/* ---------- Контакты ---------- */
.offices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 28px; }
@media (max-width: 760px) { .offices { grid-template-columns: 1fr; } }
.office { padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.office h2 { font-size: 21px; margin: 0 0 4px; }
.office address { font-style: normal; color: var(--ink-2); margin-bottom: 14px; }
.office dl { margin: 0; display: grid; gap: 10px; }
.office dt { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.office dd { margin: 2px 0 0; color: var(--ink); }
.office dd a { font-weight: 600; text-decoration: none; }
.office dd a:hover { text-decoration: underline; }
.office-note { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); font-size: 14.5px; color: var(--ink-2); }

.map-card { margin: 0 0 24px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.map-card h3 { margin: 0; padding: 16px 20px; font-size: 17px; border-bottom: 1px solid var(--line); }
.map-frame { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 560px) { .map-frame { aspect-ratio: 4 / 5; } }

/* ---------- Формы ---------- */
.form { display: grid; gap: 16px; margin-top: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .search-form input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .search-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(29, 107, 70, .15); }
.form-hint { font-size: 14px; color: var(--muted); margin: 0; }
.form-status { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-strong); font-size: 15px; }
.form-status[hidden] { display: none; }

/* ---------- Поиск ---------- */
.search-form { display: flex; gap: 10px; margin-bottom: 24px; }
.search-form input { flex: 1; }
.search-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.search-results li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; }
.search-results a { font-weight: 650; font-size: 18px; }
.search-results p { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
.search-results mark { background: #ffe8bf; color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- Карта сайта ---------- */
.sitemap { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px 32px; }
.sitemap h2 { font-size: 18px; margin: 0 0 10px; }
.sitemap ul { margin: 0; padding-left: 1.1em; }

/* ---------- Подвал ---------- */
.footer { background: #0f2a1d; color: #a9c2b2; font-size: 15px; }
.footer a { color: #dfece3; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; padding: 56px 0 40px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; padding-top: 40px; } }
.footer .logo, .footer .logo:hover { color: #fff; }
.footer .logo-sub { color: #93ad9c; display: block; }
.footer-about { margin: 16px 0 0; line-height: 1.6; }
.footer-title { margin: 0 0 14px; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer address { font-style: normal; line-height: 1.6; }
.footer-phone { display: inline-block; font-size: 20px; font-weight: 700; color: #fff !important; margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0 26px; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 14px; }

/* ---------- Просмотр изображений ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 18, 14, .82); }
.lightbox img { display: block; max-width: 92vw; max-height: 86vh; width: auto; border-radius: 10px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox-caption { margin: 10px 0 0; color: #fff; text-align: center; font-size: 15px; }
.lightbox-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.3); }

/* ---------- Кнопка «наверх» ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
  display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .topline, .header, .sidebar, .footer, .cta-wrap, .to-top, .licenses-section { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .content { border: 0; box-shadow: none; padding: 0; }
  .page-head::after { display: none; }
}
