/* =========================================================
   CS SPED, s.r.o. — produkční styl
   Design tokens dle handoff od kolegy (brand #64b81c, Barlow)
   ========================================================= */

:root {
  --green: #64b81c;
  --green-hover: #59a516;
  --green-icon: #5aa617;
  --green-soft: #eef7e3;
  --green-border: #cfe6b8;
  --charcoal: #24262a;
  --charcoal-dark: #191b1e;
  --line-dark: #34373b;
  --line-dark-2: #3a3d40;
  --line-dark-3: #2c2f32;
  --text-dark: #4a4e52;
  --text-dark-2: #5a5e62;
  --text-light: #b9bdbf;
  --text-light-2: #a7abad;
  --text-light-3: #9aa0a3;
  --muted: #8a8f93;
  --section-light: #f5f6f5;
  --white: #ffffff;
  --border: #e7e9e8;
  --border-2: #e8eae9;
  --maxw: 1220px;
  --pad-x: 28px;
  --sect-y: 104px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: 'Barlow', system-ui, -apple-system, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--green-icon); text-decoration: none; }
a:hover { color: var(--green-hover); }
h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  margin: 0; line-height: 1.02; letter-spacing: -0.01em;
}
p { margin: 0; }
img { max-width: 100%; }
input, textarea, button, select { font-family: inherit; }
::selection { background: var(--green); color: #fff; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

@keyframes csFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.cs-reveal { animation: csFadeUp .7s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) {
  .cs-reveal { animation: none; }
  html { scroll-behavior: auto; }
}

/* eyebrow (tři čtverce + text) */
.eyebrow { display: inline-flex; gap: 5px; align-items: center; margin-bottom: 18px; }
.eyebrow .sq { width: 10px; height: 10px; display: block; }
.eyebrow .sq-1 { background: var(--charcoal); }
.eyebrow .sq-2 { background: var(--text-light); }
.eyebrow .sq-3 { background: var(--green); }
.eyebrow .label {
  margin-left: 8px; color: var(--green);
  font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; font-size: 14px;
}
.eyebrow.on-dark .sq-1 { background: #4a4d50; }

/* =========================== HEADER =========================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-2);
}
.site-header .container {
  height: 76px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-link img { height: 42px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 600;
  font-size: 15px; letter-spacing: .03em; text-transform: uppercase;
  color: var(--charcoal); white-space: nowrap;
}
.main-nav a:hover { color: var(--green-icon); }
.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.lang-switch { display: flex; border: 1px solid #d7dad8; border-radius: 6px; overflow: hidden; }
.lang-switch button {
  border: 0; padding: 6px 11px; font-weight: 700; font-size: 13px;
  letter-spacing: .04em; cursor: pointer; background: transparent; color: var(--charcoal);
}
.lang-switch button.active { background: var(--green); color: #fff; }
.btn-quote {
  background: var(--green); color: #fff;
  font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700;
  font-size: 15px; letter-spacing: .03em; text-transform: uppercase;
  padding: 11px 20px; border-radius: 6px; white-space: nowrap;
}
.btn-quote:hover { background: var(--green-hover); color: #fff; }
.nav-toggle {
  display: none; border: 1px solid #d7dad8; background: #fff; border-radius: 6px;
  width: 42px; height: 38px; cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--charcoal);
  position: relative; transition: transform .25s, opacity .25s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* =========================== HERO =========================== */
.hero {
  position: relative; min-height: 640px; display: flex; align-items: center;
  overflow: hidden; background: radial-gradient(120% 130% at 68% 52%, #12161a 0%, #0a0b0d 58%);
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__map { transform: translateX(12%) scale(0.9); transform-origin: 60% 48%; }
.hero__map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__euro { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, rgba(8,9,11,.94) 0%, rgba(8,9,11,.72) 34%, rgba(8,9,11,.28) 62%, rgba(8,9,11,0) 100%);
}
.hero__inner { position: relative; padding-top: 96px; padding-bottom: 96px; width: 100%; }
.hero__content { max-width: 760px; }
.hero .eyebrow .label { color: #c9cdce; font-weight: 600; letter-spacing: .14em; }
.hero .eyebrow .sq { width: 11px; height: 11px; }
.hero .eyebrow .sq-1 { background: #3a3d40; }
.hero h1 {
  color: #fff; font-weight: 700; font-size: clamp(44px, 6vw, 82px); line-height: .96; margin: 0;
}
.hero h1 .accent { color: var(--green); }
.hero__sub { color: #d3d6d7; font-size: 20px; line-height: 1.5; margin-top: 26px; max-width: 600px; }
.hero__cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.btn {
  font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700; font-size: 18px;
  letter-spacing: .03em; text-transform: uppercase; padding: 15px 30px; border-radius: 7px;
  cursor: pointer; border: 0; display: inline-block; transition: background .2s, border-color .2s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }

/* =========================== STATS =========================== */
.stats { background: var(--charcoal); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; border-right: 1px solid var(--line-dark); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 52px; color: var(--green); line-height: 1; }
.stat__num span { font-size: 30px; }
.stat__label { color: var(--text-light-2); font-size: 15px; letter-spacing: .02em; margin-top: 6px; }

/* =========================== O NÁS =========================== */
.section { padding: var(--sect-y) 0; }
.about { background: #fff; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about h2 { font-weight: 700; font-size: clamp(34px, 4vw, 52px); color: var(--charcoal); max-width: 480px; }
.about p { color: var(--text-dark); font-size: 18px; line-height: 1.6; margin-top: 22px; }
.about p + p { margin-top: 16px; }
.checks { display: flex; gap: 32px; margin-top: 34px; flex-wrap: wrap; }
.check { display: flex; align-items: flex-start; gap: 12px; max-width: 230px; }
.check .tick { color: var(--green); font-size: 22px; line-height: 1; margin-top: 2px; }
.check span:last-child { color: var(--charcoal); font-weight: 500; font-size: 16px; line-height: 1.4; }
.about__media { position: relative; }
.about__photo {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/5;
  box-shadow: 0 30px 60px -30px rgba(20,22,25,.4);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__badge {
  position: absolute; left: -24px; bottom: -24px; background: var(--green); color: #fff;
  padding: 22px 26px; border-radius: 12px; max-width: 220px;
  box-shadow: 0 20px 40px -18px rgba(90,166,23,.6);
}
.about__badge span { font-size: 14px; margin: 0 0 3px; opacity: .9; display: block; }
.about__badge strong { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 38px; line-height: 1; display: block; }

/* =========================== SLUŽBY =========================== */
.services { background: var(--section-light); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { font-weight: 700; font-size: clamp(34px, 4vw, 52px); color: var(--charcoal); }
.section-head p { color: var(--text-dark-2); font-size: 18px; line-height: 1.6; margin-top: 14px; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 34px 30px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-6px); box-shadow: 0 24px 44px -26px rgba(20,22,25,.35);
  border-color: var(--green-border);
}
.card__icon {
  width: 56px; height: 56px; border-radius: 12px; background: var(--green-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.card h3 { font-weight: 700; font-size: 24px; color: var(--charcoal); }
.card p { color: var(--text-dark-2); font-size: 16px; line-height: 1.55; margin-top: 12px; }

/* =========================== VOZOVÝ PARK =========================== */
.fleet { background: var(--charcoal-dark); color: #fff; position: relative; overflow: hidden; }
.fleet__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.fleet__photo { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16/11; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.fleet__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fleet h2 { font-weight: 700; font-size: clamp(34px, 4vw, 52px); color: #fff; max-width: 440px; }
.fleet__text { color: var(--text-light); font-size: 18px; line-height: 1.6; margin-top: 20px; max-width: 480px; }
.fleet__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.tile { background: var(--charcoal); border: 1px solid var(--line-dark); border-radius: 11px; padding: 18px 20px; }
.tile__title { font-weight: 700; font-size: 19px; color: #fff; font-family: 'Barlow Semi Condensed', sans-serif; }
.tile__desc { color: var(--text-light-3); font-size: 14px; margin-top: 4px; }

/* =========================== SKUPINA =========================== */
.group { background: #fff; }
.group__lead { max-width: 760px; }
.group__lead .group-external { margin-top: 14px; color: var(--charcoal); font-weight: 500; }
.group__label {
  text-align: center; color: var(--muted); font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; margin: 0 0 22px;
}
.group__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 940px; margin: 0 auto; }
.group-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 30px 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 18px; min-height: 150px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.group-card:hover { border-color: var(--green-border); box-shadow: 0 16px 30px -22px rgba(20,22,25,.4); transform: translateY(-4px); }
.group-logo { height: 40px; width: auto; max-width: 78%; object-fit: contain; }
.group-card span { color: var(--text-dark-2); font-size: 14px; line-height: 1.45; }

/* =========================== KONTAKT =========================== */
.contact { background: var(--section-light); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: stretch; }
.contact__details { display: flex; flex-direction: column; gap: 18px; }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 28px 30px; }
.info-card--tight { padding: 24px 30px; }
.info-card h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 26px; color: var(--charcoal); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
.info-label { color: var(--green); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.info-grid p { color: #3a3e42; font-size: 16px; line-height: 1.5; margin-top: 6px; }
.info-meta { display: flex; gap: 24px; margin-top: 20px; flex-wrap: wrap; border-top: 1px solid #eceeed; padding-top: 18px; }
.info-meta .k { color: var(--muted); font-size: 13px; }
.info-meta .v { color: var(--charcoal); font-weight: 600; font-size: 16px; }
.person-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.person-row .name { font-weight: 700; font-size: 18px; color: var(--charcoal); }
.person-row a.tel { font-weight: 700; font-size: 18px; white-space: nowrap; }
.person-list { display: flex; flex-direction: column; gap: 16px; }
.person-sep { border-top: 1px solid #eceeed; }
.contact__map { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); min-height: 460px; background: #e9ebea; }
.contact__map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }

/* =========================== POPTÁVKA =========================== */
.quote { background: var(--charcoal); color: #fff; }
.quote .container { max-width: 960px; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--text-light-2); font-weight: 500; }
.field input, .field textarea {
  background: var(--charcoal-dark); border: 1px solid var(--line-dark-2); border-radius: 9px;
  padding: 13px 15px; color: #fff; font-size: 16px; outline: none; transition: border-color .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--green); }
.field input::placeholder, .field textarea::placeholder { color: #6f7477; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; margin-top: 2px; }
.consent input { margin-top: 3px; accent-color: var(--green); width: 18px; height: 18px; flex-shrink: 0; }
.consent label { color: #9aa0a3; font-size: 13px; line-height: 1.5; }
.consent a { color: var(--green); }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form-note { color: #7f8488; font-size: 13px; max-width: 360px; }
.btn-submit {
  background: var(--green); color: #fff; border: 0;
  font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700; font-size: 18px;
  letter-spacing: .03em; text-transform: uppercase; padding: 15px 34px; border-radius: 8px;
  cursor: pointer; transition: background .2s;
}
.btn-submit:hover { background: var(--green-hover); }
.btn-submit:disabled { opacity: .6; cursor: default; }
.form-status { grid-column: 1 / -1; font-size: 16px; margin-top: 4px; display: none; }
.form-status.ok { display: block; color: #a8e06a; }
.form-status.err { display: block; color: #ff8f8f; }

/* =========================== FOOTER =========================== */
.site-footer { background: var(--charcoal-dark); color: var(--text-light-3); padding: 56px 0 32px; border-top: 1px solid var(--line-dark-3); }
.site-footer .container { }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 38px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { margin-top: 16px; font-size: 15px; line-height: 1.6; max-width: 320px; }
.footer-col .head { color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col .links { display: flex; flex-direction: column; gap: 9px; }
.footer-col a, .footer-col span { color: var(--text-light-3); font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line-dark-3);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: #6f7477;
}
.footer-bottom a { color: #6f7477; }
.footer-bottom a:hover { color: #fff; }

/* =========================== RESPONSIVE =========================== */
@media (max-width: 960px) {
  :root { --sect-y: 76px; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about h2 { max-width: none; }
  .about__media { order: -1; }
  .about__badge { left: 0; }
  .fleet__grid { grid-template-columns: 1fr; gap: 36px; }
  .fleet h2, .fleet__text { max-width: none; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-dark); }
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .main-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border-2);
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.25);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 420px; }
  .main-nav a { padding: 15px 28px; border-top: 1px solid var(--border-2); font-size: 16px; }
  .main-nav a:first-child { border-top: 0; }
  .header-actions .btn-quote { display: none; }
}

@media (max-width: 560px) {
  :root { --pad-x: 20px; }
  .hero__inner { padding-top: 72px; padding-bottom: 72px; }
  .hero { min-height: 560px; }
  .services__grid { grid-template-columns: 1fr; }
  .group__grid { grid-template-columns: 1fr; }
  .quote-form { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .btn-submit { width: 100%; }
  .footer-bottom { flex-direction: column; }
}
