:root {
  /* Passat GTE Navy Palette */
  --navy-950: #071325;
  --navy-900: #0e284c;
  --navy-800: #162e56;
  --navy-700: #1e335d;
  --navy-500: #314d78;
  --steel: #5673a4;
  --steel-light: #8fa7cf;
  
  /* Surfaces & Neutrals */
  --paper: #ffffff;
  --paper-2: #f4f6fa;
  --paper-3: #eaeff6;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #475569;
  
  /* Precision Lines (No shadows) */
  --line: #e2e8f0;
  --line-subtle: #edf2f7;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-steel: rgba(86, 115, 164, 0.28);
  
  /* Geometry */
  --radius: 4px;
  --wrap: 72rem;
  --prose: 46rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--navy-800);
  color: #ffffff;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Strictly no shadows anywhere */
*, *::before, *::after {
  box-shadow: none !important;
  text-shadow: none !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-800);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--navy-900);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--navy-900);
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 3rem));
  margin-inline: auto;
}

/* Header & Navigation */
.site-header {
  background: var(--navy-900);
  color: #fff;
  border-bottom: 1px solid var(--line-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
  text-decoration: none;
}

.brand-logo {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #fff;
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-light);
  font-family: ui-monospace, monospace;
}

.nav-check, .nav-toggle {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav a:hover,
.nav a.active,
.nav a[aria-current="page"] {
  color: #ffffff;
}

.nav .sub {
  display: none;
}

/* Sub-Navigation Tabs Bar (for Služby & Aplikace) */
.subnav-tabs {
  background: var(--navy-950);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.subnav-tabs-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav-tabs-inner::-webkit-scrollbar {
  display: none;
}

.tab-link {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.tab-link:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.tab-link.active,
.tab-link[aria-current="page"] {
  color: #ffffff;
  font-weight: 600;
  border-bottom-color: var(--steel);
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #fff;
}

.section h2, .cta-band h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  line-height: 1.2;
}

/* Technical Badges & Index Tags */
.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  background: rgba(86, 115, 164, 0.15);
  border: 1px solid var(--line-steel);
  border-radius: var(--radius);
  color: var(--steel-light);
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-label {
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* Homepage Hero Section */
.hero {
  background: var(--navy-900);
  color: #fff;
  padding: 3.5rem 0 0;
  border-bottom: 1px solid var(--line-dark);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: end;
}

.hero-content {
  padding-bottom: 3.5rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  color: var(--steel-light);
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  margin: 0 0 2rem;
  max-width: 36rem;
  color: #cbd5e1;
  font-size: 1.18rem;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.status-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  background: rgba(22, 46, 86, 0.6);
  border: 1px solid var(--line-steel);
  border-radius: var(--radius);
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--steel-light);
  margin-bottom: 2rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

/* Integrated Spine Strip in Hero Content */
.spine-strip {
  background: rgba(9, 24, 46, 0.6);
  border: 1px solid var(--line-steel);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.spine-strip-title {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--steel-light);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.spine-grid {
  display: flex;
  flex-direction: column;
}

.spine-row {
  display: grid;
  grid-template-columns: 4.2rem 1fr auto;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(86, 115, 164, 0.15);
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
}

.spine-row:last-child {
  border-bottom: none;
}

.spine-id {
  color: var(--steel-light);
  font-weight: 700;
}

.spine-name {
  color: #ffffff;
  font-weight: 600;
}

.spine-desc {
  color: #94a3b8;
  font-size: 0.72rem;
  text-align: right;
}

/* BREAKOUT HERO PORTRAIT (NO BLUE BOX, OVERSIZED, EXTENDING OUT TO THE RIGHT) */
.hero-breakout-stage {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin-bottom: -1px;
  margin-right: -4rem; /* Bleed out to right */
}

.hero-breakout-stage picture,
.hero-breakout-stage img {
  max-height: 680px; /* Big, life-sized */
  width: auto;
  display: block;
  object-fit: contain;
  object-position: bottom right;
  margin-bottom: -1px;
}

.hero-photo-mobile {
  display: none;
}

/* SUBPAGES PAGE HERO */
.page-hero {
  background: var(--navy-900);
  color: #ffffff;
  padding: 4rem 0 3.25rem;
  border-bottom: 1px solid var(--line-dark);
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
}

.page-hero .lede {
  color: #cbd5e1;
  font-size: 1.18rem;
  line-height: 1.55;
  max-width: var(--prose);
  margin: 0;
}

/* SUBPAGE BREAKOUT PORTRAIT (O mně, Naježděno — NO BLUE BOX, OVERSIZED, BLEED TO RIGHT) */
.hero-photo-wrapper {
  margin: 0;
  background: transparent !important;
  border: none !important;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  align-self: start;
  position: sticky;
  top: 4rem;
  margin-right: -4.5rem; /* Bleed out to right */
  padding: 0;
}

.hero-photo-wrapper img {
  max-height: 680px; /* Oversized & life-sized */
  width: auto;
  display: block;
  object-fit: contain;
  margin-bottom: -1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: #ffffff;
  color: var(--navy-900);
  border: 1px solid #ffffff;
}

.btn-primary:hover {
  background: var(--paper-2);
  color: var(--navy-900);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line-dark);
  color: #ffffff;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.btn-ink {
  background: var(--navy-900);
  color: #ffffff;
  border: 1px solid var(--navy-900);
}

.btn-ink:hover {
  background: var(--navy-800);
}

.btn-line {
  background: transparent;
  border: 1px solid var(--navy-800);
  color: var(--navy-800);
}

.btn-line:hover {
  background: var(--navy-800);
  color: #ffffff;
}

/* Section Layouts */
.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header p {
  margin: 0.75rem 0 0;
  max-width: var(--prose);
  color: var(--muted);
  font-size: 1.15rem;
}

/* Technical Protocol Dossiers */
.dossier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.dossier-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease;
}

.section-alt .dossier-card {
  background: #ffffff;
}

.dossier-card:hover {
  border-color: var(--steel);
}

.dossier-index {
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--steel);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.dossier-card h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 0 0 1.25rem;
}

.protocol-block {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.protocol-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.protocol-label {
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.label-problem { color: #dc2626; }
.label-solution { color: #0284c7; }
.label-boundary { color: #d97706; }

.protocol-text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Modular Service Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease;
}

.pillar:hover {
  border-color: var(--steel);
}

.pillar-tag {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--steel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.pillar h3 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 0 0 1rem;
}

.pillar p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.9625rem;
  line-height: 1.6;
}

.pillar-deliverable {
  margin: 0 0 1.75rem;
  padding: 0.75rem 1rem;
  background: var(--paper-2);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--ink-secondary);
}

.pillar-deliverable strong {
  color: var(--navy-900);
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy-800);
  text-decoration: none;
}

.more:hover {
  color: var(--navy-900);
  text-decoration: underline;
}

/* Dual Proof Showcase (Naježděno & Second Brain) */
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
}

.split > .showcase-block {
  align-self: stretch;
}

.showcase-block {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.showcase-tag {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--steel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.showcase-block h2 {
  font-size: 1.65rem;
  line-height: 1.25;
  margin: 0 0 1.25rem;
}

.showcase-block p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 2rem;
}

/* Prose for Subpages */
.prose {
  max-width: var(--prose);
  padding-bottom: 2rem;
}

.prose p {
  margin: 0 0 1.5rem;
  color: var(--ink-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose h2 {
  font-size: 1.85rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  color: var(--navy-900);
}

.prose h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 2.25rem 0 0.75rem;
  color: var(--navy-800);
}

.prose ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2.25rem;
}

.prose ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.85rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.prose ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--steel);
  font-weight: 700;
}

/* Facts Table / Architectural Spec Sheet */
.facts {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5rem 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.facts th, .facts td {
  text-align: left;
  vertical-align: top;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--line);
}

.facts tr:last-child th, .facts tr:last-child td {
  border-bottom: none;
}

.facts th {
  width: 32%;
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--paper-2);
  font-family: ui-monospace, monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-right: 1px solid var(--line);
}

.facts td {
  color: var(--ink);
  font-size: 1rem;
}

.facts td a {
  font-weight: 600;
}

/* CTA Band */
.cta-band {
  background: var(--navy-900);
  color: #fff;
  padding: 5.5rem 0;
  text-align: center;
  border-top: 1px solid var(--line-dark);
}

.cta-band h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-band p {
  margin: 0 auto 2.5rem;
  max-width: 38rem;
  color: #cbd5e1;
  font-size: 1.15rem;
}

.cta-band .actions {
  justify-content: center;
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: #94a3b8;
  padding: 4.5rem 0 3.5rem;
  font-size: 0.9375rem;
  border-top: 1px solid var(--line-dark);
}

.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
}

.foot-legal {
  margin: 0;
}

.foot-legal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.foot-legal-details {
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  color: var(--steel-light);
  line-height: 1.6;
}

.foot-legal-details span {
  display: block;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-content: flex-start;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-grid, .split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
}

.split > .showcase-block {
  align-self: stretch;
}

  .hero-breakout-stage, .hero-photo-wrapper {
  margin: 0;
  background: transparent !important;
  border: none !important;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  align-self: start;
  position: sticky;
  top: 4rem;
  margin-right: -4.5rem; /* Bleed out to right */
  padding: 0;
}

  .hero-breakout-stage picture, .hero-breakout-stage img,
  .hero-photo-wrapper img {
    max-height: 480px;
    width: auto;
  }

  .dossier-grid, .pillars, .foot-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .bar {
    flex-wrap: wrap;
    min-height: 4rem;
  }

  .nav-toggle {
    display: inline-flex;
    cursor: pointer;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    color: #fff;
    font-size: 0.85rem;
  }

  .nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 1rem 0;
    gap: 1rem;
    border-top: 1px solid var(--line-dark);
  }

  .nav-check:checked ~ .nav {
    display: flex;
  }
}
