/* ============================================================
   Autoškola Nečas — sdílené styly
   ============================================================ */

/* ── Custom properties ── */
:root {
  --red: #F5B800;
  --red-2: #FFCC00;
  --red-soft: rgba(245, 184, 0, .14);
  --ink: #0D1B3E;
  --ink-2: #132248;
  --ink-3: #1B2D5C;
  --paper: #F5F4F2;
  --paper-2: #ECEAE5;
  --line: rgba(15, 17, 23, .10);
  --line-dark: rgba(255, 255, 255, .10);
  --muted: rgba(15, 17, 23, .62);
  --muted-dark: rgba(255, 255, 255, .62);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --max: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --f-display: 'Barlow Condensed', system-ui, sans-serif;
  --f-text: 'DM Sans', system-ui, sans-serif;
  --nav-h: 63px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box }
html, body { margin: 0; padding: 0 }
html { background: #080B12 }
body { overflow-x: clip }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h) }
body {
  font-family: var(--f-text);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block }
a { color: inherit }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 0.96;
  margin: 0;
  text-transform: uppercase;
}
h1 { font-size: clamp(56px, 9vw, 128px); letter-spacing: -0.02em; line-height: 1 }
h2 { font-size: clamp(40px, 5.5vw, 76px); letter-spacing: -0.015em; line-height: 1.08 }
h3 { font-size: 24px; line-height: 1.1; letter-spacing: 0; text-transform: none; font-weight: 700 }
h4 { font-size: 20px; line-height: 1.15; text-transform: none; font-weight: 700 }
p { margin: 0 0 1em }

.accent { color: var(--red) }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}
.dark .eyebrow,
.hero .eyebrow,
.stats .eyebrow,
.cta-strip .eyebrow,
.faq .eyebrow,
.page-hero .eyebrow {
  color: #FFD94A;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--f-text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn svg { width: 16px; height: 16px }
.btn--sm { padding: 10px 16px; font-size: 13px }
.btn--primary {
  background: var(--red);
  color: var(--ink);
  box-shadow: 0 8px 22px -8px rgba(245, 184, 0, .45);
}
.btn--primary:hover {
  background: #D9A300;
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -10px rgba(245, 184, 0, .65);
}
.btn--ghost-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .30) }
.btn--ghost-dark:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5) }
.btn--ghost-light { background: transparent; color: var(--ink); border-color: rgba(15, 17, 23, .20) }
.btn--ghost-light:hover { background: rgba(15, 17, 23, .05); border-color: var(--ink) }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease, background .3s ease, color .3s ease;
}
.nav.is-scrolled {
  box-shadow: 0 8px 28px -16px rgba(15, 17, 23, .18);
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, .95);
}
.nav.is-solid {
  background: rgba(245, 244, 242, 1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* Průhledné menu nad hero sekcí */
.nav.is-transparent {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-bottom-color: transparent;
}
.nav.is-transparent .logo { color: #fff }
.nav.is-transparent .logo .small { color: rgba(255,255,255,.55) }
.nav.is-transparent .logo .dot { color: var(--red) }
.nav.is-transparent .logo img { filter: brightness(0) invert(1) }
.nav.is-transparent .nav__links a { color: rgba(255,255,255,.85) }
.nav.is-transparent .nav__links a:hover,
.nav.is-transparent .nav__links a.active { background: rgba(255,255,255,.12); color: #fff }
.nav.is-transparent .nav__drop > a svg { opacity: .6 }
/* Dropdown má vlastní bílé pozadí — zachovat tmavý text */
.nav.is-transparent .nav__drop-menu a { color: var(--ink) !important; background: none !important }
.nav.is-transparent .nav__drop-menu a:hover { background: var(--paper) !important; color: var(--ink) !important }
.nav.is-transparent .nav__phone { color: rgba(255,255,255,.85) }
.nav.is-transparent .nav__phone:hover { background: rgba(255,255,255,.10) }
.nav.is-transparent .nav__burger svg { stroke: #fff }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.logo .dot { color: var(--red) }
.logo .small {
  font-family: var(--f-text);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-left: 8px;
}
.nav__links { display: flex; align-items: center; gap: 2px }
.nav__links a {
  text-decoration: none;
  color: var(--ink);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}
.nav__links a:hover,
.nav__links a.active { background: rgba(15, 17, 23, .06) }
.nav__drop { position: relative }
.nav__drop > a { display: flex; align-items: center; gap: 4px }
.nav__drop > a svg { width: 14px; height: 14px; flex-shrink: 0; opacity: .5; transition: transform .15s ease }
.nav__drop:hover > a svg { transform: rotate(180deg) }
.nav__drop::after {
  content: ''; position: absolute; bottom: -8px; left: 0; width: 100%; height: 8px;
}
.nav__drop-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-4px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 6px; min-width: 260px;
  box-shadow: 0 8px 28px rgba(15,17,23,.13);
  opacity: 0; pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 100;
}
.nav__drop:hover .nav__drop-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0) }
.nav__drop-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-sm);
  font-size: 13px; color: var(--ink); text-decoration: none;
  transition: background .12s ease; background: none !important;
}
.nav__drop-menu a:hover { background: var(--paper) !important }
.nav__drop-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--paper); display: flex; align-items: center; justify-content: center; flex-shrink: 0 }
.nav__drop-icon svg { width: 16px; height: 16px; color: var(--ink) }
.nav__drop-label { display: flex; flex-direction: column; gap: 1px }
.nav__drop-label span { font-weight: 600; font-size: 13px }
.nav__drop-label small { font-size: 11px; color: var(--muted); font-weight: 400 }
.nav__cta { display: flex; align-items: center; gap: 10px }
.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
}
.nav__phone svg { width: 14px; height: 14px; color: var(--red) }
.nav__phone:hover { background: rgba(15, 17, 23, .06) }
.nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}
.nav__burger svg { width: 20px; height: 20px }
.nav__drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  background: rgba(15, 17, 23, .55);
  backdrop-filter: blur(6px);
  z-index: 60;
  display: none;
  padding: 0;
  flex-direction: column;
  justify-content: flex-end;
}
body.drawer-open { overflow: hidden; position: fixed; width: 100% }
.nav__drawer.is-open { display: flex; flex-direction: column }
.nav__drawer-card {
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav__drawer-card a {
  text-decoration: none;
  color: var(--ink);
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav__drawer-card a:hover { background: var(--paper) }
.nav__drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1a2540;
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav__drawer-close svg { stroke: #fff }
@media (max-width: 920px) {
  .nav__links, .nav__phone { display: none }
  .nav__burger { display: inline-flex }
}

/* ── Section (generic) ── */
.section { padding: clamp(72px, 10vw, 130px) 0 }
.section.dark { background: var(--ink); color: #fff }
.section.dark h1, .section.dark h2, .section.dark h3, .section.dark h4 { color: #fff }
.section.dark p { color: rgba(255, 255, 255, .7) }
.section__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.section__head p { color: var(--muted); font-size: 17px; max-width: 48ch; margin: 0 }
.section.dark .section__head p { color: rgba(255, 255, 255, .7) }
@media (max-width: 780px) {
  .section__head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px }
}

/* ── Footer ── */
.footer { background: #080A0F; color: #fff; padding: 72px 0 32px; position: relative }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer__brand .logo { color: #fff }
.footer__brand .logo img { filter: brightness(0) invert(1) }
.footer__brand p { color: rgba(255, 255, 255, .55); font-size: 14px; margin: 18px 0 0; max-width: 34ch }
.footer h5 {
  font-family: var(--f-display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .5);
  font-weight: 600;
  margin-bottom: 18px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px }
.footer ul a { color: rgba(255, 255, 255, .85); text-decoration: none; font-size: 15px; transition: color .15s ease }
.footer ul a:hover { color: var(--red-2) }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
}
@media (max-width: 880px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px }
  .footer__brand { grid-column: span 2 }
}
@media (max-width: 560px) {
  .footer__inner { grid-template-columns: 1fr }
  .footer__brand { grid-column: span 1 }
}

/* ── Scroll animations ── */
[data-anim] { opacity: 0; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1) }
[data-anim="up"] { transform: translateY(24px) }
[data-anim="fade"] { transform: none }
[data-anim].in { opacity: 1; transform: none }
[data-delay="1"] { transition-delay: .08s }
[data-delay="2"] { transition-delay: .16s }
[data-delay="3"] { transition-delay: .24s }
[data-delay="4"] { transition-delay: .32s }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important }
  [data-anim] { opacity: 1 !important; transform: none !important }
}
