@font-face {
  font-family: "AutoZQ Phosphor";
  src: url("../fonts/Phosphor.woff2") format("woff2");
  font-display: block;
  font-style: normal;
  font-weight: 400;
}

.autozq-inventory {
  --azq-red: #f21f18;
  --azq-red-dark: #d91812;
  --azq-ink: #0b1015;
  --azq-muted: #68717d;
  --azq-line: #e6e8eb;
  --azq-chip: #f5f6f7;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(52px, 4vw, 64px) clamp(20px, 2.5vw, 40px) clamp(20px, 3vw, 36px);
  overflow: hidden;
  background: #fff;
  color: var(--azq-ink);
  font-family: Inter, Arial, sans-serif;
}

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

.autozq-inventory__inner {
  width: min(100%, 1520px);
  margin: 0 auto;
}

.autozq-inventory__header {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) auto auto;
  gap: clamp(24px, 4vw, 68px);
  align-items: center;
  margin-bottom: 46px;
}

.autozq-inventory__title {
  max-width: 780px;
  margin: 0;
  color: var(--azq-ink);
  font-size: clamp(36px, 3.5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.autozq-inventory__tabs {
  display: inline-flex;
  height: 58px;
  overflow: hidden;
  border: 1px solid var(--azq-line);
  border-radius: 12px;
  background: #fff;
}

.autozq-inventory button.autozq-inventory__tab {
  min-width: 148px;
  padding: 0 30px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--azq-ink);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  transition: color 180ms ease, background-color 180ms ease;
}

.autozq-inventory button.autozq-inventory__tab.is-active {
  background: var(--azq-red);
  color: #fff;
}

.autozq-inventory__all {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-self: end;
  color: var(--azq-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.autozq-inventory__all-icon,
.autozq-inventory__details-icon {
  font-family: "AutoZQ Phosphor";
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  speak: never;
}

.autozq-inventory .ph-arrow-right::before {
  content: "\e06c";
}

.autozq-inventory__all-icon {
  color: var(--azq-red);
  font-size: 23px;
}

.autozq-inventory__all--mobile {
  display: none;
}

.autozq-inventory__panel[hidden] {
  display: none;
}

.autozq-inventory__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.2vw, 34px);
}

.autozq-inventory__card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--azq-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(10, 16, 21, 0.07);
  transition: transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 260ms ease;
}

.autozq-inventory__media {
  position: relative;
  display: block;
  aspect-ratio: 7 / 5;
  overflow: hidden;
  background: #eef0f2;
}

.autozq-inventory__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.autozq-inventory__condition {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--azq-red);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.autozq-inventory__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(22px, 1.6vw, 24px);
}

.autozq-inventory__name {
  margin: 0;
  color: var(--azq-ink);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.autozq-inventory__name a {
  color: inherit;
  text-decoration: none;
}

.autozq-inventory__prices {
  min-height: 62px;
  margin-top: 12px;
}

.autozq-inventory__price-cny {
  color: var(--azq-red);
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.autozq-inventory__price-rub {
  margin-top: 8px;
  color: #252b31;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 700;
  line-height: 1.1;
}

.autozq-inventory__price-request {
  color: var(--azq-red);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 850;
  line-height: 1.15;
}

.autozq-inventory__attributes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.autozq-inventory__attribute {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid #eceef0;
  border-radius: 10px;
  background: var(--azq-chip);
  color: #242a30;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.autozq-inventory__details {
  position: relative;
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 0 64px 0 24px;
  border-radius: 999px;
  background: var(--azq-red);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.autozq-inventory__details-icon {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  place-items: center;
  font-size: 25px;
}

.autozq-inventory__rate-note {
  margin: 20px 2px 0;
  color: var(--azq-muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
}

.autozq-inventory__empty {
  min-height: 240px;
  margin: 0;
  display: grid;
  border: 1px solid var(--azq-line);
  border-radius: 18px;
  color: var(--azq-muted);
  font-size: 18px;
  font-weight: 650;
  place-items: center;
}

.autozq-inventory button.autozq-inventory__tab:focus-visible,
.autozq-inventory__all:focus-visible,
.autozq-inventory__media:focus-visible,
.autozq-inventory__name a:focus-visible,
.autozq-inventory__details:focus-visible {
  outline: 3px solid var(--azq-red);
  outline-offset: 3px;
}

@media (hover: hover) {
  .autozq-inventory__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(10, 16, 21, 0.11);
  }

  .autozq-inventory__card:hover .autozq-inventory__media img {
    transform: scale(1.025);
  }

  .autozq-inventory__details:hover {
    background: var(--azq-red-dark);
  }

  .autozq-inventory__all:hover {
    color: var(--azq-red);
  }
}

@media (max-width: 1023px) {
  .autozq-inventory__header {
    grid-template-columns: 1fr auto;
  }

  .autozq-inventory__title {
    grid-column: 1 / -1;
  }

  .autozq-inventory__all {
    justify-self: end;
  }

  .autozq-inventory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .autozq-inventory {
    padding: 48px 16px 42px;
  }

  .autozq-inventory__header {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 28px;
  }

  .autozq-inventory__title {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.02;
  }

  .autozq-inventory__tabs {
    width: 100%;
  }

  .autozq-inventory button.autozq-inventory__tab {
    min-width: 0;
    flex: 1;
    padding: 0 16px;
    font-size: 15px;
  }

  .autozq-inventory__all--desktop {
    display: none;
  }

  .autozq-inventory__all--mobile {
    display: inline-flex;
    margin-top: 14px;
  }

  .autozq-inventory__grid {
    display: grid;
    width: calc(100% + 16px);
    padding: 4px 16px 18px 0;
    overflow-x: auto;
    grid-auto-columns: 86%;
    grid-auto-flow: column;
    grid-template-columns: none;
    scroll-padding-inline: 0 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .autozq-inventory__grid::-webkit-scrollbar {
    display: none;
  }

  .autozq-inventory__card {
    scroll-snap-align: start;
  }

  .autozq-inventory__media {
    aspect-ratio: 4 / 3;
  }

  .autozq-inventory__condition {
    top: 14px;
    left: 14px;
  }

  .autozq-inventory__content {
    padding: 20px;
  }

  .autozq-inventory__name {
    font-size: 23px;
  }

  .autozq-inventory__price-cny {
    font-size: 30px;
  }

  .autozq-inventory__attribute {
    min-height: 52px;
    font-size: 15px;
  }

  .autozq-inventory__details {
    min-height: 54px;
  }

  .autozq-inventory__details-icon {
    width: 46px;
    height: 46px;
  }

  .autozq-inventory__rate-note {
    margin-top: 8px;
    text-align: left;
  }
}

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