/* ─── YS Text — Yandex brand font ─── */
@font-face {
  font-family: 'YS Text';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('https://yastatic.net/s3/home/fonts/ys/4/text-light.woff2') format('woff2');
}
@font-face {
  font-family: 'YS Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://yastatic.net/s3/home/fonts/ys/4/text-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'YS Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('https://yastatic.net/s3/home/fonts/ys/4/text-medium.woff2') format('woff2');
}
@font-face {
  font-family: 'YS Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('https://yastatic.net/s3/home/fonts/ys/4/text-bold.woff2') format('woff2');
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f5f4f2;
  --bg-panel: #ffffff;
  --bg-card: #efedeb;
  --bg-card-hover: #e8e6e3;
  --text: #000000;
  --text-muted: rgba(0, 0, 0, 0.55);
  --accent: #FFCC00;
  --accent-hover: #F0BD00;
  --accent-text: #000;
  --yandex: #fc3f1d;
  --border: rgba(0, 0, 0, 0.08);
  --radius: 32px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --radius-pill: 999px;
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  --container: 1280px;
  --header-h: 64px;
  --font: 'YS Text', system-ui, sans-serif;
  --transition: 0.25s ease;
}

/* ─── Яндекс тема: чёрный фон, белый текст, красный акцент ─── */
[data-theme="yandex"] {
  --bg: #0f0f0f;
  --bg-panel: #1a1a1a;
  --bg-card: #242424;
  --bg-card-hover: #2e2e2e;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.55);
  --accent: #fc3f1d;
  --accent-hover: #e5361a;
  --accent-text: #ffffff;
  --yandex: #fc3f1d;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  scroll-padding-top: calc(var(--header-h) + 40px);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

html::-webkit-scrollbar-button,
body::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 20px 0;
  pointer-events: none;
}

.header__wrap {
  max-width: calc(var(--container) + 48px);
  margin: 0 auto;
}

.header__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  min-height: var(--header-h);
  padding: 8px 12px 8px 24px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  isolation: isolate;
  pointer-events: auto;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease;
}

.header.is-scrolled .header__bar,
.header.is-menu-open .header__bar {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.52) 0%,
      rgba(255, 255, 255, 0.22) 45%,
      rgba(255, 255, 255, 0.38) 100%
    );
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(180%) brightness(1.05);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}

.header.is-scrolled .header__bar::before,
.header.is-menu-open .header__bar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(255, 255, 255, 0.55) 0%, transparent 45%),
    radial-gradient(90% 60% at 90% 100%, rgba(255, 255, 255, 0.18) 0%, transparent 50%);
  opacity: 0.9;
  z-index: 0;
}

.header.is-scrolled .header__bar::after,
.header.is-menu-open .header__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  z-index: 0;
}


.header__bar > * {
  position: relative;
  z-index: 1;
}

.logo {
  flex-shrink: 0;
  box-sizing: border-box;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
  white-space: nowrap;
  border: 0;
}

.logo img {
  display: block;
  height: 56px;
  width: auto;
}

.logo--footer img {
  height: 68px;
}

.logo .logo__dark { display: none; }
[data-theme="yandex"] .logo .logo__light { display: none; }
[data-theme="yandex"] .logo .logo__dark  { display: block; }

.header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
  margin-left: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.nav a {
  position: relative;
  box-sizing: border-box;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  opacity: 0.82;
  background: transparent;
  transition: opacity 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 1;
  background: rgba(0, 0, 0, 0.12);
  border: 0;
  transform: none;
  outline: none;
}

.header.is-scrolled .nav a:hover,
.header.is-menu-open .nav a:hover,
.header.is-scrolled .nav a:focus-visible,
.header.is-menu-open .nav a:focus-visible {
  background: rgba(0, 0, 0, 0.14);
  border: 0;
}

.header__phone {
  --phone-h: 44px;
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--phone-h);
  flex-shrink: 0;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.header__phone-icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: var(--phone-h);
  height: var(--phone-h);
  border-radius: 50%;
  background: #111;
  flex-shrink: 0;
  transition: transform 1.1s cubic-bezier(0.33, 0.1, 0.25, 1);
}

.header__phone-icon img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.header__phone-panel {
  display: flex;
  align-items: center;
  height: var(--phone-h);
  max-width: 0;
  margin-left: calc(var(--phone-h) / -2);
  padding-left: calc(var(--phone-h) / 2);
  overflow: hidden;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  background: var(--yandex);
  transition:
    max-width 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.header__phone-number {
  padding: 0 20px 0 12px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.4s ease 0.2s,
    transform 0.5s ease 0.15s;
}

.header__phone:hover .header__phone-icon,
.header__phone:focus-visible .header__phone-icon,
.header__phone.is-open .header__phone-icon {
  transform: rotate(-360deg);
}

.header__phone:hover .header__phone-panel,
.header__phone:focus-visible .header__phone-panel,
.header__phone.is-open .header__phone-panel {
  max-width: 240px;
  padding-right: 4px;
}

.header__phone:hover .header__phone-number,
.header__phone:focus-visible .header__phone-number,
.header__phone.is-open .header__phone-number {
  opacity: 1;
  transform: translateX(0);
}

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  background: var(--text);
  transform: translateX(-50%);
  transition: transform var(--transition), opacity var(--transition);
}

.burger span:nth-child(1) { top: calc(50% - 9px); }
.burger span:nth-child(2) { top: calc(50% - 1px); }
.burger span:nth-child(3) { top: calc(50% + 7px); }

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateX(-50%) translateY(8px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateX(-50%) translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 10px;
  max-width: calc(var(--container) + 48px);
  margin: 10px auto 0;
  padding: 16px 22px 20px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.mobile-nav a {
  color: var(--text);
  font-weight: 500;
  padding: 8px 0;
}

.mobile-nav__phone {
  margin-top: 8px;
  font-weight: 700;
}

.mobile-nav.is-open {
  display: flex;
}

/* ─── Theme toggle ─── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--text);
  outline: none;
  box-shadow: none;
  transition: background var(--transition), color var(--transition);
}

.theme-toggle:hover {
  background: transparent;
  color: var(--accent);
}

.theme-toggle__icon { display: none; }

html:not([data-theme="yandex"]) .theme-toggle__icon--leon { display: block; }
html[data-theme="yandex"] .theme-toggle__icon--ya { display: block; }

/* ─── Yandex dark theme overrides ─── */
[data-theme="yandex"] .header.is-scrolled .header__bar,
[data-theme="yandex"] .header.is-menu-open .header__bar {
  background: rgba(15, 15, 15, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="yandex"] .header.is-scrolled .header__bar::before,
[data-theme="yandex"] .header.is-menu-open .header__bar::before,
[data-theme="yandex"] .header.is-scrolled .header__bar::after,
[data-theme="yandex"] .header.is-menu-open .header__bar::after {
  display: none;
}

[data-theme="yandex"] .header__phone-icon {
  background: var(--accent);
}

[data-theme="yandex"] .mobile-nav {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

[data-theme="yandex"] .mobile-nav a {
  color: #ffffff;
}

[data-theme="yandex"] .nav a {
  color: #ffffff;
}

.hero {
  padding: 108px 0 24px;
}

.hero__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 520px;
  border-radius: var(--radius);
  background: var(--bg-panel);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero__main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 48px 40px 36px;
}

.hero__label {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 2.6875rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.hero__text {
  margin: 0 0 28px;
  max-width: 420px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.hero__media {
  position: relative;
  min-height: 320px;
  background: var(--bg-card);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.hero__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 36px;
}

.hero-social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  border: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.hero-social:hover {
  filter: brightness(1.08);
}

.hero-social img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.hero-social--max img {
  filter: none;
  border-radius: 4px;
}

/* Brand colors */
.hero-social--tg   { background: #2AABEE; color: #fff; }
.hero-social--wa   { background: #25D366; color: #fff; }
.hero-social--max  { background: linear-gradient(135deg, #4D79FF 0%, #9B35F0 100%); color: #fff; }

/* Neutral */
.hero-social--phone,
.hero-social--mail {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}
.hero-social--phone img,
.hero-social--mail  img {
  filter: none;
}

/* Dark theme */
[data-theme="yandex"] .hero-social--phone,
[data-theme="yandex"] .hero-social--mail {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
[data-theme="yandex"] .hero-social--phone img,
[data-theme="yandex"] .hero-social--mail  img {
  filter: invert(1);
}
[data-theme="yandex"] .hero-social--max {
  background: linear-gradient(135deg, #4D79FF 0%, #9B35F0 100%);
}

.section-divider-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  padding: 36px 0;
  margin: 0;
  background: transparent;
  pointer-events: none;
}

.section-divider {
  --divider-h: 104px;
  --divider-w: calc(5114 / 91 * var(--divider-h));
  width: 100%;
  transform-origin: center center;
}

.section-divider--tilt-a {
  transform: rotate(-0.7deg) scale(1.12);
}

.section-divider--tilt-b {
  transform: rotate(0.7deg) scale(1.12);
}

.section-divider__viewport {
  width: 100%;
  height: var(--divider-h);
  overflow: hidden;
}

.section-divider__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  height: 100%;
  margin: 0;
  padding: 0;
  will-change: transform;
}

.section-divider--tilt-a .section-divider__track {
  animation: marquee-left 27s linear infinite;
}

.section-divider--tilt-b .section-divider__track {
  animation: marquee-right 27s linear infinite;
}

@keyframes marquee-left {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@keyframes marquee-right {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

.section-divider__seq {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  height: 100%;
}

.section-divider__img {
  display: block;
  flex: 0 0 auto;
  width: var(--divider-w);
  height: var(--divider-h);
  max-width: none;
  object-fit: fill;
  user-select: none;
  pointer-events: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--transition);
}

.chip:hover {
  background: var(--bg-card-hover);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--primary .btn__arrow {
  filter: invert(1);
}

.btn--full {
  width: 100%;
}

.btn__arrow {
  flex-shrink: 0;
}

.section {
  padding: 24px 0;
  scroll-margin-top: calc(var(--header-h) + 40px);
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 40px);
}

.section-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-top h2,
.section-top__text h2,
.panel__head h2,
.panel__cta-text h2,
.contacts__info h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.section-top p,
.section-top__text p,
.panel__head p {
  margin: 10px 0 0;
  max-width: 520px;
  color: var(--text-muted);
  font-size: 1rem;
}

.carousel-nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.carousel-nav__btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg-card);
  cursor: pointer;
  position: relative;
  transition: background var(--transition), opacity var(--transition);
}

.carousel-nav__btn:hover {
  background: var(--bg-card-hover);
}

.carousel-nav__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel-nav__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--text);
  border-right: 2px solid var(--text);
  transform: rotate(-135deg);
}

.carousel-nav__btn[data-carousel-next]::before {
  transform: rotate(45deg);
}

.carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 4px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.carousel.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel .y-card,
.carousel .y-card * {
  user-select: none;
  -webkit-user-select: none;
}

.carousel .y-card {
  cursor: grab;
}

.carousel.is-dragging .y-card {
  cursor: grabbing;
}

.carousel .y-card[data-apply-tariff],
.carousel .y-card--rental {
  cursor: pointer;
}

.carousel.is-dragging .y-card[data-apply-tariff] {
  cursor: grabbing;
}

.avto-gallery {
  margin: 48px 0 40px;
}

.avto-gallery__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.avto-gallery__title {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.avto-gallery__track {
  cursor: grab;
}

.avto-gallery__track:active {
  cursor: grabbing;
}

.avto-photo {
  width: 300px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  scroll-snap-align: start;
  display: block;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.avto-photo:hover {
  transform: scale(1.025);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

[data-theme="yandex"] .avto-photo:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.avto-gallery__track.is-dragging .avto-photo {
  cursor: grabbing;
}

/* ── Fleet gallery (arenda page) ── */
.fleet-gallery {
  margin: 56px 0 40px;
}

.fleet-gallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.fleet-gallery__info h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.fleet-gallery__sub {
  margin: 8px 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 440px;
  line-height: 1.5;
}

.fleet-gallery__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.fleet-gallery__counter {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 52px;
  text-align: center;
}

.fleet-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}

.fleet-track::-webkit-scrollbar {
  display: none;
}

.fleet-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.fleet-photo {
  flex-shrink: 0;
  width: 420px;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg, 18px);
  scroll-snap-align: start;
  display: block;
  cursor: zoom-in;
  transition: filter 0.2s ease;
}

.fleet-track.is-dragging .fleet-photo {
  cursor: grabbing;
}

.fleet-photo:hover {
  filter: brightness(1.06);
}

/* ── Arenda hero slideshow ── */
.arenda-slideshow {
  position: relative;
  overflow: hidden;
  /* Height locked — no layout shift */
  height: 100%;
  min-height: 320px;
}

.arenda-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.arenda-slide--active {
  opacity: 1;
  pointer-events: auto;
}

.arenda-slideshow__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.arenda-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.3s ease, transform 0.3s ease;
}

.arenda-dot--active {
  background: #fff;
  transform: scale(1.3);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__img {
  width: calc(100vw - 160px);
  height: calc(100vh - 80px);
  max-width: 1100px;
  max-height: 780px;
  object-fit: contain;
  border-radius: var(--radius-md);
  user-select: none;
  display: block;
}

.lightbox__close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.15s;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close:hover { opacity: 1; }

.lightbox__prev,
.lightbox__next {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__prev:hover,
.lightbox__next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}

.lightbox__counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

@media (max-width: 600px) {
  .lightbox__img {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 120px);
  }
  .lightbox__prev,
  .lightbox__next {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}

.y-card {
  flex: 1 1 280px;
  min-width: 280px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: background var(--transition);
}

.y-card:hover {
  background: var(--bg-card-hover);
}

.y-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  margin-bottom: 16px;
}

.y-card__media img {
  max-height: 140px;
  width: auto;
  object-fit: contain;
}

.y-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.y-card__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.y-card__title-row h3,
.y-card h3 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.25;
  font-weight: 500;
}

.y-card__arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.y-card__arrow circle {
  transition: fill var(--transition);
}

.y-card__arrow path {
  transition: stroke var(--transition);
}

.y-card:hover .y-card__arrow circle {
  fill: var(--accent);
}

.y-card:hover .y-card__arrow path {
  stroke: #000;
}

/* Rental card */
.y-card--rental {
  text-decoration: none;
  color: var(--text);
  border: 2px solid var(--accent);
  cursor: pointer;
  position: relative;
}

.y-card--rental::before {
  content: 'Аренда авто';
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.y-card--rental .y-card__arrow--accent {
  color: var(--accent);
}

.y-card--rental:hover .y-card__arrow--accent {
  color: var(--accent-hover);
}

.y-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

/* ── Perks bento ──────────────────────────── */
.perks-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.perk {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  min-height: 190px;
  transition: background var(--transition);
  overflow: hidden;
}

.perk:hover { background: var(--bg-card-hover); }

/* Hero card — accent bg, 2 cols */
.perk--hero {
  grid-column: 1 / 3;
  background: var(--accent);
  color: var(--accent-text);
  min-height: 220px;
}
.perk--hero:hover { background: var(--accent-hover); }

/* Tall card — inverted, 2 rows */
.perk--tall {
  grid-column: 3;
  grid-row: 1 / 3;
  background: var(--text);
  color: var(--bg);
  min-height: 404px;
  justify-content: flex-end;
}
.perk--tall:hover { background: var(--text); filter: brightness(0.92); }
.perk--tall .perk__title,
.perk--tall .perk__text  { color: var(--bg); }
.perk--tall .perk__stat  { color: var(--bg); }

/* Stat number */
.perk__stat {
  display: block;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: auto;
  padding-bottom: 16px;
}

.perk--hero .perk__title,
.perk--hero .perk__text { color: var(--accent-text); }
.perk--hero .perk__stat { color: var(--accent-text); }

/* Icon */
.perk__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-panel);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}
[data-theme="yandex"] .perk--hero .perk__icon,
[data-theme="yandex"] .perk--tall .perk__icon {
  background: rgba(255,255,255,0.15);
  color: currentColor;
}

.perk__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.3;
}

.perk__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.perk--hero .perk__text { opacity: 0.75; color: var(--accent-text); }

@media (max-width: 1023px) {
  .perks-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .perk--hero { grid-column: 1 / 3; }
  .perk--tall { grid-column: auto; grid-row: auto; min-height: 190px; justify-content: flex-start; }
}

@media (max-width: 599px) {
  .perks-bento { grid-template-columns: 1fr; }
  .perk--hero  { grid-column: auto; }
}

.y-card--tariff {
  min-height: auto;
  flex: 1 1 0;
}

.y-card--featured {
  box-shadow: inset 0 0 0 2px var(--text);
}

.y-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 64px;
  height: auto;
  margin-bottom: 16px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.y-card__list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.y-card__list li + li {
  margin-top: 8px;
}

.tariff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.panel {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
}

.panel__head {
  margin-bottom: 24px;
}

.panel__cta-row {
  margin-top: 28px;
  display: flex;
}

.panel--cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.panel__cta-text p {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.bento__item {
  position: relative;
  min-height: 180px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: background var(--transition);
}

.bento__item:hover {
  background: var(--bg-card-hover);
}

.bento__item--wide {
  grid-column: span 2;
}

.bento__num {
  display: block;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.bento__item h3 {
  margin: 0 0 10px;
  max-width: 90%;
  font-size: 1.125rem;
  font-weight: 500;
}

.bento__item p {
  margin: 0;
  max-width: 85%;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.bento__arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
}

.bento__arrow circle {
  transition: fill var(--transition);
}

.bento__arrow path {
  transition: stroke var(--transition);
}

.bento__item:hover .bento__arrow circle {
  fill: var(--accent);
}

.bento__item:hover .bento__arrow path {
  stroke: #000;
}

.form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.875rem;
  font-weight: 500;
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.form__note {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ── Custom Select ── */
.cs-wrap {
  position: relative;
}

.cs-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.cs-trigger:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.cs-trigger__chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
}

.cs-wrap.is-open .cs-trigger__chevron {
  transform: rotate(180deg);
}

.cs-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: cs-open 0.22s ease;
}

@keyframes cs-open {
  from { opacity: 0; clip-path: inset(0 0 100% 0 round var(--radius-sm)); }
  to   { opacity: 1; clip-path: inset(0 0 0% 0 round var(--radius-sm)); }
}

.cs-option {
  padding: 13px 16px;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background var(--transition);
}

.cs-option:hover {
  background: var(--bg-card);
}

.cs-option.is-selected {
  font-weight: 500;
}

.calculator__body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: start;
}

.calculator__controls,
.calculator__result {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.radio-group {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.radio-group legend {
  margin-bottom: 12px;
  font-weight: 500;
}

.radio-card {
  position: relative;
  cursor: pointer;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
  transition: background var(--transition), box-shadow var(--transition);
}

.radio-card input:checked + span {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: none;
}

.range-field {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.range-field__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 500;
  font-size: 0.9375rem;
}

.range-field__top strong {
  font-size: 1.125rem;
}

.range-field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.range-field input[type="range"]:focus {
  outline: none;
}

.range-field input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}

.range-field input[type="range"]:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}

.range-field input[type="range"]::-webkit-slider-runnable-track {
  box-sizing: border-box;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

.range-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  margin-top: -5px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.range-field input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.06);
}

.range-field input[type="range"]::-moz-range-track {
  box-sizing: border-box;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

.range-field input[type="range"]::-moz-range-thumb {
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.range-field input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}

.range-field__scale {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.result-box {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
}

.result-box span {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.result-box strong {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.result-box--total {
  margin-bottom: 20px;
}

.result-box--total strong {
  font-size: 1.875rem;
}

.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.contacts__list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.contacts__list span {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.contacts__list a,
.contacts__list p {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.contacts__list a:hover {
  opacity: 0.7;
}

.accordion {
  display: grid;
  gap: 10px;
}

.accordion__item {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}

.accordion__item summary {
  padding: 18px 20px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.accordion__item summary::-webkit-details-marker {
  display: none;
}

.accordion__item summary::after {
  content: "+";
  float: right;
  font-size: 1.125rem;
  font-weight: 500;
}

.accordion__item[open] summary::after {
  content: "−";
}

.accordion__item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ── Active nav link (current page) ── */
.nav a[aria-current="page"] {
  opacity: 1;
  background: rgba(0, 0, 0, 0.12);
}

/* ── Reviews section ── */
.reviews-panel {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 56px;
  align-items: center;
}

.reviews-panel__photos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  padding: 8px 0;
}

/* Each row is a horizontal strip */
.reviews-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: max-content;
  will-change: transform;
}

/* Row A — left */
.reviews-row--a {
  animation: reviews-left 12s linear infinite;
}

/* Row B — right */
.reviews-row--b {
  animation: reviews-right 12s linear infinite;
}

/* Row C — left */
.reviews-row--c {
  animation: reviews-left 12s linear infinite;
}

/* Row D — right */
.reviews-row--d {
  animation: reviews-right 12s linear infinite;
}

@keyframes reviews-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes reviews-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.review-img {
  height: 120px;
  width: auto;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.09);
  pointer-events: none;
  user-select: none;
}

[data-theme="yandex"] .review-img {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
}

.reviews-panel__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.reviews-panel__text h2 {
  margin: 12px 0 20px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.reviews-panel__desc {
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .reviews-row { animation: none; }
}

/* ── Map / Contact section ── */
.map-section { padding-bottom: 80px; }

.map-block {
  display: grid;
  grid-template-columns: 1fr 380px;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 540px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.09);
}

.map-block__map { position: relative; min-height: 420px; }

.map-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

[data-theme="leon"]   .map-iframe--dark  { display: none; }
[data-theme="yandex"] .map-iframe--light { display: none; }

/* Info panel */
.map-block__info {
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map-info__title-row h2 {
  margin: 6px 0 0;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

/* Address block */
.map-addr-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 16px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  transition: opacity 0.18s;
}

.map-addr-block:hover { opacity: 0.88; }

.map-addr-block__pin { flex-shrink: 0; margin-top: 2px; }

.map-addr-block div { flex: 1; }

.map-addr-block__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-text);
  opacity: 0.6;
  margin-bottom: 4px;
}

.map-addr-block__text {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.map-addr-block__ext { flex-shrink: 0; opacity: 0.5; margin-top: 2px; }

/* Phone / email rows */
.map-reach {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.map-reach__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: color 0.16s;
}

.map-reach__row:first-child { border-top: 1px solid var(--border); }

.map-reach__row:hover { color: var(--accent); }
.map-reach__row:hover svg { color: var(--accent); }

.map-reach__row--static {
  cursor: default;
  pointer-events: none;
}

.map-reach__row--static:hover,
.map-reach__row--static:hover svg {
  color: inherit;
}

.map-reach__row--static svg { color: var(--text-muted); }

.map-reach__row svg { flex-shrink: 0; color: var(--text-muted); }

.map-reach__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin-bottom: 1px;
}

.map-reach__val {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Social row */
.map-socials {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.map-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: filter 0.18s, transform 0.15s;
  flex-shrink: 0;
}

.map-icon-btn img { display: block; filter: brightness(0) invert(1); }
.map-icon-btn--max img { filter: none; }

.map-icon-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }

.map-icon-btn--tg  { background: #2AABEE; }
.map-icon-btn--wa  { background: #25D366; }
.map-icon-btn--max { background: linear-gradient(135deg, #4D79FF 0%, #9B35F0 100%); }

@media (max-width: 860px) {
  .map-block { grid-template-columns: 1fr; min-height: 0; }
  .map-block__map { height: 280px; min-height: 0; }
  .map-block__info { border-left: none; border-top: 1px solid var(--border); padding: 28px 20px 24px; }
}

@media (max-width: 900px) {
  .reviews-panel { grid-template-columns: 1fr; }
}

/* ── Rent page ── */
.section--page-hero {
  padding-top: 108px;
  padding-bottom: 48px;
}

.arenda-hero__panel {
  margin-bottom: 56px;
}

.rent-cta {
  margin-top: 28px;
  display: flex;
}

/* ── Rent section ── */
.rent-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  align-self: center;
}

.rent-reqs {
  margin-top: 24px;
  padding: 24px 28px;
  border-radius: var(--radius-md);
  background: var(--bg-panel);
}

.rent-reqs h3 {
  margin: 0 0 14px;
  font-size: 1.125rem;
}

.rent-reqs__list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rent-reqs__list li {
  color: var(--text-muted);
}

.rent-reqs__note {
  margin: 14px 0 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.rent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.rent-card {
  padding: 22px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background var(--transition);
}

.rent-card:hover {
  background: var(--bg-card-hover);
}

.rent-card--top {
  box-shadow: inset 0 0 0 2px var(--text);
}

.rent-card__label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.rent-card__models {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.rent-card__price {
  margin-top: auto;
  padding-top: 12px;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.rent-card__price span {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-muted);
}

.rent-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.rent-deposit,
.rent-fleet {
  padding: 24px 28px;
  border-radius: var(--radius-md);
  background: var(--bg-panel);
}

.rent-deposit h3,
.rent-fleet h3 {
  margin: 0 0 14px;
  font-size: 1.125rem;
}

.rent-deposit p {
  margin: 0 0 6px;
  color: var(--text-muted);
}

.rent-deposit p:last-child {
  margin-bottom: 0;
}

.rent-fleet__table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rent-fleet__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}

.rent-fleet__row span {
  color: var(--text-muted);
}

.rent-fleet__row strong {
  font-size: 1.0625rem;
}

/* ── Footer ── */
.footer {
  padding: 32px 0 40px;
  margin-top: 8px;
}

.footer__panel {
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  overflow: hidden;
}

.footer__main {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  padding: 32px 36px 28px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer__tagline {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.logo--footer {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  align-content: start;
}

.footer__nav a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: var(--text);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__phone {
  font-weight: 600;
  font-size: 1.0625rem;
}

.footer__phone:hover {
  opacity: 0.7;
}

.footer__email {
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer__email:hover {
  color: var(--text);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 14px 36px;
  text-align: center;
}

.footer__copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.toast {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 200;
  max-width: 360px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 500;
  box-shadow: var(--shadow);
  transform: translateY(16px);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hp-field {
  position: absolute;
  left: -9999px;
  visibility: hidden;
  pointer-events: none;
}

.consent-check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 8px;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  text-align: left;
  width: 100%;
  justify-content: flex-start;
}

.consent-check input {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.consent-check > span {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.consent-check input::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 6px;
  height: 10px;
  border: solid var(--accent-text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px) scale(0);
  opacity: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.consent-check input:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.consent-check input:checked::after {
  opacity: 1;
  transform: rotate(45deg) translate(-1px, -1px) scale(1);
}

.consent-check input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}

.consent-check a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-check a:hover {
  color: var(--accent);
}

.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 250;
  font-family: var(--font);
}

.chat-widget__launcher {
  position: relative;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.chat-widget__launcher:hover {
  transform: translateY(-2px) scale(1.03);
  background: var(--accent-hover);
}

.chat-widget__icon-close {
  display: none;
}

.chat-widget.is-open .chat-widget__icon-chat {
  display: none;
}

.chat-widget.is-open .chat-widget__icon-close {
  display: block;
}

.chat-widget__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--yandex);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
}

.chat-widget__panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(360px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 18px 50px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transform-origin: bottom center;
  transform: scaleY(0.02);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease,
    visibility 0.42s,
    clip-path 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  clip-path: inset(100% 0 0 0 round var(--radius-md));
  will-change: transform, opacity, clip-path;
  height: min(520px, calc(100vh - 120px));
}

.chat-widget__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0 2px,
    transparent 2px 14px
  );
  transition: opacity 0.2s ease;
}

.chat-widget.is-open .chat-widget__panel,
.chat-widget.is-closing .chat-widget__panel {
  visibility: visible;
}

.chat-widget.is-open .chat-widget__panel {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: auto;
  clip-path: inset(0 0 0 0 round var(--radius-md));
}

.chat-widget.is-closing .chat-widget__panel {
  transform: scaleY(0.02);
  opacity: 0;
  pointer-events: none;
  clip-path: inset(100% 0 0 0 round var(--radius-md));
}

.chat-widget.is-closing .chat-widget__panel::after,
.chat-widget:not(.is-open):not(.is-closing) .chat-widget__panel::after {
  opacity: 0;
}

.chat-widget.is-open .chat-widget__panel::after {
  opacity: 0;
  animation: chatBlindFlash 0.42s ease;
}

@keyframes chatBlindFlash {
  0% { opacity: 0.55; }
  60% { opacity: 0.2; }
  100% { opacity: 0; }
}

.chat-widget__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}

.chat-widget__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 1rem;
}

.chat-widget__head-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.chat-widget__status {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: #1b7a3a;
  font-weight: 500;
}

.chat-widget__status.is-offline {
  color: var(--text-muted);
}

.chat-widget__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.chat-widget__close:hover {
  background: var(--bg-card-hover);
  color: var(--text);
}

.chat-widget__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  padding: 16px;
  gap: 12px;
}

.chat-widget__start {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  gap: 12px;
  background: transparent;
}

.chat-widget__start-fields {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.chat-widget__cta {
  flex: 0 0 auto;
  margin-top: auto;
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.chat-widget__cta:hover {
  background: var(--accent-hover);
}

.chat-widget.is-chatting .chat-widget__start {
  display: none;
}

.chat-widget__messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: transparent;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.chat-widget__messages::-webkit-scrollbar {
  width: 4px;
}

.chat-widget__messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-widget__messages::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
}

.chat-widget__messages::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

.chat-widget__messages::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.chat-widget__composer {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.chat-widget__composer-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.chat-widget__field {
  width: 100%;
  height: 46px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 0 16px;
  font: inherit;
  color: var(--text);
  background: transparent;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.chat-widget__field:focus {
  border-color: var(--accent);
  background: transparent;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

[data-theme="yandex"] .chat-widget__field:focus {
  border-color: var(--accent);
}

.chat-widget__field--msg {
  border-radius: 999px;
  padding-inline: 16px;
}

.chat-widget__field::placeholder {
  color: var(--text-muted);
}

.chat-widget__consent {
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

.chat-msg {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-msg--visitor {
  align-self: flex-end;
  background: var(--accent);
  color: var(--accent-text);
  border-bottom-right-radius: 6px;
}

.chat-msg--admin {
  align-self: flex-start;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}

.chat-widget__send {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.chat-widget__send:hover {
  background: var(--accent-hover);
}

@media (max-width: 480px) {
  .chat-widget {
    right: 14px;
    bottom: 14px;
  }

  .chat-widget__panel {
    width: calc(100vw - 28px);
    height: min(70vh, calc(100vh - 100px));
  }
}
.privacy-content {
  display: grid;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.55;
}

.privacy-content h3 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 1.05rem;
}

.privacy-content ul {
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 1024px) {
  .hero__panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__media {
    min-height: 280px;
    order: -1;
  }

  .tariff-grid {
    grid-template-columns: 1fr;
  }

  .panel--cta,
  .contacts,
  .calculator__body {
    grid-template-columns: 1fr;
  }

  .bento__item--wide {
    grid-column: span 1;
  }

  .nav {
    display: none;
  }

  .rent-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__main {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 12px 14px 0;
  }

  .header__bar {
    min-height: 58px;
    padding: 6px 10px 6px 18px;
  }

  .header__right {
    gap: 8px;
  }

  .burger {
    display: block;
  }

  .header__phone {
    --phone-h: 40px;
  }

  .hero {
    padding: 92px 0 16px;
  }

  .hero__main {
    padding: 28px 24px 24px;
  }

  .panel {
    padding: 24px 20px;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .radio-group {
    grid-template-columns: 1fr;
  }

  .section-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-divider-wrap {
    padding: 32px 0;
  }

  .section-divider {
    --divider-h: 80px;
  }

  .section-divider--tilt-a {
    transform: rotate(-0.7deg) scale(1.15);
  }

  .section-divider--tilt-b {
    transform: rotate(0.7deg) scale(1.15);
  }

  .rent-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rent-info-row {
    grid-template-columns: 1fr;
  }

  .footer__main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 20px 20px;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__bottom {
    padding: 12px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .section-divider__track {
    animation: none !important;
    transform: none !important;
  }

  .header__phone-icon,
  .header__phone-panel,
  .header__phone-number {
    transition: none;
  }
}
