/* Duck Cars – nový vzhled (redesign D1). Načítá se jako poslední CSS.
   Komponenty mají vlastní třídy dc-*, aby se nemíchaly se starou šablonou; Bootstrap 3 zatím zůstává (mřížka, administrace). */

:root {
  --dc-red: #e80000;
  --dc-red-dark: #c10000;
  --dc-ink: #121418;
  --dc-ink-2: #1c2027;
  --dc-text: #1c1f24;
  --dc-muted: #646b76;
  --dc-line: #e4e7ec;
  --dc-bg: #f4f5f7;
  --dc-white: #fff;
  --dc-radius: 12px;
  --dc-radius-sm: 8px;
  --dc-ok: #15803d;
  --dc-warn: #f59e0b;
  --dc-focus: #e80000;
  --dc-shadow: 0 10px 30px rgba(18, 20, 24, .08);
  --dc-shadow-lg: 0 18px 44px rgba(18, 20, 24, .14);
  --dc-wrap: 1200px;
}

body { font-family: 'Poppins', sans-serif; font-size: 16px; line-height: 1.65; color: var(--dc-text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; color: var(--dc-ink); }
main { display: block; overflow-x: clip; }
img { max-width: 100%; height: auto; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--dc-focus) !important; outline-offset: 3px;
}
a { color: var(--dc-red); transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s; }
a:hover, a:focus { color: var(--dc-red-dark); }
.dc-skip { position: absolute; left: 12px; top: -60px; z-index: 2000; padding: 10px 16px; border-radius: var(--dc-radius-sm);
  background: var(--dc-ink); color: #fff !important; font-weight: 600; text-decoration: none; }
.dc-skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.dc-wrap { max-width: var(--dc-wrap); margin: 0 auto; padding: 0 20px; }
.dc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tlačítka ---------- */
.dc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--dc-radius-sm); border: 2px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none !important;
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.dc-btn--red { background: var(--dc-red); color: #fff !important; }
.dc-btn--red:hover { background: var(--dc-red-dark); }
.dc-btn--dark { background: var(--dc-ink); color: #fff !important; }
.dc-btn--dark:hover { background: #000; }
.dc-btn--ghost { background: transparent; color: var(--dc-ink) !important; border-color: var(--dc-line); }
.dc-btn--ghost:hover { border-color: var(--dc-ink); }
.dc-btn--light { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.55); }
.dc-btn--light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.dc-btn--sm { padding: 8px 16px; font-size: 14px; }

/* ---------- Hlavička ---------- */
.dc-header { position: sticky; top: 0; z-index: 1000; background: var(--dc-white); box-shadow: 0 1px 0 var(--dc-line); }
.dc-topbar { background: var(--dc-ink); color: rgba(255,255,255,.78); font-size: 13px; }
.dc-topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.dc-topbar a, .dc-topbar span { color: rgba(255,255,255,.78) !important; text-decoration: none; white-space: nowrap; }
.dc-topbar a:hover { color: #fff !important; }
.dc-topbar i { color: var(--dc-red); margin-right: 6px; }
.dc-topbar__contact, .dc-topbar__right { display: flex; align-items: center; gap: 22px; }
.dc-topbar__right i { color: inherit; }

.dc-nav__in { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.dc-logo img { display: block; height: 48px; width: auto; }
.dc-menu { display: flex; align-items: center; gap: 4px; }
.dc-menu a {
  position: relative; padding: 10px 14px; color: var(--dc-ink) !important; font-weight: 500; font-size: 15px;
  text-decoration: none; border-radius: 8px;
}
.dc-menu a:not(.dc-btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--dc-red); transform: scaleX(0); transition: transform .2s;
}
.dc-menu a:not(.dc-btn):hover::after, .dc-menu a.is-active::after { transform: scaleX(1); }
.dc-menu a.is-active { color: var(--dc-red) !important; font-weight: 600; }
.dc-menu a.dc-btn, .dc-menu a.dc-btn:hover, .dc-menu a.dc-btn:focus { color: #fff !important; }
.dc-menu a.dc-btn i { color: #fff; }
@media (min-width: 992px) and (max-width: 1199px) { .dc-menu a { padding: 10px 9px; font-size: 14px; } .dc-menu .dc-btn { margin-left: 6px; padding: 10px 14px; } }
.dc-menu .dc-btn { margin-left: 10px; padding: 11px 20px; }
.dc-nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.dc-nav__toggle span:not(.dc-sr) { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--dc-ink); transition: transform .2s, opacity .2s; }
.dc-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dc-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.dc-nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991px) {
  .dc-nav__toggle { display: block; }
  .dc-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px;
    background: var(--dc-white); box-shadow: var(--dc-shadow-lg); max-height: calc(100vh - 110px); overflow-y: auto;
  }
  .dc-menu.is-open { display: flex; }
  .dc-menu a { padding: 14px 4px; border-bottom: 1px solid var(--dc-line); border-radius: 0; }
  .dc-menu a:not(.dc-btn)::after { display: none; }
  .dc-menu .dc-btn { margin: 16px 0 0; border-radius: var(--dc-radius-sm); border-bottom: 0; }
  .dc-nav { position: relative; }
  .dc-hide-sm { display: none !important; }
}
@media (max-width: 600px) {
  .dc-topbar__contact a:nth-child(2) { display: none; }
  .dc-topbar__contact, .dc-topbar__right { gap: 14px; }
  .dc-nav__in { min-height: 64px; }
  .dc-logo img { height: 40px; }
}

/* ---------- Úvodní prezentace (D2, nahrazuje nivo slider na úvodu) ---------- */
.dc-hero { position: relative; height: clamp(480px, 38vw, 580px); background: var(--dc-ink); overflow: hidden; color: #fff; }
.dc-hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.dc-hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease, visibility 0s; z-index: 1; }
.dc-hero__img { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none; object-fit: cover; object-position: 65% center; }
/* gradient jen přes fotografii (uvnitř snímku, pod textem) */
.dc-hero__slide::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,14,18,.85) 0%, rgba(12,14,18,.62) 38%, rgba(12,14,18,.18) 72%, rgba(12,14,18,0) 100%); }
.dc-hero__in { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-bottom: 36px; }
.dc-hero__title { margin: 0 0 18px; max-width: 680px; font-size: 52px; line-height: 1.1; font-weight: 700; letter-spacing: -.5px; color: #fff; }
.dc-hero__eyebrow { display: block; margin: 0 0 16px; padding-left: 12px; border-left: 3px solid var(--dc-red);
  font-size: 14px; line-height: 1.4; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #fff; }
.dc-hero__text { margin: 0; max-width: 600px; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.86); }
.dc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.dc-hero__nav { position: absolute; z-index: 3; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; align-items: center; gap: 14px; }
.dc-hero__arrow { width: 40px; height: 40px; border-radius: var(--dc-radius-sm); border: 1px solid rgba(255,255,255,.45);
  background: rgba(12,14,18,.35); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s, border-color .2s; }
.dc-hero__arrow:hover { background: var(--dc-red); border-color: var(--dc-red); }
.dc-hero__dots { display: flex; gap: 8px; }
.dc-hero__dots button { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.45); cursor: pointer; }
.dc-hero__dots button.is-active { background: var(--dc-red); }
.dc-hero__dots button::before { content: ""; display: block; height: 24px; margin-top: -10px; } /* větší plocha pro dotyk */
/* H1 celého webu nad snímky (D3) */
.dc-hero__brand { position: absolute; z-index: 3; left: 0; right: 0; top: 26px; pointer-events: none; }
.dc-hero__brand h1 { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 600; letter-spacing: .4px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.dc-hero__brand h1 span { font-weight: 400; color: rgba(255,255,255,.8); }
/* snímek bez fotografie (prodej – fotka se vybere) */
.dc-hero__slide--bezfoto { background: radial-gradient(circle at 78% 40%, rgba(232,0,0,.38), rgba(232,0,0,0) 42%), linear-gradient(120deg, #121418 0%, #1c2027 60%, #2a2f38 100%); }
.dc-hero__slide--bezfoto::after { display: none; }
.dc-hero__pause { font-size: 14px; margin-left: 6px; }
@media (max-width: 991px) { .dc-hero__title { font-size: 40px; } .dc-hero__text { font-size: 16px; } }
@media (max-width: 767px) {
  .dc-hero { height: auto; min-height: 460px; display: grid; }
  .dc-hero__slide { position: relative; grid-area: 1 / 1; }
  .dc-hero__slide::after { background: linear-gradient(180deg, rgba(12,14,18,.55) 0%, rgba(12,14,18,.82) 100%); }
  .dc-hero__in { padding-bottom: 84px; }
  .dc-hero__title { font-size: 31px; }
  .dc-hero__eyebrow { font-size: 12px; margin-bottom: 12px; }
  .dc-hero__text { font-size: 15px; }
  .dc-hero__actions { margin-top: 22px; }
  .dc-hero__arrow { display: none; }
  .dc-hero__arrow.dc-hero__pause { display: inline-block; width: 36px; height: 36px; }
  .dc-hero__brand { top: 16px; }
  .dc-hero__brand h1 span { display: none; }
  .dc-hero__in { padding-top: 64px; }
}
@media (max-width: 400px) { .dc-hero__actions .dc-btn { width: 100%; } }

/* ---------- Sekce a nadpisy ---------- */
.dc-section { padding: 88px 0; }
.dc-section--muted { background: var(--dc-bg); }
.dc-section--dark { background: var(--dc-ink); color: rgba(255,255,255,.8); }
.dc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.dc-eyebrow { display: inline-block; margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--dc-red); }
.dc-h2 { margin: 0; font-size: 36px; line-height: 1.2; font-weight: 700; letter-spacing: -.3px; color: var(--dc-ink); }
.dc-section--dark .dc-h2 { color: #fff; }
.dc-lead { margin: 12px 0 0; max-width: 640px; font-size: 17px; line-height: 1.7; color: var(--dc-muted); }
@media (max-width: 767px) { .dc-section { padding: 60px 0; } .dc-h2 { font-size: 28px; } }

/* záhlaví podstránek (nové stránky) */
.dc-pagehead { background: var(--dc-ink); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.dc-pagehead::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(232,0,0,.35), rgba(232,0,0,0) 70%); }
.dc-pagehead h1 { margin: 0; font-size: 44px; font-weight: 700; color: #fff; letter-spacing: -.5px; }
.dc-pagehead .dc-lead { color: rgba(255,255,255,.72); }
@media (max-width: 767px) { .dc-pagehead { padding: 44px 0 40px; } .dc-pagehead h1 { font-size: 32px; } }

/* záhlaví starších podstránek a administrace (zatím původní markup) */
.page-title-section { background: var(--dc-bg); padding: 40px 0 32px !important; border-bottom: 1px solid var(--dc-line); }
.page-title-section .container > br { display: none; }
.page-title-section h1 { font-size: 34px; font-weight: 700; color: var(--dc-ink); margin: 0; letter-spacing: -.3px; }

/* ---------- Služby ---------- */
.dc-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dc-service {
  display: flex; flex-direction: column; background: var(--dc-white); border: 1px solid var(--dc-line);
  border-radius: var(--dc-radius); overflow: hidden; color: inherit !important; text-decoration: none !important;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.dc-service:hover { box-shadow: var(--dc-shadow-lg); transform: translateY(-4px); border-color: transparent; }
.dc-service__img { background: #fff; aspect-ratio: 16 / 10; overflow: hidden; }
.dc-service__img img { display: block; width: 100%; height: 100% !important; object-fit: cover; transition: transform .4s; }
.dc-service:hover .dc-service__img img { transform: scale(1.03); }
.dc-service__body { padding: 20px 24px 22px; border-top: 1px solid var(--dc-line); flex: 1; display: flex; flex-direction: column; }
.dc-service h3 { margin: 0 0 8px; font-size: 21px; font-weight: 700; color: var(--dc-ink); }
.dc-service p { margin: 0 0 16px; color: var(--dc-muted); font-size: 15px; line-height: 1.65; flex: 1; }
.dc-service__more { font-weight: 600; font-size: 15px; color: var(--dc-red); }
.dc-service__more i { margin-left: 6px; transition: transform .2s; }
.dc-service:hover .dc-service__more i { transform: translateX(4px); }

.dc-minor { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 24px; }
.dc-minor a {
  display: flex; align-items: center; gap: 20px; padding: 18px 22px; background: var(--dc-white);
  border: 1px solid var(--dc-line); border-radius: var(--dc-radius); color: inherit !important; text-decoration: none !important;
  transition: box-shadow .25s, border-color .25s;
}
.dc-minor a:hover { box-shadow: var(--dc-shadow); border-color: transparent; }
.dc-minor img { width: 128px; height: 80px; object-fit: cover; flex: none; border-radius: var(--dc-radius-sm); }
.dc-minor a > div { flex: 1; }
.dc-minor a::after { content: "\f105"; font-family: FontAwesome; font-size: 22px; color: var(--dc-red); flex: none; }
.dc-minor h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: var(--dc-ink); }
.dc-minor p { margin: 0; font-size: 14px; color: var(--dc-muted); line-height: 1.55; }
@media (max-width: 991px) { .dc-services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .dc-services, .dc-minor { grid-template-columns: 1fr; } }

/* ---------- Karty vozů ---------- */
.dc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.dc-cards--3 { grid-template-columns: repeat(3, 1fr); }
.dc-card {
  position: relative; display: flex; flex-direction: column; background: var(--dc-white); border: 1px solid var(--dc-line);
  border-radius: var(--dc-radius); overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s;
}
.dc-card:hover { box-shadow: var(--dc-shadow-lg); transform: translateY(-4px); border-color: transparent; }
.dc-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--dc-bg); overflow: hidden; }
.dc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.dc-card:hover .dc-card__media img { transform: scale(1.04); }
.dc-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.dc-card__title { margin: 0 0 8px; font-size: 18px; line-height: 1.35; font-weight: 700; overflow-wrap: anywhere; }
.dc-card__title a { color: var(--dc-ink) !important; text-decoration: none; }
.dc-card__title a:hover { color: var(--dc-red) !important; }
.dc-card__specs { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dc-card__specs li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: #4b525c; background: var(--dc-bg); border-radius: 6px; padding: 4px 9px; max-width: 100%; overflow-wrap: anywhere; }
.dc-card__specs i { color: #8a919c; font-size: 12px; }
.dc-card__text { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--dc-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dc-card__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--dc-line); display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; flex-wrap: wrap; }
.dc-card__price { font-size: 22px; line-height: 1.25; font-weight: 700; color: var(--dc-ink); min-width: 0; }
.dc-card__price small { white-space: nowrap; }
.dc-card__foot .dc-btn { flex: none; }
.dc-card__price small { font-size: 13px; font-weight: 500; color: var(--dc-muted); }
.dc-badge {
  position: absolute; z-index: 2; left: 12px; top: 12px; padding: 5px 11px; border-radius: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .3px; color: #fff; background: var(--dc-ink);
}
.dc-badge--warn { background: var(--dc-warn); color: #1c1f24; }
.dc-badge--ok { background: var(--dc-ok); }
.dc-badge--dark { background: rgba(18,20,24,.85); }
.dc-empty { padding: 48px 24px; text-align: center; background: var(--dc-bg); border-radius: var(--dc-radius); color: var(--dc-muted); font-size: 17px; }
.dc-empty .dc-btn { margin-top: 18px; }
@media (max-width: 991px) { .dc-cards, .dc-cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dc-cards, .dc-cards--3 { grid-template-columns: 1fr; } }

/* ---------- Výzva (odtah, kontakt) ---------- */
.dc-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.dc-cta h2 { margin: 0 0 8px; font-size: 30px; font-weight: 700; color: #fff; }
.dc-cta p { margin: 0; font-size: 16px; color: rgba(255,255,255,.72); }
.dc-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Patička ---------- */
.dc-footer { background: var(--dc-ink); color: rgba(255,255,255,.84); font-size: 15px; }
.dc-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 52px 20px 36px; }
.dc-footer__logo { display: inline-block; background: #fff; border-radius: 10px; padding: 10px 14px; margin-bottom: 18px; }
.dc-footer__logo img { display: block; height: 34px; width: auto; }
.dc-footer h4 { margin: 0 0 16px; font-size: 14px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; }
.dc-footer ul { list-style: none; margin: 0; padding: 0; }
.dc-footer li { margin: 0 0 8px; }
.dc-footer a { color: rgba(255,255,255,.88) !important; text-decoration: none; }
.dc-footer a:hover { color: #fff !important; }
.dc-footer i { color: var(--dc-red); width: 20px; }
.dc-footer p { margin: 0 0 12px; line-height: 1.65; }
.dc-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); }
.dc-footer__bottom .dc-wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; font-size: 13px; color: rgba(255,255,255,.7); flex-wrap: wrap; }
.dc-footer__social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.08); }
.dc-footer__social a:hover { background: var(--dc-red); }
.dc-footer__social i { color: #fff; width: auto; }
@media (max-width: 991px) { .dc-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dc-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; } }

/* tlačítko nahoru */
#scrollUp { background: var(--dc-red) !important; border-radius: 50%; }

/* ---------- Proč Duck Cars ---------- */
.dc-about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.dc-checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.dc-checks li { position: relative; padding-left: 34px; font-weight: 500; color: var(--dc-ink); }
.dc-checks li::before {
  content: "\f00c"; font-family: FontAwesome; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%; background: rgba(232,0,0,.1); color: var(--dc-red);
  font-size: 11px; display: flex; align-items: center; justify-content: center;
}
.dc-offer { background: var(--dc-bg); border-radius: var(--dc-radius); padding: 32px 34px; }
.dc-offer h3 { margin: 0 0 18px; font-size: 20px; font-weight: 700; color: var(--dc-ink); }
.dc-offer dl { margin: 0; }
.dc-offer dt { font-weight: 600; color: var(--dc-ink); margin-top: 16px; }
.dc-offer dt:first-child { margin-top: 0; }
.dc-offer dd { margin: 4px 0 0; color: var(--dc-muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 991px) { .dc-about { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Zástupný obrázek (vůz bez fotky) ---------- */
.dc-noimg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, #eef0f3, #e2e5ea); color: #8a919c; font-size: 14px; font-weight: 500; }
.dc-noimg i { font-size: 36px; color: #b4bac3; }
.dc-card__media .dc-noimg { position: absolute; }

/* ---------- Detail vozu (D2) ---------- */
.dc-section--detail { padding: 32px 0 80px; }
.dc-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; font-weight: 500; color: var(--dc-muted) !important; }
.dc-back:hover { color: var(--dc-red) !important; }
.dc-detail { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.dc-detail__title { margin: 12px 0 10px; font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: -.3px; color: var(--dc-ink); overflow-wrap: anywhere; }
.dc-detail__lead { margin: 0 0 18px; font-size: 16px; line-height: 1.65; color: var(--dc-muted); }
.dc-detail__price { margin: 0 0 18px; padding: 16px 20px; background: var(--dc-bg); border-left: 4px solid var(--dc-red); border-radius: var(--dc-radius-sm);
  font-size: 34px; line-height: 1.2; font-weight: 700; color: var(--dc-ink); overflow-wrap: anywhere; }
.dc-detail__pricelabel { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--dc-muted); }
.dc-btn--lg { padding: 16px 24px; font-size: 16px; }
.dc-detail__price small { font-size: 16px; font-weight: 500; color: var(--dc-muted); }
.dc-detail__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.dc-detail__cta .dc-btn { flex: 1 1 200px; }
.dc-detail__note { margin: 12px 0 0; font-size: 14px; color: var(--dc-muted); }
.dc-status::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.dc-status { display: inline-block; padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; color: #fff; background: var(--dc-ink); }
.dc-status--ok { background: #e7f5ec; color: var(--dc-ok); }
.dc-status--warn { background: #fff3d6; color: #8a5a00; }
.dc-status--dark { background: var(--dc-ink); color: #fff; }
.dc-specs, .dc-prices { margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--dc-line);
  border: 1px solid var(--dc-line); border-radius: var(--dc-radius-sm); overflow: hidden; }
.dc-specs > div, .dc-prices > div { background: #fff; padding: 12px 16px; min-width: 0; }
.dc-specs dt i { margin-right: 6px; color: #8a919c; width: 14px; text-align: center; }
.dc-specs dt, .dc-prices dt { font-size: 12.5px; font-weight: 500; color: var(--dc-muted); text-transform: uppercase; letter-spacing: .5px; }
.dc-specs dd, .dc-prices dd { margin: 2px 0 0; font-weight: 600; color: var(--dc-ink); overflow-wrap: anywhere; }
.dc-prices { margin: -4px 0 22px; }
.dc-detail__desc { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--dc-line); max-width: 820px; }
.dc-detail__desc h2 { margin: 0 0 14px; font-size: 24px; font-weight: 700; }
.dc-detail__desc div { font-size: 16px; line-height: 1.75; }
@media (max-width: 991px) {
  .dc-detail { grid-template-columns: 1fr; gap: 28px; }
  .dc-detail__title { font-size: 28px; }
  .dc-detail__price { font-size: 28px; }
}
@media (max-width: 420px) { .dc-specs, .dc-prices { grid-template-columns: 1fr; } }

/* ---------- Galerie vozu (společná pro prodej i půjčovnu) ---------- */
.dc-gal__main { position: relative; aspect-ratio: 4 / 3; background: var(--dc-bg); border-radius: var(--dc-radius); overflow: hidden; }
.dc-gal__zoom { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.dc-gal__img { width: 100%; height: 100% !important; object-fit: contain; }
.dc-gal__zoomicon { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: var(--dc-radius-sm);
  display: flex; align-items: center; justify-content: center; background: rgba(12,14,18,.55); color: #fff; font-size: 16px; }
.dc-gal__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: var(--dc-radius-sm);
  background: rgba(12,14,18,.55); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; transition: background .2s; }
.dc-gal__arrow:hover { background: var(--dc-red); }
.dc-gal__arrow--prev { left: 12px; }
.dc-gal__arrow--next { right: 12px; }
.dc-gal__count { position: absolute; left: 12px; bottom: 12px; padding: 3px 10px; border-radius: 6px; background: rgba(12,14,18,.6); color: #fff; font-size: 13px; font-weight: 500; }
.dc-gal__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin-top: 10px; }
.dc-gal__thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--dc-radius-sm); overflow: hidden; background: var(--dc-bg);
  aspect-ratio: 4 / 3; cursor: pointer; opacity: .75; transition: opacity .2s, border-color .2s; }
.dc-gal__thumbs button:hover, .dc-gal__thumbs button.is-active { opacity: 1; }
.dc-gal__thumbs button.is-active { border-color: var(--dc-red); }
.dc-gal__thumbs img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
@media (max-width: 560px) { .dc-gal__thumbs { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); } .dc-gal__arrow { width: 38px; height: 38px; } }

/* zvětšení fotky (dialog vytváří main.js) */
.dc-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8,9,11,.94); color: #fff; }
.dc-lightbox::backdrop { background: rgba(8,9,11,.94); }
.dc-lightbox img { position: absolute; inset: 56px 16px 48px; width: calc(100% - 32px); height: calc(100% - 104px) !important; object-fit: contain; }
.dc-lightbox button { position: absolute; border: 0; border-radius: var(--dc-radius-sm); background: rgba(255,255,255,.12); color: #fff; cursor: pointer; width: 48px; height: 48px; font-size: 28px; line-height: 1; }
.dc-lightbox button:hover { background: var(--dc-red); }
.dc-lightbox__close { right: 16px; top: 8px; }
.dc-lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.dc-lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.dc-lightbox__count { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 14px; color: rgba(255,255,255,.8); }

/* ---------- Stránky služeb (D2, include/sluzba.php) ---------- */
.dc-pagehead__in { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.dc-pagehead__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.dc-nonstop { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 6px; background: var(--dc-red); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; }
.dc-pagehead--nonstop::after { background: radial-gradient(circle, rgba(232,0,0,.55), rgba(232,0,0,0) 70%); }
.dc-blocks { display: grid; gap: 72px; }
.dc-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.dc-block--rev .dc-block__img { order: 2; }
.dc-block__img { border-radius: var(--dc-radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--dc-bg); box-shadow: var(--dc-shadow); }
.dc-block__img img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.dc-block__body .dc-h2 { font-size: 30px; margin-bottom: 14px; }
.dc-block__body p { margin: 0; color: var(--dc-muted); font-size: 16px; line-height: 1.7; }
.dc-block__body .dc-checks { margin-top: 22px; }
@media (max-width: 991px) {
  .dc-blocks { gap: 52px; }
  .dc-block { grid-template-columns: 1fr; gap: 24px; }
  .dc-block--rev .dc-block__img { order: 0; }
  .dc-block__body .dc-h2 { font-size: 26px; }
}

/* ---------- Kontakt (D2) ---------- */
.dc-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; align-items: stretch; }
.dc-contact__info { display: grid; gap: 14px; align-content: start; }
.dc-contact__item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: #fff; border: 1px solid var(--dc-line);
  border-radius: var(--dc-radius); color: var(--dc-text) !important; text-decoration: none !important; }
a.dc-contact__item:hover { border-color: var(--dc-red); }
.dc-contact__item > i { flex: none; width: 42px; height: 42px; border-radius: var(--dc-radius-sm); display: flex; align-items: center; justify-content: center;
  background: rgba(232,0,0,.08); color: var(--dc-red); font-size: 18px; }
.dc-contact__item small { display: block; font-size: 12.5px; font-weight: 500; color: var(--dc-muted); text-transform: uppercase; letter-spacing: .5px; }
.dc-contact__item strong { display: block; font-size: 17px; font-weight: 600; color: var(--dc-ink); overflow-wrap: anywhere; }
.dc-contact__info .dc-btn { margin-top: 6px; justify-self: start; }
.dc-map { position: relative; min-height: 420px; border-radius: var(--dc-radius); overflow: hidden; background: var(--dc-bg); border: 1px solid var(--dc-line); }
.dc-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dc-map__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: var(--dc-muted); }
.dc-map__ph > i { font-size: 42px; color: #b4bac3; }
.dc-map__ph p { margin: 0; }
@media (max-width: 991px) { .dc-contact { grid-template-columns: 1fr; } .dc-map { min-height: 320px; } }

/* ---------- Přihlášení a formuláře (D2) ---------- */
.dc-auth { padding: 64px 0 88px; }
.dc-auth__box { max-width: 440px; margin: 0 auto; padding: 36px 34px; background: #fff; border-radius: var(--dc-radius); box-shadow: var(--dc-shadow); }
.dc-auth__box h1 { margin: 0 0 6px; font-size: 28px; font-weight: 700; }
.dc-auth__lead { margin: 0 0 22px; color: var(--dc-muted); font-size: 15px; }
.dc-form { display: grid; gap: 6px; }
.dc-form label { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--dc-ink); }
.dc-input { width: 100%; height: 46px; padding: 10px 14px; border: 1px solid #cfd4db; border-radius: var(--dc-radius-sm); background: #fff;
  font: inherit; font-size: 16px; color: var(--dc-text); transition: border-color .2s, box-shadow .2s; }
.dc-input:focus { border-color: var(--dc-ink); box-shadow: 0 0 0 3px rgba(18,20,24,.12); outline: none; }
.dc-form .dc-btn { margin-top: 18px; width: 100%; }
.dc-alert { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--dc-radius-sm); font-size: 15px; }
.dc-alert--err { background: #fdecec; color: #9b1111; border: 1px solid #f6c7c7; }
@media (max-width: 480px) { .dc-auth__box { padding: 28px 20px; } }

/* stav na kartě vozu = stejné barvy jako v detailu (D3) */
.dc-badge.dc-status--ok { background: #e7f5ec; color: var(--dc-ok); }
.dc-badge.dc-status--warn { background: #fff3d6; color: #8a5a00; }
.dc-badge.dc-status--dark { background: var(--dc-ink); color: #fff; }
.dc-badge { box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.dc-badge::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
@media (max-width: 400px) { .dc-detail__price { font-size: 28px; } .dc-card__foot .dc-btn { width: 100%; } }

/* ---------- Spodní kontaktní lišta na mobilu (D3) – jen veřejné stránky; mezera pod patičkou, aby nic nepřekrývala ---------- */
.dc-mobilebar, .dc-mobilebar-spacer { display: none; }
@media (max-width: 767px) {
  .dc-mobilebar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; z-index: 900; left: 0; right: 0; bottom: 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); box-shadow: 0 -2px 12px rgba(18,20,24,.12); }
  .dc-mobilebar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: var(--dc-radius-sm);
    font-weight: 600; font-size: 15px; text-decoration: none !important; background: var(--dc-ink); color: #fff !important; }
  .dc-mobilebar a.dc-mobilebar__call { background: var(--dc-red); }
  .dc-mobilebar-spacer { display: block; height: calc(62px + env(safe-area-inset-bottom)); background: var(--dc-ink); }
  #scrollUp { bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
}
/* horní lišta na nejužších displejích (přihlášená Zuzana: Administrace + Odhlásit) – bez přetečení */
@media (max-width: 420px) {
  .dc-topbar { font-size: 12px; }
  .dc-topbar__contact, .dc-topbar__right { gap: 12px; }
  .dc-topbar__right a[aria-label="Facebook"] { display: none; }
}

/* ---------- Karusel na úvodu – sjednocené rozvržení všech snímků (4. 12. 2026) ----------
   Stejná výška, text vlevo stejně široký, stejné ovládání. Snímky se liší jen ořezem fotky a mírou ztmavení
   (bílý text má i bez ztmavení kontrast ≥ 13 : 1 – překryv jen jemný). Mobil: fotka jako pás nahoře, text pod ní. */
.dc-hero__title, .dc-hero__text { max-width: 480px; }
@media (min-width: 992px) and (max-width: 1199px) { .dc-hero__title { font-size: 44px; max-width: 420px; } .dc-hero__text { max-width: 420px; } }
@media (min-width: 768px) and (max-width: 991px) { .dc-hero__title { font-size: 36px; max-width: 340px; } .dc-hero__text { max-width: 340px; } }
@media (max-width: 767px) {
  .dc-hero__slide { background: var(--dc-hero-bg, #121418); }
  .dc-hero__img { inset: auto; top: 0; left: 0; right: 0; height: 54vw !important; }
  .dc-hero__slide::after { background: linear-gradient(180deg, rgba(0,0,0,.45) 0, rgba(12,14,18,0) 48px, rgba(12,14,18,0) calc(54vw - 50px), var(--dc-hero-bg, #121418) 54vw); }
  .dc-hero__in { padding-top: calc(54vw + 14px); }
}

/* 1. Autopůjčovna: ruka s modrým autem a klíčky vpravo, téměř černé pozadí */
.dc-hero__slide--pujcovna { --dc-hero-bg: #05080a; background: #05080a; }
.dc-hero__slide--pujcovna .dc-hero__img { object-position: 100% 75%; }
.dc-hero__slide--pujcovna::after { background: linear-gradient(90deg, rgba(5,8,10,.6) 0%, rgba(5,8,10,.35) 35%, rgba(5,8,10,0) 55%); }
@media (min-width: 768px) and (max-width: 991px) {   /* tablet: celá fotka bez ořezu dole, nahoře přechod do barvy pozadí */
  .dc-hero__slide--pujcovna .dc-hero__img { object-fit: contain; object-position: 100% 100%; }
  .dc-hero__slide--pujcovna::after { background:
    linear-gradient(180deg, #05080a calc(480px - 44.25vw), rgba(5,8,10,0) calc(480px - 44.25vw + 70px)),
    linear-gradient(90deg, rgba(5,8,10,.55) 0%, rgba(5,8,10,0) 50%); }
}
@media (max-width: 767px) {   /* přiblíženo na 160 %, vpravo: motiv i klíčky vyplní pás */
  .dc-hero__slide--pujcovna .dc-hero__img { top: -10vw; left: auto; width: 160% !important; height: auto !important; object-fit: fill; }
  .dc-hero__slide--pujcovna::after { background: linear-gradient(180deg, rgba(0,0,0,.45) 0, rgba(5,8,10,0) 48px, rgba(5,8,10,0) calc(54vw - 50px), #05080a 54vw); }
}

/* 2. Autoservis: brzdový kotouč a destičky (42–82 % šířky), vlevo červenočerné pozadí – jen jemný přechod */
.dc-hero__slide--servis { --dc-hero-bg: #161012; }
.dc-hero__slide--servis .dc-hero__img { object-position: 0% 50%; }
.dc-hero__slide--servis::after { background: linear-gradient(90deg, rgba(14,8,10,.35) 0%, rgba(14,8,10,.15) 35%, rgba(14,8,10,0) 50%); }
@media (min-width: 768px) and (max-width: 991px) { .dc-hero__slide--servis .dc-hero__img { object-position: 34% 50%; } }
/* od 1740 px by se fotka roztáhla na šířku a kotouč by zasáhl do textu: výška celá, fotka vpravo,
   volné místo vlevo = svislý přechod naměřený na levém okraji fotky (spoj není vidět) */
@media (min-width: 1740px) {
  .dc-hero__slide--servis { background: linear-gradient(180deg, #130304 0%, #36060b 12.5%, #54080d 25%, #4c040d 37.5%, #43070e 50%, #2e0507 62.5%, #1f0306 75%, #0a0a0a 87.5%, #0f0f0f 100%); }
  .dc-hero__slide--servis .dc-hero__img { object-fit: contain; object-position: 100% 50%; }
}
/* 1600–1820 px: kotouč začíná ~vw−1008 px, text končí ~vw/2−105 px → užší text, aby se nepřekrývaly */
@media (min-width: 1600px) { .dc-hero__slide--servis .dc-hero__title, .dc-hero__slide--servis .dc-hero__text { max-width: 440px; } }
@media (max-width: 767px) {
  .dc-hero__slide--servis .dc-hero__img { object-position: 79% 50%; }
  .dc-hero__slide--servis::after { background: linear-gradient(180deg, rgba(0,0,0,.45) 0, rgba(22,16,18,0) 48px, rgba(22,16,18,0) calc(54vw - 50px), #161012 54vw); }
}

/* 3. Prodej vozů: řada černých aut v dolních 2/3, ořez dolů; fotka je sama tmavá */
.dc-hero__slide--prodej .dc-hero__img { object-position: 62% 75%; }
.dc-hero__slide--prodej::after { background: linear-gradient(90deg, rgba(12,14,18,.78) 0%, rgba(12,14,18,.5) 38%, rgba(12,14,18,.1) 72%, rgba(12,14,18,0) 100%); }
@media (max-width: 767px) {
  .dc-hero__slide--prodej .dc-hero__img { object-position: 62% 80%; }
  .dc-hero__slide--prodej::after { background: linear-gradient(180deg, rgba(0,0,0,.45) 0, rgba(18,20,24,0) 48px, rgba(18,20,24,0) calc(54vw - 50px), #121418 54vw); }
}
