/**
 * Стили лендинга автосервиса (макет Figma «Сайт Автосервис», фаза 5).
 * Mobile-first, брейкпоинты согласованы с design-tokens.
 */

/* -------------------------------------------------------------------------
   База
   ------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: var(--font-weight-body);
  line-height: var(--line-height-body);
  color: var(--color-text);
  background: var(--color-bg-page);
  margin: 0;
}

.layout-container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--layout-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: calc(var(--space-unit) * 2);
  padding-right: calc(var(--space-unit) * 2);
}

.layout-container--narrow {
  max-width: 640px;
  text-align: center;
}

.layout-container--split {
  display: grid;
  gap: calc(var(--space-unit) * 4);
}

@media (min-width: 1024px) {
  .layout-container--split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  /* Карта в «О нас»: правая колонка по высоте как текст слева — iframe на всю белую карточку */
  .section--about .layout-container--split {
    align-items: stretch;
  }
}

/* -------------------------------------------------------------------------
   Кнопки
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-display);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-display);
  line-height: var(--line-height-tight);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-surface);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #5e0117;
  color: var(--color-surface);
}

.btn--outline {
  background: transparent;
  color: var(--color-surface);
  border-color: var(--color-surface);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-input);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--compact {
  padding: 0.4rem 0.9rem;
  font-size: 18px;
}

.btn--large {
  padding: 0.85rem 1.75rem;
  font-size: var(--font-size-ui);
}

/* -------------------------------------------------------------------------
   Внутренние страницы (не лендинг) — шапка как на главной: чёрный фон, навигация как .site-nav
   ------------------------------------------------------------------------- */
.app-header {
  background-color: #000000;
  border-bottom: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.app-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.app-header__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.app-header__brand-img {
  display: block;
  width: auto;
  height: auto;
  max-height: clamp(36px, 6vw, 48px);
  max-width: min(200px, 50vw);
  object-fit: contain;
}

.app-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.app-header__nav a {
  font-family: var(--font-body);
  font-size: var(--font-size-header-nav);
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.app-header__nav a:hover,
.app-header__nav a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.app-header__user {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.app-header .btn--ghost {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.65);
}

.app-header .btn--ghost:hover,
.app-header .btn--ghost:focus-visible {
  border-color: #ffffff;
  color: #ffffff;
}

.app-header__logout {
  display: inline;
  margin: 0;
}

.app-header__burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.app-header__burger:focus-visible {
  outline: 2px solid var(--color-surface);
  outline-offset: 2px;
}

.app-header__burger-lines {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 -6px 0 #ffffff, 0 6px 0 #ffffff;
}

@media (min-width: 1024px) {
  .app-header__burger {
    display: none !important;
  }

  .app-header__panel {
    display: contents;
  }
}

@media (max-width: 1023px) {
  .app-header__burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .app-header__inner {
    position: relative;
    flex-wrap: nowrap;
  }

  .app-header__panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 90;
    padding: 0.75rem 1rem 1rem;
    background: var(--color-header-bar);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
  }

  .app-header__panel.is-open {
    display: block;
  }

  .app-header__nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .app-header__nav a {
    padding: 0.35rem 0;
  }
}

.main-content {
  min-height: 50vh;
}

.messages {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.messages-wrap {
  padding-top: 0.75rem;
}

.messages__item {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-button);
  border: 1px solid transparent;
}

.messages__item--success {
  background: #e8f5e9;
  color: #1b5e20;
  border-color: #c8e6c9;
}

.messages__item--error {
  background: #ffebee;
  color: #b71c1c;
  border-color: #ffcdd2;
}

.messages__item--warning {
  background: #fff8e1;
  color: #e65100;
  border-color: #ffe082;
}

.messages__item--info {
  background: #e3f2fd;
  color: #0d47a1;
  border-color: #90caf9;
}

.messages__item--debug {
  background: #f5f5f5;
  color: #424242;
  border-color: #e0e0e0;
}

/* -------------------------------------------------------------------------
   Шапка лендинга (чёрный фон, логотип слева, три белые ссылки справа)
   ------------------------------------------------------------------------- */
.page-landing .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/**
 * Фон задаётся на самом header, без привязки к .page-landing — иначе при сбое
 * класса на body шапка становится прозрачной и виден серый фон страницы.
 */
header.site-header--dark {
  background-color: #000000;
  width: 100%;
  box-sizing: border-box;
  border-bottom: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.site-header__bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

@media (min-width: 1024px) {
  .site-header--dark .site-header__bar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.site-header__logo-img {
  display: block;
  width: auto;
  height: auto;
  max-height: clamp(40px, 8vw, 52px);
  max-width: min(220px, 55vw);
  object-fit: contain;
}

.site-header__logo-img--brand {
  max-height: clamp(40px, 7vw, 52px);
  width: auto;
  height: auto;
  max-width: min(260px, 72vw);
  object-fit: contain;
}

.site-header__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, var(--font-size-nav));
  font-weight: var(--font-weight-display);
  color: var(--color-accent);
}

.site-header__burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  margin-left: auto;
  align-items: center;
  justify-content: center;
}

.site-header--dark .site-header__burger:focus-visible {
  outline: 2px solid var(--color-surface);
  outline-offset: 2px;
}

.site-header__burger-lines {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-surface);
  box-shadow: 0 -7px 0 var(--color-surface), 0 7px 0 var(--color-surface);
}

/**
 * Правая зона: пункты меню и кнопки в одной группе у правого края.
 */
.site-header__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem 1.75rem;
}

.site-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.site-header__user {
  font-size: 14px;
  color: var(--color-text-muted);
}

.site-header--dark .site-header__user {
  color: rgba(255, 255, 255, 0.82);
}

/**
 * Кнопка-ghost на тёмной шапке: светлая обводка и текст.
 */
.btn--on-dark {
  color: var(--color-surface);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn--on-dark:hover,
.btn--on-dark:focus-visible {
  border-color: var(--color-surface);
  color: var(--color-surface);
}

.site-header__logout {
  margin: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: var(--font-size-header-nav);
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.site-header--dark .site-nav a:hover,
.site-header--dark .site-nav a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 1023px) {
  .site-header__burger {
    display: inline-flex;
  }

  .site-header__end {
    display: none;
    flex-direction: column;
    align-items: stretch;
    flex-basis: 100%;
    order: 3;
    gap: 1rem;
    padding: 0.75rem 0 1rem;
    margin-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--color-header-bar);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  }

  .site-header__end.is-open {
    display: flex;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    white-space: normal;
    font-size: 17px;
  }

  .site-header__actions {
    justify-content: flex-start;
  }
}

@media (min-width: 1024px) {
  .site-header__burger {
    display: none !important;
  }

  .site-header__end {
    flex: 0 1 auto;
    min-width: 0;
  }

  /**
   * Референс: в одной строке только логотип и три ссылки. Кнопки — в бургере на мобильных.
   */
  .site-header__actions {
    display: none;
  }
}

/* -------------------------------------------------------------------------
   Герой (макет Figma: 1440×404, фото + слой #B2B2B2 @ 46%)
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  /* Высота полосы как у макета: min 220px, max 404px, между — пропорция 404/1440 */
  min-height: clamp(220px, calc(100vw * 404 / 1440), 404px);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-color: #3a3a3a;
  background-image: url("../assets/img/hero-banner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-hero-overlay);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--space-unit) * 6);
  padding-bottom: calc(var(--space-unit) * 6);
  max-width: 720px;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-display);
  color: var(--color-surface);
  opacity: 0.95;
  margin: 0 0 0.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, var(--font-size-heading-lg));
  font-weight: var(--font-weight-display);
  line-height: var(--line-height-tight);
  color: var(--color-surface);
  margin: 0 0 1rem;
}

.hero__lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 1.5rem;
  max-width: 42ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* -------------------------------------------------------------------------
   Секции
   ------------------------------------------------------------------------- */
.section {
  padding-top: calc(var(--space-unit) * 6);
  padding-bottom: calc(var(--space-unit) * 6);
}

.section--muted {
  background: var(--color-surface-muted);
}

.section--cta {
  background: var(--color-surface);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, var(--font-size-heading-md));
  font-weight: var(--font-weight-display);
  line-height: var(--line-height-tight);
  margin: 0 0 0.5rem;
}

.section__subtitle,
.section__lead {
  color: var(--color-text-muted);
  margin: 0 0 2rem;
  font-size: 1.1rem;
}

.section__empty {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.section__note {
  margin-top: 1rem;
  color: var(--color-text-muted);
}

.section__note a {
  color: var(--color-accent);
}

/* -------------------------------------------------------------------------
   Услуги — сетка карточек
   ------------------------------------------------------------------------- */
.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: calc(var(--space-unit) * 3);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-service-card);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.service-card__media img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card__placeholder {
  height: 200px;
  background: linear-gradient(
    145deg,
    var(--color-icon-bg) 0%,
    var(--color-surface-muted) 100%
  );
}

.service-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card__name {
  font-family: var(--font-display);
  font-size: var(--font-size-ui);
  font-weight: var(--font-weight-display);
  margin: 0 0 0.5rem;
  line-height: var(--line-height-tight);
}

.service-card__desc {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  flex: 1;
  font-size: 1rem;
}

.service-card__price {
  font-family: var(--font-display);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-display);
  color: var(--color-accent);
  margin: 0;
}

.service-card__price--muted {
  color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------
   Услуги — категории (кнопки-картинки) и аккордеон списка
   ------------------------------------------------------------------------- */
.landing-services {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  --landing-services-border: #3b82c4;
  --landing-services-pill-plus: #6b0f1a;
  /* Макет Figma: карточка категории 367×342, скругление 30px; сетка 3×2 (два ряда) */
  --landing-service-tile-w: 367px;
  --landing-service-tile-h: 342px;
  --landing-service-tile-radius: 30px;
  background: var(--color-surface-muted);
  border: 2px solid var(--landing-services-border);
  border-radius: var(--radius-form-panel);
  padding: calc(var(--space-unit) * 3);
}

@media (min-width: 768px) {
  .landing-services {
    padding: calc(var(--space-unit) * 4);
  }
}

.landing-services__heading {
  font-family: var(--font-body);
  font-size: clamp(28px, 4vw, var(--font-size-heading-sm));
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 calc(var(--space-unit) * 3);
  line-height: var(--line-height-tight);
}

.landing-services__grid {
  display: grid;
  gap: calc(var(--space-unit) * 2);
  grid-template-columns: 1fr;
  justify-items: center;
  margin-bottom: calc(var(--space-unit) * 3);
  min-width: 0;
  width: 100%;
}

/* Планшет: 2 колонки */
@media (min-width: 640px) {
  .landing-services__grid {
    grid-template-columns: repeat(2, minmax(0, var(--landing-service-tile-w)));
    justify-content: center;
  }
}

/* Десктоп: три колонки — шесть карточек в два ряда (3×2) */
@media (min-width: 1100px) {
  .landing-services__grid {
    grid-template-columns: repeat(3, minmax(0, var(--landing-service-tile-w)));
    justify-content: center;
    column-gap: calc(var(--space-unit) * 3);
    row-gap: calc(var(--space-unit) * 3);
  }
}

.landing-services__tile {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: min(100%, var(--landing-service-tile-w));
  aspect-ratio: 367 / 342;
  padding: 0;
  border: none;
  border-radius: var(--landing-service-tile-radius);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  background: #2a2a2a;
  transition: box-shadow 0.2s, transform 0.15s;
}

.landing-services__tile:hover,
.landing-services__tile:focus-visible {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
  outline: none;
}

.landing-services__tile:focus-visible {
  box-shadow: 0 0 0 3px rgba(59, 130, 196, 0.65);
}

.landing-services__tile.is-selected {
  box-shadow: 0 0 0 3px var(--color-accent);
}

.landing-services__tile-visual {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.landing-services__tile-img,
.landing-services__tile-fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-services__tile-fallback {
  background: linear-gradient(
    135deg,
    var(--color-icon-bg) 0%,
    #4a4a4a 50%,
    var(--color-surface-muted) 100%
  );
}

.landing-services__tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.65) 100%
  );
  pointer-events: none;
}

.landing-services__tile-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1rem 1rem;
  font-family: var(--font-body);
  font-size: clamp(15px, 2.5vw, 18px);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  z-index: 1;
}

.landing-services__panel {
  margin-top: calc(var(--space-unit) * 2);
}

.landing-services__panel[hidden] {
  display: none !important;
}

.landing-services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.landing-services__acc-row {
  margin: 0;
}

.landing-services__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.65rem 1rem;
}

@media (max-width: 639px) {
  .landing-services__row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .landing-services__price-col,
  .landing-services__check-col {
    justify-self: start;
  }
}

.landing-services__pill--main {
  min-width: 0;
}

.landing-services__price-col {
  font-family: var(--font-body);
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.landing-services__price--muted {
  color: var(--color-text-muted);
  font-weight: 600;
}

.landing-services__check-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-services__check-label {
  display: inline-flex;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
}

.landing-services__check-label:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.55;
}

.landing-services__check {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--color-accent);
  cursor: inherit;
}

.landing-services__check:disabled {
  cursor: not-allowed;
}

.landing-services__list--extra[hidden] {
  display: none !important;
}

.landing-services__more-hint {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.landing-services__more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.75rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-accent);
  background: transparent;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.landing-services__more-btn:hover,
.landing-services__more-btn:focus-visible {
  background: rgba(128, 1, 31, 0.08);
  outline: none;
}

.landing-services__more-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(128, 1, 31, 0.35);
}

.landing-services__total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.landing-services__total--grand {
  margin-top: calc(var(--space-unit) * 2);
}

.landing-services__total-label {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.landing-services__total-value {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-accent);
}

.landing-services__pill {
  background: var(--color-surface);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.landing-services__acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 0.85rem 1rem 0.85rem 1.25rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  border-radius: 999px;
}

.landing-services__acc-trigger:hover,
.landing-services__acc-trigger:focus-visible {
  background: rgba(0, 0, 0, 0.03);
  outline: none;
}

.landing-services__acc-trigger:focus-visible {
  box-shadow: inset 0 0 0 2px var(--landing-services-border);
}

.landing-services__acc-title {
  font-family: var(--font-body);
  font-size: clamp(16px, 2.2vw, 18px);
  font-weight: 700;
  color: var(--color-text);
  flex: 1;
}

.landing-services__acc-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--landing-services-pill-plus);
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.2s ease;
}

.landing-services__acc-row.is-open .landing-services__acc-icon {
  transform: rotate(45deg);
}

.landing-services__acc-body {
  padding: 0.5rem 1.25rem 0.75rem 1.5rem;
  margin-top: 0.35rem;
}

.landing-services__acc-body[hidden] {
  display: none !important;
}

.landing-services__acc-text {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
}

.landing-services__panel-empty {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.landing-services__panel-empty-wrap {
  list-style: none;
}

/* -------------------------------------------------------------------------
   Карта — плейсхолдер
   ------------------------------------------------------------------------- */
.map-placeholder {
  border-radius: 24px;
  background: var(--color-surface);
  padding: calc(var(--space-unit) * 4);
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px dashed rgba(128, 1, 31, 0.25);
}

.map-placeholder__title {
  font-family: var(--font-display);
  font-size: var(--font-size-heading-sm);
  margin: 0;
}

.map-placeholder__note {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Встраиваемая карта (Яндекс iframe), см. docs/roadmap_iframe.md */
/* Grid: iframe absolute не даёт высоту во flex — сетка растягивает ячейку на весь блок */
.map-placeholder.map-embed {
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  gap: 0;
  padding: 0;
  border-style: solid;
  border-width: 1px;
  border-color: rgba(128, 1, 31, 0.18);
  min-height: 320px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(280px, 1fr);
}

@media (min-width: 1024px) {
  .section--about .map-placeholder.map-embed {
    min-height: 0;
    height: 100%;
    align-self: stretch;
  }
}

.map-embed__frame {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: var(--color-surface);
}

.map-embed__iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
}

/* -------------------------------------------------------------------------
   Контакты
   ------------------------------------------------------------------------- */
.contacts-block__label {
  font-family: var(--font-display);
  font-size: var(--font-size-xs);
  margin: 0 0 0.5rem;
}

.contacts-block__phones {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.contacts-block__phones a {
  font-family: var(--font-body);
  font-size: clamp(28px, 5vw, var(--font-size-heading-sm));
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}

.contacts-block__phones a:hover {
  color: var(--color-accent);
}

.contacts-block__phones li + li {
  margin-top: 0.35rem;
}

.contacts-block__address {
  color: var(--color-text-muted);
  margin: 0;
}

/* -------------------------------------------------------------------------
   Подвал
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-footer);
  color: rgba(255, 255, 255, 0.85);
  padding: calc(var(--space-unit) * 4) 0 calc(var(--space-unit) * 2);
  margin-top: auto;
}

.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.site-footer__logo-img {
  display: block;
  max-height: 44px;
  width: auto;
  max-width: min(220px, 85vw);
  object-fit: contain;
}

.site-footer__copy {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin: 2rem 0 0;
}

/* -------------------------------------------------------------------------
   Формы (внутренние страницы)
   ------------------------------------------------------------------------- */
form p {
  margin-bottom: 1rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
textarea,
select {
  max-width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border-input);
  border-radius: 8px;
  font: inherit;
}

.field-errors {
  display: block;
  color: #b71c1c;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.form-errors {
  color: #b71c1c;
}

/* -------------------------------------------------------------------------
   Страницы форм (фаза 6)
   ------------------------------------------------------------------------- */
.form-page {
  padding-top: calc(var(--space-unit) * 2);
  padding-bottom: calc(var(--space-unit) * 4);
}

.form-page__head {
  margin-bottom: 1.5rem;
}

.form-page__title {
  font-family: var(--font-display);
  font-size: var(--font-size-heading-md);
  font-weight: var(--font-weight-display);
  margin: 0 0 0.5rem;
  line-height: var(--line-height-tight);
}

.form-page__lead {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.form-page__footer {
  margin-top: 1.5rem;
}

.form-page__footer a {
  color: var(--color-accent);
  font-weight: 500;
}

.form-card {
  background: var(--color-surface);
  border-radius: var(--radius-form-panel);
  padding: 1.5rem 1.25rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.form-row {
  margin-bottom: 1.1rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-row--error input,
.form-row--error textarea,
.form-row--error select {
  border-color: #c62828;
  box-shadow: 0 0 0 1px rgba(198, 40, 40, 0.2);
}

.form-help {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.form-nonfield {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-button);
  margin-bottom: 1rem;
}

.form-nonfield--error {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ffcdd2;
}

.form-nonfield p {
  margin: 0;
}

.form-nonfield p + p {
  margin-top: 0.35rem;
}

.form-actions {
  margin-top: 1.25rem;
}

/* Юридические страницы-заглушки (фаза 7) */
.legal-doc {
  max-width: 720px;
}

.legal-doc__badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e65100;
  background: #fff8e1;
  border-radius: 6px;
}

.legal-doc__body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 1.5rem 0 0.5rem;
}

.legal-doc__body p {
  margin: 0 0 0.75rem;
  line-height: 1.65;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.site-footer__legal a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
}

.site-footer__legal a:hover {
  color: #fff;
}

.site-footer__sep {
  opacity: 0.5;
}
