/* Oil Day website. Light only, RTL, IBM Plex Sans Arabic. */

:root {
  --bg: #FFFFFF;
  --surface: #F4F7FB;
  --border: #E3E9F1;
  --text: #0F1B2D;
  --muted: #5B6B80;
  --blue: #1D5FD1;
  --blue-dark: #174CA8;
  --blue-light: #E8F0FC;
  --green: #157A4A;
  --green-light: #E6F4EC;
  --orange: #A15C00;
  --orange-light: #FBF1E3;
  --red: #B42318;
  --red-light: #FCEBEA;

  --r-sm: 12px;
  --r: 14px;
  --r-lg: 16px;
  --btn-h: 50px;
  --topbar-h: 64px;
  --bottomnav-h: 64px;
  --maxw: 1120px;
  --gutter: 16px;

  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "lnum";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
svg { flex-shrink: 0; }
.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }

.skip {
  position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100;
  background: var(--blue); color: #fff; padding: 8px 14px; border-radius: var(--r-sm);
}
.skip:focus { top: 8px; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent); outline-offset: 2px; }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--topbar-h);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  max-width: var(--maxw); height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.brand__drop {
  width: 34px; height: 34px; border-radius: 10px; background: var(--blue-light);
  display: grid; place-items: center;
}
.brand__drop svg { width: 20px; height: 20px; fill: var(--blue); }
.brand__name { font-weight: 700; font-size: 19px; letter-spacing: -.2px; }

.topnav { display: flex; gap: 4px; }
.topnav a {
  color: var(--muted); padding: 8px 14px; border-radius: 10px; font-weight: 500;
  transition: background .15s, color .15s;
}
.topnav a:hover { background: var(--surface); color: var(--text); }
.topnav a.active { color: var(--blue); background: var(--blue-light); }

.account { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.account__name { font-weight: 600; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account__avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--blue-light); color: var(--blue);
  display: grid; place-items: center; font-weight: 700;
}

/* ---------------------------------------------------------------- bottom nav (mobile) */
.bottomnav { display: none; }

/* ---------------------------------------------------------------- layout */
.view {
  max-width: var(--maxw); margin: 0 auto;
  padding: calc(var(--topbar-h) + 28px) var(--gutter) 64px;
  min-height: 100vh; outline: none;
}
.page { animation: page-in .35s ease-out both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.section { margin-top: 56px; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section__title { font-size: 24px; }
.section__sub { color: var(--muted); margin-top: 4px; }
.page-title { font-size: 28px; }
.page-sub { color: var(--muted); margin-top: 6px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h); padding: 0 22px; border-radius: var(--r-sm);
  border: 1px solid transparent; background: var(--surface); color: var(--text);
  font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--outline { background: var(--bg); border-color: var(--border); }
.btn--outline:hover { border-color: #C9D3E0; background: var(--surface); }
.btn--danger { background: var(--bg); border-color: #F1C9C5; color: var(--red); }
.btn--danger:hover { background: var(--red-light); }
.btn--danger-solid { background: var(--red); color: #fff; }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--surface); }
.btn--sm { height: 40px; padding: 0 14px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn .spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- cards / chips */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
.card--surface { background: var(--surface); border-color: transparent; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface); color: var(--muted);
}
.chip--blue { background: var(--blue-light); color: var(--blue); }
.chip--green { background: var(--green-light); color: var(--green); }
.chip--orange { background: var(--orange-light); color: var(--orange); }
.chip--red { background: var(--red-light); color: var(--red); }

.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r);
  background: var(--blue-light); color: var(--text);
}
.notice svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 2; margin-top: 2px; }
.notice--orange { background: var(--orange-light); }
.notice--orange svg { stroke: var(--orange); }
.notice--red { background: var(--red-light); }
.notice--red svg { stroke: var(--red); }
.notice b { display: block; }

/* ---------------------------------------------------------------- home */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
}
.hero__greet { color: var(--blue); font-weight: 600; margin-bottom: 10px; }
.hero__title { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.25; letter-spacing: -.3px; }
.hero__lead { color: var(--muted); font-size: 18px; margin-top: 14px; max-width: 36ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero__facts { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: 15px; }
.hero__facts span { display: inline-flex; align-items: center; gap: 6px; }
.hero__facts svg { width: 18px; height: 18px; stroke: var(--blue); fill: none; stroke-width: 2; }

.hero__art {
  position: relative; aspect-ratio: 1; max-width: 380px; width: 100%; justify-self: center;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--surface);
}
.hero__art .ring {
  position: absolute; inset: 22%; border-radius: 50%; border: 2px solid var(--blue);
  opacity: 0; animation: pulse 3.2s ease-out infinite;
}
.hero__art .ring:nth-child(2) { animation-delay: 1.05s; }
.hero__art .ring:nth-child(3) { animation-delay: 2.1s; }
@keyframes pulse {
  0% { transform: scale(.85); opacity: .5; }
  100% { transform: scale(1.75); opacity: 0; }
}
.hero__drop {
  position: relative; width: 42%; aspect-ratio: 1; border-radius: 30%;
  background: var(--blue); display: grid; place-items: center;
}
.hero__drop svg { width: 56%; height: 56%; fill: #fff; }

.oil-reminder { margin-top: 28px; }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.service {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; background: var(--bg);
}
.service--featured { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.service__badge { position: absolute; top: -12px; inset-inline-start: 18px; }
.service__icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--blue-light);
  display: grid; place-items: center;
}
.service__icon svg { width: 24px; height: 24px; stroke: var(--blue); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service__name { font-size: 20px; }
.service__desc { color: var(--muted); flex: 1; }
.service__price { font-size: 26px; font-weight: 700; }
.service__price small { font-size: 15px; color: var(--muted); font-weight: 500; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--surface); border-radius: var(--r-lg); padding: 20px; }
.step__n {
  width: 34px; height: 34px; border-radius: 50%; background: var(--bg); color: var(--blue);
  border: 1px solid var(--border); display: grid; place-items: center; font-weight: 700; margin-bottom: 12px;
}
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: 16px; }
.label { font-weight: 600; font-size: 15px; }
.label small { color: var(--muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; height: var(--btn-h); padding: 0 14px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--bg); transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 86px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.input.invalid, .select.invalid, .textarea.invalid { border-color: var(--red); }
.input--ltr { direction: ltr; text-align: right; }
.input--pin { letter-spacing: 6px; }
.error { color: var(--red); font-size: 14px; min-height: 0; }
.error:empty { display: none; }
.form-error { margin-top: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row .field + .field { margin-top: 0; }

/* ---------------------------------------------------------------- auth */
.auth { max-width: 440px; margin: 0 auto; }
.auth .card { padding: 28px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: var(--r-sm); padding: 4px; margin-bottom: 22px; }
.tab {
  height: 42px; border: 0; border-radius: 10px; background: transparent; font-weight: 600; color: var(--muted); cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--bg); color: var(--text); box-shadow: 0 1px 2px rgba(15, 27, 45, .06); }

/* ---------------------------------------------------------------- booking */
.book { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; margin-top: 24px; }
.book__form { display: flex; flex-direction: column; gap: 16px; }
.block { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
.block__title { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 14px; }
.block__n {
  width: 28px; height: 28px; border-radius: 50%; background: var(--blue-light); color: var(--blue);
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.choice {
  position: relative; display: flex; flex-direction: column; gap: 4px; text-align: start;
  border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; background: var(--bg); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.choice:hover { border-color: #C9D3E0; }
.choice[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-light); box-shadow: 0 0 0 1px var(--blue) inset; }
.choice__title { font-weight: 600; }
.choice__meta { color: var(--muted); font-size: 14px; }
.choice__price { font-weight: 700; }
.choice__check {
  position: absolute; top: 12px; inset-inline-end: 12px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--bg);
}
.choice[aria-pressed="true"] .choice__check { border-color: var(--blue); background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; }
.choice-grid--compact { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choice-grid--compact .choice { padding: 12px 14px; }

.map {
  height: 300px; border-radius: var(--r); border: 1px solid var(--border); overflow: hidden; z-index: 0;
  background: var(--surface);
}
.map-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.map-status { color: var(--muted); font-size: 14px; }
.map-status.ok { color: var(--green); }
.leaflet-container { font-family: inherit; }
.pin {
  width: 34px; height: 34px; border-radius: 50% 50% 50% 0; background: var(--blue);
  transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(15, 27, 45, .3);
}

.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.day {
  flex: 1 0 78px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 6px; background: var(--bg); cursor: pointer;
}
.day__name { font-size: 13px; color: var(--muted); }
.day__num { font-size: 20px; font-weight: 700; }
.day__month { font-size: 12px; color: var(--muted); }
.day[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.day[aria-pressed="true"] .day__name, .day[aria-pressed="true"] .day__month { color: rgba(255, 255, 255, .85); }

.hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 14px; }
.hour {
  height: 46px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg);
  font-weight: 600; cursor: pointer;
}
.hour:hover:not([disabled]) { border-color: var(--blue); }
.hour[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.hour[disabled] { background: var(--surface); color: #9AA7B8; text-decoration: line-through; cursor: not-allowed; border-color: transparent; }
.hours-note { color: var(--muted); font-size: 14px; margin-top: 10px; }

.summary { position: sticky; top: calc(var(--topbar-h) + 20px); }
.summary .card { padding: 22px; }
.summary__title { font-size: 18px; margin-bottom: 14px; }
.summary__rows { display: flex; flex-direction: column; gap: 10px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; }
.summary__row dt { color: var(--muted); }
.summary__row dd { margin: 0; font-weight: 600; text-align: end; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--border); margin-top: 16px; padding-top: 16px; }
.summary__total b { font-size: 26px; }
.summary .btn { margin-top: 18px; }
.summary__hint { color: var(--muted); font-size: 13px; margin-top: 10px; text-align: center; }

/* ---------------------------------------------------------------- my bookings */
.bookings { display: flex; flex-direction: column; gap: 14px; }
.bk { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; background: var(--bg); }
.bk--current { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.bk__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bk__id { color: var(--muted); font-size: 14px; }
.bk__title { font-size: 18px; margin-top: 2px; }
.bk__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 15px; margin-top: 10px; }
.bk__meta span { display: inline-flex; align-items: center; gap: 6px; }
.bk__meta svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }
.bk__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.bk__note { margin-top: 12px; color: var(--muted); font-size: 15px; }

.progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 18px; }
.progress__step { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.progress__bar { height: 6px; border-radius: 3px; background: var(--border); }
.progress__step.done .progress__bar { background: var(--blue); }
.progress__step.now { color: var(--blue); font-weight: 600; }
.progress__step.now .progress__bar { background: var(--blue); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .45; } }

.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.photo { position: relative; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo span { position: absolute; top: 8px; inset-inline-start: 8px; background: rgba(15, 27, 45, .7); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 999px; }

.stars { display: inline-flex; gap: 2px; direction: ltr; }
.star { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; padding: 4px; }
.star svg { width: 100%; height: 100%; fill: var(--border); transition: fill .1s; }
.star.on svg { fill: #E5A000; }
.stars--static .star { width: 20px; height: 20px; padding: 0; cursor: default; }
.rate { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.rate__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--border); border-radius: var(--r-lg); }
.empty svg { width: 46px; height: 46px; stroke: var(--muted); fill: none; stroke-width: 1.6; margin: 0 auto 12px; }
.empty h3 { font-size: 18px; }
.empty p { color: var(--muted); margin: 6px 0 18px; }

/* ---------------------------------------------------------------- about */
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; margin-top: 24px; }
.about__text p + p { margin-top: 14px; }
.about__text p { color: #2F3D52; font-size: 17px; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.value { background: var(--surface); border-radius: var(--r); padding: 16px; }
.value b { display: block; margin-bottom: 2px; }
.value p { color: var(--muted); font-size: 15px !important; }
.contact { display: flex; flex-direction: column; }
.contact__row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.contact__row:last-child { border-bottom: 0; }
.contact__row svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact__row small { display: block; color: var(--muted); font-size: 13px; }
a.contact__row:hover b { color: var(--blue); }

/* ---------------------------------------------------------------- our work (gallery) */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 24px; }
.gitem { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.gitem__media { position: relative; aspect-ratio: 4 / 3; background: #E9EEF5; }
.gitem__media img, .gitem__media video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--surface); }
.gitem__media button { all: unset; cursor: zoom-in; display: block; width: 100%; height: 100%; }
.gitem__media button:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.gitem__badge {
  position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(15, 27, 45, .72); color: #fff;
  font-size: 12px; padding: 2px 10px; border-radius: 999px; pointer-events: none;
}
.gitem figcaption { padding: 12px 14px; font-size: 15px; color: #2F3D52; }
.modal.lightbox { max-width: min(960px, 100%); padding: 0; overflow: hidden; background: #0F1B2D; position: relative; }
.modal.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; }
.modal.lightbox p { color: #fff !important; padding: 12px 16px; margin: 0 !important; }
.lightbox__close {
  position: absolute; top: 10px; inset-inline-end: 10px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .9); cursor: pointer; display: grid; place-items: center;
}
.lightbox__close svg { width: 20px; height: 20px; stroke: var(--text); fill: none; stroke-width: 2.4; }

/* ---------------------------------------------------------------- modal / toast */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(15, 27, 45, .45);
  display: grid; place-items: center; padding: var(--gutter); animation: fade .2s ease-out;
}
.modal {
  width: 100%; max-width: 420px; background: var(--bg); border-radius: var(--r-lg); padding: 26px;
  animation: pop .22s ease-out;
}
.modal__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; }
.modal__icon svg { width: 28px; height: 28px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.modal__icon--ok { background: var(--green-light); } .modal__icon--ok svg { stroke: var(--green); }
.modal__icon--warn { background: var(--red-light); } .modal__icon--warn svg { stroke: var(--red); }
.modal h2 { font-size: 22px; }
.modal p { color: var(--muted); margin-top: 6px; }
.modal__big { font-size: 34px; font-weight: 700; color: var(--text); margin: 12px 0 2px; }
.modal__actions { display: flex; gap: 10px; margin-top: 22px; }
.modal__actions .btn { flex: 1; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

.toast {
  position: fixed; inset-inline: 0; bottom: 24px; margin: 0 auto; width: max-content; max-width: calc(100% - 32px);
  background: var(--text); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); z-index: 90;
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: none; }
.toast--error { background: var(--red); }

.loading { display: grid; place-items: center; min-height: 40vh; color: var(--muted); gap: 10px; }
.loading .spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.skeleton { background: var(--surface); animation: blink 1.4s ease-in-out infinite; border-radius: var(--r-lg); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero__art { max-width: 260px; order: -1; }
}
@media (max-width: 720px) {
  .hero__art { max-width: 150px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .book { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .about { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  :root { --topbar-h: 58px; }
  .topnav { display: none; }
  .account__name { display: none; }
  .view { padding-top: calc(var(--topbar-h) + 18px); padding-bottom: calc(var(--bottomnav-h) + 32px + env(safe-area-inset-bottom)); }
  .section { margin-top: 40px; }
  .section__title { font-size: 21px; }
  .page-title { font-size: 24px; }
  .hero__lead { font-size: 16px; }
  .hero__actions .btn { flex: 1; }
  .steps { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .row .field + .field { margin-top: 16px; }
  .block { padding: 16px; }
  .map { height: 260px; }
  .values { grid-template-columns: 1fr; }
  .auth .card { padding: 20px; }
  .toast { bottom: calc(var(--bottomnav-h) + 16px + env(safe-area-inset-bottom)); }

  .bottomnav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; inset: auto 0 0 0; z-index: 50;
    height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--border);
  }
  .bottomnav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--muted); font-size: 12px; font-weight: 500;
  }
  .bottomnav svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .bottomnav a.active { color: var(--blue); }
  .bottomnav a.active svg { stroke-width: 2.4; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero__art .ring { display: none; }
}

@media (min-width: 721px) { .photos { grid-template-columns: repeat(3, 1fr); } }

/* number of cars (− 1 +) */
.block__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.block__head .block__title { margin-bottom: 0; }
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper__label { color: var(--muted); font-size: 14px; }
.stepper__btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg);
  font-size: 22px; line-height: 1; cursor: pointer; color: var(--blue); font-weight: 700;
}
.stepper__btn:hover:not([disabled]) { border-color: var(--blue); background: var(--blue-light); }
.stepper__btn[disabled] { color: #B5C0CE; cursor: not-allowed; }
.stepper__val { min-width: 24px; text-align: center; font-size: 20px; font-weight: 700; }
.cars-hint { color: var(--orange); font-size: 14px; margin: -6px 0 12px; }
