/* ==========================================================================
   АвтоРейтинг — домашняя страница, независимая дизайн-система.
   Префикс классов: ar-*  (намеренно не пересекается с rv-* основного сайта).
   Подключается ПОСЛЕ site.css — переопределяет только то, что относится
   к новым блокам (.ar-*). Общие инфраструктурные вещи (main, .stars/.star,
   форма отзыва, карточка компании и т.д.) наследуются из site.css как есть.

   01.10.2026 — ПОЛНЫЙ ПЕРЕСМОТР по прямому запросу "вот тебе верстка
   готовая ее натяни на наш сайт": пользователь прислал готовый HTML/CSS-
   мокап новой главной (синяя палитра --blue/--ink/--navy, стеклянная
   шапка, полноэкранный hero-фон с градиентом, "плавающая" карточка
   статистики поверх hero, карточки городов с фото, тёмный футер).
   Ниже — адаптация этого мокапа под реальные ar-* классы/данные сайта.
   Предыдущие версии токенов/вёрстки (плоский рендер с узкой фото-врезкой
   в hero, список городов без фото и т.д.) заменены этим мокапом как более
   новым прямым указанием пользователя — см. историю правок файла в git,
   если понадобится вернуть что-то из старого вида.
   ========================================================================== */

:root {
  --ar-blue: #1f6bff;
  --ar-blue-dark: #0f55e6;
  --ar-blue-soft: #eaf2ff;
  --ar-blue-soft-2: #f2f7ff;

  --ar-ink: #0d1b34;
  --ar-text: #2a3650;
  --ar-muted: #6b7890;
  --ar-line: #e6ecf5;
  --ar-bg-page: #f6f9fd;
  --ar-card: #ffffff;
  --ar-navy: #16213a;

  --ar-star-on: #2f6fed;
  --ar-star-off: #d3dbe8;

  /* Совместимость со старыми именами переменных — используются ниже и,
     местами, в разметке вне ar-home.css; не переименовываем точечно
     каждое вхождение, проще держать алиасы. */
  --ar-brand: var(--ar-blue);
  --ar-brand-dark: var(--ar-blue-dark);
  --ar-brand-soft: var(--ar-blue-soft);
  --ar-brand-ring: rgba(31, 107, 255, 0.16);
  --ar-ink-soft: var(--ar-text);
  --ar-ink-faint: var(--ar-muted);
  --ar-line-strong: #d7e0ef;
  --ar-hover: #f5f8fd;
  --ar-bg-deep: var(--ar-navy);
  --ar-good: #157347;
  --ar-good-soft: #e5f6ed;

  --ar-radius: 10px;
  --ar-radius-sm: 8px;
  --ar-radius-lg: 14px;
  --ar-radius-pill: 999px;

  --ar-shadow-sm: 0 2px 10px rgba(20, 45, 100, 0.06);
  --ar-shadow: 0 10px 30px -12px rgba(20, 45, 100, 0.18);

  --ar-max-width: 1200px;
  --ar-container-pad: 40px;
  --ar-gap: 24px;

  --ar-font-display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ar-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* Фон страницы — только на главной (см. <body class="ar-home-page">,
   base.html): мокап держит все карточки (статистика, города, таблица,
   отзывы) на лёгком голубовато-сером фоне --ar-bg-page, иначе белые
   карточки сольются с белым фоном <main> на остальных страницах сайта.
   На остальных страницах main остаётся как было (белый, site.css). */
body.ar-home-page main { background: var(--ar-bg-page); }

.ar-header, .ar-footer, .ar-hero, .ar-section, .ar-submit {
  font-family: var(--ar-font-body);
  color: var(--ar-ink);
}
.ar-header h1, .ar-header h2, .ar-header h3,
.ar-footer h1, .ar-footer h2, .ar-footer h3,
.ar-hero h1, .ar-hero h2, .ar-hero h3,
.ar-section h1, .ar-section h2, .ar-section h3,
.ar-submit h1, .ar-submit h2, .ar-submit h3 {
  font-family: var(--ar-font-display);
  letter-spacing: -0.015em;
  font-weight: 800;
  color: var(--ar-ink);
}

/* -------------------------------------------------------------------------
   Кнопки
   ------------------------------------------------------------------------- */
.ar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--ar-radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  color: var(--ar-ink);
  background: #fff;
  transition: filter 0.15s, background 0.15s, border-color 0.15s, transform 0.1s, color 0.15s;
  cursor: pointer;
  white-space: nowrap;
}
.ar-btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #2a78ff 0%, #155ef0 100%);
  box-shadow: 0 8px 18px -6px rgba(31, 107, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.ar-btn-primary:hover { filter: brightness(1.06); color: #fff; }
.ar-btn-primary:active { transform: translateY(1px); }
.ar-btn-ghost {
  height: 34px;
  padding: 0 14px;
  font-size: 0.82rem;
  color: var(--ar-ink);
  background: #fff;
  border: 1px solid var(--ar-line);
}
.ar-btn-ghost:hover { border-color: #bfd2f5; color: var(--ar-blue); }
.ar-btn-ghost svg { width: 14px; height: 14px; }

/* -------------------------------------------------------------------------
   Логотип (реальный файл — лого проекта, не иконка+текст, см. base.html)
   ------------------------------------------------------------------------- */
.ar-brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.ar-brand-logo { height: 26px; width: auto; display: block; }
.ar-footer-brand .ar-brand-logo { height: 24px; }

/* -------------------------------------------------------------------------
   Хедер — полупрозрачная «стеклянная» плашка (sticky, не fixed: на
   остальных страницах сайта нет hero под ней, и смысла переводить ВЕСЬ
   сайт на position:fixed с компенсацией отступа на каждой странице нет —
   sticky даёт тот же эффект "плашка остаётся видна при скролле", разница
   только в том, что на главной шапка не "парит" прозрачно поверх самого
   hero-изображения, а сразу стоит над ним сплошной стеклянной полосой).
   ------------------------------------------------------------------------- */
.ar-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.82) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(20, 45, 100, 0.06);
  box-shadow: 0 6px 24px -16px rgba(20, 45, 100, 0.25);
}
.ar-header-inner {
  max-width: var(--ar-max-width);
  margin: 0 auto;
  padding: 0 var(--ar-container-pad);
  height: 60px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.ar-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.ar-nav::-webkit-scrollbar { display: none; }
.ar-nav a {
  color: var(--ar-ink);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s;
}
.ar-nav a:hover { color: var(--ar-blue); }
.ar-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.ar-header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e3e9f3;
  border-radius: var(--ar-radius-pill);
  padding: 0 14px;
  height: 38px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--ar-shadow-sm);
  min-width: 0;
}
.ar-header-search svg { width: 15px; height: 15px; flex: none; color: var(--ar-muted); }
.ar-header-search input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.78rem;
  color: var(--ar-ink);
  width: 170px;
  font-family: var(--ar-font-body);
  text-overflow: ellipsis;
}
.ar-header-search input::placeholder { color: #8b97ab; }
.ar-header-actions .ar-btn { height: 38px; padding: 0 18px; font-size: 0.82rem; }

/* -------------------------------------------------------------------------
   Секции — общая разметка
   ------------------------------------------------------------------------- */
.ar-section {
  max-width: var(--ar-max-width);
  margin: 0 auto;
  padding: 36px 24px;
}
.ar-section-alt {
  max-width: none;
  padding: 36px var(--ar-container-pad);
  margin: 0 -16px;
}
.ar-section-alt > * {
  max-width: var(--ar-max-width);
  margin-left: auto;
  margin-right: auto;
}
.ar-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.ar-section-head h2 {
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  margin: 0;
}
.ar-section-head p {
  margin: 6px 0 0;
  color: var(--ar-muted);
  font-size: 0.9rem;
}
.ar-section-head a:not(.ar-btn) {
  color: var(--ar-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}
.ar-section-head a:not(.ar-btn):hover { text-decoration: underline; }

/* -------------------------------------------------------------------------
   Hero — полноэкранный фон (реальное фото автосалона, см. home.html),
   левый белый градиент под текст (как в мокапе: .hero::before/::after).
   "Пробивает" <main> на 100vw (main даёт странице padding-top:28px и
   side-padding — тут не нужны, гасим отрицательным margin-top и уходим
   в 100vw тем же приёмом, что был в предыдущих версиях этого файла).
   ------------------------------------------------------------------------- */
.ar-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -28px;
  min-height: 420px;
  isolation: isolate;
  background: var(--ar-hero-bg) right 38% / cover no-repeat;
}
.ar-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, .96) 0%,
    rgba(255, 255, 255, .90) 24%,
    rgba(255, 255, 255, .70) 40%,
    rgba(255, 255, 255, .25) 54%,
    rgba(255, 255, 255, 0) 64%);
}
.ar-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, 0) 22%),
    linear-gradient(0deg, var(--ar-bg-page) 0%, rgba(246, 249, 253, .85) 9%, rgba(246, 249, 253, 0) 30%);
}
.ar-hero-container {
  position: relative;
  z-index: 1;
  max-width: var(--ar-max-width);
  margin: 0 auto;
  padding: 90px var(--ar-container-pad) 108px;
}
.ar-hero-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border-radius: var(--ar-radius-pill);
  background: rgba(222, 234, 255, .9);
  color: #3b5fa8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ar-hero h1 {
  font-size: 3.1rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 16px 0 12px;
}
.ar-hero-lead {
  font-size: 1.05rem;
  line-height: 1.45;
  color: #2b3852;
  max-width: 560px;
  margin: 0;
}
.ar-finder {
  margin-top: 26px;
  display: flex;
  gap: 10px;
  padding: 10px;
  width: max-content;
  max-width: 100%;
  background: rgba(255, 255, 255, .92);
  border-radius: var(--ar-radius-lg);
  box-shadow: 0 18px 40px -16px rgba(20, 45, 100, .28), 0 1px 0 rgba(255, 255, 255, .8) inset;
  backdrop-filter: blur(6px);
  flex-wrap: wrap;
}
.ar-finder-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 230px;
  height: 56px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #e3e9f3;
  border-radius: var(--ar-radius-sm);
  transition: border-color .15s;
}
.ar-finder-field:hover { border-color: #bcd0f5; }
.ar-finder-field:focus-within { border-color: var(--ar-blue); box-shadow: 0 0 0 3px var(--ar-brand-ring); }
.ar-finder-icon { width: 20px; height: 20px; flex: none; color: #5c6a82; }
.ar-finder-field > div { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.ar-finder-field label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ar-ink);
  margin: 0;
}
.ar-finder-field input,
.ar-finder-field select {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.78rem;
  color: #8a96aa;
  background: none;
  font-family: var(--ar-font-body);
  padding: 0;
}
.ar-finder-field input::placeholder { color: #8a96aa; }
.ar-finder-submit { flex: none; height: 56px; width: 120px; font-size: 0.9rem; border-radius: var(--ar-radius-sm); }

/* -------------------------------------------------------------------------
   Статистика — белая карточка, "наезжающая" на нижний край hero
   (отрицательный margin-top), 4 равные колонки с разделителями.
   ------------------------------------------------------------------------- */
.ar-stats {
  max-width: var(--ar-max-width);
  margin: -52px auto 0;
  padding: 0 var(--ar-container-pad);
  position: relative;
  z-index: 3;
}
.ar-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: var(--ar-radius-lg);
  box-shadow: var(--ar-shadow);
  border: 1px solid #edf1f7;
}
.ar-stat {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  position: relative;
}
.ar-stat + .ar-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 1px;
  background: var(--ar-line);
}
.ar-stat svg { width: 28px; height: 28px; color: #5a6780; flex: none; }
.ar-stat div { display: flex; flex-direction: column; line-height: 1.15; }
.ar-stat strong { font-family: var(--ar-font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.ar-stat span { color: var(--ar-muted); font-size: 0.82rem; }

/* -------------------------------------------------------------------------
   Результаты поиска (без изменений мокапом — оставлены как было)
   ------------------------------------------------------------------------- */
.ar-dealer-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ar-line);
  border-radius: var(--ar-radius);
  overflow: hidden;
  background: #fff;
}
.ar-dealer-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--ar-ink);
  border-bottom: 1px solid var(--ar-line);
  transition: background 0.12s;
}
.ar-dealer-row:last-child { border-bottom: none; }
.ar-dealer-row:hover { background: var(--ar-hover); }
.ar-dealer-name { font-weight: 700; flex: 1; min-width: 0; }
.ar-dealer-city { color: var(--ar-muted); font-size: 0.88rem; }
.ar-dealer-rating {
  font-weight: 800;
  color: var(--ar-blue);
  background: var(--ar-blue-soft);
  padding: 3px 10px;
  border-radius: var(--ar-radius-pill);
  font-size: 0.85rem;
}
.ar-empty {
  color: var(--ar-muted);
  padding: 24px;
  text-align: center;
  border: 1px dashed var(--ar-line-strong);
  border-radius: var(--ar-radius);
  margin: 0;
  background: #fff;
}

/* -------------------------------------------------------------------------
   Города — карточки с фото (как в мокапе: .city/.thumb), 2 колонки
   ------------------------------------------------------------------------- */
.ar-city-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--ar-gap);
  align-items: start;
}
.ar-city-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
.ar-city-entry {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 18px 8px 8px;
  background: #fff;
  border: 1px solid var(--ar-line);
  border-radius: var(--ar-radius);
  text-decoration: none;
  color: var(--ar-ink);
  transition: border-color .15s, box-shadow .15s;
}
.ar-city-entry:hover { border-color: #bfd2f5; box-shadow: var(--ar-shadow-sm); }
.ar-city-entry-thumb {
  width: 92px;
  height: 56px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  flex: none;
  background-color: var(--ar-blue-soft);
}
.ar-city-entry-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ar-city-entry-name { font-family: var(--ar-font-display); font-weight: 700; font-size: 0.95rem; color: var(--ar-ink); }
.ar-city-entry-meta {
  color: var(--ar-muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ar-city-entry-meta i { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: #9aa6b8; vertical-align: middle; margin: 0 7px; }
.ar-city-entry-arrow { flex: none; width: 16px; height: 16px; color: #3b4760; margin-left: auto; }

.ar-city-side { display: flex; flex-direction: column; gap: 16px; }
.ar-discuss {
  background: linear-gradient(180deg, #eef4ff 0%, #f3f7ff 100%);
  border: 1px solid #e1eafa;
  border-radius: var(--ar-radius-lg);
  padding: 22px 22px 18px;
}
.ar-discuss h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 10px;
}
.ar-discuss-list { display: flex; flex-direction: column; }
.ar-discuss-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #dfe7f5;
  text-decoration: none;
  color: var(--ar-ink);
}
.ar-discuss-item:last-child { border-bottom: 0; padding-bottom: 6px; }
.ar-discuss-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--ar-font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(160deg, #6aa4ff 0%, #3d7ef8 100%);
}
.ar-discuss-item h4 { font-family: var(--ar-font-display); font-size: 0.95rem; font-weight: 700; color: var(--ar-ink); margin: 0; }
.ar-discuss-item .ar-meta-line { font-size: 0.78rem; color: var(--ar-muted); margin: 2px 0 4px; }
.ar-discuss-item .ar-meta-line i { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: #9aa6b8; vertical-align: middle; margin: 0 7px; }
.ar-discuss-item .ar-rate { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.ar-discuss-item .ar-rate em { font-style: normal; font-size: 0.78rem; color: #4a566c; }
.ar-discuss-item p { font-size: 0.82rem; color: #4a566c; margin: 6px 0 0; line-height: 1.5; }
.ar-discuss-item .ar-discuss-date { font-size: 0.74rem; color: #8592a6; margin-top: 6px; }
.ar-more-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ar-blue);
  font-weight: 600;
  font-size: 0.84rem;
  text-decoration: none;
  padding-top: 10px;
}
.ar-more-link:hover { color: var(--ar-blue-dark); }
.ar-more-link svg { width: 14px; height: 14px; }

/* -------------------------------------------------------------------------
   SVG-звёзды (svg_stars, rating_extras.py) — замена текстовых ★/☆ только
   в новой разметке главной, с поддержкой половинок.
   ------------------------------------------------------------------------- */
/* Точка-разделитель в "мета"-строках (бренд/город, салон/город) — общее
   правило для ВСЕХ .ar-meta-line, а не только discuss/feature (были
   отдельные scoped-правила — пропустили .ar-review-stream-item, точка
   не отображалась). */
.ar-meta-line i { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: #9aa6b8; vertical-align: middle; margin: 0 7px; }
.ar-rate { display: flex; align-items: center; gap: 8px; }
.ar-rate em { font-style: normal; font-size: 0.8rem; color: #4a566c; }
.ar-svg-stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.ar-svg-stars svg { width: 16px; height: 16px; }
.ar-svg-stars-sm svg { width: 13px; height: 13px; }

/* -------------------------------------------------------------------------
   Рейтинги — чипы-фильтры + сортировка + таблица
   ------------------------------------------------------------------------- */
.ar-rating-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.ar-rating-filters { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.ar-rating-filter {
  height: 36px;
  padding: 0 20px;
  border-radius: var(--ar-radius-sm);
  border: 1px solid var(--ar-line);
  background: #fff;
  font-family: var(--ar-font-body);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ar-ink);
  cursor: pointer;
  transition: border-color .15s;
}
.ar-rating-filter:hover { border-color: #bfd2f5; }
.ar-rating-filter.is-active {
  background: linear-gradient(180deg, #2a78ff, #155ef0);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 14px -6px rgba(31, 107, 255, .6);
}
.ar-rating-sort {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--ar-text);
  font-weight: 500;
}
.ar-rating-sort select {
  height: 36px;
  min-width: 190px;
  border: 1px solid var(--ar-line);
  border-radius: var(--ar-radius-sm);
  background: #fff;
  color: var(--ar-ink);
  font-family: var(--ar-font-body);
  font-size: 0.8rem;
  padding: 0 12px;
  cursor: pointer;
}
.ar-rating-table-wrap {
  background: #fff;
  border: 1px solid var(--ar-line);
  border-radius: var(--ar-radius-lg);
  overflow: hidden;
  overflow-x: auto;
}
.ar-rating-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 760px; }
.ar-rating-table thead th {
  text-align: left;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ar-muted);
  padding: 14px 18px;
  border-bottom: 1px solid var(--ar-line);
  white-space: nowrap;
}
.ar-rating-table tbody td {
  padding: 9px 18px;
  border-bottom: 1px solid #eef2f8;
  color: var(--ar-text);
  white-space: nowrap;
}
.ar-rating-table tbody tr:last-child td { border-bottom: none; }
.ar-rating-table tbody tr { transition: background .12s; }
.ar-rating-table tbody tr:hover { background: #f7faff; }
.ar-rating-table td:first-child { white-space: normal; }
.ar-rating-table a { color: var(--ar-ink); text-decoration: none; }
.ar-rating-table-name { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--ar-ink); }
.ar-rating-table-badge {
  width: 34px;
  height: 26px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
  flex: none;
  object-fit: cover;
}
.ar-rating-table-score { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.ar-rating-table-score b { font-weight: 500; }
.ar-rating-table-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ar-blue) !important;
  font-weight: 600 !important;
  font-size: 0.86rem;
}
.ar-rating-table-open:hover { color: var(--ar-blue-dark) !important; }
.ar-rating-table-open svg { width: 14px; height: 14px; }
.ar-rating-table thead th:last-child, .ar-rating-table tbody td:last-child { text-align: right; }
.ar-rating-table tbody tr[hidden] { display: none; }

/* -------------------------------------------------------------------------
   Отзывы — крупная карточка (feature) + боковая лента (stream), 65/35
   ------------------------------------------------------------------------- */
.ar-review-layout {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: var(--ar-gap);
  align-items: stretch;
}
.ar-review-feature {
  background: linear-gradient(180deg, #eef4ff 0%, #f4f8ff 100%);
  border: 1px solid #e1eafa;
  border-radius: var(--ar-radius-lg);
  padding: 26px 28px 24px;
}
.ar-review-feature-head { display: flex; align-items: center; gap: 16px; }
.ar-review-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ar-blue-soft);
  color: var(--ar-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ar-font-display);
  font-weight: 800;
  font-size: 1.1rem;
  flex: none;
}
.ar-review-avatar-sm { width: 40px; height: 40px; font-size: 0.86rem; }
.ar-review-feature-head div { display: flex; flex-direction: column; }
.ar-review-author { font-family: var(--ar-font-display); font-weight: 700; font-size: 0.92rem; color: var(--ar-ink); }
.ar-review-sub { color: var(--ar-muted); font-size: 0.78rem; margin-top: 1px; }
.ar-review-feature h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.015em; margin: 16px 0 4px; }
.ar-review-feature .ar-meta-line { font-size: 0.82rem; color: var(--ar-muted); margin-bottom: 10px; }
.ar-review-feature .ar-meta-line i { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: #9aa6b8; vertical-align: middle; margin: 0 8px; }
.ar-review-text { font-size: 0.92rem; line-height: 1.6; color: #2f3b53; max-width: 880px; margin: 0; }
.ar-review-feature-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.ar-review-photos { display: flex; gap: 10px; }
.ar-review-photos img { width: 130px; height: 70px; border-radius: 6px; object-fit: cover; display: block; }
.ar-review-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ar-blue);
  font-weight: 600;
  font-size: 0.84rem;
  text-decoration: none;
}
.ar-review-feature-link:hover { text-decoration: underline; }
.ar-review-feature-link svg { width: 14px; height: 14px; }

.ar-review-stream {
  background: #fff;
  border: 1px solid var(--ar-line);
  border-radius: var(--ar-radius-lg);
  padding: 20px 22px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ar-review-stream h3 { font-size: 1.25rem; font-weight: 800; margin: 0 0 4px; }
.ar-review-stream-item {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid #eef2f8;
  text-decoration: none;
  color: var(--ar-ink);
}
.ar-review-stream-item:last-of-type { border-bottom: 0; }
.ar-review-stream-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ar-review-stream-head-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ar-review-stream-head b { font-family: var(--ar-font-display); font-size: 0.86rem; color: var(--ar-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-review-stream-item time { font-size: 0.72rem; color: #8592a6; flex: none; }
.ar-review-stream-item .ar-meta-line { font-size: 0.76rem; color: var(--ar-muted); margin: 2px 0 3px 50px; }
.ar-review-stream-item .ar-rate { display: flex; align-items: center; gap: 8px; margin: 2px 0 3px 50px; }
.ar-review-stream-item .ar-rate em { font-style: normal; font-size: 0.74rem; color: #4a566c; }
.ar-review-stream-item p { font-size: 0.78rem; color: #4a566c; margin: 4px 0 0 50px; line-height: 1.5; }
.ar-review-stream .ar-more-link { justify-content: flex-end; margin-top: auto; padding-top: 12px; }

/* -------------------------------------------------------------------------
   CTA "предложить салон" — в том же визуальном семействе, что discuss/
   feature (мягкий голубой градиент), а не тёмная плашка, как раньше —
   01.10.2026, под общий стиль мокапа.
   ------------------------------------------------------------------------- */
.ar-submit {
  max-width: var(--ar-max-width);
  margin: 0 auto;
  padding: 0 24px 48px;
}
.ar-submit-inner {
  background: linear-gradient(90deg, #eef4ff 0%, #f4f8ff 100%);
  border: 1px solid #e1eafa;
  border-radius: var(--ar-radius-lg);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.ar-submit-head { display: flex; align-items: center; gap: 20px; }
.ar-submit-icon {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #dce8ff;
  color: #3b6ed6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ar-submit-icon svg { width: 24px; height: 24px; }
.ar-submit-inner h2 { color: var(--ar-ink); font-size: 1.2rem; margin: 0 0 4px; }
.ar-submit-inner p { color: var(--ar-muted); margin: 0; max-width: 46ch; font-size: 0.88rem; }

/* -------------------------------------------------------------------------
   Футер — тёмный градиент (как в мокапе), 5-колоночная сетка (бренд + 4
   колонки реальных ссылок, см. комментарий в base.html у <footer>).
   ------------------------------------------------------------------------- */
.ar-footer {
  background: linear-gradient(180deg, #1a2540 0%, #141d33 100%);
  color: #c3cbdb;
}
.ar-footer-grid {
  max-width: var(--ar-max-width);
  margin: 0 auto;
  padding: 44px var(--ar-container-pad) 28px;
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 24px;
}
.ar-footer-brand p {
  color: #9fa9bd;
  font-size: 0.86rem;
  margin: 12px 0 0;
  max-width: 34ch;
  line-height: 1.5;
}
.ar-footer-col h4 {
  font-family: var(--ar-font-display);
  font-size: 0.82rem;
  color: #fff;
  font-weight: 700;
  margin: 0 0 10px;
}
.ar-footer-col { display: flex; flex-direction: column; gap: 8px; }
.ar-footer-col a {
  color: #aeb7c9;
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 0.12s;
}
.ar-footer-col a:hover { color: #fff; }
.ar-footer-bottom {
  max-width: var(--ar-max-width);
  margin: 0 auto;
  padding: 16px var(--ar-container-pad) 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8c97ad;
  font-size: 0.78rem;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .ar-nav { gap: 16px; }
  .ar-header-search input { width: 120px; }
  .ar-city-layout, .ar-review-layout { grid-template-columns: 1fr; }
  .ar-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 980px) {
  .ar-hero h1 { font-size: 2.2rem; }
  .ar-hero-lead { font-size: 0.92rem; }
  .ar-finder { flex-direction: column; width: 100%; }
  .ar-finder-field { width: 100%; }
  .ar-finder-submit { width: 100%; height: 48px; }
  .ar-stats-inner { grid-template-columns: 1fr 1fr; }
  .ar-stat:nth-child(3)::before { display: none; }
  .ar-city-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ar-nav, .ar-header-search { display: none; }
  .ar-hero-container { padding: 76px 24px 96px; }
  .ar-hero h1 { font-size: 1.8rem; }
  .ar-stats { padding: 0 24px; margin-top: -40px; }
  .ar-stat { padding: 16px 18px; }
  .ar-stat span { display: none; }
  .ar-rating-controls { flex-direction: column; align-items: flex-start; }
  .ar-rating-sort { margin-left: 0; width: 100%; }
  .ar-rating-table thead th:nth-child(5), .ar-rating-table tbody td:nth-child(5),
  .ar-rating-table thead th:nth-child(6), .ar-rating-table tbody td:nth-child(6) { display: none; }
  .ar-submit-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .ar-submit-inner .ar-btn { width: 100%; }
  .ar-review-photos { flex-wrap: wrap; }
  .ar-review-photos img { width: 30%; flex: 1; }
  .ar-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .ar-section, .ar-section-alt { padding: 28px 24px; }
  .ar-hero h1 { font-size: 1.5rem; }
  .ar-stats-inner { grid-template-columns: 1fr 1fr; }
  .ar-stat strong { font-size: 1.1rem; }
  .ar-section-head h2 { font-size: 1.4rem; }
  .ar-footer-grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   Правки 01.10.2026 (вечер) после проверки живой главной:
   1) фон всей страницы — голубовато-серый, без белых полей по бокам от <main>;
   2) шапка на главной лежит ПОВЕРХ фото hero — полупрозрачная, с градиентом
      и размытием (как в рендере), при прокрутке становится плотнее (.is-scrolled);
   3) карточка «избранного» отзыва не растягивается по высоте соседней колонки.
   ------------------------------------------------------------------------- */
body.ar-home-page { background: var(--ar-bg-page); }

body.ar-home-page .ar-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, .80) 0%, rgba(255, 255, 255, .52) 100%);
  border-bottom-color: rgba(255, 255, 255, .55);
  box-shadow: 0 6px 24px -18px rgba(20, 45, 100, .30);
  transition: background .25s ease, box-shadow .25s ease;
}
body.ar-home-page .ar-header.is-scrolled {
  background: linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .86) 100%);
  border-bottom-color: rgba(20, 45, 100, .06);
  box-shadow: 0 8px 28px -16px rgba(20, 45, 100, .35);
}
body.ar-home-page .ar-header-search {
  background: rgba(255, 255, 255, .88);
}
/* hero заезжает под sticky-шапку (60px) — фото видно сквозь неё */
body.ar-home-page .ar-hero { margin-top: calc(-28px - 60px); }
body.ar-home-page .ar-hero-container { padding-top: 150px; }
body.ar-home-page .ar-hero::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .30) 0%, rgba(255, 255, 255, 0) 24%),
    linear-gradient(0deg, var(--ar-bg-page) 0%, rgba(246, 249, 253, .85) 9%, rgba(246, 249, 253, 0) 30%);
}

.ar-review-layout { align-items: start; }

@media (max-width: 980px) {
  body.ar-home-page .ar-hero-container { padding-top: 120px; }
}

/* =========================================================================
   Страница города (city_hub.html) — новый шаблон 02.10.2026 по рендеру.
   Префикс .ac-. Hero наследует .ar-hero (выход на 100vw и заезд под
   полупрозрачную шапку на body.ar-home-page), но фон другой: фото города
   справа, растворяется в белом слева (mask-image), без фото — мягкий градиент.
   ========================================================================= */
.ac-hero.ar-hero { background: #fff; min-height: 0; }
.ac-hero.ar-hero::before {
  background: linear-gradient(90deg, #fff 0%, #fff 34%, rgba(255,255,255,.85) 44%, rgba(255,255,255,0) 60%);
  z-index: 0;
}
.ac-hero.ar-hero::after {
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 22%),
    linear-gradient(0deg, var(--ar-bg-page) 0%, rgba(246,249,253,0) 22%);
}
.ac-hero-photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 62%;
  background-size: cover; background-position: center 40%;
  z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}
.ac-hero-photo-empty { background: linear-gradient(135deg, #cfe0ff 0%, #e9f1ff 55%, #f6f9fd 100%); }
.ac-hero-container {
  position: relative; z-index: 1;
  max-width: var(--ar-max-width); margin: 0 auto;
  padding: 140px var(--ar-container-pad) 40px;
}
.ac-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; color: var(--ar-muted); margin-bottom: 14px; }
.ac-crumbs a { color: var(--ar-blue); text-decoration: none; }
.ac-crumbs a:hover { text-decoration: underline; }
.ac-crumbs b { font-weight: 500; color: var(--ar-muted); }
.ac-hero h1 { font-size: 2.6rem; line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 12px; max-width: 640px; }
.ac-hero-lead { font-size: 1rem; line-height: 1.5; color: #2b3852; max-width: 560px; margin: 0; }
.ac-stats {
  margin-top: 26px; display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  background: #fff; border: 1px solid #edf1f7; border-radius: var(--ar-radius-lg); box-shadow: var(--ar-shadow);
  max-width: 100%;
}
.ac-stat { display: flex; align-items: center; gap: 14px; padding: 18px 28px; position: relative; }
.ac-stat + .ac-stat::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: var(--ar-line); }
.ac-stat svg { width: 28px; height: 28px; color: var(--ar-blue); flex: none; }
.ac-stat div { display: flex; flex-direction: column; line-height: 1.2; }
.ac-stat strong { font-family: var(--ar-font-display); font-size: 1.35rem; font-weight: 800; color: var(--ar-ink); }
.ac-stat span { font-size: 0.78rem; color: var(--ar-muted); }

/* Панель фильтров */
.ac-filter {
  margin: 8px 24px 0;
  display: grid; grid-template-columns: 1.7fr 1fr 1fr auto; gap: 12px;
  padding: 12px; background: #fff; border: 1px solid #edf1f7;
  border-radius: var(--ar-radius-lg); box-shadow: var(--ar-shadow-sm);
}
.ac-filter-field {
  position: relative; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px;
  border: 1px solid #e3e9f3; border-radius: var(--ar-radius-sm); background: #fff; margin: 0;
  transition: border-color .15s, box-shadow .15s;
}
.ac-filter-field:hover { border-color: #bcd0f5; }
.ac-filter-field:focus-within { border-color: var(--ar-blue); box-shadow: 0 0 0 3px var(--ar-brand-ring); }
.ac-filter-field svg { width: 18px; height: 18px; color: #5c6a82; flex: none; }
.ac-filter-search svg { color: var(--ar-blue); }
.ac-filter-field input, .ac-filter-field select {
  border: 0; outline: 0; background: none; width: 100%; height: 100%; padding: 0;
  font: inherit; font-size: 0.86rem; color: var(--ar-ink); appearance: none; -webkit-appearance: none; cursor: pointer;
}
.ac-filter-field input { cursor: text; }
.ac-filter-field input::placeholder { color: #8a96aa; }
.ac-filter-select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 1.7px solid #3c4a63; border-bottom: 1.7px solid #3c4a63; transform: rotate(45deg); pointer-events: none;
}
.ac-filter-select select { padding-right: 24px; }
.ac-filter-btn { height: 48px; padding: 0 40px; }

/* Раскладка: список + сайдбар */
.ac-layout {
  margin: 28px 24px 0;
  display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start;
}
.ac-list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.ac-list-head h2 { font-family: var(--ar-font-display); font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ar-ink); margin: 0; }
.ac-found { margin: 4px 0 0; color: var(--ar-muted); font-size: 0.84rem; }
.ac-sort { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--ar-text); margin: 0; white-space: nowrap; }
.ac-sort-select { position: relative; display: inline-block; }
.ac-sort-select select {
  appearance: none; -webkit-appearance: none; height: 36px; padding: 0 34px 0 12px; min-width: 170px;
  border: 1px solid var(--ar-line); border-radius: var(--ar-radius-sm); background: #fff; font: inherit; font-size: 0.82rem; color: var(--ar-ink); cursor: pointer;
}
.ac-sort-select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 1.6px solid #3c4a63; border-bottom: 1.6px solid #3c4a63; transform: rotate(45deg); pointer-events: none; }

/* Карточка салона */
.ac-cards { display: flex; flex-direction: column; gap: 12px; }
.ac-card {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; padding: 10px;
  background: #fff; border: 1px solid var(--ar-line); border-radius: var(--ar-radius-lg);
  transition: border-color .15s, box-shadow .15s;
}
.ac-card[hidden] { display: none; }
.ac-card:hover { border-color: #c8d8f5; box-shadow: var(--ar-shadow-sm); }
.ac-card-photo { display: block; text-decoration: none; border-radius: var(--ar-radius); overflow: hidden; min-height: 150px; background: #eef3fb; }
.ac-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-card-photo-empty {
  display: grid; place-items: center; width: 100%; height: 100%; min-height: 150px;
  font-family: var(--ar-font-display); font-weight: 800; font-size: 2rem; color: #fff;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 75%, #fff) 0%, var(--c) 100%);
}
.ac-card-body { display: flex; flex-direction: column; gap: 12px; padding: 6px 8px 6px 0; min-width: 0; }
.ac-card-top { display: flex; justify-content: space-between; gap: 16px; }
.ac-card-title { min-width: 0; }
.ac-card h3 { font-family: var(--ar-font-display); font-size: 1.12rem; font-weight: 800; margin: 0 0 3px; display: flex; align-items: center; gap: 6px; }
.ac-card h3 a { color: var(--ar-ink); text-decoration: none; }
.ac-card h3 a:hover { color: var(--ar-blue); }
.ac-verified { display: inline-flex; color: var(--ar-blue); flex: none; }
.ac-verified svg { width: 17px; height: 17px; }
.ac-card-sub { font-size: 0.8rem; color: var(--ar-muted); margin-bottom: 6px; }
.ac-card-addr { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--ar-text); }
.ac-card-addr svg { width: 15px; height: 15px; color: var(--ar-blue); flex: none; }
.ac-card-rating { text-align: left; flex: none; min-width: 120px; }
.ac-card-score { display: flex; align-items: center; gap: 8px; }
.ac-card-score b { font-family: var(--ar-font-display); font-size: 1.1rem; color: var(--ar-ink); }
.ac-card-score-none b { color: var(--ar-muted); }
.ac-card-count { font-size: 0.78rem; color: var(--ar-muted); margin-top: 2px; }
.ac-card-bottom { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.ac-quote {
  flex: 1; min-width: 0; margin: 0; padding: 10px 14px;
  background: var(--ar-blue-soft-2); border-radius: var(--ar-radius-sm);
}
.ac-quote p { margin: 0; font-size: 0.8rem; line-height: 1.5; color: #3a465d; }
.ac-quote footer { font-size: 0.74rem; color: var(--ar-muted); margin-top: 4px; }
.ac-quote footer i { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: #9aa6b8; vertical-align: middle; margin: 0 7px; }
.ac-quote-empty p { color: var(--ar-muted); }
.ac-more-btn {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px;
  border: 1px solid #cfdcf3; border-radius: var(--ar-radius-sm); background: #fff;
  color: var(--ar-blue); font-weight: 700; font-size: 0.84rem; text-decoration: none; transition: .15s;
}
.ac-more-btn:hover { background: var(--ar-blue); border-color: var(--ar-blue); color: #fff; }
.ac-more-btn svg { width: 14px; height: 14px; }
.ac-reset { border: 0; background: none; color: var(--ar-blue); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }

/* Сайдбар */
.ac-side { display: flex; flex-direction: column; gap: 14px; }
.ac-box { background: #fff; border: 1px solid var(--ar-line); border-radius: var(--ar-radius-lg); padding: 16px 16px 12px; }
.ac-box h3 { font-family: var(--ar-font-display); font-size: 1.02rem; font-weight: 800; color: var(--ar-ink); margin: 0 0 12px; }
.ac-map-frame { position: relative; border-radius: var(--ar-radius); overflow: hidden; aspect-ratio: 4 / 3; background: #eaf0f9; }
.ac-map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ac-box-link {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px 0 2px;
  color: var(--ar-blue); font: inherit; font-weight: 700; font-size: 0.82rem; text-decoration: none;
  border: 0; background: none; cursor: pointer;
}
.ac-box-link svg { width: 14px; height: 14px; }
.ac-box-link:hover { color: var(--ar-blue-dark); }
.ac-side-list { list-style: none; margin: 0; padding: 0; }
.ac-side-list li + li { border-top: 1px solid #eef2f8; }
.ac-side-list a, .ac-side-list button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 2px;
  color: var(--ar-ink); text-decoration: none; font: inherit; font-size: 0.86rem;
  background: none; border: 0; cursor: pointer; text-align: left;
}
.ac-side-list a:hover .ac-side-name, .ac-side-list button:hover .ac-side-name { color: var(--ar-blue); }
.ac-side-ic { width: 18px; height: 18px; color: var(--ar-blue); flex: none; }
.ac-brand-badge {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px;
  background: var(--ar-blue-soft); color: var(--ar-blue); font-weight: 800; font-size: 0.72rem;
}
.ac-side-name { flex: 1; min-width: 0; }
.ac-side-count { font-size: 0.76rem; color: var(--ar-muted); white-space: nowrap; }
.ac-side-chev { width: 14px; height: 14px; color: #3b4760; flex: none; }

/* Последние отзывы города */
.ac-reviews { margin: 36px 24px 0; }
.ac-reviews-head h2 { font-family: var(--ar-font-display); font-size: 1.45rem; font-weight: 800; color: var(--ar-ink); margin: 0 0 14px; }
.ac-reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ac-review {
  display: block; padding: 16px 18px; background: #fff; border: 1px solid var(--ar-line);
  border-radius: var(--ar-radius-lg); text-decoration: none; color: var(--ar-text); transition: .15s;
}
.ac-review:hover { border-color: #c8d8f5; box-shadow: var(--ar-shadow-sm); }
.ac-review-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.ac-review-ava {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ar-blue-soft); color: var(--ar-blue); font-family: var(--ar-font-display); font-weight: 800; font-size: 1rem;
}
.ac-review-head b { font-size: 0.9rem; color: var(--ar-ink); }
.ac-review-head .ar-meta-line { font-size: 0.76rem; color: var(--ar-muted); margin: 1px 0 3px; }
.ac-review-head time { font-size: 0.74rem; color: #8592a6; }
.ac-review p { margin: 10px 0 0; font-size: 0.86rem; line-height: 1.5; color: #2f3b53; }

.ac-about { margin: 32px 24px 0; padding: 22px 24px; background: #fff; border: 1px solid var(--ar-line); border-radius: var(--ar-radius-lg); }
.ac-about h2 { font-family: var(--ar-font-display); font-size: 1.2rem; font-weight: 800; color: var(--ar-ink); margin: 0 0 10px; }
.ac-about p { margin: 0; font-size: 0.92rem; line-height: 1.65; color: var(--ar-text); }

@media (max-width: 1080px) {
  .ac-layout { grid-template-columns: 1fr; }
  .ac-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .ac-reviews-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .ac-filter, .ac-layout, .ac-reviews, .ac-about { margin-left: 0; margin-right: 0; }
  .ac-hero-container { padding-left: 16px; padding-right: 16px; }
  .ac-hero-photo { width: 100%; opacity: .35; }
  .ac-hero.ar-hero::before { background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.92)); }
  .ac-hero-container { padding-top: 96px; }
  .ac-hero h1 { font-size: 1.7rem; }
  .ac-hero h1 br { display: none; }
  .ac-stats { display: grid; grid-auto-flow: row; grid-template-columns: 1fr; width: 100%; }
  .ac-stat { padding: 12px 16px; }
  .ac-stat span br { display: none; }
  .ac-card-photo, .ac-card-photo-empty { aspect-ratio: 16 / 7; }
  .ac-stat + .ac-stat::before { left: 16px; right: 16px; top: 0; bottom: auto; width: auto; height: 1px; }
  .ac-filter { grid-template-columns: 1fr 1fr; }
  .ac-filter-search, .ac-filter-btn { grid-column: 1 / -1; }
  .ac-list-head { flex-direction: column; align-items: flex-start; }
  .ac-card { grid-template-columns: 1fr; }
  .ac-card-photo, .ac-card-photo-empty { min-height: 0; aspect-ratio: 16 / 8; }
  .ac-card-body { padding: 0 4px 4px; }
  .ac-card-top { flex-direction: column; gap: 8px; }
  .ac-card-bottom { flex-direction: column; align-items: stretch; }
  .ac-more-btn { justify-content: center; }
  .ac-reviews-grid { grid-template-columns: 1fr; }
}

/* Главная на hero страницы города (02.10.2026). Чтобы при переходе
   главная ⇄ город картинка не «прыгала» и не меняла масштаб, у обеих
   страниц ОДИНАКОВЫЕ: высота hero (min-height), ширина и позиция фото.
   Фото масштабируется по cover от размеров блока — поэтому блоки должны
   совпадать до пикселя. */
.ac-hero.ar-hero { min-height: 500px; }
body.ar-home-page .ar-home-hero .ar-hero-container { padding-top: 140px; padding-bottom: 40px; }
@media (max-width: 760px) {
  .ac-hero.ar-hero { min-height: 560px; }
  body.ar-home-page .ar-home-hero .ar-hero-container { padding-top: 96px; padding-bottom: 40px; }
}

/* =========================================================================
   Страница салона (company_detail.html) — новый шаблон 02.10.2026.
   Шапка = .ac-hero страницы города (те же размеры и фото-подложка), внутри
   белая карточка салона. Префикс .acd-.
   ========================================================================= */
.acd-hero .ac-hero-container { padding-bottom: 32px; }
.acd-h1 { font-size: 2.1rem !important; line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 18px !important; max-width: 760px; }
.acd-card {
  width: 560px; max-width: 100%; padding: 20px 22px;
  background: rgba(255,255,255,.96); border: 1px solid #edf1f7; border-radius: var(--ar-radius-lg);
  box-shadow: var(--ar-shadow); backdrop-filter: blur(6px);
}
.acd-card-top { display: flex; gap: 18px; align-items: flex-start; }
.acd-logo {
  width: 84px; height: 84px; border-radius: 14px; flex: none; object-fit: cover; background: #fff;
  border: 1px solid var(--ar-line);
}
.acd-logo-empty {
  display: grid; place-items: center; border: 0; color: #fff;
  font-family: var(--ar-font-display); font-weight: 800; font-size: 1.6rem;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 70%, #fff) 0%, var(--c) 100%);
}
.acd-card-info { min-width: 0; }
.acd-card-name { display: flex; align-items: center; gap: 6px; font-family: var(--ar-font-display); font-size: 1.55rem; font-weight: 800; color: var(--ar-ink); letter-spacing: -0.02em; line-height: 1.15; }
.acd-card-name .ac-verified svg { width: 20px; height: 20px; }
.acd-card-sub { font-size: 0.8rem; color: var(--ar-muted); margin: 4px 0 8px; }
.acd-card-sub i, .acd-review-meta i, .acd-answer-head i { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: #9aa6b8; vertical-align: middle; margin: 0 8px; }
.acd-open.is-open { color: #157347; font-weight: 600; }
.acd-open.is-closed { color: #b42318; font-weight: 600; }
.acd-card-addr { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--ar-text); margin-bottom: 8px; flex-wrap: wrap; }
.acd-card-addr svg { width: 16px; height: 16px; color: var(--ar-blue); flex: none; }
.acd-card-addr b { font-weight: 700; color: var(--ar-ink); }
.acd-card-rate { display: flex; align-items: center; gap: 10px; }
.acd-card-rate b { font-family: var(--ar-font-display); font-size: 1.15rem; color: var(--ar-ink); }
.acd-card-rate span { font-size: 0.8rem; color: var(--ar-muted); }
.acd-card-actions { display: flex; gap: 12px; margin-top: 18px; }
.acd-btn { height: 44px; padding: 0 30px; min-width: 170px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--ar-radius-sm); font-weight: 700; font-size: 0.88rem; text-decoration: none; cursor: pointer; }
.acd-btn-outline { background: #fff; color: var(--ar-blue); border: 1.5px solid #bcd0f5; transition: .15s; }
.acd-btn-outline:hover { border-color: var(--ar-blue); background: var(--ar-blue-soft-2); }

/* табы-якоря */
.acd-tabs {
  position: sticky; top: 60px; z-index: 20;
  margin: 18px 24px 0; display: flex; gap: 6px; border-bottom: 1px solid var(--ar-line);
  background: var(--ar-bg-page); overflow-x: auto; scrollbar-width: none;
}
.acd-tabs::-webkit-scrollbar { display: none; }
.acd-tabs a {
  padding: 14px 18px 12px; font-size: 0.9rem; font-weight: 600; color: var(--ar-text); text-decoration: none;
  border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .15s, border-color .15s;
}
.acd-tabs a:hover { color: var(--ar-blue); }
.acd-tabs a.is-active { color: var(--ar-blue); border-bottom-color: var(--ar-blue); }
#reviews, #about, #photos, #contacts, #review-form, #map { scroll-margin-top: 130px; }

/* раскладка */
.acd-layout { margin: 20px 24px 0; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.acd-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.acd-side { display: flex; flex-direction: column; gap: 14px; }
.acd-box { background: #fff; border: 1px solid var(--ar-line); border-radius: var(--ar-radius-lg); padding: 20px 22px; }
.acd-h2 { font-family: var(--ar-font-display); font-size: 1.3rem; font-weight: 800; color: var(--ar-ink); letter-spacing: -0.02em; margin: 0 0 12px; }
.acd-h3 { font-family: var(--ar-font-display); font-size: 1.02rem; font-weight: 800; color: var(--ar-ink); margin: 18px 0 6px; }
.acd-muted { color: var(--ar-muted); font-size: 0.84rem; margin: 0 0 10px; }

.acd-reviews-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.acd-reviews-head h2 { font-family: var(--ar-font-display); font-size: 1.4rem; font-weight: 800; color: var(--ar-ink); letter-spacing: -0.02em; margin: 0; }
.acd-reviews-count { font-size: 0.86rem; color: var(--ar-text); white-space: nowrap; }
.acd-review-controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.acd-reviews { display: flex; flex-direction: column; gap: 12px; }
.acd-review { border: 1px solid #edf1f7; border-radius: var(--ar-radius); padding: 16px 18px; }
.acd-review-untrusted { opacity: .7; }
.acd-review-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.acd-ava {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--ar-blue-soft); color: var(--ar-blue); font-family: var(--ar-font-display); font-weight: 800; font-size: 1.05rem;
}
.acd-review-meta { font-size: 0.8rem; color: var(--ar-muted); margin-bottom: 3px; }
.acd-review-meta b { color: var(--ar-ink); font-size: 0.9rem; }
.acd-review-text { margin: 0; font-size: 0.9rem; line-height: 1.6; color: #2f3b53; white-space: pre-line; }
.acd-review-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.acd-review-photos a { display: block; border-radius: var(--ar-radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: #eef3fb; }
.acd-review-photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.acd-review-photos a:hover img { transform: scale(1.03); }
.acd-review-actions { margin: 12px 0 0; }
.acd-like {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  font: inherit; font-size: 0.8rem; color: var(--ar-muted); cursor: pointer;
}
.acd-like svg { width: 16px; height: 16px; }
.acd-like:hover, .acd-like.is-liked { color: var(--ar-blue); }
.acd-like.is-liked { cursor: default; }
.acd-answer { display: flex; gap: 12px; margin-top: 12px; padding: 12px 14px; background: var(--ar-blue-soft-2); border-radius: var(--ar-radius-sm); }
.acd-answer-logo { width: 34px; height: 34px; border-radius: 8px; flex: none; object-fit: cover; font-size: 0.72rem; }
.acd-answer-head { font-size: 0.78rem; color: var(--ar-muted); margin-bottom: 3px; }
.acd-answer-head b { color: var(--ar-ink); font-size: 0.84rem; }
.acd-answer p { margin: 0; font-size: 0.84rem; line-height: 1.5; color: #3a465d; }
.acd-more-note { font-size: 0.82rem; color: var(--ar-muted); margin: 12px 0 0; text-align: center; }

.acd-form-box .rv-review-submit-head h2 { margin: 0; }
.acd-about-text p { margin: 0 0 8px; font-size: 0.92rem; line-height: 1.65; color: var(--ar-text); }
.acd-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.acd-hl-title { font-weight: 700; font-size: 0.86rem; margin-bottom: 6px; }
.acd-hl-title.is-neg { color: #b42318; }
.acd-hl-title.is-pos { color: #157347; }
.acd-hl { display: flex; align-items: baseline; gap: 8px; font-size: 0.86rem; color: var(--ar-text); padding: 4px 0; }
.acd-hl-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; transform: translateY(-1px); }
.acd-hl-dot.is-neg { background: #e5484d; }
.acd-hl-dot.is-pos { background: #2fa36b; }
.acd-trust { margin: 0; }

/* сайдбар */
.acd-info h3 { margin-bottom: 8px; }
.acd-info-list { margin: 0; }
.acd-info-list > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid #eef2f8; }
.acd-info-list > div:first-child { border-top: 0; }
.acd-info-list dt { display: flex; align-items: flex-start; gap: 10px; font-size: 0.82rem; font-weight: 700; color: var(--ar-ink); }
.acd-info-list dt svg { width: 18px; height: 18px; color: #5c6a82; flex: none; }
.acd-info-list dd { margin: 0; font-size: 0.84rem; color: var(--ar-text); min-width: 0; overflow-wrap: anywhere; }
.acd-info-list dd a { color: var(--ar-blue); text-decoration: none; }
.acd-info-list dd a:hover { text-decoration: underline; }
.acd-info-link { display: block; margin-top: 3px; font-size: 0.8rem; }
.acd-info-strong { font-weight: 700; color: var(--ar-ink) !important; }
.acd-info-rate { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.acd-info-rate b { color: var(--ar-ink); }
.acd-info-rate span { font-size: 0.76rem; color: var(--ar-muted); }
.acd-method { margin-top: 4px; font-size: 0.76rem; color: var(--ar-muted); }
.acd-method summary { cursor: pointer; color: var(--ar-blue); }
.acd-method p { margin: 6px 0 0; line-height: 1.5; }
.acd-hours { list-style: none; margin: 0; padding: 0; }
.acd-hours li { display: flex; justify-content: space-between; gap: 10px; padding: 1px 0; font-size: 0.82rem; }
.acd-hours li span:first-child { color: var(--ar-muted); }
.acd-hours li.is-today { font-weight: 700; color: var(--ar-ink); }
.acd-hours li.is-today span:first-child { color: var(--ar-blue); }

.acd-box-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.acd-box-head h3 { margin-bottom: 12px; }
.acd-box-head-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--ar-blue); text-decoration: none; white-space: nowrap; }
.acd-box-head-link svg { width: 13px; height: 13px; }
.acd-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.acd-gallery-item { position: relative; display: block; border-radius: var(--ar-radius-sm); overflow: hidden; aspect-ratio: 1; background: #eef3fb; }
.acd-gallery-item.is-big { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.acd-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acd-gallery-more {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 0.9rem;
  background: rgba(13, 27, 52, .55);
}
.acd-gallery-all { margin-top: 10px; font-size: 0.82rem; }
.acd-gallery-all summary { cursor: pointer; color: var(--ar-blue); font-weight: 700; text-align: center; list-style: none; }
.acd-gallery-all summary::-webkit-details-marker { display: none; }
.acd-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.acd-gallery-grid a { display: block; aspect-ratio: 1; border-radius: 6px; overflow: hidden; }
.acd-gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acd-brands { display: flex; flex-wrap: wrap; gap: 8px; }
.acd-brand { padding: 8px 14px; border: 1px solid var(--ar-line); border-radius: var(--ar-radius-sm); font-weight: 700; font-size: 0.84rem; color: var(--ar-ink); background: #fff; }
.acd-recommend-form { display: flex; gap: 10px; margin-bottom: 6px; }
.acd-rec-btn { flex: 1; height: 40px; border: 1px solid var(--ar-line); border-radius: var(--ar-radius-sm); background: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: .15s; }
.acd-rec-btn:hover { border-color: #bcd0f5; }
.acd-rec-btn.is-active { border-color: var(--ar-blue); background: var(--ar-blue-soft); color: var(--ar-blue); }

/* похожие салоны */
.acd-similar { margin: 32px 24px 0; }
.acd-similar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.acd-similar-card { display: flex; gap: 12px; padding: 10px; background: #fff; border: 1px solid var(--ar-line); border-radius: var(--ar-radius-lg); text-decoration: none; color: var(--ar-text); transition: .15s; }
.acd-similar-card:hover { border-color: #c8d8f5; box-shadow: var(--ar-shadow-sm); }
.acd-similar-card > img, .acd-similar-card > .ac-card-photo-empty { width: 92px; height: 70px; min-height: 0; border-radius: var(--ar-radius-sm); object-fit: cover; flex: none; font-size: 1.2rem; }
.acd-similar-card div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.acd-similar-card b { color: var(--ar-ink); font-size: 0.92rem; }
.acd-similar-card span { font-size: 0.78rem; color: var(--ar-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1080px) {
  .acd-layout { grid-template-columns: 1fr; }
  .acd-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .acd-similar-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .acd-tabs, .acd-layout, .acd-similar { margin-left: 0; margin-right: 0; }
  .acd-h1 { font-size: 1.45rem !important; }
  .acd-card { padding: 16px; }
  .acd-logo { width: 60px; height: 60px; font-size: 1.2rem; }
  .acd-card-name { font-size: 1.2rem; }
  .acd-card-actions { flex-direction: column; }
  .acd-btn { width: 100%; }
  .acd-box { padding: 16px; }
  .acd-highlights { grid-template-columns: 1fr; }
  .acd-similar-grid { grid-template-columns: 1fr; }
  .acd-info-list > div { grid-template-columns: 1fr; gap: 4px; }
}
/* длинные отзывы — свёрнуты до 6 строк, кнопка «Читать полностью» (JS) */
.acd-review-text.is-clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.acd-readmore { margin-top: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 0.82rem; font-weight: 700; color: var(--ar-blue); cursor: pointer; }
@media (max-width: 760px) {
  .acd-hero.ar-hero { min-height: 0; }
  .acd-hero .ac-hero-container { padding-bottom: 20px; }
}

/* SEO-текст главной (02.10.2026) */
.ar-seo { max-width: var(--ar-max-width); margin: 8px auto 0; padding: 36px 24px 8px; }
.ar-seo-inner { background: #fff; border: 1px solid var(--ar-line); border-radius: var(--ar-radius-lg); padding: 32px 34px; }
.ar-seo h2 { font-family: var(--ar-font-display); font-size: 1.6rem; font-weight: 800; color: var(--ar-ink); letter-spacing: -0.02em; margin: 0 0 12px; }
.ar-seo-lead p { margin: 0 0 10px; font-size: 0.95rem; line-height: 1.7; color: var(--ar-text); max-width: 900px; }
.ar-seo-h3 { font-family: var(--ar-font-display); font-size: 1.15rem; font-weight: 800; color: var(--ar-ink); margin: 26px 0 14px; }
.ar-seo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ar-seo-card { padding: 18px; border-radius: var(--ar-radius); background: linear-gradient(180deg, #eef4ff 0%, #f6f9ff 100%); border: 1px solid #e1eafa; }
.ar-seo-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--ar-blue); box-shadow: var(--ar-shadow-sm); margin-bottom: 12px; }
.ar-seo-ic svg { width: 22px; height: 22px; }
.ar-seo-card h4 { font-family: var(--ar-font-display); font-size: 0.98rem; font-weight: 800; color: var(--ar-ink); margin: 0 0 6px; }
.ar-seo-card p { margin: 0; font-size: 0.84rem; line-height: 1.55; color: var(--ar-text); }
.ar-seo-card a { color: var(--ar-blue); }
.ar-seo-note { margin: 16px 0 0; padding: 14px 18px; border-left: 3px solid var(--ar-blue); background: var(--ar-blue-soft-2); border-radius: 0 var(--ar-radius-sm) var(--ar-radius-sm) 0; font-size: 0.92rem; line-height: 1.6; color: var(--ar-ink); }
.ar-seo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.ar-seo-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.ar-seo-list li { font-size: 0.9rem; line-height: 1.6; color: var(--ar-text); padding-left: 4px; }
.ar-seo-list li::marker { color: var(--ar-blue); font-weight: 800; }
.ar-seo-list b { color: var(--ar-ink); }
.ar-faq { display: flex; flex-direction: column; gap: 8px; }
.ar-faq-item { border: 1px solid var(--ar-line); border-radius: var(--ar-radius-sm); background: #fff; }
.ar-faq-item summary { position: relative; padding: 13px 40px 13px 16px; cursor: pointer; list-style: none; font-weight: 700; font-size: 0.9rem; color: var(--ar-ink); }
.ar-faq-item summary::-webkit-details-marker { display: none; }
.ar-faq-item summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1.8px solid #3c4a63; border-bottom: 1.8px solid #3c4a63; transform: rotate(45deg); transition: transform .15s; }
.ar-faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.ar-faq-item p { margin: 0; padding: 0 16px 14px; font-size: 0.86rem; line-height: 1.6; color: var(--ar-text); }
@media (max-width: 1080px) { .ar-seo-grid { grid-template-columns: 1fr 1fr; } .ar-seo-cols { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 600px) { .ar-seo { padding: 28px 0 0; } .ar-seo-inner { padding: 22px 18px; } .ar-seo-grid { grid-template-columns: 1fr; } .ar-seo h2 { font-size: 1.3rem; } }

/* Форма «Написать отзыв» на странице салона — в палитре нового дизайна */
.acd-form-box .rv-star-input label { color: var(--ar-star-off); font-size: 1.9rem; }
.acd-form-box .rv-star-input input:checked ~ label,
.acd-form-box .rv-star-input label:hover,
.acd-form-box .rv-star-input label:hover ~ label { color: var(--ar-star-on); }
.acd-form-box .rv-review-star-hint { color: var(--ar-muted); }
.acd-form-box input[type="text"], .acd-form-box textarea {
  border: 1px solid #e3e9f3; border-radius: var(--ar-radius-sm); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.acd-form-box input[type="text"]:focus, .acd-form-box textarea:focus { outline: 0; border-color: var(--ar-blue); box-shadow: 0 0 0 3px var(--ar-brand-ring); }
.acd-form-box .rv-form-field label { color: var(--ar-ink); }
.acd-form-box .rv-review-form-note { color: var(--ar-muted); }
.acd-form-box .rv-form-field-consent a { color: var(--ar-blue); }
.acd-form-box .ar-btn-primary { height: 46px; }

/* подзаголовок карточки салона: «Официальный дилер · Категория» (02.10.2026) */
.acd-card-sub { display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; }
.acd-card-sub > span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: #9aa6b8; vertical-align: middle; margin: 0 8px; }
.acd-card-addr span { color: var(--ar-text); }
.acd-card-rate b.is-empty { color: var(--ar-muted); }
.acd-photos-empty { margin: 0; }

/* Страница «О проекте» (02.10.2026) — шапка .ac-hero + блоки .ar-seo главной */
.ar-about { padding-top: 12px; }
.ar-about .ar-seo-cols + .ar-seo-cols { margin-top: 8px; }
.ar-about-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ar-about-list li { position: relative; padding-left: 28px; font-size: 0.9rem; line-height: 1.6; color: var(--ar-text); }
.ar-about-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fde8e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 8l8 8M16 8l-8 8' stroke='%23d92d20' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ar-about-p { margin: 0; font-size: 0.9rem; line-height: 1.65; color: var(--ar-text); }
.ar-about a:not(.ar-btn), .ar-seo-list a { color: var(--ar-blue); }
.ar-about-cta {
  margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 18px 22px; border-radius: var(--ar-radius); background: linear-gradient(90deg, #eef4ff 0%, #f6f9ff 100%); border: 1px solid #e1eafa;
}
.ar-about-cta b { font-family: var(--ar-font-display); font-size: 1.05rem; color: var(--ar-ink); }
.ar-about-cta p { margin: 2px 0 0; font-size: 0.86rem; color: var(--ar-muted); }

/* Заглушка фото салона: силуэт салона + название и адрес (02.10.2026) */
.ac-ph {
  position: relative; display: flex; align-items: flex-start; width: 100%; height: 100%; min-height: 150px; overflow: hidden;
  background: linear-gradient(155deg, color-mix(in srgb, var(--c) 62%, #fff) 0%, var(--c) 70%, color-mix(in srgb, var(--c) 80%, #000) 100%);
  color: #fff; text-decoration: none;
}
.ac-ph-art { position: absolute; inset: auto 0 0 0; width: 100%; height: 72%; }
.ac-ph-text { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px 14px 0; min-width: 0; }
.ac-ph-text b { font-family: var(--ar-font-display); font-size: 1.02rem; font-weight: 800; line-height: 1.2; text-shadow: 0 1px 8px rgba(0,0,0,.18); overflow-wrap: anywhere; }
.ac-ph-text small { font-size: .72rem; opacity: .9; line-height: 1.3; }
.acd-similar-card > .ac-ph { width: 92px; height: 70px; min-height: 0; border-radius: var(--ar-radius-sm); flex: none; }
.acd-similar-card > .ac-ph .ac-ph-text { padding: 6px 7px 0; }
.acd-similar-card > .ac-ph .ac-ph-text b { font-size: .66rem; }
.acd-similar-card > .ac-ph .ac-ph-text small { display: none; }
@media (max-width: 760px) { .ac-ph { min-height: 0; aspect-ratio: 16 / 7; } }

.acd-rc-addr { display: block; font-size: .76rem; color: var(--ar-muted); margin-top: 1px; }

/* Блок «Юридическое лицо» (02.10.2026) */
.acd-legal .acd-info-list > div { grid-template-columns: 118px minmax(0, 1fr); }
.acd-legal-sub { display: block; font-size: .74rem; color: var(--ar-muted); }
.acd-legal-notes { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.acd-legal-notes li { position: relative; padding: 8px 10px 8px 30px; border-radius: var(--ar-radius-sm); background: #fff6e6; color: #8a5300; font-size: .8rem; line-height: 1.4; }
.acd-legal-notes li::before { content: "!"; position: absolute; left: 10px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: #e8a33d; color: #fff; font-size: .66rem; font-weight: 800; display: grid; place-items: center; }
.acd-legal-same { margin: 10px 0 0; font-size: .8rem; line-height: 1.5; color: var(--ar-text); }
.acd-legal-same a { color: var(--ar-blue); }
.acd-legal-foot { margin: 10px 0 0; font-size: .72rem; line-height: 1.45; color: var(--ar-muted); }

/* =========================================================================
   МОБИЛЬНАЯ ВЕРСИЯ по рендерам (02.10.2026): шапка «лого + поиск + меню»,
   нижняя панель вкладок, hero с фото справа, карточка поиска, 4 плитки
   статистики, города — горизонтальной лентой, салоны — компактным списком.
   На десктопе ничего из этого не видно (.ar-m-only / .ar-tabbar скрыты).
   ========================================================================= */
.ar-m-only, .ar-m-actions, .ar-tabbar, .ar-m-panel { display: none; }

@media (max-width: 640px) {
  .ar-m-only { display: initial; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  /* --- шапка --- */
  .ar-header-inner { padding: 0 16px; height: 56px; gap: 12px; }
  .ar-header-actions { display: none; }
  .ar-brand-logo { height: 22px; }
  .ar-m-actions { display: flex; gap: 8px; margin-left: auto; }
  .ar-m-ic {
    display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
    border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ar-blue);
    box-shadow: 0 4px 14px -6px rgba(20,45,100,.35); cursor: pointer;
  }
  .ar-m-ic[data-m-toggle="ar-m-menu"] { background: transparent; box-shadow: none; color: var(--ar-ink); }
  .ar-m-ic svg { width: 21px; height: 21px; }
  .ar-m-panel:not([hidden]) { display: block; padding: 4px 16px 14px; }
  .ar-m-searchform { display: flex; gap: 8px; }
  .ar-m-searchform input {
    flex: 1; min-width: 0; height: 44px; padding: 0 14px; font-size: 16px;
    border: 1px solid var(--ar-line); border-radius: var(--ar-radius); background: #fff; outline: none;
  }
  .ar-m-searchform .ar-btn { height: 44px; padding: 0 18px; }
  .ar-m-menu:not([hidden]) { display: flex; flex-direction: column; }
  .ar-m-menu a {
    padding: 13px 4px; border-bottom: 1px solid var(--ar-line);
    color: var(--ar-ink); text-decoration: none; font-weight: 600; font-size: .98rem;
  }
  .ar-m-menu a:last-child { border-bottom: 0; }

  /* --- нижняя панель вкладок --- */
  .ar-tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--ar-line); box-shadow: 0 -6px 20px -14px rgba(20,45,100,.3);
  }
  .ar-tabbar a, .ar-tabbar button {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 4px 0; border: 0; background: none; cursor: pointer;
    color: #4a5670; text-decoration: none; font: 600 .66rem/1.1 var(--ar-font-body);
  }
  .ar-tabbar svg { width: 23px; height: 23px; }
  .ar-tabbar .is-active { color: var(--ar-blue); }
  .ar-tabbar .is-active svg { background: var(--ar-blue-soft); border-radius: 9px; padding: 3px; width: 29px; height: 29px; margin: -3px 0; }
  .rv-cookie-banner { bottom: calc(64px + env(safe-area-inset-bottom)); }

  /* --- hero (главная + город) --- */
  .ac-hero.ar-hero { min-height: 0; }
  body.ar-home-page .ar-hero { margin-top: -84px; }
  .ac-hero-photo {
    width: 78%; height: 330px; bottom: auto; opacity: 1;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%), linear-gradient(180deg, #000 62%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 42%), linear-gradient(180deg, #000 62%, transparent 100%);
    mask-composite: intersect;
  }
  .ac-hero.ar-hero::before { background: linear-gradient(90deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.55) 42%, rgba(255,255,255,0) 66%); }
  .ac-hero-container,
  body.ar-home-page .ar-home-hero .ar-hero-container { padding: 76px 16px 8px; }
  .ar-hero-badge { height: auto; padding: 5px 10px; font-size: .62rem; line-height: 1.35; max-width: 170px; border-radius: 8px; }
  .ar-hero h1, .ac-hero h1 { font-size: 1.95rem; line-height: 1.08; margin: 10px 0 10px; max-width: 72%; text-shadow: 0 1px 12px rgba(255,255,255,.8); }
  .ar-hero-lead, .ac-hero-lead { font-size: .86rem; line-height: 1.45; max-width: 60%; }

  /* карточка поиска: два поля в ряд + кнопка на всю ширину */
  .ar-finder {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: auto;
    margin: 18px 0 0; padding: 10px; background: #fff;
  }
  .ar-finder-field { width: auto; height: 52px; padding: 0 10px; gap: 8px; }
  .ar-finder-icon { width: 18px; height: 18px; }
  .ar-finder-field label { font-size: .7rem; }
  .ar-finder-field input, .ar-finder-field select { font-size: .72rem; }
  .ar-finder-submit { grid-column: 1 / -1; width: 100%; height: 46px; }

  /* статистика — 4 плитки */
  .ar-stats { margin: 12px 0 0; padding: 0 16px; }
  .ar-stats-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; background: none; border: 0; box-shadow: none; }
  .ar-stat {
    flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 10px;
    background: #fff; border: 1px solid #edf1f7; border-radius: var(--ar-radius-lg); box-shadow: var(--ar-shadow-sm);
  }
  .ar-stat + .ar-stat::before { display: none; }
  .ar-stat svg { width: 22px; height: 22px; color: var(--ar-blue); }
  .ar-stat strong { font-size: 1.12rem; }
  .ar-stat span { display: block; font-size: .66rem; line-height: 1.2; }

  /* секции */
  .ar-section, .ar-section-alt { padding: 24px 16px 6px; }
  .ar-section-head { margin-bottom: 12px; }
  .ar-section-head h2 { font-size: 1.22rem; }
  .ar-section-head p { display: none; }

  /* города — горизонтальная лента карточек с фото */
  .ar-city-layout { display: block; }
  .ar-city-list {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -16px; padding: 2px 16px 10px; scrollbar-width: none;
  }
  .ar-city-list::-webkit-scrollbar { display: none; }
  .ar-city-list li { flex: 0 0 46%; scroll-snap-align: start; }
  .ar-city-entry { position: relative; flex-direction: column; align-items: stretch; gap: 0; padding: 0; height: 100%; overflow: hidden; border-radius: var(--ar-radius-lg); }
  .ar-city-entry-thumb { width: 100%; height: 88px; border-radius: 0; }
  .ar-city-entry-body { padding: 8px 26px 10px 10px; }
  .ar-city-entry-name { font-size: .9rem; }
  .ar-city-entry-meta { font-size: .7rem; white-space: normal; }
  .ar-city-entry-meta i { margin: 0 4px; }
  .ar-city-entry-arrow { position: absolute; right: 8px; bottom: 14px; width: 14px; height: 14px; color: var(--ar-blue); }

  /* «Сейчас обсуждают» — одна карточка */
  .ar-city-side { margin-top: 14px; }
  .ar-discuss { padding: 14px; }
  .ar-discuss h3 { font-size: 1.1rem; }
  .ar-discuss-item:nth-child(n+2) { display: none; }
  .ar-discuss-item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 0; border: 0; }
  .ar-discuss-avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
  .ar-discuss-photo { object-fit: cover; }

  /* «Автосалоны с отзывами» — таблица превращается в список карточек */
  .ar-rating-controls { display: none; }
  .ar-rating-table-wrap { overflow: visible; background: none; border: 0; box-shadow: none; }
  .ar-rating-table, .ar-rating-table tbody { display: block; min-width: 0; width: 100%; }
  .ar-rating-table-name { white-space: normal; line-height: 1.25; }
  .ar-rating-table thead { display: none; }
  .ar-rating-table tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: center;
    padding: 12px; margin-bottom: 8px; background: #fff; border: 1px solid var(--ar-line); border-radius: var(--ar-radius-lg);
  }
  .ar-rating-table td { display: block; padding: 0 !important; border: 0 !important; background: none !important; }
  .ar-rating-table td:nth-child(3) .ar-svg-stars svg:nth-child(n+2) { display: none; }
  .ar-stat { padding: 11px 8px; min-width: 0; }
  .ar-stat span { font-size: .62rem; overflow-wrap: anywhere; }
  .ac-card-rating { flex-wrap: wrap; row-gap: 0; order: -1 !important; }
  .ac-card-title h3 { order: -2; }
  .ac-card-score svg { width: 13px; height: 13px; }
  .ac-card-score { gap: 2px; }
  .ar-rating-table td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .ar-rating-table td:nth-child(2) { grid-column: 1; grid-row: 2; padding-left: 46px !important; font-size: .76rem; color: var(--ar-muted); }
  .ar-rating-table td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; }
  .ar-rating-table td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; font-size: .74rem; color: var(--ar-muted); white-space: nowrap; }
  .ar-rating-table td:nth-child(5), .ar-rating-table td:nth-child(6) { display: none; }
  .ar-rating-table-name { display: flex; align-items: center; gap: 10px; font-size: .9rem; overflow: hidden; }
  .ar-rating-table-badge { width: 36px; height: 36px; flex: none; border-radius: 10px; }
  .ar-rating-table-wrap:not(.is-all) tbody tr:nth-child(n+9) { display: none; }
  .ar-m-more {
    display: block; width: 100%; height: 44px; margin: 4px 0 0; border: 1px solid #cddcf7; border-radius: var(--ar-radius);
    background: var(--ar-blue-soft-2); color: var(--ar-blue); font: 700 .86rem var(--ar-font-body); cursor: pointer;
  }

  /* «Последние отзывы» — только лента карточек */
  .ar-review-feature, .ar-review-stream > h3 { display: none; }
  .ar-review-stream { padding: 0; background: none; border: 0; box-shadow: none; gap: 8px; }
  .ar-review-stream-item { padding: 12px 14px; background: #fff; border: 1px solid var(--ar-line); border-radius: var(--ar-radius-lg); }
  .ar-submit { margin-top: 18px; }

  /* --- страница города --- */
  .ac-hero h1 br { display: none; }
  .ac-hero:not(.ar-home-hero) h1 { font-size: 1.6rem; max-width: 78%; }
  .acd-hero h1 { max-width: none; }
  .ac-card-count { white-space: nowrap; }
  .ac-list-head > div { min-width: 0; }
  .ac-sort select { max-width: 150px; }
  .ac-stats {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none;
    width: 100%; margin-top: 16px;
  }
  .ac-stat { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 10px; }
  .ac-stat + .ac-stat::before { left: 0; right: auto; top: 12px; bottom: 12px; width: 1px; height: auto; }
  .ac-stat svg { width: 20px; height: 20px; }
  .ac-stat strong { font-size: 1.1rem; }
  .ac-stat span { font-size: .66rem; line-height: 1.25; }
  .ac-filter { margin: 14px 16px 0; padding: 10px; }
  .ac-layout { padding: 0 16px; }
  .ac-list-head { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
  .ac-list-head h2 { font-size: 1.15rem; }
  .ac-found { font-size: .74rem; }
  .ac-sort { font-size: 0; }
  .ac-sort select { font-size: .78rem; }
  .ac-cards { counter-reset: ac; gap: 8px; }
  .ac-card {
    position: relative; counter-increment: ac;
    grid-template-columns: 24px 84px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px;
  }
  .ac-card::before {
    content: counter(ac); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
    background: #eef2f8; color: var(--ar-ink); font: 800 .74rem var(--ar-font-display);
  }
  .ac-card:nth-child(1)::before { background: #f5c242; color: #fff; }
  .ac-card:nth-child(2)::before { background: #aeb8c8; color: #fff; }
  .ac-card:nth-child(3)::before { background: #e0955a; color: #fff; }
  .ac-card-photo, .ac-card-photo-empty { width: 84px; height: 64px; min-height: 0; aspect-ratio: auto; border-radius: 10px; }
  .ac-card-photo .ac-ph { min-height: 0; height: 100%; aspect-ratio: auto; }
  .ac-card-photo .ac-ph-text { display: none; }
  .ac-card-body { padding: 0; gap: 0; }
  .ac-card-top { flex-direction: column; gap: 3px; }
  .ac-card-title h3 { font-size: .95rem; margin: 0; }
  .ac-card-title h3 a::after { content: ""; position: absolute; inset: 0; }
  .ac-card-sub { display: none; }
  .ac-card-addr { font-size: .72rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ac-card-addr svg { width: 12px; height: 12px; }
  .ac-card-rating { display: flex; align-items: center; gap: 8px; order: -1; margin-top: 3px; }
  .ac-card-top { display: flex; }
  .ac-card-title { display: contents; }
  .ac-card-score { gap: 4px; }
  .ac-card-score b { font-size: .88rem; }
  .ac-card-count { font-size: .72rem; }
  .ac-card-bottom { display: none; }
  .ac-side { display: block; margin-top: 16px; }
  .ac-side .ac-box { margin-bottom: 12px; }

  /* --- страница салона --- */
  .acd-hero .ac-hero-photo {
    width: 100%; height: 300px;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); -webkit-mask-composite: source-over;
    mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-composite: add;
  }
  .acd-hero.ac-hero.ar-hero::before { background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 22%); }
  .acd-hero .ac-hero-container { padding-top: 72px; }
  .acd-hero .ac-crumbs {
    display: inline-flex; padding: 5px 10px; border-radius: 999px; margin-bottom: 0;
    background: rgba(255,255,255,.88); font-size: .72rem; max-width: 100%; overflow: hidden; white-space: nowrap;
  }
  .acd-h1 { margin: 176px 0 6px !important; }
  .acd-h1-name { display: flex; align-items: center; gap: 8px; font-size: 1.85rem; line-height: 1.1; }
  .acd-h1-name .ac-verified { display: inline-grid; }
  .acd-h1-rest { display: block; margin-top: 6px; font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--ar-text); }
  .acd-card { width: auto; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
  .acd-logo, .acd-card-name, .acd-card-addr { display: none; }
  .acd-card-top { gap: 0; }
  .acd-card-sub { margin: 0 0 8px; }
  .acd-card-rate b { font-size: 1.15rem; }
  .acd-card-actions { flex-direction: column; gap: 12px; margin-top: 12px; }
  .acd-card-actions .acd-btn-outline { display: none; }
  .acd-btn { height: 48px; font-size: .95rem; }
  .acd-m-info { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: #fff; border: 1px solid var(--ar-line); border-radius: var(--ar-radius-lg); }
  .acd-m-info a {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px;
    padding: 12px 4px; color: var(--ar-ink); text-decoration: none; font-size: .68rem; line-height: 1.25; min-width: 0;
  }
  .acd-m-info a + a { border-left: 1px solid var(--ar-line); }
  .acd-m-info svg { width: 22px; height: 22px; color: var(--ar-ink); margin-bottom: 2px; }
  .acd-m-info span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .acd-m-info small { font-size: .66rem; color: var(--ar-muted); }
  .acd-m-info small.is-link { color: var(--ar-blue); font-weight: 600; }
  .acd-tabs { position: sticky; top: 56px; z-index: 20; background: var(--ar-bg-page); margin: 8px 0 0; padding: 0 16px; overflow-x: auto; }
  .acd-layout, .acd-similar { padding: 0 16px; }
}

/* Фото шапки по умолчанию — WebP, на телефоне облегчённое (02.10.2026, скорость) */
.ac-hero-default { background-image: url("../images/hero-salon-1400.65eefe063847.webp"); }
@media (max-width: 760px) { .ac-hero-default { background-image: url("../images/hero-salon-760.d4a0871e84f8.webp"); } }

/* Жалобы — отдельный блок над отзывами (03.10.2026): тёплая плашка,
   нумерованный список с полосой частоты, позитив — чипами. */
.acd-complaints {
  background: linear-gradient(180deg, #fff7f3 0%, #fff 70%);
  border-color: #f6dccf;
}
.acd-cmp-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.acd-cmp-head .acd-h2 { margin: 0 0 4px; }
.acd-cmp-head .acd-muted { margin: 0; }
.acd-cmp-ic {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: #ffe6dc; color: #d4492a;
}
.acd-cmp-ic svg { width: 24px; height: 24px; }
.acd-cmp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.acd-cmp-item {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 11px 14px; background: #fff; border: 1px solid #f1e1d8; border-radius: var(--ar-radius);
}
.acd-cmp-num {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: #fbe9e1; color: #c2410c; font: 800 .82rem var(--ar-font-display);
}
.acd-cmp-item:first-child .acd-cmp-num { background: #e8590c; color: #fff; }
.acd-cmp-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.acd-cmp-phrase { font-size: .9rem; font-weight: 600; color: var(--ar-ink); line-height: 1.35; }
.acd-cmp-count { flex: none; font-size: .76rem; font-weight: 700; color: #c2410c; white-space: nowrap; }
.acd-cmp-bar { display: block; height: 5px; margin-top: 7px; border-radius: 99px; background: #f6e7df; overflow: hidden; }
.acd-cmp-bar i { display: block; height: 100%; min-width: 8%; border-radius: inherit; background: linear-gradient(90deg, #f59e0b, #e8590c); }
.acd-cmp-pos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; }
.acd-cmp-pos-title { font-size: .8rem; font-weight: 700; color: #157347; margin-right: 2px; }
.acd-cmp-chip { padding: 4px 10px; border-radius: 99px; background: #e5f6ed; color: #135c39; font-size: .78rem; }
.acd-cmp-cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  color: #c2410c; font-weight: 700; font-size: .86rem; text-decoration: none;
}
.acd-cmp-cta svg { width: 16px; height: 16px; }
.acd-cmp-cta:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .acd-cmp-head { gap: 10px; }
  .acd-cmp-ic { width: 38px; height: 38px; }
  .acd-cmp-item { padding: 10px 12px; gap: 10px; grid-template-columns: 26px minmax(0, 1fr); }
  .acd-cmp-num { width: 26px; height: 26px; font-size: .74rem; }
  .acd-cmp-row { flex-direction: column; gap: 2px; }
}

/* Мобильная сводка «Кто продаёт» (03.10.2026) */
@media (max-width: 640px) {
  .acd-mlegal { display: block; }
  .acd-mlegal-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
  .acd-mlegal-head .acd-h2 { margin: 0 0 2px; }
  .acd-mlegal-head .acd-muted { margin: 0; font-size: .78rem; }
  .acd-mlegal-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--ar-blue-soft); color: var(--ar-blue); }
  .acd-mlegal-ic svg { width: 22px; height: 22px; }
  .acd-mlegal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
  .acd-mlegal-grid > div { padding: 9px 10px; background: var(--ar-bg-page); border-radius: var(--ar-radius-sm); min-width: 0; }
  .acd-mlegal-grid > div:first-child { grid-column: 1 / -1; }
  .acd-mlegal-grid dt { font-size: .68rem; color: var(--ar-muted); margin: 0 0 2px; }
  .acd-mlegal-grid dd { margin: 0; font-size: .88rem; font-weight: 700; color: var(--ar-ink); overflow-wrap: anywhere; }
  .acd-mlegal-courts { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
  .acd-mlegal-court { padding: 9px 10px; border-radius: var(--ar-radius-sm); background: #fff4ef; border: 1px solid #f6dccf; font-size: .84rem; color: var(--ar-ink); }
  .acd-mlegal-court small { display: block; margin-top: 2px; font-size: .74rem; color: var(--ar-muted); }
  .acd-mlegal-ok { display: block; padding: 9px 10px; border-radius: var(--ar-radius-sm); background: var(--ar-good-soft); color: var(--ar-good); font-size: .84rem; font-weight: 600; }
  .acd-mlegal-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--ar-blue); font-weight: 700; font-size: .84rem; text-decoration: none; }
  .acd-mlegal-more svg { width: 16px; height: 16px; }
}

/* Форма отзыва — своя вёрстка (03.10.2026) */
.arf { display: flex; flex-direction: column; gap: 16px; }
.arf-head { display: flex; gap: 12px; align-items: flex-start; }
.arf-head .acd-h2 { margin: 0 0 2px; }
.arf-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--ar-blue); color: #fff; box-shadow: 0 8px 18px -10px rgba(31,107,255,.8); }
.arf-ic svg { width: 22px; height: 22px; }
.arf-sub { margin: 0; font-size: .86rem; color: var(--ar-muted); }
.arf-error { padding: 10px 12px; border-radius: var(--ar-radius-sm); background: #fdecec; color: #b42318; font-size: .85rem; }
.arf-rate { border: 0; margin: 0; padding: 0; min-width: 0; }
.arf-rate legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: .86rem; color: var(--ar-ink); }
.arf-rate-row { display: flex; flex-direction: row-reverse; gap: 6px; }
.arf-rate-row input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.arf-rate-row label {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 4px; border: 1.5px solid var(--ar-line); border-radius: var(--ar-radius); background: #fff;
  cursor: pointer; transition: border-color .15s, background .15s, transform .1s;
}
.arf-rate-row label b { font: 800 1.15rem var(--ar-font-display); color: var(--ar-ink); }
.arf-rate-row label b::after { content: "★"; margin-left: 2px; color: var(--ar-star-off); font-size: .9em; }
.arf-rate-row label span { font-size: .7rem; color: var(--ar-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.arf-rate-row label:hover { border-color: #b8ccf3; }
.arf-rate-row input:focus-visible + label { box-shadow: 0 0 0 3px var(--ar-brand-ring); }
.arf-rate-row input:checked + label { border-color: var(--ar-blue); background: var(--ar-blue-soft); transform: translateY(-1px); }
.arf-rate-row input:checked + label b::after { color: #f5a623; }
.arf-rate-row input[value="1"]:checked + label, .arf-rate-row input[value="2"]:checked + label { border-color: #e5484d; background: #fdecec; }
.arf-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.arf-field { display: flex; flex-direction: column; gap: 6px; }
.arf-field label { font-weight: 700; font-size: .86rem; color: var(--ar-ink); }
.arf-field input, .arf-field textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1.5px solid var(--ar-line); border-radius: var(--ar-radius);
  background: var(--ar-bg-page); font: inherit; font-size: 16px; color: var(--ar-ink); transition: border-color .15s, background .15s;
}
.arf-field textarea { min-height: 130px; resize: vertical; }
.arf-field input:focus, .arf-field textarea:focus { outline: 0; border-color: var(--ar-blue); background: #fff; box-shadow: 0 0 0 3px var(--ar-brand-ring); }
.arf-field small { font-size: .75rem; color: var(--ar-muted); line-height: 1.4; }
.arf-consent { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--ar-radius-sm); background: var(--ar-bg-page); font-size: .82rem; color: var(--ar-text); cursor: pointer; }
.arf-consent input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--ar-blue); flex: none; }
.arf-consent a { color: var(--ar-blue); }
.arf-foot { display: flex; flex-direction: column; gap: 10px; }
.arf-submit { height: 50px; font-size: .95rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.arf-submit svg { width: 18px; height: 18px; }
.arf-note { display: flex; gap: 6px; align-items: center; margin: 0; font-size: .76rem; color: var(--ar-muted); }
.arf-note svg { width: 15px; height: 15px; flex: none; }
@media (min-width: 761px) {
  .arf-grid { grid-template-columns: 1fr 2fr; align-items: start; }
  .arf-foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .arf-submit { padding: 0 26px; }
}
@media (max-width: 640px) {
  .arf-rate-row { gap: 4px; }
  .arf-rate-row label { padding: 9px 1px; }
  .arf-rate-row label span { font-size: .58rem; letter-spacing: -.01em; overflow: visible; text-overflow: clip; }
}
/* компактная оценка + имя всегда над текстом (03.10.2026) */
.arf-rate legend { display: flex; align-items: baseline; gap: 8px; }
.arf-rate-word { font-weight: 600; font-size: .8rem; color: var(--ar-muted); }
.arf-rate:has(input[value="5"]:checked) .arf-rate-word::after { content: "— отлично"; }
.arf-rate:has(input[value="4"]:checked) .arf-rate-word::after { content: "— хорошо"; }
.arf-rate:has(input[value="3"]:checked) .arf-rate-word::after { content: "— нормально"; }
.arf-rate:has(input[value="2"]:checked) .arf-rate-word::after { content: "— плохо"; }
.arf-rate:has(input[value="1"]:checked) .arf-rate-word::after { content: "— ужасно"; }
.arf-rate-row { justify-content: flex-end; gap: 6px !important; }
.arf-rate-row label { flex: 0 0 auto !important; flex-direction: row !important; padding: 6px 12px !important; border-radius: 999px; gap: 0 !important; }
.arf-rate-row label b { font-size: .92rem; }
.arf-rate-row label span { display: none; }
.arf-grid { grid-template-columns: 1fr !important; }
.arf-grid .arf-field:first-child input { max-width: 360px; }
