/*
 * Domino Team Car — design v2: booking first, white / green / red.
 *
 * Replaces the prototype's style.css (inc/design.php swaps it in under the same `dtc-style` handle),
 * so this file is the whole design: reset, tokens, layout and every component the site prints. It
 * keeps the prototype's class names — the markup, the blocks and the scripts are unchanged — and
 * the token names, so rencarso.css (loaded after it) keeps working on the new values.
 *
 * Green is the action colour (buttons, choices, what is done); red is the brand's accent (prices,
 * badges, the word "Car"); everything else is white, near-black and one grey.
 */

/* ------------------------------------------------------------------------------------ tokens */
:root {
  --color-paper: #fff;
  --color-surface: #f4f6f5;
  --color-surface-2: #eaf1ec;
  --color-ink: #121820;
  --color-muted: #5a6470;
  --color-line: #e2e6e9;
  --color-accent: #d0142c;
  --color-accent-dark: #a80f23;
  --color-accent-ink: #fff;
  --color-ok: #178033;
  --color-night: #0f151c;
  --color-night-surface: #18212b;
  --color-night-line: #2a3440;
  --color-night-text: #b9c2cc;

  --go: #178033;
  --go-dark: #116428;
  --go-soft: #e8f4ec;

  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-xs: .8125rem;
  --text-sm: .875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;

  --spacing-1: .25rem;
  --spacing-2: .5rem;
  --spacing-3: .75rem;
  --spacing-4: 1rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-24: 6rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px #1218200f, 0 1px 3px #1218200a;
  --shadow-md: 0 6px 18px #12182014;
  --shadow-lg: 0 18px 48px #1218201f;

  --ease: cubic-bezier(.2, 0, .2, 1);
  --ease-in-out: cubic-bezier(.4, 0, .2, 1);
  --content: 1200px;
  --gutter: 1.25rem;
  --control-h: 3.25rem;
  --header-h: 4.5rem;
}

/* WordPress's global styles (theme.json) set headings and body in the prototype's presets, later
   than this file; re-pointing the presets on body carries them to the new fonts and colours. */
body {
  --wp--preset--font-family--display: var(--font-display);
  --wp--preset--font-family--body: var(--font-body);
  --wp--preset--color--surface: var(--color-surface);
  --wp--preset--color--ink: var(--color-ink);
  --wp--preset--color--muted: var(--color-muted);
  --wp--preset--color--line: var(--color-line);
  --wp--preset--color--accent: var(--color-accent);
  --wp--preset--color--accent-dark: var(--color-accent-dark);
  --wp--preset--color--ok: var(--go);
  --wp--preset--color--night: var(--color-night);
}

/* ------------------------------------------------------------------------------------ reset */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}
ul, ol {
  padding: 0;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--color-ink);
}
img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--go);
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--go);
  outline-offset: 2px;
}
::selection {
  background: var(--go-soft);
}
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* WordPress wraps every block; the layout comes from the classes, not from WordPress's flow. */
.wp-site-blocks > * + * {
  margin-block-start: 0;
}
.wp-block-group {
  box-sizing: border-box;
}
main.wp-block-group {
  min-height: 50vh;
}
.is-layout-constrained > * {
  max-width: none;
}
.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-3);
}

/* ------------------------------------------------------------------------------------ layout */
.shell {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--spacing-16);
}
.section--tight {
  padding-block: var(--spacing-12);
}
.section--surface {
  background: var(--color-surface);
}
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--spacing-4);
  margin-bottom: var(--spacing-8);
}
.section__inner {
  max-width: 40rem;
}
.section__title {
  font-size: clamp(1.625rem, 1.2rem + 1.4vw, var(--text-3xl));
}
.section__lede {
  margin-top: var(--spacing-3);
  color: var(--color-muted);
  font-size: var(--text-lg);
}
.section__link {
  flex-shrink: 0;
  font-weight: 600;
  font-size: var(--text-sm);
}
.section__link a {
  color: var(--go);
}
.section__link a:hover {
  color: var(--go-dark);
  text-decoration: underline;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: .3rem .8rem;
  border-radius: var(--radius-full);
  background: var(--go-soft);
  color: var(--go-dark);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.prose > * + * {
  margin-top: var(--spacing-4);
}
.prose h2 {
  font-size: var(--text-2xl);
  margin-top: var(--spacing-8);
}
.prose h3 {
  font-size: var(--text-xl);
  margin-top: var(--spacing-6);
}
.prose ul, .prose ol {
  padding-left: 1.25rem;
}
.prose a {
  color: var(--go);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ------------------------------------------------------------------------------------ buttons */
.btn > .wp-block-button__link,
a.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2);
  min-height: 2.875rem;
  padding: 0 1.25rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
}
.btn--primary > .wp-block-button__link,
a.btn--primary,
button.btn--primary {
  background: var(--go);
  color: #fff;
  box-shadow: 0 1px 0 #0000001a, 0 4px 12px #17803326;
}
.btn--primary > .wp-block-button__link:hover,
a.btn--primary:hover,
button.btn--primary:hover {
  background: var(--go-dark);
  color: #fff;
}
.btn--ghost > .wp-block-button__link,
a.btn--ghost,
button.btn--ghost {
  background: var(--color-paper);
  border-color: var(--color-line);
  color: var(--color-ink);
}
.btn--ghost > .wp-block-button__link:hover,
a.btn--ghost:hover,
button.btn--ghost:hover {
  border-color: var(--go);
  color: var(--go);
}
.btn--on-night > .wp-block-button__link,
a.btn--on-night {
  background: transparent;
  border-color: var(--color-line);
  color: var(--color-ink);
}
.btn--block,
.btn--block > .wp-block-button__link {
  width: 100%;
}
button.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
}

/* ------------------------------------------------------------------------------------ forms */
.field {
  display: grid;
  gap: .375rem;
  align-content: start;
  min-width: 0;
}
.field__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-muted);
  letter-spacing: .01em;
}
.field__optional {
  font-weight: 400;
}
.field select,
.field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.field textarea {
  width: 100%;
  min-height: var(--control-h);
  padding: 0 .9rem;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: var(--text-base);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]) {
  min-width: 0;
}
.field textarea {
  min-height: 8rem;
  padding: .75rem .9rem;
  resize: vertical;
}
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235a6470' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  cursor: pointer;
}
.field select:hover,
.field input:hover,
.field textarea:hover {
  border-color: #c9d0d6;
}
.field select:focus,
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--go);
  box-shadow: 0 0 0 3px var(--go-soft);
}
.field [aria-invalid="true"] {
  border-color: var(--color-accent) !important;
}
.field__error {
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 600;
}
.field--inline {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}
.field--inline select {
  min-height: 2.5rem;
  width: auto;
}
.check {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding-block: .3rem;
  cursor: pointer;
  font-size: var(--text-sm);
}
.check input {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  accent-color: var(--go);
  cursor: pointer;
}
.check__label {
  flex: 1;
}
.check__count {
  min-width: 1.75rem;
  padding: 0 .4rem;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: var(--text-xs);
  text-align: center;
}
.check--empty {
  opacity: .45;
  cursor: default;
}

/* ------------------------------------------------------------------------------------ top bar */
.topbar {
  background: var(--color-night);
  color: var(--color-night-text);
  font-size: var(--text-xs);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-4);
  min-height: 2.25rem;
}
.topbar__facts {
  display: flex;
  gap: var(--spacing-6);
}
.topbar a {
  color: #fff;
  font-weight: 600;
}
.langs {
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: var(--radius-full);
  background: var(--color-night-surface);
}
.langs__item {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.langs__item a,
.langs__item[aria-current="true"] {
  display: block;
  padding: .15rem .6rem;
  border-radius: var(--radius-full);
}
.langs__item a {
  color: var(--color-night-text);
}
.langs__item a:hover {
  color: #fff;
}
.langs__item[aria-current="true"] {
  background: #fff;
  color: var(--color-ink);
}

/* ------------------------------------------------------------------------------------ header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffffeb;
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.admin-bar .header {
  top: 32px;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
  min-height: var(--header-h);
}
.header__logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}
.wp-block-image.header__logo-img {
  margin: 0;
}
/* The logo is white artwork on a dark tile. */
.header__logo-img img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: var(--color-night);
}
.header__logo-text {
  display: flex;
  gap: .3rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
}
.header__logo-word--green a { color: var(--go); }
.header__logo-word--ink a { color: var(--color-ink); }
.header__logo-word--red a { color: var(--color-accent); }
.header__logo-text a:hover { color: inherit; opacity: .85; }
.header .wp-block-navigation {
  margin-inline-start: auto;
  font-size: var(--text-sm);
  font-weight: 600;
}
.header .wp-block-navigation .wp-block-navigation__container {
  gap: var(--spacing-1);
}
.header .wp-block-navigation .wp-block-navigation-item__content {
  display: block;
  padding: .5rem .8rem;
  border-radius: var(--radius-md);
  color: var(--color-ink);
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.header .wp-block-navigation .wp-block-navigation-item__content:hover {
  background: var(--color-surface);
  color: var(--color-ink);
}
.header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
  background: var(--go-soft);
  color: var(--go-dark);
}
.header .wp-block-buttons {
  flex-shrink: 0;
}
.header__cta > .wp-block-button__link {
  min-height: 2.5rem;
}
.header__cta > .wp-block-button__link::before {
  content: "";
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 006.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 013 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 006.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 013 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.header .wp-block-navigation__responsive-container-open,
.header .wp-block-navigation__responsive-container-close {
  padding: .5rem;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-paper);
}
.header .wp-block-navigation__responsive-container.is-menu-open {
  padding: var(--spacing-16) var(--gutter) var(--spacing-8);
  background: var(--color-paper);
  color: var(--color-ink);
}
.header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  gap: var(--spacing-2);
  font-size: var(--text-xl);
  font-family: var(--font-display);
  font-weight: 700;
}
@media (max-width: 899px) {
  .header__inner {
    gap: var(--spacing-3);
    min-height: 3.75rem;
  }
  .header .wp-block-buttons {
    display: none;
  }
  .header__logo-img img {
    width: 2.375rem;
    height: 2.375rem;
  }
  .header__logo-text {
    font-size: 1.0625rem;
  }
  .topbar__hours {
    display: none;
  }
}

/* ------------------------------------------------------------------------------------ hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--spacing-12) calc(var(--spacing-16) + 5rem);
  background:
    radial-gradient(900px 420px at 88% 10%, #17803314, transparent 70%),
    radial-gradient(700px 360px at 0% 100%, #d0142c0d, transparent 70%),
    linear-gradient(180deg, #f6faf7 0%, #ffffff 100%);
}
.hero__grid {
  display: grid;
  gap: var(--spacing-12);
  align-items: center;
}
@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  }
}
.hero__title {
  margin-top: var(--spacing-4);
  font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.625rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.hero__title em {
  font-style: normal;
  color: var(--go);
}
.hero__title em + em,
.hero__title em:last-of-type {
  color: var(--color-accent);
}
.hero__lede {
  max-width: 34rem;
  margin-top: var(--spacing-4);
  color: var(--color-muted);
  font-size: var(--text-lg);
}
/* The booking box under the hero is the way in; the prototype's two buttons would be a second one. */
.hero__actions {
  display: none;
}
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-3) var(--spacing-6);
  margin-top: var(--spacing-8);
}
.proof {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.proof::before {
  content: "";
  align-self: center;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--go) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.proof__value {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-ink);
}
.hero__featured-label {
  margin-bottom: var(--spacing-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.hero__featured .car-card {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.hero__featured .rc-featured__dot {
  background: #c9d1d7;
}
.hero__featured .rc-featured__dot[aria-current="true"] {
  background: var(--go);
}

/* ------------------------------------------------------------------------------------ booking box */
.bookbox-wrap {
  position: relative;
  z-index: 5;
  margin-top: -7rem;
}
.bookbox {
  padding: var(--spacing-6);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-paper);
  box-shadow: var(--shadow-lg);
}
.bookbox__tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: var(--spacing-6);
  padding: 4px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
}
.bookbox__tab {
  min-width: 7.5rem;
  padding: .55rem 1.25rem;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-muted);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  transition: background-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
}
.bookbox__tab:hover {
  color: var(--color-ink);
}
.bookbox__tab[aria-selected="true"] {
  background: var(--color-paper);
  color: var(--go-dark);
  box-shadow: var(--shadow-sm);
}
.bookbox__panel {
  display: grid;
  gap: var(--spacing-4);
  align-items: end;
}
.bookbox__go {
  min-height: var(--control-h) !important;
  padding-inline: 1.75rem !important;
  font-size: var(--text-base) !important;
}
@media (min-width: 700px) {
  .bookbox__panel--rent {
    grid-template-columns: 1fr 1fr;
  }
  .bookbox__panel--rent .bookbox__go {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1240px) {
  /* Dates take more room than place names: a date and a time, and the picker's icon. */
  .bookbox__panel--rent {
    grid-template-columns: minmax(11rem, 1fr) minmax(11rem, 1fr) minmax(13.75rem, 1.15fr) minmax(13.75rem, 1.15fr) auto;
  }
  /* Tighter than the site's fields (whose rule is more specific, hence the priority): four controls
     and the button share one row. */
  .bookbox__panel--rent select {
    padding-left: .75rem !important;
    padding-right: 2.1rem !important;
    background-position: right .7rem center;
  }
  .bookbox__panel--rent input[type="datetime-local"] {
    font-size: .9375rem !important;
    padding-inline: .7rem .55rem !important;
  }
  .bookbox__panel--rent .bookbox__go {
    grid-column: auto;
  }
}
@media (min-width: 900px) {
  .bookbox__panel--buy {
    grid-template-columns: 1fr 1.4fr auto;
  }
}
.bookbox .rc-price__track {
  min-height: var(--control-h);
}
.bookbox .rc-price__ends {
  display: none;
}

/* ------------------------------------------------------------------------------------ car cards */
.cards {
  display: grid;
  gap: var(--spacing-6);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
}
/* A row of cars on a page (not the filtered listing): three across on a desktop, so six sit 3 + 3. */
@media (min-width: 1000px) {
  .cards:not(.cards--listing) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* A short row (three cars on "За нас") fills the width instead of leaving an empty column. */
.cards:not(.cards--listing):not(:has(> :nth-child(4))) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
}
.cards--listing {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}
.car-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-paper);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.car-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.car-card__frame {
  display: block;
}
.car-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f9f8, #eef2f0);
}
.car-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6% 4% 0;
  transition: transform .35s var(--ease);
}
.car-card:hover .car-card__media img {
  transform: scale(1.03);
}
.car-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--spacing-3);
  padding: var(--spacing-4) var(--spacing-6) var(--spacing-6);
}
.car-card__title {
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -.01em;
}
.car-card__title a:hover {
  color: var(--go);
}
.car-card__year {
  color: var(--color-muted);
  font-weight: 600;
}
.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  list-style: none;
}
.spec-chips li {
  padding: .15rem .55rem;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: .75rem;
  font-weight: 500;
}
.car-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-3);
  margin-top: auto;
  padding-top: var(--spacing-4);
  border-top: 1px solid var(--color-line);
}
.price {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-accent);
}
.price__note {
  margin-top: .15rem;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  color: var(--color-muted);
}
.price--hero {
  font-size: var(--text-2xl);
}
.car-card__cta {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--go);
}
.car-card--featured .car-card__body {
  padding: var(--spacing-6);
}
.car-card--featured .car-card__title {
  font-size: var(--text-xl);
}
.car-card .btn,
.car-card a.btn {
  min-height: 2.5rem;
  padding-inline: 1rem;
}

/* ------------------------------------------------------------------------------------ types */
.bodytypes {
  display: grid;
  gap: var(--spacing-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  list-style: none;
}
.bodytypes li {
  display: flex;
}
.bodytype {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  width: 100%;
  gap: 0 var(--spacing-3);
  padding: var(--spacing-4);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-paper);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.bodytype:hover {
  border-color: var(--go);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.bodytype__media {
  grid-column: 1 / -1;
  margin-bottom: var(--spacing-3);
}
.bodytype__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.bodytype__label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
}
.bodytype__count {
  padding: .1rem .6rem;
  border-radius: var(--radius-full);
  background: var(--go-soft);
  color: var(--go-dark);
  font-size: var(--text-xs);
  font-weight: 700;
}

/* ------------------------------------------------------------------------------------ why us */
.promises {
  display: grid;
  gap: var(--spacing-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}
/* Four promises ("За нас") sit two by two rather than three and one. */
@media (min-width: 700px) {
  .promises:has(> .promise:nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.promise {
  position: relative;
  padding: var(--spacing-6) var(--spacing-6) var(--spacing-6) 4.25rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-paper);
}
.promise::before {
  content: "";
  position: absolute;
  top: var(--spacing-6);
  left: var(--spacing-6);
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  background: var(--go-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23178033' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 60% no-repeat;
}
.promise__title {
  font-size: var(--text-lg);
}
.promise__body {
  margin-top: var(--spacing-2);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

/* ------------------------------------------------------------------------------------ rent / buy tiles */
.split {
  display: grid;
  gap: var(--spacing-6);
}
@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}
.rent-tile {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
  padding: var(--spacing-8);
  border-radius: var(--radius-lg);
  background: var(--color-paper);
  border: 1px solid var(--color-line);
}
.rent-tile:first-child {
  background: var(--go);
  border-color: var(--go);
  color: #fff;
}
.rent-tile:first-child .rent-tile__title,
.rent-tile:first-child .rent-tile__body {
  color: #fff;
}
.rent-tile:first-child .btn--primary > .wp-block-button__link {
  background: #fff;
  color: var(--go-dark);
  box-shadow: none;
}
.rent-tile:first-child .btn--primary > .wp-block-button__link:hover {
  background: var(--go-soft);
}
.rent-tile__title {
  font-size: var(--text-2xl);
}
.rent-tile__body,
.rent-tile p {
  color: var(--color-muted);
}
.rent-tile .wp-block-buttons {
  margin-top: auto;
}

/* ------------------------------------------------------------------------------------ page head */
.pagehead {
  padding-block: var(--spacing-12) var(--spacing-8);
  background: linear-gradient(180deg, #f6faf7 0%, #ffffff 100%);
  border-bottom: 1px solid var(--color-line);
}
.pagehead__title {
  font-size: clamp(2rem, 1.4rem + 2vw, var(--text-4xl));
}
.pagehead__lede {
  max-width: 44rem;
  margin-top: var(--spacing-3);
  color: var(--color-muted);
  font-size: var(--text-lg);
}
.breadcrumb {
  margin-bottom: var(--spacing-3);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* ------------------------------------------------------------------------------------ listing */
.listing {
  display: grid;
  gap: var(--spacing-8);
  padding-bottom: var(--spacing-16);
}
@media (min-width: 1000px) {
  .listing {
    grid-template-columns: 17rem minmax(0, 1fr);
    align-items: start;
  }
  .listing--bare {
    grid-template-columns: minmax(0, 1fr);
  }
}
.filters {
  position: sticky;
  top: calc(var(--header-h) + var(--spacing-4));
  max-height: calc(100vh - var(--header-h) - 2rem);
  overflow: auto;
  padding: var(--spacing-6);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-paper);
}
.filters__title {
  font-size: var(--text-lg);
  margin-bottom: var(--spacing-2);
}
.filter {
  padding-block: var(--spacing-4);
  border-top: 1px solid var(--color-line);
}
.filter__summary {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: var(--text-sm);
}
.filter__summary::-webkit-details-marker {
  display: none;
}
.filter__summary::after {
  content: "";
  margin-left: auto;
  width: .6rem;
  height: .6rem;
  border-right: 2px solid var(--color-muted);
  border-bottom: 2px solid var(--color-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .15s var(--ease);
}
.filter[open] > .filter__summary::after {
  transform: rotate(-135deg) translateY(-2px);
}
.filter__badge {
  padding: 0 .45rem;
  border-radius: var(--radius-full);
  background: var(--go);
  color: #fff;
  font-size: .6875rem;
}
.filter__list {
  margin-top: var(--spacing-2);
  list-style: none;
}
.filter .field,
.filter .rc-price {
  margin-top: var(--spacing-3);
}
.filters .btn--block {
  margin-top: var(--spacing-4);
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-4);
  margin-bottom: var(--spacing-6);
}
.toolbar__count {
  color: var(--color-muted);
}
.toolbar__count strong {
  color: var(--color-ink);
}
.toolbar__actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
}
.toolbar__filters {
  display: none !important;
}
@media (max-width: 999px) {
  .listing > .filters {
    display: none;
  }
  .toolbar__filters {
    display: inline-flex !important;
  }
}
.filterpanel {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: var(--color-paper);
}
.filterpanel__head,
.filterpanel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-4) var(--gutter);
  border-bottom: 1px solid var(--color-line);
}
.filterpanel__foot {
  border-top: 1px solid var(--color-line);
  border-bottom: 0;
}
.filterpanel__body {
  flex: 1;
  overflow: auto;
  padding: 0 var(--gutter);
}
.filterpanel__close {
  border: 0;
  background: none;
  color: var(--go);
  font-weight: 700;
}
.empty {
  padding: var(--spacing-12) var(--spacing-6);
  border: 1px dashed var(--color-line);
  border-radius: var(--radius-lg);
  text-align: center;
}
.empty__title {
  font-size: var(--text-xl);
}
.empty .btn,
.empty .wp-block-buttons {
  justify-content: center;
  margin-top: var(--spacing-4);
}

/* ------------------------------------------------------------------------------------ search cards reused */
.searchbar__card {
  display: grid;
  gap: var(--spacing-4);
  padding: var(--spacing-6);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-paper);
  box-shadow: var(--shadow-md);
}
.searchbar--rental {
  margin-block: var(--spacing-8);
}
@media (min-width: 900px) {
  .searchbar__card {
    grid-template-columns: repeat(3, 1fr) auto;
    align-items: end;
  }
  .searchbar--rental .searchbar__card {
    grid-template-columns: repeat(4, 1fr) auto;
  }
}
.searchbar__card .btn {
  min-height: var(--control-h);
}

/* ------------------------------------------------------------------------------------ footer */
.footer {
  margin-top: 0;
  padding-block: var(--spacing-16) var(--spacing-8);
  background: var(--color-night);
  color: var(--color-night-text);
  font-size: var(--text-sm);
}
.footer__grid {
  display: grid;
  gap: var(--spacing-8);
}
@media (min-width: 800px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.footer__title {
  margin-bottom: var(--spacing-4);
  color: #fff;
  font-size: var(--text-base);
  letter-spacing: 0;
}
.footer .prose p {
  max-width: 26rem;
}
.footer__list {
  display: grid;
  gap: var(--spacing-2);
  list-style: none;
}
.footer a {
  color: var(--color-night-text);
}
.footer a:hover {
  color: #fff;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--spacing-2);
  margin-top: var(--spacing-12);
  padding-top: var(--spacing-6);
  border-top: 1px solid var(--color-night-line);
  font-size: var(--text-xs);
}
.callbar {
  display: none;
}
@media (max-width: 699px) {
  .callbar {
    position: fixed;
    inset: auto 0 0;
    z-index: 60;
    display: block;
    padding: .625rem var(--gutter) calc(.625rem + env(safe-area-inset-bottom));
    background: #fffffff2;
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--color-line);
  }
  .callbar .wp-block-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .callbar .wp-block-button__link {
    width: 100%;
  }
  .footer {
    padding-bottom: 6rem;
  }
}

/* ------------------------------------------------------------------------------------ small screens */
/* On a phone the booking box comes straight after the headline; the newest cars are further down. */
@media (max-width: 999px) {
  .hero__featured {
    display: none;
  }
  .hero {
    padding-bottom: calc(var(--spacing-12) + 5rem);
  }
}
@media (max-width: 699px) {
  :root {
    --gutter: 1rem;
  }
  .section {
    padding-block: var(--spacing-12);
  }
  .hero {
    padding-block: var(--spacing-8) calc(var(--spacing-12) + 4rem);
  }
  .bookbox-wrap {
    margin-top: -5rem;
  }
  .bookbox {
    padding: var(--spacing-4);
  }
  .bookbox__tabs {
    display: flex;
  }
  .bookbox__tab {
    flex: 1;
    min-width: 0;
  }
  .section__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ------------------------------------------------------------------------------------ about */
.about {
  display: grid;
  gap: var(--spacing-12);
  align-items: start;
}
@media (min-width: 900px) {
  .about {
    grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 1fr);
  }
}
.about .prose .section__title {
  margin-bottom: var(--spacing-2);
}
.about__para {
  color: var(--color-muted);
  font-size: var(--text-lg);
  line-height: 1.7;
}
.about__stats {
  padding: var(--spacing-8);
  border-radius: var(--radius-lg);
  background: var(--color-night);
  color: var(--color-night-text);
}
.about__stats-title {
  margin-bottom: var(--spacing-6);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.about__statlist {
  display: grid;
  gap: 0;
}
.about__statlist > * {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-4);
  padding-block: var(--spacing-4);
  border-top: 1px solid var(--color-night-line);
}
.about__statlist > *:first-child {
  border-top: 0;
  padding-top: 0;
}
.about__statvalue {
  min-width: 4.5rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
}
.about__statlist > *:nth-child(2) .about__statvalue {
  color: #3fd26a;
}
.about__statlabel {
  font-size: var(--text-base);
}
/* "Дојдете на плац": the one green call to action at the foot of the page. */
.about__visit {
  display: grid;
  gap: var(--spacing-3);
  padding: var(--spacing-12);
  background: var(--go) !important;
  border-color: var(--go) !important;
  color: #fff;
  background-image: radial-gradient(600px 300px at 100% 0%, #ffffff1f, transparent 70%) !important;
}
.about__visit .rent-tile__title,
.about__visit .rent-tile__body {
  color: #fff;
}
.about__visit .rent-tile__body:last-of-type {
  font-weight: 600;
}
.about__visit .btn--primary > .wp-block-button__link {
  background: #fff;
  color: var(--go-dark);
  box-shadow: none;
}
.about__visit .btn--primary > .wp-block-button__link:hover {
  background: var(--go-soft);
}

/* ------------------------------------------------------------------------------------ contact */
.contact {
  display: grid;
  gap: var(--spacing-8);
  align-items: start;
  padding-block: var(--spacing-12) var(--spacing-16);
}
@media (min-width: 900px) {
  .contact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  }
}
.contact__details,
.contact__form {
  padding: var(--spacing-8);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-paper);
}
.contact__form {
  box-shadow: var(--shadow-md);
}
.contact .section__title {
  margin-bottom: var(--spacing-6);
  font-size: var(--text-2xl);
}
.spectable {
  display: grid;
}
.spectable__row {
  display: grid;
  gap: .15rem;
  padding-block: var(--spacing-4);
  border-top: 1px solid var(--color-line);
}
.spectable__row:first-child {
  border-top: 0;
  padding-top: 0;
}
.spectable__row > p:first-child {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.spectable__row > p:last-child {
  font-weight: 600;
  font-size: var(--text-base);
}
.spectable__row a {
  color: var(--go);
}
.spectable__row a:hover {
  color: var(--go-dark);
  text-decoration: underline;
}
.contact__details .wp-block-buttons {
  margin-top: var(--spacing-4);
}
.contact__map > .wp-block-button__link::before {
  content: "";
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 00-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 00-7-7zm0 9.5A2.5 2.5 0 1112 6.5a2.5 2.5 0 010 5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 00-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 00-7-7zm0 9.5A2.5 2.5 0 1112 6.5a2.5 2.5 0 010 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.contact__social-title {
  margin-top: var(--spacing-8);
  margin-bottom: var(--spacing-3);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.contact__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-2);
  list-style: none;
}
.contact__social a {
  display: inline-flex;
  align-items: center;
  padding: .45rem 1rem;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
}
.contact__social a:hover {
  border-color: var(--go);
  color: var(--go);
}
.msgform {
  display: grid;
  gap: var(--spacing-4);
}
.msgform__row {
  display: grid;
  gap: var(--spacing-4);
}
@media (min-width: 600px) {
  .msgform__row {
    grid-template-columns: 1fr 1fr;
  }
}
.msgform__about {
  padding: var(--spacing-3) var(--spacing-4);
  border-radius: var(--radius-md);
  background: var(--go-soft);
  color: var(--go-dark);
  font-size: var(--text-sm);
}
.msgform__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-4);
  margin-top: var(--spacing-2);
}
.msgform__foot .btn {
  min-height: var(--control-h);
  padding-inline: 1.75rem;
  font-size: var(--text-base);
}
.msgform__or {
  color: var(--color-muted);
  font-size: var(--text-sm);
}
.msgform__or a {
  color: var(--color-ink);
}
.formsuccess {
  display: grid;
  gap: var(--spacing-3);
  justify-items: start;
}
.formsuccess__tick {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--go) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 60% no-repeat;
}
.formsuccess__title {
  font-size: var(--text-xl);
}
.formsuccess__note {
  color: var(--color-muted);
  font-size: var(--text-sm);
}
.formsuccess__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-3);
  margin-top: var(--spacing-2);
}

/* ------------------------------------------------------------------------------------ "Изнајми возило": how it works */
.rentinfo {
  display: grid;
  gap: var(--spacing-8);
  align-items: start;
}
@media (min-width: 1000px) {
  .rentinfo {
    grid-template-columns: minmax(0, 2fr) minmax(17rem, 1fr);
  }
}
.rentinfo__how .section__title {
  margin-bottom: var(--spacing-6);
}
.steps {
  display: grid;
  gap: var(--spacing-4);
  counter-reset: none;
}
@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.step {
  position: relative;
  padding: var(--spacing-6);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-paper);
}
.step__n {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: var(--spacing-3);
  border-radius: var(--radius-full);
  background: var(--go);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
}
.step__title {
  font-size: var(--text-lg);
}
.step__body {
  margin-top: var(--spacing-2);
  color: var(--color-muted);
  font-size: var(--text-sm);
}
.rentinfo__how .section__lede {
  margin-top: var(--spacing-6);
  font-size: var(--text-base);
}
.rentinfo__how .section__lede a {
  color: var(--go);
  font-weight: 700;
}
.rentinfo__where {
  box-shadow: var(--shadow-sm);
}
.rentinfo__where .section__title {
  margin-bottom: var(--spacing-6);
  font-size: var(--text-2xl);
}
.rentinfo__where {
  padding: var(--spacing-8);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-paper);
}

/* A place not chosen yet reads as a prompt, not as a value. */
.bookbox select:invalid,
.bookbox select:has(option[value=""]:checked) {
  color: var(--color-muted);
}
.bookbox select option {
  color: var(--color-ink);
}

/* ------------------------------------------------------------------------------------ header menu marker */
/* The page you are on is green; a pill slides under it, follows the pointer or the keyboard across the
   menu, and returns when you leave (assets/js/nav.js). Without the script the current link is green
   on its own. */
.header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
  color: var(--go-dark);
}
.header .wp-block-navigation__container.has-glider {
  position: relative;
  isolation: isolate;
}
.header .has-glider .wp-block-navigation-item__content,
.header .has-glider .wp-block-navigation-item__content:hover,
.header .has-glider .current-menu-item > .wp-block-navigation-item__content {
  background: transparent !important;
}
.header .has-glider .wp-block-navigation-item__content {
  transition: color .2s var(--ease);
}
.header .has-glider.is-pointing .current-menu-item:not(.is-target) > .wp-block-navigation-item__content {
  color: var(--color-muted);
}
.header .has-glider .is-target > .wp-block-navigation-item__content {
  color: var(--color-ink);
}
.header .has-glider .current-menu-item.is-target > .wp-block-navigation-item__content {
  color: var(--go-dark);
}
.nav-glider {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.3, 1.3, .5, 1), width .35s cubic-bezier(.3, 1.3, .5, 1), background-color .25s var(--ease), opacity .2s var(--ease);
}
.nav-glider.is-current {
  background: var(--go-soft);
}
/* A thin green line under the pill — the page you are on. */
.nav-glider::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--go);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.nav-glider.is-current::after {
  transform: scaleX(1);
}
.is-menu-open .nav-glider {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .nav-glider,
  .nav-glider::after {
    transition: none;
  }
}
