/* Страница аренды.

   Написана заново на общих токенах, а не перенесена из gortex-rental/style.css:
   там 201 захардкоженный цвет, 243 !important, свои радиусы 4px при системных
   2px, три ширины контейнера и ни одной объявленной переменной — четыре из них
   вообще не разрешались. Переписать оказалось короче, чем вычищать.

   Токены, контейнер, кнопки, .section, .head, .page-hero и .crumbs — в base.css. */

/* Шапка раздела: две колонки, а не одна. Текстовый блок ограничен 62ch
   по читаемости, и в контейнере 1240px справа оставалось 548px пустоты.
   Наличие — главный аргумент аренды, ему там и место. */
.rent-hero { border-bottom: 1px solid var(--c-600); }

/* ---------- Первый экран: шапка раздела + сценарии ----------
   Раньше высота считалась по содержимому, и снизу выглядывала полоса
   следующей секции — экран читался как обрезанный. Обернуть в .intro-screen
   одну шапку было мало: на высоком окне она растягивалась во весь экран
   и стояла в вакууме, а сценарии начинались отдельным разворотом. Теперь
   в первый экран входят оба блока, как шапка с калькулятором в каталоге:
   шапка своей высоты, сценарии добирают остаток (класс .intro-screen__fill).

   Сама механика — обёртка, шапка раздела, карточка наличия, заголовок
   второго блока — общая, она в base.css. Здесь только сетка сценариев:
   больше её нигде нет. Единицы те же: --fit-space для воздуха, --fit-type
   для кегля, коэффициент — размер при окне 950px.

   Кегль сжимается вместе с окном намеренно: уменьшать текст — единственный
   способ удержать шесть карточек в экране, не выбрасывая их. */
/* ---------- Сценарии применения ----------
   Сетка и сама карточка — общий рецепт .tile из base.css, он же под именем
   .scenario. Здесь остаётся только то, что у сценария своё. */

/* Карточка приподнимается на наведении — в отличие от этапа и плитки.
   Шесть сценариев это способ выбрать свой случай, и отклик на наведение
   помогает вести по ним глазом. */
.scenario:hover { border-color: var(--gold); transform: translateY(-2px); }

/* Проблема и решение различаются не подписью, а видом: сверху то, что болит,
   снизу — что мы с этим делаем. Подписи «Проблема»/«Решение» съедали две
   строки в каждой из шести карточек. */


/* ---------- Фильтры парка ---------- */
.park-filters {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-radius: var(--radius);
}

.park-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.park-filters__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  min-width: 92px;
}

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }

/* Чип фильтра — общий кирпич, лежит в base.css вместе со счётчиком
   .filter-chip__n: те же чипы стоят в каталоге и на производстве. */

/* Точка статуса. Цвет приходит инлайном из справочника в rental-data.php,
   чтобы подпись и цвет не разъезжались между фильтром и карточкой. */
.dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--dot, var(--c-400));
}

/* ---------- Карточки парка ---------- */
.park {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px)  { .park { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .park { grid-template-columns: repeat(3, 1fr); } }

.rent-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.rent-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.rent-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--c-850);
  overflow: hidden;
}
.rent-card__media img { width: 100%; height: 100%; object-fit: cover; }

.rent-card__power {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 11px;
  background: var(--gold);
  color: var(--c-900);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rent-card__body { padding: 20px; display: grid; gap: 10px; align-content: start; }

.rent-card__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-mute);
}

.rent-card__title { margin: 0; font-size: 1.0625rem; }

.rent-card__specs { margin: 4px 0 0; display: grid; gap: 7px; }
.rent-card__specs > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.875rem;
}
.rent-card__specs dt { color: var(--text-mute); }
.rent-card__specs dd { margin: 0; overflow-wrap: anywhere; }

.rent-card__note {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-mute);
}

.rent-card__foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--c-600);
}

.rent-card__price { display: grid; gap: 2px; }
.rent-card__price span {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.rent-card__price small { font-size: 0.75rem; color: var(--text-mute); }

.park-empty {
  margin: 28px 0 0;
  padding: 22px;
  text-align: center;
  color: var(--text-dim);
  border: 1px dashed var(--c-500);
  border-radius: var(--radius);
}
.park-empty a { color: var(--gold); border-bottom: 1px solid var(--gold-line); }

/* ---------- Калькулятор ---------- */
/* Одна широкая карточка на всю сетку: ползунки слева, результат справа.
   Раньше карточка была колонкой в 480px, прижатой к правому краю, —
   рядом с ней оставалась пустая половина экрана. */
.rent-calc__card {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: start;
  padding: clamp(24px, 3vw, 36px);
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}
@media (min-width: 900px) {
  .rent-calc__card {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 48px;
  }
}

.rent-calc__inputs { display: grid; gap: 28px; align-content: start; }

.rent-calc__field { display: grid; gap: 10px; }

.rent-calc__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.rent-calc__head label {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.rent-calc__val {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* Ползунок. Движок — логотип-огонёк, как было на старой странице аренды.
   Оформляем оба браузерных движка вручную: у Firefox своя пара
   псевдоэлементов, и без неё он рисует системный синий.
   Высота дорожки 40px не для красоты: движок ростом 26px, и в тонкой
   полоске ему негде поместиться. */
.rent-calc__field input[type="range"] {
  width: 100%;
  height: 40px;
  margin: 8px 0 2px;
  appearance: none;
  background: var(--c-850);
  border: 1px solid var(--c-600);
  border-radius: var(--radius);
  outline: none;
  padding: 0;
  cursor: pointer;
}
.rent-calc__field input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 38px;
  background: transparent;
  border: none;
}
.rent-calc__field input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 30px;
  height: 26px;
  margin-top: 6px;
  background: url("/assets/img/cursor-open-light.png") no-repeat center / contain;
  border: none;
  cursor: grab;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.7));
  transition: transform 0.15s var(--ease), filter 0.15s var(--ease);
}
.rent-calc__field input[type="range"]:hover::-webkit-slider-thumb,
.rent-calc__field input[type="range"]:focus-visible::-webkit-slider-thumb {
  transform: scale(1.15);
  filter: drop-shadow(0 0 10px rgba(245, 190, 110, 0.9));
}
.rent-calc__field input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; }

.rent-calc__field input[type="range"]::-moz-range-track {
  width: 100%;
  height: 38px;
  background: transparent;
  border: none;
}
.rent-calc__field input[type="range"]::-moz-range-thumb {
  width: 30px;
  height: 26px;
  background: url("/assets/img/cursor-open-light.png") no-repeat center / contain;
  border: none;
  cursor: grab;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.7));
  transition: transform 0.15s var(--ease), filter 0.15s var(--ease);
}
.rent-calc__field input[type="range"]:hover::-moz-range-thumb,
.rent-calc__field input[type="range"]:focus-visible::-moz-range-thumb {
  transform: scale(1.15);
  filter: drop-shadow(0 0 10px rgba(245, 190, 110, 0.9));
}

.rent-calc__scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}

.rent-calc__result {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 24px;
  background: var(--c-850);
  border: 1px solid var(--c-600);
  border-radius: var(--radius);
}
/* Кнопка внизу карточки результата, а не сразу под цифрой: между суммой
   и действием нужен воздух. */
.rent-calc__result .btn { margin-top: 6px; }

.rent-calc__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 4px;
}

.rent-calc__boiler { font-family: var(--font-display); font-size: 1.0625rem; letter-spacing: 0.02em; }

.rent-calc__sum {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.05;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.rent-calc__hint { font-size: 0.8125rem; color: var(--text-note); font-variant-numeric: tabular-nums; }

.rent-calc__disclaimer {
  margin: 0;
  grid-column: 1 / -1;
  padding-top: 4px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-mute);
}

/* Над ползунком системный курсор оставляем: движок и так логотип,
   вторая такая же иконка рядом выглядит поломкой. */
.rent-calc__field input[type="range"] { cursor: pointer; }

/* Пояснение секции справа от заголовка описано в base.css целиком: ширина
   колонки, выключка и цвет (--text-aside). Здесь лежали два одинаковых
   правила из файла одной страницы, которые задавали ему max-width: 46ch
   и прижимали к правому краю. Работать они давно перестали — base.css
   ставит max-width: none, — но ломали главное: роль перестала правиться
   из одного места. */
