/* Стиль по мотивам auto-autoservice.ru — светлый каталог + тёмный hero */
:root {
  --aa-bg: #ffffff;
  --aa-dark: #1c1c1c;
  --aa-dark-2: #252525;
  --aa-text: #222;
  --aa-muted: #666;
  --aa-line: #e8e8e8;
  --aa-accent: #f05a28;
  --aa-accent-hover: #d94e22;
  --aa-ok: #2f9e44;
  --aa-container: 1180px;
  --aa-font: "Segoe UI", Roboto, Manrope, system-ui, sans-serif;
  --aa-mobile-cta-h: 60px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 112.5%;
}

@media (max-width: 720px) {
  html {
    font-size: 106.25%;
  }
}

body.a163-auto {
  margin: 0;
  font-family: var(--aa-font);
  color: var(--aa-text);
  background: var(--aa-bg);
  line-height: 1.5;
}

/* Отступ снизу под фиксированную мобильную панель записи */
@media (max-width: 720px) {
  body.a163-auto {
    padding-bottom: var(--aa-mobile-cta-h);
  }
}

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

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  margin: 0;
}

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

.aa-container--narrow {
  width: min(820px, 100% - 32px);
  margin-inline: auto;
}

/* Header */
.aa-topbar {
  background: var(--aa-dark);
  color: #fff;
  font-size: 0.9rem;
}

.aa-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
}

.aa-topbar a {
  color: #fff;
  font-weight: 600;
}

.aa-header {
  background: var(--aa-dark-2);
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 100;
}

.aa-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0;
}

.aa-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  white-space: nowrap;
}

.aa-logo__mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: block;
  object-fit: contain;
  background: #101010;
}

.aa-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.05rem;
  margin-left: auto;
}

.aa-nav a {
  color: #f2f2f2;
  font-size: 0.92rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.aa-nav a:hover,
.aa-nav a.is-active {
  border-bottom-color: var(--aa-accent);
  color: #fff;
}

.aa-nav__cta {
  background: var(--aa-accent);
  color: #fff !important;
  padding: 0.45rem 0.9rem !important;
  border-radius: 5px;
  font-weight: 700;
  border-bottom: none !important;
}

.aa-nav__cta:hover {
  background: var(--aa-accent-hover);
  color: #fff !important;
}

.aa-burger {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid #555;
  color: #fff;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}

/* Hero banner (готовый макет) */
.aa-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.aa-hero-banner {
  position: relative;
  width: 100%;
  background: #0d0d0d;
  line-height: 0;
}

.aa-hero-banner__img {
  display: block;
  width: 100%;
  height: auto;
  /* Полное фото без обрезки — важные элементы баннера остаются в кадре. */
  object-fit: contain;
}

.aa-hero-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  line-height: normal;
  padding: 0.85rem 16px 1rem;
  background: linear-gradient(180deg, #141414 0%, #1c1c1c 100%);
  border-top: 1px solid #2a2a2a;
}

.aa-hero-banner__actions .aa-btn {
  min-width: 148px;
}

/* Пустая плашка акции не должна занимать место рядом с кнопками. */
.aa-hero-banner__actions .aa-price-tag[hidden] {
  display: none !important;
}

.aa-btn--on-dark.aa-btn--outline {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.aa-btn--on-dark.aa-btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}


@media (max-width: 560px) {
  .aa-hero-banner__actions .aa-btn {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 0;
  }
}

.aa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.35rem;
  border: none;
  border-radius: 4px;
  background: var(--aa-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.aa-btn:hover {
  background: var(--aa-accent-hover);
  color: #fff;
}

.aa-btn--outline {
  background: transparent;
  border: 2px solid var(--aa-accent);
  color: var(--aa-accent);
}

.aa-btn--outline:hover {
  background: rgba(240, 90, 40, 0.08);
  color: var(--aa-accent-hover);
}

.aa-btn--block {
  width: 100%;
}

.aa-btn--lg {
  padding: 1rem 1.6rem;
  font-size: 1.02rem;
}

/* Sections */
.aa-section {
  padding: 2.75rem 0;
}

.aa-section--alt {
  background: #f7f7f7;
}

.aa-section--dark {
  background: var(--aa-dark);
  color: #fff;
}

.aa-section--tight {
  padding: 1.75rem 0;
}

.aa-section__head {
  margin-bottom: 1.5rem;
}

.aa-section__head h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.aa-section__head h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  background: var(--aa-dark);
  margin-top: 0.45rem;
}

.aa-section--dark .aa-section__head h2::after {
  background: var(--aa-accent);
}

.aa-section__head p {
  margin: 0.65rem 0 0;
  color: var(--aa-muted);
  max-width: 40rem;
}

.aa-section--dark .aa-section__head p {
  color: #c9c9c9;
}

/* Grids */
.aa-grid-brands {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1px;
  background: var(--aa-line);
  border: 1px solid var(--aa-line);
}

.aa-brand {
  background: #fff;
  padding: 0.9rem 0.5rem;
  text-align: center;
  min-height: 92px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.aa-brand:hover {
  background: #fff8f5;
  box-shadow: inset 0 0 0 2px var(--aa-accent);
  transform: translateY(-2px);
}

.aa-brand__logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  transition: transform 0.15s ease;
}

.aa-brand:hover .aa-brand__logo {
  transform: scale(1.08);
}

.aa-brand__name {
  font-size: clamp(0.68rem, 0.9vw, 0.78rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #444;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.aa-grid-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.aa-grid-services--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .aa-grid-services--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Карточка услуги — тёмное «фото», диагональный акцент, кружок-стрелка */
.aa-service {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--aa-dark);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(20, 12, 8, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.aa-service:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(20, 12, 8, 0.24);
}

.aa-service__media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #262626 0%, #1a1a1a 60%, #101010 100%);
  overflow: hidden;
}

.aa-service:not(.aa-service--photo) .aa-service__media::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 80%;
  height: 180%;
  background: linear-gradient(135deg, var(--aa-accent) 0%, rgba(240, 90, 40, 0) 68%);
  opacity: 0.5;
  transform: rotate(18deg);
  transition: opacity 0.18s ease;
}

.aa-service:not(.aa-service--photo):hover .aa-service__media::before {
  opacity: 0.72;
}

.aa-service__icon {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  color: #fff;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

/* Готовые растровые значки (PNG с прозрачным фоном) вместо инлайн-SVG */
.aa-icon-img {
  display: inline-block;
  object-fit: contain;
}

.aa-meta-icon {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  margin-right: 0.15rem;
}

.aa-service__body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.95rem 1rem 1.1rem;
  flex: 1;
}

.aa-service__text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.aa-service__title {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.3;
  color: #fff;
}

.aa-service__desc {
  font-weight: 400;
  color: #a9a9a9;
  font-size: 0.8rem;
  line-height: 1.35;
}

.aa-service__arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--aa-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.aa-service__arrow svg {
  width: 16px;
  height: 16px;
}

.aa-service:hover .aa-service__arrow {
  background: var(--aa-accent-hover);
  transform: translateX(2px);
}

/* Карточка услуги с фото (готовое изображение вместо иконки) */
.aa-service--photo .aa-service__media {
  aspect-ratio: 88 / 100;
  background: #101010;
}

.aa-service--photo .aa-service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Фото без вшитой подписи (напр. «Замена масла») — заголовок и стрелка
   накладываются градиентом снизу, в том же стиле, что вшит в остальные фото. */
.aa-service--photo-plain .aa-service__media {
  position: relative;
}

.aa-service__photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 1rem 1.05rem 1.1rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.78) 100%);
}

.aa-service__photo-title {
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.28;
  color: #fff;
  max-width: 75%;
}

.aa-service__photo-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--aa-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.aa-service__photo-arrow svg {
  width: 16px;
  height: 16px;
}

.aa-service--photo-plain:hover .aa-service__photo-arrow {
  background: var(--aa-accent-hover);
  transform: translateX(2px);
}

.aa-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.aa-feature {
  background: #fff;
  border: 1px solid var(--aa-line);
  border-radius: 6px;
  padding: 1.35rem 1.25rem;
}

.aa-feature h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}

.aa-feature p {
  margin: 0;
  color: var(--aa-muted);
  font-size: 0.92rem;
}

.aa-prose {
  color: #333;
  font-size: 0.98rem;
}

.aa-prose p {
  margin: 0 0 1rem;
}

.aa-prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.aa-prose li {
  margin-bottom: 0.35rem;
}

.aa-locations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.aa-location {
  border: 1px solid var(--aa-line);
  border-radius: 8px;
  padding: 1.25rem;
  background: #fff;
}

.aa-location h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.aa-location address {
  font-style: normal;
  color: var(--aa-muted);
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
}

.aa-location__meta {
  font-size: 0.88rem;
  color: var(--aa-muted);
  margin-bottom: 0.75rem;
}

.aa-location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.aa-footer {
  background: var(--aa-dark);
  color: #ccc;
  padding: 2.75rem 0 1.25rem;
  font-size: 0.9rem;
}

.aa-footer a {
  color: #ddd;
}

.aa-footer a:hover {
  color: #fff;
}

.aa-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.75rem;
}

.aa-footer__col h4 {
  color: #fff;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 0.85rem;
}

.aa-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.aa-footer__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.aa-footer__logo img {
  width: 36px;
  height: 36px;
  border-radius: 7px;
}

.aa-footer__note {
  color: #8f8f8f;
  font-size: 0.85rem;
  margin-top: 0.85rem;
  line-height: 1.5;
}

.aa-footer__bottom {
  border-top: 1px solid #333;
  margin-top: 2rem;
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: #8a8a8a;
  font-size: 0.82rem;
}

@media (max-width: 960px) {
  .aa-grid-brands {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .aa-grid-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aa-features {
    grid-template-columns: 1fr;
  }

  .aa-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .aa-burger {
    display: block;
  }

  .aa-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    margin: 0;
    padding: 0.5rem 0 0.75rem;
  }

  .aa-nav.is-open {
    display: flex;
  }

  .aa-nav__cta {
    display: inline-block;
    margin-top: 0.35rem;
    text-align: center;
  }

  .aa-header__inner {
    flex-wrap: wrap;
  }

  .aa-grid-brands {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .aa-grid-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aa-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1rem;
  }
}

@media (max-width: 480px) {
  .aa-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Внутренние страницы: единый набор компонентов
   ========================================================= */

/* Хлебные крошки */
.aa-breadcrumbs {
  padding: 0.85rem 0;
  font-size: 0.85rem;
  color: var(--aa-muted);
  border-bottom: 1px solid var(--aa-line);
  background: #fafafa;
}

.aa-breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.aa-breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.aa-breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: #c8c8c8;
  margin-left: 0.35rem;
}

.aa-breadcrumbs a {
  color: var(--aa-muted);
}

.aa-breadcrumbs a:hover {
  color: var(--aa-accent);
}

.aa-breadcrumbs li:last-child {
  color: #333;
}

/* Внутренний "герой" страницы — тёмная полоса вместо большого фото */
.aa-page-hero {
  background: linear-gradient(135deg, var(--aa-dark) 0%, #2a2a2a 100%);
  color: #fff;
  padding: 2.75rem 0;
}

.aa-page-hero__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.aa-page-hero__icon {
  width: 56px;
  height: 56px;
  color: var(--aa-accent);
  flex-shrink: 0;
}

.aa-page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.2;
}

.aa-page-hero p {
  margin: 0;
  color: #d7d7d7;
  max-width: 46rem;
  font-size: 1.02rem;
}

.aa-page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: #c9c9c9;
}

.aa-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.aa-price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  background: rgba(240, 90, 40, 0.15);
  border: 1px solid rgba(240, 90, 40, 0.4);
  color: #ffd7c4;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Двухколоночный layout для страниц услуг */
.aa-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.aa-layout__side {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .aa-layout {
    grid-template-columns: 1fr;
  }

  .aa-layout__side {
    position: static;
  }
}

/* Карточка формы (боковая/встроенная) */
.aa-form-card {
  background: #fff;
  border: 1px solid var(--aa-line);
  border-radius: 10px;
  padding: 1.5rem;
}

.aa-form-card--dark {
  background: var(--aa-dark-2);
  border-color: #333;
  color: #fff;
}

.aa-form-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.aa-form-card--dark h3 {
  color: #fff;
}

.aa-form-card p {
  margin: 0 0 1.1rem;
  color: var(--aa-muted);
  font-size: 0.9rem;
}

.aa-form-card--dark p {
  color: #c9c9c9;
}

.aa-field {
  margin-bottom: 0.85rem;
}

.aa-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.aa-form-card--dark .aa-field label {
  color: #eee;
}

.aa-field input,
.aa-field select,
.aa-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: #222;
}

.aa-field input:focus,
.aa-field select:focus,
.aa-field textarea:focus {
  outline: none;
  border-color: var(--aa-accent);
  box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.15);
}

.aa-field textarea {
  min-height: 92px;
  resize: vertical;
}

.aa-form-consent {
  font-size: 0.78rem;
  color: var(--aa-muted);
  margin-top: 0.75rem;
  line-height: 1.4;
}

.aa-form-card--dark .aa-form-consent {
  color: #a9a9a9;
}

.aa-form-consent a {
  text-decoration: underline;
}

.aa-form-success {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: rgba(47, 158, 68, 0.12);
  border: 1px solid rgba(47, 158, 68, 0.35);
  color: #1f7a34;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.aa-form-card--dark .aa-form-success {
  background: rgba(47, 158, 68, 0.18);
  color: #7be395;
}

.aa-form.is-sent .aa-form-success {
  display: flex;
}

.aa-form.is-sent .aa-field,
.aa-form.is-sent button[type="submit"],
.aa-form.is-sent .aa-form-consent {
  display: none;
}

/* Списки "что входит / признаки / этапы" */
.aa-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.aa-check-list li {
  position: relative;
  padding-left: 1.65rem;
  color: #333;
}

.aa-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(240, 90, 40, 0.15);
  box-shadow: inset 0 0 0 1.5px var(--aa-accent);
}

.aa-check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.62rem;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--aa-accent);
  border-bottom: 2px solid var(--aa-accent);
  transform: rotate(-45deg);
}

.aa-symptom-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.aa-symptom-list li {
  position: relative;
  padding-left: 1.65rem;
  color: #333;
}

.aa-symptom-list li::before {
  content: "!";
  position: absolute;
  left: 0;
  top: -0.05rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff4e5;
  color: #b35c00;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Этапы работ */
.aa-steps {
  counter-reset: aa-step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.1rem;
}

.aa-steps li {
  position: relative;
  padding-left: 3.1rem;
}

.aa-steps li::before {
  counter-increment: aa-step;
  content: counter(aa-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--aa-dark);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aa-steps strong {
  display: block;
  margin-bottom: 0.2rem;
}

.aa-steps p {
  margin: 0;
  color: var(--aa-muted);
  font-size: 0.92rem;
}

/* Гарантия / доверие */
.aa-trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.aa-trust-item {
  background: #fff;
  border: 1px solid var(--aa-line);
  border-radius: 8px;
  padding: 1.15rem;
  text-align: center;
}

.aa-trust-item__icon {
  width: 30px;
  height: 30px;
  color: var(--aa-accent);
  margin: 0 auto 0.65rem;
}

.aa-trust-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.aa-trust-item span {
  font-size: 0.82rem;
  color: var(--aa-muted);
}

@media (max-width: 720px) {
  .aa-trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Таблица цен */
.aa-price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--aa-line);
  border-radius: 8px;
  overflow: hidden;
}

.aa-price-table caption {
  text-align: left;
  font-weight: 700;
  padding: 0.9rem 1.1rem;
  background: #fafafa;
  border-bottom: 1px solid var(--aa-line);
}

.aa-price-table caption a {
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.25);
  text-underline-offset: 3px;
}

.aa-price-table caption a:hover {
  color: var(--aa-accent);
  text-decoration-color: var(--aa-accent);
}

.aa-price-table th,
.aa-price-table td {
  padding: 0.8rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--aa-line);
  font-size: 0.92rem;
}

.aa-price-table th {
  background: #fafafa;
  color: var(--aa-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.aa-price-table td:last-child,
.aa-price-table th:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
}

.aa-price-table tbody tr:last-child td {
  border-bottom: none;
}

.aa-price-note {
  font-size: 0.85rem;
  color: var(--aa-muted);
  margin-top: 0.85rem;
}

.aa-price-group + .aa-price-group {
  margin-top: 1.75rem;
}

/* FAQ на <details> — без JS */
.aa-faq {
  display: grid;
  gap: 0.7rem;
}

.aa-faq details {
  background: #fff;
  border: 1px solid var(--aa-line);
  border-radius: 8px;
  padding: 0;
}

.aa-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.2rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.aa-faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--aa-accent);
  flex-shrink: 0;
}

.aa-faq details[open] summary::after {
  content: "–";
}

.aa-faq .aa-faq__answer {
  padding: 0 1.2rem 1.1rem;
  color: var(--aa-muted);
  font-size: 0.93rem;
}

/* Связанные услуги — переиспользуем aa-grid-services + доп. описание */

/* Карточки акций */
.aa-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.aa-promo-card {
  background: #fff;
  border: 1px solid var(--aa-line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.aa-promo-card__badge {
  background: var(--aa-dark);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.5rem 1rem;
}

.aa-promo-card__badge--accent {
  background: var(--aa-accent);
}

.aa-promo-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.aa-promo-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.aa-promo-card p {
  margin: 0;
  color: var(--aa-muted);
  font-size: 0.9rem;
  flex: 1;
}

.aa-promo-card__term {
  font-size: 0.78rem;
  color: #9a9a9a;
  border-top: 1px dashed var(--aa-line);
  padding-top: 0.65rem;
  margin-top: 0.35rem;
}

@media (max-width: 900px) {
  .aa-promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .aa-promo-grid {
    grid-template-columns: 1fr;
  }
}

/* Отзывы */
.aa-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.aa-review-card {
  background: #fff;
  border: 1px solid var(--aa-line);
  border-radius: 10px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.aa-review-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.aa-review-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--aa-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.aa-review-card__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.aa-review-card__meta {
  font-size: 0.78rem;
  color: var(--aa-muted);
}

.aa-review-card__stars {
  color: var(--aa-accent);
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

.aa-review-card p {
  margin: 0;
  color: #333;
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .aa-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .aa-review-grid {
    grid-template-columns: 1fr;
  }
}

/* Карта на странице контактов */
.aa-map-frame {
  width: 100%;
  height: 360px;
  border: 1px solid var(--aa-line);
  border-radius: 10px;
  overflow: hidden;
}

.aa-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Значок доверия с фото/бейджем */
.aa-badge-block {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.aa-badge-block img {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.aa-badge-block__text {
  flex: 1;
  min-width: 240px;
}

@media (max-width: 640px) {
  .aa-badge-block {
    justify-content: center;
    text-align: center;
  }

  .aa-badge-block img {
    width: 130px;
    height: 130px;
  }
}

/* Мобильная фиксированная панель записи */
.aa-mobile-cta {
  display: none;
}

@media (max-width: 720px) {
  .aa-mobile-cta {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0.5rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--aa-line);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.08);
  }

  .aa-mobile-cta .aa-btn {
    padding: 0.75rem 0.5rem;
    font-size: 0.88rem;
    width: 100%;
    font-family: var(--aa-font);
    line-height: 1.2;
  }

  .aa-mobile-cta .aa-btn::before,
  .aa-mobile-cta .aa-btn::after {
    content: none !important;
    display: none !important;
  }
}

/* 404 */
.aa-error {
  text-align: center;
  padding: 4.5rem 0;
}

.aa-error__code {
  font-size: clamp(3.5rem, 12vw, 6.5rem);
  font-weight: 800;
  color: var(--aa-dark);
  line-height: 1;
  margin: 0 0 0.5rem;
}

.aa-error h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
}

.aa-error p {
  color: var(--aa-muted);
  max-width: 34rem;
  margin: 0 auto 1.75rem;
}

.aa-error__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Заглушка-плейсхолдер для карточек/иллюстраций без фото */
.aa-placeholder-shot {
  background: repeating-linear-gradient(135deg, #f1f1f1, #f1f1f1 10px, #e9e9e9 10px, #e9e9e9 20px);
  border: 1px dashed #cfcfcf;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.82rem;
  min-height: 220px;
  text-align: center;
  padding: 1rem;
}

.aa-brand-banner {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.aa-brand-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.aa-cta-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.aa-cta-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 20, 20, 0.94) 0%, rgba(20, 20, 20, 0.8) 55%, rgba(20, 20, 20, 0.55) 100%);
  z-index: 0;
}

.aa-cta-photo > .aa-container {
  position: relative;
  z-index: 1;
}

.aa-note {
  font-size: 0.85rem;
  color: var(--aa-muted);
  background: #fafafa;
  border: 1px dashed var(--aa-line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

/* Text-only service cards used on local landing pages. */
.aa-grid-services .aa-service:not(.aa-service--photo) { color: #fff; background: #242424; }
.aa-grid-services .aa-service:not(.aa-service--photo) span { color: #e5e5e5; }
