/* ==========================================================================
   DOSI Transport — společné styly
   Sloučené styly ze všech stránek. Pravidla jsou vázaná na třídy,
   proto je bezpečné je sdílet napříč celým webem.
   ========================================================================== */

/* --- Reset --- */
body { margin: 0; }
* { box-sizing: border-box; }

/* --- Quick-quote custom dropdown --- */
.quick-quote { position: relative; z-index: 10; }
.qq-field { position: relative; }
.qq-dropdown::-webkit-scrollbar { width: 6px; }
.qq-dropdown::-webkit-scrollbar-track { background: transparent; }
.qq-dropdown::-webkit-scrollbar-thumb { background: #D5D0C8; border-radius: 3px; }
.qq-option:focus-visible { outline: 2px solid #E6392B; outline-offset: -2px; }
.qq-select-btn:hover .qq-chevron { stroke: #17140F; }
.qq-field:hover { background: #FAFAF8; border-radius: 14px; }

/* --- Max. šířka obsahu --- */
/* Pozadí a barevné pásy jdou přes celou šířku displeje; drží se jen obsah
   uvnitř, ve vycentrovaném sloupci. Šířku sloupce změníš jediným číslem (--content-max).
   Sekce používají místo pevného okraje 48px proměnnou var(--edge). */
:root { --content-max: 1600px; --edge: max(48px, calc((100% - var(--content-max)) / 2)); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: none; padding: 0; cursor: pointer; }
p, h1, h2, h3 { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* --- Placeholder plochy (foto/mapa) --- */
.ph-dark { background-color: #2A2723; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 16px); }
.ph-light { background-color: #E4E0D9; background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.03) 0 2px, transparent 2px 16px); }
/* Úvodní stránka má mírně tmavší odstín světlého placeholderu */
.page-home .ph-light { background-color: #DCD7CE; background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.035) 0 2px, transparent 2px 16px); }

/* --- Sticky header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow .25s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(23, 20, 15, .10);
}

/* scroll offset for sticky header */
[data-step] {
  scroll-margin-top: 140px;
}

/* --- Sticky sidebar (objednávka) --- */
.order-sidebar {
  position: sticky;
  top: 140px; /* 40 top-bar + 80 nav + 20 mezera */
}

/* --- Navigace a odkazy --- */
.nav-a { transition: color .15s ease; }
.nav-a:hover { color: #E6392B; }
.ulink { border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }

/* --- Jazyková roletka --- */
.lang-item { transition: background .12s ease, color .12s ease; }
.lang-item:hover { background: #F6F4F0; }

/* --- Úvodní stránka: rychlá poptávka + karty služeb --- */
.field input, .field select { border: none; outline: none; background: transparent; width: 100%; padding: 0; font-size: 17px; font-weight: 600; color: #17140F; appearance: none; -webkit-appearance: none; }
.field input::placeholder { color: #9A9388; font-weight: 500; }
.field { transition: background .15s ease; }
.field:hover { background: #F6F4F0; }
.card { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(23,20,15,.08); }

/* --- Záložky (vozový park, kontakty) --- */
.tab { transition: color .15s ease; }
.tab:hover { color: #17140F; }

/* --- Kontakty: odkazy, řádky dokumentů --- */
.ct-link { transition: color .15s ease; }
.ct-link:hover { color: #E6392B; }
.doc-row .doc-dl { transition: color .15s ease; color: #B5AEA3; }
.doc-row:hover .doc-dl { color: #E6392B; }
.doc-row:hover .doc-name { color: #E6392B; }

/* --- Objednávka: formulářové prvky --- */
.inp { width: 100%; height: 52px; padding: 0 16px; border: 1px solid #DDD7CD; border-radius: 12px; background: #FFFFFF; font: inherit; font-size: 16px; color: #17140F; transition: border-color .15s ease, box-shadow .15s ease; }
textarea.inp { height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.inp::placeholder { color: #A8A196; }
.inp:focus { outline: none; border-color: #E6392B; box-shadow: 0 0 0 3px rgba(230,57,43,.12); }
.chip { transition: border-color .15s ease, background .15s ease; }
.chip:hover { border-color: #B5AEA3; }
.ares-btn { transition: background .15s ease, color .15s ease; }
.ares-btn:hover { background: #17140F !important; color: #FFFFFF; }
.btn-send { transition: background .15s ease, transform .15s ease; }
.btn-send:hover { background: #C92E21 !important; transform: translateY(-1px); }

/* --- Hamburger menu --- */
.burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid #EAE6E0; background: #fff; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 100; background: #FFFFFF; flex-direction: column; overflow-y: auto; }
.mobile-menu.open { display: flex; }

/* ==========================================================================
   RESPONSIVE — tablet (≤1200px)
   ========================================================================== */
@media (max-width: 1200px) {
  :root { --edge: max(32px, calc((100% - var(--content-max)) / 2)); }
  /* fleet items */
  .fleet-item { grid-template-columns: 80px 280px minmax(0, 1fr) 200px !important; gap: 32px !important; }
  /* bank table */
  .bank-row { grid-template-columns: 1fr 60px 1fr 1.8fr 1fr 1.8fr !important; gap: 16px !important; font-size: 13px !important; }
  .bank-header { grid-template-columns: 1fr 60px 1fr 1.8fr 1fr 1.8fr !important; gap: 16px !important; }
}

/* ==========================================================================
   RESPONSIVE — tablet portrait (≤1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --edge: 28px; }

  /* Header */
  .top-bar { font-size: 12px !important; }
  .top-bar-right { display: none !important; }
  .nav-bar { height: 68px !important; }
  .nav-links { display: none !important; }
  .burger { display: flex; }
  .nav-actions .nav-order { font-size: 14px !important; height: 42px !important; padding: 0 18px !important; }

  /* Footer */
  .footer-heading { flex-direction: column !important; align-items: flex-start !important; gap: 24px !important; }
  .footer-heading h2 { font-size: 38px !important; }
  .footer-phones { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .footer-info { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
  .footer-bottom-inner { flex-direction: column !important; align-items: flex-start !important; gap: 16px !important; }

  /* Homepage */
  .hero-home { height: 520px !important; }
  .hero-text h1 { font-size: 52px !important; }
  .hero-text { top: 80px !important; max-width: 560px !important; }
  .quick-quote { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto !important; padding: 8px !important; border-radius: 18px !important; }
  .about-grid { grid-template-columns: 1fr !important; gap: 48px !important; padding-top: 140px !important; }
  .about-collage { height: 420px !important; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; row-gap: 32px !important; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .map-countries { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .map-container { height: 400px !important; }
  .cta-band { flex-direction: column !important; text-align: center !important; align-items: center !important; padding: 64px var(--edge) !important; }
  .cta-band h2 { font-size: 42px !important; }

  /* O nás */
  .hero-page { grid-template-columns: 1fr !important; gap: 40px !important; }
  .hero-page h1 { font-size: 48px !important; }
  .hero-page-img { height: 320px !important; }
  .usp-header { flex-direction: column !important; align-items: flex-start !important; gap: 16px !important; }
  .usp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .vision-grid { grid-template-columns: 1fr !important; gap: 48px !important; }
  .vision-img { height: 360px !important; }
  .story-row { grid-template-columns: 1fr !important; gap: 24px !important; }
  .gallery-grid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; grid-template-rows: 220px 220px 240px !important; }
  .closing-cta { flex-direction: column !important; align-items: flex-start !important; gap: 24px !important; }

  /* Vozový park */
  .fleet-item { grid-template-columns: 80px minmax(0, 1fr) !important; gap: 24px !important; }
  .fleet-item > div:nth-child(2) { grid-column: span 1; }
  .fleet-item > div:nth-child(3),
  .fleet-item > ul { grid-column: 1 / -1; }
  .fleet-cta { flex-direction: column !important; align-items: flex-start !important; gap: 20px !important; }

  /* Kontakty */
  .contact-panel { padding: 36px !important; }
  .contact-panel-grid { grid-template-columns: 1fr !important; gap: 36px !important; }
  .contact-tabs-panel { overflow-x: auto; }
  .bank-row, .bank-header { grid-template-columns: 1fr 50px 1fr 1.6fr .8fr 1.6fr !important; font-size: 12px !important; }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .people-header { flex-direction: column !important; align-items: flex-start !important; gap: 16px !important; }
  .people-emails { flex-direction: column !important; gap: 12px !important; }

  /* Objednávka */
  .order-head-flex { flex-direction: column !important; align-items: flex-start !important; gap: 16px !important; }
  .order-head-flex h1 { font-size: 48px !important; }
  .order-form { grid-template-columns: 1fr !important; gap: 0 !important; }
  .order-sidebar { margin-top: 0 !important; order: -1; position: static !important; }
}

/* ==========================================================================
   RESPONSIVE — mobile (≤768px)
   ========================================================================== */
@media (max-width: 768px) {
  :root { --edge: 20px; }

  /* Header */
  .top-bar { height: 36px !important; }
  .top-bar-left { gap: 14px !important; font-size: 11px !important; }
  .nav-bar { height: 60px !important; }
  .nav-logo { height: 30px !important; }

  /* Footer */
  .footer-wrap { padding: 56px var(--edge) 24px !important; }
  .footer-heading h2 { font-size: 30px !important; }
  .footer-heading p { font-size: 15px !important; }
  .footer-phones { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .footer-phones a { padding: 20px 16px !important; }
  .footer-phones span:last-child { font-size: 16px !important; }
  .footer-info { grid-template-columns: 1fr !important; gap: 28px !important; padding-top: 36px !important; }
  .footer-map { height: 160px !important; }

  /* Homepage */
  .hero-home { height: 440px !important; }
  .hero-text { top: 56px !important; max-width: 100% !important; padding-right: 20px !important; }
  .hero-text p:first-child { font-size: 14px !important; }
  .hero-text h1 { font-size: 38px !important; margin-bottom: 16px !important; }
  .hero-text > p:last-child { font-size: 16px !important; }
  .hero-dots { bottom: 80px !important; }
  .quick-quote { display: none !important; }
  .about-grid { padding-top: 80px !important; padding-bottom: 56px !important; gap: 32px !important; }
  .about-collage { height: 320px !important; }
  .about-text h2 { font-size: 36px !important; }
  .stats-wrap { padding-bottom: 72px !important; }
  .stats-grid .stat-num { font-size: 36px !important; }
  .services-wrap { padding: 72px var(--edge) !important; }
  .services-grid { grid-template-columns: 1fr !important; }
  .services-header h2 { font-size: 36px !important; }
  .map-wrap { padding: 72px var(--edge) !important; }
  .map-wrap .map-title { font-size: 36px !important; }
  .map-container { height: 300px !important; }
  .map-countries { grid-template-columns: 1fr 1fr !important; gap: 16px !important; font-size: 14px !important; }
  .cta-band { padding: 48px var(--edge) !important; }
  .cta-band h2 { font-size: 32px !important; }
  .cta-band a { width: 100%; justify-content: center; }

  /* O nás */
  .hero-page { padding: 40px var(--edge) 56px !important; gap: 28px !important; }
  .hero-page h1 { font-size: 38px !important; }
  .hero-page-img { height: 260px !important; }
  .usp-wrap { padding-bottom: 72px !important; }
  .usp-grid { grid-template-columns: 1fr !important; }
  .usp-grid h3 { font-size: 18px !important; }
  .vision-wrap { padding-bottom: 72px !important; }
  .vision-img { height: 280px !important; }
  .vision-quote { font-size: 24px !important; }
  .story-wrap { padding-bottom: 72px !important; }
  .story-row h2 { font-size: 24px !important; }
  .gallery-wrap { padding-bottom: 72px !important; }
  .gallery-grid { grid-template-columns: 1fr 1fr !important; grid-template-rows: 180px 180px 180px !important; }
  .gallery-grid > div:first-child { grid-column: span 2 !important; grid-row: span 1 !important; }
  .closing-wrap { padding-bottom: 72px !important; }

  /* Vozový park */
  .fleet-item { grid-template-columns: 1fr !important; padding: 28px 0 !important; }
  .fleet-item > p:first-child { font-size: 40px !important; }
  .fleet-item h3 { font-size: 22px !important; }

  /* Kontakty */
  .contact-head h1 { font-size: 38px !important; }
  .contact-head-flex { flex-direction: column !important; align-items: flex-start !important; gap: 16px !important; }
  .contact-panel { padding: 24px !important; border-radius: 20px !important; }
  .firma-grid { grid-template-columns: 1fr 1fr !important; }
  .bank-row, .bank-header { display: flex !important; flex-wrap: wrap !important; gap: 8px 16px !important; }
  .bank-row span, .bank-header span { min-width: 0; }
  .docs-grid { grid-template-columns: 1fr !important; }
  .people-grid { grid-template-columns: 1fr !important; row-gap: 36px !important; }

  /* Objednávka */
  .order-head-flex h1 { font-size: 38px !important; }
  .form-fields { grid-template-columns: 1fr !important; }
  .form-fields .span-2 { grid-column: span 1 !important; }
  .order-submit-bar { flex-direction: column !important; align-items: stretch !important; gap: 20px !important; }
  .order-submit-bar .btn-send { width: 100%; justify-content: center; }
}

/* ==========================================================================
   RESPONSIVE — small mobile (≤480px)
   ========================================================================== */
@media (max-width: 480px) {
  :root { --edge: 16px; }
  .hero-home { height: 380px !important; }
  .hero-text h1 { font-size: 30px !important; }
  .hero-text > p:last-child { display: none !important; }
  .about-text h2 { font-size: 30px !important; }
  .stats-grid { grid-template-columns: 1fr !important; }
  .stats-grid .stat-num { font-size: 32px !important; }
  .footer-phones { grid-template-columns: 1fr !important; }
  .footer-heading h2 { font-size: 24px !important; }
  .map-countries { grid-template-columns: 1fr !important; }
  .firma-grid { grid-template-columns: 1fr !important; }
}

/* ARES spinner */
@keyframes ares-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Datepicker
   ========================================================================== */
.dp-popup {
  position: absolute; z-index: 9000;
  width: 310px; background: #fff; border-radius: 16px;
  box-shadow: 0 12px 48px rgba(23,20,15,.16), 0 0 0 1px rgba(23,20,15,.06);
  padding: 20px; font-family: 'Figtree', system-ui, sans-serif;
  animation: dp-in .2s ease;
}
@keyframes dp-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.dp-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dp-title { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; color: #17140F; }
.dp-arrow { width: 32px; height: 32px; border-radius: 8px; border: none; background: #F5F3F0; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s; color: #4F4940; }
.dp-arrow:hover { background: #EBE8E3; }

.dp-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; margin-bottom: 4px; }
.dp-dn { font-size: 12px; font-weight: 700; color: #8C857B; padding: 4px 0; }

.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-cell { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; border-radius: 10px; border: none; background: none; cursor: pointer; color: #17140F; transition: background .12s, color .12s; }
.dp-empty { cursor: default; }
.dp-day:hover:not(:disabled) { background: #F5F3F0; }
.dp-today { font-weight: 800; color: #E6392B; }
.dp-sel { background: #E6392B !important; color: #fff !important; font-weight: 800; }
.dp-past { color: #C8C3BA; cursor: not-allowed; }
.dp-past:hover { background: none; }

.dp-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid #F0EDE8; text-align: center; }
.dp-today-btn { font-size: 13px; font-weight: 700; color: #E6392B; background: none; border: none; cursor: pointer; padding: 6px 16px; border-radius: 8px; transition: background .15s; }
.dp-today-btn:hover { background: rgba(230,57,43,.06); }

@media (max-width: 480px) {
  .dp-popup { width: calc(100vw - 24px); left: 12px !important; right: 12px; }
}

/* ==========================================================================
   Cookie Consent Banner + Modal
   ========================================================================== */
/* Banner overlay (dimmed background) */
.cookie-banner-overlay {
  position: fixed; inset: 0; z-index: 9997;
  background: rgba(0,0,0,.65); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.cookie-banner-overlay.visible { opacity: 1; pointer-events: auto; }

.cookie-banner {
  position: fixed; bottom: 28px; left: 50%; z-index: 9998;
  transform: translateX(-50%) translateY(40px); opacity: 0;
  width: calc(100% - 48px); max-width: 860px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 16px 56px rgba(23,20,15,.18);
  transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .35s ease;
  pointer-events: none;
  font-family: 'Figtree', system-ui, sans-serif; color: #17140F;
}
.cookie-banner.visible { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 26px 32px;
}
.cookie-banner-text { flex: 1 1 0; min-width: 0; }
.cookie-banner-btns { display: flex; gap: 10px; flex-shrink: 0; }

.cookie-btn {
  font-size: 14px; font-weight: 700; border-radius: 8px; padding: 10px 20px;
  cursor: pointer; border: none; transition: background .15s, color .15s;
  white-space: nowrap;
}
.cookie-btn--primary { background: #E6392B; color: #fff; }
.cookie-btn--primary:hover { background: #c72e22; }
.cookie-btn--outline { background: transparent; color: #4F4940; border: 1.5px solid #D6D1CA; }
.cookie-btn--outline:hover { background: #F5F3F0; }

/* Overlay */
.cookie-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,.35); opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.cookie-overlay.visible { opacity: 1; pointer-events: auto; }

/* Modal */
.cookie-modal {
  position: fixed; top: 50%; left: 50%; z-index: 9999;
  transform: translate(-50%, -50%) scale(.96); opacity: 0; pointer-events: none;
  width: 540px; max-width: calc(100vw - 32px); max-height: calc(100vh - 64px);
  background: #fff; border-radius: 16px;
  box-shadow: 0 24px 64px rgba(23,20,15,.18);
  display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .25s ease;
  font-family: 'Figtree', system-ui, sans-serif; color: #17140F;
}
.cookie-modal.visible { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }

.cookie-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px 0;
}
.cookie-modal-body { padding: 20px 28px; overflow-y: auto; }
.cookie-modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 28px 24px; border-top: 1px solid #E8E5E0;
}

/* Category rows */
.cookie-cat { padding: 16px 0; border-bottom: 1px solid #F0EDE8; }
.cookie-cat:last-child { border-bottom: none; }
.cookie-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cookie-cat-name { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.cookie-cat-desc { font-size: 13px; color: #8C857B; line-height: 1.45; }
.cookie-always { font-size: 12px; font-weight: 700; color: #6E675D; background: #F0EDE8; padding: 4px 10px; border-radius: 6px; flex-shrink: 0; }

/* Toggle switch */
.cookie-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-slider {
  position: absolute; inset: 0; background: #D6D1CA; border-radius: 24px;
  cursor: pointer; transition: background .2s;
}
.cookie-slider::before {
  content: ''; position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px; background: #fff; border-radius: 50%;
  transition: transform .2s;
}
.cookie-switch input:checked + .cookie-slider { background: #E6392B; }
.cookie-switch input:checked + .cookie-slider::before { transform: translateX(20px); }

/* Mobile tweaks */
@media (max-width: 768px) {
  .cookie-banner { bottom: 12px; width: calc(100% - 24px); border-radius: 14px; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 16px; padding: 22px 20px; }
  .cookie-banner-btns { flex-direction: column; }
  .cookie-banner-btns .cookie-btn { width: 100%; }
  .cookie-modal { width: calc(100vw - 16px); max-height: calc(100vh - 32px); border-radius: 12px; }
}

/* Cookie detail table in modal */
.cookie-detail-table { width: 100%; margin-top: 10px; font-size: 12px; border-collapse: collapse; }
.cookie-detail-table th { text-align: left; font-weight: 600; color: #6E675D; padding: 5px 10px 5px 0; border-bottom: 1px solid #F0EDE8; }
.cookie-detail-table td { color: #8C857B; padding: 5px 10px 5px 0; border-bottom: 1px solid #F0EDE8; }
.cookie-detail-table tr:last-child td, .cookie-detail-table tr:last-child th { border-bottom: none; }
.cookie-cat-toggle { font-size: 12px; color: #E6392B; font-weight: 600; cursor: pointer; background: none; border: none; padding: 4px 0 0; }
.cookie-cat-toggle:hover { text-decoration: underline; }