/* ============================================================
   Autoškola Mári – Custom CSS
   Vše ostatní řeší Tailwind. Tady jen to, co Tailwind nemá.
   ============================================================ */

::selection { background: #7F1313; color: #fff; }

/* ── Caption helper (monospace eyebrow) ─────────────────── */
.caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── Marquee animace ────────────────────────────────────── */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track {
  animation: marquee 36s linear infinite;
  display: flex;
  gap: 48px;
  width: max-content;
  white-space: nowrap;
}
.marquee-item::after {
  content: '/';
  color: rgba(255,255,255,0.4);
  margin-left: 48px;
}

/* ── Pulse dot ──────────────────────────────────────────── */
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.pulse-dot { animation: pulse-dot 2s ease-in-out infinite; }

/* ── Fade in on scroll ──────────────────────────────────── */
.fade {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade.in {
  opacity: 1;
  transform: translateY(0);
}
.fade.delay-1.in { transition-delay: 0.1s; }
.fade.delay-2.in { transition-delay: 0.2s; }

/* ── Sticky nav backdrop blur ───────────────────────────── */
.nav-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ── H1 mark (akcent slovo v headline) ──────────────────── */
.hero-mark {
  font-weight: 500;
  color: #7F1313;
}

/* ── Course card — hover subtle ─────────────────────────── */
.course-card {
  transition: box-shadow 0.22s, border-color 0.22s, transform 0.22s;
  border-right: 1px solid #E5E2DA;
}
.course-card:hover {
  background: #fff;
  box-shadow: 0 6px 28px rgba(15,26,34,0.09);
  border-color: #BAB5A8;
  transform: translateY(-3px);
  position: relative;
  z-index: 2;
}
.course-card:hover .course-icon {
  background: #7F1313;
  border-color: #7F1313;
}
.course-card:hover .course-icon i { color: #fff; }
.course-card:hover .course-cta {
  background: #7F1313;
  color: #fff;
}

/* ── FAQ accordion ──────────────────────────────────────── */
.faq-item .faq-a { display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-toggle {
  background: #7F1313;
  border-color: #7F1313;
  color: #fff;
}
.faq-item.open .faq-toggle i { transform: rotate(45deg); }
.faq-toggle { transition: background 0.2s, color 0.2s; }
.faq-toggle i { transition: transform 0.2s; }

/* ── Quote mark editorial ───────────────────────────────── */
.quote-mark::before {
  content: '"';
  font-family: 'Geist', sans-serif;
  font-size: 56px;
  line-height: 0.6;
  color: #7F1313;
  font-weight: 300;
  display: block;
  margin-bottom: 8px;
}

/* ── Hero feature counter ───────────────────────────────── */
.hero-feature-num {
  font-family: 'Geist', sans-serif;
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

/* ── Hero video ──────────────────────────────────────────── */
.hero-video {
  opacity: 1;
  transition: opacity 0.6s ease;
}
.hero-video[data-hidden="true"] {
  display: none;
}

/* ── Bonus chip tooltip (mobile tap show) ───────────────── */
.bonus-chip.is-open .bonus-tooltip {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}
.bonus-chip:focus { outline: none; }
.bonus-chip:focus-visible { outline: 2px solid #7F1313; outline-offset: 2px; border-radius: 9999px; }

/* Tooltip se nesmí ořezávat na okraji obrazovky — pravá karta */
@media (max-width: 768px) {
  .bonus-tooltip { white-space: normal !important; max-width: 280px; }
}

/* ── Skupina button (kontakt form step 1) ───────────────── */
.skupina-btn { cursor: pointer; background: #fff; }
.skupina-btn.is-selected { background: rgba(127,19,19,0.04); border-color: #7F1313 !important; }
.skupina-btn.is-selected .skupina-arrow { transform: rotate(180deg); }

/* ── Kurzy panel ─────────────────────────────────────────── */
.kurzy-panel { transition: none; }
.kurz-chip { cursor: pointer; border-radius: 2px; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.course-detail-card.is-open {
  border-color: #7F1313;
}
.course-detail-card.is-open .course-summary {
  background: rgba(255,255,255,0.5);
}
.course-toggle-icon {
  transition: transform 0.25s ease;
}

/* ── Mobile nav (visible state) ─────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(360px, 100%);
  background: #FAFAF7;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  padding: 24px 28px;
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(0,0,0,0.08);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 34, 0.5);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.mobile-overlay.open { opacity: 1; visibility: visible; }

/* Hamburger ikona */
.hamburger {
  width: 28px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: #0F1A22;
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ── Page header (sub-stránky) ──────────────────────────── */
.page-header {
  background: #FAFAF7;
  border-bottom: 1px solid #E5E2DA;
  padding: 72px 0 56px;
}
.page-header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}
.page-header-mascot {
  width: 180px;
  flex-shrink: 0;
  align-self: end;
  margin-bottom: -56px; /* Přelít přes spodní border */
  position: relative;
  z-index: 2;
}
.page-header-mascot img {
  width: 120%;
max-width: none;
  height: auto;
  display: block;
padding-bottom: 65px;
filter: drop-shadow(3px 3px 2px rgba(0,0,0,0.3));
}
.shadow-lehce{
filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.3));
}
.zmena_pozice{
width:10rem; position:absolute; top:222px; left: 335px;
}
/* Tablet (formulář je pod textem): maskot v normálním toku, ne přes formulář */
@media (max-width: 1023px) {
  .zmena_pozice { position: static; width: 8rem; margin-top: 2rem; }
}
@media (max-width: 640px) {
  .page-header-inner { grid-template-columns: 1fr; }
  .page-header-mascot { display: none; }
}
.page-header h1 {
  font-family: 'Geist', sans-serif;
  font-weight: 300;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 16px 0 24px;
}
.page-header h1 strong {
  font-weight: 500;
  color: #7F1313;
}
.page-header p {
  font-size: 17px;
  color: #3D4754;
  max-width: 560px;
  line-height: 1.6;
}

/* ── Tabs (ceník, kurzy) ────────────────────────────────── */
.tab-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 24px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #3D4754;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.tab-btn:hover { color: #0F1A22; }
.tab-btn.active {
  color: #7F1313;
  border-bottom-color: #7F1313;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Price table — editorial style ──────────────────────── */
.price-table { border-top: 1px solid #0F1A22; }
.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid #E5E2DA;
  align-items: baseline;
}
.price-row.header {
  border-bottom: 1px solid #BAB5A8;
  padding-top: 32px;
}
.price-row.header span:first-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3D4754;
  font-weight: 500;
}
.pr-name {
  font-family: 'Geist', sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #0F1A22;
}
.pr-desc {
  font-size: 13px;
  color: #6F7A86;
  margin-top: 4px;
  line-height: 1.5;
}
.pr-price {
  font-family: 'Geist', sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #7F1313;
  white-space: nowrap;
}

/* ── Form fields ────────────────────────────────────────── */
.form-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #BAB5A8;
  color: #0F1A22;
  padding: 8px 0;
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s;
}
.form-input:focus {
  outline: 0;
  border-bottom-color: #7F1313;
}
.form-input::placeholder { color: #6F7A86; }

/* ── Step indicator (přihláška) ─────────────────────────── */
.step-indicators {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
}
.step-dot {
  width: 32px;
  height: 32px;
  border: 1px solid #BAB5A8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: #6F7A86;
  background: transparent;
  flex-shrink: 0;
  transition: all 0.25s;
}
.step-dot.active {
  border-color: #7F1313;
  background: #7F1313;
  color: #fff;
}
.step-dot.done {
  border-color: #7F1313;
  background: #7F1313;
  color: #fff;
}
.step-dot.done::after {
  content: '✓';
}
.step-dot.done span { display: none; }
.step-line {
  flex: 1;
  height: 1px;
  background: #BAB5A8;
}
.form-step { display: none; }
.form-step.active { display: block; }

/* ── Course type radio grid ─────────────────────────────── */
.ct-option { position: relative; }
.ct-option input { position: absolute; opacity: 0; pointer-events: none; }
.ct-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid #E5E2DA;
  cursor: pointer;
  transition: all 0.2s;
  height: 100%;
}
.ct-label:hover { border-color: #7F1313; }
.ct-option input:checked + .ct-label {
  border-color: #7F1313;
  background: rgba(127, 19, 19, 0.04);
}
.ct-icon i { font-size: 22px; color: #7F1313; }
.ct-title {
  font-family: 'Geist', sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #0F1A22;
  margin-top: 4px;
}
.ct-sub {
  font-size: 13px;
  color: #6F7A86;
  line-height: 1.4;
}
.ct-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7F1313;
  margin-top: 8px;
  font-weight: 500;
}

/* Recenze — jemné prolnutí při přepnutí */
.review-slide.is-active { animation: reviewIn .5s ease; }
@keyframes reviewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .review-slide.is-active { animation: none; } }

/* Souhlas GDPR — zvýraznění, když chybí */
.gdpr-box { padding: 12px 14px; margin-left: -14px; margin-right: -14px; border: 1px solid transparent; border-radius: 2px; transition: border-color .2s, background-color .2s; }
.gdpr-box.is-invalid { border-color: rgba(127, 19, 19, .45); background: rgba(127, 19, 19, .05); }
.gdpr-box.is-invalid input[type="checkbox"] { outline: 2px solid #7F1313; outline-offset: 2px; }
.gdpr-box.is-shaking { animation: gdprShake .4s ease; }
@keyframes gdprShake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .gdpr-box.is-shaking { animation: none; } }

/* Recenze — velké logo Google v pozadí, jen jemně */
.google-bg-logo { position: absolute; right: -4rem; top: 50%; width: 520px; height: 520px; transform: translateY(-50%) rotate(-8deg); opacity: .07; pointer-events: none; z-index: 0; }
@media (max-width: 1023px) { .google-bg-logo { width: 340px; height: 340px; right: -6rem; opacity: .06; } }
@media (max-width: 640px)  { .google-bg-logo { width: 240px; height: 240px; right: -5rem; top: 4rem; transform: rotate(-8deg); } }

/* Maskot v úvodu na mobilu — na užších telefonech menší, na nejužších skrytý (jinak by zakryl text) */
@media (max-width: 374px) { .hero-mascot-mobile { width: 64px !important; } }
/* Hodně úzké displeje (i telefon se zvětšeným zobrazením): maskot nad řádek „autoškola…“, vpravo */
@media (max-width: 359px) { .hero-mascot-mobile { position: static !important; display: block !important; width: 64px !important; margin: -1rem 0 .5rem auto; } }

/* Úvod — fotka auta v pozadí, dokud není video (jemně, ať nepřebíjí text) */
.hero-photo { opacity: .22; object-position: 50% 60%; filter: saturate(.85); }
@media (max-width: 1023px) { .hero-photo { opacity: .18; object-position: 42% 50%; } }
