.rentals-page {
  min-width: 320px;
}

.rentals-page-main {
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 64px;
}

.rentals-topbar {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.rentals-back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  background: #fff;
  color: var(--blue-deep);
  font-weight: 850;
  text-decoration: none;
}

.rentals-back-link span {
  color: var(--blue);
  font-size: 1.2rem;
}

.rentals-brand {
  display: block;
  width: 190px;
  height: 70px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
}

.rentals-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rentals-intro {
  padding: 38px 0 28px;
}

.rentals-intro h1 {
  max-width: 980px;
  color: var(--blue-deep);
  font-size: 3.4rem;
}

.rentals-intro > p:last-child {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.rentals-overview {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 32px;
}

.rentals-overview-head,
.rentals-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.rentals-overview-head {
  margin-bottom: 20px;
}

.rentals-overview-head h2,
.rentals-section-head h2 {
  margin-top: 4px;
  color: var(--blue-deep);
  font-size: 1.65rem;
}

.rentals-sync-area {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.rentals-sync {
  min-height: 38px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  padding: 7px 14px;
  background: #fff;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 850;
}

.rentals-sync:hover:not(:disabled) {
  background: var(--blue);
  color: #fff;
}

.rentals-sync:disabled {
  cursor: wait;
  opacity: 0.62;
}

.rentals-sync-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 0.74rem;
}

.rentals-hero-counter {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.15fr);
  align-items: center;
  gap: 48px;
  min-height: 240px;
  border-left: 6px solid var(--orange);
  padding: 30px 36px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(31, 43, 83, 0.1);
}

.rentals-counter-copy strong,
.rentals-counter-copy span {
  display: block;
}

.rentals-counter-copy > strong {
  color: var(--orange);
  font-size: 5.4rem;
  font-variant-numeric: tabular-nums;
  line-height: 0.9;
}

.rentals-counter-copy > span {
  margin-top: 10px;
  color: var(--blue-deep);
  font-size: 1.45rem;
  font-weight: 900;
}

.rentals-counter-copy p {
  margin: 12px 0 0;
  color: var(--muted);
}

.rentals-capacity-meter {
  min-width: 0;
}

.rentals-capacity-head,
.rentals-capacity-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.rentals-capacity-head {
  color: var(--blue-deep);
  font-weight: 850;
}

.rentals-capacity-head strong {
  font-size: 1.4rem;
  font-variant-numeric: tabular-nums;
}

.rentals-meter-track {
  display: block;
  height: 20px;
  overflow: hidden;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--surface-2);
}

.rentals-meter-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 500ms ease;
}

.rentals-capacity-scale {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.rentals-capacity-scale strong {
  color: var(--blue-deep);
}

.rentals-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.rentals-kpi {
  min-height: 96px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: #fff;
}

.rentals-kpi:nth-child(2) {
  border-top-color: var(--blue);
}

.rentals-kpi:nth-child(3) {
  border-top-color: var(--orange);
}

.rentals-kpi strong,
.rentals-kpi span {
  display: block;
}

.rentals-kpi strong {
  color: var(--blue-deep);
  font-size: 2rem;
  line-height: 1;
}

.rentals-kpi span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.rentals-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}

.rentals-form-link {
  display: inline-flex;
  min-height: 52px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 24px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(242, 106, 33, 0.2);
}

.rentals-form-link:hover {
  background: var(--orange-deep);
}

.rentals-actions p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.rentals-schedule {
  padding-top: 32px;
}

.rentals-section-head > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

.rentals-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.rentals-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.rentals-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.rentals-legend i.limited {
  background: var(--orange);
}

.rentals-legend i.full {
  background: #b3261e;
}

.rentals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rental-term {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 43, 83, 0.08);
}

.rental-term-head {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.rental-term-head span,
.rental-term-head strong {
  display: block;
}

.rental-term-head span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.rental-term-head h3 {
  margin-top: 3px;
  color: var(--blue-deep);
  font-size: 1rem;
}

.rental-term-total {
  min-width: 60px;
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
}

.rental-term-total strong {
  color: var(--orange);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.rental-set-list {
  display: grid;
  margin: 0;
  padding: 6px 16px 14px;
}

.rental-set-row {
  display: grid;
  grid-template-columns: 76px minmax(76px, 1fr) 78px;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  border-bottom: 1px solid var(--line);
}

.rental-set-row:last-child {
  border-bottom: 0;
}

.rental-set-row dt {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 850;
}

.rental-set-row dd {
  margin: 0;
}

.rental-set-meter {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.rental-set-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.rental-set-row.limited .rental-set-meter span {
  background: var(--orange);
}

.rental-set-row.full .rental-set-meter span {
  background: #b3261e;
}

.rental-set-count {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.rental-set-row.limited .rental-set-count {
  color: var(--orange-deep);
}

.rental-set-row.full .rental-set-count {
  color: #b3261e;
}

.rentals-error {
  margin: 16px 0 0;
  border: 1px solid rgba(242, 106, 33, 0.4);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  color: var(--orange-deep);
  text-align: center;
}

.rentals-back-link:focus-visible,
.rentals-brand:focus-visible,
.rentals-sync:focus-visible,
.rentals-form-link:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .rentals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .rentals-page-main {
    width: min(100% - 24px, 1380px);
    padding-top: 12px;
  }

  .rentals-intro h1 {
    font-size: 2.35rem;
  }

  .rentals-hero-counter {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 26px 22px;
  }

  .rentals-kpis {
    grid-template-columns: 1fr;
  }

  .rentals-actions,
  .rentals-overview-head,
  .rentals-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .rentals-sync-area,
  .rentals-sync,
  .rentals-form-link {
    width: 100%;
  }

  .rentals-section-head > p {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .rentals-topbar {
    min-height: 72px;
  }

  .rentals-back-link {
    min-height: 40px;
    padding: 7px 12px;
    font-size: 0.82rem;
  }

  .rentals-brand {
    width: 128px;
    height: 58px;
  }

  .rentals-intro {
    padding: 28px 0 22px;
  }

  .rentals-intro h1 {
    font-size: 2.05rem;
  }

  .rentals-counter-copy > strong {
    font-size: 4.4rem;
  }

  .rentals-grid {
    grid-template-columns: 1fr;
  }

  .rental-term-head {
    min-height: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rentals-meter-track > span {
    transition: none;
  }
}
