/* ===================================================
   Bidcaro — Основные стили
   Все цвета — через токены из tokens.css.
   CSS-классы с префиксом ab-.
   =================================================== */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 { margin: 0; line-height: 1.15; }

p { margin: 0; }

/* ======= Обёртка ======= */
.ab-wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ======= Шапка ======= */
.ab-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  height: 68px;
}

.ab-header__inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 32px;
}

/* ======= Логотип ======= */
.ab-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  text-decoration: none;
}
.ab-logo:hover { text-decoration: none; opacity: 0.9; }

.ab-logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--blue);
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

/* ======= Навигация шапки ======= */
.ab-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.ab-nav__link {
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.ab-nav__link:hover {
  color: #fff;
  background: var(--navy-2);
  text-decoration: none;
}
.ab-nav__link.is-active {
  color: #fff;
  background: var(--navy-2);
}

.ab-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ab-header__user {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 600;
}

.ab-inline-form {
  margin: 0;
}

.ab-nav__link--btn,
.ab-mobile-nav__link--btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
}
.ab-nav__link--btn {
  padding: 6px 12px;
}
.ab-mobile-nav__link--btn {
  width: 100%;
  text-align: left;
}

.ab-inline-form--mobile {
  display: block;
}

.ab-header__burger {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  cursor: pointer;
  padding: 8px 12px;
  margin-left: auto;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
}

/* ======= Мобильная навигация ======= */
@media (min-width: 721px) {
  .ab-mobile-nav { display: none !important; }
}

.ab-mobile-nav {
  background: var(--navy);
  padding: 8px 16px 16px;
  display: none; /* раскрывается через .is-open */
  flex-direction: column;
  gap: 4px;
}
.ab-mobile-nav.is-open {
  display: flex;
}

.ab-mobile-nav__link {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
}
.ab-mobile-nav__link:hover,
.ab-mobile-nav__link--accent {
  color: #fff;
  background: var(--navy-2);
}

/* ======= Кнопки ======= */
.ab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-md);
  font: 650 14px/1 var(--font);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.15s, opacity 0.15s, transform 0.1s;
  white-space: nowrap;
  user-select: none;
}
.ab-btn:hover { transform: translateY(-1px); text-decoration: none; }
.ab-btn:active { transform: none; }
.ab-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.ab-btn-primary {
  background: var(--blue);
  color: #fff;
}
.ab-btn-primary:hover { background: var(--blue-hover); }

.ab-btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.ab-btn-ghost:hover { background: var(--bg); }

/* ghost на тёмном фоне */
.ab-header .ab-btn-ghost,
.ab-shell__side .ab-btn-ghost,
.ab-footer .ab-btn-ghost {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.25);
}
.ab-header .ab-btn-ghost:hover,
.ab-shell__side .ab-btn-ghost:hover {
  background: var(--navy-2);
}

.ab-btn-danger {
  background: var(--red);
  color: #fff;
}
.ab-btn-danger:hover { filter: brightness(0.9); }

.ab-btn--sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

/* ======= Поле ======= */
.ab-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ab-field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.ab-field__req {
  color: var(--red);
}

.ab-field__input,
.ab-field__select,
.ab-field__textarea {
  height: 44px;
  padding: 0 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: 400 15px/1 var(--font);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}

.ab-field__textarea {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.5;
}

.ab-field__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2366758A' stroke-width='1.75'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.ab-field__input:focus,
.ab-field__select:focus,
.ab-field__textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--shadow-focus);
}

.ab-field.has-error .ab-field__input,
.ab-field.has-error .ab-field__select,
.ab-field.has-error .ab-field__textarea {
  border-color: var(--red);
}
.ab-field.has-error .ab-field__input:focus {
  box-shadow: 0 0 0 3px var(--red-soft);
}

.ab-field__error {
  font-size: 13px;
  color: var(--red);
  margin: 0;
}

.ab-field__hint {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* ======= Карточка ======= */
.ab-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

/* ======= Бейдж ======= */
.ab-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.ab-badge.is-green  { background: var(--green-soft);  color: var(--green); }
.ab-badge.is-amber  { background: var(--amber-soft);  color: var(--amber); }
.ab-badge.is-red    { background: var(--red-soft);    color: var(--red); }
.ab-badge.is-blue   { background: var(--blue-soft);   color: var(--blue); }

/* ======= Стат ======= */
.ab-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ab-stat__value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.ab-stat__label {
  font-size: 13px;
  color: var(--muted);
}

/* ======= Таблица ======= */
.ab-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.ab-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--bg);
}
.ab-table tbody td {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.ab-table tbody tr:hover td {
  background: var(--bg);
}

/* адаптация таблиц на мобиле */
@media (max-width: 640px) {
  .ab-table-wrap { overflow-x: auto; }
  .ab-table thead { display: none; }
  .ab-table tbody td {
    display: flex;
    justify-content: space-between;
    border-top: none;
    padding: 8px 16px;
  }
  .ab-table tbody tr {
    display: block;
    border-top: 1px solid var(--line);
    padding: 8px 0;
  }
  .ab-table tbody td[data-label]::before {
    content: attr(data-label);
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
  }
}

/* ======= Смета ======= */
.ab-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ab-breakdown__row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.ab-breakdown__row span:last-child {
  color: var(--ink);
  font-weight: 600;
}
.ab-breakdown__total {
  display: flex;
  justify-content: space-between;
  padding: 14px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

/* ======= Шаги ======= */
.ab-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ab-steps__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ab-steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.ab-steps__title {
  font-size: 16px;
  font-weight: 650;
  display: block;
  margin-bottom: 4px;
}
.ab-steps__body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ======= Пустое состояние ======= */
.ab-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  gap: 12px;
}
.ab-empty__icon {
  color: var(--muted);
  opacity: 0.5;
  width: 48px;
  height: 48px;
}
.ab-empty__title {
  font-size: 18px;
  font-weight: 650;
  color: var(--ink);
}
.ab-empty__body {
  font-size: 14px;
  color: var(--muted);
  max-width: 380px;
}

/* ======= Предупреждение (callout) ======= */
.ab-callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--amber-soft);
  border: 1px solid rgba(184, 110, 0, 0.2);
  border-left: 4px solid var(--amber);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}
.ab-callout svg { color: var(--amber); flex-shrink: 0; margin-top: 1px; }
.ab-callout p { margin: 0; }

.ab-callout.is-info {
  background: var(--blue-soft);
  border-color: rgba(47,111,237,0.2);
  border-left-color: var(--blue);
}
.ab-callout.is-info svg { color: var(--blue); }

/* ======= Оболочка кабинета ======= */
.ab-shell {
  display: flex;
  min-height: 100vh;
}

.ab-shell__side {
  width: 248px;
  flex-shrink: 0;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  padding: 20px 12px;
  gap: 4px;
}

.ab-shell__side-logo {
  padding: 0 8px 20px;
}

.ab-shell__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ab-shell__nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.ab-shell__nav-item:hover {
  color: #fff;
  background: var(--navy-2);
  text-decoration: none;
}
.ab-shell__nav-item.is-active {
  background: var(--blue);
  color: #fff;
}
.ab-shell__nav-item svg { flex-shrink: 0; opacity: 0.75; }
.ab-shell__nav-item.is-active svg { opacity: 1; }

.ab-shell__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ab-shell__topbar {
  height: 60px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 28px;
  background: var(--card);
  gap: 12px;
}
.ab-shell__greeting {
  font-weight: 600;
  font-size: 15px;
  flex: 1;
}
.ab-shell__topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ab-shell__content {
  flex: 1;
  background: var(--bg);
  padding: 28px;
}

/* ======= Подвал ======= */
.ab-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding-top: 56px;
}
.ab-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.ab-footer__col--brand .ab-logo__name { color: #fff; }
.ab-footer__desc {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 12px;
  color: rgba(255,255,255,0.5);
}
.ab-footer__legal {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-top: 8px;
}
.ab-footer__heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
  margin: 0 0 12px;
}
.ab-footer__link {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
  text-decoration: none;
}
.ab-footer__link:hover {
  color: #fff;
  text-decoration: none;
}
.ab-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
}
.ab-footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ======= Публичный сайт ======= */

/* --- Герой главной --- */
.ab-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a60 60%, #0d2a4a 100%);
  color: #fff;
  padding: 80px 0 72px;
  overflow: hidden;
  position: relative;
}
.ab-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(47,111,237,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.ab-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.ab-hero__text { position: relative; z-index: 1; }
.ab-hero__title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.ab-hero__sub {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  margin: 0 0 32px;
  max-width: 480px;
}
.ab-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.ab-btn--lg { height: 52px; padding: 0 28px; font-size: 15px; }
.ab-btn--ghost-light {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.3);
}
.ab-btn--ghost-light:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.ab-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ab-hero__car-placeholder {
  width: 100%;
  max-width: 480px;
  opacity: 0.9;
}
.ab-hero__car-placeholder svg { width: 100%; height: auto; }

/* --- Тезисы --- */
.ab-features {
  background: var(--card);
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.ab-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.ab-feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.ab-feature__title {
  font-size: 16px;
  font-weight: 650;
  margin: 0 0 8px;
  color: var(--ink);
}
.ab-feature__body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* --- Секция заголовков --- */
.ab-section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  color: var(--ink);
}

/* --- Направления на главной --- */
.ab-directions-section {
  padding: 72px 0 48px;
  background: var(--bg);
}
.ab-dir-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.ab-dir-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 12px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--card);
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
  box-shadow: var(--shadow-card);
}
.ab-dir-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 16px 40px rgba(47,111,237,0.12);
  text-decoration: none;
}
.ab-dir-card__flag {
  font-size: 36px;
  line-height: 1;
}
.ab-dir-card__name {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  text-align: center;
}
.ab-dir-card__price {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}
.ab-directions-section__more {
  text-align: center;
  margin-top: 8px;
}

/* --- Как работает (главная) --- */
.ab-how-section {
  padding: 72px 0;
  background: var(--card);
}
.ab-how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
.ab-how-step { position: relative; }
.ab-how-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 14px;
}
.ab-how-step__title {
  font-size: 16px;
  font-weight: 650;
  margin: 0 0 8px;
  color: var(--ink);
}
.ab-how-step__body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.ab-how-section__cta { text-align: center; }

/* --- CTA-секция --- */
.ab-cta-section {
  background: var(--navy);
  padding: 72px 0;
  color: #fff;
}
.ab-cta-section__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.ab-cta-section__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.ab-cta-section__sub {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  margin: 0;
}

/* --- Страницы (общие) --- */
.ab-page-hero {
  background: var(--navy);
  color: #fff;
  padding: 52px 0 48px;
}
.ab-page-hero--sm { padding: 44px 0 40px; }
.ab-page-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.ab-page-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin: 0;
  max-width: 600px;
  line-height: 1.6;
}
.ab-page-body {
  padding-top: 48px;
  padding-bottom: 80px;
}
.ab-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-bottom: 16px;
  text-decoration: none;
}
.ab-back-link:hover { color: #fff; text-decoration: none; }

/* --- Список направлений --- */
.ab-dir-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ab-dir-list-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--card);
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.ab-dir-list-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(47,111,237,0.1);
  transform: translateX(4px);
  text-decoration: none;
}
.ab-dir-list-card__flag { font-size: 32px; flex-shrink: 0; }
.ab-dir-list-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ab-dir-list-card__name {
  font-size: 16px;
  font-weight: 650;
  color: var(--ink);
}
.ab-dir-list-card__subtitle {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}
.ab-dir-list-card__price {
  font-size: 13px;
  color: var(--blue);
  font-weight: 600;
}
.ab-dir-list-card__arrow { color: var(--muted); flex-shrink: 0; }

/* --- Страница направления --- */
.ab-dir-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 4px;
}
.ab-dir-hero__flag { font-size: 48px; }
.ab-dir-hero__price { margin-top: 8px; }
.ab-dir-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.ab-dir-block {
  margin-bottom: 32px;
}
.ab-dir-block__title {
  font-size: 18px;
  font-weight: 650;
  margin: 0 0 12px;
  color: var(--ink);
}
.ab-dir-block p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}
.ab-list {
  padding-left: 20px;
  margin: 8px 0 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}
.ab-list li { margin-bottom: 2px; }

/* --- «Как это работает» страница --- */
.ab-hiw-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.ab-hiw-section:last-of-type { border-bottom: none; }
.ab-hiw-section__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--ink);
}
.ab-hiw-section__content {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.ab-hiw-section__text p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 16px;
}
.ab-hiw-section__text p:last-child { margin-bottom: 0; }
.ab-hiw-cta {
  text-align: center;
  padding: 48px 0 0;
}
.ab-hiw-cta h2 {
  font-size: 24px;
  margin: 0 0 8px;
}
.ab-hiw-cta p {
  color: var(--muted);
  margin: 0 0 24px;
}
.ab-hiw-cta__actions { display: flex; justify-content: center; gap: 12px; }

/* --- Контакты --- */
.ab-contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ======= Утилиты галереи ======= */
.ab-gallery-section {
  margin-bottom: 56px;
}
.ab-gallery-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.ab-gallery-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ======= Адаптив ======= */
@media (max-width: 900px) {
  .ab-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .ab-nav, .ab-header__actions {
    display: none;
  }
  .ab-header__burger {
    display: flex;
  }

  .ab-shell {
    flex-direction: column;
  }
  .ab-shell__side {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding: 8px;
    gap: 2px;
  }
  .ab-shell__side-logo { display: none; }
  .ab-shell__nav {
    flex-direction: row;
  }
  .ab-shell__nav-item {
    white-space: nowrap;
    font-size: 12px;
    padding: 8px 10px;
  }
  .ab-shell__content {
    padding: 16px;
  }

  .ab-footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ab-steps {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .ab-wrap { padding-inline: 16px; }
}

@media (max-width: 1024px) {
  .ab-dir-grid { grid-template-columns: repeat(3, 1fr); }
  .ab-how-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .ab-features__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 900px) {
  .ab-contacts-grid { grid-template-columns: 1fr; }
  .ab-dir-content { grid-template-columns: 1fr; }
  .ab-hiw-section__content { grid-template-columns: 1fr; }
  .ab-hiw-cta__actions { flex-direction: column; align-items: center; }
}

@media (max-width: 720px) {
  .ab-dir-grid { grid-template-columns: 1fr; }
  .ab-hero__inner { grid-template-columns: 1fr; }
  .ab-hero { padding: 52px 0 48px; }
  .ab-hero__title { font-size: 34px; }
  .ab-hero__visual { display: none; }
  .ab-hero__sub { font-size: 15px; }
  .ab-hero__actions { flex-direction: column; align-items: flex-start; }
  .ab-btn--lg { width: 100%; justify-content: center; }
  .ab-how-grid { grid-template-columns: 1fr; }
  .ab-features__grid { grid-template-columns: 1fr; gap: 16px; }
  .ab-cta-section__inner { flex-direction: column; text-align: center; }
  .ab-how-section { padding: 48px 0; }
  .ab-directions-section { padding: 48px 0 32px; }
  .ab-dir-list-card { padding: 14px 16px; gap: 12px; }
  .ab-section-title { font-size: 22px; }
  .ab-page-title { font-size: 24px; }
}

/* ======= Заявка ======= */
.ab-wizard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.ab-wizard-nav__item a,
.ab-wizard-nav__item span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.ab-wizard-nav__item.is-current a,
.ab-wizard-nav__item.is-current span {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.ab-wizard-nav__item.is-done a {
  background: var(--blue-soft);
  border-color: transparent;
  color: var(--blue);
}
.ab-wizard-nav__item a:hover { text-decoration: none; }

.ab-wizard {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}
.ab-wizard__title {
  font-size: 18px;
  font-weight: 650;
  margin: 0 0 16px;
}
.ab-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
.ab-span-2 { grid-column: 1 / -1; }
.ab-form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}
.ab-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--card);
  cursor: pointer;
}
.ab-radio:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.ab-summary { display: flex; flex-direction: column; gap: 10px; }
.ab-summary--card { margin-top: 20px; }
.ab-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}
.ab-summary__row span:first-child { color: var(--muted); }
.ab-summary__row span:last-child { text-align: right; font-weight: 600; }
.ab-file-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ab-file-list a { color: var(--blue); }
.ab-request-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ab-request-kicker { color: rgba(255,255,255,0.65); font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.ab-request-note { color: var(--muted); line-height: 1.6; margin: 0 0 16px; }
.ab-request-text { white-space: pre-wrap; line-height: 1.6; margin: 0 0 20px; }

@media (max-width: 900px) {
  .ab-wizard { grid-template-columns: 1fr; }
  .ab-wizard__aside { order: -1; }
}
@media (max-width: 720px) {
  .ab-form-grid { grid-template-columns: 1fr; }
  .ab-span-2 { grid-column: auto; }
  .ab-form-actions { flex-direction: column-reverse; }
  .ab-form-actions .ab-btn { width: 100%; }
}

@media (max-width: 480px) {
  .ab-dir-card { padding: 16px 8px; }
  .ab-dir-card__flag { font-size: 28px; }
  .ab-dir-hero { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ── Админка ───────────────────────────────────────────── */
.ab-admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.ab-admin-stats .ab-stat__value {
  font-size: 24px;
}
.ab-admin-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.ab-admin-filter {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.ab-card.ab-admin-filter {
  margin-bottom: 20px;
}
.ab-admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.ab-admin-tabs .ab-badge {
  text-decoration: none;
  color: var(--ink);
}
.ab-admin-dl {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 8px 16px;
  margin: 0;
  font-size: 15px;
}
.ab-admin-dl dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.ab-admin-dl dd {
  margin: 0;
}
.ab-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ab-admin-actions form {
  margin: 0;
}
.ab-admin-list {
  display: flex;
  flex-direction: column;
}
.ab-admin-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.ab-admin-item:first-child {
  padding-top: 0;
}
.ab-admin-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.ab-admin-item .ab-admin-filter {
  margin-bottom: 0;
}
@media (max-width: 1024px) {
  .ab-admin-two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .ab-admin-dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .ab-admin-dl dd {
    margin-bottom: 10px;
  }
}
