:root {
  --bg: #050505;
  --panel: #101010;
  --panel-2: #171717;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6f6f6;
  --muted: #a7a7a7;
  --red: #d50012;
  --red-2: #7a0008;
  --blue: #179de0;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html,
body {
  max-width: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Onest", sans-serif;
  line-height: 1.5;
}

/* Site scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: #d50012 #080808;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #080808;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff1f2d, #9f000d);
  border: 2px solid #080808;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff3a46, #d50012);
}

::-webkit-scrollbar-corner {
  background: #080808;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 54px);
  background: rgba(5, 5, 5, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}
.brand strong {
  display: block;
  letter-spacing: 0.08em;
  font-size: 15px;
}
.brand em { color: var(--white); font-style: normal; }
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: #050505;
  box-shadow: 0 0 22px rgba(213, 0, 18, 0.25);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2vw, 24px);
  color: #dedede;
  font-size: 14px;
}
.main-nav a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover { color: var(--white); border-color: var(--red); }
.main-nav a.active,
.main-nav a[aria-current="page"] {
  color: var(--white);
  border-color: var(--red);
  text-shadow: 0 0 18px rgba(213, 0, 18, 0.55);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.social {
  display: grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #f4f4f4;
  font-size: 11px;
  font-weight: 800;
  background: transparent;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.social:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 14px rgba(213, 0, 18, 0.34));
}
.social img {
  display: block;
  width: 100%;
  height: 100%;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  color: var(--white);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.header-phone:hover {
  transform: translateY(-1px);
  border-color: rgba(213, 0, 18, 0.72);
  background: rgba(213, 0, 18, 0.12);
}
.menu-toggle { display: none; }
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.24s ease, opacity 0.24s ease;
}
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 18;
  background: rgba(0, 0, 0, 0.68);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
body.nav-open { overflow: hidden; }
body.nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}
body.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-nav-contacts {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--text);
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-red {
  background: linear-gradient(135deg, var(--red), var(--red-2));
  box-shadow: 0 14px 32px rgba(213, 0, 18, 0.28);
}
.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}
.btn-blue {
  background: var(--blue);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 820px;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.62), rgba(5, 5, 5, 0.36) 42%, rgba(5, 5, 5, 0.86)),
    linear-gradient(180deg, rgba(5, 5, 5, 0.48), rgba(5, 5, 5, 0.34) 42%, #050505 93%),
    radial-gradient(circle at 50% 33%, rgba(213, 0, 18, 0.16), transparent 35%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 132px 0 220px;
  text-align: center;
}
.eyebrow,
.section-kicker {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 16px;
  font-size: clamp(54px, 9vw, 118px);
  line-height: 0.9;
  /* letter-spacing: 0.08em; */
  text-shadow: 0 0 40px rgba(213, 0, 18, 0.45);
}
.hero-title-plate {
  display: grid;
  gap: 10px;
  justify-items: center;
  letter-spacing: 0;
}
.hero-title-plate span,
.hero-title-plate small {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-size: clamp(15px, 2vw, 24px);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-title-plate span:before,
.hero-title-plate span:after,
.hero-title-plate small:before,
.hero-title-plate small:after {
  content: "";
  width: clamp(38px, 8vw, 110px);
  height: 2px;
  background: var(--red);
}
.hero-title-plate strong {
  display: block;
  color: var(--red);
  font-size: clamp(42px, 8vw, 108px);
  line-height: 0.92;
  letter-spacing: 0.08em;
  text-shadow: 0 0 40px rgba(213, 0, 18, 0.48);
}
.hero-title-plate em {
  color: #f5f5f5;
  font-style: normal;
}
h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.02;
}
h3 { margin-bottom: 8px; }
.hero-content p {
  width: min(690px, 100%);
  margin: 0 auto 30px;
  color: #e9e9e9;
  font-size: clamp(17px, 2vw, 23px);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.hero-benefits {
  position: absolute;
  z-index: 3;
  left: clamp(16px, 4vw, 54px);
  right: clamp(16px, 4vw, 54px);
  bottom: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(213, 0, 18, 0.35);
  box-shadow: var(--shadow);
}
.hero-benefits article {
  min-height: 108px;
  padding: 24px;
  border-right: 1px solid rgba(213, 0, 18, 0.35);
}
.hero-benefits article:last-child { border-right: 0; }
.hero-benefits b { display: block; color: var(--red); margin-bottom: 8px; }
.hero-benefits span { font-weight: 800; text-transform: uppercase; }

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}
.page-hero {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: end;
  padding: 120px clamp(16px, 4vw, 54px) 58px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.94), rgba(5, 5, 5, 0.68), rgba(5, 5, 5, 0.92)),
    linear-gradient(180deg, rgba(5, 5, 5, 0.36), rgba(5, 5, 5, 0.2) 45%, rgba(5, 5, 5, 0.72)),
    url("../photo_2026-08-24_23-05-25.jpg") 42% center / cover;
  opacity: 0.95;
}
.catalog-page .page-hero:before,
.korea-page .page-hero:before {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.94), rgba(5, 5, 5, 0.68), rgba(5, 5, 5, 0.92)),
    linear-gradient(180deg, rgba(5, 5, 5, 0.36), rgba(5, 5, 5, 0.2) 45%, rgba(5, 5, 5, 0.72)),
    url("../photo_2026-08-24_23-05-25.jpg") 42% center / cover;
}
.china-page .page-hero:before,
.calculator-page .page-hero:before {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.94), rgba(5, 5, 5, 0.66), rgba(5, 5, 5, 0.92)),
    linear-gradient(180deg, rgba(5, 5, 5, 0.36), rgba(5, 5, 5, 0.2) 45%, rgba(5, 5, 5, 0.72)),
    url("../photo_2026-08-24_23-05-38.jpg") 48% center / cover;
}
.japan-page .page-hero:before,
.about-page .page-hero:before,
.contacts-page .page-hero:before,
.news-page .page-hero:before {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.94), rgba(5, 5, 5, 0.66), rgba(5, 5, 5, 0.92)),
    linear-gradient(180deg, rgba(5, 5, 5, 0.36), rgba(5, 5, 5, 0.2) 45%, rgba(5, 5, 5, 0.72)),
    url("../photo_2026-08-24_23-05-42.jpg") 48% center / cover;
}
.page-hero > div {
  position: relative;
  z-index: 1;
  width: min(940px, 100%);
}
.page-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 82px);
}
.page-hero p {
  max-width: 760px;
  color: #e8e8e8;
  font-size: 20px;
}
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.content-card {
  padding: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line);
  border-radius: 8px;
}
.content-card b {
  display: block;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 28px;
}
.article-list {
  display: grid;
  gap: 16px;
}
.article-list article {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line);
  border-radius: 8px;
}
.article-date {
  color: var(--red);
  font-weight: 900;
}
.split,
.calculator,
.contacts {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: start;
}
.muted { color: var(--muted); }
.country-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 48px;
}
.country-card,
.sync-panel,
.calc-card,
.lead-form,
.auction-search,
.review-grid article,
.step-grid article,
.post-card,
.car-card,
details,
.admin-panel,
.admin-sidebar,
.market-row {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.country-card {
  min-height: 164px;
  padding: 24px;
  overflow: hidden;
}
.country-card span {
  display: block;
  margin-bottom: 32px;
  color: var(--red);
  font-size: 32px;
  font-weight: 900;
}
.country-card b { font-size: 18px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.sync-panel {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 24px;
}
.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00df7f;
  box-shadow: 0 0 0 8px rgba(0, 223, 127, 0.12);
}

.finder {
  width: min(1260px, calc(100% - 32px));
}
.filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(213, 0, 18, 0.12), rgba(5, 5, 5, 0.96) 34%, rgba(12, 12, 12, 0.98)),
    #090909;
  border: 1px solid rgba(213, 0, 18, 0.34);
  border-radius: 8px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}
.korea-filters,
.china-filters,
.home-catalog-filter {
  grid-template-columns: repeat(3, 1fr);
}
.home-catalog-section {
  width: min(1260px, calc(100% - 32px));
}
.home-catalog-section .section-head {
  margin-bottom: 22px;
}
.filter-wide {
  grid-column: span 3;
}
.filter-check {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  color: var(--text);
  background: #141414;
  border: 1px solid rgba(213, 0, 18, 0.32);
  border-radius: 7px;
  font-weight: 800;
}
.filter-check input {
  width: auto;
  min-height: 0;
  accent-color: var(--red);
}
.japan-photo-filter {
  grid-column: span 2;
}
input, select, textarea {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  color: var(--text);
  background: #111;
  border: 1px solid rgba(213, 0, 18, 0.26);
  border-radius: 7px;
  outline: none;
}
textarea {
  min-height: 120px;
  padding-top: 14px;
  resize: vertical;
}
input:focus, select:focus, textarea:focus { border-color: var(--red); }
select:disabled,
select.is-disabled {
  color: rgba(255, 255, 255, 0.38);
  background: #181818;
  border-color: rgba(255, 255, 255, 0.12);
  cursor: not-allowed;
  opacity: 0.72;
}
select:disabled option {
  color: rgba(255, 255, 255, 0.46);
}
.filters .btn-blue,
.auction-search .btn-blue,
.japan-filter .btn-blue {
  background: linear-gradient(135deg, var(--red), var(--red-2));
  box-shadow: 0 14px 32px rgba(213, 0, 18, 0.28);
}
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  color: var(--muted);
}
.link-button {
  color: var(--red);
  background: none;
  border: 0;
  font-weight: 800;
}
.car-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.load-more {
  width: fit-content;
  min-width: min(260px, 100%);
  margin: 28px auto 0;
  display: flex;
}
.car-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.car-photo {
  position: relative;
  width: 100%;
  min-height: 210px;
  display: grid;
  place-items: end start;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.18), transparent 18%),
    linear-gradient(145deg, #272727, #080808);
  background-position: center;
  background-size: cover;
  /* border-bottom: 1px solid var(--line); */
  overflow: hidden;
}
.car-photo-link {
  color: inherit;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  cursor: pointer;
  text-align: left;
}
.car-photo-link:hover:before {
  filter: brightness(1.16);
}
.car-photo.has-real-photo:before {
  position: absolute;
  inset: 0;
  opacity: 0 !important;
  /* bottom: -5px; */
  z-index: 0;
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.42));
  box-shadow: none;
  pointer-events: none;
}
.source-watermark-logo {
  position: absolute;
  /* opacity: 0.3; */
  right: 0;
  bottom: 0px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  /* width: 238px; */
  /* max-width: calc(100% - 28px); */
  /* min-height: 58px; */
  padding: 10px 5px;
  border-radius: 8px 0 0 0;
  color: #fff;
  background: rgba(5, 5, 5, 0.84);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}
.source-watermark-logo img {
  display: block;
  width: 28px;
  height: 28px;
  /* flex: 0 0 42px; */
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: #050505;
  box-shadow: 0 0 18px rgba(213, 0, 18, 0.28);
}
.source-watermark-logo span {
  display: grid;
  min-width: 0;
  gap: 4px;
  text-align: left;
}
.source-watermark-logo strong {
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.source-watermark-logo small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}
.gallery-main .source-watermark-logo {
  right: 0;
  bottom: 0;
  width: 286px;
  min-height: 68px;
}
.gallery-main .source-watermark-logo img {
  width: 50px;
  height: 50px;
  flex-basis: 50px;
}
.gallery-main .source-watermark-logo strong,
.source-watermark-logo.is-lightbox strong {
  font-size: 17px;
}
.gallery-main .source-watermark-logo small,
.source-watermark-logo.is-lightbox small {
  font-size: 11px;
}

@media(max-width: 600px) {
  .gallery-main .source-watermark-logo strong,
  .source-watermark-logo.is-lightbox strong {
    font-size: 11px;
  }
  .gallery-main .source-watermark-logo small,
  .source-watermark-logo.is-lightbox small {
    font-size: 7px;
  }

  .gallery-main .source-watermark-logo img {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .gallery-main .source-watermark-logo {
    width: auto;
    min-height: auto;
  }
}

.thumb-row .source-watermark-logo {
  right: 0;
  bottom: -3px;
  width: 36px;
  min-height: 22px;
  padding: 2px;
  border-radius: 5px 0 0 0;
}
.thumb-row .source-watermark-logo img {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}
.thumb-row .source-watermark-logo span {
  display: none;
}
.source-watermark-logo.is-lightbox {
  right: 0;
  bottom: 0;
  /* width: min(300px, 58%); */
  /* min-height: 70px; */
}
.source-watermark-logo.is-lightbox img {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
}

@media(max-width: 600px) {
    .source-watermark-logo.is-lightbox img {
      width: 28px;
      height: 28px;
      flex-basis: 28px;
    }

  .source-watermark-logo.is-lightbox {
    min-height: 0px;
    width: auto;
  }
}


.car-photo.has-real-photo > * {
  /* position: relative; */
  z-index: 2;
}
.car-photo.has-real-photo:hover {
  filter: brightness(1.08);
}
.car-photo:before {
  content: "";
  width: 82%;
  height: 54px;
  margin-left: 10px;
  border-radius: 60% 42% 22% 18%;
  background: linear-gradient(90deg, #171717, #4a4a4a, #111);
  box-shadow: inset 0 -8px 0 #050505, 18px 24px 0 -15px #000, 158px 24px 0 -15px #000;
  border-top: 3px solid rgba(213, 0, 18, 0.8);
}
.car-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}
.car-body .card-actions {
  margin-top: auto;
}
.car-title-link {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font-weight: 900;
  text-align: left;
}
.car-title-link:hover {
  color: var(--red);
}
.car-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.price {
  color: var(--red);
  font-size: 24px;
  font-weight: 900;
}
.price-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.calc-note {
  margin: 8px 0 14px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.catalog-more {
  display: flex;
  justify-content: center;
  width: min(320px, 100%);
  margin: 28px auto 0;
}
.catalog-more[hidden] {
  display: none;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(213, 0, 18, 0.14);
  color: #ff6b74;
  font-size: 12px;
  font-weight: 800;
}

.dark-band {
  width: 100%;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, #090909, #111);
}
.market-table {
  display: grid;
  gap: 12px;
}
.market-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr .8fr .8fr .8fr .8fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
}
.market-row.head {
  background: linear-gradient(90deg, var(--red-2), var(--red));
  font-weight: 900;
  box-shadow: none;
}
.market-row strong { color: #fff; }

.auction-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
}
.auction-search {
  padding: 20px;
  display: grid;
  gap: 14px;
}
.auction-search,
.japan-filter {
  background:
    linear-gradient(145deg, rgba(213, 0, 18, 0.12), rgba(5, 5, 5, 0.96) 34%, rgba(12, 12, 12, 0.98)),
    #090909;
  border-color: rgba(213, 0, 18, 0.34);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}
.auction-search label,
.calc-card label,
.lead-form label,
.admin-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.tabs button,
.admin-sidebar button {
  min-height: 42px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.tabs .active,
.admin-sidebar .active {
  background: var(--red);
  border-color: var(--red);
}
.auction-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}
.auction-item:first-child { border-radius: 8px 8px 0 0; }
.auction-item:last-child { border-bottom: 0; border-radius: 0 0 8px 8px; }
.japan-portal {
  width: min(1280px, calc(100% - 32px));
}
.japan-live-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.japan-lot,
.japan-filter,
.register-gate,
.japan-detail {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.japan-lot {
  display: grid;
  gap: 12px;
  padding: 18px;
}
.japan-lot.is-sold { border-color: rgba(213, 0, 18, 0.5); }
.lot-meta,
.lot-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.japan-workspace {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 18px;
}
.japan-filter,
.register-gate {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
}
.japan-filter label {
  display: grid;
  gap: 7px;
  color: var(--muted);
}
.japan-filter {
  background:
    linear-gradient(145deg, rgba(213, 0, 18, 0.12), rgba(5, 5, 5, 0.96) 34%, rgba(12, 12, 12, 0.98)),
    #090909;
  border-color: rgba(213, 0, 18, 0.34);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}
.japan-table-head,
.japan-stat-row {
  display: grid;
  grid-template-columns: 80px 90px 1.2fr 1fr 1fr 120px;
  gap: 12px;
  align-items: center;
  padding: 12px;
}
.japan-table-head {
  color: #fff;
  background: linear-gradient(90deg, var(--red-2), var(--red));
  border-radius: 8px 8px 0 0;
  font-weight: 900;
}
.japan-stat-row {
  width: 100%;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 0;
  border-bottom: 1px solid var(--line);
}
.mini-car {
  width: 70px;
  height: 48px;
  border-radius: 6px;
  background: linear-gradient(145deg, #eee, #888);
  border-bottom: 4px solid var(--red);
}
.japan-detail {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
  margin-top: 20px;
  padding: 20px;
}
.japan-detail-photo {
  min-height: 250px;
  display: grid;
  align-items: end;
  padding: 16px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent, rgba(0,0,0,.68)),
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.65), transparent 25%),
    linear-gradient(145deg, #f4f4f4, #6b6b6b);
}
.japan-auto-calc {
  grid-column: 1 / -1;
  padding: 18px;
  background: #f5f1df;
  color: #151515;
  border-radius: 8px;
}
.japan-auto-calc .result-line { border-color: rgba(0,0,0,.16); }
.japan-auto-calc .result-line span,
.japan-auto-calc .result-line strong { color: #151515; }

.japan-card-prices {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}
.japan-card-prices span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 5px;
}
.japan-card-prices b {
  color: #fff;
  text-align: right;
}
.japan-auction-price .breakdown-list span {
  display: flex;
}
.japan-auction-sheet {
  display: grid;
  gap: 16px;
}
.japan-sheet-image {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: #111;
}
.japan-sheet-image img {
  display: block;
  width: 100%;
  max-height: 780px;
  object-fit: contain;
  background: #080808;
}
.japan-damage-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}
.japan-damage-legend span {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  overflow-wrap: anywhere;
}
.japan-damage-legend b {
  color: #fff;
}

.calculator {
  align-items: center;
}
.calc-card,
.lead-form {
  display: grid;
  gap: 14px;
  padding: 24px;
}
.calc-card {
  grid-template-columns: repeat(2, 1fr);
}
.calc-result {
  grid-column: 1 / -1;
  padding: 22px;
  background: #070707;
  border: 1px solid rgba(213, 0, 18, 0.35);
  border-radius: 8px;
}
.calc-result span { display: block; color: var(--muted); }
.calc-result strong {
  font-size: clamp(34px, 5vw, 54px);
  color: var(--red);
}
.calc-card .btn { grid-column: 1 / -1; }
.customs-calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.customs-form {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.field-label {
  display: grid;
  gap: 8px;
  color: #ececec;
  font-weight: 800;
}
.price-line {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 10px;
}
.rc-grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.rc-choice-grid {
  display: grid;
  gap: 10px;
}
.rc-choice-grid-2 { grid-template-columns: repeat(2, 1fr); }
.rc-choice-grid-3 { grid-template-columns: repeat(3, 1fr); }
.rc-choice-grid-4 { grid-template-columns: repeat(4, 1fr); }
.rc-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.rc-choice {
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.rc-choice .title {
  font-weight: 900;
}
.rc-choice .desc {
  color: var(--muted);
  font-size: 13px;
}
.rc-radio:checked + .rc-choice {
  background: rgba(213, 0, 18, 0.16);
  border-color: rgba(213, 0, 18, 0.75);
}
.notice-box {
  padding: 16px;
  color: #e8e8e8;
  background: rgba(213, 0, 18, 0.1);
  border: 1px solid rgba(213, 0, 18, 0.36);
  border-radius: 8px;
}
.fine-print {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.rc-error-text {
  display: none;
  color: #ff6570;
  font-size: 13px;
}
.rc-error-text.show { display: block; }
.disp-none { display: none !important; }
.rc-loader,
.rc-results-panel {
  padding: 24px;
  background: #0b0b0b;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.rc-loader {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}
.rc-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.results-grid {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}
.result-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.result-line span { color: var(--muted); }
.result-line strong { color: var(--white); }
.result-total strong { color: #ff747c; }
.result-grand {
  margin-top: 8px;
  padding: 18px;
  background: rgba(213, 0, 18, 0.13);
  border: 1px solid rgba(213, 0, 18, 0.48);
  border-radius: 8px;
}
.result-grand strong {
  color: var(--red);
  font-size: clamp(26px, 4vw, 42px);
}
.rate-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.rate-note span {
  padding: 7px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
}
.calc-preview {
  grid-template-columns: repeat(2, 1fr);
}
.calc-preview span {
  display: block;
  color: var(--muted);
}
.calc-preview strong {
  color: var(--white);
}

.step-grid,
.review-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step-grid {
  grid-template-columns: repeat(5, 1fr);
}
.step-grid article,
.review-grid article,
.post-card {
  padding: 22px;
}
.step-grid b {
  display: block;
  margin-bottom: 36px;
  color: var(--red);
  font-size: 34px;
}
.review-grid b { color: var(--red); letter-spacing: 0.16em; }
.review-grid span,
.post-card span {
  color: var(--muted);
  font-size: 13px;
}
.post-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-color: rgba(213, 0, 18, 0.25);
}
.post-card h3 { color: var(--white); }

.faq details {
  padding: 20px;
  margin-bottom: 12px;
}
summary {
  cursor: pointer;
  font-weight: 900;
}
details p {
  margin: 12px 0 0;
  color: var(--muted);
}
.contacts {
  padding-bottom: 70px;
}
.contacts a { color: #fff; }
.policy-page {
  padding-top: 28px;
  padding-bottom: 80px;
}
.policy-content {
  max-width: 920px;
  color: var(--muted);
  line-height: 1.7;
}
.policy-content h2,
.policy-content h3 {
  color: var(--white);
}
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.messenger-btn {
  gap: 8px;
}
.messenger-btn img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(16px, 4vw, 54px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer strong { color: var(--white); }

.lead-modal {
  width: min(460px, calc(100% - 28px));
  padding: 30px;
  color: var(--text);
  background: #101010;
  border: 1px solid rgba(213, 0, 18, 0.42);
  border-radius: 8px;
}
.lead-modal::backdrop { background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(4px); }
.lead-modal form { display: grid; gap: 12px; }
.policy-consent {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.policy-consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 18px;
  transform: translateY(1px);
  accent-color: var(--red);
}
.policy-consent span {
  display: inline;
  min-width: 0;
}
.policy-consent a {
  display: inline;
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(213, 0, 18, 0.72);
  text-underline-offset: 3px;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 35px;
  /* font-size: 24px; */
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close img {
  width: 13px;
}

.car-detail-modal {
  width: min(1120px, calc(100% - 24px));
  max-height: min(92vh, 920px);
  overflow: auto;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(213, 0, 18, 0.1), rgba(5, 5, 5, 0.98) 30%),
    #080808;
}
.car-detail-head {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) minmax(260px, .75fr);
  gap: 24px;
  align-items: start;
  margin-top: 27px;
}
.encar-photo,
.car-gallery {
  position: relative;
}
.gallery-main {
  position: relative;
  display: block;
  width: 100%;
  min-height: 430px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #050505;
}
.gallery-main img {
  display: block;
  width: 100%;
  height: 430px;
  object-fit: cover;
  object-position: center;
}
.encar-photo:after {
  content: "";
  position: absolute;
  left: 10%;
  right: 7%;
  bottom: 76px;
  height: 96px;
  border-radius: 62% 42% 18% 16%;
  background: linear-gradient(90deg, #f3f4f5, #c9d0d6 48%, #2c333b);
  border-bottom: 18px solid #111923;
  box-shadow: 28px 34px 0 -20px #05080c, 330px 34px 0 -20px #05080c;
}
.car-gallery .status-ribbon,
.car-gallery .mileage-ribbon {
  pointer-events: none;
}
.status-ribbon,
.mileage-ribbon {
  position: absolute;
  z-index: 2;
  /* min-height: 42px; */
  display: inline-flex;
  align-items: center;
  padding: 7px 8px;
  border-radius: 7px;
  color: #fff;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 900;
}
.status-ribbon {
  top: 10px;
  right: 10px;
  background: #209447;
}
.mileage-ribbon {
  left: 16px;
  bottom: 16px;
  background: #172235;
  display: none;
}
.car-detail-summary {
  display: grid;
  min-width: 0;
  gap: 14px;
  align-content: start;
}
.car-detail-summary h2 {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.price-with-hint {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.price-fee-hint {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgb(232 45 45 / 78%);
  border-radius: 50%;
  color: #ef3535;
  background: rgba(8, 30, 43, 0.72);
  box-shadow: 0 0 18px rgba(45, 181, 232, 0.24);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  cursor: help;
}
.price-fee-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 20;
  display: grid;
  min-width: 248px;
  padding: 12px 14px;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, #000000, #000000);
  box-shadow: 0 18px 42px rgb(140 0 0 / 15%);
  border: 0.3px #ff000073 solid;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}
.price-fee-popover:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #000000;
  display: none;
  transform: translateX(-50%) rotate(45deg);
}
.price-fee-hint:hover .price-fee-popover,
.price-fee-hint:focus .price-fee-popover,
.price-fee-hint:focus-visible .price-fee-popover {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}
.city-delivery-calc {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(226, 0, 26, 0.08));
}
.city-delivery-calc label {
  display: grid;
  gap: 8px;
}
.city-delivery-calc label span {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}
.city-delivery-calc select {
  width: 100%;
  min-height: 44px;
  padding: 0 42px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background: rgba(7, 7, 8, 0.84);
  font: inherit;
  font-weight: 800;
  outline: none;
  cursor: pointer;
}
.city-delivery-calc select:focus {
  border-color: rgba(226, 0, 26, 0.78);
  box-shadow: 0 0 0 3px rgba(226, 0, 26, 0.16);
}
.city-delivery-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  color: #fff;
  background: rgba(226, 0, 26, 0.88);
  box-shadow: 0 16px 32px rgba(226, 0, 26, 0.18);
}
.city-delivery-result[hidden] {
  display: none;
}
.city-delivery-result strong {
  white-space: nowrap;
}
.city-delivery-calc p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.city-delivery-calc.is-active {
  border-color: rgba(226, 0, 26, 0.6);
}
.gallery-controls {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 92px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.gallery-controls button,
.lightbox-nav,
.lightbox-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(5, 5, 5, 0.72);
  font-size: 28px;
  line-height: 1;
  backdrop-filter: blur(12px);
}
.gallery-controls button {
  pointer-events: auto;
}
.gallery-controls span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 5, 5, 0.72);
  font-weight: 800;
}
.thumb-row {
  display: flex;
  gap: 10px;
  width: 100%;
  margin: 12px 0 0;
  overflow-x: auto;
  padding-bottom: 6px;
}
.thumb-row button {
  position: relative;
  flex: 0 0 92px;
  height: 62px;
  padding: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #111;
  border: 2px solid transparent;
}
.thumb-row button.active {
  border-color: var(--red);
}
.thumb-row img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-block { margin-top: 24px; }
.price-breakdown {
  margin-top: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(213, 0, 18, 0.28);
  border-radius: 8px;
  grid-column: 1 / -1;
}
.price-breakdown h3 {
  margin-top: 0;
}
.breakdown-list {
  display: grid;
  gap: 0;
}
.breakdown-list span {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.breakdown-list b {
  color: var(--text);
  text-align: right;
}
.breakdown-list .breakdown-total {
  color: var(--text);
  border-bottom: 0;
}
.breakdown-list .breakdown-total b {
  color: var(--red-soft);
}
.detail-specs,
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 28px;
}
.detail-specs span {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 4px;
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,.42);
}
.detail-specs b { color: var(--text); text-align: right; }
.option-grid span {
  padding: 6px 0;
  color: var(--muted);
}
.option-grid span:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--red);
  vertical-align: middle;
}
.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.catalog-message {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}
.catalog-loading {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 42px 18px;
  color: var(--white);
  text-align: center;
  background: linear-gradient(145deg, rgba(213, 0, 18, 0.11), rgba(18, 18, 18, 0.96));
  border: 1px solid rgba(213, 0, 18, 0.32);
  border-radius: 8px;
}
.catalog-loading b {
  font-size: 18px;
  font-weight: 900;
}
.catalog-loading small {
  color: var(--muted);
  font-weight: 700;
}
.catalog-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: catalog-spin 0.82s linear infinite;
}
@keyframes catalog-spin {
  to { transform: rotate(360deg); }
}
.gallery-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 68px 18px 44px;
  border: 0;
  background: rgba(0, 0, 0, 0.94);
}
.gallery-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.94);
}
.gallery-lightbox.open {
  display: flex;
}
.lightbox-media {
  position: relative;
  display: inline-flex;
  max-width: min(1280px, 100%);
  max-height: calc(100vh - 132px);
}
.gallery-lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 132px);
  object-fit: contain;
}
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
}
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }
.lightbox-count {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 20, 20, 0.86);
  font-weight: 800;
}
.car-report-block {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.report-card {
  min-width: 0;
}
.report-card h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 17px;
}
.report-empty {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
}
.inspection-table {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.65fr) minmax(0, 1fr);
  min-width: 0;
  border-top: 1px solid rgba(255,255,255,.52);
  border-left: 1px solid rgba(255,255,255,.52);
}
.inspection-table span,
.inspection-table b {
  min-width: 0;
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-right: 1px solid rgba(255,255,255,.52);
  border-bottom: 1px solid rgba(255,255,255,.52);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}
.inspection-table b {
  color: #fff;
  background: linear-gradient(90deg, rgba(10,132,31,.95), rgba(10,132,31,.45));
}
.insurance-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  border-top: 1px solid rgba(255,255,255,.34);
  border-left: 1px solid rgba(255,255,255,.34);
}
.insurance-list span,
.insurance-list b {
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-right: 1px solid rgba(255,255,255,.34);
  border-bottom: 1px solid rgba(255,255,255,.34);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}
.insurance-list b {
  color: #fff;
  background: rgba(255,255,255,.045);
}
.body-map {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 22px;
  align-items: center;
}
.body-silhouette {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 320 / 303;
  min-height: 0;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,.96) url("https://fem.encar.com/assets/images/cars/inspect/bg_inspect_front.png") center / 100% 100% no-repeat;
}
.body-silhouette:before {
  content: "";
  position: absolute;
  inset: 28px 78px;
  border: 2px solid rgba(255,255,255,.64);
  border-radius: 42% 42% 28% 28% / 16% 16% 11% 11%;
  background:
    linear-gradient(90deg, transparent 0 16%, rgba(255,255,255,.12) 16% 17%, transparent 17% 83%, rgba(255,255,255,.12) 83% 84%, transparent 84%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  box-shadow: inset 0 0 38px rgba(255,255,255,.08), 0 22px 48px rgba(0,0,0,.28);
}
.body-silhouette:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118px;
  height: 112px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 40% 40% 30% 30% / 18% 18% 24% 24%;
  background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.04));
}
.body-section {
  position: absolute;
  left: 50%;
  width: 118px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(213,0,18,.45);
}
.body-section.front-bumper { top: 32px; }
.body-section.rear-bumper { bottom: 32px; }
.body-window {
  position: absolute;
  left: 50%;
  width: 86px;
  height: 24px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.38);
  background: rgba(255,255,255,.13);
}
.body-window.windshield {
  top: 96px;
  border-radius: 40% 40% 12% 12%;
}
.body-window.rear-window {
  bottom: 96px;
  border-radius: 12% 12% 40% 40%;
}
.body-wheel {
  position: absolute;
  z-index: 1;
  width: 22px;
  height: 58px;
  border-radius: 8px;
  background: linear-gradient(180deg, #050505, #202020 50%, #050505);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.body-wheel.front-left { top: 78px; left: 70px; }
.body-wheel.front-right { top: 78px; right: 70px; }
.body-wheel.rear-left { bottom: 78px; left: 70px; }
.body-wheel.rear-right { bottom: 78px; right: 70px; }
.body-part {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 82px;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  background: rgba(213,0,18,.24);
  backdrop-filter: blur(4px);
}
.body-part.hood { top: 58px; left: 50%; transform: translateX(-50%); }
.body-part.roof { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.body-part.left-door { top: 50%; left: 28px; transform: translateY(-50%); }
.body-part.right-door { top: 50%; right: 28px; transform: translateY(-50%); }
.body-part.trunk { bottom: 58px; left: 50%; transform: translateX(-50%); }
.body-silhouette:before,
.body-silhouette:after,
.body-silhouette .body-section,
.body-silhouette .body-window,
.body-silhouette .body-wheel,
.body-silhouette .body-part {
  display: none;
}
.body-damage-marker {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(0,0,0,.38), 0 0 0 2px rgba(255,255,255,.78);
}
.body-damage-marker.replace { background: #ff3333; }
.body-damage-marker.repair { background: #5aa9ff; }
.body-damage-marker.paint { background: #7e95ad; }
.body-damage-marker.corrosion { background: #d88a1d; }
.body-damage-marker.dent { background: #7a8260; }
.body-damage-marker.uneven { background: #788066; }
.body-damage-marker.impairment { background: #b18178; }
.body-damage-marker.front-center { top: 7%; left: 47.5%; }
.body-damage-marker.hood { top: 20%; left: 47.5%; }
.body-damage-marker.roof,
.body-damage-marker.center { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.body-damage-marker.trunk,
.body-damage-marker.rear-center { top: 72%; left: 47.5%; }
.body-damage-marker.left-front { top: 42%; left: 14%; }
.body-damage-marker.right-front { top: 42%; left: 81%; }
.body-damage-marker.left-rear { top: 62%; left: 14%; }
.body-damage-marker.right-rear { top: 62%; left: 81%; }
.body-damage-marker.left-nose { top: 22%; left: 15%; }
.body-damage-marker.right-nose { top: 22%; left: 79%; }
.body-damage-marker.left-quarter { top: 80%; left: 16%; }
.body-damage-marker.right-quarter { top: 80%; left: 78%; }
.body-damage-marker.left-pillar { top: 38%; left: 26%; }
.body-damage-marker.right-pillar { top: 38%; left: 70%; }
.body-damage-marker.shift-l { margin-left: -22px; }
.body-damage-marker.shift-r { margin-left: 22px; }
.body-damage-marker.shift-u { margin-top: -22px; }
.body-damage-marker.shift-d { margin-top: 22px; }
.body-damage-marker.shift-l.shift-u { margin-left: -18px; margin-top: -18px; }
.body-damage-marker.shift-r.shift-u { margin-left: 18px; margin-top: -18px; }
.body-damage-marker.shift-l.shift-d { margin-left: -18px; margin-top: 18px; }
.body-damage-marker.shift-r.shift-d { margin-left: 18px; margin-top: 18px; }
.body-legend {
  display: grid;
  gap: 10px;
}
.body-legend span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.body-legend i {
  display: grid;
  flex: 0 0 22px;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}
.body-legend .paint { background: #7e95ad; }
.body-legend .replace { background: #ff3b3b; }
.body-legend .repair { background: #5aa9ff; }
.body-legend .corrosion { background: #d88a1d; }
.body-legend .dent { background: #7a8260; }
.body-legend .uneven { background: #788066; }
.body-legend .impairment { background: #b18178; }
.body-legend .clear { background: #27b84f; }

.admin-body { background: #080808; }
.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 18px;
  padding: 18px;
}
.admin-sidebar {
  position: sticky;
  top: 18px;
  height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}
.admin-sidebar .brand { margin-bottom: 20px; }
.admin-panel {
  padding: clamp(18px, 4vw, 42px);
}
.admin-top,
.admin-table-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 26px;
}
.admin-tab { display: none; }
.admin-tab.active {
  display: grid;
  gap: 16px;
}
.admin-cars {
  display: grid;
  gap: 12px;
}
.admin-car-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.admin-faq-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.4fr) auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.admin-faq-row textarea {
  min-height: 92px;
}

@media (max-width: 1060px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    overflow-x: auto;
    justify-content: start;
    padding-bottom: 2px;
  }
  .hero { min-height: 760px; }
  .hero-benefits,
  .country-strip,
  .split,
  .calculator,
  .contacts,
  .auction-layout,
  .japan-workspace,
  .japan-detail,
  .car-detail-head,
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-sidebar {
    position: static;
    height: auto;
  }

  .car-detail-head {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
  }

  .encar-photo, .car-gallery {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 12px 14px;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    backdrop-filter: none;
  }
  .brand {
    min-width: 0;
    overflow: hidden;
  }
  .brand-logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
  .brand > span:last-child {
    min-width: 0;
    overflow: hidden;
  }
  .brand strong,
  .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-actions .social,
  .header-actions .header-phone,
  .header-actions .btn { display: none; }
  .menu-toggle {
    position: relative;
    z-index: 31;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    border-radius: 7px;
  }
  body.nav-open .menu-toggle {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 32;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
  }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 30;
    width: min(86vw, 360px);
    max-width: calc(100vw - 28px);
    height: 100vh;
    height: 100dvh;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-content: start;
    gap: 10px;
    padding: 92px 18px 24px;
    overflow-y: auto;
    background:
      linear-gradient(180deg, rgba(20, 20, 20, 0.98), rgba(5, 5, 5, 0.98)),
      radial-gradient(circle at 30% 0%, rgba(213, 0, 18, 0.22), transparent 36%);
    border-left: 1px solid rgba(213, 0, 18, 0.35);
    box-shadow: -24px 0 80px rgba(0, 0, 0, 0.55);
    contain: layout paint;
    transform: translate3d(100%, 0, 0);
    will-change: transform;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.32s ease, opacity 0.24s ease;
  }
  body.nav-open .main-nav {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--line);
    border-radius: 7px;
  }
  .main-nav a.active,
  .main-nav a[aria-current="page"] {
    background: rgba(213, 0, 18, 0.12);
    border: 1px solid rgba(213, 0, 18, 0.45);
  }
  .mobile-nav-contacts {
    grid-column: 1 / -1;
    display: grid;
    gap: 12px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .mobile-nav-contacts .header-phone {
    display: flex;
    width: 100%;
    min-height: 48px;
    font-size: 16px;
    background: rgba(213, 0, 18, 0.14);
    border-color: rgba(213, 0, 18, 0.45);
  }
  .mobile-nav-socials {
    display: grid;
    grid-template-columns: repeat(3, 48px);
    justify-content: center;
    gap: 12px;
  }
  .mobile-nav-socials .social {
    display: grid;
    width: 48px;
    min-width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
  }
  .hero {
    min-height: 760px;
    align-items: start;
  }
  .hero-bg { object-position: 50% 58%; }
  .hero-content {
    padding-top: 110px;
    padding-bottom: 250px;
  }
  .hero-benefits {
    grid-template-columns: repeat(2, 1fr);
    bottom: 16px;
  }
  .hero-benefits article {
    min-height: 82px;
    padding: 14px;
    border-bottom: 1px solid rgba(213, 0, 18, 0.35);
  }
  .hero-benefits span { font-size: 12px; }
  .section {padding: 62px 16px;}
  .filters,
  .car-grid,
  .step-grid,
  .review-grid,
  .post-grid,
  .calc-card,
  .rc-grid2,
  .rc-choice-grid-2,
  .rc-choice-grid-3,
  .rc-choice-grid-4,
  .price-line,
  .content-grid,
  .article-list article {
    grid-template-columns: 1fr;
  }
  .page-hero { min-height: 360px; padding-top: 96px; }
  .section-head,
  .footer,
  .admin-top,
  .admin-table-head {
    align-items: start;
    flex-direction: column;
  }
  .market-row {
    grid-template-columns: 1fr 1fr;
  }
  .market-row.head { display: none; }
  .auction-item,
  .admin-car-row,
  .admin-faq-row {
    grid-template-columns: 1fr;
  }
  .car-detail-modal {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    padding: 16px;
  }
  .filter-wide {
    grid-column: auto;
  }
  .car-photo {
    min-height: 220px;
  }
  .gallery-main {
    min-height: 260px;
  }
  .gallery-main img {
    height: 260px;
  }
  .gallery-controls {
    bottom: 80px;
  }
  .thumb-row button {
    flex-basis: 76px;
    height: 54px;
  }
  .detail-specs,
  .option-grid,
  .insurance-list {
    grid-template-columns: 1fr;
  }
  .detail-specs span {
    display: grid;
    gap: 4px;
  }
  .breakdown-list span {
    display: grid;
    gap: 4px;
  }
  .detail-specs b {
    text-align: left;
  }
  .breakdown-list b {
    text-align: left;
  }
  .lightbox-nav {
    width: 38px;
    height: 38px;
  }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
  .encar-photo:after {
    right: 12%;
    height: 76px;
    box-shadow: 20px 28px 0 -17px #05080c, 210px 28px 0 -17px #05080c;
  }
  .detail-specs,
  .option-grid,
  .insurance-list,
  .report-grid,
  .body-map,
  .inspection-table,
  .japan-table-head,
  .japan-stat-row {
    grid-template-columns: 1fr;
  }
  .report-card {
    overflow: hidden;
  }
  .inspection-table span,
  .inspection-table b,
  .insurance-list span,
  .insurance-list b {
    min-height: 38px;
  }
  .japan-table-head { display: none; }
  h1 { font-size: 46px; }
}

.car-detail-modal {
  scrollbar-width: thin;
  scrollbar-color: #666 #000;
}

.car-detail-modal::-webkit-scrollbar {
  width: 8px;
}

.car-detail-modal::-webkit-scrollbar-track {
  background: #000;
}

.car-detail-modal::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 10px;
}

.car-detail-modal::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.car-detail-modal .price-breakdown h3,
.car-detail-modal .price-breakdown .breakdown-list span:not(.breakdown-total) {
  display: none;
}


.home-catalog-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.home-catalog-actions .btn {
  min-width: min(320px, 100%);
}


.step-grid-nine {
  grid-template-columns: repeat(20, 1fr);
  align-items: stretch;
}

.step-grid-nine article {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.step-grid-nine article:nth-child(n + 5) {
  grid-column: span 4;
}

.step-grid-nine h3 {
  font-size: 18px;
  line-height: 1.25;
}

.step-grid-nine p {
  color: var(--muted);
}

.step-deposit-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.step-deposit-list li {
  padding-left: 14px;
  position: relative;
}

.step-deposit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}

@media (max-width: 1180px) {
  .step-grid-nine {
    grid-template-columns: repeat(3, 1fr);
  }

  .step-grid-nine article,
  .step-grid-nine article:nth-child(n + 5) {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .step-grid-nine {
    grid-template-columns: 1fr;
  }

  .step-grid-nine article {
    min-height: auto;
  }

  .body-damage-marker {
    width: 19px;
    height: 19px;
    font-size: 9px;
  }
}


.japan-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}

.japan-mode-tabs button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.japan-mode-tabs button:hover,
.japan-mode-tabs button.active {
  border-color: rgba(226, 0, 26, 0.75);
  background: linear-gradient(135deg, rgba(226, 0, 26, 0.92), rgba(142, 0, 17, 0.92));
}

.japan-mode-note {
  max-width: 980px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.japan-auction-price .breakdown-list span {
  overflow-wrap: anywhere;
}

.tg-feed-section {
  width: min(1260px, calc(100% - 32px));
}
.tg-feed-section .section-head {
  margin-bottom: 22px;
}
.tg-feed-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tg-feed-actions span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.tg-feed-wrap {
  position: relative;
  min-width: 0;
}
.tg-feed-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 390px);
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding: 2px;
  padding: 2px 4px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(213, 0, 18, .72) rgba(255, 255, 255, .08);
}
.tg-feed-track .catalog-loading {
  grid-column: auto;
  width: min(100%, 420px);
}
.tg-post-card {
  /* min-height: 420px; */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(213, 0, 18, 0.12), rgba(10, 10, 10, 0.98) 42%, rgba(22, 22, 22, 0.96)),
    #101010;
  border: 1px solid rgba(213, 0, 18, 0.26);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  height: fit-content;
}
.tg-post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(213, 0, 18, 0.58);
  box-shadow: 0 22px 58px rgba(0, 0, 0, .5);
}
.tg-post-head {
  display: grid;
  grid-template-columns: 44px 1fr 22px;
  gap: 12px;
  align-items: center;
  padding: 16px 16px 12px;
}
.tg-post-avatar {
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  background: #050505;
}
.tg-post-avatar img,
.tg-post-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.tg-post-who .name {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
}
.tg-post-who svg {
  width: 15px;
  height: 15px;
  color: var(--red);
}
.tg-post-who .date {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}
.tg-post-head .ext-icon {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, .55);
}
.tg-post-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #080808;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.tg-post-text {
  flex: 1;
  margin: 0;
  padding: 16px;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  /* -webkit-line-clamp: 7; */
  /* -webkit-box-orient: vertical; */
}
.tg-post-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.tg-post-views,
.tg-post-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tg-post-views svg,
.tg-post-open svg {
  width: 16px;
  height: 16px;
}
.tg-post-open {
  color: var(--red);
}
.tg-feed-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  color: #fff;
  background: rgba(12, 12, 12, .82);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .38);
  font-size: 32px;
  line-height: 1;
}
.tg-feed-nav:hover {
  border-color: rgba(213, 0, 18, .7);
  background: var(--red);
}
.tg-feed-nav-prev { left: -12px; }
.tg-feed-nav-next { right: -12px; }
.tg-feed-fallback {
  margin-top: 14px;
  padding: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.tg-feed-fallback[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .tg-feed-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }
  .tg-feed-track {
    grid-auto-columns: minmax(260px, 86vw);
    padding-right: 16px;
  }
  .tg-feed-nav {
    display: none;
  }
  .tg-post-card {
    min-height: 390px;
  }
}