/* ==========================================================================
   ООО «УК КАПИТЕЛЬ» — основной стиль
   Палитра: тёмно-синий (надёжность) + зелёный (акцент) + светлый фон
   Шрифты: Golos Text — одна гарнитура, веса 400 / 500 / 700
   ========================================================================== */

:root {
  --paper:   #f4f1ea;
  --bg:      var(--paper);
  --surface: #fffdf8;
  --surface-alt: #f7f3ec;
  --ink:     #1d1d1b;
  --text:    var(--ink);
  --muted:   #6b675f;
  --text-muted: var(--muted);
  --line:    #d8d2c6;
  --border:  var(--line);
  --brand:   #17365d;
  --blue-900: var(--brand);
  --blue-800: #1f3d6b;
  --blue-700: var(--brand);
  --accent:  #2f5a46;
  --green-700: var(--accent);
  --green-600: #37624e;
  --green-500: #3f7158;
  --link:    var(--brand);
  --radius:  2px;
  --font: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --header-h: 76px;
}

html { font-variant-numeric: tabular-nums; scroll-behavior: smooth; }

/* ---- Режим слабовидящих: высокий контраст ---- */
html.a11y-contrast {
  --blue-900: #000a1c;
  --blue-700: #002b66;
  --green-700: #1a362b;
  --green-500: #26473a;
  --bg: #000000;
  --surface: #000000;
  --surface-alt: #0a0a0a;
  --text: #ffffff;
  --text-muted: #d9d9d9;
  --border: #ffffff;
  --link: #66aaff;
  font-size: calc(16px * (18 / 17));
}

/* ---- Увеличенный шрифт (rem тоже масштабируется, пропорции сохраняются) ---- */
html.a11y-size-1 { font-size: calc(16px * (19 / 17)); }
html.a11y-size-2 { font-size: calc(16px * (21 / 17)); }
html.a11y-size-3 { font-size: calc(16px * (24 / 17)); }

/* ==========================================================================
   База
   ========================================================================== */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; max-width: 75ch; }

ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--green-700);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  font-weight: 500;
}
.skip-link:focus { left: 0; color: #fff; }

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

main.main { min-height: 55vh; }

/* ==========================================================================
   Шапка
   ========================================================================== */

.site-header {
  background: #f4f1ea;
  color: var(--blue-900);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-900);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; color: var(--blue-900); }

.logo__img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(12%) sepia(38%) saturate(1600%) hue-rotate(196deg) brightness(95%) contrast(95%);
}

.logo__text { display: flex; flex-direction: column; line-height: 1.05; }

.logo__title {
  display: block;
  font-size: 1.52rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}
.logo__subtitle {
  display: block;
  font-size: 0.67rem;
  font-weight: 400;
  margin-top: 1px;
  line-height: 1;
  font-family: var(--font);
}

.main-nav { margin-left: auto; }

.main-nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.main-nav__list a {
  display: block;
  padding: 10px 16px;
  border-radius: 2px;
  color: var(--blue-900);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  }
.main-nav__list a:hover {
  color: var(--blue-900);
  text-decoration: none;
}
.main-nav__list a.is-active {
  color: var(--blue-900);
}
.main-nav__list a.is-active::after {
  content: "";
  position: absolute;
  left: 16px;
  width: 1.6em;
  bottom: 6px;
  height: 2px;
  background: var(--green-600);
}

.main-nav__phone a {
  font-weight: 500;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: none;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-900);
}

/* Панель доступности (подвал, справа от копирайта).
   margin-left: auto — при переносе на узком экране блок прижимается
   вправо, а не остаётся под копирайтом по левому краю. */
.accessibility-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}

.a11y-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  line-height: 1;
  }
.a11y-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.a11y-btn[aria-pressed="true"] {
  background: var(--green-700);
  border-color: var(--green-700);
}

/* ==========================================================================
   Кнопки
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
}
.btn:hover { text-decoration: none; }

.btn--accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
html.a11y-contrast .btn--accent { background: var(--green-700); color: #fff; border-color: #fff; }

.btn--outline,
.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--sm { padding: 8px 16px; font-size: 0.9rem; }

.link-more { font-weight: 500; color: var(--green-700); }
html.a11y-contrast .link-more { color: var(--green-500); }

.news-more { margin-top: 24px; }
.news-more a { font-size: 1.05rem; }

/* ==========================================================================
   Секции
   ========================================================================== */

.section { padding: 48px 0; }
.section--bottom-tight { padding-bottom: 12px; }
.section--top-tight { padding-top: 12px; }

.section__title {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--green-600);
}
.section__title--blue { color: var(--blue-800); }
.section__title--push { margin-top: 56px; }

.page-head {
  background:
    radial-gradient(700px 300px at 85% -20%, rgba(76, 175, 80, 0.16), transparent 60%),
    linear-gradient(120deg, var(--blue-900), var(--blue-700));
  color: #fff;
  padding: 56px 0 48px;
}
.page-head h1 { color: #fff; margin-bottom: 10px; font-weight: 700; }
.page-head__subtitle { margin: 0; font-size: 1.15rem; color: rgba(255, 255, 255, 0.85); }

.breadcrumbs {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}
.breadcrumbs a { color: rgba(255, 255, 255, 0.75); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { margin: 0 6px; opacity: 0.5; }

.news-meta { color: rgba(255, 255, 255, 0.7); }
.news-meta--detail { color: var(--text-muted); margin-top: -10px; margin-bottom: 24px; }

.news-detail__title {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 10px;
}
.news-detail__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 2px;
  background: var(--green-600);
}

/* ==========================================================================
   Hero на главной
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 48px 0 40px;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(76, 175, 80, 0.18), transparent 60%),
    linear-gradient(120deg, var(--blue-900), var(--blue-800));
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: max(20px, calc((100% - 1200px) / 2 + 20px));
  width: min(58%, 760px);
  background: url('/images/1.jpg') no-repeat right center / cover;
  opacity: 0.38;
  pointer-events: none;
  z-index: 0;
  filter: grayscale(1) sepia(0.35) hue-rotate(65deg) contrast(1.05) brightness(1.05);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
}

.hero .container { position: relative; z-index: 1; }

.hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 16px; font-weight: 700; }
.hero .text-accent { color: #fff; }
.hero__subtitle { font-size: 1.25rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 28px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   Важное
   ========================================================================== */

.important-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.important-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.important-card__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
}
.important-card__body h3 {
  color: var(--blue-800);
  font-size: 1.1rem;
  margin: 2px 0 6px;
}
.important-card__body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}
.important-card__body a { color: var(--green-700); font-weight: 500; white-space: nowrap; }
.important-card__body a:hover { text-decoration: underline; }

/* ==========================================================================
   Контактные карточки
   ========================================================================== */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.contact-card h3 { margin-bottom: 8px; font-size: 1.05rem; color: var(--blue-800); }
.contact-card a,
.contact-card a:hover { color: inherit; font-weight: 400; text-decoration: none; }

/* ==========================================================================
   Новости
   ========================================================================== */

.news-list { display: grid; gap: 16px; }

.news-accordion { display: grid; gap: 16px; }
.news-acc__year {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.news-acc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 18px 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-800);
  position: relative;
  }
.news-acc__head:hover { color: var(--green-700); }
.news-acc__arrow {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 3px solid var(--green-600);
  border-bottom: 3px solid var(--green-600);
  transform: rotate(45deg);
  margin-top: -6px;
}
.news-acc__year.is-open .news-acc__arrow {
  transform: rotate(-135deg);
  margin-top: 6px;
}
.news-acc__body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.news-acc__body .news-item {
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  margin: 0;
}

.news-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--green-600);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.news-item__date { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 4px; }
.news-item__title { font-size: 1.2rem; margin-bottom: 8px; }
.news-item__title a { color: var(--blue-800); }
.news-item__title a:hover { color: var(--green-700); }
.news-item__excerpt { color: var(--text-muted); font-size: 0.98rem; margin-bottom: 10px; }

.news-item--compact { padding: 18px 18px; border-left: 0; }
.news-item--compact .news-item__date { margin-bottom: 2px; }
.news-item--compact .news-item__title { font-size: 1.05rem; margin-bottom: 0; }

/* ==========================================================================
   Контакты
   ========================================================================== */

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
.contacts-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.contacts-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.contacts-info .contact-block,
.contacts-row .contact-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.contacts-map { display: flex; flex-direction: column; }
.contacts-map .map-card { flex: 1; }

.map-placeholder {
  background: var(--surface-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 90px 24px;
  text-align: center;
  color: var(--text-muted);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Документы
   ========================================================================== */

.doc-search {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  max-width: 560px;
}
.doc-search__field { flex: 1; }
.doc-search input[type="search"] {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: 2px;
  font-size: 1rem;
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
}

.doc-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.doc-category-link {
  padding: 8px 16px;
  border-radius: 20px;
  border: 2px solid var(--border);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  }
.doc-category-link:hover { border-color: var(--green-600); color: var(--green-700); text-decoration: none; }
.doc-category-link.is-active {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: #fff;
}

.doc-group {
  display: grid;
  gap: 14px;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.doc-card:hover { border-color: var(--green-500); }

.doc-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 2px;
  background: var(--blue-700);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.doc-card__body { flex: 1; min-width: 0; }
.doc-card__title { font-size: 1.05rem; margin-bottom: 4px; }
.doc-card__title a { color: var(--blue-800); }
.doc-card__title a:hover { color: var(--green-700); }
.doc-card__desc { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 6px; }
.doc-card__meta { color: var(--text-muted); font-size: 0.82rem; margin: 0; }

.doc-empty { color: var(--text-muted); }

/* Пагинация (квадратные кнопки с цифрами) */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}
.pagination__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--blue-800);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
a.pagination__link:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.pagination__link.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  cursor: default;
}

/* ==========================================================================
   Prose (содержимое страниц)
   ========================================================================== */

.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  line-height: 1.7;
}
.prose h2 { margin-top: 1.4em; color: var(--blue-800); }
.prose h3 { margin-top: 1.2em; color: var(--blue-800); }
.prose a { font-weight: 500; }
.prose--plain { white-space: pre-line; }

/* ==========================================================================
   Подвал
   ========================================================================== */

.site-footer {
  background: var(--blue-900);
  color: rgba(255, 255, 255, 0.88);
  margin-top: 56px;
}

.site-footer__grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  padding: 40px 20px 24px;
}
.site-footer__col:first-child { flex: 1.2; margin-right: 8px; }
.site-footer__col:nth-child(2) { margin-right: 80px; }
.site-footer__col:last-child { margin-left: auto; }

.site-footer__title {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 8px;
}
.site-footer__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: var(--green-500);
}

.site-footer__list { list-style: none; padding: 0; margin: 0; }
.site-footer__list li { margin-bottom: 8px; }
.site-footer__list a { color: rgba(255, 255, 255, 0.85); }
.site-footer__list a:hover { color: var(--green-500); }

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}
.site-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center; /* копирайт по центру ряда кнопок панели доступности */
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-footer__bottom p { margin: 0; }

/* ==========================================================================
   Компоненты контентных страниц (О компании, Услуги, Контакты)
   ========================================================================== */

.section--content { padding: 40px 0 64px; }
.section--content h2 { color: var(--blue-800); margin-top: 1.4em; }
.section--content h2:first-child { margin-top: 0; }
.section--content .section__title { margin-top: 0; }
.section--content .section__title--push { margin-top: 48px; }

/* Цифры (О компании) */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
}
.stat-card__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.stat-card__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
}
.stat-card__num {
  height: 44px;
  line-height: 44px;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue-700);
}
.stat-card__label {
  display: block;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 6px;
}

/* Две колонки: текст + панель */
.two-col {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: stretch;
  margin-bottom: 40px;
}
.two-col h2 { margin-top: 0; }

.info-panel {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.info-panel__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: auto;
}
.info-panel__title {
  color: var(--blue-800);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 20px;
  position: relative;
  padding-bottom: 12px;
}
.info-panel__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green-500), var(--green-600));
}

.person-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.person-card__avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--surface-alt), #dce8f6);
  border: 2px solid var(--green-500);
  font-size: 3rem;
  line-height: 1;
}
.person-card__avatar--photo {
  overflow: hidden;
  height: auto;
  aspect-ratio: 1 / 1;
}
.person-card__avatar--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.person-card__avatar--initials {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--blue-800);
}
.person-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.person-card__role {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--blue-800);
  text-align: center;
  position: relative;
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.person-card__role::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green-500), var(--green-600));
}
.person-card__name {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

/* Направления деятельности */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  }
.feature-item:hover {
  
  border-color: var(--green-500);
}
.feature-item__icon {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  width: 44px;
  height: 44px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  margin: 0 12px 8px 0;
  line-height: 1;
}
.feature-item__title { display: inline; font-size: 1.05rem; color: var(--blue-800); margin: 0 0 6px; }
.feature-item__text { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 10px; }

/* Услуги */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.service-card:hover { border-color: var(--green-500); }
.service-card__icon {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  width: 44px;
  height: 44px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  margin: 0 12px 8px 0;
  line-height: 1;
}
.service-card__title { display: inline; color: var(--blue-800); font-size: 1.15rem; margin: 0; }
.service-card__list { margin: 10px 0 0; color: var(--text-muted); font-size: 0.95rem; }
.service-card__list li { margin-bottom: 6px; }
.service-card__list li::marker { color: var(--green-600); }

/* CTA-баннер */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 44px;
  background:
    radial-gradient(600px 260px at 90% -40%, rgba(76, 175, 80, 0.22), transparent 60%),
    linear-gradient(120deg, var(--blue-900), var(--blue-700));
  color: #fff;
  border-radius: var(--radius);
  padding: 32px 36px;
}
.cta-banner__body { flex: 1; min-width: 240px; }
.cta-banner h3 { color: #fff; margin: 0 0 6px; font-size: 1.35rem; }
.cta-banner p { color: rgba(255, 255, 255, 0.85); margin: 0; }
.cta-banner .btn--ghost {
  background: #fff;
  border-color: #fff;
  color: var(--blue-800);
}
.cta-banner .btn--ghost:hover {
  background: var(--surface-alt);
  border-color: #fff;
  color: var(--blue-900);
  text-decoration: none;
}

/* Контакты */
.contacts-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--surface);
}
.contacts-list .contact-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  padding: 26px 22px;
  border-right: 1px solid var(--border);
  height: 100%;
}
.contacts-list .contact-block:last-child {
  border-right: 0;
}
.contact-block__header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-block__header .contact-block__icon {
  margin: 0;
  width: 38px;
  height: 38px;
  border-radius: 2px;
}
.contact-block__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding-left: 0;
  width: 100%;
}
.contact-block__header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-800);
}
.contact-block__body p {
  margin: 0;
  line-height: 1.6;
  word-break: break-word;
}
.contact-block__body a {
  color: var(--green-700);
  font-weight: 400;
  word-break: break-word;
}
.contact-block__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
}
.contact-block__body h2 {
  margin: 0 0 14px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-800);
  position: relative;
  padding-bottom: 10px;
}
.contact-block__body h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green-500), var(--green-600));
}
.map-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.map-frame { width: 100%; overflow: hidden; border-radius: var(--radius); }
.map-frame iframe { display: block; width: 100%; border: 0; }
.map-link { margin: 14px 0 0; font-size: 0.95rem; }
.map-card h2 {
  color: var(--blue-800);
  font-size: 1.15rem;
  margin: 0 0 48px;
  position: relative;
  padding-bottom: 12px;
}
.map-card h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green-500), var(--green-600));
}
/* Метка адреса: PNG из набора иконок, перекрашенный в фирменный зелёный
   (#2e7d32) — на светлом фоне placeholder'а.
   В высококонтрастном режиме фон становится почти чёрным (#0a0a0a), а
   зелёный #2e7d32 там не читается — подменяем на осветлённый вариант
   (контраст ~4.4:1 вместо ~2.1:1), как и у прежней SVG-метки. */
.map-pin img { display: inline-block; vertical-align: -4px; }
html.a11y-contrast .map-pin img { content: url(/images/icons/pin-alt.svg); }

/* Иконки-изображения в зелёных плашках контента: без baseline-отступа
   (иначе grid place-items: center смещает иконку вниз на 3–4px). */
.important-card__icon img,
.stat-card__icon img,
.feature-item__icon img,
.service-card__icon img,
.contact-block__icon img { display: block; }

/* ==========================================================================
   Адаптивность
   ========================================================================== */

@media (max-width: 1180px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts-list { grid-template-columns: repeat(2, 1fr); }
  .contacts-list .contact-block {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .contacts-list .contact-block:nth-child(2n) {
    border-right: 0;
  }
  .contacts-list .contact-block:nth-child(3),
  .contacts-list .contact-block:nth-child(4) {
    border-bottom: 0;
  }
}

@media (max-width: 1024px) {
  :root { --header-h: 64px; }
}

@media (max-width: 900px) {
  .site-header__inner { flex-wrap: wrap; }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .main-nav__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--blue-900);
    padding: 10px 20px 20px;
    gap: 2px;
    display: none;
  }
  .main-nav__list.is-open { display: flex; }

  .contacts-grid { grid-template-columns: 1fr; }

  .site-footer__col:first-child { flex-basis: 100%; margin-right: 0; }

  .two-col { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .important-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .contacts-info { grid-template-columns: 1fr; }
  .contacts-row { grid-template-columns: 1fr; }
  .contacts-list { grid-template-columns: 1fr; }
  .contacts-list .contact-block {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .contacts-list .contact-block:last-child {
    border-bottom: 0;
  }
  .site-footer__col { flex-basis: 100%; margin-right: 0; }
  .doc-card { flex-wrap: wrap; }
  .doc-card .btn { width: 100%; }
  .pagination__link { width: 36px; height: 36px; }
  .map-frame iframe { height: 320px; }

  /* Фото на мобильных — слабое полноэкранное подложенное пятно снизу, чтобы не мешать тексту */
  .hero::before {
    width: 100%;
    max-width: none;
    right: 0;
    background-position: right bottom;
    opacity: 0.24;
    -webkit-mask-image: linear-gradient(170deg, transparent 15%, #000 70%);
    mask-image: linear-gradient(170deg, transparent 15%, #000 70%);
  }
  .hero { padding: 40px 0 32px; }
  .prose { padding: 24px 20px; }
  .page-head { padding: 40px 0 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 24px 20px; }
}