/* ============================================================
   D&S Tactics — design system
   Dark tactical theme derived from logo: olive drab, sand,
   Czech tricolor accents. Headings: Barlow Condensed. Body: Inter.
   ============================================================ */

:root {
  --bg: #12140d;
  --bg-2: #191c12;
  --bg-3: #20241680;
  --panel: #1d2114;
  --panel-solid: #1d2114;
  --line: #3a3f28;
  --line-soft: #2b2f1d;
  --olive: #767a50;
  --olive-bright: #9ba06b;
  --sand: #e9e5d5;
  --sand-dim: #b5b1a0;
  --sand-faint: #8a877a;
  --red: #c8322f;
  --blue: #33549f;
  --white: #ffffff;
  --accent: #d9b23c; /* brass */
  --radius: 2px;
  --header-h: 72px;
  --container: 1200px;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  background: var(--bg);
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--olive-bright); text-decoration: none; }
a:hover { color: var(--sand); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.08;
  color: var(--white);
}

h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }

.kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 42px; height: 2px; background: var(--accent); flex: none; }

.lead { font-size: 1.13rem; color: var(--sand-dim); max-width: 62ch; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(14, 16, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .container { display: flex; align-items: center; gap: 28px; width: 100%; }

.brand { display: flex; align-items: center; gap: 13px; color: var(--white); }
.brand img { width: 46px; height: 46px; }
.brand b {
  font-family: var(--font-display);
  font-size: 1.32rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  line-height: 1;
}
.brand small {
  display: block; font-family: var(--font-body); font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.3em; color: var(--olive-bright); text-transform: uppercase; margin-top: 4px;
}

.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a {
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--sand-dim);
}
.nav a:hover { color: var(--white); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 13px 26px; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: all .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #e04340; color: var(--white); transform: translateY(-1px); }
.btn-ghost { border-color: var(--olive); color: var(--sand); background: transparent; }
.btn-ghost:hover { border-color: var(--sand); color: var(--white); background: rgba(255,255,255,0.04); }
.btn-lg { padding: 16px 34px; font-size: 1.15rem; }

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 60px) 0 72px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(18,20,13,0.55) 0%, rgba(18,20,13,0.15) 34%, rgba(18,20,13,0.82) 78%, var(--bg) 100%);
}
.hero-inner { max-width: 780px; }
.hero h1 { text-shadow: 0 2px 30px rgba(0,0,0,.55); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin: 22px 0 34px; color: #d6d2c2; text-shadow: 0 1px 14px rgba(0,0,0,.5); }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.trustbar {
  margin-top: 54px; padding-top: 26px;
  border-top: 1px solid rgba(233,229,213,0.22);
  display: grid; grid-template-columns: repeat(4, auto); gap: 18px 48px;
}
.trustbar div b {
  display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700;
  color: var(--white); line-height: 1.1; letter-spacing: .03em;
}
.trustbar div span { font-size: 0.82rem; color: var(--sand-dim); letter-spacing: .04em; }

/* ---------- sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head .lead { margin-top: 16px; }

/* hazard stripe divider */
.stripe {
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 16px, transparent 16px 32px);
  opacity: .22;
}

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pillar {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 30px 26px; position: relative; overflow: hidden;
}
.pillar::before {
  content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 3px; background: var(--red);
}
.pillar h3 { font-size: 1.3rem; margin: 14px 0 10px; }
.pillar p { font-size: 0.94rem; color: var(--sand-dim); }
.pillar .num {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--olive-bright); letter-spacing: .22em;
}

/* ---------- course cards ---------- */
.courses { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.course {
  grid-column: span 2;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.course:hover { border-color: var(--olive); transform: translateY(-4px); }
.course:nth-child(1), .course:nth-child(2) { grid-column: span 3; }
.course-media { position: relative; aspect-ratio: 3 / 1.75; overflow: hidden; }
.course:nth-child(1) .course-media, .course:nth-child(2) .course-media { aspect-ratio: 3 / 1.55; }
.course-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.course:hover .course-media img { transform: scale(1.045); }
.course-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(18,20,13,0.88) 100%);
}
.course-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: rgba(14,16,10,0.78); color: var(--accent);
  border: 1px solid rgba(217,178,60,0.35);
  padding: 5px 12px; border-radius: var(--radius);
}
.course-title { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 2; }
.course-title h3 { text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.course-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.course-body p { font-size: 0.95rem; color: var(--sand-dim); flex: 1; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 0.76rem; font-weight: 600; letter-spacing: .05em;
  color: var(--olive-bright); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}
.course-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--white); letter-spacing: .04em; }
.price small { font-size: 0.8rem; color: var(--sand-faint); font-family: var(--font-body); font-weight: 500; letter-spacing: 0; text-transform: none; }
.arrow-link {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 8px;
}
.arrow-link::after { content: "→"; transition: transform .18s ease; }
.arrow-link:hover::after { transform: translateX(5px); }

/* ---------- training system ---------- */
.modules { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; counter-reset: mod; }
.module {
  background: var(--panel); border: 1px solid var(--line-soft); border-left: 3px solid var(--olive);
  padding: 20px 22px; border-radius: var(--radius); position: relative;
}
.module.adv { border-left-color: var(--red); }
.module h3 { font-size: 1.15rem; display: flex; gap: 12px; align-items: baseline; }
.module h3 span.en { color: var(--olive-bright); font-size: 0.95rem; font-weight: 600; }
.module p { font-size: 0.92rem; color: var(--sand-dim); margin-top: 8px; }
.module .lvl {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
  letter-spacing: .2em; color: var(--sand-faint); text-transform: uppercase;
}

/* ---------- schedule table ---------- */
.schedule-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }
table.schedule { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--panel); }
table.schedule th, table.schedule td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line-soft); }
table.schedule th {
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--olive-bright);
  background: var(--bg-2);
}
table.schedule td { font-size: 0.95rem; color: var(--sand); }
table.schedule td .muted { color: var(--sand-faint); font-size: 0.85rem; }
table.schedule tr:last-child td { border-bottom: none; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 9px; }

/* ---------- locations ---------- */
.locations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.location {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px;
}
.location .code {
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; letter-spacing: .22em;
  color: var(--accent);
}
.location h3 { font-size: 1.22rem; margin: 8px 0 10px; }
.location p { font-size: 0.9rem; color: var(--sand-dim); }
.location .use { margin-top: 12px; font-size: 0.8rem; color: var(--olive-bright); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }

/* ---------- story / about ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); border: 1px solid var(--line); }
.split-media::after {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.split .lead { margin: 18px 0; }
.checklist { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; color: var(--sand-dim); font-size: 0.98rem; }
.checklist li::before {
  content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(118,122,80,0.2); color: var(--olive-bright);
  font-size: 0.8rem; font-weight: 700; margin-top: 2px;
}

/* ---------- B2B band ---------- */
.band {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  display: grid; grid-template-columns: 1.2fr 1fr; min-height: 380px;
}
.band-content { padding: 54px; background: var(--panel); display: flex; flex-direction: column; justify-content: center; }
.band-media { position: relative; }
.band-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- voucher ---------- */
.voucher {
  border: 1px dashed var(--accent); border-radius: var(--radius);
  padding: 44px 48px; display: flex; align-items: center; gap: 40px; justify-content: space-between;
  background: linear-gradient(120deg, rgba(217,178,60,0.07), transparent 55%);
  flex-wrap: wrap;
}
.voucher h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.voucher p { color: var(--sand-dim); margin-top: 10px; max-width: 52ch; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--panel); margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 24px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--sand);
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); transition: transform .2s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--sand-dim); font-size: 0.97rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-list { list-style: none; display: grid; gap: 16px; margin-top: 26px; }
.contact-list li { display: flex; gap: 16px; align-items: baseline; }
.contact-list .lbl {
  flex: none; width: 130px; font-family: var(--font-display); font-weight: 600;
  font-size: 0.88rem; letter-spacing: .18em; text-transform: uppercase; color: var(--olive-bright);
}
.contact-list a, .contact-list span { color: var(--sand); font-size: 1rem; }

.contact-form { display: grid; gap: 14px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--sand); font-family: var(--font-body); font-size: 0.97rem; padding: 14px 16px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--olive-bright); }
.contact-form label { font-size: 0.85rem; color: var(--sand-dim); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); background: #0e100a; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.site-footer h4 {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--olive-bright); margin-bottom: 16px;
}
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a, .site-footer p { color: var(--sand-dim); font-size: 0.92rem; }
.site-footer a:hover { color: var(--sand); }
.footer-bottom {
  border-top: 1px solid var(--line-soft); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--sand-faint); font-size: 0.82rem;
}

/* ---------- course detail pages ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + 80px) 0 70px; overflow: hidden; }
.page-hero .hero-bg img { object-position: center 40%; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(18,20,13,0.62) 0%, rgba(18,20,13,0.4) 40%, var(--bg) 96%);
}
.breadcrumbs { font-size: 0.85rem; color: var(--sand-dim); margin-bottom: 22px; }
.breadcrumbs a { color: var(--sand-dim); }
.breadcrumbs a:hover { color: var(--sand); }

.pricing-table th:last-child, .pricing-table td:last-child { text-align: right; white-space: nowrap; }

.notice {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--panel); border-radius: var(--radius);
  padding: 18px 22px; font-size: 0.95rem; color: var(--sand-dim); margin: 26px 0;
}

/* content prose on detail pages */
.prose { max-width: 780px; }
.prose h2 { margin: 48px 0 18px; }
.prose h3 { margin: 34px 0 12px; }
.prose p { color: var(--sand-dim); margin-bottom: 14px; }
.prose ul { margin: 0 0 16px 20px; color: var(--sand-dim); }
.prose ul li { margin-bottom: 8px; }

/* ---------- misc ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.center { text-align: center; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #14160f; padding: 10px 18px; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

::selection { background: var(--red); color: var(--white); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .courses { grid-template-columns: 1fr 1fr; }
  .course, .course:nth-child(1), .course:nth-child(2) { grid-column: span 1; }
  .locations { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .band { grid-template-columns: 1fr; }
  .band-media { min-height: 260px; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(14,16,10,0.97); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 22px 24px 26px; gap: 18px;
    transform: translateY(-130%); transition: transform .25s ease; z-index: 90;
  }
  .nav.open { transform: translateY(0); }
  .nav-toggle {
    display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--line);
    border-radius: var(--radius); color: var(--sand); font-size: 1.4rem; line-height: 1;
    padding: 8px 12px; cursor: pointer;
  }
  .nav .btn { width: 100%; }
  .hero { min-height: 86vh; }
  .trustbar { grid-template-columns: repeat(2, 1fr); }
  .courses { grid-template-columns: 1fr; }
  .modules { grid-template-columns: 1fr; }
  .locations { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .voucher { padding: 32px 26px; }
  .band-content { padding: 34px 26px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
