/* =========================================================
   Parking page — надстройка над site.css
   Ничего не отправляет, не хранит cookie и localStorage.
   ========================================================= */

/* ---------- Служебная полоса «сайт в разработке» ---------- */
.dev-bar {
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  padding: 8px 20px;
  letter-spacing: .02em;
}
.dev-bar b { font-weight: 700; }

/* ---------- Шапка: без залипания и без интерактива ---------- */
.header { position: relative; z-index: 10; }
.header-brand { cursor: default; pointer-events: none; }
.header-contacts { pointer-events: none; }

.main-nav-list span {
  display: block;
  padding: 8px 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: default;
}
.main-nav-list span.active { color: var(--brand); background: var(--bg); }

/* ---------- Hero ---------- */
.hero h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -.01em;
  color: var(--text);
}
.hero .hero-main > p { margin-bottom: 24px; }

/* Заголовки мини-секций внутри hero */
.hero-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 30px 0 14px;
}
.hero-subhead h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
  line-height: 1.35;
}
.hero-subhead span {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* ---------- Карточки «Почему платежи в Китай возвращают» ---------- */
.hero-errors .errors-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.hero-errors .error-card { padding: 16px; }
.hero-errors .error-card .as-h4 { margin-bottom: 6px; }
.hero-errors .error-card p { font-size: 12.5px; line-height: 1.5; }

/* ---------- Слайдер «Знакомые проблемы?» ---------- */
.pain-slider { --slide-dur: 7s; margin-top: 0; }
.pain-slider .slide { min-height: 168px; }
.pain-slider .pain-tag { margin-bottom: 10px; }
.pain-slider .slide-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}
.pain-slider .slide-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.pain-slider .slide-desc b { color: var(--text); }
.pain-slider .slide-nav { padding: 16px 28px 20px; }
.pain-slider .slide-dot { cursor: default; }
.pain-slider .slide-dot:hover:not(.active)::after { opacity: 0; transform: none; }

/* ---------- Правая колонка ---------- */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-side .hero-card { max-width: none; }
.hero-side .hero-card h3 { margin-bottom: 14px; }

/* Вкладки калькулятора и заявки */
.card-tab:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.card-tab.active { cursor: default; }
.hero-card [role="tabpanel"]:focus { outline: none; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.hero-card .calc-group:last-of-type { margin-bottom: 0; }

/* Отключённые поля — визуально «спящие», но читаемые */
.hero-card input:disabled,
.hero-card select:disabled,
.hero-card textarea:disabled {
  color: var(--text-secondary);
  -webkit-text-fill-color: var(--text-secondary);
  opacity: 1;
  cursor: not-allowed;
}
.calc-amount-wrap:has(input:disabled) { border-bottom-color: var(--border); }
.calc-input-wrap input:disabled,
.calc-input-wrap select:disabled,
.dadata-control input:disabled { border-bottom-color: var(--border); }
.calc-combo-input:disabled {
  border-bottom-color: var(--border);
  cursor: not-allowed;
  -webkit-text-fill-color: var(--text-secondary);
}
.calc-amount-wrap select:disabled { cursor: not-allowed; }

.calc-check { cursor: default; user-select: none; }
.calc-check input:disabled + .box {
  border-color: var(--border);
  background-color: transparent;
  background-image: none;
}
.calc-check input:disabled ~ span { color: var(--text-tertiary); }

.calc-submit[disabled] {
  background: var(--bg);
  color: var(--text-tertiary);
  border: 1px solid var(--border);
}

/* Пояснения «недоступно в разработке» */
.dev-hint {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-tertiary);
}
.dev-hint b { color: var(--text-secondary); font-weight: 600; }

/* ---------- Подвал ---------- */
.parking-footer {
  margin-top: 40px;
  padding: 40px 0 0;
}
.pf-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #fff;
}
.pf-brand svg { width: 30px; height: 35px; flex-shrink: 0; }
.pf-brand-name {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.2;
}
.pf-brand-slogan {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, .7);
  margin-top: 2px;
}
.pf-legal {
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .55);
  max-width: 920px;
  margin-bottom: 10px;
}
.pf-legal b { color: rgba(255, 255, 255, .8); font-weight: 600; }
.pf-contacts {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .62);
  margin-bottom: 4px;
}
.pf-contacts b { color: #fff; font-weight: 600; }
.parking-footer .footer-bottom {
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding: 16px 0 22px;
}
.currency-widget--inline {
  position: static;
  left: auto;
  bottom: auto;
  padding: 8px 14px;
  font-size: 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .8);
}
.currency-widget--inline .cw-cbrf { color: rgba(255, 255, 255, .5); }
.currency-widget--inline .cw-rate { color: #fff; }
.currency-widget--inline .cw-rate b { color: rgba(255, 255, 255, .6); }

/* ---------- Адаптив ---------- */
@media (max-width: 1500px) {
  .hero-errors .errors-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1160px) {
  /* Контакты на планшете важнее меню — не прячем их, в отличие от сайта */
  .header-contacts { display: flex; }
  .header-menu { display: none; }
}
@media (max-width: 1024px) {
  .hero-errors .errors-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-side { max-width: 480px; }
  .pain-slider .slide { min-height: 0; }
}
@media (max-width: 767px) {
  .dev-bar { font-size: 12px; padding: 7px 14px; }
  .hero h1 { font-size: 26px; }
  .hero h1 br { display: none; }
  .hero-errors .errors-grid { grid-template-columns: 1fr; }
  .hero-subhead { flex-direction: column; gap: 4px; margin-top: 26px; }
  .pain-slider .slide.active { padding: 22px 20px 6px; }
  .pain-slider .slide-nav { padding: 14px 20px 18px; }
  .pain-slider .slide-title { font-size: 16px; }
  .header-contacts .hc-phone { font-size: 13px; }
  .header-contacts .hc-mail { font-size: 11px; }
  .parking-footer { padding-top: 32px; }
}
@media (max-width: 420px) {
  .header-contacts { gap: 0; }
  .header-contacts .hc-phone { font-size: 12px; }
  .header-contacts .hc-mail { font-size: 10px; }
  .hero h1 { font-size: 24px; }
}
