/* Цвета из логотипа GERENT: графит + медь, яркость дают фото Грузии */
:root {
  --ink: #1d2a31;
  --ink-2: #2c3d46;
  --copper: #c4823a;
  --copper-strong: #b06f27;
  --copper-soft: #f8ead8;
  --sun: #ffc24b;
  --bg: #fbf8f3;
  --surface: #ffffff;
  --text: #1d2a31;
  --muted: #5f6b71;
  --line: #e7e0d6;
  --free: #1c7c4f;
  --free-soft: #e1f4ea;
  --busy: #c0392b;
  --busy-soft: #fde9e6;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(29 42 49 / 0.06), 0 10px 30px rgb(29 42 49 / 0.08);
  --shadow-lg: 0 20px 50px rgb(29 42 49 / 0.25);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12191d;
    --surface: #1b252b;
    --text: #eef1f2;
    --muted: #9eabb1;
    --line: #2d3a41;
    --copper: #dd9a4e;
    --copper-strong: #e8a95f;
    --copper-soft: #3a2c1c;
    --free: #5fd09a;
    --free-soft: #163428;
    --busy: #f08a7e;
    --busy-soft: #3b1f1c;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Georgian", sans-serif;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.section { padding-top: 56px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.lead-dark { color: var(--muted); max-width: 640px; margin: -4px 0 24px; font-size: 1.05rem; }

/* шапка */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgb(29 42 49 / 0.92); color: #fff;
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.top__in { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; flex: none; }
.logo__icon { width: 40px; height: 27px; color: #fff; }
.logo__text { font-weight: 900; font-size: 1.35rem; letter-spacing: 0.04em; }
.logo__text b { color: var(--copper); font-weight: 900; }
.nav { display: none; gap: 22px; margin-left: auto; font-size: 0.95rem; }
.nav a { text-decoration: none; opacity: 0.85; }
.nav a:hover { opacity: 1; color: var(--sun); }
@media (min-width: 900px) { .nav { display: flex; } }
.langs { display: flex; gap: 4px; margin-left: auto; }
@media (min-width: 900px) { .langs { margin-left: 8px; } }
.langs button {
  border: 1px solid rgb(255 255 255 / 0.25); background: transparent; color: rgb(255 255 255 / 0.8);
  border-radius: 8px; padding: 4px 8px; font: inherit; font-size: 0.8rem; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--copper); border-color: var(--copper); color: #fff; }

/* первый экран */
.hero {
  position: relative; color: #fff; margin-top: -60px; padding: 120px 0 56px;
  background:
    linear-gradient(180deg, rgb(15 24 30 / 0.55) 0%, rgb(15 24 30 / 0.2) 45%, rgb(15 24 30 / 0.75) 100%),
    url("/img/georgia/hero.jpg") center 40% / cover no-repeat, var(--ink);
}
@media (min-width: 900px) {
  .hero { padding: 170px 0 80px; min-height: 86vh; display: flex; align-items: flex-end; }
  .hero__in { width: 100%; }
}
.hero__tag {
  display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px;
  background: var(--copper); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.03em;
}
.hero h1 { max-width: 820px; text-shadow: 0 2px 20px rgb(0 0 0 / 0.35); }
.lead { max-width: 640px; margin: 0 0 20px; font-size: 1.1rem; color: rgb(255 255 255 / 0.92); text-shadow: 0 1px 10px rgb(0 0 0 / 0.4); }
.badges { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgb(255 255 255 / 0.14); border: 1px solid rgb(255 255 255 / 0.25);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-weight: 600; font-size: 0.92rem;
}
.badges svg, .why__card svg { width: 22px; height: 22px; fill: none; stroke: var(--sun); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.search {
  display: grid; gap: 12px; grid-template-columns: 1fr 1fr;
  background: var(--surface); color: var(--text); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-lg); max-width: 780px;
}
.search .btn { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .search { grid-template-columns: 1fr 1fr auto auto; align-items: end; padding: 18px; }
  .search .btn { grid-column: auto; }
}
label { display: grid; gap: 4px; font-size: 0.875rem; color: var(--muted); }
input, textarea {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; width: 100%; min-width: 0;
}
input:focus, textarea:focus { outline: 2px solid var(--copper); outline-offset: 1px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 12px; padding: 12px 20px; font: inherit; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.1s, filter 0.15s, background 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: linear-gradient(135deg, var(--copper), var(--copper-strong)); color: #fff; box-shadow: 0 6px 16px rgb(196 130 58 / 0.35); }
.btn--primary:hover { filter: brightness(1.07); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--copper); color: var(--copper-strong); }
.btn--wide { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: default; box-shadow: none; }

/* каталог */
.cars__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.cars__head p { margin: 0 0 0.5em; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 7px 16px; font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.notice { grid-column: 1 / -1; background: var(--busy-soft); color: var(--busy); padding: 12px 16px; border-radius: 12px; margin: 0; }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgb(29 42 49 / 0.14); }
.card--busy { opacity: 0.55; }
.card__img { aspect-ratio: 16 / 10; background: #ece6dd; cursor: pointer; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card__img img { transform: scale(1.04); }
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__body h3 { margin: 0; }
.card__body .btn { margin-top: auto; }
.specs { color: var(--muted); margin: 0; font-size: 0.9rem; }
.price { margin: 2px 0 8px; }
.price b { font-size: 1.45rem; color: var(--copper-strong); }
.badge { margin: 0 0 8px; padding: 7px 10px; border-radius: 10px; font-size: 0.875rem; }
.badge--free { background: var(--free-soft); color: var(--free); }
.badge--busy { background: var(--busy-soft); color: var(--busy); }

/* страховка и поддержка */
.why { margin-top: 56px; padding-bottom: 56px; background: var(--ink); color: #fff; }
.why h2 { color: #fff; }
.why__grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .why__grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.why__card { background: var(--ink-2); border-radius: var(--radius); padding: 22px; border: 1px solid rgb(255 255 255 / 0.08); }
.why__card--main { background: linear-gradient(145deg, var(--copper), #9a5c1d); border: 0; }
.why__card--main svg { stroke: #fff; }
.why__card svg { width: 36px; height: 36px; margin-bottom: 12px; }
.why__card h3 { font-size: 1.3rem; }
.why__card p { margin: 0 0 12px; color: rgb(255 255 255 / 0.85); }
.why__card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.why__card li { position: relative; padding-left: 26px; }
.why__card li::before {
  content: "✓"; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: rgb(255 255 255 / 0.2); display: grid; place-items: center; font-size: 0.7rem; font-weight: 900;
}

/* куда поехать */
.trips { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .trips { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .trips { grid-template-columns: repeat(4, 1fr); } .trip--wide { grid-column: span 2; } }
.trip { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px; color: #fff; background: var(--ink); box-shadow: var(--shadow); }
.trip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.trip:hover img { transform: scale(1.05); }
.trip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgb(10 18 22 / 0.85)); }
.trip__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; z-index: 1; }
.trip__body h3 { font-size: 1.35rem; margin: 6px 0 4px; }
.trip__body p { margin: 0; font-size: 0.92rem; color: rgb(255 255 255 / 0.88); }
.trip__km { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: 0.8rem; font-weight: 800; }

/* как арендовать, контакты */
.how ol { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; counter-reset: s; }
@media (min-width: 720px) { .how ol { grid-template-columns: repeat(3, 1fr); } }
.how li {
  counter-increment: s; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 18px 18px 64px; position: relative; font-weight: 500;
}
.how li::before {
  content: counter(s); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px;
  border-radius: 50%; background: var(--copper); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.contacts__list { display: flex; flex-wrap: wrap; gap: 10px; }
.contacts__list .btn { background: var(--surface); box-shadow: var(--shadow); border: 0; }
.foot { margin-top: 64px; padding: 28px 0; background: var(--ink); color: rgb(255 255 255 / 0.75); font-size: 0.875rem; }
.foot__in { display: grid; gap: 12px; }
.logo__text--foot { font-size: 1.1rem; color: #fff; }
.foot__credits { margin: 0; font-size: 0.75rem; opacity: 0.75; }
.foot__credits a { color: inherit; }

/* окно машины */
.modal {
  width: min(740px, 100%); max-height: 100dvh; margin: auto; padding: 0;
  border: 0; border-radius: var(--radius); background: var(--surface); color: var(--text);
}
@media (max-width: 600px) { .modal { border-radius: 0; height: 100dvh; max-width: 100%; } }
.modal::backdrop { background: rgb(15 24 30 / 0.6); }
.modal__body { padding: 16px; display: grid; gap: 10px; }
.modal__close {
  position: sticky; top: 8px; display: block; margin: 8px 8px -48px auto; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; font-size: 1.6rem; line-height: 1;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow); cursor: pointer;
}
.modal h3 { font-size: 1.5rem; margin: 0; }
.modal .price { font-size: 1.1rem; font-weight: 700; color: var(--copper-strong); }
.desc { margin: 0; white-space: pre-line; }
.desc:empty { display: none; }
.gallery__main { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; background: #ece6dd; }
.gallery__credit { margin: 4px 0 0; font-size: 0.75rem; color: var(--muted); }
.gallery__credit:empty { display: none; }
.gallery__thumbs { display: flex; gap: 6px; overflow-x: auto; margin-top: 6px; }
.gallery__thumbs button { padding: 0; border: 0; background: none; cursor: pointer; flex: 0 0 72px; }
.gallery__thumbs img { width: 72px; height: 48px; object-fit: cover; border-radius: 6px; }

/* календарь */
.cal { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; position: relative; }
.cal__nav { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.cal__nav button {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 1.2rem; cursor: pointer;
}
.cal__nav button:disabled { opacity: 0.3; cursor: default; }
.cal__months { display: grid; gap: 16px; }
@media (min-width: 600px) { .cal__months { grid-template-columns: 1fr 1fr; } }
.cal__title { font-weight: 700; margin: 4px 0 8px; min-height: 32px; display: flex; align-items: center; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal__wd { font-size: 0.75rem; color: var(--muted); padding-bottom: 2px; }
.cal__day {
  aspect-ratio: 1; border: 0; border-radius: 8px; background: transparent; color: var(--text);
  font: inherit; font-size: 0.9rem; cursor: pointer; min-height: 34px;
}
.cal__day:hover:not(:disabled) { background: var(--copper-soft); }
.cal__day.is-past { color: var(--muted); opacity: 0.45; cursor: default; }
.cal__day.is-busy { background: var(--busy-soft); color: var(--busy); text-decoration: line-through; }
.cal__day.is-range { background: var(--copper-soft); }
.cal__day.is-edge { background: var(--copper); color: #fff; text-decoration: none; }
.cal__day:disabled { cursor: default; }
.cal p { margin: 8px 0 0; }

/* форма заявки */
.req { display: grid; gap: 10px; }
.req__dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.estimate { margin: 0; font-weight: 700; }
.estimate:empty { display: none; }
.estimate.is-error, .form-msg.is-error { color: var(--busy); }
.form-msg { margin: 0; }
.form-msg:empty { display: none; }
.form-msg.is-ok { background: var(--free-soft); color: var(--free); padding: 12px; border-radius: 12px; }
.check { display: flex; gap: 8px; align-items: flex-start; color: var(--text); }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--copper); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* телефон: компактнее, две колонки машин, ленты с пролистыванием */
@media (max-width: 640px) {
  .section { padding-top: 40px; }
  .hero { padding: 96px 0 28px; }
  .hero__tag { font-size: 0.75rem; margin-bottom: 10px; }
  .lead { font-size: 1rem; margin-bottom: 14px; }
  .badges { gap: 6px; margin-bottom: 16px; }
  .badges li { padding: 5px 10px 5px 7px; font-size: 0.78rem; gap: 5px; }
  .badges svg { width: 16px; height: 16px; }
  .search { padding: 12px; gap: 10px; }

  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { border-radius: 14px; }
  .card:hover { transform: none; }
  .card__img { aspect-ratio: 4 / 3; }
  .card__body { padding: 10px 12px 12px; gap: 2px; }
  .card__body h3 { font-size: 0.95rem; }
  .specs { font-size: 0.75rem; }
  .price { margin: 4px 0 8px; font-size: 0.85rem; }
  .price b { font-size: 1.15rem; }
  .badge { font-size: 0.72rem; padding: 5px 7px; }
  .card__body .btn { padding: 9px 8px; font-size: 0.85rem; white-space: normal; }

  .why__grid, .trips {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none;
  }
  .why__grid::-webkit-scrollbar, .trips::-webkit-scrollbar { display: none; }
  .why__card, .trip { flex: 0 0 82%; scroll-snap-align: center; }
  .trip { min-height: 300px; }
  .how li { padding: 14px 14px 14px 58px; }
}
