/* ============================================================
   Красная Пресня Паркинг — общие стили для index / offer / privacy
   ============================================================ */

/* Шрифт. Manrope подключается через <link> на Google Fonts в <head> каждой страницы.
   Если внешние запросы с хостинга нежелательны — удалите эти <link> в HTML и замените
   строку --font ниже на системный стек:
   --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; */

/*
  Палитры. Переключение атрибутом data-theme на <html>:
  city      — зелёный и синий Московского городского паркинга
  red-black — исходная красно-чёрная

  Чтобы сменить гамму, попросите ассистента: «включи палитру city» или «включи палитру red-black».
*/

:root,
html[data-theme="city"] {
  --color-text: #1A2433;
  --color-bg: #F3F6F4;
  --color-white: #FFFFFF;
  --color-line: #D5E0D8;
  --color-muted: #4E5C56;
  --color-accent: #228542;
  --color-accent-hover: #1A6A34;
  --color-blue: #2558A5;
  --color-dark: #163A6E;
  --color-dark-rgb: 22, 58, 110;
  --color-footer: #122C54;
  --color-on-dark: #F3F6F4;
  --color-footer-muted: #A8B8C8;
  --color-footer-link-hover: #77A952;

  --font: "Manrope", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1120px;
  --gutter: 24px;
  --header-h: 72px;
  --radius-card: 12px;
  --radius-btn: 8px;
}

html[data-theme="red-black"] {
  --color-text: #1C1C1C;
  --color-bg: #F6F4F1;
  --color-white: #FFFFFF;
  --color-line: #E4E0DA;
  --color-muted: #5C5854;
  --color-accent: #C0392B;
  --color-accent-hover: #A93226;
  --color-blue: #C0392B;
  --color-dark: #1C1C1C;
  --color-dark-rgb: 28, 28, 28;
  --color-footer: #141414;
  --color-on-dark: #F6F4F1;
  --color-footer-muted: #A39E96;
  --color-footer-link-hover: #E07A6E;
}

/* ---------- База ---------- */

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

html {
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

/* ---------- Сетка ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 80px 0;
}

.section--light {
  background: var(--color-bg);
}

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

.section__title {
  font-size: 32px;
}

.section__lead {
  max-width: 720px;
  margin-top: 16px;
  color: var(--color-muted);
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-btn);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

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

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

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

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

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

.btn--outline:hover {
  background: var(--color-text);
  color: var(--color-white);
}

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

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line);
}

.header .container {
  max-width: none;
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
  transform: translateY(3px);
}

.logo__img {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(280px, 52vw);
}

.header__nav {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 16px;
}

.header__menu {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 18px;
  margin-left: 8px;
  list-style: none;
}

.header__menu a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

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

.header__phone {
  margin-left: auto;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.header__phone:hover {
  color: var(--color-accent);
}

.header__icon-btn,
.header__burger {
  display: none;
}

/* ---------- Первый экран ---------- */

.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-white);
  background-color: var(--color-dark);
}

.hero__map {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 70%;
  max-width: none;
  min-width: 0;
  pointer-events: none;
  user-select: none;
}

.hero__map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 36%;
}

.hero__pane {
  position: relative;
  z-index: 1;
  width: 30%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 48px 20px 48px var(--gutter);
}

.hero__content {
  width: 100%;
  max-width: none;
  padding: 0;
}

.hero__actions {
  flex-direction: column;
  align-items: stretch;
}

.hero__actions .btn {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 48px;
  padding: 14px 16px;
  white-space: normal;
  box-sizing: border-box;
}

.hero__eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.hero__title {
  margin-top: 16px;
  font-size: 48px;
  line-height: 1.1;
}

.hero__subtitle {
  margin-top: 20px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.9);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__address {
  margin-top: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Преимущества ---------- */

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  list-style: none;
}

.card {
  padding: 24px;
  background: var(--color-white);
  border-radius: var(--radius-card);
}

.card__icon {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  object-fit: contain;
}

.card__title {
  margin-top: 20px;
  font-size: 19px;
}

.card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card__head .card__title {
  margin-top: 0;
}

.benefits__grid .card__text {
  margin-top: 12px;
}

.card__price {
  margin-top: 16px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}

.card__text {
  margin-top: 8px;
  font-size: 16px;
  color: var(--color-muted);
}

/* ---------- Как это работает ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  list-style: none;
}

.step__head {
  display: flex;
  align-items: center;
}

.step__icon {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.step__title {
  margin-top: 16px;
  font-size: 19px;
}

.step__text {
  margin-top: 8px;
  font-size: 16px;
  color: var(--color-muted);
}

/* ---------- Тарифы ---------- */

.tariffs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
  list-style: none;
}

.tariff {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  background: var(--color-white);
  border: 1.5px solid var(--color-white);
  border-radius: var(--radius-card);
}

.tariff--featured {
  border-color: var(--color-accent);
}

.tariff__badge {
  position: absolute;
  top: -13px;
  left: 24px;
  padding: 4px 10px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.tariff__name {
  font-size: 19px;
}

.tariff__price {
  margin-top: 12px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}

.tariff__note {
  margin-top: 12px;
  font-size: 16px;
  color: var(--color-muted);
}

.tariffs__footnote {
  margin-top: 24px;
  font-size: 15px;
  color: var(--color-muted);
}

.tariffs__action {
  margin-top: 32px;
}

.tariff-table-wrap {
  margin-top: 40px;
  overflow-x: auto;
}

.tariff-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.tariff-table caption {
  caption-side: top;
  text-align: left;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 19px;
}

.tariff-table th,
.tariff-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-line);
}

.tariff-table th {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-muted);
}

.tariff-table tr:last-child td {
  border-bottom: 0;
}

.economy,
.conditions,
.bots {
  margin-top: 40px;
}

.economy__title,
.conditions__title,
.bots__title {
  font-size: 22px;
}

.economy ul,
.conditions ul {
  margin-top: 16px;
  padding-left: 1.15em;
  color: var(--color-muted);
}

.economy li + li,
.conditions li + li {
  margin-top: 8px;
}

.economy p {
  margin-top: 16px;
  color: var(--color-muted);
}

.economy p.economy__highlight {
  margin-top: 0;
  padding: 16px 20px;
  background: color-mix(in srgb, var(--color-accent) 12%, var(--color-white));
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-btn);
  color: var(--color-accent-hover);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.45;
}

.bots__text,
.bots__note {
  margin-top: 12px;
  color: var(--color-muted);
}

.bots__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.bots__qr {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 32px;
  list-style: none;
}

.bots__qr li {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.bots__qr a {
  display: block;
  padding: 12px;
  background: var(--color-white);
  border-radius: var(--radius-card);
}

.bots__qr img {
  width: 160px;
  height: 160px;
}

.bots__qr span {
  font-size: 15px;
  font-weight: 600;
}

.rules {
  margin-top: 32px;
  padding-left: 1.15em;
  color: var(--color-muted);
}

.rules li + li {
  margin-top: 8px;
}

.rules__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  color: var(--color-muted);
}

.rules__note-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: #C0392B;
}

.rules__note a,
.economy a,
.step__text a,
.tariffs__footnote a {
  color: var(--color-accent);
  text-decoration: none;
}

.rules__note a:hover,
.economy a:hover,
.step__text a:hover,
.tariffs__footnote a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.slider {
  position: relative;
  margin-top: 40px;
}

.slider__viewport {
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--color-line);
  aspect-ratio: 16 / 10;
}

.slider__track {
  display: flex;
  height: 100%;
  list-style: none;
  transition: transform 0.35s ease;
}

.slider__track li {
  flex: 0 0 100%;
  min-width: 0;
}

.slider__track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(var(--color-dark-rgb), 0.72);
  color: var(--color-white);
  cursor: pointer;
}

.slider__btn::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.slider__btn--prev {
  left: 16px;
}

.slider__btn--prev::before {
  transform: translateX(1.5px) rotate(135deg);
}

.slider__btn--next {
  right: 16px;
}

.slider__btn--next::before {
  transform: translateX(-1.5px) rotate(-45deg);
}

.slider__btn:hover {
  background: rgba(var(--color-dark-rgb), 0.9);
}

.slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.slider__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-line);
  cursor: pointer;
}

.slider__dot.is-active {
  background: var(--color-accent);
}

/* ---------- О паркинге ---------- */

.parking__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

.parking__grid > * {
  min-width: 0;
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 24px;
  margin: 0;
}

.facts dt {
  color: var(--color-muted);
}

.facts dd {
  margin: 0;
  font-weight: 500;
}

.parking__route {
  margin-top: 24px;
  color: var(--color-muted);
}

.parking__route p + p,
.parking__route ul {
  margin-top: 12px;
}

.parking__route ul {
  padding-left: 1.15em;
}

.parking__route li + li {
  margin-top: 8px;
}

/* Картинка с запасной плашкой. Подпись лежит под <img>; пока файла нет
   или он не загрузился (JS ставит is-missing), видна плашка #E4E0DA с подписью. */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--color-line);
  border-radius: var(--radius-card);
}

.media__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-muted);
}

.media img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media img.is-missing {
  display: none;
}

.media--map {
  aspect-ratio: 560 / 420;
}

.map__frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.media--photo {
  aspect-ratio: 4 / 3;
}

.map {
  margin: 0;
}

.map__link {
  display: block;
  text-decoration: none;
  border-radius: var(--radius-card);
}

.map__caption {
  margin-top: 12px;
  font-size: 15px;
}

.map__caption a {
  color: var(--color-accent);
  text-decoration: none;
}

.map__caption a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  list-style: none;
}

.photos figure {
  margin: 0;
}

/* ---------- Частые вопросы ---------- */

.faq {
  margin-top: 32px;
  border-top: 1px solid var(--color-line);
}

.faq__item {
  border-bottom: 1px solid var(--color-line);
}

.faq__q {
  position: relative;
  display: block;
  padding: 20px 44px 20px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker,
.faq__q::marker {
  display: none;
  content: "";
}

.faq__q::after {
  content: "";
  position: absolute;
  top: 26px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(45deg);
  transition: transform 0.15s;
}

.faq__item[open] .faq__q::after {
  top: 30px;
  transform: rotate(-135deg);
}

.faq__a {
  padding: 0 44px 20px 0;
  color: var(--color-muted);
}

.faq__a p + p {
  margin-top: 10px;
}

.faq__a a {
  color: var(--color-accent);
  text-decoration: none;
}

.faq__a a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* ---------- Заявка и контакты ---------- */

.contacts {
  background: var(--color-dark);
  color: var(--color-white);
}

.contacts__grid {
  max-width: 720px;
}

.contacts__text {
  margin-top: 16px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
}

.contacts__list {
  display: grid;
  gap: 16px;
  margin-top: 32px;
  list-style: none;
}

.contacts__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contacts__icon {
  display: block;
  width: auto;
  height: 26px;
  max-width: 28px;
  flex: none;
  margin-top: 4px;
  object-fit: contain;
  object-position: center;
}

.contacts__icon--pin {
  height: 28px;
  max-width: 24px;
}

.contacts__list span {
  display: block;
  font-size: 14px;
  color: var(--color-footer-muted);
}

.contacts__list a {
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.contacts__list a:hover {
  color: var(--color-footer-link-hover);
}

.contacts__value {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
}

.contacts__action {
  margin-top: 28px;
}

.form {
  padding: 32px;
  background: var(--color-white);
  color: var(--color-text);
  border-radius: var(--radius-card);
}

.form__field + .form__field {
  margin-top: 16px;
}

.form__label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 500;
}

.form__label small {
  font-weight: 400;
  color: var(--color-muted);
}

.form__control {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-btn);
  background: var(--color-white);
  font: inherit;
  font-size: 16px;
  color: var(--color-text);
}

.form__control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent);
}

textarea.form__control {
  min-height: 112px;
  resize: vertical;
}

select.form__control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235C5854' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form__submit {
  margin-top: 24px;
}

.form__consent {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-muted);
}

.form__consent a {
  color: inherit;
  text-decoration: underline;
}

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

.form__hint {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--color-bg);
  border-radius: var(--radius-btn);
  font-size: 14px;
  color: var(--color-muted);
}

.form__hint a {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
}

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

/* ---------- Футер ---------- */

.footer {
  padding: 48px 0 24px;
  background: var(--color-footer);
  color: var(--color-on-dark);
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--color-footer-link-hover);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 32px;
  align-items: start;
}

.footer__name {
  font-weight: 600;
}

.footer__tagline,
.footer__legal {
  margin-top: 4px;
  font-size: 15px;
  color: var(--color-footer-muted);
}

.footer__links,
.footer__contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
  list-style: none;
  font-size: 16px;
}

.footer__contacts {
  flex-wrap: nowrap;
  white-space: nowrap;
}

.footer__bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: var(--color-footer-muted);
}

/* ---------- Юридические страницы ---------- */

.doc-page {
  padding: 48px 0 80px;
}

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px;
  background: var(--color-white);
  border-radius: var(--radius-card);
}

.doc__notice {
  padding: 16px 20px;
  background: var(--color-bg);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  font-size: 15px;
  color: var(--color-muted);
}

.doc__title {
  margin-top: 0;
  font-size: 32px;
}

.doc__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 16px;
  font-size: 15px;
  color: var(--color-muted);
}

.doc__download {
  margin-top: 24px;
}

.doc h2 {
  margin-top: 40px;
  font-size: 22px;
}

.doc h3 {
  margin-top: 28px;
  font-size: 18px;
}

.doc p {
  margin-top: 16px;
}

.doc ul {
  margin-top: 12px;
  padding-left: 1.25em;
}

.doc li + li {
  margin-top: 8px;
}

.doc table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 16px;
}

.doc th,
.doc td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
}

.doc th {
  font-weight: 600;
}

.doc ol {
  margin-top: 16px;
  padding-left: 24px;
}

.doc ol li {
  margin-top: 12px;
}

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

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

.doc .contacts__action {
  margin-top: 24px;
}

.doc .contacts__action .btn {
  color: var(--color-white);
}

.doc__requisites {
  margin-top: 16px;
}

.doc__requisites p {
  margin-top: 8px;
}

/* ============================================================
   Адаптив
   ============================================================ */

@media (max-width: 1180px) {
  .header__phone {
    display: none;
  }

  .header__menu {
    gap: 14px;
    margin-left: 4px;
  }

  .header__menu a {
    font-size: 14px;
  }
}

@media (max-width: 1023px) {
  .benefits__grid,
  .steps,
  .tariffs__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 16px;
    --header-h: 64px;
  }

  .section {
    padding: 56px 0;
  }

  .section__title {
    font-size: 26px;
  }

  /* Шапка: бургер и выезжающая панель */
  .header__inner {
    gap: 8px;
  }

  .logo {
    transform: none;
  }

  .logo__img {
    height: 32px;
    max-width: min(210px, 56vw);
  }

  .header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-line);
  }

  .header__nav.is-open {
    display: flex;
  }

  .header__menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
  }

  .header__menu a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-line);
    font-size: 17px;
  }

  .header__phone {
    display: block;
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-line);
    font-size: 17px;
  }

  .header__nav .btn {
    margin-top: 16px;
    width: 100%;
  }

  .header__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border-radius: var(--radius-btn);
    color: var(--color-text);
  }

  .header__icon-btn:hover {
    color: var(--color-accent);
  }

  .header__icon-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  .header__burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--radius-btn);
    background: transparent;
    cursor: pointer;
  }

  .header__burger span {
    display: block;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
  }

  .header__burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .header__burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .header__burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Шапка юридических страниц: без бургера, ссылка «На главную» остаётся на виду */
  .header--doc .header__nav {
    position: static;
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: center;
    padding: 0;
    border: 0;
  }

  .header--doc .header__menu {
    flex-direction: row;
    margin-left: 8px;
  }

  .header--doc .header__menu a {
    padding: 0;
    border: 0;
    font-size: 16px;
  }

  .header--doc .header__phone {
    display: none;
  }

  /* Первый экран */
  .hero {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
  }

  .hero__pane {
    order: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 40px 20px 44px;
  }

  .hero__map {
    position: relative;
    order: 2;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    height: min(88vw, 480px);
    overflow: hidden;
  }

  .hero__map img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 8% 30%;
  }

  .hero__content {
    max-width: none;
    min-width: 0;
    padding: 0;
  }

  .hero__title {
    font-size: 28px;
    line-height: 1.15;
    overflow-wrap: break-word;
  }

  .hero__subtitle,
  .hero__address {
    overflow-wrap: break-word;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  /* Секции */
  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
  }

  .step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    align-items: start;
  }

  .step__head {
    grid-column: 1;
    grid-row: 1;
  }

  .step__title {
    grid-column: 2;
    margin-top: 2px;
  }

  .step__text {
    grid-column: 2;
    margin-top: 0;
  }

  .tariffs__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
  }

  .parking__grid,
  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 32px;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .facts dd {
    margin-bottom: 12px;
  }

  .photos {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }

  .slider {
    margin-top: 32px;
  }

  .bots__actions {
    flex-direction: column;
  }

  .bots__actions .btn {
    width: 100%;
  }

  .form {
    padding: 24px 20px;
  }

  .footer {
    padding-top: 40px;
  }

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

  .footer__bottom {
    margin-top: 32px;
  }

  /* Документы */
  .doc-page {
    padding: 24px 0 56px;
  }

  .doc {
    padding: 32px 20px;
  }

  .doc__title {
    font-size: 26px;
  }

  .doc h2 {
    font-size: 20px;
  }
}

@media (max-width: 560px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .benefits__grid {
    grid-template-columns: 1fr;
  }
}
