:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #fbfcfe;
  --text: #111827;
  --muted: #6b7280;
  --accent: #d71920;
  --accent-dark: #b51218;
  --line: #e9edf4;
  --navy: #1e2a44;
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
}

a,
button,
input,
select {
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.22);
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(215, 25, 32, 0.08), transparent 38%),
    radial-gradient(circle at 100% 15%, rgba(30, 42, 68, 0.08), transparent 30%);
  pointer-events: none;
  z-index: -1;
}

.container {
  width: min(1240px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 17, 24, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #222c3d;
  box-shadow: 0 8px 30px rgba(5, 8, 13, 0.32);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.logo {
  text-decoration: none;
  color: #ffffff;
  font-family: "Russo One", sans-serif;
  letter-spacing: 1px;
  font-size: 1.55rem;
}

.logo span {
  color: var(--accent);
}

.top-links {
  display: flex;
  gap: 22px;
}

.top-links a {
  position: relative;
  color: #d6dce9;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
}

.top-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--accent);
  transition: right 0.2s ease;
}

.top-links a:hover {
  color: #ffffff;
}

.top-links a:hover::after {
  right: 0;
}

.topbar-right {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.lot-address {
  margin: 0;
  color: #b7c0d4;
  font-size: 0.82rem;
  font-weight: 600;
}

.call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent), #ec2a31);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(215, 25, 32, 0.35);
}

.call-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(145deg, #ef272f, var(--accent));
}

.hero {
  position: relative;
  padding: 14px 0 26px;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 64px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(244, 246, 248, 0), rgba(244, 246, 248, 0.92));
  filter: blur(6px);
}

.hero-inner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 250px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(105deg, rgba(12, 18, 30, 0.72), rgba(12, 18, 30, 0.32)),
    url("https://images.unsplash.com/photo-1549399542-7e3f8b79c341?auto=format&fit=crop&w=1800&q=80") center/cover;
  box-shadow: var(--shadow-soft);
}

.hero-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 0%, rgba(255, 255, 255, 0.15), transparent 40%),
    linear-gradient(180deg, rgba(5, 10, 19, 0.06), rgba(5, 10, 19, 0.34));
  pointer-events: none;
}

.hero-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 22px;
  color: #fff;
  max-width: 720px;
}

.badge {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(215, 25, 32, 0.9);
  font-size: 0.8rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  line-height: 1.12;
  margin: 12px 0 10px;
}

.hero-sub {
  margin: 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-address {
  margin: 9px 0 0;
  color: #ffd8db;
  font-weight: 700;
}

.hero-search {
  margin-top: 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
}

.hero-search label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.search-row {
  display: flex;
  gap: 8px;
}

.search-row input,
.sort-wrap select,
.price-inputs input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}

.search-row input:hover,
.sort-wrap select:hover,
.price-inputs input:hover {
  border-color: #c7d3e4;
}

.search-row input {
  background: rgba(255, 255, 255, 0.98);
}

.search-row button {
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(215, 25, 32, 0.28);
}

.search-row button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin: 0 auto 34px;
  position: relative;
  padding-top: 28px;
}

.catalog-layout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 18, 30, 0.24), rgba(12, 18, 30, 0));
}

.filters,
.catalog {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.filters {
  position: sticky;
  top: 96px;
  height: fit-content;
  padding: 20px;
  background: #fdfefe;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.025);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.055);
}

.catalog {
  background: #f8fafd;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.filters h2 {
  margin: 4px 0 14px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.active-filters-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.filter-chip {
  border: 1px solid #d7e0ee;
  border-radius: 999px;
  background: var(--surface-soft);
  color: #20314d;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 10px 6px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter-chip:hover {
  border-color: #b9c9de;
  background: #f2f7ff;
  transform: translateY(-1px);
}

.chip-close {
  color: #566784;
  font-size: 0.95rem;
  line-height: 1;
}

.filter-group {
  border-top: 0;
  padding-top: 0;
  margin-top: 40px;
  display: grid;
  gap: 18px;
}

.filter-group p {
  margin: 0;
  font-weight: 800;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3f4f67;
  font-size: 0.9rem;
  line-height: 1.25;
  transition: color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  border-radius: 8px;
  padding: 3px 4px;
}

.filter-group input[type="checkbox"],
.filter-group input[type="radio"] {
  width: 16px;
  height: 16px;
  appearance: none;
  border: 1.5px solid #c6d2e3;
  background: #fff;
  margin: 0;
  display: inline-grid;
  place-content: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-group input[type="checkbox"] {
  border-radius: 5px;
}

.filter-group input[type="radio"] {
  border-radius: 50%;
}

.filter-group input[type="checkbox"]::before,
.filter-group input[type="radio"]::before {
  content: "";
  width: 8px;
  height: 8px;
  transform: scale(0);
  transition: transform 0.15s ease;
  background: var(--accent);
}

.filter-group input[type="checkbox"]::before {
  border-radius: 2px;
}

.filter-group input[type="radio"]::before {
  border-radius: 50%;
}

.filter-group input[type="checkbox"]:checked,
.filter-group input[type="radio"]:checked {
  border-color: var(--accent);
  background: rgba(215, 25, 32, 0.06);
}

.filter-group input[type="checkbox"]:checked::before,
.filter-group input[type="radio"]:checked::before {
  transform: scale(1);
}

.filter-group input[type="checkbox"]:hover,
.filter-group input[type="radio"]:hover {
  border-color: #afbdd1;
}

.filter-group input[type="checkbox"]:focus-visible,
.filter-group input[type="radio"]:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.18);
}

.filter-group label:hover {
  color: #1f2d49;
  transform: translateX(1px);
  background: rgba(148, 163, 184, 0.1);
}

.brand-filter-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 3px;
}

.brand-count {
  font-size: 0.68rem;
  line-height: 1;
  color: #d71920;
  font-weight: 700;
}

.brand-empty {
  margin: 0;
  color: #6b7a90;
  font-size: 0.86rem;
}

.price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.reset-btn {
  width: auto;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f4f7fc;
  color: #2f3b54;
  padding: 10px;
  font-weight: 700;
  cursor: pointer;
}

.filters .reset-btn {
  width: 100%;
}

.reset-btn:hover {
  border-color: #d2dbe9;
  background: #edf2fa;
}

.catalog {
  padding: 20px;
}

.catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.catalog-head h2 {
  margin: 0;
}

.catalog-tools {
  display: flex;
  align-items: end;
  gap: 14px;
}

.catalog-tools p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.sort-wrap {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 260px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  padding: 7px 11px 9px;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.035);
}

.sort-wrap span {
  font-size: 0.66rem;
  color: #94a3b8;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-weight: 600;
}

.sort-wrap::before {
  content: "↕";
  position: absolute;
  right: 34px;
  bottom: 13px;
  color: #94a3b8;
  font-size: 0.82rem;
  pointer-events: none;
}

.sort-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 16px;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid #94a3b8;
  border-bottom: 1.6px solid #94a3b8;
  transform: rotate(45deg);
  pointer-events: none;
}

.sort-wrap select {
  border: 0;
  background: transparent;
  padding: 0 52px 0 0;
  font-weight: 600;
  color: #334155;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.sort-wrap:hover {
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.pagination {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.page-btn {
  border: 1px solid #d8e0ed;
  background: #fff;
  color: #1f2937;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.page-btn:hover:not(:disabled) {
  border-color: #bdc9dc;
  background: #f6f9fd;
}

.page-btn.is-active {
  background: #d71920;
  border-color: #d71920;
  color: #fff;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.product-card {
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 18px;
  padding: 12px;
  border: 1px solid #e7ecf5;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  animation: card-in 0.45s ease both;
  animation-delay: calc(var(--stagger, 0) * 70ms);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: #c9d5e5;
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.075);
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(12, 24, 44, 0.2);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image {
  transform: scale(1.035);
}

.product-card:hover .card-media {
  box-shadow: 0 14px 30px rgba(12, 24, 44, 0.2);
}

.media-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 15, 30, 0.05), rgba(8, 15, 30, 0.08));
  pointer-events: none;
}

.stock {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.status-available {
  background: #1a9c50;
}

.status-transit {
  background: #d87a0f;
}

.status-order {
  background: #4b5563;
}

.card-main {
  padding: 14px 12px 12px 2px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  height: 100%;
}

.card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
}

.card-top h3 {
  margin: 0;
}

.card-link {
  color: var(--text);
  text-decoration: none;
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: 0.18px;
  line-height: 1.2;
  max-width: 100%;
}

.card-link:hover {
  color: #0f172a;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.card-price {
  margin: 0;
  color: #0a0f18;
  font-size: clamp(1.75rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
  padding-right: 6px;
  opacity: 1;
}

.card-divider {
  width: 100%;
  height: 1px;
  background: #e8edf4;
}

.spec-wrap {
  border-top: 1px solid #f1f4f8;
  border-bottom: 1px solid #f1f4f8;
  padding: 8px 0;
  display: grid;
  gap: 4px;
}

.quick-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  padding: 2px 0 0;
}

.quick-spec {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2e3b50;
  font-size: 1.02rem;
  line-height: 1.2;
}

.quick-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8ea0b7;
}

.quick-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.micro-specs {
  display: block;
  padding: 2px 0 0;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #f1f6ff;
  border: 1px solid #dbe7f8;
  color: #243750;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15px;
  padding: 6px 11px;
}

.trust-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a9c50;
  margin-right: 8px;
}

.badge-nexauto {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 1px 6px;
  border-radius: 999px;
  background: #1e2a44;
}

.badge-nex {
  color: #ffffff;
}

.badge-auto {
  color: #d71920;
}

.micro-line {
  margin: 0;
}

.micro-line-vin {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
}

.micro-line-vin > span:first-child {
  color: #7b8799;
  font-size: 0.78rem;
  font-weight: 700;
}

.vin-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 5px 8px;
  border-radius: 8px;
  background: #f3f6fb;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.vin-row:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.35);
  background: #eef3fa;
}

.vin-row:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.18);
  border-radius: 6px;
}

.vin-value {
  margin: 0;
  color: #657487;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.3px;
}

.vin-icon {
  width: 14px;
  height: 14px;
  color: #95a3b7;
  display: inline-flex;
}

.vin-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vin-row.vin-copied .vin-value {
  color: #1a9c50;
}

.card-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--accent), #ec2a31);
  color: #ffffff;
  text-decoration: none;
  padding: 10px 16px;
  font-weight: 800;
  border: 1px solid var(--accent);
  width: fit-content;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 22px rgba(215, 25, 32, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.details-btn::after {
  content: "→";
  display: inline-block;
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.details-btn:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 18px 36px rgba(255, 0, 0, 0.3), 0 0 24px rgba(215, 25, 32, 0.22);
}

.details-btn:hover::after {
  transform: translateX(3px);
}

.details-btn:active {
  transform: translateY(0) scale(0.995);
  box-shadow: 0 8px 16px rgba(255, 0, 0, 0.2);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spec-line {
  margin: 0;
  color: #2e3b50;
  font-size: 0.95rem;
  line-height: 1.45;
}

.spec-line-secondary {
  color: #3a4b67;
}

.footer {
  background: #0d1118;
  border-top: 1px solid #222c3d;
  padding: 22px 0 28px;
}

.trust {
  margin: 0 0 26px;
}

.trust-inner {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  padding: 22px;
}

.trust-inner h2 {
  margin: 0 0 16px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.trust-item {
  margin: 0;
  background: #f8fbff;
  border: 1px solid #e5edf9;
  border-radius: 14px;
  padding: 14px;
}

.trust-item strong {
  display: block;
  font-size: 1.28rem;
  color: #0f172a;
  margin-bottom: 6px;
}

.trust-item p {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.35;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #b7c0d4;
}

.footer-brand {
  display: grid;
  gap: 6px;
  max-width: 560px;
}

.footer-logo {
  margin: 0;
  color: #ffffff;
  font-family: "Russo One", sans-serif;
  letter-spacing: 1px;
  font-size: 1.2rem;
}

.footer-logo span {
  color: var(--accent);
}

.footer-note {
  margin: 0;
  color: #b7c0d4;
  font-size: 0.95rem;
  line-height: 1.4;
}

.footer-contacts {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.footer-contacts h4 {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
}

.footer-phone {
  color: #b7c0d4;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.35;
}

.footer-address {
  margin: 2px 0 0;
  color: #b7c0d4;
  font-size: 0.92rem;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .top-links {
    display: none;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .card-main {
    padding: 0 8px 8px;
  }

  .catalog-head,
  .catalog-tools {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 1120px) {
  .product-card {
    grid-template-columns: 1fr;
  }

  .card-main {
    padding: 0 8px 8px;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    flex-wrap: wrap;
    padding: 8px 0;
  }

  .topbar-right {
    width: 100%;
    justify-items: start;
  }

  .call-btn {
    width: 100%;
  }

  .hero-content {
    padding: 22px;
  }

  .active-filters {
    margin-top: -4px;
  }

  .quick-specs {
    gap: 10px 12px;
  }

  .quick-spec {
    font-size: 0.94rem;
  }

  .search-row {
    flex-direction: column;
  }

  .search-row button {
    min-height: 44px;
  }

  .card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-link {
    font-size: 1.32rem;
  }

  .card-price {
    font-size: 1.75rem;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-contacts {
    justify-items: start;
    text-align: left;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.hidden {
  display: none !important;
}

.cabinet-layout {
  padding: 24px 0 42px;
  display: grid;
  gap: 18px;
}

.cabinet-card {
  padding: 22px;
  border: 1px solid #e8edf6;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.cabinet-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.cabinet-head #logout {
  width: auto;
  margin-top: 0;
  white-space: nowrap;
}

.cabinet-tabs {
  display: flex;
  gap: 8px;
  margin: 2px 0 14px;
  flex-wrap: wrap;
  border-bottom: 1px solid #e7ecf5;
  padding-bottom: 12px;
}

.cabinet-tab {
  border: 1px solid #d6dfec;
  border-radius: 999px;
  background: #f4f8ff;
  color: #334155;
  padding: 8px 14px;
  font-weight: 800;
  cursor: pointer;
}

.cabinet-tab.is-active {
  border-color: #c21b24;
  background: #d61f2a;
  color: #fff;
}

.cabinet-tab-panel {
  display: grid;
  gap: 12px;
}

.cabinet-workspace {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
}

.cabinet-users-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.cabinet-block {
  border: 1px solid #e5ebf5;
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
  display: grid;
  gap: 12px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.cabinet-block-head {
  display: grid;
  gap: 6px;
}

.cabinet-block h2 {
  margin: 0;
  font-size: 1.15rem;
}

.cabinet-block .meta {
  margin: 0;
}

.cabinet-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cabinet-form-grid label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.cabinet-form-grid input,
.cabinet-form-grid select,
.cabinet-form-grid textarea {
  border: 1px solid #d9dfeb;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

.cabinet-form-grid input:focus,
.cabinet-form-grid select:focus,
.cabinet-form-grid textarea:focus {
  outline: 2px solid rgba(214, 31, 42, 0.22);
  border-color: #d61f2a;
}

.cabinet-full {
  grid-column: 1 / -1;
}

.trust-badges-fieldset {
  margin: 0;
  border: 1px solid #d9dfeb;
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}

.trust-badges-fieldset legend {
  padding: 0 6px;
  font-weight: 700;
}

.cabinet-checkline {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.cabinet-checkline input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.photo-manager {
  display: grid;
  gap: 10px;
}

.photo-manager-hint {
  margin: 0;
  color: #5f6f87;
  font-size: 0.9rem;
}

.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

.photo-preview-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed #ccd7e7;
  border-radius: 10px;
  color: #64748b;
  background: #f8fbff;
  font-size: 0.9rem;
}

.photo-card {
  border: 1px solid #dde4f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  cursor: grab;
}

.photo-card.is-main {
  border-color: #d61f2a;
  box-shadow: 0 0 0 2px rgba(214, 31, 42, 0.14);
}

.photo-card.is-dragging {
  opacity: 0.45;
}

.photo-card img {
  width: 100%;
  height: 126px;
  object-fit: cover;
  display: block;
  background: #eef2f7;
}

.photo-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 0;
}

.photo-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.photo-badge-main {
  background: rgba(214, 31, 42, 0.12);
  color: #a4151d;
}

.photo-badge-secondary {
  background: #eef3fa;
  color: #55657c;
}

.photo-order {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
}

.photo-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 10px 10px;
}

.photo-btn {
  border: 1px solid #d2dbe9;
  border-radius: 8px;
  background: #f8fbff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 8px;
  cursor: pointer;
}

.photo-btn:hover:not(:disabled) {
  background: #eef3fa;
  border-color: #bcc9dd;
}

.photo-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.photo-btn-danger {
  border-color: #e8c6ca;
  color: #a4151d;
  background: #fff4f4;
}

.photo-btn-danger:hover:not(:disabled) {
  border-color: #dfa5ac;
  background: #ffe7e9;
}

.cabinet-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cabinet-actions .reset-btn {
  margin-top: 0;
}

.cabinet-actions-mobile {
  position: relative;
}

.cabinet-error {
  margin: 10px 0 0;
  color: #d61f2a;
  font-weight: 700;
}

.cabinet-cars {
  display: grid;
  gap: 10px;
}

.cabinet-list-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-top: 0;
}

.cabinet-list-head h2 {
  margin: 0;
}

.cabinet-list-head label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.cabinet-list-head select {
  border: 1px solid #d9dfeb;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}

.cabinet-car-card {
  border: 1px solid #e4e9f1;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: #fff;
}

.cabinet-car-main {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cabinet-car-main img {
  width: 84px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f7;
}

.cabinet-car-main h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.cabinet-car-main p {
  margin: 0;
  color: #546277;
}

.cabinet-car-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cabinet-car-actions .reset-btn {
  margin-top: 0;
}

.reset-btn.danger {
  color: #fff;
  border-color: #c21b24;
  background: #d61f2a;
}

@media (max-width: 860px) {
  .cabinet-workspace,
  .cabinet-users-workspace {
    grid-template-columns: 1fr;
  }

  .cabinet-form-grid {
    grid-template-columns: 1fr;
  }

  .cabinet-head {
    align-items: start;
    flex-direction: column;
  }

  .cabinet-tab-panel[data-panel="cars"] {
    padding-bottom: 92px;
  }

  .cabinet-actions-mobile {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    margin: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #dbe3f1;
    box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(6px);
  }

  .cabinet-actions-mobile .details-btn,
  .cabinet-actions-mobile .reset-btn {
    flex: 1;
    width: 100%;
    margin: 0;
    justify-content: center;
  }
}
