/* ═══════════════════════════════════════════════════════════════
   АлияГид — Основные стили
   Версия: 1.0.0
═══════════════════════════════════════════════════════════════ */

/* ─── CSS-переменные ─────────────────────────────────────────────── */
:root {
  --blue:    #1560BD;
  --blue-d:  #0E4A96;
  --blue-l:  #E8F0FB;
  --blue-m:  #C2D7F5;
  --orange:  #E8720C;
  --orange-d:#CC6209;
  --white:   #FFFFFF;
  --bg:      #F2F4F7;
  --border:  #D6DCE8;
  --text:    #1A1A1A;
  --text-2:  #555E70;
  --text-3:  #8892A4;
  --link:    #1560BD;
  --radius:  4px;
  --shadow:  0 2px 8px rgba(21,96,189,.08);
}

/* ─── Сброс и базовые стили ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'PT Sans', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── Контейнер ─────────────────────────────────────────────────── */
.ag-container,
.wp-site-blocks > * {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ─── Верхняя строка (topbar) ───────────────────────────────────── */
.ag-topbar {
  background: var(--blue-d);
  color: rgba(255,255,255,.75);
  font-size: 12px;
  font-family: 'PT Sans Narrow', sans-serif;
  padding: 5px 0;
}
.ag-topbar__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ag-topbar a { color: rgba(255,255,255,.75); }
.ag-topbar a:hover { color: #fff; text-decoration: none; }
.ag-topbar__links { display: flex; gap: 18px; align-items: center; }

/* ─── Шапка (header) ────────────────────────────────────────────── */
.ag-header {
  background: var(--blue);
  padding: 14px 0;
}
.ag-header__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Логотип */
.ag-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  flex-shrink: 0;
}
.ag-logo__icon {
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--blue);
  letter-spacing: -1px;
  flex-shrink: 0;
}
.ag-logo__text {
  color: var(--white);
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.15;
}
.ag-logo__sub {
  display: block;
  font-family: 'PT Sans', sans-serif;
  font-weight: 400;
  font-size: 11px;
  color: rgba(255,255,255,.7);
}

/* Поиск в шапке */
.ag-header-search {
  flex: 1;
  max-width: 520px;
  display: flex;
}
.ag-header-search input {
  flex: 1;
  padding: 9px 14px;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 14px;
  outline: none;
  color: var(--text);
}
.ag-header-search button {
  padding: 9px 18px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s;
}
.ag-header-search button:hover { background: var(--orange-d); }

/* Контакты/CTA в шапке */
.ag-header-cta {
  margin-left: auto;
  flex-shrink: 0;
}
.ag-header-phone {
  display: block;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.ag-header-phone:hover { text-decoration: underline; color: var(--white); }

/* ─── Кнопки ────────────────────────────────────────────────────── */
.btn-orange,
.btn-submit,
.ag-btn-orange {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
  cursor: pointer;
}
.btn-orange:hover,
.btn-submit:hover,
.ag-btn-orange:hover { background: var(--orange-d); color: var(--white); text-decoration: none; }

.btn-blue {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
  cursor: pointer;
}
.btn-blue:hover { background: var(--blue-d); color: var(--white); text-decoration: none; }

/* ─── Навигация ─────────────────────────────────────────────────── */
.ag-nav {
  background: var(--blue-d);
  border-bottom: 3px solid var(--orange);
}
.ag-nav__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}
.ag-nav a,
.ag-nav ul li a {
  display: block;
  color: rgba(255,255,255,.88);
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
  text-decoration: none;
  letter-spacing: .3px;
  text-transform: uppercase;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.ag-nav a:hover,
.ag-nav ul li a:hover,
.ag-nav a.current-menu-item,
.ag-nav ul li.current-menu-item a {
  background: rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
}
.ag-nav ul { display: flex; flex-wrap: wrap; list-style: none; }

/* ─── Хлебные крошки ────────────────────────────────────────────── */
.breadcrumb {
  font-size: 13px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--link); }
.breadcrumb-sep { color: var(--border); }

/* ─── Карточка (card) ───────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
}
.card:last-child { margin-bottom: 0; }
.card-head {
  background: var(--blue);
  color: var(--white);
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 16px;
  letter-spacing: .3px;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-head h1,
.card-head h2,
.card-head h3 {
  color: var(--white);
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
  font-size: 17px;
  margin: 0;
}
.card-head h1 { font-size: 22px; }
.card-head a { color: rgba(255,255,255,.8); font-size: 13px; }
.card-head a:hover { color: #fff; }
.card-body { padding: 16px; }

/* Карточка с оранжевой шапкой */
.card-head--orange { background: var(--orange); }

/* ─── Сетка страницы (2 колонки) ───────────────────────────────── */
.ag-page {
  max-width: 1140px;
  margin: 18px auto 32px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 288px;
  gap: 18px;
  align-items: start;
}
.ag-main { min-width: 0; }
.ag-sidebar { min-width: 0; }

/* ─── Hero-блок (главная) ───────────────────────────────────────── */
.hero-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 18px;
}
.hero-block h1 {
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--blue-d);
  margin-bottom: 8px;
  line-height: 1.25;
}
.hero-block p {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 18px;
}
.hero-search {
  display: flex;
  max-width: 560px;
  position: relative;
}
.hero-search input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--blue);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 15px;
  outline: none;
  color: var(--text);
}
.hero-search input:focus { border-color: var(--blue-d); }
.hero-search button {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'PT Sans Narrow', sans-serif;
}
.hero-search button:hover { background: var(--blue-d); }

/* Живой поиск (autocomplete) */
.ag-search-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  z-index: 100;
  display: none;
}
.ag-search-autocomplete.open { display: block; }
.ag-search-autocomplete li { border-bottom: 1px solid var(--border); }
.ag-search-autocomplete li:last-child { border-bottom: none; }
.ag-search-autocomplete a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  transition: background .1s;
}
.ag-search-autocomplete a:hover { background: var(--blue-l); text-decoration: none; }
.ag-search-autocomplete .ac-type {
  font-size: 11px;
  background: var(--blue-l);
  color: var(--blue);
  border-radius: 2px;
  padding: 1px 6px;
  margin-left: 6px;
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
}

/* Теги-подсказки */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.hero-tags .tag {
  font-size: 13px;
  color: var(--blue);
  background: var(--blue-l);
  border: 1px solid var(--blue-m);
  border-radius: 3px;
  padding: 3px 9px;
  text-decoration: none;
  transition: background .15s;
}
.hero-tags .tag:hover { background: var(--blue-m); text-decoration: none; }

/* Полоска статистики */
.stats-strip {
  display: flex;
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 24px;
  margin-right: 24px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-n {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  font-family: 'PT Sans Narrow', sans-serif;
  line-height: 1;
}
.stat-l {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.3;
}

/* ─── Сетка категорий ───────────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.cat-item {
  background: var(--white);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  text-decoration: none;
  transition: background .15s;
  color: var(--text);
}
.cat-item:hover { background: var(--blue-l); text-decoration: none; }
.cat-em { font-size: 20px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.cat-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.35;
  margin-bottom: 2px;
}
.cat-item:hover .cat-name { text-decoration: underline; }
.cat-cnt { font-size: 12px; color: var(--text-3); }

/* ─── Список вопросов ───────────────────────────────────────────── */
.q-list { list-style: none; }
.q-item {
  border-bottom: 1px solid var(--border);
  padding: 11px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: background .15s;
}
.q-item:last-child { border-bottom: none; }
.q-item:hover { background: var(--blue-l); }
.q-icon {
  font-size: 16px;
  flex-shrink: 0;
  color: var(--blue);
  font-weight: 700;
  font-family: 'PT Sans Narrow', sans-serif;
  width: 20px;
  text-align: center;
  line-height: 1.4;
  margin-top: 1px;
}
.q-content { flex: 1; min-width: 0; }
.q-title {
  font-size: 14px;
  color: var(--blue);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 4px;
  display: block;
}
.q-item:hover .q-title { text-decoration: underline; }
.q-preview {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.q-footer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 5px; }
.q-badge {
  font-size: 11px;
  background: var(--blue-l);
  color: var(--blue);
  border: 1px solid var(--blue-m);
  border-radius: 3px;
  padding: 1px 7px;
  font-weight: 700;
  font-family: 'PT Sans Narrow', sans-serif;
}
.q-views { font-size: 12px; color: var(--text-3); }

/* Карточка вопроса (категория) */
.q-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
  margin-bottom: 8px;
}
.q-card:hover { border-color: var(--blue-m); box-shadow: var(--shadow); }
.q-card-inner {
  padding: 12px 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.q-number {
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-m);
  min-width: 28px;
  text-align: right;
  flex-shrink: 0;
  padding-top: 1px;
}
.q-body { flex: 1; min-width: 0; }
.q-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.35;
  margin-bottom: 5px;
  display: block;
}
.q-card-title:hover { color: var(--blue-d); text-decoration: underline; }
.q-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ─── Фильтр-табы ───────────────────────────────────────────────── */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
}
.filter-tab {
  padding: 6px 14px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  display: inline-block;
}
.filter-tab:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-l); text-decoration: none; }
.filter-tab.active { background: var(--blue); color: var(--white); border-color: var(--blue); font-weight: 700; }
.filter-tab .count { font-size: 11px; opacity: .75; margin-left: 3px; }

/* ─── Пагинация ─────────────────────────────────────────────────── */
.pagination,
.ag-pagination,
.wp-block-query-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.page-btn,
.wp-block-query-pagination-next,
.wp-block-query-pagination-previous,
.wp-block-query-pagination-numbers a,
.wp-block-query-pagination-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--white);
  color: var(--text-2);
  font-size: 14px;
  text-decoration: none;
  transition: all .15s;
}
.page-btn:hover,
.wp-block-query-pagination-next:hover,
.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-numbers a:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-l); text-decoration: none; }
.page-btn.active,
.wp-block-query-pagination-numbers span.current { background: var(--blue); color: var(--white); border-color: var(--blue); font-weight: 700; }

/* ─── Страница вопроса ──────────────────────────────────────────── */
.question-h1 {
  font-family: 'PT Sans', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 16px;
}
.meta-line {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.meta-sep { color: var(--border); }

/* Блок ответа */
.answer-box {
  background: #EAF7EE;
  border: 1px solid #A8D9B5;
  border-left: 4px solid #2EAA54;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 22px;
}
.answer-box-label {
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #1E7A3A;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.answer-box-label::before {
  content: "✓";
  background: #2EAA54;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.answer-box p { font-size: 15px; line-height: 1.65; color: var(--text); }
.answer-box p + p { margin-top: 8px; }

/* Детальный ответ */
.detail-section h3 {
  font-family: 'PT Sans', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--blue-d);
  margin: 22px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--blue-m);
}
.detail-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 12px;
}
.detail-section ul,
.detail-section ol { margin: 0 0 14px 22px; }
.detail-section li { font-size: 15px; line-height: 1.65; color: var(--text); margin-bottom: 6px; }

/* Инфо-блок */
.info-box {
  background: var(--blue-l);
  border: 1px solid var(--blue-m);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
}
.info-box strong { color: var(--text); }

/* Блок-предупреждение */
.warn-box {
  background: #FFF8EC;
  border: 1px solid #F5D08A;
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
}
.warn-box strong { color: var(--text); }

/* Нумерованные шаги */
.steps-list { list-style: none; counter-reset: steps; }
.steps-list li {
  counter-increment: steps;
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-start;
}
.steps-list li::before {
  content: counter(steps);
  background: var(--blue);
  color: #fff;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}
.steps-list li span { font-size: 15px; line-height: 1.65; color: var(--text); }

/* Таблица в ответе */
.detail-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 14px;
}
.detail-section table th {
  background: var(--blue-l);
  color: var(--blue-d);
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
  padding: 8px 12px;
  border: 1px solid var(--blue-m);
  text-align: left;
}
.detail-section table td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}
.detail-section table tr:nth-child(even) td { background: var(--bg); }

/* Inline CTA */
.inline-cta {
  background: linear-gradient(135deg, var(--blue-d) 0%, var(--blue) 100%);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.inline-cta-text h3 {
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  margin-bottom: 5px;
}
.inline-cta-text p { font-size: 14px; color: rgba(255,255,255,.8); margin: 0; }

/* Теги */
.tags-section {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 14px 16px;
}
.tags-label { font-size: 13px; color: var(--text-3); font-family: 'PT Sans Narrow', sans-serif; }
.tag {
  display: inline-block;
  background: var(--blue-l);
  border: 1px solid var(--blue-m);
  color: var(--blue);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: background .12s;
}
.tag:hover { background: var(--blue-m); text-decoration: none; color: var(--blue-d); }

/* ─── Гайд (статья) ─────────────────────────────────────────────── */
.article-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.meta-item { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-3); }
.meta-author { font-weight: 700; color: var(--text-2); }
.meta-tag {
  background: var(--blue-l);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-family: 'PT Sans Narrow', sans-serif;
}

.article-content { padding: 24px 28px 28px; }
.article-content h1 {
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 20px;
}
.article-content h2 {
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-d);
  margin: 32px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--orange);
  line-height: 1.3;
}
.article-content h3 {
  font-family: 'PT Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 22px 0 10px;
}
.article-content p { margin-bottom: 14px; color: var(--text); }
.article-content ul, .article-content ol { margin: 12px 0 18px 20px; }
.article-content ul li, .article-content ol li { margin-bottom: 7px; color: var(--text); }
.article-content ul li::marker { color: var(--orange); }

/* Оглавление */
.toc-box {
  background: var(--blue-l);
  border: 1px solid var(--blue-m);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 28px;
}
.toc-box-title {
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-d);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.toc-list { list-style: none; counter-reset: toc-counter; }
.toc-list li {
  counter-increment: toc-counter;
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.toc-list li::before {
  content: counter(toc-counter) ".";
  color: var(--orange);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  min-width: 18px;
  margin-top: 1px;
}
.toc-list a { color: var(--blue); font-size: 14px; line-height: 1.4; }

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, var(--blue-l) 0%, #dce8f8 100%);
  border: 1px solid var(--blue-m);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0;
}
.highlight-box p { margin: 0; font-size: 15px; }

/* Infobox */
.infobox {
  background: var(--blue-l);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 15px;
}
.infobox.warning { background: #FFF5EC; border-left-color: var(--orange); }
.infobox-title { font-weight: 700; margin-bottom: 5px; color: var(--blue-d); }
.infobox.warning .infobox-title { color: var(--orange); }

/* Таблица */
.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 20px;
  font-size: 14px;
}
.doc-table th {
  background: var(--blue);
  color: #fff;
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
  padding: 9px 12px;
  text-align: left;
}
.doc-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc-table tr:nth-child(even) td { background: var(--blue-l); }
.doc-table tr:last-child td { border-bottom: none; }

/* Таймлайн */
.timeline { margin: 18px 0; }
.timeline-item { display: flex; gap: 14px; margin-bottom: 0; position: relative; }
.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: -1px;
  width: 2px;
  background: var(--blue-m);
}
.timeline-dot {
  width: 32px;
  height: 32px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.timeline-content { padding-bottom: 18px; flex: 1; }
.timeline-content h4 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.timeline-content p { font-size: 14px; color: var(--text-2); margin: 0; }
.timeline-time {
  font-size: 12px;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* Чеклист */
.checklist { list-style: none; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text);
}
.checklist li:last-child { border-bottom: none; }
.checklist-icon { color: #2a9a4c; font-size: 15px; margin-top: 2px; flex-shrink: 0; }

/* Рейтинг статьи */
.feedback-block {
  border-top: 1px solid var(--border);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.feedback-label { font-size: 15px; color: var(--text-2); font-weight: 700; }
.feedback-btns { display: flex; gap: 10px; }
.feedback-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  padding: 7px 16px;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.feedback-btn:hover { border-color: var(--blue); color: var(--blue); }
.feedback-btn.yes:hover { border-color: #2a9a4c; color: #2a9a4c; }
.feedback-count { font-size: 13px; color: var(--text-3); }

/* Похожие материалы */
.related-block { padding: 20px; border-top: 1px solid var(--border); }
.related-title {
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.related-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.related-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.related-item:last-child { border-bottom: none; padding-bottom: 0; }
.related-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-l);
  border-radius: var(--radius);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.related-meta { font-size: 12px; color: var(--text-3); margin-top: 3px; }

/* ─── Страница поиска ───────────────────────────────────────────── */
.search-area {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px 16px;
  margin-bottom: 14px;
}
.search-area-title {
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: 13px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.main-search-row { display: flex; }
.main-search-input {
  flex: 1;
  height: 48px;
  border: 2px solid var(--blue);
  border-right: none;
  padding: 0 16px;
  font-size: 16px;
  border-radius: var(--radius) 0 0 var(--radius);
  outline: none;
  color: var(--text);
  transition: border-color .15s;
  font-family: inherit;
}
.main-search-input:focus { border-color: var(--orange); }
.main-search-btn {
  height: 48px;
  padding: 0 24px;
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background .15s;
}
.main-search-btn:hover { background: var(--blue-d); border-color: var(--blue-d); }

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.results-count { font-size: 14px; color: var(--text-2); }
.results-count strong { color: var(--text); font-size: 16px; }

.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--blue); border-color: var(--blue); color: var(--white); font-weight: 700; }
.chip-count { margin-left: 5px; font-size: 12px; opacity: .8; }

.result-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px 14px;
  margin-bottom: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.result-card:hover { border-color: var(--blue-m); box-shadow: var(--shadow); }
.result-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.35;
  margin-bottom: 4px;
  display: block;
}
.result-title:hover { text-decoration: underline; }
.result-breadcrumb {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.result-breadcrumb a { color: var(--text-3); font-size: 12px; }
.result-breadcrumb a:hover { color: var(--blue); }
.result-snippet {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 9px;
}
.highlight { background: #FFF59D; color: var(--text); padding: 0 2px; border-radius: 2px; }
.result-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Бейджи */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 3px;
  font-size: 11px;
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.badge-question { background: var(--blue-l); color: var(--blue); }
.badge-guide    { background: #E8F5E9; color: #2E7D32; }
.badge-city     { background: #FFF3E0; color: #E65100; }
.badge-queue    { background: #E3F2FD; color: #1565C0; }
.badge-proc     { background: #E8F5E9; color: #2E7D32; }
.badge-docs     { background: #FFF3E0; color: #E65100; }
.badge-other    { background: #F3E5F5; color: #6A1B9A; }

/* ─── Страница города ───────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E6F7EE;
  border: 1px solid #A3D9B8;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #1A7A40;
  margin-bottom: 14px;
}
.status-badge .sep-v { color: #A3D9B8; margin: 0 4px; }
.status-wait { font-weight: 400; color: #2A6040; }

.info-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.info-card-head {
  background: var(--blue);
  color: var(--white);
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 12px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.info-card-body {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.info-card-body strong { display: block; font-size: 14px; margin-bottom: 2px; }

.update-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.update-meta {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 6px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.update-badge {
  background: var(--blue-l);
  color: var(--blue);
  border-radius: 3px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: 'PT Sans Narrow', sans-serif;
}
.update-block h3 {
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.update-block p { font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.update-block p:last-child { margin-bottom: 0; }

.queue-stats { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.queue-stat {
  background: var(--blue-l);
  border: 1px solid var(--blue-m);
  border-radius: var(--radius);
  padding: 8px 14px;
  text-align: center;
  min-width: 120px;
}
.queue-stat-val {
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  display: block;
}
.queue-stat-label { font-size: 11px; color: var(--text-3); }

.notice-box {
  background: #FFF8E1;
  border: 1px solid #FFD54F;
  border-left: 4px solid #F5A623;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  color: #795548;
  margin-bottom: 18px;
}
.notice-box strong { color: #5D4037; }

/* Аккордеон (FAQ) */
.faq-list { list-style: none; }
.faq-list li { border-bottom: 1px solid var(--border); }
.faq-list li:last-child { border-bottom: none; }
details summary {
  cursor: pointer;
  padding: 13px 16px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  user-select: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::before {
  content: '▸';
  color: var(--blue);
  font-size: 13px;
  flex-shrink: 0;
  transition: transform .2s;
}
details[open] summary::before { transform: rotate(90deg); }
details summary:hover { background: var(--blue-l); }
.faq-answer {
  padding: 0 16px 14px 40px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}
.faq-answer p { margin-bottom: 8px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { padding-left: 18px; margin-top: 6px; list-style: disc; }
.faq-answer ul li { margin-bottom: 4px; }

/* Отзывы */
.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.testimonial {
  background: var(--blue-l);
  border: 1px solid var(--blue-m);
  border-radius: var(--radius);
  padding: 16px;
}
.testimonial-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 12px;
}
.testimonial-text::before { content: '«'; }
.testimonial-text::after  { content: '»'; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 14px; color: var(--text); }
.testimonial-meta { font-size: 12px; color: var(--text-3); }
.stars { color: #F5A623; font-size: 13px; margin-top: 2px; }

/* Статусы городов */
.cities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.city-link {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .15s;
  text-decoration: none;
}
.city-link:hover { background: var(--blue-l); text-decoration: none; }
.city-flag { font-size: 16px; }
.city-status-ok   { width: 8px; height: 8px; border-radius: 50%; background: #2ECC71; flex-shrink: 0; margin-left: auto; }
.city-status-warn { width: 8px; height: 8px; border-radius: 50%; background: #F5A623; flex-shrink: 0; margin-left: auto; }

/* ─── Форма консультации ─────────────────────────────────────────── */
.ag-form,
.consult-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 620px;
}
.ag-form-row {
  display: contents;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-group.full,
.form-group[style*="grid-column"] { grid-column: 1 / -1; }
.form-group label { font-size: 13px; color: var(--text-2); font-weight: 700; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .15s;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 72px; }
.ag-form-submit,
.form-submit {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ag-consult-lead { font-size: 15px; color: var(--text-2); margin-bottom: 20px; max-width: 580px; }
.form-privacy { font-size: 12px; color: var(--text-3); line-height: 1.4; }
.form-privacy a { color: var(--text-3); text-decoration: underline; }

/* Сайдбар-форма (маленькая) */
.sidebar-form .form-group { margin-bottom: 10px; }
.sidebar-form .form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.sidebar-form .form-group input,
.sidebar-form .form-group select,
.sidebar-form .form-group textarea {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
}
.sidebar-form .form-group textarea { height: 70px; }
.sidebar-form .form-submit-btn {
  width: 100%;
  padding: 11px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  margin-top: 4px;
  transition: background .15s;
}
.sidebar-form .form-submit-btn:hover { background: var(--orange-d); }
.form-disclaimer { font-size: 11px; color: var(--text-3); margin-top: 8px; text-align: center; line-height: 1.5; }

/* ─── Сайдбар — общие виджеты ───────────────────────────────────── */
.ag-sidebar { display: flex; flex-direction: column; gap: 14px; }
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.sidebar-card-head {
  background: var(--blue);
  color: var(--white);
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 14px;
}
.sidebar-card-head--orange { background: var(--orange); }
.sidebar-card-body { padding: 14px; }

/* Список категорий в сайдбаре */
.cat-list-sidebar { list-style: none; }
.cat-list-sidebar li { border-bottom: 1px solid var(--border); }
.cat-list-sidebar li:last-child { border-bottom: none; }
.cat-list-sidebar a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  color: var(--link);
}
.cat-list-sidebar a:hover { text-decoration: underline; }
.cat-list-sidebar .cnt {
  background: var(--blue-l);
  color: var(--blue);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  flex-shrink: 0;
  font-family: 'PT Sans Narrow', sans-serif;
}
.cat-list-sidebar li.active a { font-weight: 700; color: var(--blue-d); }
.cat-list-sidebar li.active .cnt { background: var(--blue); color: var(--white); }

/* Популярные вопросы в сайдбаре */
.popular-list-sidebar { list-style: none; counter-reset: pop; }
.popular-list-sidebar li {
  counter-increment: pop;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.popular-list-sidebar li:last-child { border-bottom: none; }
.popular-list-sidebar li::before {
  content: counter(pop);
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--blue-m);
  min-width: 20px;
  line-height: 1.3;
}
.popular-list-sidebar a { font-size: 13px; color: var(--link); line-height: 1.4; }
.popular-list-sidebar a:hover { text-decoration: underline; }

/* Этапы в сайдбаре */
.stages-sidebar { list-style: none; counter-reset: stage; }
.stages-sidebar li {
  counter-increment: stage;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
}
.stages-sidebar li:last-child { border-bottom: none; }
.stages-sidebar li::before {
  content: counter(stage);
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Статусы городов в сайдбаре */
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.status-row:last-child { border-bottom: none; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot-green  { background: #2ECC71; }
.dot-yellow { background: #F5A623; }
.dot-red    { background: #E74C3C; }
.status-city { color: var(--text); font-weight: 700; flex: 1; margin-left: 8px; }
.status-wait-small { color: var(--text-3); font-size: 12px; }
.active-city { background: var(--blue-l); margin: 0 -14px; padding: 7px 14px; }

/* ─── О проекте (about) ──────────────────────────────────────────── */
.about-text p { margin-bottom: 10px; color: var(--text-2); line-height: 1.65; }
.about-text p:last-child { margin-bottom: 0; }
.about-highlight {
  background: var(--blue-l);
  border-left: 3px solid var(--blue);
  padding: 12px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 14px;
  font-size: 14px;
  color: var(--text);
}
.expert-card {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.expert-card:last-child { border-bottom: none; padding-bottom: 0; }
.expert-card:first-child { padding-top: 0; }
.avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue-m);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--blue-d);
}
.expert-info { flex: 1; }
.expert-name { font-family: 'PT Sans Narrow', sans-serif; font-weight: 700; font-size: 17px; color: var(--text); margin-bottom: 2px; }
.expert-title { font-size: 13px; color: var(--blue); margin-bottom: 8px; font-weight: 700; }
.expert-meta { display: flex; gap: 18px; margin-bottom: 8px; font-size: 13px; color: var(--text-3); }
.expert-meta span strong { color: var(--text-2); font-weight: 700; }
.expert-bio { font-size: 14px; color: var(--text-2); line-height: 1.6; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px 20px;
}
.stat-item {
  text-align: center;
  padding: 16px 8px;
  background: var(--blue-l);
  border-radius: var(--radius);
  border: 1px solid var(--blue-m);
}
.stat-num {
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--blue);
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat-label { font-size: 12px; color: var(--text-2); line-height: 1.4; }

.reasons-list { padding: 14px 20px; display: flex; flex-direction: column; gap: 14px; }
.reason-item { display: flex; gap: 14px; align-items: flex-start; }
.reason-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--blue-l);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.reason-text h3 { font-family: 'PT Sans Narrow', sans-serif; font-weight: 700; font-size: 15px; color: var(--text); margin-bottom: 3px; }
.reason-text p { font-size: 13px; color: var(--text-2); line-height: 1.55; }

/* ─── Квиз ──────────────────────────────────────────────────────── */
.quiz-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.quiz-card-head {
  background: var(--blue);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.quiz-card-head h2 { font-family: 'PT Sans Narrow', sans-serif; font-weight: 700; font-size: 18px; color: var(--white); margin: 0; }
.quiz-step-label { font-family: 'PT Sans Narrow', sans-serif; font-size: 14px; color: rgba(255,255,255,.75); }
.quiz-body { padding: 24px 24px 28px; }

/* Прогресс-бар */
.progress-wrap { margin-bottom: 24px; }
.progress-track { height: 8px; background: var(--blue-m); border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.progress-fill { height: 100%; background: var(--orange); border-radius: 4px; transition: width .35s ease; }
.progress-dots { display: flex; justify-content: space-between; align-items: center; }
.progress-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  transition: all .25s;
  font-family: 'PT Sans Narrow', sans-serif;
}
.progress-dot.done   { background: var(--blue);   border-color: var(--blue);   color: var(--white); }
.progress-dot.active { background: var(--orange);  border-color: var(--orange); color: var(--white); }

/* Шаги квиза */
.quiz-step { display: none; }
.quiz-step.active { display: block; }

.quiz-question {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.35;
}
.quiz-hint { font-size: 13px; color: var(--text-3); margin-top: -14px; margin-bottom: 18px; }

.quiz-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: var(--white);
  user-select: none;
}
.quiz-option:hover  { border-color: var(--blue); background: var(--blue-l); }
.quiz-option.selected { border-color: var(--blue); background: var(--blue-l); }
.quiz-option input[type="radio"] { display: none; }
.option-radio {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  margin-top: 1px;
}
.quiz-option.selected .option-radio { border-color: var(--blue); background: var(--blue); }
.option-radio-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--white); opacity: 0; transition: opacity .15s; }
.quiz-option.selected .option-radio-dot { opacity: 1; }
.option-text { font-size: 15px; color: var(--text); line-height: 1.4; }

.quiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.btn-back {
  padding: 10px 22px;
  background: var(--white);
  color: var(--blue);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  font-family: inherit;
}
.btn-back:hover { border-color: var(--blue); color: var(--blue-d); }
.btn-back:disabled { opacity: .35; cursor: default; }
.btn-next {
  padding: 11px 28px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background .15s;
}
.btn-next:hover { background: var(--blue-d); }
.btn-next:disabled { opacity: .35; cursor: default; }
.btn-next.finish { background: var(--orange); }
.btn-next.finish:hover { background: var(--orange-d); }

.quiz-error {
  font-size: 13px;
  color: #c0392b;
  display: none;
  margin-top: -20px;
  margin-bottom: 18px;
  padding: 8px 12px;
  background: #fdf0ef;
  border: 1px solid #f5c6c2;
  border-radius: var(--radius);
}
.quiz-error.visible { display: block; }

/* Результат квиза */
.quiz-result { display: none; }
.quiz-result.active { display: block; }
.result-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}
.result-icon.good  { background: #e6f4ea; }
.result-icon.check { background: #fff3e0; }
.result-title { font-family: 'PT Sans Narrow', sans-serif; font-weight: 700; font-size: 24px; text-align: center; margin-bottom: 12px; line-height: 1.2; }
.result-title.good  { color: #1a7a3a; }
.result-title.check { color: var(--orange); }
.result-text { font-size: 15px; color: var(--text-2); text-align: center; line-height: 1.6; margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }
.result-details {
  background: var(--blue-l);
  border: 1px solid var(--blue-m);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.result-details h4 { font-family: 'PT Sans Narrow', sans-serif; font-size: 16px; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.result-details ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.result-details li { font-size: 14px; color: var(--text-2); display: flex; gap: 8px; align-items: flex-start; }
.result-details li::before { content: "→"; color: var(--blue); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.result-cta-block {
  background: var(--white);
  border: 1.5px solid var(--orange);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
  text-align: center;
}
.result-cta-block h4 { font-family: 'PT Sans Narrow', sans-serif; font-weight: 700; font-size: 18px; color: var(--text); margin-bottom: 6px; }
.result-cta-block p { font-size: 13px; color: var(--text-3); margin-bottom: 16px; }
.btn-orange-lg {
  display: block;
  padding: 13px 32px;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius);
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
  font-size: 17px;
  border: none;
  cursor: pointer;
  transition: background .15s;
  text-align: center;
  text-decoration: none;
  margin-bottom: 10px;
}
.btn-orange-lg:hover { background: var(--orange-d); text-decoration: none; color: var(--white); }
.cta-note { font-size: 12px; color: var(--text-3); }
.btn-restart {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-3);
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'PT Sans', sans-serif;
  text-decoration: underline;
}
.btn-restart:hover { color: var(--link); }

/* ─── Страница 404 ───────────────────────────────────────────────── */
.error-block {
  text-align: center;
  padding: 48px 20px 40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.error-number {
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
  font-size: 120px;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -4px;
  margin-bottom: 8px;
}
.error-title {
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}
.error-desc { font-size: 16px; color: var(--text-2); max-width: 520px; margin: 0 auto 28px; }

.sections-block {
  margin-bottom: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.sections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 16px;
}
.section-card {
  background: var(--blue-l);
  border: 1px solid var(--blue-m);
  border-radius: var(--radius);
  padding: 16px 14px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background .15s, border-color .15s;
}
.section-card:hover { background: var(--blue-m); border-color: var(--blue); text-decoration: none; }
.section-card-icon { font-size: 26px; line-height: 1; }
.section-card-title { font-family: 'PT Sans Narrow', sans-serif; font-weight: 700; font-size: 15px; color: var(--blue); line-height: 1.2; }
.section-card-desc { font-size: 12px; color: var(--text-2); line-height: 1.4; }

/* ─── Как работает сайт ─────────────────────────────────────────── */
.how-strip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 18px;
  overflow: hidden;
}
.how-strip-head {
  background: var(--blue-d);
  padding: 9px 16px;
}
.how-strip-head h2 { font-family: 'PT Sans Narrow', sans-serif; font-size: 17px; font-weight: 700; color: #fff; margin: 0; }
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--border);
}
.how-step {
  background: var(--white);
  padding: 18px 16px;
  text-align: center;
  position: relative;
}
.how-step::after {
  content: '›';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--text-3);
  z-index: 1;
}
.how-step:last-child::after { display: none; }
.step-n {
  width: 34px;
  height: 34px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  margin: 0 auto 10px;
}
.how-step h4 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 5px; line-height: 1.35; }
.how-step p { font-size: 12px; color: var(--text-3); line-height: 1.4; }

/* ─── Подвал ─────────────────────────────────────────────────────── */
.ag-footer {
  background: var(--blue-d);
  color: rgba(255,255,255,.75);
  padding: 32px 0 20px;
  margin-top: 0;
}
.ag-footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}
.ag-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.footer-brand-name { font-family: 'PT Sans Narrow', sans-serif; font-weight: 700; font-size: 17px; color: var(--white); margin-bottom: 6px; }
.footer-brand-desc { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.5; margin-bottom: 12px; }
.footer-phone { color: var(--white); font-size: 16px; font-weight: 700; display: block; margin-bottom: 4px; }
.footer-phone:hover { color: var(--white); text-decoration: underline; }
.footer-email { color: rgba(255,255,255,.7); font-size: 13px; }
.footer-col-title {
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-links a { color: rgba(255,255,255,.7); font-size: 13px; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.ag-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
  gap: 8px;
}
.ag-footer__bottom a { color: rgba(255,255,255,.5); text-decoration: underline; }
.ag-footer__bottom a:hover { color: rgba(255,255,255,.8); }

/* ─── WordPress блоки — переопределения ────────────────────────── */
.wp-block-query { margin-bottom: 0; }
.wp-block-post-title a { color: var(--blue); text-decoration: none; }
.wp-block-post-title a:hover { text-decoration: underline; }
.wp-block-search__input {
  border: 1px solid var(--border);
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 9px 14px;
  font-family: 'PT Sans', sans-serif;
  font-size: 14px;
}
.wp-block-search__button {
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.wp-block-search__button:hover { background: var(--orange-d); }
.wp-block-categories-list { list-style: none; padding: 0; }
.wp-block-tag-cloud a { background: var(--blue-l); border: 1px solid var(--blue-m); color: var(--blue); border-radius: 12px; padding: 2px 10px; font-size: 12px; font-family: 'PT Sans Narrow', sans-serif; font-weight: 700; text-decoration: none; }
.wp-block-tag-cloud a:hover { background: var(--blue-m); text-decoration: none; }

/* ─── Адаптивность ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ag-page { grid-template-columns: 1fr; }
  .ag-sidebar { display: block; }
  .ag-footer__grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .info-cards-row { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ag-header__inner { flex-wrap: wrap; gap: 12px; }
  .ag-header-search { max-width: 100%; }
  .ag-header-cta { display: none; }
  .ag-footer__grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .sections-grid { grid-template-columns: 1fr; }
  .cities-grid { grid-template-columns: 1fr 1fr; }
  .error-number { font-size: 80px; }
  .error-title { font-size: 24px; }
  .how-steps { grid-template-columns: 1fr; }
  .how-step::after { display: none; }
  .stats-strip { flex-direction: column; gap: 12px; }
  .stat { border-right: none; padding-right: 0; margin-right: 0; }
  .ag-form,
  .consult-form { grid-template-columns: 1fr; }
  .article-content { padding: 16px; }
  .article-content h1 { font-size: 22px; }
  .quiz-body { padding: 16px; }
  .inline-cta { flex-direction: column; }
  .info-cards-row { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
