:root {
  --ink: #101828;
  --ink-soft: #344054;
  --route: #126b45;
  --route-dark: #0d5436;
  --signal: #43c77a;
  --amber: #f4b942;
  --fog: #eef3f5;
  --fog-dark: #dbe5e8;
  --paper: #ffffff;
  --muted: #667085;
  --line: #cfd8dc;
  --display: Georgia, "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --container: 1200px;
  --shadow: 0 24px 60px rgba(16, 24, 40, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
h4,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

[hidden] {
  display: none !important;
}

::selection {
  color: var(--paper);
  background: var(--route);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 4px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(207, 216, 220, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  font-weight: 780;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.brand-mark {
  width: 38px;
  height: 38px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.6vw, 38px);
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--route);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 22px;
  color: var(--paper);
  background: var(--route);
  border: 1px solid var(--route);
  border-radius: 6px;
  box-shadow: none;
  cursor: pointer;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  color: var(--paper);
  background: var(--route-dark);
  border-color: var(--route-dark);
  box-shadow: 0 8px 0 rgba(13, 84, 54, 0.13);
  transform: translateY(-2px);
}

.button:active {
  box-shadow: none;
  transform: translateY(0);
}

.button-small {
  min-height: 42px;
  padding: 10px 15px;
  font-size: 14px;
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin-block: 4px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.mobile-menu-inner {
  display: grid;
  padding-block: 10px 24px;
}

.mobile-menu a {
  padding: 13px 0;
  border-bottom: 1px solid var(--fog-dark);
  font-weight: 680;
}

.mobile-menu .mobile-menu-primary {
  margin-top: 10px;
  padding: 13px 14px;
  color: var(--paper);
  background: var(--route);
  border-bottom: 0;
  border-radius: 6px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(66px, 8vw, 110px);
  background:
    linear-gradient(rgba(207, 216, 220, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(207, 216, 220, 0.26) 1px, transparent 1px),
    var(--paper);
  background-position: center top;
  background-size: 88px 88px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background: var(--paper);
}

.hero::before {
  inset: 0 58% 0 0;
  opacity: 0.88;
}

.hero::after {
  top: 0;
  right: 0;
  left: 0;
  height: 120px;
  background: linear-gradient(var(--paper), rgba(255, 255, 255, 0));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(460px, 0.97fr);
  align-items: center;
  gap: clamp(50px, 7vw, 92px);
}

.eyebrow,
.section-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--route);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow span {
  width: 24px;
  height: 2px;
  background: var(--amber);
}

.hero h1 {
  max-width: 720px;
  margin-top: 25px;
  font-family: var(--display);
  font-size: clamp(48px, 5.5vw, 78px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 em {
  position: relative;
  color: var(--route);
  font-style: italic;
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -3px;
  left: 3px;
  height: 5px;
  background: var(--amber);
  border-radius: 100%;
  transform: rotate(-1.5deg);
}

.hero-lead {
  max-width: 650px;
  margin-top: 30px;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  font-weight: 720;
  line-height: 1.8;
}

.text-link span {
  color: var(--route);
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translate(2px, 2px);
}

.hero-note {
  max-width: 580px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 34px;
  list-style: none;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 680;
}

.platform-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.platform-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.platform-dot.yandex {
  background: #ff4433;
}

.platform-dot.dgis {
  background: #19aa1e;
}

.platform-dot.google {
  background: conic-gradient(#4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0);
}

.map-console {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 10px;
  box-shadow: 14px 14px 0 #d7e7df, var(--shadow);
}

.map-console::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -22px;
  right: -20px;
  width: 92px;
  height: 92px;
  border: 15px solid var(--amber);
  border-radius: 50%;
}

.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.console-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
}

.console-meta {
  color: var(--muted);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--signal);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(67, 199, 122, 0.15);
}

.query-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 690;
}

.query-icon {
  position: relative;
  width: 16px;
  height: 16px;
  border: 2px solid var(--route);
  border-radius: 50%;
}

.query-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  background: var(--route);
  transform: rotate(45deg);
}

.query-area {
  margin-left: auto;
  padding: 5px 8px;
  color: var(--muted);
  background: var(--fog);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
}

.visibility-map {
  position: relative;
  height: 390px;
  overflow: hidden;
  background: #f7faf9;
}

.street-layer,
.map-route {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.street-layer path {
  fill: none;
  stroke: #c8d5d8;
  stroke-width: 18;
  stroke-linecap: round;
  opacity: 0.52;
}

.rank-grid {
  position: absolute;
  z-index: 2;
  inset: 16px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 5px;
}

.rank-cell {
  display: grid;
  place-items: center;
  min-width: 0;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.rank-hot {
  color: #064e32;
  background: rgba(67, 199, 122, 0.76);
}

.rank-warm {
  color: #604400;
  background: rgba(244, 185, 66, 0.62);
}

.rank-mid {
  color: #344054;
  background: rgba(219, 229, 232, 0.78);
}

.rank-cold {
  color: #667085;
  background: rgba(255, 255, 255, 0.7);
}

.map-route {
  z-index: 3;
}

.map-route path {
  fill: none;
  stroke: var(--route);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
  filter: drop-shadow(0 2px 2px rgba(16, 24, 40, 0.2));
  animation: draw-route 2.2s 0.35s cubic-bezier(0.5, 0, 0.2, 1) forwards;
}

@keyframes draw-route {
  to { stroke-dashoffset: 0; }
}

.business-point {
  position: absolute;
  z-index: 4;
  top: 46%;
  left: 54%;
  width: 32px;
  height: 32px;
  padding: 7px;
  background: var(--ink);
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 24, 40, 0.18);
  transform: translate(-50%, -50%);
  animation: point-pulse 2.6s 2.2s ease-out infinite;
}

.business-point span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--amber);
  border-radius: 50%;
}

@keyframes point-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 24, 40, 0.22); }
  65%, 100% { box-shadow: 0 0 0 16px rgba(16, 24, 40, 0); }
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 52px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.map-legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.map-legend .legend-hot { background: var(--signal); }
.map-legend .legend-warm { background: var(--amber); }
.map-legend .legend-cold { background: var(--fog-dark); }

.map-legend b {
  margin-left: auto;
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
}

.audit-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(76px, 9vw, 112px);
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  background: var(--paper);
}

.audit-strip > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 104px;
  padding: 22px 26px;
  border-right: 1px solid var(--line);
}

.audit-strip > div:last-child {
  border-right: 0;
}

.audit-strip b {
  color: var(--route);
  font-family: var(--mono);
  font-size: 12px;
}

.audit-strip span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.audit-strip strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.section {
  padding-block: clamp(90px, 10vw, 140px);
}

.section-label {
  margin-bottom: 26px;
}

.section-label.light {
  color: var(--signal);
}

.section h2,
.contact-section h2,
.policy-hero h1,
.error-page h1 {
  font-family: var(--display);
  font-size: clamp(38px, 4.7vw, 64px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.03;
}

.section-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(60px, 8vw, 112px);
}

.section-intro {
  position: sticky;
  top: 120px;
  align-self: start;
}

.section-intro p:last-child {
  max-width: 510px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 18px;
}

.diagnostic-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}

.diagnostic-table article {
  min-height: 315px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.diagnostic-code {
  color: var(--route);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.diagnostic-table h3 {
  margin-top: 46px;
  font-size: 23px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.diagnostic-table p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

.diagnostic-table article > span {
  display: block;
  margin-top: 26px;
  padding-top: 14px;
  color: var(--route);
  border-top: 1px solid var(--fog-dark);
  font-size: 13px;
  font-weight: 720;
}

.process {
  background: var(--fog);
  border-block: 1px solid var(--fog-dark);
}

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 70px;
  margin-bottom: clamp(54px, 7vw, 88px);
}

.section-heading-row > p {
  max-width: 440px;
  padding-left: 20px;
  color: var(--muted);
  border-left: 3px solid var(--amber);
  font-size: 17px;
}

.section-heading-row.compact {
  margin-bottom: 56px;
}

.route-steps {
  position: relative;
  list-style: none;
}

.route-steps::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 31px;
  width: 2px;
  background: var(--line);
}

.route-steps > li {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(250px, 1fr) minmax(230px, 0.7fr);
  gap: 36px;
  padding-block: 34px;
  border-top: 1px solid var(--line);
}

.route-steps > li:last-child {
  border-bottom: 1px solid var(--line);
}

.step-marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: var(--paper);
  background: var(--ink);
  border: 8px solid var(--fog);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 750;
}

.route-steps > li:nth-child(4) .step-marker {
  color: var(--ink);
  background: var(--amber);
}

.step-kicker {
  color: var(--route);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-copy h3 {
  margin-top: 9px;
  font-size: clamp(23px, 2.3vw, 31px);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.step-copy > p:last-child {
  max-width: 560px;
  margin-top: 12px;
  color: var(--muted);
}

.route-steps ul {
  align-self: center;
  list-style: none;
  color: var(--ink-soft);
  font-size: 14px;
}

.route-steps ul li {
  position: relative;
  padding: 5px 0 5px 18px;
}

.route-steps ul li::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--signal);
  border-radius: 50%;
}

.niche-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}

.niche-grid article {
  min-width: 0;
  padding: 34px 32px 0;
  border-left: 1px solid var(--line);
}

.niche-grid article:last-child {
  border-right: 1px solid var(--line);
}

.niche-symbol {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 44px;
  color: var(--route);
  background: var(--fog);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 50px;
  line-height: 1;
}

.niche-symbol.auto::before {
  content: "";
  width: 38px;
  height: 17px;
  border: 4px solid var(--route);
  border-radius: 8px 8px 5px 5px;
}

.niche-symbol.auto::after {
  content: "";
  position: absolute;
  bottom: 18px;
  width: 42px;
  height: 6px;
  border-right: 8px dotted var(--amber);
  border-left: 8px dotted var(--amber);
}

.niche-symbol.food::before {
  content: "";
  width: 36px;
  height: 36px;
  border: 4px solid var(--route);
  border-radius: 50%;
}

.niche-symbol.food::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 3px;
  height: 36px;
  background: var(--amber);
  box-shadow: 9px 0 0 var(--amber);
}

.niche-index {
  color: var(--route);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.niche-grid h3 {
  min-height: 68px;
  margin-top: 15px;
  font-size: 25px;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.niche-grid article > p:nth-of-type(2) {
  min-height: 96px;
  margin-top: 18px;
  color: var(--muted);
}

.niche-grid dl {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.niche-grid dl > div {
  padding-block: 15px;
  border-bottom: 1px solid var(--line);
}

.niche-grid dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.niche-grid dd {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 650;
}

.evidence {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

.evidence::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
}

.evidence-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(530px, 1.2fr);
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
}

.evidence-copy > p:nth-of-type(2) {
  max-width: 520px;
  margin-top: 26px;
  color: #cbd5df;
  font-size: 17px;
}

.check-list {
  margin-top: 30px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 9px 0 9px 26px;
  color: #e6ebef;
  font-size: 14px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 0;
  width: 11px;
  height: 6px;
  border-bottom: 2px solid var(--signal);
  border-left: 2px solid var(--signal);
  transform: rotate(-45deg);
}

.evidence-notice {
  margin-top: 30px;
  padding: 16px 18px;
  color: #fde9b9;
  background: rgba(244, 185, 66, 0.1);
  border-left: 3px solid var(--amber);
  font-size: 13px;
}

.report-sheet {
  color: var(--ink);
  background: var(--paper);
  border-radius: 4px;
  box-shadow: 16px 16px 0 var(--route);
}

.report-head,
.report-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-head {
  border-bottom: 1px solid var(--ink);
}

.report-head span:last-child {
  color: var(--muted);
}

.report-query {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.report-query span,
.report-flow span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.report-query strong,
.report-flow strong {
  font-size: 13px;
}

.report-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
  padding: 26px 20px;
}

.report-flow > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 210px;
  padding: 14px;
  background: #f8faf9;
  border: 1px solid var(--line);
}

.report-flow > b {
  align-self: center;
  color: var(--route);
}

.report-flow strong {
  margin-top: 4px;
  line-height: 1.3;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  flex: 1;
  gap: 3px;
  margin-top: 24px;
  background:
    linear-gradient(90deg, transparent 24%, var(--line) 25% 26%, transparent 27% 49%, var(--line) 50% 51%, transparent 52% 74%, var(--line) 75% 76%, transparent 77%),
    linear-gradient(transparent 24%, var(--line) 25% 26%, transparent 27% 49%, var(--line) 50% 51%, transparent 52% 74%, var(--line) 75% 76%, transparent 77%);
  background-color: var(--paper);
}

.mini-grid::before,
.mini-grid::after {
  content: "";
  align-self: center;
  justify-self: center;
  width: 18px;
  height: 18px;
  border-radius: 3px;
}

.mini-grid.start::before { background: var(--fog-dark); box-shadow: 28px 24px 0 var(--amber); }
.mini-grid.start::after { background: var(--amber); box-shadow: -24px -24px 0 var(--fog-dark); }
.mini-grid.progress::before { background: var(--signal); box-shadow: 26px 24px 0 var(--amber); }
.mini-grid.progress::after { background: var(--route); box-shadow: -24px -24px 0 var(--signal); }

.mini-bars {
  position: relative;
  flex: 1;
  margin-top: 24px;
  background: repeating-linear-gradient(to top, transparent 0 28px, var(--line) 29px 30px);
}

.mini-bars::before,
.mini-bars::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 26%;
  background: var(--route);
}

.mini-bars::before {
  left: 14%;
  height: 42%;
}

.mini-bars::after {
  right: 14%;
  height: 75%;
  background: var(--signal);
}

.report-foot {
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.terms-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(60px, 9vw, 130px);
}

.terms-lead {
  max-width: 680px;
  padding-left: 24px;
  color: var(--ink-soft);
  border-left: 4px solid var(--amber);
  font-size: clamp(19px, 2.1vw, 24px);
  font-weight: 650;
  line-height: 1.45;
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 50px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}

.terms-grid > div {
  min-height: 190px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.terms-grid span {
  display: block;
  color: var(--route);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 750;
}

.terms-grid strong {
  display: block;
  margin-top: 30px;
  font-size: 21px;
}

.terms-grid p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.terms-note {
  margin-top: 26px;
  color: var(--muted);
  font-size: 14px;
}

.faq {
  background: var(--fog);
  border-top: 1px solid var(--fog-dark);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(290px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(60px, 9vw, 130px);
}

.faq-layout > div:first-child > p:nth-of-type(2) {
  max-width: 430px;
  margin-top: 24px;
  color: var(--muted);
}

.faq-channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  max-width: 430px;
  margin-top: 28px;
}

.faq-channel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.2;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.faq-channel:hover,
.faq-channel:focus-visible {
  color: var(--route-dark);
  border-color: var(--route);
  transform: translateY(-1px);
}

.faq-channel-primary {
  grid-column: 1 / -1;
  color: var(--paper);
  background: var(--route);
  border-color: var(--route);
}

.faq-channel-primary:hover,
.faq-channel-primary:focus-visible {
  color: var(--paper);
  background: var(--route-dark);
  border-color: var(--route-dark);
}

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: grid;
  grid-template-columns: 1fr 28px;
  align-items: center;
  gap: 20px;
  min-height: 86px;
  padding: 18px 0;
  cursor: pointer;
  font-size: 19px;
  font-weight: 720;
  line-height: 1.35;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid var(--route);
  border-radius: 50%;
}

.faq-list summary span::before,
.faq-list summary span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: var(--route);
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease;
}

.faq-list summary span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-list details[open] summary span::after {
  transform: translate(-50%, -50%) rotate(0);
}

.faq-list details p {
  max-width: 700px;
  padding: 0 54px 26px 0;
  color: var(--muted);
}

.contact-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(90px, 10vw, 132px);
  color: var(--paper);
  background: var(--route);
}

.contact-section::after {
  content: "";
  position: absolute;
  top: -190px;
  right: -170px;
  width: 480px;
  height: 480px;
  border: 90px solid rgba(244, 185, 66, 0.16);
  border-radius: 50%;
}

.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(500px, 1.14fr);
  align-items: start;
  gap: clamp(55px, 9vw, 120px);
}

.contact-copy > p:nth-of-type(2) {
  max-width: 510px;
  margin-top: 26px;
  color: #d7eee2;
  font-size: 17px;
}

.contact-steps {
  display: grid;
  gap: 12px;
  margin-top: 38px;
  list-style: none;
}

.contact-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  min-height: 44px;
  color: #ecf7f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 14px;
  font-weight: 650;
}

.contact-steps span {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.messenger-phone {
  display: inline-flex;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.messenger-panel {
  padding: clamp(26px, 4vw, 42px);
  color: var(--ink);
  background: var(--paper);
  border-radius: 6px;
  box-shadow: 14px 14px 0 var(--amber);
}

.messenger-kicker {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.messenger-link {
  display: grid;
  grid-template-columns: minmax(92px, 0.35fr) minmax(0, 1fr) 34px;
  align-items: center;
  gap: 18px;
  min-height: 92px;
  padding: 18px 6px;
  border-top: 1px solid var(--line);
  transition: color 0.18s ease, padding 0.18s ease, background-color 0.18s ease;
}

.messenger-link:last-of-type {
  border-bottom: 1px solid var(--line);
}

.messenger-link:hover,
.messenger-link:focus-visible {
  padding-right: 12px;
  padding-left: 12px;
  color: var(--route-dark);
  background: var(--fog);
}

.messenger-name {
  color: var(--route);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.messenger-link strong {
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.messenger-link b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--route);
  border-radius: 50%;
  font-size: 15px;
}

.messenger-primary .messenger-name::after {
  content: "приоритет";
  display: block;
  width: max-content;
  margin-top: 4px;
  padding: 2px 5px;
  color: var(--ink);
  background: var(--amber);
  border-radius: 2px;
  font-size: 8px;
  letter-spacing: 0.03em;
}

.messenger-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.site-footer {
  padding-top: 72px;
  color: #cbd5df;
  background: #0b1220;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.65fr);
  gap: 50px;
  padding-bottom: 58px;
}

.footer-brand {
  color: var(--paper);
}

.footer-grid > div:first-child > p {
  max-width: 330px;
  margin-top: 20px;
  color: #98a2b3;
  font-size: 14px;
}

.footer-grid > div:first-child > .footer-legal {
  margin-top: 14px;
  color: #7d899d;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
}

.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
}

.footer-title {
  margin-bottom: 9px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-grid a:hover,
.footer-bottom a:hover {
  color: var(--signal);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-block: 22px;
  color: #98a2b3;
  border-top: 1px solid #253148;
  font-size: 12px;
}

/* Policy page */
.policy-page {
  background: #f8faf9;
}

.policy-main {
  padding-bottom: 100px;
}

.policy-hero {
  padding-block: 76px 54px;
  color: var(--paper);
  background: var(--ink);
}

.policy-hero .section-label {
  color: var(--signal);
}

.policy-hero h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.policy-hero p:last-child {
  max-width: 650px;
  margin-top: 20px;
  color: #cbd5df;
}

.policy-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 800px);
  gap: 70px;
  padding-top: 70px;
}

.policy-aside {
  position: sticky;
  top: 110px;
  align-self: start;
  color: var(--muted);
  font-size: 12px;
}

.policy-aside strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-aside a {
  display: inline-block;
  margin-top: 16px;
  color: var(--route);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-content {
  padding: clamp(28px, 5vw, 58px);
  background: var(--paper);
  border: 1px solid var(--line);
}

.policy-content h2 {
  margin: 48px 0 18px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.policy-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.policy-content p,
.policy-content li {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.policy-content p {
  margin-bottom: 14px;
}

.policy-content ul {
  margin: 0 0 18px 20px;
  padding-left: 16px;
}

.policy-content li {
  margin-bottom: 9px;
  padding-left: 4px;
}

.policy-content li::marker {
  color: var(--route);
}

.policy-content a {
  color: var(--route);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-back {
  display: inline-flex;
  margin-top: 28px;
  color: var(--route);
  border-bottom: 1px solid var(--route);
  font-weight: 720;
}

/* 404 */
.error-page {
  display: grid;
  min-height: 100vh;
  background:
    linear-gradient(rgba(207, 216, 220, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(207, 216, 220, 0.3) 1px, transparent 1px),
    var(--paper);
  background-size: 72px 72px;
}

.error-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  min-height: calc(100vh - 160px);
  padding-block: 70px;
}

.error-code {
  color: var(--route);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.error-copy p:not(.error-code) {
  max-width: 520px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 18px;
}

.error-copy .button {
  margin-top: 30px;
}

.lost-map {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  background: var(--fog);
  border: 1px solid var(--ink);
  box-shadow: 14px 14px 0 var(--amber);
}

.lost-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 25% 25%;
}

.lost-route {
  position: absolute;
  inset: 14%;
  border: 5px dashed var(--route);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(22deg);
}

.lost-point {
  position: absolute;
  top: 48%;
  left: 48%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--ink);
  background: var(--amber);
  border: 7px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--ink);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
}

@media (max-width: 1120px) {
  .desktop-nav {
    gap: 18px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
    gap: 46px;
  }

  .hero h1 {
    font-size: clamp(46px, 5.6vw, 66px);
  }

  .visibility-map {
    height: 340px;
  }

  .report-flow {
    gap: 7px;
  }

  .report-flow > div {
    padding: 10px;
  }

  .contact-layout,
  .evidence-layout {
    gap: 54px;
  }
}

@media (max-width: 960px) {
  .desktop-nav,
  .header-actions > .button {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero-grid,
  .evidence-layout,
  .contact-layout,
  .section-layout,
  .terms-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 64px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .map-console {
    width: min(100%, 680px);
    margin-inline: auto;
  }

  .visibility-map {
    height: 400px;
  }

  .section-intro {
    position: static;
  }

  .section-intro h2,
  .terms-layout > div:first-child,
  .faq-layout > div:first-child {
    max-width: 700px;
  }

  .section-heading-row {
    gap: 40px;
  }

  .route-steps > li {
    grid-template-columns: 64px 1fr;
  }

  .route-steps ul {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
  }

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

  .niche-grid article,
  .niche-grid article:last-child {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) minmax(220px, 0.7fr);
    align-items: start;
    gap: 0 26px;
    padding: 30px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .niche-symbol {
    grid-row: 1 / span 4;
    margin-bottom: 0;
  }

  .niche-grid h3,
  .niche-grid article > p:nth-of-type(2) {
    min-height: 0;
  }

  .niche-grid dl {
    grid-column: 3;
    grid-row: 1 / span 4;
    margin-top: 0;
  }

  .report-sheet {
    width: min(100%, 700px);
    margin-inline: auto;
  }

  .contact-copy {
    max-width: 720px;
  }

  .footer-grid {
    grid-template-columns: 1.3fr repeat(2, 0.7fr);
  }

  .footer-grid > div:last-child {
    grid-column: 2 / 4;
  }

  .policy-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .policy-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding-top: 52px;
    background-size: 64px 64px;
  }

  .hero::before {
    right: 24%;
  }

  .hero h1 {
    margin-top: 20px;
    font-size: clamp(42px, 13vw, 62px);
  }

  .hero-lead {
    margin-top: 24px;
    font-size: 18px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .hero-actions .text-link {
    align-self: flex-start;
  }

  .platform-list {
    display: grid;
    gap: 8px;
  }

  .map-console {
    box-shadow: 8px 8px 0 #d7e7df, 0 18px 40px rgba(16, 24, 40, 0.12);
  }

  .map-console::before {
    top: -13px;
    right: -10px;
    width: 62px;
    height: 62px;
    border-width: 10px;
  }

  .console-meta,
  .query-area {
    display: none;
  }

  .visibility-map {
    height: 310px;
  }

  .rank-grid {
    inset: 10px;
    gap: 3px;
  }

  .rank-cell {
    font-size: 9px;
  }

  .map-legend {
    flex-wrap: wrap;
    gap: 7px 12px;
  }

  .map-legend b {
    flex-basis: 100%;
    margin-left: 0;
  }

  .audit-strip {
    grid-template-columns: 1fr;
    margin-top: 72px;
    border-bottom: 1px solid var(--ink);
  }

  .audit-strip > div {
    min-height: 82px;
    padding: 17px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .audit-strip > div:last-child {
    border-bottom: 0;
  }

  .section {
    padding-block: 84px;
  }

  .section h2,
  .contact-section h2,
  .policy-hero h1,
  .error-page h1 {
    font-size: clamp(36px, 10vw, 50px);
  }

  .diagnostic-table,
  .terms-grid {
    grid-template-columns: 1fr;
  }

  .diagnostic-table article {
    min-height: 0;
    padding: 26px 22px;
  }

  .diagnostic-table h3 {
    margin-top: 28px;
  }

  .section-heading-row {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 48px;
  }

  .route-steps::before {
    left: 24px;
  }

  .route-steps > li {
    grid-template-columns: 50px 1fr;
    gap: 18px;
    padding-block: 28px;
  }

  .step-marker {
    width: 50px;
    height: 50px;
    border-width: 6px;
  }

  .route-steps ul {
    gap: 0 14px;
  }

  .niche-grid article,
  .niche-grid article:last-child {
    display: block;
    padding: 30px 0 36px;
  }

  .niche-symbol {
    margin-bottom: 28px;
  }

  .niche-grid h3 {
    margin-top: 12px;
  }

  .niche-grid article > p:nth-of-type(2) {
    margin-top: 14px;
  }

  .niche-grid dl {
    margin-top: 25px;
  }

  .evidence-layout {
    gap: 48px;
  }

  .report-sheet {
    box-shadow: 8px 8px 0 var(--route);
  }

  .report-flow {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .report-flow > div {
    min-height: 180px;
  }

  .report-flow > b {
    transform: rotate(90deg);
  }

  .report-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .terms-grid > div {
    min-height: 0;
  }

  .faq-layout {
    gap: 44px;
  }

  .faq-list summary {
    min-height: 76px;
    font-size: 17px;
  }

  .contact-section {
    padding-block: 84px;
  }

  .messenger-panel {
    box-shadow: 8px 8px 0 var(--amber);
  }

  .messenger-link {
    grid-template-columns: minmax(84px, 0.3fr) minmax(0, 1fr) 34px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 42px 28px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-grid > div:last-child {
    grid-column: auto;
  }

  .policy-hero {
    padding-block: 58px 44px;
  }

  .policy-hero h1 {
    font-size: 38px;
  }

  .policy-shell {
    padding-top: 40px;
  }

  .policy-content {
    padding: 26px 20px;
  }

  .policy-content h2 {
    font-size: 24px;
  }

  .error-shell {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .hero h1 {
    font-size: 40px;
  }

  .policy-hero h1 {
    font-size: 35px;
  }

  .hero h1 em {
    white-space: normal;
  }

  .hero-actions .button {
    width: 100%;
  }

  .messenger-panel {
    padding: 24px 18px;
  }

  .messenger-link {
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 5px 14px;
    min-height: 108px;
    padding-block: 16px;
  }

  .messenger-name,
  .messenger-link strong {
    grid-column: 1;
  }

  .messenger-link b {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .visibility-map {
    height: 270px;
  }

  .rank-cell {
    font-size: 8px;
  }

  .query-row,
  .console-bar,
  .map-legend {
    padding-inline: 12px;
  }

  .route-steps ul {
    display: block;
  }

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

  .footer-grid > div:first-child,
  .footer-grid > div:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .map-route path {
    stroke-dashoffset: 0;
  }
}

@media print {
  .site-header,
  .site-footer,
  .contact-section,
  .policy-aside {
    display: none !important;
  }

  body,
  .policy-page {
    color: #000;
    background: #fff;
  }

  .policy-main,
  .policy-shell {
    padding: 0;
  }

  .policy-content {
    max-width: none;
    padding: 0;
    border: 0;
  }
}
