/* «Смайл Аренда» — поверх v2.css сайта: свои только каталог, календарь и кабинет. */
.rent { --rent-busy: #ffd6de; --rent-pick: #1c2333; }
.rent h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -1.5px; margin: 14px 0 12px; }
.rent h1 em, .rent-card b em { font-style: normal; color: var(--muted); font-weight: 600; }
.rent-grad { background: linear-gradient(90deg, #7b61ff, #ff4d8d 55%, #ff9a1f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rent-lead { font-size: 18px; color: var(--ink-2); max-width: 680px; margin: 0 0 22px; }
.rent-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 4px; }
.rent-hero { padding-top: 40px; }
.rent-steps, .rent-faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 28px; }
.rent-steps .v2-card, .rent-faq-grid .v2-card { padding: 20px 22px; display: grid; gap: 6px; }
.rent-steps span, .rent-faq-grid span { color: var(--ink-2); font-size: 15px; }

.rent-filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; padding: 18px; margin: 14px 0; }
.rent-filter label, .rent-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.rent input, .rent select, .rent textarea, .rent-dialog input, .rent-dialog select, .rent-dialog textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--bg-2, #f3f5f9); border: 1.5px solid transparent;
  border-radius: 12px; padding: 10px 12px; min-height: 44px; width: 100%; box-sizing: border-box; }
.rent input:focus, .rent select:focus, .rent textarea:focus, .rent-dialog input:focus, .rent-dialog select:focus, .rent-dialog textarea:focus { outline: none; border-color: var(--violet); background: #fff; }
.rent-check { display: flex !important; align-items: center; gap: 8px; color: var(--ink) !important; font-size: 14px !important; }
.rent-check input { width: 18px; min-height: 18px; height: 18px; }
.rent-count { color: var(--muted); font-weight: 600; margin: 4px 0 12px; }

.rent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.rent-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.rent-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.rent-card-img { position: relative; aspect-ratio: 16 / 10; background: #eef1f6; display: grid; place-items: center; }
.rent-card-img img { width: 100%; height: 100%; object-fit: cover; }
.rent-card-img .v2-pill { position: absolute; left: 12px; top: 12px; }
.rent-noimg { color: var(--muted); font-weight: 600; }
.rent-noimg.big { display: grid; place-items: center; aspect-ratio: 16 / 9; background: #eef1f6; border-radius: var(--radius-sm); }
.rent-card-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.rent-card-body b { font-size: 18px; }
.rent-card-meta { color: var(--muted); font-size: 14px; }
.rent-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rent-card-tags i { font-style: normal; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--bg-2, #f3f5f9); color: var(--ink-2); }
.rent-card-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 4px; color: var(--muted); }
.rent-card-price strong { font-size: 20px; color: var(--ink); }
.rent-card-price small { color: var(--green); font-weight: 700; }
.rent-empty { padding: 28px; display: grid; gap: 10px; justify-items: start; grid-column: 1 / -1; }
.rent-empty p { margin: 0; color: var(--ink-2); }

.rent-crumbs { margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.rent-crumbs a { color: var(--muted); }
.rent-car-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 22px; align-items: start; }
.rent-car h1 { font-size: clamp(30px, 4vw, 44px); margin-top: 18px; }
.rent-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); gap: 8px; }
.rent-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; scroll-snap-align: start; border-radius: var(--radius); }
.rent-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.rent-two .v2-card, .rent-terms { padding: 18px 20px; }
.rent-two h2, .rent-terms h2 { font-size: 18px; margin: 0 0 10px; }
.rent-terms { margin-top: 14px; }
.rent-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 15px; }
.rent-dl dt { color: var(--muted); }
.rent-dl dd { margin: 0; font-weight: 600; }
.rent-book { position: sticky; top: calc(var(--nav-h) + 16px); padding: 20px; display: grid; gap: 12px; }
.rent-book h3 { margin: 4px 0 0; font-size: 17px; }
.rent-book-price { color: var(--muted); }
.rent-book-price strong { font-size: 30px; color: var(--ink); letter-spacing: -.5px; }
.rent-disc { margin: 0; padding-left: 18px; color: var(--green); font-weight: 600; font-size: 14px; }
.rent-hint { color: var(--muted); font-size: 13px; margin: 0; }
.rent-msg { margin: 0; font-weight: 600; font-size: 14px; min-height: 1em; }
.rent-msg.err { color: var(--red); }
.rent-msg.ok { color: var(--green); }
.rent-sum { background: var(--bg-2, #f3f5f9); border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.rent-sum b { font-size: 18px; }
.rent-book textarea { min-height: 64px; resize: vertical; }

/* Календарь: месяц — сетка 7 дней; занятые дни закрашены. */
.rent-cal { display: grid; gap: 14px; max-height: 470px; overflow-y: auto; padding-right: 4px; }
.rent-cal-skel { height: 260px; border-radius: 14px; }
.rent-month b { display: block; font-size: 14px; margin: 0 0 6px; text-transform: capitalize; }
.rent-week, .rent-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.rent-week span { font-size: 11px; color: var(--muted); text-align: center; font-weight: 600; }
.rent-day { aspect-ratio: 1; border: 0; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; background: #eefaf2; color: var(--ink); cursor: pointer; padding: 0; position: relative; }
.rent-day:hover { box-shadow: inset 0 0 0 2px var(--violet); }
.rent-day.past, .rent-day.pad { background: transparent; color: #c3c9d6; cursor: default; box-shadow: none; }
.rent-day.busy { background: repeating-linear-gradient(135deg, var(--rent-busy) 0 6px, #ffe9ee 6px 12px); color: #b4405a; cursor: not-allowed; box-shadow: none; }
.rent-day.busy.block { background: repeating-linear-gradient(135deg, #e3e7ef 0 6px, #f1f3f8 6px 12px); color: #7c869a; }
.rent-day.mine { background: #e7e1ff; color: #5b3fe0; }
.rent-day.pick { background: var(--rent-pick); color: #fff; }
.rent-day.ret { background: #fff; box-shadow: inset 0 0 0 2px var(--rent-pick); }
.rent-day.ret::after { content: "возврат"; position: absolute; left: 0; right: 0; bottom: 2px; font-size: 8px; font-weight: 700; }
.rent-day.today::before { content: ""; position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--violet); }
.rent-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.rent-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -2px; }
.rent-legend .free { background: #eefaf2; } .rent-legend .busy { background: var(--rent-busy); } .rent-legend .pick { background: var(--rent-pick); }

.rent-login-card { max-width: 520px; margin: 30px auto; padding: 28px; display: grid; gap: 14px; }
.rent-login-card form { display: grid; gap: 12px; }
.rent-phone { display: flex; align-items: center; gap: 8px; background: var(--bg-2, #f3f5f9); border-radius: 12px; padding-left: 12px; }
.rent-phone b { color: var(--ink); }
.rent-phone input { background: transparent !important; }

.rent-cab-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.rent-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 18px; }
.rent-tabs button { border: 0; font: inherit; font-weight: 600; font-size: 15px; padding: 10px 16px; border-radius: 12px; background: var(--card); color: var(--ink-2); cursor: pointer; box-shadow: var(--shadow-sm); }
.rent-tabs button.on { background: var(--ink); color: #fff; }
.rent-tabs b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--pink); color: #fff; font-size: 12px; margin-left: 4px; }
.rent-pane-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.rent-pane-head p { margin: 0; color: var(--ink-2); }
.rent-list { display: grid; gap: 12px; }
.rent-item { background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 16px 18px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.rent-item img, .rent-item .rent-thumb { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; background: #eef1f6; display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.rent-item b { font-size: 16px; }
.rent-item p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.rent-item .v2-btns { gap: 6px; }
.rent-item .v2-btn { padding: 8px 12px; font-size: 13px; }
.rent-item.off { opacity: .6; }
.rent-badge { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #e7f8ee; color: var(--green); margin-left: 6px; }
.rent-badge.red { background: #ffe9ee; color: var(--red); } .rent-badge.gray { background: #eef1f6; color: var(--muted); } .rent-badge.new { background: var(--pink); color: #fff; }

.rent-dialog { border: 0; border-radius: 24px; padding: 0; width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: var(--shadow); color: var(--ink); }
.rent-dialog::backdrop { background: rgba(28, 35, 51, .45); backdrop-filter: blur(3px); }
.rent-dialog .rent-form { padding: 22px; display: grid; gap: 14px; font-family: var(--font); }
.rent-dialog-head { display: flex; justify-content: space-between; align-items: center; }
.rent-dialog-head h2 { margin: 0; font-size: 22px; }
.rent-x { border: 0; background: var(--bg-2, #f3f5f9); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 15px; }
.rent-form fieldset { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 12px; }
.rent-form legend { font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.rent-wide { grid-column: 1 / -1; }
.rent-photos { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.rent-photos span { position: relative; }
.rent-photos img { width: 110px; height: 74px; object-fit: cover; border-radius: 10px; display: block; }
.rent-photos button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(28, 35, 51, .75); color: #fff; cursor: pointer; }
.rent-upload { cursor: pointer; justify-self: start; }

@media (max-width: 960px) {
  .rent-car-grid { grid-template-columns: 1fr; }
  .rent-book { position: static; }
}
@media (max-width: 640px) {
  .rent-two { grid-template-columns: 1fr; }
  .rent-item { grid-template-columns: auto minmax(0, 1fr); }
  .rent-item .v2-btns { grid-column: 1 / -1; }
  .rent-item img, .rent-item .rent-thumb { width: 72px; height: 52px; }
  .rent-lead { font-size: 16px; }
}

/* [hidden] сильнее своих display (формы входа, счётчик новых броней). */
.rent [hidden], .rent-dialog [hidden] { display: none !important; }
/* Гирлянда праздников висит под шапкой — плашке над заголовком нужен запас. */
.rent-hero, .rent-cab, .rent-login, .rent-car { padding-top: 56px; }
.rent-hint.is-warn, .rent-warn { color: #c2410c; }

/* Уведомления в профиле (14.11.2026) */
.rent-notify { display: grid; gap: 12px; margin: 6px 0 4px; padding: 16px; border: 1px solid var(--line, #e2e7ef); border-radius: 16px; }
.rent-notify legend { padding: 0 6px; font-weight: 800; }
.rent-tg { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rent-tg-state { font-weight: 700; color: var(--muted, #7c869a); }
.rent-tg-state.on { color: #16b364; }
#cabProfile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 640px; }
#cabProfile .rent-notify { grid-template-columns: minmax(0, 1fr); }
#cabProfile > .v2-btn { justify-self: start; }

/* Частые вопросы на странице каталога (14.11.2026) */
.rent-qs { display: grid; gap: 10px; }
.rent-q { padding: 16px 20px; }
.rent-q summary { cursor: pointer; font-weight: 700; }
.rent-q p { margin: 10px 0 0; line-height: 1.6; color: var(--ink-2, #3b4458); }
