/* =========================================================================
   Парковка Аэропорт Казань — надстройка над main.css
   Подключается после main.css, ничего в нём не переписывая.
   ====================================================================== */

:root {
  /* Синий из main.css остаётся ведущим, но hover больше не уходит в фиолетовый */
  --color-main-hover: 12, 124, 184;
  --c-accent: #ff8a1f;
  --c-ink: #1c2436;
  --c-muted: #6b7488;
  --c-line: #dfe2ea;
  --c-line-soft: #eceff5;
  --c-bg-soft: #f5f7fb;
  --c-ok: #12a05c;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(28, 36, 54, .06);
  --shadow-md: 0 8px 28px rgba(28, 36, 54, .09);
}

/* --- Типографика и общие правки --------------------------------------- */

.section-title {
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.12;
  margin-bottom: 24px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-title), var(--font-text), sans-serif;
}

.psingle-section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.section-more {
  margin-top: 28px;
  text-align: center;
}

/* Кнопки */
.btn--primary {
  background: rgb(var(--color-main));
  color: #fff;
  font-weight: 500;
}

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

.btn--ghost {
  border: 1px solid var(--c-line);
  color: var(--c-ink);
  background: #fff;
}

.btn--ghost:hover {
  border-color: rgb(var(--color-main));
  color: rgb(var(--color-main));
}

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

.btn--sm {
  padding: 11px 18px;
  font-size: 14px;
}

/* Фиолетовые стрелки из исходного шаблона */
.faq-item svg path,
.map-select--head svg path {
  stroke: currentColor;
}

.faq-item {
  color: var(--c-ink);
}

/* --- Ссылка «к содержимому»: видна только с клавиатуры ------------------ */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  background: #fff;
  border: 2px solid rgb(var(--color-main));
  border-radius: var(--radius-sm);
  color: var(--c-ink);
  text-decoration: none;
}

/* --- Хлебные крошки ---------------------------------------------------- */

.breadcrumbs {
  padding: 18px 0 6px;
  font-size: 13px;
  color: var(--c-muted);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs__item+.breadcrumbs__item::before {
  content: '/';
  margin-right: 10px;
  color: #b9becc;
}

.breadcrumbs a {
  color: var(--c-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: rgb(var(--color-main));
}

.breadcrumbs [aria-current] {
  color: var(--c-ink);
}

/* --- Шапка страницы парковки ------------------------------------------ */

.psingle-hero {
  padding: 18px 0 44px;
}

.psingle-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 36px;
  align-items: start;
}

.psingle-hero__title {
  font-size: clamp(26px, 3.8vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 700;
}

.psingle-hero__lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-muted);
  margin: 0 0 26px;
  max-width: 62ch;
}

.psingle-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.2;
  background: var(--c-bg-soft);
  color: var(--c-ink);
  border: 1px solid var(--c-line);
}

.badge--transfer {
  background: rgba(18, 160, 92, .1);
  border-color: rgba(18, 160, 92, .25);
  color: #0d7a46;
}

.badge--otaplivaemaya {
  background: rgba(255, 138, 31, .12);
  border-color: rgba(255, 138, 31, .3);
  color: #b45d05;
}

.badge--ohranyaemaya {
  background: rgba(var(--color-main), .1);
  border-color: rgba(var(--color-main), .28);
  color: rgb(var(--color-main-hover));
}

/* Плитка фактов */
.factgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0;
}

.factgrid__item {
  background: #fff;
  padding: 16px 18px;
}

.factgrid__item--wide {
  grid-column: 1 / -1;
}

.factgrid dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-muted);
  margin-bottom: 6px;
}

.factgrid dd {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.3;
}

/* Блок бронирования */
.bookbox {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 90px;
}

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

.bookbox__body {
  padding: 22px;
}

.bookbox__price {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.1;
}

.bookbox__note {
  font-size: 13px;
  color: var(--c-muted);
  margin: 8px 0 18px;
}

.bookbox__phones {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.bookbox__phone {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  color: var(--c-ink);
  font-size: 17px;
  font-weight: 600;
  padding: 10px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
}

.bookbox__phone:hover {
  border-color: rgb(var(--color-main));
  color: rgb(var(--color-main));
}

.bookbox__phone small {
  font-size: 12px;
  font-weight: 400;
  color: var(--c-muted);
}

.bookbox__meta {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  font-size: 14px;
  color: var(--c-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bookbox__meta a {
  color: rgb(var(--color-main));
}

/* --- Таблицы ----------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
}

.ptable {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 15px;
}

.ptable th,
.ptable td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--c-line-soft);
}

.ptable thead th {
  background: var(--c-bg-soft);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--c-muted);
  font-weight: 600;
}

.ptable tbody tr:last-child td {
  border-bottom: 0;
}

.ptable tbody tr:hover {
  background: #fafbfe;
}

.ptable td strong {
  font-size: 16px;
}

.ptable .is-best {
  color: var(--c-ok);
  font-weight: 700;
}

/* --- Информационные блоки --------------------------------------------- */

.infogrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.infogrid__item {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.infogrid__item h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.infogrid__item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-muted);
}

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

.uslugi__title {
  font-size: 18px;
  margin: 0 0 14px;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  line-height: 1.5;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(18, 160, 92, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5l3 3 6-6' stroke='%2312a05c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

.pricelist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.pricelist li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--c-line);
  font-size: 15px;
}

.pricelist li b {
  margin-left: auto;
  white-space: nowrap;
}

.callout {
  margin-top: 28px;
  padding: 22px 26px;
  border-radius: var(--radius-md);
  background: var(--c-bg-soft);
  border-left: 4px solid rgb(var(--color-main));
}

.callout h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.callout p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-ink);
}

.callout--warn {
  border-left-color: var(--c-accent);
}

/* --- Текстовые блоки --------------------------------------------------- */

.prose {
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-ink);
  max-width: 76ch;
}

.prose h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 34px 0 14px;
}

.prose h3 {
  font-size: 20px;
  margin: 26px 0 10px;
}

.prose p {
  margin: 0 0 14px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.prose a {
  color: rgb(var(--color-main));
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 15px;
}

.prose th,
.prose td {
  border: 1px solid var(--c-line);
  padding: 10px 14px;
  text-align: left;
}

.prose th {
  background: var(--c-bg-soft);
}

.prose>:first-child {
  margin-top: 0;
}

/* --- Как доехать + карта ----------------------------------------------- */

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

.ymap--single {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.road__coords {
  margin-top: 12px;
  font-size: 14px;
  color: var(--c-muted);
}

/* --- Сетка карточек ---------------------------------------------------- */

.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.pcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

.pcard:hover {
  border-color: #c9d0dd;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pcard__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  background: var(--c-bg-soft);
}

.pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pcard__price {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
  box-shadow: var(--shadow-sm);
}

.pcard__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.pcard__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.pcard__title a {
  color: var(--c-ink);
  text-decoration: none;
}

.pcard__title a:hover {
  color: rgb(var(--color-main));
}

.pcard__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 14px;
  color: var(--c-muted);
}

.pcard__fact {
  position: relative;
  padding-left: 20px;
}

.pcard__fact::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 15px;
  height: 15px;
  background: center/contain no-repeat;
  opacity: .75;
}

.pcard__fact--pin::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8 14.5S13 10.4 13 6.6A5 5 0 0 0 3 6.6C3 10.4 8 14.5 8 14.5Z' stroke='%236b7488' stroke-width='1.3'/%3E%3Ccircle cx='8' cy='6.5' r='1.8' stroke='%236b7488' stroke-width='1.3'/%3E%3C/svg%3E");
}

.pcard__fact--bus::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Crect x='3' y='2.5' width='10' height='9' rx='2' stroke='%236b7488' stroke-width='1.3'/%3E%3Cpath d='M3 7.5h10' stroke='%236b7488' stroke-width='1.3'/%3E%3Ccircle cx='5.5' cy='13' r='1' fill='%236b7488'/%3E%3Ccircle cx='10.5' cy='13' r='1' fill='%236b7488'/%3E%3C/svg%3E");
}

.pcard__fact--clock::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='8' r='5.6' stroke='%236b7488' stroke-width='1.3'/%3E%3Cpath d='M8 5v3.2l2 1.2' stroke='%236b7488' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.pcard__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pcard__badges .badge {
  font-size: 12px;
  padding: 4px 10px;
}

.pcard__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-muted);
}

.pcard__address {
  margin: 0;
  font-size: 13px;
  color: #9399a8;
}

.pcard__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
}

.pcard__actions .btn {
  flex: 1 1 auto;
  padding: 13px 16px;
  font-size: 15px;
  min-width: 0;
}

.pcard--compact .pcard__media {
  aspect-ratio: 16 / 9;
}

/* --- Сравнительная таблица цен ----------------------------------------- */

.compare__name {
  font-weight: 600;
}

.compare__name a {
  color: var(--c-ink);
  text-decoration: none;
}

.compare__name a:hover {
  color: rgb(var(--color-main));
}

/* --- Быстрый подбор на главной ----------------------------------------- */

.quickpick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.quickpick__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--c-ink);
  background: #fff;
  transition: .2s ease;
}

.quickpick__item:hover {
  border-color: rgb(var(--color-main));
  box-shadow: var(--shadow-sm);
  color: var(--c-ink);
}

.quickpick__item b {
  font-size: 17px;
}

.quickpick__item span {
  font-size: 14px;
  color: var(--c-muted);
}

/* --- Карта на главной --------------------------------------------------- */

#ymap {
  min-height: 420px;
}

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

@media (max-width: 1100px) {
  .psingle-hero__grid {
    grid-template-columns: 1fr;
  }

  .bookbox {
    position: static;
  }

  .bookbox__img {
    height: 240px;
  }
}

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

  .psingle-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

@media (max-width: 600px) {
  .factgrid {
    grid-template-columns: 1fr 1fr;
  }

  .psingle-hero {
    padding-bottom: 28px;
  }

  .pcard__actions .btn {
    flex: 1 1 100%;
  }

  .ymap--single {
    height: 300px;
  }
}

/* --- Фикс: на мобильных шапка фиксированная и выше отступа body ---------
   В main.css отступ 50px, а реальная высота шапки ~90px — верх страницы
   уходил под логотип. */

@media (max-width: 992px) {
  body {
    padding-top: 92px;
  }

  .breadcrumbs {
    padding-top: 12px;
  }
}

/* Якорные переходы не должны прятать заголовок под шапкой */
[id] {
  scroll-margin-top: 100px;
}

/* --- Таблицы внутри текстовых страниц прокручиваются на узком экране --- */

.prose table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

@media (min-width: 760px) {
  .prose table {
    display: table;
    white-space: normal;
  }
}

/* --- Мелочи каталога ---------------------------------------------------- */

.catalog-notfound {
  padding: 32px;
  border: 1px dashed var(--c-line);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--c-muted);
}

.facetwp-template {
  min-height: 120px;
}

/* --- Списки результатов поиска и архивов -------------------------------- */

.searchlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.searchlist li {
  padding: 18px 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
}

.searchlist li a {
  font-size: 19px;
  font-weight: 600;
  color: var(--c-ink);
  text-decoration: none;
}

.searchlist li a:hover {
  color: rgb(var(--color-main));
}

.searchlist li p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-muted);
}

.post-cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: 26px;
}

/* =========================================================================
   ШАПКА
   В main.css поиск был жёстко 400px, меню и кнопка не сжимались — при шести
   пунктах строка не влезала в контейнер и кнопка уезжала за край.
   Здесь: гибкая раскладка (логотип и кнопка не сжимаются, меню в одну
   строку, поиск отдаёт место) плюс более плотная визуальная подача.
   ====================================================================== */

.header {
  padding: 12px 0;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, padding .2s ease;
}

.header.sticky {
  border-bottom-color: var(--c-line);
  box-shadow: 0 6px 24px rgba(28, 36, 54, .07);
}

@media (min-width: 993px) {

  .header__wrap {
    gap: 28px;
    flex-wrap: nowrap;
  }

  .header__logo {
    flex: 0 0 auto;
    display: block;
  }

  .header__logo img {
    max-width: 200px;
    height: 50px;
  }

  .header.sticky .header__logo img {
    height: 42px;
  }

  .header-mobile {
    margin-left: 0;
    gap: 20px;
    justify-content: flex-end;
    min-width: 0;
    flex: 1 1 auto;
  }

  /* ---- Меню -------------------------------------------------------- */

  .header__nav {
    flex: 0 1 auto;
    min-width: 0;
    margin-right: auto;
  }

  .header .menu {
    flex-wrap: nowrap;
    align-items: center;
    gap: 2px;
  }

  .header .menu .menu-item a {
    position: relative;
    font-size: 15px;
    font-weight: 500;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--c-ink);
    white-space: nowrap;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease;
  }

  .header .menu .menu-item a::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: rgb(var(--color-main));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .18s ease;
  }

  .header .menu .menu-item a:hover {
    text-decoration: none;
    color: rgb(var(--color-main));
    background: var(--c-bg-soft);
  }

  .header .menu .menu-item a:hover::after {
    transform: scaleX(1);
  }

  .header .menu .current-menu-item > a,
  .header .menu .current_page_item > a,
  .header .menu .current-menu-ancestor > a {
    color: rgb(var(--color-main));
  }

  .header .menu .current-menu-item > a::after,
  .header .menu .current_page_item > a::after,
  .header .menu .current-menu-ancestor > a::after {
    transform: scaleX(1);
  }

  /* ---- Поиск ------------------------------------------------------- */

  .header__search {
    flex: 0 1 240px;
    min-width: 0;
    margin: 0;
  }
}

.hsearch {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  background: var(--c-bg-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 6px 4px 4px;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.hsearch:hover {
  background: #eef1f7;
}

.hsearch:focus-within {
  background: #fff;
  border-color: rgb(var(--color-main));
  box-shadow: 0 0 0 3px rgba(var(--color-main), .15);
}

.hsearch__submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--c-muted);
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease;
}

.hsearch__submit:hover {
  color: rgb(var(--color-main));
  background: rgba(var(--color-main), .1);
}

.hsearch__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--c-ink);
  padding: 8px 8px 8px 0;
  appearance: none;
  -webkit-appearance: none;
}

.hsearch__input::placeholder {
  color: #9aa2b3;
}

.hsearch__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

/* ---- Кнопка «Добавить парковку» ------------------------------------ */

.header--btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 12px 20px;
  border: 1px solid rgb(var(--color-main));
  border-radius: 999px;
  background: #fff;
  color: rgb(var(--color-main));
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.header--btn:hover {
  background: rgb(var(--color-main));
  color: #fff;
  box-shadow: 0 6px 18px rgba(var(--color-main), .28);
}

.header--btn svg {
  flex: 0 0 auto;
}

.header.sticky .header--btn {
  padding: 10px 18px;
}

/* ---- Средние экраны: уплотняем логотип, меню и кнопку ---------------- */

@media (min-width: 993px) and (max-width: 1365px) {
  .header__wrap {
    gap: 20px;
  }

  .header-mobile {
    gap: 16px;
  }

  .header__logo img {
    max-width: 176px;
    height: 44px;
  }

  .header .menu .menu-item a {
    font-size: 14px;
    padding: 9px 9px;
  }

  .header--btn {
    padding: 11px 16px;
    font-size: 14px;
  }

  .header__search {
    flex-basis: 220px;
  }
}

/* Ниже 1200 контейнер сужается до 960 и поиск уже не помещается.
   Он продублирован в подвале, а на страницах есть навигация по разделам. */
@media (min-width: 993px) and (max-width: 1199px) {
  .header__search {
    display: none;
  }
}

/* ---- Мобильная шапка и выпадающее меню ------------------------------ */

@media (max-width: 992px) {
  .header {
    padding: 14px 0;
    /* Шапка зафиксирована и раскрывается в меню — фон должен быть плотным,
       иначе контент страницы просвечивает сквозь открытую панель */
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: var(--c-line);
    box-shadow: 0 4px 16px rgba(28, 36, 54, .06);
  }

  .header-mobile {
    gap: 0;
  }

  /* Меню открывается через slideToggle (display:block), поэтому здесь
     работают отступы, а не gap и order */
  .header__search {
    margin-bottom: 18px;
  }

  .header__nav {
    margin-bottom: 18px;
  }

  .hsearch {
    padding: 5px 8px 5px 5px;
  }

  .hsearch__input {
    font-size: 16px;
    /* 16px не даёт iOS зумить страницу при фокусе */
  }

  .header .menu .menu-item a {
    font-size: 17px;
    padding: 12px 0;
    display: block;
    color: var(--c-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--c-line-soft);
  }

  .header .menu .current-menu-item > a,
  .header .menu .current_page_item > a {
    color: rgb(var(--color-main));
    font-weight: 600;
  }

  .header--btn {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    font-size: 16px;
  }
}

/* =========================================================================
   МОДАЛЬНОЕ ОКНО «ДОБАВИТЬ ПАРКОВКУ»
   Форма для владельцев стоянок: полей больше, чем при брони места,
   поэтому окно шире и часть полей стоит парами.
   ====================================================================== */

.wrap-modal--wide {
  max-width: 660px;
}

.modal-note {
  margin: -6px 0 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-muted);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid--2 {
  grid-template-columns: 1fr 1fr;
}

.form-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 620px) {

  .form-grid--2,
  .form-grid--3 {
    grid-template-columns: 1fr;
  }
}

/* Разделитель с подписью */
.form-sep {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--c-muted);
}

.form-sep::before,
.form-sep::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: var(--c-line);
}

.form-sep span {
  flex: 0 0 auto;
}

/* Тип парковки — чипсы вместо стандартных чекбоксов */
.form-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form-checks .wpcf7-list-item {
  margin: 0;
}

.form-checks .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.2;
  color: var(--c-ink);
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.form-checks .wpcf7-list-item label:hover {
  border-color: #c2cad8;
  background: var(--c-bg-soft);
}

.form-checks input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid #c2cad8;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}

.form-checks input[type="checkbox"]:checked {
  border-color: rgb(var(--color-main));
  background: rgb(var(--color-main)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.4l3 3 6-6' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
}

.form-checks .wpcf7-list-item label:has(input:checked) {
  border-color: rgb(var(--color-main));
  background: rgba(var(--color-main), .07);
  color: rgb(var(--color-main-hover));
}

.modal-form--add textarea.form-control {
  max-height: none;
  min-height: 84px;
  resize: vertical;
}

.modal-form--add .form-submit {
  padding: 16px;
  font-size: 16px;
}
