/* ========== БАЗОВЫЕ СТИЛИ КАТАЛОГА ========== */
body {
  background: #090d11;
  color: #f2eee7;
}

.nav nav a.active {
  color: #dca257;
}

.catalog-hero {
  padding: 150px 0 80px;
  background: radial-gradient(circle at 80% 20%, #23303b 0, transparent 35%), #090d11;
  border-bottom: 1px solid #26303a;
}

.catalog-hero h1,
.detail-content h1 {
  font-size: clamp(50px, 7vw, 105px);
  line-height: .95;
  letter-spacing: -.065em;
  margin: 18px 0 28px;
}

.catalog-hero > div > p:last-child {
  max-width: 760px;
  color: #9da9b4;
  font-size: 19px;
  line-height: 1.65;
}

.catalog-main {
  padding: 70px 0 110px;
}

.catalog-filter {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr) auto;
  gap: 12px;
  padding: 22px;
  border: 1px solid #2a333c;
  background: #10161c;
  align-items: end;
}

.catalog-filter label {
  display: grid;
  gap: 10px;
  color: #9da9b4;
  font-size: 13px;
}

.catalog-filter select {
  height: 50px;
  background: #0a0f13;
  color: #f2eee7;
  border: 1px solid #313b45;
  padding: 0 14px;
  font: inherit;
}

.budget-field input {
  accent-color: #dca257;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 58px 0 24px;
}

.catalog-toolbar h2 {
  font-size: 32px;
  margin: 0;
}

.catalog-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.catalog-product {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  border: 1px solid #28323b;
  background: #10171d;
  transition: .25s;
  overflow: hidden;
}

.catalog-product:hover {
  transform: translateY(-5px);
  border-color: #dca257;
}

/* ========== КАРТОЧКА АВТОМОБИЛЯ (с изображением) ========== */
.catalog-product-media {
  height: 200px;
  overflow: hidden;
  background: #1a2028;
}

.catalog-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.catalog-product:hover .catalog-product-media img {
  transform: scale(1.05);
}

.catalog-product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
}

.catalog-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 5px;
}

.catalog-product-tags span {
  background: #1a2028;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  color: #dca257;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.catalog-product-body h3 {
  font-size: 24px;
  margin: 0;
  line-height: 1.2;
}

.catalog-product-desc {
  color: #9da9b4;
  font-size: 13px;
  line-height: 1.5;
}

.catalog-product-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.catalog-product-specs span {
  background: #0f1419;
  padding: 8px;
  border-radius: 4px;
  font-size: 12px;
  color: #c4cdd4;
}

.catalog-product-body strong {
  font-size: 22px;
  margin-top: auto;
  color: #f2eee7;
}

.catalog-product-body small {
  color: #71808e;
  font-size: 11px;
}

.catalog-cta {
  margin-top: 15px;
  width: 100%;
  text-align: center;
  background: #dca257;
  color: #111;
  font-weight: 800;
  font-size: 12px;
  padding: 12px 0;
  text-decoration: none;
  border-radius: 4px;
  transition: background .25s;
}

.catalog-cta:hover {
  background: #ebb16f;
}

/* ========== ПУСТОЕ СОСТОЯНИЕ И ФУТЕР ========== */
.catalog-empty {
  text-align: center;
  padding: 80px;
  border: 1px solid #28323b;
}

.catalog-footer {
  border-top: 1px solid #28323b;
  padding: 35px 0;
}

.catalog-footer .shell {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.catalog-footer a {
  color: #aab5bf;
}

/* ========== СТРАНИЦА ДЕТАЛЕЙ АВТОМОБИЛЯ ========== */
.detail-hero {
  padding: 120px 0 30px;
}

.detail-back {
  display: inline-block;
  color: #dca257;
  margin-bottom: 24px;
}

.detail-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  height: 500px;
  gap: 10px;
}

.detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-width: 0;
}

.detail-content {
  padding: 35px 0 110px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 80px;
}

.detail-content h1 {
  font-size: clamp(52px, 6vw, 86px);
}

.detail-lead {
  font-size: 24px;
  line-height: 1.5;
  color: #c5cdd4;
}

.detail-content article > p:not(.section-kicker):not(.detail-lead):not(.detail-note) {
  font-size: 18px;
  line-height: 1.75;
  color: #aab4bd;
}

.detail-content h2 {
  font-size: 30px;
  margin: 50px 0 18px;
}

.detail-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0;
}

.detail-specs li {
  list-style: none;
  padding: 18px;
  border: 1px solid #2b353e;
}

.detail-specs span {
  color: #dca257;
  margin-right: 10px;
}

.detail-variants {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.detail-variants div {
  padding: 22px;
  border: 1px solid #2b353e;
  display: grid;
  gap: 8px;
}

.detail-variants b {
  font-size: 22px;
}

.detail-variants span,
.detail-note {
  color: #82909b;
}

.detail-note {
  border-left: 3px solid #dca257;
  padding: 18px 22px;
  line-height: 1.6;
}

.detail-layout aside {
  position: sticky;
  top: 110px;
  height: max-content;
  border: 1px solid #3a444d;
  padding: 30px;
  background: #11181e;
  display: grid;
  gap: 20px;
}

.detail-layout aside p {
  color: #a7b0b9;
  margin: 0;
}

.detail-layout aside strong {
  font-size: 34px;
  line-height: 1.25;
}

.detail-layout aside span {
  color: #7f8b95;
  font-size: 13px;
  line-height: 1.5;
}

.detail-layout aside > a:last-child {
  color: #dca257;
  text-align: center;
}

.spec-source {
  display: block;
  color: #dca257;
  margin-top: 20px;
}

.catalog-empty[hidden] {
  display: none;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1000px) {
  .catalog-filter {
    grid-template-columns: 1fr 1fr;
  }
  .catalog-full-grid {
    grid-template-columns: 1fr 1fr;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-layout aside {
    position: static;
  }
  .detail-gallery {
    height: 380px;
  }
  .nav nav {
    display: none;
  }
}

@media (max-width: 650px) {
  .catalog-hero {
    padding: 115px 0 60px;
  }
  .catalog-hero h1 {
    font-size: 48px;
  }
  .catalog-filter,
  .catalog-full-grid {
    grid-template-columns: 1fr;
  }
  .catalog-filter .button {
    width: 100%;
  }
  .catalog-toolbar {
    margin-top: 38px;
  }
  .catalog-product-media {
    height: 160px;
  }
  .detail-hero {
    padding-top: 100px;
  }
  .detail-gallery {
    height: auto;
    grid-template-columns: 1fr 1fr;
  }
  .detail-gallery img {
    height: 160px;
  }
  .detail-gallery img:first-child {
    grid-column: 1 / -1;
    height: 260px;
  }
  .detail-content h1 {
    font-size: 50px;
  }
  .detail-layout {
    gap: 35px;
  }
  .detail-specs,
  .detail-variants {
    grid-template-columns: 1fr;
  }
  .catalog-footer .shell {
    display: grid;
  }
}
/* SEO release: catalog card actions */
.catalog-product-actions{display:grid;gap:10px;margin-top:14px}.catalog-product-actions .catalog-cta{margin-top:0}.catalog-secondary-link{display:block;text-align:center;color:inherit;text-decoration:underline;text-underline-offset:3px;font-size:14px}



/* URSUS PREMIUM FILTER START */

.catalog-filter {
  display: grid !important;
  grid-template-columns: 2fr 1.1fr 1.1fr .9fr 1.15fr !important;
  grid-template-areas:
    "search body engine condition button"
    "budget budget budget budget budget" !important;

  gap: 18px 14px !important;
  align-items: end !important;

  padding: 26px !important;

  border: 1px solid rgba(218, 164, 86, .18) !important;
  border-radius: 18px !important;

  background:
    linear-gradient(
      145deg,
      rgba(17, 25, 35, .96),
      rgba(9, 14, 21, .98)
    ) !important;

  box-shadow:
    0 24px 60px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.025) !important;
}

.catalog-search-field {
  grid-area: search !important;
}

.catalog-filter .budget-field {
  grid-area: budget !important;
  padding-top: 4px !important;
}

.catalog-filter label:has(#catalog-body) {
  grid-area: body !important;
}

.catalog-filter label:has(#catalog-engine) {
  grid-area: engine !important;
}

.catalog-filter label:has(#catalog-condition) {
  grid-area: condition !important;
}

.catalog-filter > .button {
  grid-area: button !important;

  height: 52px !important;
  min-width: 0 !important;

  border-radius: 10px !important;

  font-weight: 700 !important;
  letter-spacing: .01em !important;

  box-shadow:
    0 10px 30px rgba(214, 158, 77, .15) !important;

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    filter .2s ease !important;
}

.catalog-filter > .button:hover {
  transform: translateY(-1px) !important;
  box-shadow:
    0 14px 34px rgba(214, 158, 77, .22) !important;
  filter: brightness(1.04) !important;
}

.catalog-filter label {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;

  font-size: 11px !important;
  font-weight: 500 !important;

  color: rgba(186, 198, 214, .76) !important;
}

.catalog-filter input[type="search"],
.catalog-filter select {
  width: 100% !important;
  height: 52px !important;

  padding: 0 15px !important;

  border: 1px solid rgba(132, 151, 173, .22) !important;
  border-radius: 10px !important;

  background: rgba(5, 10, 16, .72) !important;

  color: #f4f5f7 !important;

  font-size: 14px !important;

  outline: none !important;

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease !important;
}

.catalog-filter input[type="search"]::placeholder {
  color: rgba(179, 188, 200, .38) !important;
}

.catalog-filter input[type="search"]:focus,
.catalog-filter select:focus {
  border-color: rgba(221, 164, 82, .68) !important;

  box-shadow:
    0 0 0 3px rgba(221, 164, 82, .09) !important;

  background: rgba(8, 14, 21, .95) !important;
}

.catalog-filter .budget-field span {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  margin-bottom: 2px !important;
}

.catalog-filter .budget-field b {
  color: #f2f4f6 !important;
  font-size: 12px !important;
}

.catalog-filter input[type="range"] {
  width: 100% !important;
  margin: 4px 0 0 !important;
}

.catalog-toolbar {
  margin-top: 30px !important;
}

#catalog-reset {
  color: #dba454 !important;
  opacity: .9 !important;
}

#catalog-reset:hover {
  opacity: 1 !important;
}

@media (max-width: 1100px) {
  .catalog-filter {
    grid-template-columns: 1fr 1fr !important;

    grid-template-areas:
      "search search"
      "body engine"
      "condition condition"
      "budget budget"
      "button button" !important;
  }

  .catalog-filter > .button {
    width: 100% !important;
  }
}

@media (max-width: 640px) {
  .catalog-filter {
    grid-template-columns: 1fr !important;

    grid-template-areas:
      "search"
      "body"
      "engine"
      "condition"
      "budget"
      "button" !important;

    padding: 18px !important;
    gap: 14px !important;
  }
}

/* URSUS PREMIUM FILTER END */




/* URSUS FILTER BUTTON ALIGN FIX START */

.catalog-filter > .button{
  align-self: start !important;
  margin-top: 20px !important;
  height: 52px !important;
  min-height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  padding: 0 22px !important;
}

@media (max-width: 1100px){
  .catalog-filter > .button{
    align-self: stretch !important;
    margin-top: 0 !important;
    width: 100% !important;
  }
}

/* URSUS FILTER BUTTON ALIGN FIX END */

\n\n
/* URSUS CATALOG HERO PHOTO START */

.catalog-hero{
  position: relative;
  overflow: hidden;
}

.catalog-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(214,168,94,.10) 0%, rgba(214,168,94,0) 34%),
    linear-gradient(90deg, rgba(4,10,18,.00) 0%, rgba(4,10,18,.08) 100%);
  pointer-events: none;
  z-index: 0;
}

.catalog-hero::after{
  content: "";
  position: absolute;
  right: max(40px, calc((100vw - 1280px) / 2 + 20px));
  top: 52%;
  transform: translateY(-50%);
  width: min(44vw, 760px);
  height: min(34vw, 520px);
  background:
    linear-gradient(90deg, rgba(4,10,18,.00) 0%, rgba(4,10,18,.18) 100%),
    url('/assets/markets/europe-hero.webp') center center / contain no-repeat;
  opacity: .22;
  filter: saturate(.9) brightness(.78);
  pointer-events: none;
  z-index: 0;
}

.catalog-hero .shell{
  position: relative;
  z-index: 1;
}

.catalog-hero h1,
.catalog-hero p,
.catalog-hero .section-kicker{
  position: relative;
  z-index: 1;
}

@media (max-width: 1200px){
  .catalog-hero::after{
    width: min(42vw, 560px);
    height: 320px;
    opacity: .18;
    right: 24px;
  }
}

@media (max-width: 900px){
  .catalog-hero::after{
    display: none;
  }
}

/* URSUS CATALOG HERO PHOTO END */
\n


/* URSUS CATALOG HERO PHOTO FIX START */

.catalog-hero{
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
}

.catalog-hero::before{
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;

  background:
    linear-gradient(
      90deg,
      rgba(4,10,18,1) 0%,
      rgba(4,10,18,.98) 28%,
      rgba(4,10,18,.78) 48%,
      rgba(4,10,18,.28) 72%,
      rgba(4,10,18,.08) 100%
    ) !important;
}

.catalog-hero::after{
  content: "" !important;
  position: absolute !important;

  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;

  width: 58% !important;
  height: 100% !important;

  transform: none !important;

  background:
    url('/assets/markets/europe-hero.webp')
    center 48% / cover no-repeat !important;

  opacity: .58 !important;
  filter:
    brightness(.72)
    saturate(.82)
    contrast(1.04) !important;

  z-index: -1 !important;
  pointer-events: none !important;

  -webkit-mask-image:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(0,0,0,.25) 12%,
      rgba(0,0,0,.8) 34%,
      #000 54%,
      #000 100%
    ) !important;

  mask-image:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(0,0,0,.25) 12%,
      rgba(0,0,0,.8) 34%,
      #000 54%,
      #000 100%
    ) !important;
}

.catalog-hero .shell{
  position: relative !important;
  z-index: 2 !important;
}

@media (max-width: 1100px){
  .catalog-hero::after{
    width: 62% !important;
    opacity: .42 !important;
  }
}

@media (max-width: 820px){
  .catalog-hero::after{
    display: none !important;
  }
}

/* URSUS CATALOG HERO PHOTO FIX END */




/* URSUS HERO BACKGROUND FINAL START */

.catalog-hero{
  position: relative !important;
  overflow: hidden !important;

  background-image:
    linear-gradient(
      90deg,
      rgba(4,10,18,1) 0%,
      rgba(4,10,18,.98) 32%,
      rgba(4,10,18,.82) 48%,
      rgba(4,10,18,.38) 68%,
      rgba(4,10,18,.18) 100%
    ),
    linear-gradient(
      0deg,
      rgba(4,10,18,.65) 0%,
      rgba(4,10,18,.05) 45%,
      rgba(4,10,18,.15) 100%
    ),
    url('/assets/markets/europe-hero.webp') !important;

  background-size:
    cover,
    cover,
    cover !important;

  background-position:
    center,
    center,
    72% center !important;

  background-repeat: no-repeat !important;
}

/* Полностью отключаем старые отдельные слои */
.catalog-hero::before,
.catalog-hero::after{
  content: none !important;
  display: none !important;
  background: none !important;
}

/* Текст всегда поверх */
.catalog-hero .shell{
  position: relative !important;
  z-index: 2 !important;
}

@media (max-width: 900px){
  .catalog-hero{
    background-image:
      linear-gradient(
        90deg,
        rgba(4,10,18,.96),
        rgba(4,10,18,.82)
      ),
      url('/assets/markets/europe-hero.webp') !important;

    background-position:
      center,
      65% center !important;
  }
}

/* URSUS HERO BACKGROUND FINAL END */

