/* Стиль по мотивам drive.yango.com: светлый фон, тёмный hero,
   коралловый акцент, лаймовые промо-бейджи, крупные радиусы. */
:root {
  --bg: #f2f1ee;
  --panel: #ffffff;
  --panel2: #f6f5f2;
  --text: #21201f;
  --muted: #82807c;
  --accent: #fc4c36;       /* коралловый Yango */
  --accent-hover: #e8402b;
  --lime: #d6f600;         /* промо-лайм */
  --dark: #171717;
  --ok: #1fa356;
  --warn: #d97706;
  --bad: #d4380d;
  --radius: 18px;
  --border: #e7e5e0;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }

/* Логотип как у Yango Drive: жирный сжатый курсив капсом */
.logo {
  font-size: 24px; font-weight: 900; font-style: italic;
  letter-spacing: -1px; text-transform: uppercase; white-space: nowrap;
}
.logo span { color: var(--accent); }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
nav { display: flex; gap: 6px; align-items: center; }
nav a { color: var(--text); padding: 8px 14px; border-radius: 99px; font-weight: 500; }
nav a:hover { background: var(--panel2); }
nav a.primary { background: var(--dark); color: #fff; font-weight: 600; }

.container { max-width: 1080px; margin: 0 auto; padding: 28px 20px 80px; }
h1 { font-size: 30px; margin: 8px 0 20px; letter-spacing: -.5px; }
h2 { font-size: 21px; margin: 28px 0 14px; letter-spacing: -.3px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* Hero — тёмный блок с «закатным» градиентом как фото Дубая */
.hero {
  background:
    radial-gradient(120% 90% at 50% 115%, rgba(252, 116, 54, .5), transparent 60%),
    linear-gradient(180deg, #141414 0%, #26201c 78%, #3a2a20 100%);
  color: #fff; text-align: center;
  padding: 46px 20px 54px; border-radius: 0 0 28px 28px;
}
.hero .logo { font-size: 34px; color: #fff; }
.hero h1 { color: #fff; font-size: 34px; margin: 22px 0 8px; }
.hero .sub { color: rgba(255,255,255,.85); margin: 0 0 26px; }

.search-bar {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  max-width: 900px; margin: 0 auto;
}
.search-bar .field {
  background: #fff; border-radius: var(--radius); padding: 10px 18px;
  text-align: left; flex: 1 1 160px; min-width: 150px;
}
.field label { display: block; font-size: 12px; color: var(--muted); }
.field input, .field select {
  border: 0; background: transparent; font-size: 17px; font-weight: 600;
  color: var(--text); width: 100%; padding: 2px 0; font-family: inherit;
}
.field input:focus, .field select:focus { outline: none; }

.btn {
  background: var(--accent); color: #fff; border: 0; cursor: pointer;
  padding: 14px 26px; border-radius: var(--radius); font-size: 16px;
  font-weight: 700; font-family: inherit;
}
.btn:hover { background: var(--accent-hover); }
.btn.dark { background: var(--dark); }
.btn.dark:hover { background: #000; }
.btn.ghost {
  background: #fff; color: var(--text); border: 1px solid var(--border);
  font-weight: 500;
}
.btn.ghost:hover { background: var(--panel2); }
.btn.small { padding: 8px 16px; font-size: 14px; border-radius: 12px; }
.btn.danger { background: var(--bad); }

/* Чипы классов как «Cars by class» */
.class-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 6px; }
.class-chip {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 18px; cursor: pointer; text-align: left;
}
.class-chip:hover { border-color: var(--dark); }
.class-chip.active { border-color: var(--dark); box-shadow: 0 0 0 1px var(--dark); }
.class-chip b { display: block; font-size: 15px; }
.class-chip small { color: var(--muted); }

.panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 18px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 8px;
}
.card .art {
  border-radius: 12px; background: var(--panel2); padding: 10px 18px 2px;
  text-align: center; position: relative; min-height: 150px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card .art svg { width: 100%; max-width: 240px; height: auto; }
.card .art img {
  width: 100%; height: 160px; object-fit: cover; border-radius: 8px; display: block;
}
.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.badge {
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px;
  background: var(--lime); color: #1c2400;
}
.badge.dark { background: var(--dark); color: #fff; }
.card .title { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.card .price { font-size: 21px; font-weight: 800; }
.card .price .old { color: var(--muted); text-decoration: line-through; font-size: 15px; font-weight: 500; margin-right: 6px; }
.card .price small { font-size: 13px; color: var(--muted); font-weight: 500; }

.chip { display: inline-block; padding: 3px 11px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--panel2); color: var(--muted); }
.chip.ok { background: #e5f6ec; color: var(--ok); }
.chip.warn { background: #fdf0e0; color: var(--warn); }
.chip.bad { background: #fbe9e3; color: var(--bad); }
.chip.accent { background: #ffe9e5; color: var(--accent); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--muted); font-weight: 500; font-size: 12px; }

.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs button {
  background: #fff; color: var(--text); border: 1px solid var(--border);
  padding: 9px 18px; border-radius: 99px; cursor: pointer; font-size: 14px;
  font-weight: 600; font-family: inherit;
}
.tabs button.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 14px; }

input, select {
  background: #fff; color: var(--text); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px; font-size: 14px; min-width: 150px;
  font-family: inherit;
}
input:focus, select:focus { outline: 2px solid var(--dark); outline-offset: -1px; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--dark); color: #fff; padding: 13px 22px;
  border-radius: 14px; max-width: 90%; z-index: 50; font-weight: 500;
}
.toast.error { background: var(--bad); }

.auth-box { max-width: 420px; margin: 40px auto; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form input { min-width: 0; width: 100%; }

.note {
  border-left: 3px solid var(--accent); padding: 10px 14px;
  background: #fff; border-radius: 0 12px 12px 0; font-size: 14px;
  border-top: 1px solid var(--border); border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.note.unread { border-left-color: var(--ok); }

/* Степпер оформления аренды */
.stepper { display: flex; gap: 6px; margin: 20px 0 24px; flex-wrap: wrap; }
.step {
  flex: 1 1 140px; text-align: center; padding: 10px 8px; border-radius: 12px;
  background: #fff; border: 1px solid var(--border); font-size: 13px;
  font-weight: 600; color: var(--muted);
}
.step .n {
  display: inline-flex; width: 22px; height: 22px; border-radius: 50%;
  background: var(--panel2); color: var(--muted); align-items: center;
  justify-content: center; font-size: 12px; margin-right: 6px;
}
.step.active { border-color: var(--accent); color: var(--text); }
.step.active .n { background: var(--accent); color: #fff; }
.step.done { color: var(--ok); }
.step.done .n { background: #e5f6ec; color: var(--ok); }

.summary-line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; }
.summary-line.total { font-weight: 800; font-size: 18px; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 6px; }

/* ===== Нижняя шторка (Sort/Filters) и меню ===== */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 90; display: none;
}
.drawer-backdrop.open { display: block; }
.drawer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 91; background: #fff;
  border-radius: 24px 24px 0 0; padding: 10px 20px 20px; max-height: 82vh;
  overflow-y: auto; transform: translateY(105%); transition: transform .22s ease;
  max-width: 720px; margin: 0 auto;
}
.drawer.open { transform: translateY(0); }
.drawer .grip { width: 44px; height: 4px; border-radius: 4px; background: #d8d6d1; margin: 6px auto 14px; }
.drawer h3 { font-size: 20px; margin: 0 0 14px; text-align: center; }
.drawer .clear { position: absolute; right: 20px; top: 22px; color: var(--accent); cursor: pointer; font-weight: 600; background: none; border: 0; font: inherit; }
.opt-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 15px; }
.opt-row:last-of-type { border-bottom: 0; }
.opt-row .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #d7d5d0; }
.opt-row.sel .dot { border-color: var(--accent); border-width: 7px; }
.fgroup { margin: 16px 0 4px; }
.fgroup b { display: block; margin-bottom: 10px; font-size: 16px; }
.fgroup .row-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.fgroup .row-chips .fchip { background: var(--panel2); }
.fgroup .row-chips .fchip.on { background: var(--dark); color: #fff; }
.pricefields { display: flex; gap: 10px; }
.pricefields .field2 { flex: 1; background: var(--panel2); border-radius: 12px; padding: 8px 12px; }
.pricefields .field2 label { font-size: 11px; color: var(--muted); display: block; }
.pricefields .field2 input { border: 0; background: none; width: 100%; font: inherit; font-weight: 600; min-width: 0; padding: 0; }
.pricefields .field2 input:focus { outline: none; }
.drawer .btn.full { width: 100%; margin-top: 16px; }
.fchip.active-x { background: var(--accent); color: #fff; }
.fchip.active-x .x { margin-left: 6px; opacity: .85; }

.menu-drop {
  position: absolute; right: 20px; top: 56px; background: #fff; border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.16); padding: 8px; z-index: 80; min-width: 230px;
  display: none;
}
.menu-drop.open { display: block; }
.menu-drop a { display: block; padding: 11px 14px; border-radius: 10px; font-weight: 500; }
.menu-drop a:hover { background: var(--panel2); }
.menu-drop .div { border-top: 1px solid var(--border); margin: 6px 0; }

/* ===== Лендинг (главная) ===== */
.hero2 {
  background:
    radial-gradient(120% 90% at 50% 118%, rgba(252, 116, 54, .45), transparent 60%),
    linear-gradient(180deg, #101010 0%, #1c1a18 70%, #35271e 100%);
  color: #fff; text-align: center; padding: 40px 20px 46px;
  border-radius: 0 0 28px 28px;
}
.hero2 h1 { color: #fff; font-size: 34px; margin: 6px 0 6px; }
.hero2 .sub { color: rgba(255,255,255,.85); margin: 0 0 22px; }
.pills { display: inline-flex; background: rgba(255,255,255,.14); border-radius: 99px; padding: 4px; margin-bottom: 22px; }
.pills button { border: 0; border-radius: 99px; padding: 10px 20px; background: none; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.pills button.on { background: var(--accent); }
.hero2 .search-bar .field { border-radius: var(--radius); }
.hero2 .under { margin-top: 16px; display: flex; gap: 22px; justify-content: center; color: rgba(255,255,255,.9); font-size: 14px; flex-wrap: wrap; }
.hero2 .under select { background: none; border: 0; color: #fff; font: inherit; font-weight: 600; }

.promo-banner {
  position: relative; border-radius: 24px; overflow: hidden; margin: 26px 0;
  min-height: 240px; display: flex; align-items: flex-end; padding: 26px;
  background: linear-gradient(100deg, #3a2c14 10%, #6b4a1e 60%, #a8752f 100%);
}
.promo-banner img { position: absolute; right: -4%; bottom: -12%; width: 58%; max-width: 560px; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0,0,0,.4)); }
.promo-banner .txt { position: relative; z-index: 1; color: #fff; }
.promo-banner .txt .big { font-size: 34px; font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1.05; letter-spacing: -.5px; }
.promo-banner .txt .lime-t { color: var(--lime); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.cat-card {
  background: #fff; border-radius: 18px; padding: 16px; cursor: pointer;
  border: 1px solid transparent; display: flex; flex-direction: column; gap: 2px;
}
.cat-card:hover { border-color: var(--dark); }
.cat-card b { font-size: 16px; }
.cat-card .from { color: var(--muted); font-size: 13.5px; }
.cat-card .emoji { font-size: 22px; margin-bottom: 6px; }

.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.brand-card { background: #fff; border-radius: 14px; padding: 13px 16px; cursor: pointer; }
.brand-card small { color: var(--muted); display: block; }

.faq-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.faq details { background: #fff; border-radius: 14px; padding: 14px 18px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 10px 0 0; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 320px; gap: 14px; overflow-x: auto; padding-bottom: 8px; }

/* ===== Каталог в стиле drive.yango.com ===== */
.topbar.center { display: grid; grid-template-columns: 1fr auto 1fr; }
.topbar.center .side { display: flex; gap: 14px; align-items: center; font-size: 19px; }
.topbar.center .side.right { justify-content: flex-end; }
.topbar.center .logo { font-style: italic; }
.iconbtn { background: none; border: 0; cursor: pointer; font-size: 19px; padding: 4px; color: var(--text); }

.datebar {
  background: #141414; color: #fff; border-radius: var(--radius);
  padding: 12px 18px; display: flex; align-items: center; gap: 14px;
  margin: 18px 0 12px; cursor: pointer;
}
.promo-banner { cursor: pointer; }
.datebar .mid { flex: 1; text-align: center; }
.datebar .mid small { display: block; color: #9a9893; font-size: 12px; }
.datebar .mid b { font-size: 17px; }
.datebar button { background: none; border: 0; color: #fff; font-size: 17px; cursor: pointer; }
.datebar-edit { display: none; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.datebar-edit.open { display: flex; }

.searchrow {
  background: #eceae5; border-radius: var(--radius); padding: 8px 14px;
  display: flex; align-items: center; gap: 14px; margin-bottom: 12px;
}
.searchrow input { background: none; border: 0; flex: 1; font-size: 15px; min-width: 100px; }
.searchrow input:focus { outline: none; }
.searchrow .tool { background: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; display: flex; gap: 6px; align-items: center; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.fchip {
  background: #eceae5; border: 0; border-radius: 12px; padding: 9px 14px;
  cursor: pointer; font: inherit; font-weight: 500;
}
.fchip.on { background: var(--dark); color: #fff; }
.found { color: var(--text); font-size: 14px; margin: 6px 0 4px; }

.ccard {
  background: #fff; border-radius: 22px; padding: 10px 10px 18px;
  display: flex; flex-direction: column; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.ccard:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.ccard .photo { position: relative; border-radius: 16px; overflow: hidden; height: 210px; background: var(--panel2); }
.ccard .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ccard .photo svg { width: 90%; height: auto; margin: 30px auto 0; display: block; }
.ccard .fav {
  position: absolute; top: 10px; right: 10px; background: #fff; border: 0;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 16px;
}
.ccard .badgerow { position: absolute; left: 10px; bottom: 10px; display: flex; }
.pillbadge { font-size: 13px; font-weight: 700; padding: 4px 10px; }
.pillbadge.lime { background: var(--lime); color: #1c2400; border-radius: 99px 0 0 99px; }
.pillbadge.red { background: #e0442c; color: #fff; border-radius: 0 99px 99px 0; }
.pillbadge.solo { border-radius: 99px; }
.ccard .body2 { padding: 12px 10px 0; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.ccard .name { font-size: 19px; font-weight: 700; letter-spacing: -.3px; }
.ccard .name span { font-weight: 400; color: var(--muted); }
.attrs { display: flex; gap: 14px; flex-wrap: wrap; color: var(--text); font-size: 13.5px; border-bottom: 1px solid var(--border); padding-bottom: 9px; }
.attrs .green, .green { color: var(--ok); }
.ratingline { font-size: 13.5px; color: var(--ok); font-weight: 600; }
.pricerow { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; }
.pricerow .old { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.pricerow .new { font-size: 20px; font-weight: 800; color: var(--accent); }
.pricerow .new.plain { color: var(--text); }
.pricerow .total { color: var(--muted); font-size: 13px; }

/* ===== Страница машины (Step 1 of 2) ===== */
.crumb { color: var(--muted); font-size: 14px; margin-bottom: 2px; }
.backbtn { background: #fff; border: 1px solid var(--border); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.gallery { position: relative; border-radius: 20px; overflow: hidden; background: var(--panel2); }
.gallery img { width: 100%; height: 340px; object-fit: cover; display: block; }
.gallery .dots { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; }
.gallery .dots i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); margin: 0 3px; }
.gallery .dots i.on { background: #fff; }
.sect { margin-top: 24px; }
.sect h2 { margin: 0 0 12px; }
.optcard { background: #fff; border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; border: 1px solid transparent; }
.optcard + .optcard { margin-top: 8px; }
.optcard.selectable { cursor: pointer; }
.optcard.selected { border-color: var(--accent); }
.optcard .grow { flex: 1; }
.optcard b.t { font-size: 15px; }
.optcard .sub { color: var(--muted); font-size: 13.5px; }
.optcard .right { font-weight: 700; white-space: nowrap; }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #d7d5d0; flex-shrink: 0; margin-top: 2px; position: relative; }
.optcard.selected .radio { border-color: var(--accent); background: var(--accent); }
.optcard.selected .radio::after { content: "✓"; color: #fff; position: absolute; inset: 0; text-align: center; font-size: 13px; line-height: 20px; }
.linkline { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 16px; padding: 15px 16px; cursor: pointer; margin-top: 8px; font-weight: 600; }
.linkline .chev { color: var(--muted); }
.expand { display: none; padding: 10px 16px; color: var(--muted); font-size: 14px; }
.expand.open { display: block; }
.stickybar {
  position: sticky; bottom: 14px; background: #fff; border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12); padding: 14px 18px; margin-top: 26px;
}
.stickybar .ok-line { text-align: center; font-size: 13.5px; margin-bottom: 10px; }
.stickybar .btn { width: 100%; }
.stickybar .hint { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.toggle { width: 46px; height: 28px; border-radius: 99px; background: #d8d6d1; position: relative; cursor: pointer; flex-shrink: 0; transition: background .15s; border: 0; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle.on { background: var(--ok); }
.toggle.on::after { left: 21px; }

/* ===== Чек (Step 2 of 2) ===== */
.receipt { background: #f7f6f2; padding: 22px 20px; position: relative; margin: 12px 0; }
.receipt::before, .receipt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background-image: linear-gradient(45deg, #f7f6f2 25%, transparent 25%),
    linear-gradient(-45deg, #f7f6f2 25%, transparent 25%);
  background-size: 20px 20px; background-repeat: repeat-x;
}
.receipt::before { top: -10px; background-position: 0 0; }
.receipt::after { bottom: -10px; transform: scaleY(-1); background-position: 0 0; }
.rrow { display: flex; justify-content: space-between; padding: 5px 0; font-size: 15px; }
.rrow .g { color: var(--ok); font-weight: 700; }
.rrow.big { font-weight: 800; font-size: 17px; }
.rrow small { color: var(--muted); font-weight: 400; }
.rrow .old { color: var(--muted); text-decoration: line-through; margin-right: 8px; }
.promo { width: 100%; background: #eceae5; border: 0; border-radius: 12px; padding: 13px 16px; margin: 12px 0; font: inherit; }
.paybox { background: #fff; border-radius: 16px; padding: 16px; margin: 10px 0; }
.paybox .hr { border-top: 1px solid var(--border); margin: 13px 0; }
.cardlogos { display: inline-flex; gap: 5px; margin-top: 6px; }
.cardlogos i { font-style: normal; font-size: 10.5px; font-weight: 800; border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; }
.formfield { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 13px 16px; width: 100%; font: inherit; margin-top: 10px; }
.checkline { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0; font-size: 15px; }
.checkbox { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: #fff; border: 0; cursor: pointer; font-size: 15px; flex-shrink: 0; }
.checkbox.off { background: #fff; border: 1px solid var(--border); color: transparent; }
