/* ==========================================================================
   Titan Shield VS The Rest — design pack "design_02_vs_the_rest"
   ========================================================================== */
.vr {
  --ts-orange: #ff6226;
  --ts-orange-2: #ff7a2f;
  --ts-panel: rgba(20, 17, 15, 0.86);
  --ts-panel-soft: rgba(22, 19, 17, 0.88);
  --ts-border: rgba(255, 255, 255, 0.18);
  --ts-line: rgba(255, 255, 255, 0.12);
  --ts-muted: #c8c4c1;

  position: relative;
  overflow: hidden;
  color: #fff;
  background: #0e0c0b url("../images/demo/compare-bg.avif") left center / cover no-repeat;
}

.vr::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 12, 11, 0.05) 0%, rgba(14, 12, 11, 0.3) 28%, rgba(14, 12, 11, 0.82) 50%, rgba(14, 12, 11, 0.9) 100%),
    linear-gradient(180deg, rgba(14, 12, 11, 0.35) 0%, transparent 25%, transparent 80%, rgba(14, 12, 11, 0.7) 100%);
  pointer-events: none;
}

.vr__inner {
  position: relative;
  max-width: 1672px;
  min-height: min(56.25vw, 941px);
  margin: 0 auto;
  padding: clamp(48px, 5.5vw, 84px) clamp(20px, 2.6vw, 44px) clamp(40px, 4vw, 64px);
}

.vr__head { text-align: center; padding-left: 12%; }

.vr__title {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(44px, 5.6vw, 96px);
  font-style: italic;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 0%, #d9d6d3 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.vr__title span {
  background: linear-gradient(180deg, #ff8a3d 0%, #ff5a1f 55%, #e8461a 100%);
  -webkit-background-clip: text;
          background-clip: text;
  padding-right: 0.08em;
}

.vr__sub { margin: 10px 0 0; font-size: clamp(16px, 1.45vw, 24px); letter-spacing: 0.02em; color: #e7e2de; }

.vr__row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 4.4fr);
  align-items: center;
  gap: clamp(10px, 1vw, 16px);
  width: min(61%, 1040px);
  margin: clamp(22px, 2.6vw, 42px) 0 0 auto;
}

/* Titan hero card */
.vr-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 2vw, 32px) clamp(18px, 1.8vw, 30px) clamp(16px, 1.6vw, 24px);
  border: 2px solid var(--ts-orange);
  border-radius: 16px;
  background:
    radial-gradient(120% 60% at 80% 0%, rgba(255, 98, 38, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(34, 24, 18, 0.92), rgba(16, 13, 11, 0.95));
  box-shadow: 0 0 22px rgba(255, 98, 38, 0.45), inset 0 0 28px rgba(255, 98, 38, 0.08);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  transition: transform 0.35s ease;
}

.vr-hero:hover { transform: translateY(-4px); }

.vr-hero__mat {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  -webkit-mask: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.25) 100%);
          mask: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
}

.vr-hero > :not(.vr-hero__mat) { position: relative; z-index: 1; }

.vr-hero__name {
  position: relative;
  margin: clamp(18px, 2vw, 34px) 0 14px;
  font-family: var(--font-body);
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 700;
  line-height: 1.05;
}

.vr-hero__name small { display: block; margin-top: 4px; font-size: 0.66em; font-weight: 400; color: var(--ts-muted); }

.vr-hero__stats,
.vr-card__stats { margin: 0; padding: 0; list-style: none; }

.vr-hero__stats li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(9px, 0.9vw, 14px) 0;
  border-top: 1px solid var(--ts-line);
  font-size: clamp(14px, 1.05vw, 18px);
  font-weight: 700;
}

.vr-hero__stats li:first-child { border-top: 0; }
.vr-hero__stats img { flex: none; width: 22px; height: 22px; }
.vr-hero__stats em { font-style: normal; font-size: 0.82em; font-weight: 500; color: var(--ts-muted); }
.vr-hero__stats li { gap: 12px; }

.vr-hero__price {
  margin: 6px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  text-align: center;
  font-size: clamp(30px, 2.8vw, 46px);
  font-weight: 800;
  color: var(--ts-orange-2);
  text-shadow: 0 0 18px rgba(255, 98, 38, 0.35);
}

/* Stars */
.vr-stars { display: inline-flex; gap: 2px; }
.vr-stars i { width: 14px; height: 14px; background: url("../icons/vs/star_outline_white.svg") center / contain no-repeat; opacity: 0.75; }
.vr-stars i.on { background-image: url("../icons/vs/star_orange.svg"); opacity: 1; }
.vr-hero .vr-stars i { width: 15px; height: 15px; }
/* competitors: filled white stars instead of orange */
.vr-card .vr-stars i.on { background: #fff; -webkit-mask: url("../icons/vs/star_orange.svg") center / contain no-repeat; mask: url("../icons/vs/star_orange.svg") center / contain no-repeat; }

/* Competitor cards */
.vr__rest { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 0.7vw, 12px); }

.vr-card {
  display: flex;
  flex-direction: column;
  padding: clamp(6px, 0.5vw, 8px) clamp(10px, 0.9vw, 14px) clamp(12px, 1vw, 16px);
  border: 1px solid var(--ts-border);
  border-radius: 12px;
  background: var(--ts-panel-soft);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  transition: transform 0.35s ease;
}

.vr-card:hover { transform: translateY(-2px); }
.vr-card__mat { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; }

.vr-card__name { margin: 12px 0 8px; font-size: clamp(14px, 1.05vw, 18px); font-weight: 700; line-height: 1.2; }
.vr-card__name small { display: block; margin-top: 2px; font-size: 0.82em; font-weight: 400; color: var(--ts-muted); }

.vr-card__stats li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: clamp(36px, 2.9vw, 46px);
  padding: 6px 0;
  border-top: 1px solid var(--ts-line);
  font-size: clamp(12px, 0.85vw, 14px);
  line-height: 1.2;
  color: #e9e5e2;
}

.vr-card__stats img { flex: none; width: 17px; height: 17px; opacity: 0.9; }

.vr-card__price {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--ts-line);
  text-align: center;
  font-size: clamp(18px, 1.35vw, 22px);
  font-weight: 700;
}

.vr__cta { margin-top: clamp(24px, 2.4vw, 40px); padding-left: 12%; text-align: center; }
.vr__note { margin: 14px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.6); }

/* 768–1179: cinematic background stays, cards scroll sideways */
@media (max-width: 1179px) {
  .vr { background-size: cover; background-position: left center; }
  .vr__head,
  .vr__cta { padding-left: 0; }
  .vr__row { width: 100%; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); margin-left: 0; }
  .vr__rest {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }
  .vr-card { flex: 0 0 180px; scroll-snap-align: start; }
}

/* < 768: Titan first, full width; competitors in a 2-col grid */
@media (max-width: 767px) {
  .vr::before { background: linear-gradient(180deg, rgba(14, 12, 11, 0.35) 0%, rgba(14, 12, 11, 0.85) 45%, rgba(14, 12, 11, 0.92) 100%); }
  .vr { background-size: auto 460px; background-position: left top; }
  .vr__inner { min-height: 0; }
  .vr__title { font-size: 46px; }
  .vr__row { grid-template-columns: 1fr; margin-top: 150px; }
  .vr__rest { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .vr-card { flex: none; }
  .vr-card__stats li { font-size: 13px; }
}


/* ---------- Mud flaps variant: key/value rows, 2 competitors ---------- */
.vr--mf { background-image: url("../images/demo/compare-bg.avif"); background-position: left center; background-size: cover; }
.vr__row--mf { grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr); width: min(62%, 1000px); }
.vr__rest--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vr-card--wide { padding: clamp(14px, 1.2vw, 20px); }
.vr-card--wide .vr-card__name { margin-top: 2px; }

.vr-hero__stats--kv li,
.vr-card__stats--kv li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; }
.vr-hero__stats--kv .ico { width: 20px; height: 20px; color: var(--ts-orange); }
.vr-card__stats--kv .ico { width: 17px; height: 17px; color: #fff; opacity: 0.85; }
.vr-k { font-size: 0.86em; font-weight: 400; color: var(--ts-muted); }
.vr-v { text-align: right; font-weight: 700; color: #fff; }
.vr-hero__stats--kv li { font-size: clamp(13px, 0.95vw, 16px); }
.vr-hero__price--soon { font-size: clamp(24px, 2.2vw, 34px); }

@media (max-width: 1179px) {
  .vr__row--mf { width: 100%; grid-template-columns: 1fr; }
  .vr__rest--2 { display: grid; overflow: visible; }
  .vr-card--wide { flex: none; }
}

@media (max-width: 600px) {
  .vr__rest--2 { grid-template-columns: 1fr; }
}
