/* Model-Lineup page styles (/brand/{brand}/{model}/) */

.brand-wrap .lineup-shell { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

/* HERO */
.lineup-hero {
  background: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 100%);
  color: white;
  padding: 32px 0 64px;
  position: relative;
  overflow: hidden;
}
.lineup-hero .crumbs { color: rgba(255,255,255,0.65); margin-bottom: 32px; }
.lineup-hero .crumbs a { color: rgba(255,255,255,0.85); }
.lineup-hero .crumbs .sep { color: rgba(255,255,255,0.35); }
.lineup-hero .crumbs .current { color: white; }

.lineup-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .lineup-hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

.lineup-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.lineup-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2);
}
.lineup-badge-hot { background: linear-gradient(90deg, #FF6B35, #F7931E); border: none; }
.lineup-badge-electric { background: rgba(80, 200, 130, 0.18); color: #5DD8A0; border-color: rgba(80,200,130,0.3); }
.lineup-badge-stock { background: rgba(85, 175, 255, 0.18); color: #7BC5FF; border-color: rgba(85,175,255,0.3); }

.lineup-h1 {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: clamp(32px, 4.5vw, 56px); line-height: 1.05; margin: 0 0 16px;
}
.lineup-h1 .accent { color: #7BC5FF; font-weight: 600; }
.lineup-tagline { font-size: 18px; color: rgba(255,255,255,0.8); margin: 0 0 24px; max-width: 560px; line-height: 1.5; }

.lineup-hero-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 600px) { .lineup-hero-meta { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.lineup-hero-meta > div { display: flex; flex-direction: column; gap: 4px; }
.lineup-meta-label { font-size: 11px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.06em; }
.lineup-meta-value { font-size: 15px; font-weight: 600; color: white; }

.lineup-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.lineup-price-label { font-size: 14px; color: rgba(255,255,255,0.6); }
.lineup-price-value { font-size: 36px; font-weight: 800; color: white; }
.lineup-price-sub { font-size: 13px; color: rgba(255,255,255,0.6); }

.lineup-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

.lineup-hero-art {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  aspect-ratio: 4/3;
  border-radius: 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
}
.lineup-hero-art-tag {
  position: absolute; top: 16px; right: 16px;
  font-size: 10px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.08em;
}
.lineup-hero-art-icon {
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 120px;
  color: rgba(255,255,255,0.08); line-height: 1;
}
/* Сгенерированное фото модели в hero — заполняет всю art-area */
.lineup-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  display: block;
}

/* SECTIONS */
.lineup-section {
  max-width: 1440px; margin: 0 auto; padding: 64px 32px;
}
.lineup-section-head { margin-bottom: 32px; }
.lineup-section-head h2 {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: clamp(24px, 3vw, 36px); margin: 0 0 12px; color: var(--ink, #1a1f2e);
}
.lineup-lead { font-size: 16px; color: var(--grey, #5C6370); max-width: 680px; line-height: 1.55; margin: 0; }

/* COUNTRIES GRID */
.lineup-countries {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
}
.lineup-country {
  background: white;
  border: 1px solid #E8EAEF; border-radius: 16px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.2s, transform 0.2s;
}
.lineup-country:hover { border-color: #7BC5FF; transform: translateY(-2px); }
.lineup-country-head { display: flex; align-items: center; gap: 8px; }
.lineup-country-flag { font-size: 24px; }
.lineup-country-name { font-weight: 700; font-size: 15px; color: var(--ink, #1a1f2e); }
.lineup-country-price { font-size: 22px; font-weight: 800; color: var(--ink, #1a1f2e); margin-top: 4px; }
.lineup-country-meta { font-size: 13px; color: var(--grey, #5C6370); }
.lineup-country-cta {
  margin-top: 8px; font-size: 13px; font-weight: 600; color: #2563EB; text-decoration: none;
  align-self: flex-start;
}
.lineup-country-cta:hover { text-decoration: underline; }

/* SPECS */
.specs-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px;
  background: #E8EAEF; border-radius: 12px; overflow: hidden; border: 1px solid #E8EAEF;
}
.spec { background: white; padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.spec-label { font-size: 12px; color: var(--grey, #5C6370); text-transform: uppercase; letter-spacing: 0.06em; }
.spec-value { font-size: 15px; font-weight: 600; color: var(--ink, #1a1f2e); }

/* BREAKDOWN */
.breakdown-table {
  background: white; border-radius: 16px; border: 1px solid #E8EAEF; overflow: hidden;
  max-width: 720px;
}
.breakdown-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid #F2F4F7;
  font-size: 15px;
}
.breakdown-row:last-child { border-bottom: none; }
.breakdown-row span { color: var(--grey, #5C6370); }
.breakdown-row strong { color: var(--ink, #1a1f2e); font-weight: 600; }
.breakdown-total { background: #F8F9FB; }
.breakdown-total span, .breakdown-total strong { font-size: 17px; font-weight: 800; color: var(--ink, #1a1f2e); }

/* BY-ORDER BLOCK */
.lineup-by-order { padding-top: 0; }
.lineup-by-order-card {
  background: linear-gradient(135deg, #1a1f2e 0%, #2d3548 100%);
  color: white;
  border-radius: 24px;
  padding: 40px;
}
.lineup-by-order-eyebrow {
  display: inline-block;
  background: rgba(123,197,255,0.18); color: #7BC5FF;
  padding: 6px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.lineup-by-order-card h2 { color: white; font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 12px; }
.lineup-by-order-card .lineup-lead { color: rgba(255,255,255,0.78); max-width: 640px; }
.lineup-by-order-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.lineup-by-order-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.lineup-by-order-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,0.85); }
.lineup-by-order-list li svg { color: #5DD8A0; }

/* SIMILAR */
.lineup-similar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px;
}
.lineup-similar-card {
  background: white; border: 1px solid #E8EAEF; border-radius: 12px;
  padding: 16px; text-decoration: none; color: var(--ink, #1a1f2e);
  transition: border-color 0.2s, transform 0.2s;
  display: flex; flex-direction: column; gap: 4px;
}
.lineup-similar-card:hover { border-color: #7BC5FF; transform: translateY(-2px); }
.lineup-similar-name { font-weight: 700; font-size: 15px; }
.lineup-similar-meta { font-size: 12px; color: var(--grey, #5C6370); text-transform: uppercase; letter-spacing: 0.04em; }
.lineup-similar-price { font-size: 14px; font-weight: 700; color: var(--ink, #1a1f2e); margin-top: 4px; }

/* BRAND MODELS GRID (inside brand page) */
.brand-models-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.brand-model-card {
  background: white; border: 1px solid #E8EAEF; border-radius: 14px;
  padding: 16px 18px; text-decoration: none; color: var(--ink, #1a1f2e);
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.brand-model-card:hover { border-color: #2563EB; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08); }
.brand-model-popular { border-color: #FFD9C2; background: #FFFBF7; }
.brand-model-popular:hover { border-color: #F7931E; }
.brand-model-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.brand-model-name { font-weight: 700; font-size: 17px; color: var(--ink, #1a1f2e); }
.brand-model-stock-pill {
  background: #E8F4FF; color: #2563EB;
  padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  white-space: nowrap;
}
.brand-model-meta { font-size: 12px; color: var(--grey, #5C6370); text-transform: uppercase; letter-spacing: 0.04em; }
.brand-model-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 12px; border-top: 1px solid #F2F4F7; }
.brand-model-price { font-weight: 800; font-size: 15px; color: var(--ink, #1a1f2e); }
.brand-model-arrow { font-size: 18px; color: #5C6370; transition: transform 0.2s, color 0.2s; }
.brand-model-card:hover .brand-model-arrow { color: #2563EB; transform: translateX(2px); }

/* CATALOG STOCK GRID EMPTY STATE */
.cars-grid-empty {
  background: white;
  border: 1px dashed #D7DCE4;
  border-radius: 16px;
  padding: 56px 32px;
  text-align: center;
  max-width: 720px;
  margin: 24px auto;
}
.cars-grid-empty-icon {
  width: 64px; height: 64px;
  background: #F2F4F7;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #5C6370;
  margin-bottom: 16px;
}
.cars-grid-empty-title {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: 22px; color: var(--ink, #1a1f2e);
  margin-bottom: 8px;
}
.cars-grid-empty-sub {
  font-size: 15px; color: var(--grey, #5C6370);
  line-height: 1.5; margin-bottom: 20px;
  max-width: 420px; margin-left: auto; margin-right: auto;
}
.cars-grid-empty-actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}

/* CATALOG BY-ORDER SECTION (under main stock grid) — выравнивание с cat-shell (1280px) */
.cat-byorder-section {
  max-width: 1440px; margin: 64px auto; padding: 0 32px;
}
.cat-byorder-head-row { margin-bottom: 24px; }
.cat-byorder-eyebrow {
  display: inline-block;
  background: var(--mint, #DDFCF1); color: #00876C;
  padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.cat-byorder-title {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: clamp(24px, 3vw, 36px); margin: 0 0 12px; color: var(--ink, #1a1f2e);
}
.cat-byorder-lead { font-size: 16px; color: var(--grey, #5C6370); max-width: 720px; line-height: 1.55; margin: 0; }

.cat-byorder-filters {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.cat-byorder-filter-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--grey, #5C6370); flex-shrink: 0;
}
.cat-byorder-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-chip {
  background: white; border: 1px solid #E8EAEF; color: var(--ink, #1a1f2e);
  padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.cat-chip:hover { border-color: #2563EB; }
.cat-chip-active { background: var(--ink, #1a1f2e); color: white; border-color: var(--ink, #1a1f2e); }
.cat-chip-num {
  background: rgba(0,0,0,0.06); color: inherit;
  padding: 2px 6px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.cat-chip-active .cat-chip-num { background: rgba(255,255,255,0.18); }

.cat-byorder-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px;
  margin-top: 24px;
}
.cat-byorder-card {
  background: white; border: 1px solid #E8EAEF; border-radius: 14px;
  padding: 16px 18px; text-decoration: none; color: var(--ink, #1a1f2e);
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.cat-byorder-card:hover { border-color: #2563EB; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08); }
.cat-byorder-popular { border-color: #FFD9C2; background: #FFFBF7; }
.cat-byorder-popular:hover { border-color: #F7931E; }

.cat-byorder-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cat-byorder-brand { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey, #5C6370); }
.cat-byorder-pill {
  padding: 3px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  background: #F2F4F7; color: var(--grey, #5C6370); white-space: nowrap;
}
.cat-byorder-pill-stock { background: #E8F4FF; color: #2563EB; }

.cat-byorder-name { font-size: 18px; font-weight: 800; margin-top: 2px; }
.cat-byorder-meta { font-size: 12px; color: var(--grey, #5C6370); text-transform: uppercase; letter-spacing: 0.04em; }
.cat-byorder-price { font-size: 15px; font-weight: 800; margin-top: 8px; padding-top: 12px; border-top: 1px solid #F2F4F7; }

.cat-byorder-empty {
  padding: 48px; text-align: center; color: var(--grey, #5C6370);
  background: #F8F9FB; border-radius: 16px; margin-top: 24px;
  font-size: 15px;
}

/* FAQ inline (reuse existing if defined) */
.faq-item {
  background: white; border: 1px solid #E8EAEF; border-radius: 12px;
  padding: 16px 20px; margin-bottom: 8px;
}
.faq-item summary { font-weight: 600; cursor: pointer; outline: none; font-size: 16px; }
.faq-item p { margin: 12px 0 0; color: var(--grey, #5C6370); line-height: 1.55; font-size: 15px; }

/* ====== COUNTRIES INDEX (/country/) ====== */
.ci-wrap { max-width: 1440px; margin: 0 auto; padding: 0 32px 80px; }
.ci-hero { padding: 24px 0 32px; }
.ci-h1 {
  font-family: 'Manrope'; font-weight: 700;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin: 0 0 12px;
  color: var(--midnight, #0F2A3D); letter-spacing: -0.02em;
}
.ci-lead {
  font-size: 17px; line-height: 1.55; color: var(--grey, #5C6B7A);
  max-width: 720px; margin: 0;
}

.ci-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px; margin: 24px 0 56px;
}
.ci-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--snow, #fff); border: 1px solid var(--stone, #D4DDE3);
  border-radius: 16px; padding: 24px; text-decoration: none; color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.ci-card:hover { border-color: var(--voltage, #00C896); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,200,150,0.08); }
.ci-card-flag { font-size: 56px; line-height: 1; flex-shrink: 0; }
.ci-card-body { flex: 1; min-width: 0; }
.ci-card-name {
  font-family: 'Manrope'; font-weight: 800; font-size: 22px;
  color: var(--midnight, #0F2A3D); margin-bottom: 6px;
  display: flex; align-items: baseline; gap: 8px;
}
.ci-card-native { font-weight: 400; font-size: 14px; color: var(--grey-light, #94A3B5); }
.ci-card-lead { font-size: 14px; color: var(--grey, #5C6B7A); line-height: 1.5; margin-bottom: 12px; }
.ci-card-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--graphite, #2C3E50);
  padding: 10px 0; border-top: 1px solid var(--stone, #D4DDE3);
}
.ci-card-meta strong { color: var(--midnight, #0F2A3D); font-weight: 800; }
.ci-card-cta {
  font-size: 14px; font-weight: 600; color: var(--midnight, #0F2A3D);
  margin-top: 8px;
}
.ci-card:hover .ci-card-cta { color: var(--voltage, #00C896); }

.ci-comparison { margin: 56px 0 32px; }
.ci-comparison h2 {
  font-family: 'Manrope'; font-weight: 700; font-size: 28px;
  color: var(--midnight, #0F2A3D); margin: 0 0 20px;
}
.ci-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--stone, #D4DDE3); }
.ci-table {
  width: 100%; border-collapse: collapse; background: var(--snow, #fff);
  font-size: 14px; min-width: 720px;
}
.ci-table th, .ci-table td {
  padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--stone, #D4DDE3);
}
.ci-table th {
  background: var(--mist, #F4F7F5);
  font-family: 'Manrope'; font-weight: 700; font-size: 13px;
  color: var(--midnight, #0F2A3D); text-transform: uppercase; letter-spacing: 0.04em;
}
.ci-table tbody tr:last-child td { border-bottom: none; }
.ci-table tbody tr:hover { background: var(--mist, #F4F7F5); }
.ci-table td:first-child { font-weight: 600; color: var(--midnight, #0F2A3D); white-space: nowrap; }

@media (max-width: 700px) {
  .ci-card { flex-direction: column; gap: 12px; padding: 20px; }
  .ci-card-flag { font-size: 40px; }
  .ci-h1 { font-size: 28px; }
}

/* ====== RESPONSIVE: lineup pages ====== */
@media (max-width: 1024px) {
  .brand-wrap .lineup-shell, .lineup-section, .cat-byorder-section { padding: 0 16px !important; }
  .lineup-hero { padding: 24px 0 40px; }
  .lineup-section { padding-top: 32px !important; padding-bottom: 32px !important; }
  .lineup-cta { flex-direction: column; align-items: stretch; }
  .lineup-cta .btn { width: 100%; justify-content: center; }
  .lineup-by-order-card { padding: 24px; border-radius: 16px; }
  .lineup-by-order-cta { flex-direction: column; align-items: stretch; }
  .lineup-by-order-cta .btn { width: 100%; justify-content: center; }
  .lineup-countries { grid-template-columns: 1fr !important; gap: 12px; }
  .lineup-similar { grid-template-columns: 1fr !important; }
  .breakdown-table { max-width: none; }

  .country-strip-flags { flex-wrap: wrap; }
  .ci-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .ci-table-wrap { font-size: 13px; }
}

@media (max-width: 700px) {
  .brand-wrap .lineup-shell, .lineup-section, .cat-byorder-section { padding: 0 12px !important; }
  .lineup-hero { padding: 20px 0 32px; }
}
