/* FlipAuto — публичный сайт flipauto.online */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-tint: rgba(0, 113, 227, 0.08);
  --line: rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --pill: 980px;
  --wrap: 1200px;
  --gutter: 20px;
  --section: 64px;
  --hdr: 52px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 768px) { :root { --gutter: 32px; --section: 88px; } }
@media (min-width: 1024px) { :root { --section: 112px; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; color: var(--text); }
p { margin: 0; }
button { font: inherit; color: inherit; }
dialog { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.icon { flex: none; display: block; }

.only-narrow { display: inline; }
.only-wide { display: none; }
@media (min-width: 640px) {
  .only-narrow { display: none; }
  .only-wide { display: inline; }
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px;
  border: 0; border-radius: var(--pill);
  font-size: 17px; font-weight: 500; letter-spacing: -0.016em; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg-alt); color: var(--text); }
.btn-secondary:hover { background: #ebebef; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

.link { display: inline-flex; align-items: center; gap: 2px; font-size: 17px; color: var(--accent); }
.link:hover { text-decoration: underline; }

/* ---------- Шапка ---------- */

.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: var(--hdr); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 19px; font-weight: 600; letter-spacing: -0.03em; }
.logo-sm { font-size: 17px; }
.logo-sm .logo-mark { width: 24px; height: 24px; }
.hdr-nav { display: flex; align-items: center; gap: 20px; }
.hdr-link { color: var(--text); font-size: 14px; opacity: .88; transition: opacity .2s var(--ease); }
.hdr-link:hover { opacity: 1; color: var(--accent); }

/* ---------- Секции ---------- */

.section { padding: var(--section) 0; }
.section-alt { background: var(--bg-alt); }
.hero + .section:not(.section-alt) { padding-top: 0; }
.section-gap { height: var(--section); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head .link { flex: none; white-space: nowrap; font-size: 15px; }
.section-head h2 { font-size: 28px; line-height: 1.14; letter-spacing: -0.03em; }
@media (min-width: 768px) {
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: 40px; line-height: 1.1; }
}

/* ---------- Hero ---------- */

.hero { padding: 56px 0 var(--section); text-align: center; }
@media (min-width: 768px) { .hero { padding-top: 96px; } }
.hero-title {
  font-size: clamp(40px, 8vw, 64px);
  line-height: 1.06; font-weight: 600; letter-spacing: -0.04em;
}
.hero-sub {
  max-width: 640px; margin: 16px auto 0;
  font-size: clamp(19px, 2.4vw, 24px); line-height: 1.35; color: var(--text-2); letter-spacing: -0.02em;
}
.eyebrow { margin-bottom: 12px; font-size: 17px; font-weight: 600; color: var(--text-2); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.notfound { padding-bottom: calc(var(--section) * 1.5); }

/* ---------- Поиск ---------- */

.search { max-width: 820px; margin: 40px auto 0; }
@media (min-width: 768px) { .search { margin-top: 56px; } }
.search-bar {
  display: flex; align-items: center; gap: 12px;
  height: 60px; padding-block: 0; padding-inline: 22px 8px;
  background: var(--bg-alt); border-radius: var(--pill);
  color: var(--text-2);
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.search-bar:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--accent); }
.search-bar input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 19px; color: var(--text); letter-spacing: -0.02em;
}
.search-bar input::placeholder { color: var(--text-2); }
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-bar .btn { height: 44px; }
@media (min-width: 768px) {
  .search-bar { height: 68px; padding-inline-start: 26px; }
  .search-bar input { font-size: 21px; }
  .search-bar .btn { height: 52px; padding: 0 28px; }
}

/* ---------- Чипы-фильтры ---------- */

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.chip {
  position: relative; display: inline-flex; align-items: center;
  height: 40px; border-radius: var(--pill);
  background: var(--bg-alt); color: var(--text);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover { background: #ebebef; }
.chip select {
  -webkit-appearance: none; appearance: none;
  height: 100%; max-width: 220px; padding-block: 0; padding-inline: 16px 36px;
  border: 0; border-radius: var(--pill); background: transparent;
  font: inherit; font-size: 15px; letter-spacing: -0.01em; color: inherit;
  text-overflow: ellipsis; cursor: pointer;
  field-sizing: content; /* ширина по выбранному значению, а не по самому длинному варианту */
}
.chip select:disabled { cursor: default; color: var(--text-2); }
.chip .icon { position: absolute; inset-inline-end: 13px; pointer-events: none; opacity: .6; }
.chip.is-set { background: var(--accent-tint); color: var(--accent); }
.chip.is-set .icon { opacity: 1; }

/* ---------- Марки ---------- */

.brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .brands { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .brands { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.brand {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 22px; background: #fff; border-radius: var(--radius);
  color: var(--text);
  transition: transform .3s var(--ease);
}
.brand:hover { transform: scale(1.02); }
.brand-name { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.brand-count { font-size: 14px; color: var(--text-2); }

/* ---------- Сетка карточек ---------- */

.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 16px; }
@media (min-width: 360px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 24px; } }

.card { display: block; color: var(--text); }
.card-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius); background: var(--bg-alt);
  isolation: isolate;
}
.section-alt .card-media { background: #e8e8ed; }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s var(--ease);
}
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 14px 2px 0; }
.card-price { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.card-title { margin-top: 4px; font-size: 15px; line-height: 1.3; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-sub { margin-top: 2px; font-size: 14px; color: var(--text-2); }
@media (min-width: 1024px) {
  .card-price { font-size: 21px; }
  .card-title { font-size: 17px; }
}

/* Плейсхолдер «нет фото» */
.ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #aeaeb2; font-size: 13px; letter-spacing: 0;
}

/* ---------- Пустые состояния ---------- */

.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 64px 24px; background: var(--bg-alt); border-radius: var(--radius); color: var(--text-2);
}
.empty h3 { margin-top: 18px; font-size: 24px; letter-spacing: -0.02em; }
.empty p { max-width: 420px; margin: 8px 0 24px; font-size: 17px; }

.sell { text-align: center; }
.sell h2 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.035em; }
.sell p { max-width: 560px; margin: 14px auto 28px; font-size: 19px; color: var(--text-2); }

/* ---------- Каталог ---------- */

.page-head { padding-top: 28px; padding-bottom: 24px; }
.page-head-tight { padding-bottom: 16px; }
.page-head h1 { margin-top: 12px; font-size: clamp(32px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.035em; }
@media (min-width: 768px) { .page-head { padding-top: 40px; } }
.page-count { margin-top: 8px; font-size: 17px; color: var(--text-2); }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--text-2); }
.crumbs a { color: var(--text-2); transition: color .2s var(--ease); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--text); }

.filters { margin-bottom: 36px; }
.filters-search {
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 18px; max-width: 520px;
  background: var(--bg-alt); border-radius: var(--pill); color: var(--text-2);
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.filters-search:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--accent); }
.filters-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 17px; color: var(--text);
}
.filters-search input::-webkit-search-cancel-button { display: none; }
.filters .chips { justify-content: flex-start; margin-top: 12px; }
.filters-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.filters-foot .link { font-size: 15px; }

/* На телефоне чипы — горизонтальная лента со свайпом */
@media (max-width: 767px) {
  .filters .chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
    scroll-padding: 0 var(--gutter);
  }
  .filters .chips::-webkit-scrollbar { display: none; }
  .filters .chip { flex: none; }
}

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 56px; }
.pager-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 12px;
  border-radius: var(--pill); color: var(--text); font-size: 17px;
  transition: background-color .2s var(--ease);
}
a.pager-btn:hover { background: var(--bg-alt); }
.pager-btn.is-current { background: var(--text); color: #fff; font-weight: 600; }
.pager-gap { padding: 0 4px; color: var(--text-2); }

/* ---------- Карточка объявления ---------- */

.listing {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "gallery" "aside" "details";
  gap: 28px;
}
@media (max-width: 767px) {
  .listing-gallery { margin: 0 calc(var(--gutter) * -1); }
}
@media (min-width: 1024px) {
  .listing {
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-areas: "gallery aside" "details aside";
    grid-template-rows: auto 1fr;
    column-gap: 56px; row-gap: 56px;
  }
}
.listing-gallery { grid-area: gallery; }
.listing-aside { grid-area: aside; }
.listing-details { grid-area: details; }
.listing { margin-bottom: var(--section); }
.listing + .section-gap { display: none; }

.aside-in { position: sticky; top: calc(var(--hdr) + 24px); }
.listing-title { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.035em; }
.listing-price { margin-top: 10px; font-size: clamp(32px, 4.4vw, 44px); font-weight: 700; line-height: 1.1; letter-spacing: -0.035em; }
.listing-sub { margin: 10px 0 24px; font-size: 17px; color: var(--text-2); }
.aside-note { margin-top: 12px; font-size: 13px; line-height: 1.4; color: var(--text-2); text-align: center; letter-spacing: -0.01em; }

.block + .block { margin-top: 48px; }
.block h2 { margin-bottom: 20px; font-size: 24px; letter-spacing: -0.025em; }
@media (min-width: 768px) { .block h2 { font-size: 28px; } }

.specs { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
.spec { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--text-2); }
.spec dd { margin: 0; text-align: end; font-weight: 500; }

.desc { font-size: 17px; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }

/* Галерея */
.gallery-main { position: relative; }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none;
  aspect-ratio: 4 / 3; background: var(--bg-alt);
}
.gallery-track::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .gallery-track { border-radius: var(--radius); } }
.gallery-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; cursor: zoom-in; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-empty { position: relative; aspect-ratio: 4 / 3; background: var(--bg-alt); }
@media (min-width: 768px) { .gallery-empty { border-radius: var(--radius); } }

.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--text); cursor: pointer; opacity: 0;
  transition: opacity .25s var(--ease), background-color .2s var(--ease);
}
.gallery-prev { inset-inline-start: 16px; }
.gallery-next { inset-inline-end: 16px; }
.gallery-nav:hover { background: #fff; }
.gallery-nav[disabled] { visibility: hidden; }
@media (hover: hover) and (min-width: 768px) {
  .gallery-nav { display: flex; }
  .gallery-main:hover .gallery-nav, .gallery-nav:focus-visible { opacity: 1; }
}
.gallery-count, .gallery-zoom {
  position: absolute; bottom: 14px;
  height: 30px; padding: 0 12px; border: 0; border-radius: var(--pill);
  background: rgba(29, 29, 31, 0.56);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: #fff; font-size: 13px; line-height: 30px; letter-spacing: 0;
}
.gallery-count { inset-inline-start: 14px; }
.gallery-zoom { inset-inline-end: 14px; display: flex; align-items: center; padding: 0 8px; cursor: pointer; }

.gallery-thumbs {
  display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none;
  padding: 2px var(--gutter);
}
@media (min-width: 768px) { .gallery-thumbs { padding: 2px; } }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
  flex: none; width: 80px; aspect-ratio: 4 / 3; padding: 0; border: 0;
  border-radius: 10px; overflow: hidden; background: var(--bg-alt);
  cursor: pointer; opacity: .55; transition: opacity .2s var(--ease), box-shadow .2s var(--ease);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: .85; }
.gallery-thumb.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--accent); }
@media (min-width: 1024px) { .gallery-thumb { width: 96px; } }

/* Полноэкранный просмотр */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  height: 100dvh; margin: 0; padding: 0; border: 0;
  background: #000;
}
.lightbox::backdrop { background: #000; }
.lightbox[open] { display: block; animation: lb-in .25s var(--ease); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox-track {
  display: flex; width: 100%; height: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none;
}
.lightbox-track::-webkit-scrollbar { display: none; }
.lightbox-slide { flex: 0 0 100%; height: 100%; margin: 0; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; scroll-snap-stop: always; }
.lightbox-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close {
  position: absolute; top: max(14px, env(safe-area-inset-top)); inset-inline-end: 14px;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer;
  transition: background-color .2s var(--ease);
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox .gallery-nav { display: none; opacity: 1; background: rgba(255, 255, 255, 0.14); color: #fff; }
.lightbox .gallery-nav:hover { background: rgba(255, 255, 255, 0.24); }
@media (hover: hover) and (min-width: 768px) { .lightbox .gallery-nav { display: flex; } }
.lightbox .gallery-count { inset-inline: 0; width: max-content; margin-inline: auto; bottom: max(20px, env(safe-area-inset-bottom)); }
html.is-locked { overflow: hidden; }

/* Нижняя панель с ценой на телефоне */
.buybar { display: none; }
@media (max-width: 1023px) {
  .has-buybar .buybar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--line);
    transform: translateY(0); transition: transform .3s var(--ease);
  }
  .has-buybar .buybar.is-hidden { transform: translateY(110%); }
  .has-buybar .ftr { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
.buybar-info { min-width: 0; }
.buybar-price { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.buybar-name { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .btn { height: 40px; padding: 0 18px; font-size: 15px; }

/* ---------- Подвал ---------- */

.ftr { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 40px 0; font-size: 13px; color: var(--text-2); letter-spacing: -0.01em; }
.ftr-in { display: grid; gap: 20px; }
.ftr-about p { max-width: 420px; margin-top: 10px; line-height: 1.5; }
.ftr-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.ftr-nav a { color: var(--text); font-size: 14px; }
.ftr-nav a:hover { color: var(--accent); }
@media (min-width: 768px) {
  .ftr-in { grid-template-columns: 1fr auto; align-items: start; }
  .ftr-copy { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); }
}

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

/* ---------- Переключатель языка ---------- */

.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 8px; border-radius: var(--pill);
  list-style: none; cursor: pointer; font-size: 14px; color: var(--text); opacity: .88;
  transition: background-color .2s var(--ease), opacity .2s var(--ease);
}
.lang-btn::-webkit-details-marker { display: none; }
.lang-btn:hover, .lang[open] .lang-btn { opacity: 1; background: var(--bg-alt); }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 160px; padding: 6px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line); border-radius: 14px;
  animation: lang-in .2s var(--ease);
}
@keyframes lang-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.lang-menu a {
  display: block; padding: 9px 12px; border-radius: 9px;
  color: var(--text); font-size: 15px;
  transition: background-color .2s var(--ease);
}
.lang-menu a:hover { background: var(--bg-alt); }
.lang-menu a.is-current { color: var(--accent); font-weight: 600; }
.lang-menu a[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--font); }
@media (max-width: 400px) {
  .hdr-nav { gap: 10px; }
  .lang-btn .icon { display: none; }
}

/* ---------- Арабская версия (RTL) ---------- */

/* Вёрстка зеркалится сама за счёт dir="rtl" и логических свойств; здесь — только шрифт и
   то, что не зеркалится автоматически. */
[dir="rtl"] {
  --font: "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}
/* Разрядка ломает соединение арабских букв. */
[dir="rtl"] body, [dir="rtl"] body * { letter-spacing: 0 !important; }
[dir="rtl"] .hero-title, [dir="rtl"] .page-head h1, [dir="rtl"] .sell h2,
[dir="rtl"] .listing-title, [dir="rtl"] .section-head h2 { line-height: 1.3; }
[dir="rtl"] .hero-sub { line-height: 1.6; }
/* Стрелки и «самолётик» смотрят по направлению чтения. */
[dir="rtl"] .icon-dir { transform: scaleX(-1); }
