/* Каталог → «Модели подробно» (/katalog/modeli/): инфографика линеек по образцу clipper.com.
   Перенесено из style.css v1 без изменений вёрстки; переменные v1 сопоставлены с токенами v2. */
:root {
  --clipper-blue: #002e5f;
  --navy: var(--blue);
  --paper: #ffffff;
  --border: var(--line);
  --muted-foreground: var(--muted);
  --font-display: var(--font-head);
  --font-sans: var(--font-body);
}

.lineup-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.lineup-nav__list {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  scrollbar-width: none;
}

.lineup-nav__list a {
  flex: none;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  color: var(--navy);
  text-decoration: none;
}

.lineup-nav__list a span {
  font-weight: 400;
  color: var(--muted-foreground);
}

.lineup-nav__list a:hover {
  border-color: var(--navy);
}

.lineup {
  background: var(--lineup-bg, var(--clipper-blue));
  padding: 3rem 0 3.5rem;
  overflow: hidden;
  scroll-margin-top: 64px;
}

.lineup--dark {
  color: #fff;
}

.lineup--light {
  color: var(--clipper-blue);
}

.lineup--dark + .lineup--dark {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.lineup__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .lineup__grid {
    grid-template-columns: minmax(300px, 0.8fr) 1.8fr;
    align-items: center;
  }
}

.lineup__eyebrow {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.lineup--dark .lineup__eyebrow {
  color: var(--yellow);
}

.lineup__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.95;
  margin-top: 0.9rem;
}

.lineup__title-xl {
  display: block;
  font-size: clamp(2.2rem, 3.1vw, 3.5rem);
  letter-spacing: -0.02em;
}

.lineup__title-sub {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  margin-top: 0.5rem;
}

.lineup__switch-label {
  margin-top: 2rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

.model-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin-top: 0.75rem;
  align-items: flex-end;
}

.model-switch button {
  appearance: none;
  background: none;
  border: 0;
  border-radius: 0.75rem;
  color: inherit;
  cursor: pointer;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.4rem;
  max-width: 7.5rem;
  opacity: 0.42;
  transition: opacity 0.2s ease;
}

.model-switch button[aria-pressed="true"],
.model-switch button:hover {
  opacity: 1;
}

.model-switch button:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.model-switch img {
  width: auto;
}

.model-switch .code {
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: center;
}

.model-switch .name {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.lineup__stage {
  min-width: 0;
}

.kat-fig {
  margin: 0;
}

.kat-fig[hidden] {
  display: none;
}

.kat-stage {
  position: relative;
  container-type: inline-size;
  aspect-ratio: var(--ar);
  overflow: hidden;
}

.kat-canvas {
  position: absolute;
  inset: 0;
}

.kat-canvas > img {
  display: block;
  width: 100%;
  height: 100%;
}

.kat-label {
  position: absolute;
  font-size: clamp(9px, 1.3cqw, 13px);
  line-height: 1.3;
}

.kat-label--l {
  text-align: right;
}

.kat-label strong,
.kat-list strong,
.kat-badge strong,
.kat-chips strong {
  display: block;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.kat-label strong {
  font-size: 1.05em;
  margin-bottom: 0.15em;
}

.kat-label span,
.kat-list span,
.kat-badge span,
.kat-chips span {
  display: block;
  opacity: 0.85;
}

.kat-num {
  display: none;
  position: absolute;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--clipper-blue);
  font: 800 12px/24px var(--font-sans);
  text-align: center;
}

.kat-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7em;
  width: 25cqw;
  min-height: var(--d);
  padding-right: 1em;
  border: 2px solid currentColor;
  border-radius: 1em;
  font-size: clamp(8px, 1.15cqw, 12px);
  line-height: 1.25;
  margin: -2px 0 0 -2px;
}

.kat-badge img {
  flex: none;
  width: var(--d);
  height: var(--d);
  margin: -2px 0 -2px -2px;
}

.kat-list,
.kat-chips {
  display: none;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.kat-list {
  counter-reset: kat;
}

.kat-list li {
  counter-increment: kat;
  display: grid;
  grid-template-columns: 1.9rem 1fr;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-top: 1px solid currentColor;
  border-top-color: color-mix(in srgb, currentColor 18%, transparent);
  font-size: 0.95rem;
  line-height: 1.4;
}

.kat-list li::before {
  content: counter(kat);
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--clipper-blue);
  font-weight: 800;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

.kat-chips {
  gap: 0.6rem;
}

.kat-chips li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 0.25rem 1rem 0.25rem 0.25rem;
  font-size: 0.85rem;
  line-height: 1.3;
}

.kat-chips img {
  flex: none;
  width: 44px;
  height: 44px;
}

@media (max-width: 759px) {
  .kat-stage {
    aspect-ratio: var(--ar-m);
    max-height: 75vh;
    margin-inline: auto;
  }

  .kat-canvas {
    left: var(--cx-m);
    right: auto;
    width: var(--cw-m);
  }

  .kat-label,
  .kat-badge {
    display: none;
  }

  .kat-num {
    display: block;
  }

  .kat-list {
    display: block;
  }

  .kat-chips {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .model-switch button {
    transition: none;
  }
}

