/* ============================================================
   FerCar.cz — sekce Dovoz vozidel (sdílený základ)
   Vychází z palety a stylu webu (StyleSheet.css).
   Prefix tříd: ds-
   ============================================================ */

:root {
  --ds-primary: #1e40af;
  --ds-accent: #2563eb;
  --ds-dark: #1e3a8a;
  --ds-ink: #1e293b;
  --ds-muted: #475569;
  --ds-soft: #64748b;
  --ds-surface: #f8fafc;
  --ds-pale: #eff6ff;
  --ds-border: #e2e8f0;
  --ds-check: #16a34a;
  --ds-radius: 20px;
  --ds-shadow: 0 18px 45px rgba(30, 64, 175, 0.10);
  --ds-shadow-sm: 0 4px 18px rgba(30, 64, 175, 0.07);
  --ds-max: 1152px;
}

/* Stránky běží uvnitř Bootstrap .container z _Layout (max ~1140px),
   proto zde neřešíme vlastní šířku obsahu. */
.ds-page {
  color: var(--ds-ink);
  line-height: 1.6;
}
.ds-page h1, .ds-page h2, .ds-page h3 { font-family: inherit; }
.ds-page img { height: auto; }

/* ---------- Tlačítka ---------- */
.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.ds-btn:hover { transform: translateY(-1px); }
.ds-btn--primary {
  background: linear-gradient(135deg, var(--ds-primary) 0%, var(--ds-accent) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.25);
}
.ds-btn--primary:hover { box-shadow: 0 10px 28px rgba(30, 64, 175, 0.35); color: #fff; }
.ds-btn--ghost {
  background: rgba(37, 99, 235, 0.08);
  color: var(--ds-primary);
  border-color: rgba(37, 99, 235, 0.18);
}
.ds-btn--ghost:hover { background: rgba(37, 99, 235, 0.14); color: var(--ds-primary); }
.ds-btn--light { background: #fff; color: var(--ds-dark); }
.ds-btn--light:hover { color: var(--ds-dark); box-shadow: 0 10px 28px rgba(0,0,0,0.18); }
.ds-btn--outline-light { background: transparent; border-color: rgba(255,255,255,0.6); color: #fff; }
.ds-btn--outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ---------- Kicker ---------- */
.ds-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ds-accent);
  margin: 0 0 0.85rem;
}
.ds-kicker--onDark { color: #93c5fd; }

/* ---------- Hero ---------- */
.ds-hero {
  margin: 1.5rem 0 2rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: 28px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.10), transparent 45%),
    linear-gradient(160deg, #ffffff 0%, var(--ds-pale) 100%);
}
.ds-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.ds-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.12;
  font-weight: 800;
  color: var(--ds-primary);
  margin: 0 0 1rem;
}
.ds-hero h1 .ds-hl { color: var(--ds-accent); }
.ds-hero__lead {
  font-size: 1.06rem;
  color: var(--ds-muted);
  max-width: 60ch;
  margin: 0 0 1.6rem;
}
.ds-hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.ds-hero__media {
  align-self: center;
  background: linear-gradient(160deg, #ffffff 0%, #e8f1fc 100%);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: var(--ds-shadow);
}
.ds-hero__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.ds-hero__media--photo img { aspect-ratio: 16 / 11; }
.ds-hero__media--dark {
  background: linear-gradient(160deg, #1e3a8a 0%, #0f2255 100%);
  border-color: rgba(147, 197, 253, 0.22);
}
.ds-hero__media--dark img { background: #0f1f45; }
/* RenderY vozů s průhledným pozadím – ať „nesedí“ na hraně kartičky */
.ds-hero__media--contain img { aspect-ratio: 16 / 10; object-fit: contain; }
.ds-hero__badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.ds-hero__badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ds-dark);
  background: #fff;
  border: 1px solid var(--ds-border);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
}

/* ---------- Fakta ---------- */
.ds-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.ds-fact {
  background: #fff;
  border: 1px solid var(--ds-border);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  box-shadow: var(--ds-shadow-sm);
}
.ds-fact__num {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 800;
  color: var(--ds-primary);
  line-height: 1.1;
}
.ds-fact__label { font-size: 0.82rem; color: var(--ds-soft); margin-top: 0.35rem; }

/* ---------- Sekce ----------
   Stránky běží uvnitř Bootstrap .container z _Layout, proto tónované
   sekce řešíme jako zaoblené bloky, ne jako full-bleed pruhy. */
.ds-section { padding: 3.5rem 0; }
.ds-section--tint,
.ds-section--dark {
  border-radius: 24px;
  padding: 3rem 2.25rem;
  margin: 1.25rem 0;
}
.ds-section--tint { background: var(--ds-surface); border: 1px solid var(--ds-border); }
.ds-section--dark {
  background: linear-gradient(135deg, var(--ds-dark) 0%, var(--ds-primary) 100%);
  color: #fff;
}
.ds-section.ds-section--dark h2,
.ds-section.ds-section--dark h3 {
    color: #fff;
}

.ds-section.ds-section--dark p,
.ds-section.ds-section--dark .ds-lead,
.ds-section.ds-section--dark .ds-section__sub {
    color: #e8eefc;
}

.ds-section__head { max-width: 62ch; margin: 0 auto 2.5rem; text-align: center; }
.ds-section__head--left { margin-inline: 0; text-align: left; }
.ds-section h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.14;
  font-weight: 800;
  color: var(--ds-primary);
  margin: 0 0 0.75rem;
}
.ds-section__sub { color: var(--ds-muted); font-size: 1.02rem; margin: 0; }
.ds-lead { font-size: 1.05rem; color: var(--ds-muted); }

/* ---------- Kroky ---------- */
.ds-steps { display: grid; gap: 1.1rem; }
.ds-step {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  overflow: hidden;
  box-shadow: var(--ds-shadow-sm);
}
.ds-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, var(--ds-accent) 0%, var(--ds-dark) 100%);
}
.ds-step__body { padding: 1.5rem 1.5rem 1.5rem 0; }
.ds-step__body h3 {
  margin: 0 0 0.5rem;
  color: var(--ds-primary);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.2;
}
.ds-step__body p { margin: 0 0 0.6rem; }
.ds-step__body p:last-child { margin-bottom: 0; }

/* ---------- Checklisty ---------- */
.ds-checks { list-style: none; padding: 0; margin: 0; }
.ds-checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
  color: var(--ds-ink);
  font-weight: 500;
}
.ds-checks li::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--ds-check);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ds-section--dark .ds-checks li { color: rgba(255, 255, 255, 0.92); }
.ds-checks--two { columns: 2; column-gap: 2rem; }
.ds-checks--two li { break-inside: avoid; }

/* ---------- Karty ---------- */
.ds-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.ds-card {
  display: block;
  background: #fff;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  padding: 1.6rem;
  box-shadow: var(--ds-shadow-sm);
  color: inherit;
  text-decoration: none;
}
a.ds-card { transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.ds-card:hover { transform: translateY(-3px); box-shadow: var(--ds-shadow); }
.ds-card__kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-accent);
  margin-bottom: 0.5rem;
}
.ds-card h3 { margin: 0 0 0.5rem; color: var(--ds-primary); font-size: 1.25rem; }
.ds-card p { margin: 0; color: var(--ds-muted); }
.ds-card ul { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--ds-muted); }

/* ---------- Split ---------- */
.ds-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.ds-split h2, .ds-split h3 { color: var(--ds-primary); margin-top: 0; }
.ds-split img { width: 100%; border-radius: var(--ds-radius); box-shadow: var(--ds-shadow); display: block; }

.ds-quote {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--ds-primary);
  line-height: 1.25;
  margin: 0;
}
.ds-section--dark .ds-quote { color: #fff; }
.ds-quote span { display: block; color: var(--ds-accent); }
.ds-section--dark .ds-quote span { color: #93c5fd; }

/* ---------- Galerie ---------- */
.ds-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}
.ds-gallery figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--ds-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--ds-shadow-sm);
}
.ds-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.ds-gallery figcaption {
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  color: var(--ds-soft);
}

/* ---------- Marky vozů ---------- */
.ds-marques {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  align-items: center;
}
.ds-marques figure {
  margin: 0;
  background: linear-gradient(160deg, #ffffff, #eef4fc);
  border: 1px solid var(--ds-border);
  border-radius: 14px;
  padding: 0.75rem;
  text-align: center;
}
.ds-marques img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  display: block;
}
.ds-marques figcaption { font-size: 0.78rem; color: var(--ds-soft); margin-top: 0.35rem; }

/* ---------- CTA pruh ---------- */
.ds-cta { padding: 3.5rem 0; }
.ds-cta__box {
  background: linear-gradient(135deg, var(--ds-dark) 0%, var(--ds-primary) 55%, var(--ds-accent) 100%);
  color: #fff;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--ds-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.ds-cta__box h2 { color: #fff; margin: 0 0 0.5rem; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.ds-cta__box p { margin: 0; color: rgba(255, 255, 255, 0.9); max-width: 52ch; }
.ds-cta__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- Responsivita ---------- */
@media (max-width: 980px) {
  .ds-hero__grid,
  .ds-split { grid-template-columns: 1fr; }
  .ds-hero__media { order: -1; }
  .ds-facts { grid-template-columns: repeat(2, 1fr); }
  .ds-section__head { text-align: left; margin-inline: 0; }
}

@media (max-width: 680px) {
  .ds-section { padding: 2.75rem 0; }
  .ds-checks--two { columns: 1; }
  .ds-step { grid-template-columns: 1fr; }
  .ds-step__num { min-height: 64px; padding: 0.5rem; }
  .ds-step__body { padding: 1.25rem; }
  .ds-cta__box { padding: 1.75rem; }
  .ds-facts { grid-template-columns: 1fr 1fr; }
}
