/* Вариант 1 «Атлас рынка» — ChatGPT, круг 4 (16.10.2026), полная замена an.css */
/* ЧАСТЬ 1 из 2
   АТЛАС РЫНКА / ap-r.ru /stats/
   Полная замена an.css. Без @import.
   Шапка и подвал сайта не изменяются.
*/

/* 01. ПАЛИТРА И ТИПОГРАФИКА */

body.ax-page {
  --ax-ink: #17384a;
  --ax-navy: #13374f;
  --ax-teal: #17b7bf;
  --ax-teal-dark: #0b777f;
  --ax-teal-soft: #e8f6f5;
  --ax-green: #a3d977;
  --ax-green-ink: #265b20;
  --ax-red: #a14a45;
  --ax-red-soft: #f9efed;
  --ax-amber: #925e28;
  --ax-amber-soft: #f9f3e8;
  --ax-muted: #637985;
  --ax-dim: #8b9ca4;
  --ax-line: #d9e3e6;
  --ax-line-light: #eaf0f1;
  --ax-paper: #f5f7f7;
  --ax-card: #fff;
  --ax-cream: #faf9f4;
  --ax-mint: #edf7f4;
  --ax-gray-mark: #ccd8db;
  --ax-gray-mark2: #91a5af;
  --ax-r: 10px;
  --ax-r-s: 7px;
  --ax-shadow: none;
  --ax-font: "Manrope", Arial, sans-serif;
  --ax-font-data: "IBM Plex Sans", "Manrope", Arial, sans-serif;
  --ax-ramp1: #d2eceb;
  --ax-ramp2: #91d2d1;
  --ax-ramp3: #48aab0;
  --ax-ramp4: #237c8a;
  --ax-ramp5: #164a5d;
  margin: 0;
  color: var(--ax-ink);
  background: var(--ax-paper);
  font-family: var(--ax-font);
  -webkit-font-smoothing: antialiased;
}

.ax-page .ax-main,
.ax-page .ax-main *,
.ax-page .ax-main *::before,
.ax-page .ax-main *::after {
  box-sizing: border-box;
}

.ax-page .ax-main {
  width: 100%;
  min-width: 0;
  padding: 8px 0 86px;
  overflow: clip;
  background: var(--ax-paper);
  color: var(--ax-ink);
  font-family: var(--ax-font);
  font-size: 14px;
  line-height: 1.55;
}

.ax-page .ax-main > .container {
  width: min(100%, 1344px);
  max-width: 1344px;
  margin: 0 auto;
  padding: 0 32px;
  counter-reset: ax-section;
}

.ax-main :is(h1, h2, h3) {
  margin: 0;
  font-family: var(--ax-font-data);
  color: var(--ax-navy);
  font-weight: 700;
  letter-spacing: -.028em;
}
.ax-main h1 {
  font-size: clamp(34px, 3.25vw, 46px);
  line-height: 1.12;
}
.ax-main h2 {
  font-size: clamp(24px, 2.15vw, 29px);
  line-height: 1.18;
}
.ax-main h3 { font-size: 17px; line-height: 1.35; }
.ax-main p { margin: 0; }
.ax-main a {
  transition: color .14s, background-color .14s, border-color .14s;
}
.ax-main button,
.ax-main input { font-family: inherit; }
.ax-main button { -webkit-tap-highlight-color: transparent; }

.ax-main :is(a, button, input):focus-visible {
  outline: 3px solid rgba(23,183,191,.45);
  outline-offset: 3px;
}

.ax-main .ax-muted { color: var(--ax-muted); }
.ax-main .ax-num,
.ax-main .ax-card-v,
.ax-main .ax-cmp-row .v,
.ax-main .ax-table td,
.ax-main .ax-table .r,
.ax-main .ax-delta {
  font-variant-numeric: tabular-nums lining-nums;
}
.ax-main .ax-nowrap { white-space: nowrap; }
.ax-page .ax-hide { display: none !important; }

/* 02. ГЕОГРАФИЯ */

.ax-main .ax-geo {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 14px 0 12px;
  margin: 0 0 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ax-line);
  border-radius: 0;
}
.ax-main .ax-geo-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 41px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ax-main .ax-geo-row::-webkit-scrollbar { display: none; }
.ax-main .ax-geo-row .l {
  flex: 0 0 78px;
  width: 78px;
  margin-right: 12px;
  color: var(--ax-dim);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .095em;
  text-transform: uppercase;
}
.ax-main .ax-geo-row a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  min-height: 31px;
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #476171;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.ax-main .ax-geo-row a:hover {
  background: #e6eeee;
  color: var(--ax-navy);
}
.ax-main .ax-geo-row a .k {
  color: #8b9ca4;
  font-size: 11px;
  font-weight: 600;
}
.ax-main .ax-geo-reg a.on {
  background: var(--ax-navy);
  border-color: var(--ax-navy);
  color: #fff;
}
.ax-main .ax-geo-reg a.on .k {
  color: rgba(255,255,255,.72);
}
.ax-main .ax-geo-city a.on {
  background: var(--ax-teal-soft);
  border-color: #b6dddc;
  color: #105d65;
}
.ax-main .ax-geo-city a.on .k { color: #247c82; }

/* 03. КРОШКИ И ПОИСК */

.ax-main .ax-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 330px);
  align-items: center;
  gap: 16px;
  margin: 6px 0 14px;
  padding: 0;
}
.ax-main .ax-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
  min-width: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ax-muted);
}
.ax-main .ax-crumbs a {
  color: #566e7b;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(86,110,123,.35);
}
.ax-main .ax-crumbs a:hover {
  color: var(--ax-teal-dark);
  border-color: var(--ax-teal-dark);
}
.ax-main .ax-crumbs .sep { color: #abbac1; }
.ax-main .ax-crumbs .cur {
  color: var(--ax-navy);
  font-weight: 750;
}

.ax-main .ax-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 5px 5px 5px 13px;
  background: #fff;
  border: 1px solid var(--ax-line);
  border-radius: 7px;
  box-shadow: none;
}
.ax-main .ax-search:focus-within {
  border-color: var(--ax-teal);
}
.ax-main .ax-search input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  padding: 3px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ax-ink);
  font: 500 13px/1.5 var(--ax-font);
}
.ax-main .ax-search input::placeholder { color: var(--ax-dim); }
.ax-main .ax-search .kbd {
  flex: 0 0 auto;
  padding: 1px 5px;
  border: 1px solid var(--ax-line);
  border-radius: 4px;
  color: var(--ax-muted);
  font: 11px/1.3 var(--ax-font-data);
}
.ax-main .ax-search .go {
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: white;
  background: var(--ax-navy);
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}
.ax-main .ax-search .go:hover { background: #20506b; }
.ax-main .ax-search .go svg { width: 17px; height: 17px; }
.ax-main .ax-sugg {
  display: none;
  position: absolute;
  z-index: 100;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 420px;
  padding: 7px;
  overflow-y: auto;
  background: white;
  border: 1px solid var(--ax-line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(19,55,79,.13);
}
.ax-main .ax-sugg.on { display: block; }
.ax-main .ax-sugg a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 10px 11px;
  border-radius: 5px;
  color: var(--ax-ink);
  font-size: 13px;
  text-decoration: none;
}
.ax-main .ax-sugg a:hover { background: var(--ax-teal-soft); }
.ax-main .ax-sugg .k {
  color: var(--ax-muted);
  font-size: 11px;
  white-space: nowrap;
}
.ax-main .ax-sugg .grp {
  padding: 12px 11px 5px;
  color: var(--ax-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

/* 04. ПЕРИОД */

.ax-main .ax-period {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 15px;
  min-width: 0;
  margin: 0 0 25px;
  padding: 9px 0 12px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--ax-line-light);
  border-bottom: 1px solid var(--ax-line);
  border-radius: 0;
}
.ax-main .ax-period .l {
  flex: 0 0 auto;
  color: var(--ax-navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .025em;
}
.ax-main .ax-period .ax-seg {
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.ax-main .ax-period .ax-seg::-webkit-scrollbar { display: none; }
.ax-main .ax-period .ax-seg button {
  flex: 0 0 auto;
  padding: 8px 11px 9px;
  margin-bottom: 0;
  color: #58717e;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
  white-space: nowrap;
}
.ax-main .ax-period .ax-seg button:hover {
  color: var(--ax-navy);
  background: #e8eff0;
}
.ax-main .ax-period .ax-seg button.on {
  color: var(--ax-navy);
  background: transparent;
  border-bottom-color: var(--ax-teal);
}
.ax-main .ax-period .n {
  flex: 1 1 260px;
  margin-left: auto;
  color: var(--ax-muted);
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}

/* 05. СУЩНОСТЬ И ДЕЙСТВИЯ */

.ax-main .ax-hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 14px 28px;
  align-items: start;
  padding: 0 0 22px;
}
.ax-main .ax-hero-short { padding-bottom: 20px; }
.ax-main .ax-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--ax-teal-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ax-main .ax-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--ax-teal);
}
.ax-main .ax-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 11px;
  max-width: 100%;
}
.ax-main .ax-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 2px 0;
  color: #486473;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #cfdce0;
  border-radius: 0;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 650;
  text-decoration: none;
  white-space: normal;
}
.ax-main .ax-chip b {
  color: var(--ax-navy);
  font-weight: 750;
}
.ax-main .ax-chip a { color: inherit; text-decoration: none; }
.ax-main .ax-chip.link {
  background: transparent;
  color: var(--ax-teal-dark);
  border-bottom-color: #56b5b9;
}
.ax-main .ax-chip.link:hover { background: var(--ax-teal-soft); }
.ax-main .ax-chip .ic {
  width: 14px;
  height: 14px;
  opacity: .75;
}
.ax-main .ax-summary {
  max-width: 980px;
  margin-top: 10px;
  color: #364e59;
  font-size: 15px;
  line-height: 1.75;
}
.ax-main .ax-summary b { color: var(--ax-navy); }
.ax-main .ax-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  min-width: 180px;
}
.ax-main .ax-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 15px;
  border: 1px solid var(--ax-navy);
  border-radius: 6px;
  color: var(--ax-navy);
  background: transparent;
  font: 700 13px/1.25 var(--ax-font);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}
.ax-main .ax-btn:hover { background: #e7edef; }
.ax-main .ax-btn.primary {
  color: #21451a;
  background: var(--ax-green);
  border-color: var(--ax-green);
}
.ax-main .ax-btn.primary:hover {
  background: #95ca68;
  border-color: #95ca68;
}
.ax-main .ax-btn.sm {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}
.ax-main .ax-btn svg { width: 16px; height: 16px; }
.ax-main .ax-date {
  color: var(--ax-muted);
  font-size: 11px;
  text-align: right;
}
.ax-main .ax-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  background: var(--ax-amber-soft);
  color: var(--ax-amber);
  border: 1px solid #eedcc0;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 750;
}

/* 06. КАРТОЧКИ И ПОЛОСА ПОКАЗАТЕЛЕЙ */

.ax-main .ax-cards {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  min-width: 0;
  margin: 0 0 14px;
}
.ax-main .ax-cards.c2 {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.ax-main .ax-cards.c3 {
  grid-template-columns: 1.15fr 1fr 1fr;
}
.ax-main .ax-cards.c5 {
  grid-template-columns: repeat(5,minmax(0,1fr));
}
.ax-main .ax-cards.c6 {
  grid-template-columns: repeat(6,minmax(0,1fr));
}
.ax-main .ax-cards > * { min-width: 0; }

.ax-main .ax-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  min-height: 150px;
  padding: 20px 20px 17px;
  background: white;
  border: 1px solid var(--ax-line);
  border-radius: var(--ax-r);
  box-shadow: none;
}
.ax-main .ax-card.wide { grid-column: span 2; }
.ax-main .ax-card-q {
  padding-right: 24px;
  color: var(--ax-ink);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}
.ax-main .ax-card-v {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 7px;
  min-width: 0;
  color: var(--ax-navy);
  font: 650 31px/1.1 var(--ax-font-data);
  letter-spacing: -.045em;
}
.ax-main .ax-card-v .u {
  color: var(--ax-muted);
  font: 500 12px/1.3 var(--ax-font);
  letter-spacing: 0;
}
.ax-main .ax-card-v .d {
  padding: 2px 5px;
  background: #eff3f4;
  border-radius: 3px;
  font: 700 12px/1.35 var(--ax-font);
}
.ax-main .ax-card-v .d.up {
  background: var(--ax-teal-soft);
  color: var(--ax-teal-dark);
}
.ax-main .ax-card-v .d.down {
  background: var(--ax-red-soft);
  color: var(--ax-red);
}
.ax-main .ax-verdict {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #4a626f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}
.ax-main .ax-verdict .s {
  display: block;
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--ax-teal);
}
.ax-main .ax-ctx {
  margin-top: auto;
  color: var(--ax-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
}
.ax-main .ax-ctx b {
  color: var(--ax-ink);
  font-weight: 750;
}
.ax-main .ax-cdate {
  display: block;
  margin-top: 7px;
  color: var(--ax-dim);
  font-size: 10px;
  line-height: 1.45;
}
.ax-main .ax-help {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  color: #728b96;
  background: transparent;
  border: 1px solid #d0dee2;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
}
.ax-main .ax-help:hover,
.ax-main .ax-help.on {
  border-color: var(--ax-teal);
  color: var(--ax-teal-dark);
  background: #e9f6f5;
}
.ax-main .ax-tip {
  display: none;
  position: absolute;
  z-index: 40;
  top: 42px;
  right: 8px;
  width: min(340px, calc(100vw - 46px));
  padding: 14px 16px;
  background: var(--ax-navy);
  color: white;
  border-radius: 7px;
  box-shadow: 0 16px 40px rgba(19,55,79,.2);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.65;
}
.ax-main .ax-tip.on { display: block; }
.ax-main .ax-tip b { color: #bcecef; }
.ax-main .ax-spark {
  display: block;
  width: 100%;
  height: 32px;
  margin-top: 2px;
}
.ax-main .ax-spark path {
  fill: none;
  stroke: var(--ax-teal-dark);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ax-main .ax-spark .area {
  fill: var(--ax-teal);
  stroke: none;
  opacity: .08;
}
.ax-main .ax-spark .base {
  stroke: var(--ax-line);
  stroke-width: 1;
}
.ax-main .ax-spark circle {
  fill: var(--ax-teal-dark);
  stroke: white;
  stroke-width: 2;
}

/* Первая тройка показателей */

.ax-main .ax-cards.big {
  gap: 14px;
  margin-bottom: 14px;
}
.ax-main .ax-cards.big .ax-card {
  min-height: 216px;
  padding: 22px 23px 18px;
}
.ax-main .ax-cards.big .ax-card-v {
  font-size: clamp(31px, 2.65vw, 41px);
}
.ax-main .ax-cards.big .ax-card:first-child {
  background: var(--ax-navy);
  border-color: var(--ax-navy);
  color: white;
}
.ax-main .ax-cards.big .ax-card:first-child
:is(.ax-card-q, .ax-card-v, .ax-ctx b) {
  color: white;
}
.ax-main .ax-cards.big .ax-card:first-child .ax-card-v .u,
.ax-main .ax-cards.big .ax-card:first-child .ax-ctx {
  color: #c2d6de;
}
.ax-main .ax-cards.big .ax-card:first-child .ax-verdict {
  color: #e3f1f1;
}
.ax-main .ax-cards.big .ax-card:first-child .ax-verdict .s {
  background: var(--ax-green);
}
.ax-main .ax-cards.big .ax-card:first-child .ax-cdate {
  color: #a1bdca;
}
.ax-main .ax-cards.big .ax-card:first-child .ax-help {
  border-color: #547083;
  color: #d3e4e8;
}
.ax-main .ax-cards.big .ax-card:first-child .ax-help:hover,
.ax-main .ax-cards.big .ax-card:first-child .ax-help.on {
  color: white;
  border-color: white;
  background: #234c64;
}
.ax-main .ax-cards.big .ax-card:first-child .ax-seg[data-rooms] {
  background: #1c4560;
  border-color: #517184;
}
.ax-main .ax-cards.big .ax-card:first-child
.ax-seg[data-rooms] button {
  color: #d5e7ea;
}
.ax-main .ax-cards.big .ax-card:first-child
.ax-seg[data-rooms] button:hover {
  background: #28566b;
}
.ax-main .ax-cards.big .ax-card:first-child
.ax-seg[data-rooms] button.on {
  background: white;
  color: var(--ax-navy);
}

/* Четыре главных показателя города и следующие показатели */

.ax-main .ax-cards:not(.big):not(.compact)
> .ax-card:first-child {
  border-top: 3px solid var(--ax-navy);
}
.ax-main .ax-cards:not(.big):not(.compact)
> .ax-card:nth-child(n+5) {
  min-height: 156px;
  margin-top: 2px;
  padding: 19px 14px 13px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--ax-line);
  border-right: 1px solid var(--ax-line);
  border-radius: 0;
}
.ax-main .ax-cards:not(.big):not(.compact)
> .ax-card:nth-child(4n) {
  border-right: 0;
}
.ax-main .ax-cards:not(.big):not(.compact)
> .ax-card:nth-child(5) {
  padding-left: 0;
}
.ax-main .ax-cards:not(.big):not(.compact)
> .ax-card:nth-child(8) {
  padding-right: 0;
}

/* Компактная полоса: все строки данных сохраняются */

.ax-main .ax-cards.compact {
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 0;
  margin: 0 0 6px;
  padding: 0;
  background: white;
  border: 1px solid var(--ax-line);
  border-radius: var(--ax-r);
  overflow: visible;
}
.ax-main .ax-cards.compact .ax-card {
  min-height: 170px;
  padding: 17px 14px 14px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--ax-line-light);
  border-radius: 0;
  box-shadow: none;
}
.ax-main .ax-cards.compact .ax-card:last-child {
  border-right: 0;
}
.ax-main .ax-cards.compact .ax-card-q {
  font-size: 11.5px;
  padding-right: 21px;
}
.ax-main .ax-cards.compact .ax-card-v { font-size: 27px; }
.ax-main .ax-cards.compact .ax-card-v .u { font-size: 11px; }
.ax-main .ax-cards.compact .ax-verdict { font-size: 11px; }
.ax-main .ax-cards.compact .ax-ctx { font-size: 10px; }
.ax-main .ax-cards.compact .ax-cdate { font-size: 9.5px; }
.ax-main .ax-cards.compact .ax-help {
  top: 12px;
  right: 10px;
  width: 20px;
  height: 20px;
  font-size: 11px;
}
.ax-main .ax-cards.compact .ax-spark { height: 26px; }
.ax-main .ax-cards.compact .ax-cmp {
  display: flex;
  margin-top: 6px;
  gap: 4px;
}
.ax-main .ax-cards.compact .ax-cmp-row {
  grid-template-columns: minmax(0,60px) minmax(0,1fr) 56px;
  gap: 4px;
  font-size: 9px;
}
.ax-main .ax-cards.compact .ax-ctx,
.ax-main .ax-cards.compact .ax-verdict,
.ax-main .ax-cards.compact .ax-cdate {
  overflow-wrap: anywhere;
}

/* Сравнения показателей */

.ax-main .ax-cmp {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
}
.ax-main .ax-cmp-row {
  display: grid;
  grid-template-columns: minmax(0,92px) minmax(0,1fr) 72px;
  align-items: center;
  gap: 9px;
  font-size: 11px;
}
.ax-main .ax-cmp-row .l {
  overflow: hidden;
  color: var(--ax-muted);
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ax-main .ax-cmp-row .b {
  position: relative;
  height: 6px;
  overflow: hidden;
  background: #e8eff0;
  border-radius: 2px;
}
.ax-main .ax-cmp-row .b i {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: var(--ax-gray-mark2);
  border-radius: 2px;
}
.ax-main .ax-cmp-row.me .l {
  color: var(--ax-navy);
  font-weight: 800;
}
.ax-main .ax-cmp-row.me .b i {
  background: var(--ax-teal-dark);
}
.ax-main .ax-cmp-row .v {
  color: var(--ax-navy);
  font-family: var(--ax-font-data);
  font-weight: 700;
  text-align: right;
}

/* 07. СЕГМЕНТ КОМНАТНОСТИ */

.ax-main .ax-seg {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  width: fit-content;
  max-width: 100%;
  padding: 3px;
  border: 1px solid var(--ax-line);
  border-radius: 7px;
  background: #f7f9f9;
}
.ax-main .ax-seg button {
  padding: 6px 9px;
  color: #496473;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font: 700 11px/1.25 var(--ax-font);
  cursor: pointer;
}
.ax-main .ax-seg button:hover { background: #eaf0f1; }
.ax-main .ax-seg button.on {
  color: white;
  background: var(--ax-navy);
}

/* 08. СЕКЦИИ И КОНТЕЙНЕРЫ */

.ax-main > .container > .ax-box {
  border-left: 3px solid var(--ax-teal);
}
.ax-main .ax-sec {
  margin-top: 58px;
  min-width: 0;
  counter-increment: ax-section;
  scroll-margin-top: 72px;
}
.ax-main .ax-sec-h {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  min-width: 0;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--ax-line);
}
.ax-main .ax-sec-h h2::before {
  content: counter(ax-section, decimal-leading-zero) " / ";
  margin-right: 5px;
  color: #879ca6;
  font-family: var(--ax-font-data);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  vertical-align: middle;
}
.ax-main .ax-sec-h .sub {
  margin-top: 5px;
  color: var(--ax-muted);
  font-size: 12px;
  line-height: 1.5;
}
.ax-main .ax-sec-h .right {
  color: var(--ax-muted);
  font-size: 11px;
}
.ax-main .ax-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 16px;
  min-width: 0;
}
.ax-main .ax-grid.g21 {
  grid-template-columns: minmax(0,2fr) minmax(0,1fr);
}
.ax-main .ax-grid.g12 {
  grid-template-columns: minmax(0,1fr) minmax(0,2fr);
}
.ax-main .ax-grid.g3 {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.ax-main .ax-grid > * { min-width: 0; }
.ax-main .ax-box {
  min-width: 0;
  padding: 21px 23px;
  background: var(--ax-card);
  border: 1px solid var(--ax-line);
  border-radius: var(--ax-r);
  box-shadow: none;
}
.ax-main .ax-box h3 {
  margin: 0 0 4px;
  font-size: 17px;
}
.ax-main .ax-box .sub {
  margin: 0 0 14px;
  color: var(--ax-muted);
  font-size: 12px;
  line-height: 1.5;
}
.ax-main .ax-note {
  margin-top: 12px;
  color: var(--ax-muted);
  font-size: 11.5px;
  line-height: 1.65;
}
.ax-main .ax-note b { color: var(--ax-navy); }
.ax-main .ax-foot {
  margin-top: 68px;
  padding: 18px 0 0;
  border-top: 1px solid var(--ax-line);
  color: var(--ax-muted);
  font-size: 11px;
  line-height: 1.8;
}
.ax-main .ax-more { margin-top: 14px; }

/* ЧАСТЬ 2 из 2
   Продолжение an.css — АТЛАС РЫНКА
*/

/* 09. ТАБЛИЦЫ */

.ax-main .ax-table-wrap {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-color: #c5d5da #eff3f4;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.ax-main .ax-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 12.5px;
  line-height: 1.45;
}
.ax-main .ax-table th {
  padding: 11px 9px;
  color: #607582;
  background: #f5f8f8;
  border-bottom: 1px solid #aebfc5;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.ax-main .ax-table td {
  padding: 11px 9px;
  color: #254656;
  background: transparent;
  border-bottom: 1px solid var(--ax-line-light);
  vertical-align: middle;
}
.ax-main .ax-table tr:last-child td { border-bottom: 0; }
.ax-main .ax-table :is(th,td).r { text-align: right; }
.ax-main .ax-table td.r { font-family: var(--ax-font-data); }
.ax-main .ax-table tbody tr:hover td { background: #f1f7f7; }
.ax-main .ax-table .me td,
.ax-main .ax-table tr.me td { background: #eaf6f5; }
.ax-main .ax-table .sm {
  color: var(--ax-muted);
  font-size: 10.5px;
  line-height: 1.4;
}
.ax-main .ax-table a {
  color: var(--ax-navy);
  text-decoration: none;
  font-weight: 750;
}
.ax-main .ax-table a:hover {
  color: var(--ax-teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ax-main .ax-bar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 94px;
}
.ax-main .ax-bar i {
  display: inline-block;
  flex: 0 0 auto;
  height: 5px;
  border-radius: 1px;
  background: #1599a3;
}
.ax-main .ax-bar.gray i { background: var(--ax-gray-mark); }
.ax-main .ax-bar span { font-variant-numeric: tabular-nums; }
.ax-main .ax-delta {
  font-weight: 750;
  white-space: nowrap;
}
.ax-main .ax-delta.up { color: #167d85; }
.ax-main .ax-delta.down { color: var(--ax-red); }
.ax-main .ax-delta.flat { color: #667d86; }
.ax-main .ax-tag {
  display: inline-block;
  padding: 2px 6px;
  background: #f0f4f5;
  border-radius: 3px;
  color: #375a68;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}
.ax-main .ax-tag.good {
  color: #346749;
  background: #edf6ee;
}
.ax-main .ax-tag.warn {
  color: var(--ax-amber);
  background: var(--ax-amber-soft);
}
.ax-main .ax-tag.bad {
  color: var(--ax-red);
  background: var(--ax-red-soft);
}
.ax-main .ax-tag.teal {
  color: var(--ax-teal-dark);
  background: var(--ax-teal-soft);
}
.ax-main .ax-nodata {
  color: #8da0a9;
  font-style: normal;
}
.ax-main .ax-heat :is(th,td) {
  padding: 7px 5px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.ax-main .ax-tree tr.grp td {
  background: #f1f5f5;
  font-weight: 750;
}
.ax-main .ax-tree tr.grp td.name a { font-weight: 800; }
.ax-main .ax-tree td.name {
  white-space: normal;
  min-width: 150px;
}
.ax-main .ax-tree .lvl1 td.name { padding-left: 28px; }
.ax-main .ax-tree .lvl2 td.name { padding-left: 44px; }
.ax-main .ax-tree .lvl3 td.name { padding-left: 60px; }
.ax-main .ax-tree .tg {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  margin-right: 7px;
  color: var(--ax-navy);
  background: white;
  border: 1px solid var(--ax-line);
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  vertical-align: middle;
}
.ax-main .ax-tree .tg.open {
  color: white;
  background: var(--ax-navy);
  border-color: var(--ax-navy);
}
.ax-main .ax-tree tr.sel td { background: var(--ax-teal-soft); }
.ax-main .ax-tree td.name a { font-weight: 750; }
.ax-main .ax-side {
  position: sticky;
  top: 16px;
  min-width: 0;
}

/* 10. SVG ГРАФИКИ */

.ax-main .ax-chart {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow: visible;
}
.ax-main .ax-chart text {
  fill: #728791;
  font: 11px var(--ax-font-data);
}
.ax-main .ax-chart .grid {
  stroke: #e2e9eb;
  stroke-width: 1;
  stroke-dasharray: 2 4;
}
.ax-main .ax-chart .ln {
  fill: none;
  stroke: #0c929b;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ax-main .ax-chart .ln.ctx {
  stroke: #9db2ba;
  stroke-width: 1.6;
}
.ax-main .ax-chart .ar {
  fill: #1bb6bd;
  opacity: .065;
}
.ax-main .ax-chart .dot {
  fill: #087f89;
  stroke: white;
  stroke-width: 2.1;
}
.ax-main .ax-chart .bar { fill: #17a1aa; }
.ax-main .ax-chart .bar.ctx { fill: #b4c7cd; }
.ax-main .ax-chart .lbl {
  fill: var(--ax-ink);
  font-size: 11px;
  font-weight: 750;
}
.ax-main .ax-chart .end {
  fill: var(--ax-navy);
  font-size: 12px;
  font-weight: 800;
}
.ax-main .ax-chart .hit { fill: transparent; }
.ax-main .ax-chart .ax-dim { opacity: .22; }

.ax-main .ax-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 10px;
  color: var(--ax-muted);
  font-size: 11px;
}
.ax-main .ax-legend i {
  display: inline-block;
  width: 16px;
  height: 3px;
  margin-right: 6px;
  background: #0c929b;
  border-radius: 1px;
  vertical-align: middle;
}
.ax-main .ax-legend i.ctx { background: #9db2ba; }
.ax-main .ax-legend i.sq {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* Tooltip создаётся JS внутри body */

.ax-page .ax-tt {
  display: none;
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  max-width: 275px;
  padding: 9px 12px;
  background: var(--ax-navy);
  color: white;
  border: 1px solid #345c72;
  border-radius: 6px;
  box-shadow: 0 9px 27px rgba(19,55,79,.22);
  font: 12px/1.5 var(--ax-font);
}
.ax-page .ax-tt b { color: #9eeced; }

/* 11. ЯКОРНАЯ НАВИГАЦИЯ */

.ax-main .ax-sticky {
  position: sticky;
  top: var(--ax-sticky-top, 0px);
  z-index: 36;
  margin: 17px 0 2px;
  padding: 9px 0;
  background: rgba(245,247,247,.98);
  border-top: 1px solid var(--ax-line);
  border-bottom: 1px solid var(--ax-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.ax-main .ax-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 5px;
  margin: 0;
}
.ax-main .ax-tabs :is(a,button) {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  color: #59717e;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font: 750 12px/1.3 var(--ax-font);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.ax-main .ax-tabs :is(a,button):hover {
  color: var(--ax-navy);
  background: #eaf0f1;
}
.ax-main .ax-tabs :is(a.on,button.on) {
  color: var(--ax-navy);
  background: transparent;
  border-bottom-color: var(--ax-teal);
}

/* Совместимость с дополнительными компонентами */

.ax-main .ax-qs {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  margin: 8px 0 14px;
}
.ax-main .ax-q {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  color: var(--ax-ink);
  background: white;
  border: 1px solid var(--ax-line);
  border-radius: var(--ax-r);
  text-decoration: none;
}
.ax-main .ax-q:hover { border-color: var(--ax-teal); }
.ax-main .ax-q-q {
  color: var(--ax-navy);
  font-size: 16px;
  font-weight: 800;
}
.ax-main .ax-q-v {
  color: var(--ax-navy);
  font: 650 28px/1.1 var(--ax-font-data);
}
.ax-main .ax-q-a {
  flex: 1;
  color: var(--ax-muted);
  font-size: 12px;
}
.ax-main .ax-q-l {
  color: var(--ax-teal-dark);
  font-size: 12px;
  font-weight: 700;
}
.ax-main .ax-score {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ax-main .ax-score-row {
  display: grid;
  grid-template-columns: 190px minmax(0,1fr) 140px;
  align-items: center;
  gap: 14px;
}
.ax-main .ax-score-row .q {
  color: var(--ax-navy);
  font-weight: 800;
  font-size: 14px;
}
.ax-main .ax-score-row .q small {
  display: block;
  color: var(--ax-muted);
  font-size: 11px;
  font-weight: 500;
}
.ax-main .ax-scale {
  position: relative;
  height: 36px;
}
.ax-main .ax-scale .track {
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 5px;
  background: #e2e9eb;
}
.ax-main .ax-scale .ticks {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 12px;
}
.ax-main .ax-scale .ticks i {
  position: absolute;
  top: 0;
  width: 1px;
  height: 12px;
  background: #b2c3ca;
}
.ax-main .ax-scale .mk {
  position: absolute;
  top: 7px;
  width: 20px;
  height: 20px;
  transform: translateX(-50%);
  background: var(--ax-teal);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(19,55,79,.2);
}
.ax-main .ax-scale .mk.ref {
  width: 11px;
  height: 11px;
  top: 12px;
  background: #9fb5bc;
  border-width: 2px;
  box-shadow: none;
}
.ax-main .ax-scale .cap {
  position: absolute;
  top: 30px;
  color: var(--ax-muted);
  font-size: 10px;
  white-space: nowrap;
}
.ax-main .ax-scale .cap.l { left: 0; }
.ax-main .ax-scale .cap.r { right: 0; }
.ax-main .ax-score-row .v { text-align: right; }
.ax-main .ax-score-row .v b {
  display: block;
  color: var(--ax-navy);
  font: 700 21px/1.1 var(--ax-font-data);
}
.ax-main .ax-score-row .v span {
  color: var(--ax-muted);
  font-size: 11px;
}

.ax-main .ax-matr th.lvl {
  color: var(--ax-navy);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}
.ax-main .ax-matr th.lvl small {
  display: block;
  color: var(--ax-muted);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.ax-main .ax-matr td.q {
  min-width: 160px;
  color: var(--ax-navy);
  font-weight: 750;
  white-space: normal;
}
.ax-main .ax-matr td.q small {
  display: block;
  color: var(--ax-muted);
  font-size: 11px;
  font-weight: 500;
}
.ax-main .ax-matr td.me {
  background: var(--ax-teal-soft);
  color: var(--ax-navy);
  font-weight: 800;
}
.ax-main .ax-matr td .vs {
  display: block;
  color: var(--ax-muted);
  font-size: 11px;
  font-weight: 600;
}

/* 12. КАРТА */

.ax-main .ax-map {
  position: relative;
  overflow: hidden;
  min-width: 0;
  background: #edf3f3;
  border: 1px solid var(--ax-line-light);
  border-radius: 6px;
}
.ax-main .ax-map svg {
  display: block;
  width: 100%;
  height: auto;
}
.ax-main .ax-map .ray {
  stroke: #f6faf9;
  stroke-width: 1.15;
  cursor: pointer;
  transition: opacity .15s, stroke-width .15s;
}
.ax-main .ax-map .ray:hover {
  stroke: var(--ax-navy);
  stroke-width: 1.8;
}
.ax-main .ax-map .ray.sel {
  stroke: var(--ax-navy);
  stroke-width: 2.5;
}
.ax-main .ax-map .okr {
  fill: none;
  stroke: #466679;
  stroke-width: 1.5;
  opacity: .75;
  pointer-events: none;
}
.ax-main .ax-map .pin {
  fill: var(--ax-navy);
  stroke: white;
  stroke-width: 1.75;
  cursor: pointer;
}
.ax-main .ax-map .pin:hover { fill: var(--ax-teal-dark); }
.ax-main .ax-map .pin.sel {
  fill: var(--ax-teal);
  stroke: var(--ax-navy);
  stroke-width: 2;
}
.ax-main .ax-map-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin-top: 12px;
  color: var(--ax-muted);
  font-size: 11px;
}
.ax-main .ax-map-legend i {
  display: inline-block;
  width: 24px;
  height: 8px;
  border-radius: 0;
}
.ax-main .ax-map-side .nm {
  color: var(--ax-navy);
  font: 700 19px/1.25 var(--ax-font-data);
}

/* 13. ГЛАВНАЯ АНАЛИТИКИ И ДОПОЛНИТЕЛЬНЫЕ ЭЛЕМЕНТЫ */

.ax-main .ax-entry h1 {
  font-size: clamp(35px,3.5vw,50px);
}
.ax-main .ax-entry .ax-search { margin-left: 0; }

.ax-page .ax-switch {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--ax-navy);
  border-radius: 7px;
  box-shadow: 0 10px 25px rgba(19,55,79,.3);
  color: #fff;
  font-size: 12px;
}
.ax-page .ax-switch a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.ax-page .ax-switch .l a {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: 2px;
  background: rgba(255,255,255,.12);
  border-radius: 4px;
}
.ax-page .ax-switch .l a.on {
  color: var(--ax-navy);
  background: var(--ax-green);
}
.ax-page .ax-switch .n { opacity: .85; }
.ax-main .ax-mock {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  color: var(--ax-muted);
  border: 1px dashed var(--ax-line);
  border-radius: 3px;
  font-size: 10px;
  text-transform: uppercase;
  vertical-align: middle;
}

/* 14. АДАПТИВНОСТЬ */

@media (max-width: 1140px) {
  .ax-main .ax-cards.c5,
  .ax-main .ax-cards.compact {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .ax-main .ax-cards.c6 {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .ax-main .ax-cards.compact .ax-card {
    border-right: 1px solid var(--ax-line-light);
    border-bottom: 1px solid var(--ax-line-light);
  }
  .ax-main .ax-cards.compact .ax-card:nth-child(3n) {
    border-right: 0;
  }
  .ax-main .ax-cards.compact .ax-card:nth-last-child(-n+2) {
    border-bottom: 0;
  }
  .ax-main .ax-qs {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

@media (max-width: 960px) {
  .ax-page .ax-main > .container { padding: 0 22px; }

  .ax-main .ax-hero {
    grid-template-columns: minmax(0,1fr);
  }
  .ax-main .ax-hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }
  .ax-main .ax-date { text-align: left; }

  .ax-main .ax-grid.g21,
  .ax-main .ax-grid.g12 {
    grid-template-columns: minmax(0,1fr);
  }
  .ax-main .ax-grid.g3 {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .ax-main .ax-cards {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .ax-main .ax-cards.c3 {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .ax-main .ax-cards.c3.big .ax-card:first-child {
    grid-column: span 2;
  }
  .ax-main .ax-cards.c6 {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .ax-main .ax-side { position: static; }
  .ax-main .ax-score-row {
    grid-template-columns: 160px minmax(0,1fr) 110px;
  }
  .ax-main .ax-qs {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .ax-main .ax-period .n {
    flex-basis: 100%;
    text-align: left;
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .ax-page .ax-main { padding: 0 0 60px; }
  .ax-page .ax-main > .container { padding: 0 16px; }
  .ax-main h1 { font-size: 31px; }
  .ax-main h2 { font-size: 23px; }

  .ax-main .ax-geo {
    padding: 9px 0 7px;
    margin-bottom: 10px;
  }
  .ax-main .ax-geo-row {
    gap: 5px;
    min-height: 38px;
  }
  .ax-main .ax-geo-row .l { display: none; }
  .ax-main .ax-geo-row a {
    min-height: 29px;
    padding: 5px 9px;
    font-size: 12px;
  }
  .ax-main .ax-geo-row a .k { font-size: 10px; }

  .ax-main .ax-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    margin: 4px 0 10px;
  }
  .ax-main .ax-crumbs {
    font-size: 10.5px;
    gap: 3px 6px;
  }
  .ax-main .ax-search { min-height: 41px; }
  .ax-main .ax-search .kbd { display: none; }

  .ax-main .ax-period {
    display: block;
    padding: 7px 0 10px;
    margin-bottom: 17px;
  }
  .ax-main .ax-period .l {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
  }
  .ax-main .ax-period .ax-seg {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
  }
  .ax-main .ax-period .ax-seg button { padding: 8px 10px; }
  .ax-main .ax-period .n {
    display: block;
    margin: 7px 0 0;
    text-align: left;
    font-size: 10px;
  }

  .ax-main .ax-hero { padding-bottom: 14px; }
  .ax-main .ax-hero-short { padding-bottom: 14px; }
  .ax-main .ax-eyebrow {
    font-size: 9px;
    margin-bottom: 4px;
  }
  .ax-main .ax-chips {
    gap: 3px 10px;
    margin-top: 8px;
  }
  .ax-main .ax-chip {
    font-size: 11px;
    min-height: 23px;
  }

  .ax-main .ax-cards.big {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
  }
  .ax-main .ax-cards.big .ax-card {
    min-height: 0;
    padding: 15px;
  }
  .ax-main .ax-cards.big .ax-card:first-child {
    grid-column: 1 / -1;
  }
  .ax-main .ax-cards.big .ax-card-v {
    font-size: 26px;
  }
  .ax-main .ax-cards.big .ax-card:first-child .ax-card-v {
    font-size: 37px;
  }
  .ax-main .ax-cards.big .ax-card-q { font-size: 11px; }
  .ax-main .ax-cards.big .ax-card-v .u { font-size: 11px; }
  .ax-main .ax-cards.big .ax-ctx { font-size: 10px; }
  .ax-main .ax-cards.big .ax-card .ax-help {
    top: 10px;
    right: 10px;
  }

  .ax-main .ax-cards.compact,
  .ax-main .ax-cards.c5,
  .ax-main .ax-cards.c6 {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .ax-main .ax-cards.compact .ax-card {
    min-height: 140px;
    padding: 14px 12px;
    border-right: 1px solid var(--ax-line-light);
    border-bottom: 1px solid var(--ax-line-light);
  }
  .ax-main .ax-cards.compact .ax-card:nth-child(2n) {
    border-right: 0;
  }
  .ax-main .ax-cards.compact .ax-card:nth-child(3n) {
    border-right: 1px solid var(--ax-line-light);
  }
  .ax-main .ax-cards.compact .ax-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }
  .ax-main .ax-cards.compact .ax-card-v { font-size: 25px; }

  .ax-main .ax-cards:not(.big):not(.compact) {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .ax-main .ax-cards:not(.big):not(.compact) .ax-card:first-child {
    grid-column: 1 / -1;
  }
  .ax-main .ax-cards:not(.big):not(.compact)
  > .ax-card:nth-child(n+5) {
    min-height: 0;
    margin-top: 0;
    padding: 15px;
    background: white;
    border: 1px solid var(--ax-line);
    border-radius: var(--ax-r);
  }
  .ax-main .ax-cards > .ax-card {
    min-height: 0;
    padding: 15px;
  }
  .ax-main .ax-cards:not(.big):not(.compact) .ax-card-v {
    font-size: 27px;
  }

  .ax-main .ax-grid,
  .ax-main .ax-grid.g21,
  .ax-main .ax-grid.g12,
  .ax-main .ax-grid.g3 {
    grid-template-columns: minmax(0,1fr);
    gap: 11px;
  }
  .ax-main .ax-sec {
    margin-top: 39px;
    scroll-margin-top: 58px;
  }
  .ax-main .ax-sec-h {
    margin-bottom: 12px;
    padding-bottom: 11px;
  }
  .ax-main .ax-sec-h h2::before { font-size: 10px; }
  .ax-main .ax-box { padding: 15px 14px; }
  .ax-main .ax-box h3 { font-size: 15px; }
  .ax-main .ax-box .sub { font-size: 11px; }
  .ax-main .ax-summary {
    font-size: 12px !important;
    line-height: 1.7;
  }

  .ax-main .ax-sticky {
    margin-top: 13px;
    padding: 3px 0;
  }
  .ax-main .ax-sticky .ax-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .ax-main .ax-sticky .ax-tabs::-webkit-scrollbar {
    display: none;
  }
  .ax-main .ax-tabs :is(a,button) {
    flex: 0 0 auto;
    font-size: 11px;
    padding: 8px 9px;
  }

  .ax-main .ax-table { font-size: 11.5px; }
  .ax-main .ax-table th {
    font-size: 9.5px;
    padding: 9px 6px;
  }
  .ax-main .ax-table td { padding: 9px 6px; }
  .ax-main .ax-table-wrap { border-radius: 0; }
  .ax-main .ax-table-wrap .ax-table:has(th:nth-child(5)) {
    min-width: 550px;
  }
  .ax-main .ax-table-wrap .ax-table th:first-child,
  .ax-main .ax-table-wrap .ax-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: white;
    box-shadow: 1px 0 0 var(--ax-line);
  }
  .ax-main .ax-table-wrap .ax-table th:first-child {
    z-index: 3;
    background: #f5f8f8;
  }
  .ax-main .ax-table-wrap .ax-table tr.me td:first-child {
    background: #eaf6f5;
  }
  .ax-main .ax-chart text { font-size: 11px; }

  /* Подсказки не выходят за экран телефона */

  .ax-main .ax-tip {
    position: fixed;
    top: clamp(72px, 12vh, 120px);
    left: 14px;
    right: 14px;
    width: auto;
    max-width: none;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    z-index: 1000;
  }
  .ax-main .ax-qs {
    grid-template-columns: minmax(0,1fr);
  }
  .ax-main .ax-score-row {
    grid-template-columns: minmax(0,1fr);
    gap: 6px;
  }
  .ax-main .ax-score-row .v { text-align: left; }
  .ax-main .ax-score-row .v b {
    display: inline;
    margin-right: 8px;
  }
  .ax-main .ax-matr td.q { min-width: 100px; }
  .ax-page .ax-switch {
    left: 7px;
    bottom: 7px;
    padding: 5px 7px;
    font-size: 11px;
  }
  .ax-page .ax-switch .n { display: none; }
  .ax-main .m-hide { display: none !important; }
}

@media (max-width: 390px) {
  .ax-page .ax-main > .container { padding: 0 14px; }
  .ax-main .ax-cards.big .ax-card:first-child .ax-card-v {
    font-size: 34px;
  }
  .ax-main .ax-cards.big .ax-card-v { font-size: 24px; }
  .ax-main .ax-cards.compact .ax-card-v { font-size: 22px; }
  .ax-main .ax-cards.compact .ax-verdict { font-size: 10px; }
  .ax-main .ax-hero h1 { font-size: 30px; }
  .ax-main .ax-card-q { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .ax-main a,
  .ax-main .ax-map .ray {
    transition: none;
  }
}

@media print {
  .ax-page .ax-main {
    background: #fff;
    overflow: visible;
  }
  .ax-main .ax-geo,
  .ax-main .ax-search,
  .ax-main .ax-period,
  .ax-main .ax-tabs,
  .ax-main .ax-sticky,
  .ax-main .ax-help,
  .ax-page .ax-switch {
    display: none !important;
  }
  .ax-main .ax-box,
  .ax-main .ax-card {
    break-inside: avoid;
  }
  .ax-main .ax-cards.big .ax-card:first-child {
    background: white;
    color: var(--ax-navy);
    border: 1px solid var(--ax-navy);
  }
}

/* 15. ПАЛИТРЫ ГЕНЕРАТОРА
   fill/stroke-атрибуты SVG остаются запасными.
*/

/* Карта: q0 — минимальная цена, q4 — максимальная */

.ax-main .ax-map path.ray.q0 { fill: #d2eceb; }
.ax-main .ax-map path.ray.q1 { fill: #91d2d1; }
.ax-main .ax-map path.ray.q2 { fill: #48aab0; }
.ax-main .ax-map path.ray.q3 { fill: #237c8a; }
.ax-main .ax-map path.ray.q4 { fill: #164a5d; }
.ax-main .ax-map path.ray.qn { fill: #e2e9eb; }

/* Комнатность:
   r0 — студия
   r1 — 1-комнатная
   r2 — 2-комнатная
   r3 — 3-комнатная
*/

.ax-main .ax-chart path.lnr.r0 {
  fill: none;
  stroke: #168c99;
}
.ax-main .ax-chart path.lnr.r1 {
  fill: none;
  stroke: #497ab0;
}
.ax-main .ax-chart path.lnr.r2 {
  fill: none;
  stroke: #9665a2;
}
.ax-main .ax-chart path.lnr.r3 {
  fill: none;
  stroke: #c48b40;
}

.ax-main .ax-chart circle.dotr.r0 { fill: #168c99; }
.ax-main .ax-chart circle.dotr.r1 { fill: #497ab0; }
.ax-main .ax-chart circle.dotr.r2 { fill: #9665a2; }
.ax-main .ax-chart circle.dotr.r3 { fill: #c48b40; }

.ax-main .ax-legend i.lg.r0 { background: #168c99; }
.ax-main .ax-legend i.lg.r1 { background: #497ab0; }
.ax-main .ax-legend i.lg.r2 { background: #9665a2; }
.ax-main .ax-legend i.lg.r3 { background: #c48b40; }

.ax-main .ax-chart rect.sbar.r0 { fill: #168c99; }
.ax-main .ax-chart rect.sbar.r1 { fill: #497ab0; }
.ax-main .ax-chart rect.sbar.r2 { fill: #9665a2; }
.ax-main .ax-chart rect.sbar.r3 { fill: #c48b40; }

/* Сезонность: h0 — минимум, h6 — максимум */

.ax-main .ax-heat td.hm.h0 {
  background: #f0f7f7;
  color: #315462;
}
.ax-main .ax-heat td.hm.h1 {
  background: #d9eeee;
  color: #315462;
}
.ax-main .ax-heat td.hm.h2 {
  background: #b6dedd;
  color: #274959;
}
.ax-main .ax-heat td.hm.h3 {
  background: #86c8cb;
  color: #173e4b;
}
.ax-main .ax-heat td.hm.h4 {
  background: #4da9b0;
  color: #103843;
}
.ax-main .ax-heat td.hm.h5 {
  background: #267e8b;
  color: #fff;
}
.ax-main .ax-heat td.hm.h6 {
  background: #155061;
  color: #fff;
}
.ax-main .ax-heat td.hm.hm-ink { color: #fff; }

/* КОНЕЦ an.css — АТЛАС РЫНКА */

/* ATLAS v1.1 — исправления после живого просмотра */

/* 1. Выравнивание с контейнером шапки */

.ax-page .ax-main > .container {
  max-width: 1320px;
}

/* 2. Убрать избыточные вертикальные разрывы */

.ax-main .ax-sec {
  margin-top: 28px;
}

.ax-main .ax-sticky {
  margin: 10px 0 0;
  padding: 5px 0;
}

.ax-main .ax-sticky + .ax-sec {
  margin-top: 18px;
}

/* 3. Убрать декоративный квадрат и разрядку */

.ax-main .ax-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ax-muted);
  margin-bottom: 4px;
}

.ax-main .ax-eyebrow .dot {
  display: none;
}

/* легенда карты — те же цвета, что у районов (классы i.mq.q0–q4 / qn) */
.ax-main .ax-map-legend i.mq.q0 { background: #d2eceb; }
.ax-main .ax-map-legend i.mq.q1 { background: #91d2d1; }
.ax-main .ax-map-legend i.mq.q2 { background: #48aab0; }
.ax-main .ax-map-legend i.mq.q3 { background: #237c8a; }
.ax-main .ax-map-legend i.mq.q4 { background: #164a5d; }
.ax-main .ax-map-legend i.mq.qn { background: #e2e9eb; }

/* ATLAS v1.2 — пропорциональные крупные цифры */
/* селектор усилен: перебивает .ax-main :is(…) с tabular-nums (0,3,x) */
.ax-page .ax-main .ax-cards .ax-card .ax-card-v {
  font-variant-numeric: proportional-nums lining-nums;
  font-kerning: normal;
}
