/* RentacarBG — mobile-first stylesheet. Tokens first; components below. */

@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/onest-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/onest-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-tight-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-tight-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --card: #EBEEF2;
  --card-hover: #E2E6EC;
  --ink: #172235;
  --ink-2: #2B3850;
  --muted: #5B6576;
  --line: #D9DEE5;
  --amber: #F2A20C;
  --amber-hover: #E39300;
  --amber-soft: #FDF1D8;
  --offer: #D23F66;
  --ok: #1E7F4F;
  --danger: #B42318;

  --f-display: "Inter Tight", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --r-lg: 28px;
  --r-md: 22px;
  --r-sm: 12px;
  --wrap: 1240px;
  --gutter: 16px;
  --bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.55 var(--f-body);
  font-feature-settings: "ss01" 0;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--amber) 80%, transparent); text-underline-offset: .18em; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.15; text-wrap: balance; }
h1 { font: 700 clamp(1.875rem, 1.2rem + 3.2vw, 3.25rem)/1.08 var(--f-display); letter-spacing: -.018em; }
h2 { font: 700 clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem)/1.12 var(--f-display); letter-spacing: -.012em; }
h3 { font-size: 1.125rem; font-weight: 650; }
p { margin: 0 0 1em; }
.lead { font-size: 1.125rem; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 20px; height: 20px; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }

/* ---------- buttons, chips, forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 999px; border: 0;
  font: 650 1rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-hover); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--card); color: var(--ink); cursor: pointer; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 calc(var(--gutter) * -1) 20px; padding-inline: var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-weight: 550; white-space: nowrap; }
.chip span { color: var(--muted); font-weight: 500; }
.chip[aria-current], .chip:hover { background: var(--ink); color: #fff; box-shadow: none; }
.chip[aria-current] span, .chip:hover span { color: #C9D1DE; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, fieldset legend { font-size: .875rem; font-weight: 600; color: var(--ink-2); }
input[type="date"] { cursor: pointer; }
input, select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 400 1rem/1.3 var(--f-body);
}
select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23172235' stroke-width='2'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 45%, transparent); }
fieldset { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
fieldset legend { padding: 0; margin-bottom: 6px; }
.dt { display: grid; grid-template-columns: 1fr 108px; gap: 8px; }
.dt legend { grid-column: 1 / -1; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; font-size: .9375rem; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--ink); flex: none; }
.check small, .extra small { color: var(--muted); display: block; font-size: .8125rem; }
.hint { margin: 0; font-size: .8125rem; color: var(--muted); }
.err { margin: 0; font-size: .875rem; color: var(--danger); min-height: 0; }
.err:empty { display: none; }
.alert { background: #FDECEC; color: var(--danger); padding: 12px 14px; border-radius: var(--r-sm); }
.return-place { display: none; }
form:has(input[name="ro"]:checked) .return-place { display: grid; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 40px; height: 23px; color: #E39101; }
.logo-word { font: 750 1.25rem/1 var(--f-display); letter-spacing: -.03em; }
.logo-word span { font-weight: 400; }
.logo-light { color: #fff; }
.nav-main { display: none; margin-left: 8px; }
.nav-main ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-main a { display: block; padding: 10px 12px; border-radius: 999px; text-decoration: none; font-weight: 550; }
.nav-main a:hover, .nav-main a[aria-current] { background: var(--card); }
.header-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.lang-switch { display: none; list-style: none; margin: 0; padding: 0; font-size: .8125rem; font-weight: 650; }
.lang-switch a { display: grid; place-items: center; min-width: 36px; height: 36px; border-radius: 8px; text-decoration: none; color: var(--muted); }
.lang-switch a[aria-current] { color: var(--ink); background: var(--card); }
.header-phone { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; }
.header-phone span { display: none; }
.menu-mobile { position: relative; }
.menu-mobile summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile[open] summary { background: var(--card); }
.menu-panel { position: absolute; right: 0; top: 52px; width: min(300px, calc(100vw - 32px)); background: var(--surface); border-radius: var(--r-md); box-shadow: 0 18px 50px rgba(23, 34, 53, .18); padding: 10px; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel a { display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none; font-weight: 600; }
.menu-panel .sub a { font-weight: 450; color: var(--ink-2); padding-left: 26px; }
.menu-panel a:hover { background: var(--card); }
.menu-langs { display: flex !important; gap: 6px; border-top: 1px solid var(--line); margin-top: 8px !important; padding-top: 8px !important; }
.menu-langs a { padding: 10px 12px; font-size: .875rem; }
.menu-langs a[aria-current] { background: var(--card); }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 14px auto 0; padding: 0; font-size: .875rem; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- layout sections ---------- */
.section { padding-block: 40px; }
.section-first { padding-top: 24px; }
.section-tint { background: var(--surface); }
.section-head { max-width: 680px; margin-bottom: 20px; }
.section-head p { color: var(--ink-2); }
.more { margin-top: 24px; text-align: center; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.4em; }

/* ---------- hero ---------- */
.hero { padding-top: 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.hero-copy h1 { max-width: 16ch; }
.hero-loc .hero-copy h1 { max-width: 20ch; }
.hero-facts { display: flex; gap: 22px; list-style: none; margin: 22px 0 0; padding: 0; }
.hero-facts li { display: grid; gap: 2px; font-size: .875rem; color: var(--muted); }
.fact-n { font: 700 1.625rem/1 var(--f-display); color: var(--ink); }
.loc-facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.loc-facts li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.loc-facts .i { margin-top: 2px; color: var(--ink); }

/* home hero: photo as background, dark layer for contrast, search form on top */
.hero-home { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #fff; padding: 28px 0 32px; }
.hero-bg { position: absolute; inset: 0 0 auto; height: 470px; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-home::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14, 22, 36, .55) 0, rgba(14, 22, 36, .45) 170px, rgba(23, 34, 53, .92) 380px, var(--ink) 470px); }
.hero-home h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero-home .lead { color: #E4E9F1; max-width: 46ch; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); font-size: .8125rem; font-weight: 600; letter-spacing: .01em; }
.hero-kicker .i { width: 16px; height: 16px; color: var(--amber); }
.hero-home .hero-facts li { color: #C9D1DE; }
.hero-home .fact-n { color: #fff; }
.hero-home .hero-facts li:first-child .fact-n { color: var(--amber); }
.hero-home .search { color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }

.search { background: var(--surface); border-radius: var(--r-lg); padding: 20px; box-shadow: 0 1px 0 var(--line), 0 12px 32px rgba(23, 34, 53, .06); }
.search-title { font: 700 1.25rem/1.2 var(--f-display); margin-bottom: 16px; }

/* ---------- car cards ---------- */
.car-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 10px; }
.car-card {
  position: relative; cursor: pointer; display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--r-md); padding: 14px 14px 12px;
  transition: background-color .15s;
}
.car-card:hover { background: var(--card-hover); }
.car-link { text-decoration: none; order: 1; }
.car-link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.car-card:hover .car-name { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.car-link:focus-visible { outline: none; }
.car-card:has(.car-link:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.car-name { font: 600 .875rem/1.25 var(--f-body); margin: 0; }
.car-year { color: var(--muted); font-weight: 500; }
.car-price { order: 2; margin: 2px 0 4px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; }
.car-price .from { font-size: .8125rem; color: var(--muted); }
.car-price .amount { font: 700 1.625rem/1.05 var(--f-display); letter-spacing: -.025em; }
.car-price .unit { font-size: .8125rem; color: var(--muted); }
.car-price .busy { color: var(--danger); font-weight: 600; }
.car-img { order: 3; margin: 4px -4px 6px; aspect-ratio: 3 / 2; display: grid; place-items: center; overflow: hidden; border-radius: 14px; }
.car-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.car-specs { order: 4; display: flex; flex-wrap: wrap; gap: 4px 10px; list-style: none; margin: 0; padding: 0; font-size: .75rem; color: var(--muted); }
.car-specs li { display: flex; align-items: center; gap: 4px; min-width: 0; }
.car-specs li span { white-space: nowrap; }
.car-specs .i { width: 16px; height: 16px; }
.car-card.is-offer { background: var(--amber-soft); }
.badge-offer { position: absolute; z-index: 1; top: 12px; right: 12px; background: var(--offer); color: #fff; font-size: .75rem; font-weight: 650; padding: 4px 10px; border-radius: 999px; }
.car-card.is-busy { opacity: .62; }

/* ---------- coastline ---------- */
.coast { display: grid; gap: 22px; }
.coast-label { font: 700 1rem/1.2 var(--f-display); margin-bottom: 10px; }
.coast-stops { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.coast-stops::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: repeating-linear-gradient(to bottom, var(--ink) 0 6px, transparent 6px 11px); opacity: .35; }
.stop { position: relative; }
.stop::before { content: ""; position: absolute; left: -21px; top: 17px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--ink); }
.stop.is-main::before { background: var(--amber); box-shadow: inset 0 0 0 2px var(--ink); width: 14px; height: 14px; left: -22px; top: 16px; }
.stop a { display: grid; gap: 1px; padding: 9px 12px; border-radius: 14px; text-decoration: none; }
.stop a:hover { background: var(--surface); }
.stop-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.stop-name .i { width: 18px; height: 18px; }
.stop.is-main .stop-name { font-size: 1.0625rem; }
.stop-meta { display: flex; flex-wrap: wrap; gap: 0 12px; font-size: .8125rem; color: var(--muted); }
.stop-meta strong { color: var(--ok); font-weight: 600; }

/* ---------- why ---------- */
.why { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.why li { background: var(--surface); border-radius: var(--r-md); padding: 20px; }
.why-i { width: 28px; height: 28px; margin-bottom: 12px; color: var(--ink); }
.why h3 { margin-bottom: .35em; }
.why p { margin: 0; color: var(--ink-2); }

/* ---------- FAQ + contact card ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.faq-list { display: grid; gap: 8px; }
.faq details { background: var(--surface); border-radius: 16px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary h3 { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.faq-a { padding: 0 18px 4px; color: var(--ink-2); }

.contact-card { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 24px; }
.contact-card h2 { color: #fff; font-size: 1.375rem; }
.contact-card p { color: #C9D1DE; }
.msg-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.msg { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; font-weight: 600; font-size: .9375rem; overflow: hidden; }
.msg span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg:hover { background: rgba(255, 255, 255, .16); }
.msg-list li:has(.msg-phone), .msg-list li:has(.msg-email), .msg-list li:has(.msg-contacts) { grid-column: 1 / -1; }
.msg-contacts { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); background: transparent; }
.msg-contacts .msg-arrow { margin-left: auto; width: 18px; height: 18px; }
.msg-contacts:hover { background: #fff; color: var(--ink); }
.msg-phone { background: var(--amber); color: var(--ink); }
.msg-phone:hover { background: var(--amber-hover); }

/* ---------- steps, lists ---------- */
.steps { counter-reset: s; list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; max-width: 62ch; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 .9375rem/1 var(--f-display); }
.near { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.near a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-weight: 550; }
.near a:hover { background: var(--ink); color: #fff; }
.ticks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks .i { color: var(--ok); }

/* ---------- car page ---------- */
.car-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 18px; }
.car-head h1 { margin-bottom: 6px; }
.car-head-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; margin-bottom: 16px; }
.car-head-price .amount { font: 700 1.75rem/1 var(--f-display); }
.car-head-price .from, .car-head-price .unit { color: var(--muted); }
.class-link { margin-left: auto; font-size: .875rem; font-weight: 600; }
.gallery { position: relative; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; border-radius: var(--r-lg); scrollbar-width: none; background: var(--card); }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; aspect-ratio: 3 / 2; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; background: rgba(23, 34, 53, .78); color: #fff; border-radius: 999px; padding: 4px; }
.gallery-nav button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.gallery-nav button:hover { background: rgba(255, 255, 255, .15); }
.gallery-count { font-size: .8125rem; font-variant-numeric: tabular-nums; min-width: 32px; text-align: center; }
.spec-chips { list-style: none; margin: 16px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.spec-chips li { display: flex; align-items: center; gap: 12px; min-width: 0; background: var(--surface); border-radius: 14px; padding: 10px 14px; }
.spec-chips .i { color: var(--ink-2); }
.spec-txt { display: grid; min-width: 0; line-height: 1.25; }
.spec-k { font-size: .75rem; color: var(--muted); }
.spec-v { font-size: .9375rem; font-weight: 650; overflow-wrap: anywhere; }
.car-desc { font-size: 1.0625rem; }

.book-box { align-self: start; }
.book-form { background: var(--surface); border-radius: var(--r-lg); padding: 20px; box-shadow: 0 1px 0 var(--line), 0 12px 32px rgba(23, 34, 53, .06); }
.book-form h2 { font-size: 1.25rem; }
.extras { border-top: 1px solid var(--line); padding-top: 14px; }
.extra { margin-bottom: 10px; }
.extra:has(select) { display: grid; grid-template-columns: 1fr 80px; gap: 10px; align-items: center; }
.extra select { min-height: 44px; }
.quote { background: var(--bg); border-radius: 16px; padding: 14px 16px; margin: 6px 0 14px; }
.quote-hint { margin: 0; color: var(--muted); font-size: .9375rem; }
.quote dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 0; font-size: .9375rem; }
.quote dd { padding-left: 12px; }
.quote dt { color: var(--ink-2); }
.quote dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.quote .total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-weight: 650; }
.quote .total dd { font: 700 1.375rem/1 var(--f-display); }
.quote .note { grid-column: 1 / -1; font-size: .8125rem; color: var(--ok); }
.quote .dep { color: var(--muted); font-size: .875rem; }
.quote dt.dep { padding-top: 4px; }
.quote .due { font-weight: 650; }
.quote dd.due { font-family: var(--f-display); font-weight: 700; font-size: 1.0625rem; }
.quote .dep-note { grid-column: 1 / -1; text-align: left; padding: 0; font-size: .8125rem; color: var(--muted); }

/* ---------- contacts page ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.contact-form { background: var(--surface); border-radius: var(--r-lg); padding: 20px; box-shadow: 0 1px 0 var(--line), 0 12px 32px rgba(23, 34, 53, .06); }
.contact-form h2 { font-size: 1.375rem; }
.form-done { display: flex; gap: 14px; align-items: flex-start; background: #E7F4EC; border-radius: 16px; padding: 16px; }
.form-done[hidden] { display: none; }
.form-done h3 { margin: 0 0 4px; }
.form-done p { margin: 0; }
.done-i { width: 28px; height: 28px; color: var(--ok); }
.contact-side { display: grid; gap: 16px; }
.nap { background: var(--surface); border-radius: var(--r-lg); padding: 20px 24px; }
.nap-h { font-size: 1.25rem; margin-bottom: 4px; }
.nap address { font-style: normal; margin-bottom: 14px; }
.nap .btn { min-height: 46px; }
.contact-text { margin-top: 40px; }
.quote .warn { color: var(--danger); margin: 0; font-weight: 550; }
.via-h { margin: 16px 0 8px; font-weight: 650; font-size: .9375rem; }
.msg-compact .msg { background: var(--bg); color: var(--ink); min-height: 46px; }
.msg-compact .msg:hover { background: var(--card); }
.msg-compact .msg-phone { background: var(--ink); color: #fff; }
.msg-compact .msg-phone:hover { background: var(--ink-2); }
.book-form .muted.small { margin: 10px 0 0; }

.car-details { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 32px 8px; }
.cd-col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.cd-card { background: var(--surface); border-radius: var(--r-lg); padding: 20px; min-width: 0; }
.cd-card h2 { font-size: 1.375rem; margin-bottom: 14px; }
.cd-card h3 { font-size: 1rem; margin: 22px 0 10px; }
.cd-card > p:last-child { margin-bottom: 0; }
.spec-table, .price-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.spec-table th, .spec-table td { padding: 11px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { font-weight: 500; color: var(--muted); width: 42%; padding-right: 12px; }
.spec-table td { font-weight: 600; }
.price-table th, .price-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; border-radius: 14px; margin-bottom: 12px; background: var(--bg); }
.price-table { min-width: 440px; }
.price-table thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: .8125rem; white-space: nowrap; }
.price-table tbody th { font-weight: 550; white-space: nowrap; }
.price-table td { font-variant-numeric: tabular-nums; font-weight: 600; }
.ticks-2 { margin-bottom: 0; }
.extras-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.extras-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; background: var(--bg); border-radius: 12px; padding: 10px 14px; font-size: .9375rem; }
.extras-list li span:last-child { color: var(--muted); white-space: nowrap; }

/* ---------- booking dialog ---------- */
.booking-dialog { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--surface); color: var(--ink); }
.booking-dialog::backdrop { background: rgba(23, 34, 53, .55); }
.bd-form, .bd-done { padding: 18px var(--gutter) 28px; }
.bd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.bd-head h2 { margin: 0; font-size: 1.375rem; }
.bd-summary { background: var(--bg); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; font-size: .9375rem; }
.bd-summary strong { display: block; font-family: var(--f-display); font-weight: 600; }
.bd-grid { display: grid; gap: 0 14px; align-items: start; }
.agree a { font-weight: 600; position: relative; z-index: 1; }
form:has(select[name="airport"] option[value=""]:checked) .flight-field { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #C9D1DE; margin-top: 40px; padding-top: 40px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.footer-grid { display: grid; gap: 28px; }
.footer-brand p { margin-top: 14px; max-width: 34ch; }
.footer-brand address { font-style: normal; }
.footer-h { font: 600 .9375rem/1.2 var(--f-body); color: #fff; margin: 0 0 12px; }
.footer-links, .footer-contacts { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.footer-contacts a { display: inline-flex; align-items: center; gap: 10px; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 12px; padding-block: 18px; font-size: .8125rem; display: grid; gap: 4px; }
.footer-base p { margin: 0; }
.site-footer .muted { color: #AEB8C8; }

/* ---------- mobile contact bar ---------- */
.contact-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(3, 1fr) 1.6fr; gap: 6px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: var(--surface); box-shadow: 0 -8px 24px rgba(23, 34, 53, .1);
}
.cb-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; border: 0; border-radius: 12px; background: var(--bg); color: var(--ink); text-decoration: none; font: 600 .75rem/1.1 var(--f-body); cursor: pointer; }
.cb-btn .i { width: 20px; height: 20px; }
.cb-book { background: var(--amber); }
.cb-price { font: 700 .8125rem/1 var(--f-display); }

/* ---------- search results ---------- */
.search-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.search-side { display: grid; gap: 16px; align-content: start; }

/* ================= breakpoints ================= */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .car-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .car-card { padding: 18px 18px 14px; }
  .car-name { font-size: .9375rem; }
  .car-price .amount { font-size: 1.875rem; }
  .car-specs { font-size: .8125rem; }
  .header-phone span { display: inline; }
  .lang-switch { display: flex; }
  .why { grid-template-columns: 1fr 1fr; }
  .bd-grid { grid-template-columns: 1fr 1fr; }
  .spec-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ticks-2 { grid-template-columns: 1fr 1fr; gap: 10px 20px; }
  .cd-wide .extras-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cd-card { padding: 24px; }
  .bd-grid .span-2 { grid-column: 1 / -1; }
  .booking-dialog { width: min(680px, calc(100% - 48px)); height: auto; max-height: calc(100% - 48px); margin: auto; border-radius: var(--r-lg); }
  .bd-form, .bd-done { padding: 26px 28px 30px; }
  .hero-bg { height: 520px; }
  .hero-home::before { background: linear-gradient(180deg, rgba(14, 22, 36, .5) 0, rgba(14, 22, 36, .4) 200px, rgba(23, 34, 53, .9) 440px, var(--ink) 520px); }
  .coast { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .contact-bar { display: none; }
  .nav-main { display: block; }
  .menu-mobile { display: none; }
  .section { padding-block: 64px; }
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
  .hero-home { padding: 72px 0 80px; min-height: 600px; display: flex; align-items: center; }
  .hero-bg { inset: 0; height: auto; }
  .hero-bg img { object-position: 38% 60%; }
  .hero-home::before { background:
      linear-gradient(90deg, rgba(14, 22, 36, .9) 0, rgba(14, 22, 36, .66) 38%, rgba(14, 22, 36, .18) 70%, rgba(14, 22, 36, .1) 100%),
      linear-gradient(0deg, rgba(14, 22, 36, .45) 0, transparent 35%); }
  .hero-home .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(360px, .8fr); }
  .search { padding: 26px; }
  .car-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .car-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .why { grid-template-columns: repeat(4, 1fr); }
  .faq-wrap { grid-template-columns: 1.6fr 1fr; gap: 48px; }
  .split { grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
  .coast-layout { display: grid; grid-template-columns: .8fr 2fr; gap: 48px; align-items: start; }
  .car-top { grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr); gap: 40px; padding-top: 24px; }
  .book-box { position: sticky; top: 84px; }
  .car-details { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding-top: 48px; }
  .cd-col { gap: 24px; }
  .cd-wide { grid-column: 1 / -1; }
  .cd-wide .extras-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cd-card { padding: 28px; }
  .search-layout { grid-template-columns: minmax(0, 2.4fr) minmax(300px, 1fr); gap: 40px; }
  .contact-layout { grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 40px; }
  .contact-form { padding: 28px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
}

@media (min-width: 1200px) {
  .car-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .contact-bar, .site-footer, .book-box { display: none; }
}

/* ---------- blog ---------- */
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.post-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-md); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.post-card:hover { box-shadow: 0 14px 34px rgba(23, 34, 53, .1); }
.post-card-img { aspect-ratio: 16 / 9; background: var(--card); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 16px 18px 20px; }
.post-meta { margin: 0 0 6px; font-size: .8125rem; color: var(--muted); }
.post-card-title { font: 700 1.1875rem/1.25 var(--f-display); letter-spacing: -.01em; margin: 0 0 8px; }
.post-link { text-decoration: none; }
.post-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card:hover .post-link { text-decoration: underline; text-decoration-color: var(--amber); }
.post-card:has(.post-link:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.post-link:focus-visible { outline: none; }
.post-excerpt { margin: 0; color: var(--ink-2); font-size: .9375rem; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 32px; }
.pager ol { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pager ol a { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 12px; background: var(--surface); text-decoration: none; font-weight: 600; }
.pager ol a[aria-current] { background: var(--ink); color: #fff; }

.post-head { padding-top: 24px; }
.post-head .post-meta { margin-top: -6px; }
.post-head h1 { max-width: 24ch; }
.post-cover { margin: 8px auto 0; }
.post-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--r-lg); background: var(--card); }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 28px 8px; }
.post-body { font-size: 1.0625rem; line-height: 1.7; }
.post-body h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); margin: 1.6em 0 .5em; scroll-margin-top: 90px; }
.post-body h3 { font-size: 1.1875rem; margin: 1.4em 0 .4em; }
.post-body img { border-radius: 16px; margin: 1em 0; }
.post-body ul, .post-body ol { padding-left: 1.3em; margin: 0 0 1em; }
.post-body li { margin-bottom: .35em; }
.post-body blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--amber); color: var(--ink-2); }
.post-body table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .9375rem; display: block; overflow-x: auto; }
.post-body th, .post-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.post-body a { font-weight: 550; }
.toc { background: var(--surface); border-radius: var(--r-md); padding: 18px 20px; margin-bottom: 24px; }
.toc-h { font-weight: 700; margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.post-cta { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 22px; }
.post-cta-h { font: 700 1.25rem/1.2 var(--f-display); margin: 0 0 8px; }
.post-cta p { color: #C9D1DE; }
.post-cta .msg-list { margin-top: 12px; }
.post-cta .msg-compact .msg { background: rgba(255, 255, 255, .08); color: #fff; }
.post-cta .msg-compact .msg-phone { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }

@media (min-width: 640px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (min-width: 960px) {
  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .post-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
  .post-main { max-width: 760px; }
  .post-side { position: sticky; top: 90px; align-self: start; }
}

/* ---------- insurance choice (car page) ---------- */
.insurance { background: #EAF2FB; border-radius: 16px; padding: 12px 12px 6px; margin: 4px 0 14px; }
.insurance legend { display: flex; align-items: center; gap: 6px; float: left; width: 100%; margin-bottom: 8px; font-weight: 700; color: var(--ink); }
.insurance legend .i { width: 18px; height: 18px; color: #2457C5; }
.ins-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 0 8px; }
.ins-opt { display: flex; align-items: flex-start; gap: 10px; padding: 9px 4px; cursor: pointer; clear: both; }
.ins-opt input { width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--ink); flex: none; }
.ins-body { display: grid; gap: 1px; }
.ins-name { font-weight: 600; font-size: .9375rem; }
.ins-body small { color: var(--muted); font-size: .8125rem; }
.ins-body small b { color: var(--ok); font-weight: 650; }
.ins-i { margin-top: 7px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: #fff; color: #2457C5; font: italic 700 .9375rem/1 Georgia, serif; cursor: pointer; box-shadow: inset 0 0 0 1px #C9DAF2; }
.ins-i[aria-expanded="true"] { background: #2457C5; color: #fff; }
.ins-info { grid-column: 1 / -1; background: #fff; border-radius: 12px; padding: 10px 14px; margin: 0 0 8px 34px; font-size: .875rem; color: var(--ink-2); }
.ins-info p { margin: 0 0 .4em; }
.ins-info ul { margin: 0; padding-left: 1.1em; }
.ins-info li { margin-bottom: .2em; }
.extras-list li.is-ins { background: #EAF2FB; }
.extras-list li.is-ins span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.extras-list li.is-ins .i { width: 16px; height: 16px; color: #2457C5; }
