/* ===== Расчёт стоимости аренды (макет arenda / arenda-mobile) ===== */
.ar { position: relative; margin-top: -56px; padding-bottom: 104px; }
.ar-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.ar-form, .ar-result { box-sizing: border-box; min-width: 0; }
.ar-form { flex: 999 1 560px; min-width: 0; padding: 40px 44px; }

.ar-step { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.ar-step b { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; letter-spacing: 0; }
.ar-step-2 { margin-top: 40px; }

.ar-cities { display: flex; flex-wrap: wrap; gap: 10px; }
.ar-city { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid #C5CFDC; background: #fff; color: var(--text); font: 800 15px Manrope, sans-serif; cursor: pointer; }
.ar-city:hover { border-color: var(--text); }
.ar-city.on { background: var(--navy); border-color: var(--navy); color: #fff; }

.ar-opts { display: grid; gap: 10px; }
.ar-opts[hidden] { display: none; }
.ar-opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 0 22px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; font: 700 16px Manrope, sans-serif; color: var(--text); cursor: pointer; text-align: left; }
.ar-opt:hover { border-color: var(--navy); }
.ar-opt.on { border-color: var(--accent); background: var(--accent-bg); }
.ar-opt .dot { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid #C5CFDC; box-sizing: border-box; }
.ar-opt.on .dot { border: 7px solid var(--accent); }
.ar-opt-name { flex: 1; min-width: 0; }
.ar-opt-val { display: flex; align-items: center; gap: 24px; }
.ar-opt .sq { font-family: Unbounded, sans-serif; font-weight: 700; font-size: 18px; white-space: nowrap; }
.ar-opt .pr { min-width: 110px; text-align: right; font-size: 14px; color: var(--muted); white-space: nowrap; }

.ar-result { flex: 1 1 380px; min-width: 0; container-type: inline-size; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 28px; padding: 40px 44px; border-radius: 24px; background: var(--navy); color: #fff; }
.ar-label { font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-light); }
.ar-price { margin-top: 14px; display: flex; align-items: baseline; gap: 12px; font-family: Unbounded, sans-serif; font-weight: 800; font-size: 56px; font-size: min(56px, 14cqi); line-height: 1; white-space: nowrap; flex-wrap: wrap; row-gap: 6px; }
.ar-rub { font-weight: 500; font-size: 22px; color: var(--on-dark); }
.ar-note { margin-top: 10px; font-size: 15px; color: var(--on-dark-muted); }
.ar-scheme { width: 100%; height: 220px; }
.ar-scheme rect { transition: all .3s ease; }
.ar-cta { align-self: flex-start; }
.ar-cta-m { display: none; }

.ar-map { margin-top: 24px; height: 400px; border-radius: 24px; overflow: hidden; background: #E7ECF3; }
.ar-map iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (prefers-reduced-motion: reduce) { .ar-scheme rect { transition: none; } }
@media (max-width: 1239px) { .ar-price { font-size: 44px; font-size: min(44px, 14cqi); } }

/* Мобильная: сначала итог, потом выбор */
@media (max-width: 767px) {
  .ar { padding-bottom: 56px; }
  .ar-row { flex-direction: column; align-items: stretch; gap: 20px; }
  .ar-result { order: -1; flex: none; flex-direction: row; align-items: center; gap: 16px; padding: 22px 20px; border-radius: 22px; background: var(--navy-deep); border: 1px solid var(--line-dark); box-shadow: 0 24px 48px -28px rgba(14,34,64,.6); }
  .ar-result-txt { flex: 1; min-width: 0; }
  .ar-label { font-size: 11px; letter-spacing: 1.6px; }
  .ar-price { margin-top: 10px; gap: 8px; font-size: 34px; }
  .ar-rub { font-size: 16px; }
  .ar-note { margin-top: 8px; font-size: 13px; }
  .ar-scheme { flex: 0 0 88px; width: 88px; height: 88px; }
  .ar-scheme text { display: none; }
  .ar-cta { display: none; }

  .ar-form { flex: none; padding: 22px 16px; }
  .ar-step { gap: 12px; margin-bottom: 14px; font-size: 12px; letter-spacing: 1.4px; }
  .ar-step b { width: 28px; height: 28px; font-size: 12px; }
  .ar-step-2 { margin-top: 28px; }
  .ar-cities { display: flex; gap: 0; padding: 4px; border-radius: 999px; background: #E4E9F0; }
  .ar-city { flex: 1; min-height: 44px; border: 0; background: transparent; font-size: 14px; }
  .ar-city.on { background: var(--navy); }
  .ar-opts { gap: 8px; }
  .ar-opt { gap: 12px; min-height: 60px; padding: 10px 16px; border-radius: 16px; font-size: 14px; }
  .ar-opt .dot { flex-basis: 20px; height: 20px; }
  .ar-opt.on .dot { border-width: 6px; }
  .ar-opt-val { flex-direction: column; align-items: flex-end; gap: 2px; }
  .ar-opt .sq { font-size: 15px; }
  .ar-opt .pr { min-width: 0; font-size: 13px; }

  .ar-cta-m { display: flex; width: 100%; margin-top: 16px; }
  .ar-map { order: 3; margin-top: 32px; height: 260px; border-radius: 22px; }
  .ar { display: flex; flex-direction: column; }
}
