/* Блок Z21: страница /arenda/. Цвета и шрифт — из site.css (:root), свои классы — с префиксом ar-. */
/* hidden должен скрывать и элементы с display: grid/flex */
.ar [hidden], .ar-sheet [hidden] { display: none !important; }
.ar-nav { display: flex; gap: 16px; margin-left: 8px; }
.ar-nav a { color: #d7dde5; text-decoration: none; font-size: 15px; }
.ar-nav a:hover { color: #fff; }

.ar-hero { background: #fff; border-bottom: 1px solid var(--line); }
.ar-hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; padding: 40px 20px; }
.ar-kicker { margin: 0 0 10px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.ar-hero h1 { font-size: 40px; margin-bottom: 14px; }
.ar-lede { font-size: 17px; color: #39414d; margin: 0 0 22px; max-width: 560px; }
.ar-hero-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ar-hero-pic { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ar-hero-pic img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: contain; padding: 10px; background: #fff; }
.ar-hero-pic figcaption { padding: 8px 12px 10px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

.ar-facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding-top: 24px; padding-bottom: 4px; }
.ar-fact { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.ar-fact b { display: block; font-size: 17px; margin-bottom: 4px; }
.ar-fact span { color: var(--muted); font-size: 14px; }

.ar-head { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.ar-head .muted { max-width: 640px; margin: 0; }
.ar-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.ar-chip { border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 999px; padding: 8px 14px;
           font-size: 14px; font-weight: 600; cursor: pointer; }
.ar-chip[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: #fff; }

.ar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ar-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ar-card:hover { border-color: #c8cfd9; box-shadow: 0 2px 10px rgba(20, 30, 50, .07); }
.ar-pic { position: relative; margin: 0; background: #fff; border-bottom: 1px solid var(--line); }
.ar-pic img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.ar-pic img { object-fit: contain; }
.ar-pic-model img { padding: 14px; }
.ar-pic figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line);
                     border-radius: 999px; padding: 2px 9px; font-size: 12px; color: var(--muted); }
.ar-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.ar-card-body h3 { font-size: 17px; margin: 0 0 2px; }
.ar-card-body p { margin: 0; font-size: 14px; }
.ar-spec { color: #39414d; }
.ar-kit, .ar-limit { color: var(--muted); }
.ar-price { margin-top: auto; padding-top: 8px; }
.ar-price b { font-size: 22px; }
.ar-price span { color: var(--muted); font-size: 14px; }
.ar-terms { color: var(--muted); }
.ar-card-acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ar-photo-note { margin: 14px 0 0; }

.ar-calc-sec { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ar-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.ar-calc-form { display: grid; gap: 14px; }
.ar-calc-form label, .ar-book label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.ar-calc-form select, .ar-calc-form input, .ar-book select, .ar-book input, .ar-book textarea {
  font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #cfd5dd; border-radius: 8px; background: #fff; color: var(--text); width: 100%; }
.ar-calc-res { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.ar-calc-res p { margin: 0 0 10px; }
.ar-sum { font-size: 34px; font-weight: 800; }
.ar-err { color: #b42318; font-size: 14px; }

.ar-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ar-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.ar-panel h3 { font-size: 17px; }
.ar-panel ul { margin: 0; padding-left: 18px; }
.ar-panel li { margin-bottom: 8px; font-size: 14px; }
.ar-note { margin: 16px 0 0; padding: 12px 16px; background: #fff8dc; border: 1px solid #f0dda6; border-radius: 10px; font-size: 14px; }

.ar-pickup { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.ar-pickup p { margin: 0 0 8px; }

.ar-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(20, 25, 32, .55); display: flex;
            align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.ar-sheet[hidden] { display: none; }
.ar-sheet-card { position: relative; width: 100%; max-width: 640px; background: #fff; border-radius: 14px; padding: 22px 22px 20px;
                 box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.ar-sheet-card h2 { font-size: 22px; padding-right: 36px; }
.ar-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 8px; background: #eef1f5;
        font-size: 22px; line-height: 1; cursor: pointer; }
.ar-book { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.ar-book .wide { grid-column: 1 / -1; }
.ar-est { margin: 0; padding: 10px 12px; background: var(--bg); border-radius: 8px; font-size: 14px; }
.ar-book label.ar-agree { display: block; font-weight: 400; font-size: 14px; }
.ar-book label.ar-agree input { width: auto; margin-right: 6px; }
.ar-book-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ar-ok h3 { font-size: 20px; }
body.ar-lock { overflow: hidden; }

@media (max-width: 1100px) {
  .ar-facts { grid-template-columns: repeat(3, 1fr); }
  .ar-nav { display: none; }
}
@media (max-width: 900px) {
  .ar-hero-in { grid-template-columns: 1fr; gap: 22px; padding: 28px 20px; }
  .ar-grid { grid-template-columns: repeat(2, 1fr); }
  .ar-calc, .ar-rules, .ar-pickup { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ar-hero h1 { font-size: 30px; }
  .ar-facts { grid-template-columns: 1fr 1fr; }
  .ar-grid { grid-template-columns: 1fr; }
  .ar-book { grid-template-columns: 1fr; }
  .ar-sheet { padding: 0; }
  .ar-sheet-card { border-radius: 0; min-height: 100%; }
  .ar-sum { font-size: 28px; }
}

/* TKC rental descriptions: additive content block. */
.ar .ar-description { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: #35424d; overflow-wrap: anywhere; }
