/* ===== RESET & ROOT ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy:    #23374D;
  --navy-d:  #192838;
  --navy-l:  #2e4560;
  --blue:    #1089FF;
  --blue-d:  #0070e0;
  --light:   #E5E5E5;
  --lighter: #EEEEEE;
  --white:   #ffffff;
  --text-body: #3a4d5e;
  --text-dark: #111c27;
  --mono: 'JetBrains Mono', monospace;
  --display: 'Barlow Condensed', sans-serif;
  --body: 'Inter', sans-serif;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: var(--body); cursor: pointer; border: none; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px; height: 68px;
  background: rgba(23,40,56,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background .3s;
}
.nav.scrolled { background: rgba(23,40,56,1); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.nav-logo { display: flex; align-items: center; gap: 12px; }

/* Úprava loga - Moderní čistě bílá (Monochrome) varianta bez podkladu */
.logo-mark {
  width: 48px; 
  height: 48px;
  background: transparent;
  display: flex; 
  align-items: center; 
  justify-content: center;
}
.logo-mark img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
  /* Trik: Převede tvé tmavé logo na čistě bílé, aby ladilo s textem v hlavičce */
  filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.15)); 
  transition: transform 0.3s ease;
}
.logo-mark:hover img {
  transform: scale(1.05);
}

.logo-text { font-family: var(--display); font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 0.3px; line-height: 1.15; }
.logo-text small { display: block; font-size: 10px; font-weight: 400; color: rgba(255,255,255,0.4); letter-spacing: 1.5px; text-transform: uppercase; }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.65); letter-spacing: 0.2px; transition: color .2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--blue); transition: width .25s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--blue); color: #fff;
  padding: 9px 22px; border-radius: 7px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.2px;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--blue-d); transform: translateY(-1px); }

.nav-right { display: flex; align-items: center; gap: 16px; }

/* Hamburger ikona - skrytá na desktopu */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-cta-mobile-wrap, .nav-cta-mobile { display: none; }

/* ===== HERO ===== */
.hero {
  height: 90vh; min-height: 600px;
  background: linear-gradient(rgba(25, 40, 56, 0.85), rgba(25, 40, 56, 0.98)), url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&q=80&w=1920') center/cover;
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding-top: 100px; 
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 80% 50%, rgba(16,137,255,0.15) 0%, transparent 60%);
}

.hero-content {
  position: relative; z-index: 4;
  padding: 0 56px;
  max-width: 900px;
}
.hero-eyebrow {
  font-family: var(--mono); font-size: 11px;
  color: var(--blue); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 22px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before { content: ''; display: block; width: 24px; height: 1px; background: var(--blue); }

.hero h1 {
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--blue); }

.hero-sub {
  font-size: 16px; color: rgba(255,255,255,0.7);
  line-height: 1.75; max-width: 580px; margin-bottom: 40px;
  font-weight: 400;
}

.hero-actions { display: flex; gap: 14px; align-items: center; margin-bottom: 64px; }
.btn-primary {
  background: var(--blue); color: #fff;
  padding: 14px 30px; border-radius: 8px;
  font-size: 15px; font-weight: 600;
  transition: transform .15s, background .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--blue-d); transform: translateY(-2px); }
.btn-ghost-hero {
  background: transparent; color: rgba(255,255,255,0.9);
  padding: 13px 24px; border-radius: 8px;
  font-size: 15px; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.25);
  transition: border-color .2s, color .2s;
}
.btn-ghost-hero:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

.hero-kpis {
  display: flex; gap: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.kpi-num { font-family: var(--display); font-size: 32px; font-weight: 700; color: #fff; line-height: 1; }
.kpi-num span { color: var(--blue); }
.kpi-label { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.4); letter-spacing: 1px; text-transform: uppercase; margin-top: 5px; }

/* ===== SECTION SHARED ===== */
.section-eyebrow {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  color: var(--blue); letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.section-eyebrow::before { content: ''; display: block; width: 20px; height: 1px; background: var(--blue); flex-shrink: 0; }
.section-title {
  font-family: var(--display); font-size: clamp(32px, 4vw, 48px);
  font-weight: 700; color: var(--navy); line-height: 1.1; letter-spacing: -0.5px;
}
.section-title.light { color: #fff; }
.section-lead { font-size: 16px; color: var(--text-body); line-height: 1.75; max-width: 600px; margin-top: 14px; }
.section-lead.light { color: rgba(255,255,255,0.7); }

/* ===== SERVICES ===== */
.services { background: var(--white); padding: 100px 56px; }
.services-header { margin-bottom: 48px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.service-card {
  background: var(--lighter); padding: 40px 32px; border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.06); }
.svc-icon {
  width: 48px; height: 48px; background: rgba(16,137,255,0.1);
  border-radius: 8px; margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center;
}
.svc-icon svg { width: 24px; height: 24px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-card-title { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 12px; line-height: 1.1; }
.svc-card-body { font-size: 14px; color: var(--text-body); line-height: 1.7; }

/* ===== TRUST & LEGISLATION ===== */
.trust-section { background: var(--navy); padding: 80px 56px; color: #fff; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cert-box { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 24px; border-radius: 12px; margin-bottom: 16px; }
.cert-box h4 { font-family: var(--mono); font-size: 12px; color: var(--blue); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.cert-box p { font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.6; }

/* ===== PROCESS ===== */
.process { background: var(--lighter); padding: 100px 56px; }
.process-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-top: 48px; }
.process-step { background: #fff; padding: 32px 24px; border-radius: 12px; text-align: center; border: 1px solid rgba(0,0,0,0.05); }
.process-step-num { font-family: var(--display); font-size: 32px; font-weight: 700; color: var(--blue); margin-bottom: 16px; }
.process-step-title { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.process-step-desc { font-size: 13px; color: var(--text-body); line-height: 1.6; }

/* ===== PROJECTS / CASE STUDIES ===== */
.projects { background: var(--white); padding: 100px 56px; }
.case-study-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  background: var(--lighter); border-radius: 16px; overflow: hidden;
  margin-bottom: 48px; align-items: center;
}
.cs-content { padding: 48px; }
.cs-image { 
  background: var(--navy-d); height: 100%; min-height: 400px; 
  display: flex; align-items: center; justify-content: center; 
  overflow: hidden; 
}
.cs-image img { 
  width: 100%; height: 100%; object-fit: cover; 
  transition: transform 0.6s ease; 
}
.case-study-card:hover .cs-image img { 
  transform: scale(1.05); 
}
.cs-tag { display: inline-block; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 4px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.cs-title { font-family: var(--display); font-size: 32px; font-weight: 700; color: var(--navy); margin-bottom: 24px; line-height: 1.1; }
.cs-phase { margin-bottom: 16px; }
.cs-phase strong { display: block; font-size: 12px; color: var(--blue); text-transform: uppercase; letter-spacing: 1px; font-family: var(--mono); margin-bottom: 4px; }
.cs-phase p { font-size: 14px; color: var(--text-body); line-height: 1.6; }

/* ===== CONTACT FORM ===== */
.contact { background: var(--navy); padding: 100px 56px; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; }
.contact-form { background: #fff; border-radius: 16px; padding: 48px; box-shadow: 0 24px 48px rgba(0,0,0,0.2); }
.form-title { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--navy); margin-bottom: 24px; }

.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.checkbox-label {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border: 1px solid var(--light);
  border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500;
  transition: border-color .2s, background .2s;
}
.checkbox-label:hover { border-color: var(--blue); background: rgba(16,137,255,0.02); }
.checkbox-label input { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--text-body); letter-spacing: 1px; text-transform: uppercase; }
.form-input, .form-textarea {
  background: var(--white); border: 1px solid #d1d5db;
  border-radius: 8px; padding: 12px 16px;
  font-size: 14px; color: var(--navy); font-family: var(--body);
  outline: none; transition: border-color .2s; width: 100%;
}
.form-input:focus, .form-textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(16,137,255,0.1); }
.form-textarea { resize: none; height: 100px; }
.form-submit {
  width: 100%; background: var(--blue); color: #fff;
  padding: 16px; border-radius: 8px; font-size: 15px; font-weight: 600;
  margin-top: 16px; transition: background .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.form-submit:hover { background: var(--blue-d); }

/* ===== FOOTER ===== */
footer { background: var(--navy-d); padding: 80px 56px 40px; color: rgba(255,255,255,0.6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 64px; margin-bottom: 64px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 64px; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; color: #fff; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a { font-size: 14px; transition: color .2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; font-size: 12px; font-family: var(--mono); }

/* ===== RESPONSIVE ===== */

/* --- Tablet a menší (≤900px): nástup mobilní navigace --- */
@media (max-width: 900px) {
  .nav { padding: 0 20px; height: 60px; }
  .logo-text { font-size: 14px; }
  .logo-text small { font-size: 9px; }

  /* Skrýt CTA tlačítko v horní liště, nabídnout ho uvnitř rozbalovacího menu místo něj */
  .nav-right .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-links {
    display: flex;
    position: fixed;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy-d);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 16px 32px rgba(0,0,0,0.25);
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-links li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links a {
    display: flex; align-items: center;
    padding: 16px 24px;
    font-size: 15px;
    min-height: 44px;
  }
  .nav-links a::after { display: none; }

  .nav-cta-mobile-wrap { display: block; padding: 16px 24px 20px; border-bottom: none; }
  .nav-cta-mobile {
    display: flex; align-items: center; justify-content: center;
    background: var(--blue); color: #fff;
    padding: 13px 22px; border-radius: 8px;
    font-size: 14px; font-weight: 600; min-height: 44px;
  }

  /* Zamezit scrollování pozadí, když je menu otevřené */
  body.nav-open { overflow: hidden; }

  /* --- Hero --- */
  .hero { height: auto; min-height: 0; padding-top: 110px; padding-bottom: 56px; }
  .hero-content { padding: 0 24px; max-width: 100%; }
  .hero h1 { font-size: 38px; }
  .hero-sub { font-size: 15px; max-width: 100%; }
  .hero-actions { flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
  .btn-primary, .btn-ghost-hero { width: 100%; justify-content: center; text-align: center; }
  .hero-kpis { flex-wrap: wrap; gap: 28px 32px; padding-top: 32px; }

  .services, .process, .projects, .contact, .trust-section { padding: 64px 24px; }
  .trust-grid, .contact-inner, .case-study-card { grid-template-columns: 1fr; }
  .trust-grid { gap: 40px; }
  .cs-image { min-height: 220px; order: -1; }
  .cs-content { padding: 32px 24px; }
  .cs-title { font-size: 26px; }

  .contact-form { padding: 28px 22px; }
  .form-row, .checkbox-grid { grid-template-columns: 1fr; }
  .checkbox-label { min-height: 44px; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  footer { padding: 56px 24px 32px; }
}

/* --- Malé telefony (≤480px): jemné doladění --- */
@media (max-width: 480px) {
  .nav { padding: 0 16px; }
  .hero-content { padding: 0 18px; }
  .hero h1 { font-size: 32px; }
  .hero-eyebrow { font-size: 10px; }
  .hero-kpis { gap: 24px 28px; }
  .kpi-num { font-size: 26px; }

  .services, .process, .projects, .contact, .trust-section { padding: 48px 18px; }
  .section-title { font-size: 28px; }

  .service-card { padding: 28px 22px; }
  .process-flow { gap: 20px; }
  .process-step { padding: 24px 18px; }

  .cs-content { padding: 24px 18px; }
  .cs-title { font-size: 22px; }

  .contact-form { padding: 24px 16px; }
  .checkbox-grid { gap: 10px; }

  footer { padding: 48px 18px 28px; }
  .footer-grid { gap: 32px; }
}

/* --- Touch-friendly tap targets (žádný :hover na dotykových zařízeních) --- */
@media (hover: none) {
  .service-card:hover { transform: none; box-shadow: none; }
  .case-study-card:hover .cs-image img { transform: none; }
  .btn-primary:hover, .nav-cta:hover { transform: none; }
}