/**
 * WordPress: добавьте класс `dorindex-site` к тегу body (см. README) или к обёртке
 * основного содержимого через body_class, чтобы снизить конфликт с глобальными стилями темы.
 */
:root {
  --infra-navy: #0a1628;
  --scan-cyan: #00e5ff;
  --white: #ffffff;
  --surface-gray: #f4f6f8;
  --body-text: #697386;
  --border: #e0e4e8;
  --alert: #ff3b30;
  --ink: #102033;
  --radius: 16px;
  --container: 1180px;
  --grid-step: 68px;
  --grid-line: rgba(0, 229, 255, 0.14);
  --grid-line-light: rgba(0, 229, 255, 0.1);
  --eyebrow-gap: 14px;
}

.dorindex-site,
.dorindex-site * {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(88px + env(safe-area-inset-top, 0px));
}

#request {
  scroll-margin-top: calc(88px + env(safe-area-inset-top, 0px));
}

body.dorindex-site {
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--body-text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

/* WordPress: если класс на body задать нельзя, оберните разметку в
   <div class="dorindex-site dorindex-site--shell">…</div> */
.dorindex-site--shell {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--body-text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

.dorindex-site a {
  color: inherit;
  text-decoration: none;
}

.dorindex-site img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 84px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  min-width: 0;
  max-width: 100%;
  /* было 24px; +10 pt ≈ +13.33px */
  --brand-logo-size: calc(24px + 10pt);
  /* половина условной толщины штриха крупного начертания (~6% кегля) — зазор от слова «ДорИндекс» к линии и от линии к дескриптору, одинаковый */
  --brand-scanline-gap: calc(var(--brand-logo-size) * 0.06);
}

.brand-mark {
  align-self: center;
  width: max-content;
  max-width: 100%;
  color: var(--infra-navy);
  font-weight: 800;
  font-size: var(--brand-logo-size);
  letter-spacing: -0.04em;
  text-transform: none;
  line-height: 1;
  display: block;
  white-space: nowrap;
}

.brand-scanline {
  align-self: stretch;
  display: block;
  width: 100%;
  min-width: 160px;
  height: 2px;
  margin: var(--brand-scanline-gap) 0;
  background: linear-gradient(90deg, transparent, var(--scan-cyan), transparent);
  opacity: 0.8;
}

.brand-descriptor {
  align-self: stretch;
  margin-top: 0;
  color: var(--body-text);
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  overflow-wrap: break-word;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--infra-navy);
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  flex-shrink: 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}

/* На ширине 920–1100 px пункты меню и кнопка не переносятся на две строки, сжимается дескриптор логотипа */
@media (max-width: 1100px) {
  .nav {
    gap: 16px;
  }
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #00788a;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--infra-navy);
  font-size: 0;
  line-height: 0;
}

/* Три полоски почти на всю кнопку (символ ≡ плохо масштабируется) */
.menu-toggle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2.5px;
  margin: -1.25px 0 0 -10px;
  border-radius: 2px;
  background: currentColor;
  box-shadow:
    0 -7px 0 currentColor,
    0 7px 0 currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(10, 22, 40, 0.98) 0%, rgba(10, 22, 40, 0.9) 44%, rgba(10, 22, 40, 0.64) 100%),
    radial-gradient(circle at 72% 28%, rgba(0, 229, 255, 0.2), transparent 32%),
    var(--infra-navy);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-step) var(--grid-step);
  opacity: 0.16;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--grid-step) * 3);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--scan-cyan), transparent);
  opacity: 0.75;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  /* Без жёстких минимумов: сумма 540+360 px превышала контейнер при ширине 920–1000 px и при масштабировании */
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.7fr);
  align-items: stretch;
  gap: clamp(32px, 5vw, 88px);
  min-height: min(660px, calc(100svh - 84px));
  padding: clamp(32px, 5vh, 96px) 0;
}

.hero-inner > .hero-side {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-width: 0;
  min-height: 0;
  /* Колонка не выше первого экрана: карточка с картинкой не выталкивает показатели */
  max-height: calc(100svh - 84px - 24px);
  overflow: hidden;
}

.hero-news {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-news .eyebrow,
.hero-news .carousel-dots {
  flex: 0 0 auto;
}

.hero-news .carousel {
  --carousel-per-view: 1;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.hero-news .card {
  background: #121e32;
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
}

.hero-news .card:hover {
  transform: none;
}

.hero-news h3 {
  color: var(--white);
}

.hero-news .news-date,
.hero-news .card-more {
  color: var(--scan-cyan);
}

.hero-news .carousel-teaser {
  display: -webkit-box;
  flex: 0 0 auto;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Одна карточка ровно на ширину дорожки: gap и padding сдвигали snap в Safari
   и первый щелчок оставлял край соседнего слайда. */
.hero-news .carousel-track {
  flex: 1 1 auto;
  gap: 0;
  height: 100%;
  min-height: 0;
  padding: 0;
  margin: 0;
  scroll-behavior: auto;
  scroll-padding: 0;
  scroll-snap-type: none;
}

.hero-news .carousel-item {
  flex: 0 0 100%;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  min-height: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero-news .carousel-item > a {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.hero-news .news-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex: 0 0 auto;
  margin: 14px 36px 0;
}

.hero-news .news-card__foot .card-more {
  margin: 0;
}

.hero-news .news-card img {
  flex: 1 1 auto;
  width: 100%;
  height: clamp(56px, 14svh, 150px);
  min-height: 56px;
  max-height: min(150px, 22svh);
  object-fit: cover;
  object-position: center;
}

.hero-news h3,
.hero-news .news-date,
.hero-news .card-more,
.hero-news .carousel-teaser {
  flex: 0 0 auto;
  margin-left: 36px;
  margin-right: 36px;
}

.metric-panel {
  flex: 0 0 auto;
}

@media (max-height: 820px) {
  .hero-news .card {
    padding: 14px 16px 12px;
  }

  .hero-news .carousel-teaser {
    -webkit-line-clamp: 2;
  }

  .hero-news h3 {
    font-size: 20px;
  }

  .hero .metric-panel {
    padding: 14px 16px;
  }

  .hero .metric-row {
    padding: 10px 0;
  }
}

.hero-news .carousel-item > a .card-more {
  margin-top: auto;
}

.hero-news .carousel-btn--prev {
  left: 8px;
}

.hero-news .carousel-btn--next {
  right: 8px;
}

.hero-news .carousel-dot {
  background: rgba(255, 255, 255, 0.28);
}

.hero-inner--solo {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  padding: 72px 0 64px;
}

/* Услуги, решения, методика, контакты: панель по содержимому, без пустого поля снизу */
.hero-inner:not(:has(.hero-side)):not(:has(.hero-actions)) {
  min-height: 0;
  align-items: start;
}

/* ИнфраГИС: высота по тексту слева, без минимума на весь экран.
   Главная тоже содержит кнопки, но её высоту задаёт колонка новостей. */
.hero-inner:has(.hero-actions):not(:has(.hero-side)) {
  min-height: 0;
}

.eyebrow {
  margin: 0 0 var(--eyebrow-gap);
  color: var(--scan-cyan);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow + h1,
.eyebrow + h2 {
  margin-top: 0;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--infra-navy);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(42px, 5.1vw, 72px);
  max-width: 820px;
  text-wrap: balance;
}

/* Короткий заголовок в две строки на любой ширине: при 72px «дорожных данных» не помещалось в колонку */
.hero h1.hero-title--compact {
  font-size: clamp(42px, 4.6vw, 64px);
}

.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  overflow-wrap: break-word;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.btn-primary {
  background: var(--scan-cyan);
  color: var(--infra-navy);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-outline {
  background: var(--white);
  color: var(--infra-navy);
  border-color: var(--border);
}

.metric-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 24px;
}

.metric-row {
  display: grid;
  grid-template-columns: minmax(150px, max-content) minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.metric-row:last-child {
  border-bottom: 0;
}

.metric-value {
  color: var(--scan-cyan);
  font-size: clamp(28px, 2.4vw, 34px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
  min-width: 0;
}

.metric-value.metric-value--icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  white-space: normal;
  font-size: 0;
  line-height: 0;
}

.metric-value.metric-value--icon svg {
  width: clamp(30px, 2.8vw, 38px);
  height: clamp(30px, 2.8vw, 38px);
  flex-shrink: 0;
  display: block;
}

.metric-row:has(.metric-value--icon) {
  grid-template-columns: minmax(40px, max-content) minmax(0, 1fr);
  align-items: center;
}

.metric-label {
  color: rgba(255, 255, 255, 0.8);
  min-width: 0;
  overflow-wrap: break-word;
}

.section {
  position: relative;
  padding: 92px 0;
  background-color: var(--white);
}

.section:not(.section-gray):not(.cta-band) {
  background-image:
    linear-gradient(var(--grid-line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-light) 1px, transparent 1px);
  background-size: var(--grid-step) var(--grid-step);
}

.section-gray {
  background-color: var(--surface-gray);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(260px, 0.64fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 38px;
}

.section-header h2 {
  font-size: clamp(32px, 4vw, 52px);
}

/* Split-блоки («Как работаем», «Заявка», «Принцип»): тот же размер и ритм, что в section-header */
.split > div > h2 {
  font-size: clamp(32px, 4vw, 52px);
}

.split > div > h2 + p {
  margin: var(--eyebrow-gap) 0 0;
  max-width: 680px;
}

.section-header p:not(.eyebrow) {
  margin: 0;
  max-width: 680px;
  min-width: 0;
  overflow-wrap: break-word;
}

.section-header .eyebrow {
  margin: 0 0 var(--eyebrow-gap);
}

.section-header > div:last-child > p + p {
  margin-top: 14px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  min-width: 0;
}

.card:hover {
  border-color: var(--scan-cyan);
  transform: translateY(-2px);
}

.service-card {
  cursor: pointer;
}

.service-card:focus-visible {
  outline: 3px solid rgba(0, 229, 255, 0.35);
  outline-offset: 3px;
}

.segment-lead-card {
  cursor: pointer;
}

.segment-lead-card:focus-visible {
  outline: 3px solid rgba(0, 229, 255, 0.35);
  outline-offset: 3px;
}

.dorindex-site .card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--scan-cyan);
  font-weight: 800;
}

.dorindex-site .card .icon svg {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  flex-shrink: 0;
  display: block;
}

.card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  overflow-wrap: break-word;
}

.card p {
  margin: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--infra-navy);
  font-size: 12px;
  font-weight: 600;
}

.card-more {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  color: var(--infra-navy);
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--scan-cyan);
  line-height: 1.3;
}

.service-card:hover .card-more,
.segment-lead-card:hover .card-more,
.news-card:hover .card-more {
  color: #00788a;
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  padding: 32px;
}

.service-modal.is-open {
  display: grid;
  place-items: center;
}

.service-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.78);
  backdrop-filter: blur(10px);
}

.service-modal__panel {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: min(86vh, 860px);
  overflow: auto;
  padding: clamp(28px, 5vw, 56px);
  color: var(--body-text);
  background-color: var(--white);
  background-image:
    linear-gradient(var(--grid-line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-light) 1px, transparent 1px);
  background-size: var(--grid-step) var(--grid-step);
  border: 1px solid var(--scan-cyan);
  border-radius: 28px;
}

.service-modal__close {
  position: sticky;
  top: 0;
  float: right;
  width: 44px;
  height: 44px;
  margin: -16px -16px 16px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--infra-navy);
  background: var(--white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.service-modal__content {
  max-width: 880px;
}

.service-modal__content h2 {
  margin-bottom: 22px;
  font-size: clamp(34px, 5vw, 64px);
}

.service-modal__content h3 {
  margin: 32px 0 14px;
  font-size: 24px;
}

.service-modal__content p,
.service-modal__content li {
  font-size: 18px;
  line-height: 1.7;
}

.service-modal__content ul {
  padding-left: 22px;
}

body.dorindex-site.modal-open {
  overflow: hidden;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: 48px;
  align-items: start;
}

.process {
  display: grid;
  gap: 14px;
}

.process-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.dorindex-site .process-item__icon {
  flex: 0 0 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--scan-cyan);
}

/* Стабильный размер инлайн-SVG: без явных max и overflow flex-контейнер иногда даёт раздутие иконки */
.dorindex-site .process-item__icon svg {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  flex-shrink: 0;
  display: block;
}

.process-item__content {
  flex: 1;
  min-width: 0;
}

.section#request .data-table {
  margin-top: 18px;
}

.data-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.data-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.data-row:last-child {
  border-bottom: 0;
}

.data-row strong {
  color: var(--infra-navy);
  font-variant-numeric: tabular-nums;
}

.cta-band {
  color: var(--white);
  background: var(--infra-navy);
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.74);
}

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 18px 0 calc(18px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.92), rgba(10, 22, 40, 0.98));
  color: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(0, 229, 255, 0.22);
  box-shadow: 0 -8px 32px rgba(10, 22, 40, 0.35);
  transition: opacity 0.38s ease, transform 0.38s ease;
}

.cookie-consent__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.cookie-consent__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  overflow-wrap: break-word;
}

.cookie-consent__text a {
  color: var(--scan-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.cookie-consent--actions-out .cookie-consent__actions {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.cookie-consent--panel-out {
  opacity: 0;
  transform: translateY(110%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent,
  .cookie-consent__actions {
    transition-duration: 0.01ms;
  }
}

.form-card {
  --form-checkbox-stack-gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--infra-navy);
  font-size: 13px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 15px;
  color: var(--infra-navy);
  background: var(--white);
  font: inherit;
}

textarea {
  min-height: 126px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(0, 229, 255, 0.3);
  border-color: var(--scan-cyan);
}

.captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.captcha-image {
  flex: 0 0 auto;
  width: 160px;
  height: 56px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f4f7fb;
}

.captcha-refresh {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  color: #00788a;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.captcha-row input {
  flex: 1 1 160px;
  min-width: 0;
  max-width: 220px;
  letter-spacing: 0.12em;
}

.captcha-row input::placeholder {
  letter-spacing: normal;
}

.checkbox > span {
  flex: 1 1 0;
  min-width: 0;
  overflow-wrap: break-word;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  margin-top: var(--form-checkbox-stack-gap, 14px);
  color: var(--body-text);
  font-size: 13px;
  line-height: 1.45;
}

.checkbox input[type="checkbox"] {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin: 2px 0 0;
  align-self: flex-start;
  /* Явный зазор до текста (margin надёжнее gap в Safari/iOS для label) */
  margin-inline-end: 14px;
}

.checkbox a {
  color: var(--infra-navy);
  border-bottom: 1px solid var(--scan-cyan);
}

.form-card > button[type="submit"].btn {
  display: flex;
  margin-top: var(--form-checkbox-stack-gap, 14px);
  margin-left: auto;
  margin-right: auto;
}

.form-note {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--body-text);
  overflow-wrap: break-word;
}

.form-status {
  margin-top: 14px;
  color: var(--infra-navy);
  font-weight: 600;
  overflow-wrap: break-word;
}

.form-card.is-sent .form-status {
  margin-top: 0;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 16px;
  padding: 12px 14px;
}

.form-card.is-sent .form-grid,
.form-card.is-sent label.checkbox,
.form-card.is-sent .form-note,
.form-card.is-sent button[type="submit"],
.form-card.is-sent .hp-field {
  display: none;
}

.legal {
  max-width: 860px;
}

.legal h1 {
  font-size: clamp(34px, 5vw, 58px);
  margin-top: 0;
  margin-bottom: 22px;
  max-width: 100%;
  overflow-wrap: break-word;
}

.legal h2 {
  margin-top: 42px;
  font-size: 28px;
  max-width: 100%;
  overflow-wrap: break-word;
}

.legal p,
.legal li {
  color: var(--body-text);
  overflow-wrap: break-word;
}

.news-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.news-grid {
  align-items: start;
}

.news-card img,
.news-cover,
.news-cover-preview,
.news-body img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0 0 16px;
}

.news-card img {
  max-height: 180px;
  object-fit: cover;
}

.news-date {
  margin: 0 0 10px;
  color: var(--body-text);
  font-size: 13px;
  font-weight: 600;
}

/* Список новостей: дата и заголовок перед формой заявки */
.news-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.news-list-head .eyebrow {
  margin: 0;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list a {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 8px 24px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
}

.news-list__date {
  color: var(--body-text);
  font-size: 14px;
  font-weight: 600;
}

.news-list__title {
  color: var(--infra-navy);
  font-weight: 600;
}

.news-list a:hover .news-list__title {
  text-decoration: underline;
}

@media (max-width: 620px) {
  .news-list a {
    grid-template-columns: 1fr;
  }
}

/* Карусель новостей на главной */
.section-news {
  padding: calc(92px - var(--grid-step)) 0;
}

.carousel {
  --carousel-gap: 18px;
  --carousel-per-view: 3;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: var(--carousel-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px;
  margin: -2px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 calc((100% - var(--carousel-gap) * (var(--carousel-per-view) - 1)) / var(--carousel-per-view));
  display: flex;
  scroll-snap-align: start;
}

.carousel-item > a {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.carousel-item h3 {
  margin: 0 0 10px;
}

.carousel-teaser {
  flex: 1 1 auto;
  margin: 0;
  overflow-wrap: break-word;
}

.carousel-item .card-more {
  align-self: flex-start;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--infra-navy);
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 6px 18px rgba(10, 22, 40, 0.12);
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.carousel-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.carousel-btn--prev {
  left: -22px;
}

.carousel-btn--prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.carousel-btn--next {
  right: -22px;
}

.carousel-btn--next::before {
  transform: translate(-70%, -50%) rotate(45deg);
}

.carousel-btn:hover {
  border-color: var(--scan-cyan);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.carousel-dots[hidden] {
  display: none;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot[aria-selected="true"] {
  background: var(--scan-cyan);
  transform: scale(1.2);
}

@media (max-width: 920px) {
  .carousel {
    --carousel-per-view: 2;
  }

  .carousel-btn--prev {
    left: -8px;
  }

  .carousel-btn--next {
    right: -8px;
  }
}

@media (max-width: 620px) {
  .carousel {
    --carousel-per-view: 1;
  }
}

.news-article .news-date {
  margin-bottom: var(--eyebrow-gap);
}

.news-article h1 {
  margin-bottom: 22px;
}

.news-body h2 {
  margin-top: 42px;
  font-size: 28px;
}

.news-body h3 {
  margin-top: 28px;
  font-size: 22px;
}

.news-body p,
.news-body li {
  color: var(--body-text);
  overflow-wrap: break-word;
}

.admin-narrow {
  max-width: 560px;
}

.admin-narrow h1,
.news-editor-form h1,
.admin-list-head {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 52px);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.admin-toolbar form {
  margin: 0;
}

.admin-flash {
  padding: 12px 14px;
  border-radius: 14px;
  margin: 0 0 18px;
}

.admin-flash--ok {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--infra-navy);
}

.admin-flash--error {
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid var(--alert);
  color: var(--alert);
}

.admin-narrow .form-card .btn {
  margin-top: 18px;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.editor-toolbar .btn {
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
}

.editor-upload-btn {
  position: relative;
  overflow: hidden;
}

.editor-upload-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
}

.editor-canvas {
  min-height: 280px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 15px;
  color: var(--infra-navy);
  background: var(--white);
}

.editor-canvas:focus {
  outline: 2px solid rgba(0, 229, 255, 0.3);
  border-color: var(--scan-cyan);
}

.admin-actions {
  margin-top: 18px;
}

.admin-delete {
  margin-top: 24px;
}

.admin-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.site-footer {
  background: var(--surface-gray);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--infra-navy);
  font-size: 14px;
  font-weight: 600;
}

.site-footer > .container.footer-links {
  justify-content: center;
  gap: 12px 20px;
  padding: 20px 0 28px;
}

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

.footer-copyright {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 100%;
  overflow-wrap: break-word;
}

.channel-cta {
  display: flex;
  align-items: center;
  gap: 28px;
}

.channel-cta--aside {
  margin-top: 32px;
}

.channel-cta__qr {
  flex: 0 0 auto;
  display: block;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.channel-cta__qr img {
  display: block;
  width: 120px;
  height: 120px;
}

.channel-cta h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 32px);
}

.channel-cta p {
  margin: 10px 0 0;
  max-width: 520px;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 86px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
  }

  .nav.is-open {
    display: flex;
  }

  .service-modal {
    padding: 16px;
  }

  .hero-inner,
  .split,
  .section-header,
  .footer-grid,
  .data-row {
    grid-template-columns: 1fr;
  }

  .data-row {
    gap: 10px;
  }

  .header-inner {
    gap: 12px;
  }

  .nav .btn {
    align-self: stretch;
    width: 100%;
    max-width: 100%;
  }

  .hero-inner {
    min-height: auto;
    padding: 56px 0 64px;
  }

  .hero-inner--solo {
    padding: 56px 0 48px;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-inner > .hero-side {
    gap: 20px;
    max-height: none;
    overflow: visible;
  }

  .metric-row {
    grid-template-columns: minmax(128px, max-content) minmax(0, 1fr);
  }

  .metric-row:has(.metric-value--icon) {
    grid-template-columns: minmax(40px, max-content) minmax(0, 1fr);
  }
  .cards,
  .cards.two {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .channel-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer > .container.footer-links {
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .hero h1,
  .hero h1.hero-title--compact {
    font-size: clamp(28px, 8vw, 48px);
  }

  .legal h1 {
    font-size: clamp(26px, 7vw, 40px);
  }

  .legal h2 {
    font-size: clamp(22px, 5.5vw, 26px);
  }

  .cta-band .section-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-band .section-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 64px 0;
  }

  .section-news {
    padding: 24px 0;
  }

  .service-modal {
    padding: 12px;
  }

  .service-modal__panel {
    max-height: calc(100vh - 24px);
    border-radius: 20px;
  }

  .service-modal__content p,
  .service-modal__content li {
    font-size: 16px;
  }

  .form-grid,
  .data-row,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .metric-row {
    gap: 10px;
  }

  .metric-label {
    max-width: 100%;
  }

  .card,
  .form-card {
    padding: 22px;
  }
}

/* ==========================================================================
   ИнфраГИС: скриншоты интерфейса и блоки возможностей (infragis.html)
   ========================================================================== */

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* Заголовок и описание одной высоты — выравнивание по центру, а не по нижнему краю */
.section-header--center {
  align-items: center;
}

.shot-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.shot-grid--aside {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: stretch;
}

/* Одна высота снимков без subgrid: в Safari subgrid раздувает блок на всю страницу */
.shot-grid--aside .shot {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.shot-grid--aside .shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  object-position: center center;
}

.shot-grid--aside .shot:first-child img {
  object-position: left center;
}

/* Две равные колонки: оба снимка в пропорциях левого, правый подрезается снизу */
.shot-grid--pair .shot img {
  aspect-ratio: 1760 / 934;
  object-fit: cover;
  object-position: center top;
}

.shot-grid--aside .shot figcaption {
  align-self: start;
}

.shot {
  margin: 0;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.shot:hover {
  border-color: var(--scan-cyan);
}

.shot img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: var(--infra-navy);
}

.shot figcaption {
  margin-top: 14px;
  padding: 0 4px 2px;
  color: var(--body-text);
  font-size: 14px;
  line-height: 1.5;
}

.shot figcaption strong {
  display: block;
  margin-bottom: 4px;
  color: var(--infra-navy);
  font-size: 15px;
}

.feature-table {
  margin-top: 18px;
}

.shot-grid + .feature-table {
  margin-top: 18px;
}

.feature-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.feature-row:last-child {
  border-bottom: 0;
}

.feature-row strong {
  color: var(--infra-navy);
}

.dorindex-site .feature-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  max-width: 40px;
  min-height: 40px;
  max-height: 40px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--scan-cyan);
}

.dorindex-site .feature-row__icon svg {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex-shrink: 0;
  display: block;
}

.cta-band .shot {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.cta-band .shot figcaption {
  color: rgba(255, 255, 255, 0.76);
}

.cta-band .shot figcaption strong {
  color: var(--white);
}

@media (max-width: 920px) {
  .shot-grid,
  .shot-grid--aside {
    grid-template-columns: 1fr;
  }

  .shot-grid--aside .shot {
    display: block;
  }

  .shot-grid--pair .shot img {
    aspect-ratio: auto;
  }
}

@media (max-width: 620px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
