/* --- LOKÁLNĚ HOSTOVANÁ PÍSMA (OFL, viz fonts/OFL.txt) --- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/plus-jakarta-sans.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono.woff2') format('woff2');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

/* --- CUSTOM PROPERTIES & DESIGN TOKENS --- */
:root {
  /* Unified Typography System */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Color Palette (Based on Petra Company Crimson) */
  --ink: #1E1B1C;
  --brand: #C82E60;
  --brand-rgb: 200, 46, 96;
  --brand-dark: #A8204C;
  --brand-light: #E04D7B;
  --brand-soft: #F9EBEF;
  --paper: #FFFFFF;
  --bg: #F5F3F4;
  --muted: #6C6668;
  --muted-light: #9C9597;
  --line: #E2DDDF;
  --line-dark: #3F393B;

  /* Spacing Scale for Perfect Vertical Rhythm */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-xxl: 80px;
  --space-section: clamp(80px, 10vw, 130px);

  /* Layout Boundaries */
  --max: 1480px;
  --content: 1320px;

  /* Shadow Design */
  --shadow-sm: 0 2px 8px rgba(30, 27, 28, 0.04);
  --shadow-md: 0 10px 30px rgba(30, 27, 28, 0.06);
  --shadow-lg: 0 20px 50px rgba(200, 46, 96, 0.08);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.02);

  /* Transition Curves */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.5s var(--ease-smooth);
  --transition-base: all 0.3s var(--ease-smooth);
  --transition-fast: all 0.2s ease;
}

/* --- BASE STYLES & RESET --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  font-size: 16px;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  line-height: 1.625;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-base);
}

button, input, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

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

/* --- GLOBAL LAYOUT & TYPOGRAPHY UTILITIES --- */
.wrap {
  width: min(var(--content), calc(100% - 64px));
  margin-inline: auto;
}

h1, h2, h3, h4, .brand strong, .brand-mark {
  font-family: var(--font-heading);
}

.label {
  margin: 0 0 var(--space-md);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  align-items: center;
}

.label::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--brand);
  margin-right: 12px;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: padding var(--transition-base), background var(--transition-base);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: 86px;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: height var(--transition-base);
}

.site-header.scrolled .header-inner {
  height: 72px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  position: relative;
}

.brand strong {
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--ink);
}

.brand small {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.brand-mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  background: url('img/logo_petra_company.png') no-repeat center center;
  background-size: contain;
  margin-right: 8px;
  vertical-align: -3px;
  transition: transform 0.4s var(--ease-smooth);
}

.brand:hover .brand-mark {
  transform: translateY(-1px) scale(1.05);
}

.nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.mobile-nav-header,
.mobile-nav-footer {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 0;
  position: relative;
}

.nav-links a small {
  display: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-smooth);
}

.nav-links a:hover {
  color: var(--brand);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a.active {
  color: var(--brand);
}

.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: 20px;
  padding: 10px 0 10px 20px;
  border: none;
  border-left: 1px solid var(--line);
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s var(--ease-smooth);
}

.header-contact.trigger-quick-support {
  padding: 10px 20px;
  margin-left: 20px;
}

.header-contact + .header-contact {
  margin-left: 0;
}

.header-contact span {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: var(--transition-base);
  font-weight: normal;
  font-size: 14px;
}

.header-contact:hover {
  color: var(--brand);
}

.header-contact:hover span {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--paper);
  transform: rotate(45deg);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  position: relative;
  cursor: pointer;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: var(--transition-base);
  z-index: 101;
}

.menu-toggle:hover {
  background: var(--bg);
  border-color: var(--line);
}

.menu-toggle .menu-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: var(--transition-base);
}

.menu-toggle .menu-icon::before,
.menu-toggle .menu-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--ink);
  left: 0;
  transition: var(--transition-base);
}

.menu-toggle .menu-icon::before {
  top: -6px;
}

.menu-toggle .menu-icon::after {
  top: 6px;
}

.menu-toggle.active .menu-icon {
  background: transparent;
}

.menu-toggle.active .menu-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active .menu-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* --- TOP SCROLL PROGRESS BAR --- */
.scroll-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand) 0%, #FF6B95 100%);
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* --- TYPOGRAPHY LEGIBILITY ENHANCEMENTS --- */
h1, h2, h3 {
  text-wrap: balance;
}

p, blockquote {
  text-wrap: pretty;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding: var(--space-xl) 0 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero-mesh-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(200, 46, 96, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(200, 46, 96, 0.05) 0%, transparent 50%),
    radial-gradient(circle, transparent 20%, rgba(255, 255, 255, 0.5) 90%);
  pointer-events: none;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: grayscale(1) contrast(1.1);
  transition: opacity 1s ease;
}

.hero-topline {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  padding: 0 0 var(--space-md);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(200, 46, 96, 0.06);
  border: 1px solid rgba(200, 46, 96, 0.25);
  border-left: 3px solid var(--brand);
  padding: 6px 14px;
  border-radius: 0px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
  text-transform: uppercase;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #10B981;
  border-radius: 0px;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 60px;
  padding: var(--space-xxl) 0 var(--space-xl);
  align-items: center;
}

.hero-index-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 5.8vw, 84px);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 800;
  max-width: 1080px;
}

.hero h1 .accent {
  display: inline-block;
  position: relative;
  color: var(--brand);
  font-size: 0.96em;
  transition: opacity 0.35s var(--ease-smooth), filter 0.35s var(--ease-smooth), transform 0.35s var(--ease-smooth);
}

.hero h1 .accent.swap-out {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(8px);
}

.hero-copy {
  padding-bottom: var(--space-xs);
}

.hero-copy p {
  margin: 0 0 var(--space-md);
  font-size: 18px;
  line-height: 1.6;
  color: #4C4648;
  max-width: 480px;
}

.hero-trust-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 18px;
}

.trust-icon {
  color: #10B981;
  font-weight: 800;
}

/* --- ARCHITECTURAL SHARP HERO BUTTONS --- */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--brand);
  color: var(--paper);
  padding: 16px 32px;
  border-radius: 0px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--brand);
  transition: transform 0.3s var(--ease-smooth), background-color 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: rotate(30deg) translateY(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::after {
  transform: rotate(30deg) translateY(100%);
}

.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  transform: translateY(-2px);
  color: var(--paper);
}

.btn-primary span {
  font-size: 16px;
  transition: transform 0.3s var(--ease-smooth);
}

.btn-primary:hover span {
  transform: translate(3px, -3px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 16px 28px;
  border-radius: 0px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease-smooth);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.btn-secondary span {
  transition: transform 0.3s var(--ease-smooth);
}

.btn-secondary:hover span {
  transform: translateY(3px);
}

/* --- ARCHITECTURAL SWISS LINEAR HERO STAGE --- */
.hero-stage {
  background: #131112;
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding-top: 0;
  border-top: 1px solid var(--line-dark);
}

.hero-stage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 0;
  gap: 0;
}

.hero-stage-col {
  padding: 36px 28px;
  border-right: 1px solid var(--line-dark);
  position: relative;
  transition: background-color 0.3s var(--ease-smooth);
}

.hero-stage-col:last-child {
  border-right: none;
}

.hero-stage-col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-smooth);
}

.hero-stage-col:hover::before,
.hero-stage-col.highlight::before {
  transform: scaleX(1);
}

.hero-stage-col:hover {
  background: rgba(255, 255, 255, 0.025);
}

.hero-stage-col.highlight {
  background: rgba(200, 46, 96, 0.05);
}

.col-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--brand-light);
  margin-bottom: 14px;
  font-weight: 700;
}

.col-metric {
  font-family: var(--font-heading);
  font-size: clamp(34px, 3.5vw, 50px);
  font-weight: 800;
  line-height: 1;
  color: var(--paper);
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}

.col-metric small {
  font-size: 0.55em;
  color: var(--brand-light);
  font-weight: 600;
}

.hero-stage-col .stage-title {
  font-size: 15px;
  font-weight: 700;
  color: #E2DDDF;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.hero-stage-col p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted-light);
  margin: 0;
}

.hero-services-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}

.hero-pill {
  padding: 20px 24px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #CCD2D5;
  border-right: 1px solid var(--line-dark);
  transition: all 0.3s var(--ease-smooth);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-pill:last-child {
  border-right: none;
}

.hero-pill .pill-no {
  color: var(--brand-light);
  font-family: var(--font-mono);
  font-size: 12px;
}

.hero-pill span {
  font-weight: 700;
}

.hero-pill .arr {
  font-style: normal;
  transition: transform 0.3s var(--ease-smooth);
  color: var(--muted-light);
}

.hero-pill:hover {
  background: rgba(200, 46, 96, 0.12);
  color: var(--paper);
  padding-left: 28px;
}

.hero-pill:hover .arr {
  transform: translate(3px, -3px);
  color: var(--brand-light);
}

.hero-services-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}

.hero-pill {
  padding: 20px 24px;
  font-size: 13px;
  color: #CCD2D5;
  border-right: 1px solid var(--line-dark);
  transition: all 0.3s var(--ease-smooth);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-pill:last-child {
  border-right: none;
}

.hero-pill .pill-no {
  color: var(--brand-light);
  font-family: var(--font-heading);
}

.hero-pill:hover {
  background: rgba(200, 46, 96, 0.1);
  color: var(--paper);
  padding-left: 28px;
}

/* --- SCROLL REVEAL ANIMATIONS SYSTEM --- */
.js [data-reveal] {
  opacity: 0;
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
  will-change: opacity, transform;
}

.js [data-reveal="up"] {
  transform: translateY(32px);
}

.js [data-reveal="fade"] {
  transform: none;
}

.js [data-reveal="scale"] {
  transform: scale(0.96);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --- SECTION GENERAL --- */
section {
  position: relative;
}

/* --- ABOUT SECTION (STATEMENT) --- */
.statement {
  padding: var(--space-section) 0;
}

.statement-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
}

.statement-copy {
  max-width: 940px;
}

.statement h2 {
  margin: 0;
  font-size: clamp(40px, 4.8vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.statement h2 em {
  font-style: normal;
  color: var(--muted-light);
  display: block;
  margin-top: 8px;
}

.statement p {
  margin: 36px 0 0;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

/* --- SERVICES SECTION --- */
.services {
  background: var(--bg);
  padding: var(--space-section) 0;
}

.services-head {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  margin-bottom: 54px;
}

.services-head h2 {
  margin: 0;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 720px;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 86px minmax(260px, 0.8fr) minmax(280px, 1.2fr) 48px;
  gap: 24px;
  align-items: center;
  padding: 34px var(--space-sm);
  border-bottom: 1px solid var(--line);
  transition: var(--transition-base);
  background: transparent;
  border-left: 3px solid transparent;
}

.service-row:hover {
  background: var(--paper);
  padding-left: 30px;
  padding-right: 30px;
  border-left-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.service-no {
  font-size: 12px;
  color: var(--muted-light);
  font-weight: 700;
  font-family: var(--font-heading);
}

.service-row h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  transition: color var(--transition-base);
}

.service-row:hover h3 {
  color: var(--brand);
}

.service-row p {
  margin: 0;
  max-width: 660px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.service-arrow {
  font-size: 24px;
  color: var(--brand);
  text-align: right;
  transition: transform var(--transition-base);
  font-weight: bold;
}

.service-row:hover .service-arrow {
  transform: translate(6px, -6px);
}

/* --- OUTSOURCING SECTION --- */
.outsourcing {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-section) 0;
  overflow: hidden;
}

.outsourcing-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.outsourcing-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.035; /* extremely subtle outlines in the dark */
  filter: grayscale(1) contrast(1.3);
}

.outsourcing-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 96px;
  align-items: start;
}

.outsourcing .label {
  color: #D3CCD0;
}

.outsourcing h2 {
  margin: 0;
  font-size: clamp(52px, 5.8vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.outsourcing h2 span {
  color: var(--muted-light);
}

.outsourcing-copy > p {
  margin: 0 0 48px;
  font-size: 20px;
  line-height: 1.55;
  color: #D3CCD0;
  max-width: 640px;
}

.outsourcing-points {
  border-top: 1px solid var(--line-dark);
}

.outsourcing-point {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 22px;
  padding: 26px var(--space-xs);
  border-bottom: 1px solid var(--line-dark);
  transition: var(--transition-base);
}

.outsourcing-point:hover {
  background: rgba(255, 255, 255, 0.02);
}

.outsourcing-point .n {
  font-size: 12px;
  color: var(--muted-light);
  font-weight: 700;
  padding-top: 5px;
  font-family: var(--font-heading);
}

.outsourcing-point h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.outsourcing-point p {
  margin: 0;
  color: var(--muted-light);
  font-size: 15px;
  line-height: 1.55;
}

.outsourcing-cta {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1.5px solid var(--paper);
  padding-bottom: var(--space-xs);
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition-base);
}

.outsourcing-cta span {
  color: var(--brand);
  font-size: 20px;
  transition: transform var(--transition-base);
}

.outsourcing-cta:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.outsourcing-cta:hover span {
  transform: translate(6px, -4px);
}

/* --- PROCESS SECTION --- */
.process {
  padding: var(--space-section) 0;
}

.process-head {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  margin-bottom: 74px;
}

.process-head h2 {
  margin: 0;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.process-item {
  padding: 32px 30px 0 0;
  min-height: 240px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: var(--transition-base);
}

.process-item:last-child {
  border-right: 0;
  padding-right: 0;
  padding-left: 30px;
}

.process-item:not(:first-child) {
  padding-left: 30px;
}

.process-item .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  position: absolute;
  top: -5px;
  left: -5px;
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.process-item:hover {
  background: rgba(200, 46, 96, 0.015);
}

.process-item:hover .dot {
  transform: scale(1.5);
  box-shadow: 0 0 10px rgba(200, 46, 96, 0.6);
}

.process-item small {
  font-size: 12px;
  color: var(--muted-light);
  font-weight: 700;
  font-family: var(--font-heading);
}

.process-item h3 {
  margin: 44px 0 12px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.process-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 250px;
  line-height: 1.55;
}

/* --- COMPANY SECTION --- */
.company {
  padding: var(--space-section) 0;
  background: #FAF9FA;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.company-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 90px;
  align-items: start;
}

.company-facts {
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.fact-item {
  display: grid;
  grid-template-columns: minmax(130px, auto) 1fr;
  gap: 28px;
  align-items: center;
  padding: 24px 20px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  transition: all 0.3s var(--ease-smooth);
  background: transparent;
}

.fact-item:hover {
  background: var(--paper);
  border-left-color: var(--brand);
  padding-left: 26px;
  box-shadow: 0 4px 20px rgba(30, 27, 28, 0.04);
}

.fact-number {
  font-family: var(--font-heading);
  font-size: clamp(34px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
  white-space: nowrap;
}

.fact-number .plus {
  color: var(--brand);
  font-weight: 800;
  font-size: 0.85em;
  margin: 0 1px;
}

.fact-number small {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -0.01em;
  margin-left: 5px;
}

.fact-body h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.fact-body p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.company-copy h2 {
  margin: 0;
  font-size: 60px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 720px;
}

.company-copy > p {
  font-size: 18px;
  color: #4C4648;
  max-width: 700px;
  margin: 30px 0 0;
  line-height: 1.6;
}

.quote {
  margin: 54px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 40px;
}

.quote blockquote {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 600;
  font-family: var(--font-heading);
}

.quote cite {
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
  padding-top: 6px;
  line-height: 1.5;
}

/* --- TEAM SECTION --- */
.team {
  padding: var(--space-section) 0;
}

.team-head {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}

.team-head h2 {
  margin: 0;
  font-size: clamp(48px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.team-head .team-intro {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 390px;
}

.team-list {
  border-top: 1px solid var(--line);
}

.team-person {
  display: grid;
  grid-template-columns: 160px minmax(260px, 0.8fr) minmax(300px, 1fr) 44px;
  gap: 34px;
  align-items: center;
  padding: 34px var(--space-sm);
  border-bottom: 1px solid var(--line);
  transition: var(--transition-base);
}

.team-person:hover {
  background: #FAF9FA;
  box-shadow: var(--shadow-sm);
}

.team-portrait {
  height: 190px;
  background: linear-gradient(135deg, #ECE9EA 0%, #DCD6D8 100%);
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
  transition: var(--transition-base);
}

.team-portrait::before {
  content: attr(data-initials);
  position: absolute;
  left: 14px;
  bottom: -18px;
  font-size: 94px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: rgba(30, 27, 28, 0.08);
  font-family: var(--font-heading);
  transition: var(--transition-base);
}

.team-portrait::after {
  content: "";
  position: absolute;
  width: 66px;
  height: 66px;
  background: var(--brand);
  right: 16px;
  top: 16px;
  mix-blend-mode: multiply;
  opacity: 0.85;
  border-radius: 2px;
  transition: var(--transition-base);
}

.team-person:nth-child(2) .team-portrait {
  background: linear-gradient(135deg, #E7E5E5 0%, #D5D2D2 100%);
}
.team-person:nth-child(2) .team-portrait::after {
  width: 14px;
  height: 86px;
  right: 24px;
  top: 24px;
}

.team-person:nth-child(3) .team-portrait {
  background: linear-gradient(135deg, #EFEDEE 0%, #DFDBDD 100%);
}
.team-person:nth-child(3) .team-portrait::after {
  width: 82px;
  height: 14px;
  right: 18px;
  top: 28px;
}

.team-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0.2) contrast(1.05);
  transition: var(--transition-base);
}

.team-person:hover .team-portrait img {
  filter: grayscale(0) contrast(1.05);
  transform: scale(1.04);
}

.team-portrait:has(img) {
  background: transparent;
}

.team-portrait:has(img)::before,
.team-portrait:has(img)::after {
  display: none;
}

.team-person:hover .team-portrait {
  border-color: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.team-person:hover .team-portrait::before {
  color: rgba(200, 46, 96, 0.12);
  transform: scale(1.05);
}

.team-person:hover .team-portrait::after {
  transform: rotate(90deg) scale(0.9);
  background: var(--brand-light);
}

.team-name small {
  display: block;
  margin-bottom: 9px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-light);
  font-weight: 700;
}

.team-name h3 {
  display: block;
  font-size: 31px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.team-role {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.team-role div {
  padding-top: 5px;
}

.team-role small {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-light);
  margin-bottom: 8px;
  font-weight: 700;
}

.team-role span {
  display: block;
  color: #4C4648;
  font-size: 15px;
  line-height: 1.45;
}

.team-arrow {
  font-size: 24px;
  color: var(--brand);
  text-align: right;
  transition: transform var(--transition-base);
  font-weight: bold;
}

.team-person:hover .team-arrow {
  transform: translate(6px, -4px);
}

.team-note {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: var(--space-lg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.team-note a {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
}

.team-note a:hover {
  color: var(--brand);
  border-color: var(--brand);
}

/* --- CONTACT SECTION --- */
.contact {
  background: var(--brand);
  color: var(--paper);
  padding: var(--space-section) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
}

.contact h2 {
  margin: 0;
  font-size: clamp(52px, 5.8vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 700;
  max-width: 680px;
}

.contact-intro {
  margin: 30px 0 0;
  font-size: 18px;
  max-width: 510px;
  color: var(--brand-soft);
  line-height: 1.55;
}

.contact-data {
  margin-top: 54px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-data div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 18px var(--space-xs);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-base);
}

.contact-data div:hover {
  background: rgba(255, 255, 255, 0.05);
}

.contact-data span:first-child {
  color: #F8D0DF;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
}

.contact-data span:last-child {
  font-size: 15px;
}

.contact-data a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 4px;
}

.contact-data a:hover {
  color: var(--brand-soft);
  text-decoration-color: var(--brand-soft);
}

.contact-form {
  background: var(--paper);
  color: var(--ink);
  padding: 48px;
  border-radius: 0;
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  margin: 0 0 28px;
  font-size: 30px;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.field input, .field textarea {
  border: 0;
  border-bottom: 1.5px solid var(--line);
  background: transparent;
  border-radius: 0;
  padding: 10px 0;
  outline: none;
  color: var(--ink);
  font-size: 15px;
  transition: var(--transition-base);
}

.field input:focus, .field textarea:focus {
  border-color: var(--brand);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.submit {
  margin-top: 32px;
  width: 100%;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 18px 24px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-base);
  border-radius: 2px;
}

.submit:hover {
  background: #000;
  box-shadow: var(--shadow-md);
}

.submit span {
  color: var(--brand-light);
  font-size: 20px;
  transition: transform var(--transition-base);
}

.submit:hover span {
  transform: translate(6px, -4px);
}

/* Success status alert styling */
.form-success-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.4s var(--ease-smooth) forwards;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: var(--space-md);
}

.form-success-container h4 {
  font-size: 24px;
  margin-bottom: var(--space-xs);
  font-weight: 700;
}

.form-success-container p {
  color: var(--muted);
  font-size: 15px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- FOOTER --- */
.footer {
  background: #191718;
  color: var(--paper);
  padding: 80px 0 40px;
  border-top: 1px solid #2B2628;
}

.footer-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding-bottom: 60px;
}

.footer-brand-row .brand strong {
  color: var(--paper);
}

.footer-hero-text {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  color: var(--paper);
  line-height: 1.1;
  text-align: right;
  margin: 0;
  letter-spacing: -0.03em;
}

.footer-divider {
  border: 0;
  border-top: 1px solid #2B2628;
  margin: 0;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 50px 0 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-light);
  margin-bottom: 24px;
  font-weight: 700;
}

.footer-col a, .footer-col span {
  font-size: 14px;
  margin: 8px 0;
  color: #CDD2D5;
  transition: var(--transition-base);
}

.footer-col a:hover {
  color: var(--brand-light);
  transform: translateX(4px);
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid #2B2628;
  color: var(--muted-light);
  font-size: 12px;
}

.footer-legal-links {
  display: flex;
  gap: 32px;
}

.footer-legal-links a {
  color: var(--muted-light);
  transition: var(--transition-base);
}

.footer-legal-links a:hover {
  color: var(--brand-light);
}

.footer-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-light);
  transition: var(--transition-base);
}

.footer-back-to-top:hover {
  color: var(--brand-light);
  transform: translateY(-2px);
}

/* --- BACK TO TOP BUTTON --- */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 0px;
  background: #191718;
  color: var(--paper);
  border: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.3s var(--ease-smooth);
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--paper);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(200, 46, 96, 0.4);
}

#back-to-top span {
  font-size: 18px;
  line-height: 1;
  font-weight: bold;
  transition: transform 0.3s ease;
}

#back-to-top:hover span {
  transform: translateY(-2px);
}

/* --- LOGO MARQUEE --- */
.logo-marquee {
  background: #191718;
  padding: 46px 0;
  border-top: 1px solid #2B2628;
  border-bottom: 1px solid #2B2628;
  overflow: hidden;
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 80px;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
  display: flex;
  justify-content: space-around;
  min-width: 100%;
  gap: 80px;
  flex-shrink: 0;
  animation: marquee-scroll 35s linear infinite;
}

.marquee-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.marquee-slide img {
  height: 66px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.45);
  transition: var(--transition-base);
}

.marquee-slide img:hover {
  filter: brightness(0) invert(1) opacity(0.9);
  transform: scale(1.05);
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - 80px));
  }
}

/* --- FAQ SECTION --- */
.faq {
  padding: var(--space-section) 0;
  background: #FAF9FA;
}

.faq-head {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  margin-bottom: 54px;
}

.faq-head h2 {
  margin: 0;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 720px;
}

.faq-list {
  border-top: 1px solid var(--line);
  max-width: var(--content);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 28px var(--space-sm);
  transition: background-color var(--transition-base);
}

.faq-item[open] {
  background: var(--paper);
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  transition: color var(--transition-base);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--brand);
}

.faq-item[open] summary {
  color: var(--brand);
}

.faq-icon {
  font-size: 24px;
  line-height: 1;
  font-weight: 300;
  color: var(--brand);
  transition: transform var(--transition-base);
  user-select: none;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.625;
  max-width: 860px;
  animation: faq-slide-down 0.35s var(--ease-smooth) forwards;
}

@keyframes faq-slide-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- MAP SECTION --- */
.map-section {
  padding: 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  width: 100%;
  overflow: hidden;
}

.map-section iframe {
  display: block;
  filter: grayscale(1) contrast(1.1) opacity(0.85);
  transition: filter var(--transition-base), opacity var(--transition-base);
}

.map-section:hover iframe {
  filter: grayscale(0) contrast(1) opacity(1);
}

/* --- FOOTER COPY & LEGAL STYLES --- */
.footer-brand-container {
  display: flex;
  flex-direction: column;
}

.footer-brand-copy {
  font-size: 14px;
  color: var(--muted-light);
  max-width: 380px;
  margin-top: 18px;
  line-height: 1.55;
}

.footer-legal-notice {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-legal-notice p {
  font-size: 11px;
  color: var(--muted-light);
  line-height: 1.4;
  max-width: 580px;
}

/* --- FLOATING SUPPORT BUTTON (TEAMVIEWER) --- */
.floating-support {
  position: fixed;
  bottom: 28px;
  right: 80px;
  height: 44px;
  padding: 0 16px;
  background: #191718;
  color: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: 0px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  z-index: 98;
  text-decoration: none;
  transition: all 0.3s var(--ease-smooth);
}

.floating-support:hover {
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(200, 46, 96, 0.4);
}

.floating-support .ic-svg {
  color: var(--brand-light);
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease;
}

.floating-support:hover .ic-svg {
  color: var(--paper);
  transform: scale(1.15) rotate(8deg);
}

.floating-support span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
}

.floating-support .ic-arr {
  color: var(--muted-light);
  transition: transform 0.3s ease, color 0.3s ease;
}

.floating-support:hover .ic-arr {
  color: var(--paper);
  transform: translate(2px, -2px);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1050px) {
  html {
    scroll-padding-top: 72px;
  }

  .wrap {
    width: min(var(--content), calc(100% - 48px));
  }

  /* TOP Mobile Menu Slide Drawer */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(380px, 88vw);
    height: 100vh;
    background: #191718;
    color: var(--paper);
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    padding: 84px 28px 36px;
    gap: 24px;
    border-left: 1px solid var(--line-dark);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.4);
    /* Zavřené menu je oříznuté (clip-path) místo posunutí mimo obrazovku,
       aby na mobilu nevznikal vodorovný posuv stránky. */
    clip-path: inset(0 0 0 100%);
    visibility: hidden;
    transition: clip-path 0.4s var(--ease-smooth), visibility 0s linear 0.4s;
    overflow-y: auto;
  }

  .nav.active {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition: clip-path 0.4s var(--ease-smooth), visibility 0s linear 0s;
  }

  .mobile-nav-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-dark);
  }

  .mobile-nav-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: var(--paper);
  }

  .mobile-nav-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--brand-light);
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    padding: 13px 0;
    color: #EDF1F3;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.2s, padding-left 0.2s;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--brand-light);
    padding-left: 8px;
  }

  .nav-links small {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--brand);
    font-weight: 700;
  }

  .mobile-nav-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line-dark);
  }

  .mobile-contact-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--muted-light);
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
  }

  .mobile-contact-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #CCD2D5;
    text-decoration: none;
    font-size: 13px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0px;
    transition: background 0.2s, border-color 0.2s;
  }

  .mobile-contact-link:hover {
    background: rgba(200, 46, 96, 0.12);
    border-color: rgba(200, 46, 96, 0.3);
    color: var(--paper);
  }

  .mobile-contact-link .ic {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    background: rgba(200, 46, 96, 0.1);
    color: var(--brand-light);
    border: 1px solid rgba(200, 46, 96, 0.25);
    flex-shrink: 0;
  }

  .ic-svg {
    display: inline-block;
    vertical-align: middle;
  }

  .ic-svg.inline {
    margin-right: 6px;
    vertical-align: -2px;
    color: var(--brand-light);
  }

  .ic-arr {
    transition: transform 0.2s ease;
    flex-shrink: 0;
  }

  .mobile-contact-link div {
    display: flex;
    flex-direction: column;
  }

  .mobile-contact-link strong {
    font-weight: 700;
    color: var(--paper);
    font-size: 13px;
    line-height: 1.2;
  }

  .mobile-contact-link small {
    font-size: 11px;
    color: var(--muted-light);
  }

  .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
  }

  .mobile-teamviewer-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(200, 46, 96, 0.15);
    border: 1px solid var(--brand);
    color: var(--brand-light);
    padding: 12px 14px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0px;
    transition: background 0.2s, color 0.2s;
  }

  .mobile-teamviewer-btn:hover {
    background: var(--brand);
    color: var(--paper);
  }

  .mobile-teamviewer-btn:hover .ic-arr,
  .mobile-cta-btn:hover .ic-arr {
    transform: translate(3px, -3px);
  }

  .mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--paper);
    color: var(--ink);
    padding: 14px 16px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0px;
    transition: background 0.2s, color 0.2s;
  }

  .mobile-cta-btn:hover {
    background: var(--brand);
    color: var(--paper);
  }

  .header-contact {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-main {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: var(--space-xl) 0 var(--space-lg);
  }

  .hero-copy p {
    max-width: 100%;
  }

  .hero-stage-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage-col {
    border-right: none;
    border-bottom: 1px solid var(--line-dark);
    padding: 28px 20px;
  }

  .hero-stage-col:last-child {
    border-bottom: none;
  }

  .statement-grid, .services-head, .process-head, .team-head, .company-grid, .contact-grid, .faq-head, .map-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .outsourcing-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .statement {
    padding: var(--space-xl) 0;
  }

  .service-row {
    grid-template-columns: 60px 1fr 48px;
  }

  .service-row p {
    grid-column: 2 / 3;
    margin-top: var(--space-xxs);
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-item:nth-child(2) {
    border-right: 0;
  }

  .process-item:nth-child(3), .process-item:nth-child(4) {
    border-top: 1px solid var(--line);
    margin-top: 40px;
  }

  .process-item:nth-child(3) .dot {
    top: -6px;
  }
  .process-item:nth-child(4) .dot {
    top: -6px;
  }

  .company-copy {
    order: -1;
  }

  .team-person {
    grid-template-columns: 140px 1.1fr 0.9fr 36px;
    gap: 24px;
  }

  .contact-form {
    padding: 36px;
  }

  .footer-brand-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-hero-text {
    text-align: left;
  }

  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .header-inner {
    height: 72px;
  }

  .hero {
    padding: var(--space-md) 0 0;
  }

  .hero-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-bottom: var(--space-sm);
  }

  .hero h1 {
    font-size: clamp(54px, 16vw, 76px);
  }

  .hero-stage-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-services-pills {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-pill {
    border-bottom: 1px solid var(--line-dark);
    padding: 16px;
  }

  .hero-pill:nth-child(2n) {
    border-right: none;
  }

  .hero-live-badge {
    font-size: 10px;
    padding: 4px 10px;
  }

  .statement, .services, .outsourcing, .process, .company, .team, .contact {
    padding: var(--space-xl) 0;
  }

  .outsourcing-grid {
    gap: 36px;
  }

  .outsourcing-point {
    padding: 18px 0;
    gap: 16px;
  }

  .outsourcing-copy > p {
    margin-bottom: 32px;
  }

  .statement h2, .services-head h2, .process-head h2, .team-head h2, .company-copy h2, .faq-head h2, .contact h2 {
    font-size: 38px;
  }

  .service-row {
    grid-template-columns: 44px 1fr 30px;
    gap: 14px;
    padding: 24px var(--space-xxs);
  }

  .service-row:hover {
    padding-left: var(--space-xxs);
    padding-right: var(--space-xxs);
    background: transparent;
    box-shadow: none;
    border-left-color: transparent;
  }

  .service-row h3 {
    font-size: 22px;
  }

  .service-row p {
    font-size: 14px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-item, .process-item:not(:first-child), .process-item:last-child {
    border-right: 0;
    border-top: 1px solid var(--line);
    padding: 28px 0 28px 0;
    margin: 0;
    min-height: 0;
  }

  .process-item:first-child {
    border-top: 0;
  }

  .process-item .dot {
    left: 0;
    top: -6px;
  }

  .process-item:first-child .dot {
    display: none;
  }

  .process-item h3 {
    margin: 28px 0 8px;
  }

  .fact-item {
    grid-template-columns: minmax(110px, auto) 1fr;
    gap: 16px;
    padding: 20px 12px;
  }

  .quote {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .team-person {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 0;
  }

  .team-portrait {
    width: 180px;
    height: 220px;
  }

  .team-role {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .team-arrow {
    display: none;
  }

  .team-note {
    flex-direction: column;
    gap: 12px;
  }

  .marquee-slide img {
    height: 50px;
  }

  .faq-item {
    padding: 20px var(--space-xxs);
  }

  .faq-item summary {
    font-size: 16px;
  }

  .map-section iframe {
    height: 320px;
  }

  #back-to-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

  #back-to-top span {
    font-size: 16px;
  }

  .floating-support {
    bottom: 16px;
    left: 16px;
    right: auto;
    height: 40px;
    padding: 0 14px;
    background: #191718;
    border: 1px solid rgba(200, 46, 96, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }

  .floating-support span {
    display: inline-block;
    font-size: 11px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-legal-links {
    flex-direction: column;
    gap: 12px;
  }
}

.mobile-quick-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(200, 46, 96, 0.15);
  border: 1px solid var(--brand);
  color: var(--brand-light);
  padding: 14px 16px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0px;
  width: 100%;
  transition: background 0.2s, color 0.2s;
}

.mobile-quick-btn:hover {
  background: var(--brand);
  color: var(--paper);
}

/* --- EXPRES HELPDESK ENTERPRISE POPUP MODAL --- */
.quick-modal-overlay[hidden] {
  display: none !important;
}

.quick-modal-overlay:not([hidden]) {
  display: flex !important;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 9, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  animation: modal-fade-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quick-modal-content {
  background: #131112;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0px !important;
  padding: 36px 32px 32px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8);
  position: relative;
  max-width: 620px;
  width: min(620px, 100%);
  margin: auto;
  animation: modal-slide-up 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-slide-up {
  from { opacity: 0; transform: translateY(14px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.quick-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0px !important;
  color: var(--muted-light);
  width: 36px;
  height: 36px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  z-index: 2;
}

.quick-modal-close:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.quick-modal-top {
  margin-bottom: 24px;
}

.quick-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #10B981;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 8px;
}

.pulse-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.quick-modal-top h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.quick-modal-sub {
  font-size: 14px;
  color: #A09C9D;
  margin: 0;
  line-height: 1.45;
}

.quick-modal-section {
  margin-top: 24px;
}

.quick-section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-light);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* --- ISSUE CARDS GRID --- */
.issue-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.issue-card-wrap {
  position: relative;
  cursor: pointer;
  user-select: none;
  display: block;
}

.issue-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.issue-card {
  display: grid;
  grid-template-columns: 36px 1fr 22px;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0px !important;
  padding: 10px 14px;
  min-height: 56px;
  transition: all 0.25s var(--ease-smooth);
}

.issue-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(200, 46, 96, 0.12);
  color: var(--brand-light);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.issue-icon svg {
  width: 17px;
  height: 17px;
}

.issue-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.issue-copy strong {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.issue-copy small {
  font-size: 11px;
  color: var(--muted-light);
}

.issue-selector {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  margin-left: auto;
  transition: all 0.2s ease;
}

.issue-selector .check-svg {
  width: 12px;
  height: 12px;
  color: transparent;
  transition: all 0.2s ease;
}

.issue-card-wrap:hover .issue-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(200, 46, 96, 0.4);
}

.issue-checkbox:checked + .issue-card {
  background: rgba(200, 46, 96, 0.16);
  border-color: var(--brand);
  box-shadow: 0 4px 20px rgba(200, 46, 96, 0.25);
}

.issue-checkbox:checked + .issue-card .issue-selector {
  background: var(--brand);
  border-color: var(--brand);
}

.issue-checkbox:checked + .issue-card .issue-selector .check-svg {
  color: #ffffff;
}

/* --- CONTACT INPUTS --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-light);
  letter-spacing: 0.08em;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--muted-light);
  pointer-events: none;
  display: grid;
  place-items: center;
}

.input-icon svg {
  width: 18px;
  height: 18px;
}

.input-with-icon input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 14px 14px 14px 44px;
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: 0px !important;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.input-with-icon input:focus {
  border-color: var(--brand);
  background: rgba(255, 255, 255, 0.06);
}

.input-with-icon input.invalid {
  border-color: #EF4444 !important;
  background: rgba(239, 68, 68, 0.1) !important;
}

/* --- CTA BUTTON & GUARANTEE FOOTER --- */
.form-error-msg {
  color: #EF4444;
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
  text-align: center;
}

.quick-submit-btn {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--brand);
  color: #ffffff;
  border: none;
  border-radius: 0px !important;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.25s var(--ease-smooth);
  box-shadow: 0 8px 24px rgba(200, 46, 96, 0.35);
}

.quick-submit-btn .send-icon {
  width: 18px;
  height: 18px;
}

.quick-submit-btn .arr {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.quick-submit-btn:hover {
  background: #E0356C;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(200, 46, 96, 0.5);
}

.quick-submit-btn:hover .arr {
  transform: translateX(4px);
}

.quick-modal-guarantee {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted-light);
}

.guarantee-line {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-light);
}

.guarantee-line svg {
  width: 15px;
  height: 15px;
  color: var(--brand-light);
}

.guarantee-line strong {
  color: #ffffff;
}

/* --- SUCCESS STATE --- */
.quick-modal-success {
  text-align: center;
  padding: 30px 10px;
}

.success-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1.5px solid #10B981;
  color: #10B981;
  font-size: 26px;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}

.quick-modal-success h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.quick-modal-success p {
  color: var(--muted-light);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* --- RESPONSIVE MEDIA QUERIES FOR HELPDESK MODAL --- */
@media (max-width: 820px) {
  .quick-modal-overlay:not([hidden]) {
    padding: 0;
  }

  .quick-modal-content {
    width: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0px !important;
    padding: 34px 22px 28px;
    overflow-y: auto;
  }

  .issue-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .issue-card {
    min-height: 82px;
    padding: 14px 16px;
    grid-template-columns: 44px 1fr 28px;
  }

  .input-with-icon input {
    height: 64px;
  }

  .quick-submit-btn {
    min-height: 68px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quick-modal-overlay,
  .quick-modal-content,
  .quick-submit-btn,
  .issue-card {
    transition: none !important;
    animation: none !important;
  }
}


/* =========================================================================
   v2 — DOPLŇKY (přístupnost, mapa, formulář, právní stránky)
   ========================================================================= */

/* Skrytý text pro čtečky a odkaz „Přeskočit na obsah“ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 12px 18px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

body.no-scroll {
  overflow: hidden;
}

/* Kontakt — popisek na karmínovém pozadí */
.contact .label {
  color: #F6D8E3;
}

/* Patička */
.footer-col a.footer-remote-link {
  color: var(--brand);
  font-weight: 700;
  margin-top: 8px;
}

.footer-credit {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted-light);
}

.footer-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credit a:hover {
  color: var(--brand);
}

/* Mapa načítaná až po kliknutí (bez cookies Google předem) */
.map-consent {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  background:
    linear-gradient(rgba(245, 243, 244, 0.92), rgba(245, 243, 244, 0.92)),
    repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 39px 40px);
  text-align: center;
}

.map-consent-inner {
  max-width: 620px;
}

.map-consent h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
  color: var(--ink);
}

.map-consent-note {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: var(--space-md);
}

.map-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.map-section iframe {
  width: 100%;
  height: 500px;
  border: 0;
}

/* Formulář */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.form-note a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-form .is-invalid {
  border-color: var(--brand);
}

.contact-form .submit.is-loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.contact-form .submit.is-loading span {
  display: none;
}

.form-error-message {
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
  text-align: center;
}

.form-error-msg a {
  color: inherit;
  text-decoration: underline;
}

/* Právní stránky a 404 */
.legal-page {
  padding: calc(var(--space-section) + 40px) 0 var(--space-section);
  background: var(--paper);
}

.legal-page .wrap {
  max-width: 860px;
}

.legal-page h1 {
  font-family: var(--font-heading);
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 12px 0 18px;
}

.legal-page h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.legal-page p + p {
  margin-top: 12px;
}

.legal-page ul {
  padding-left: 20px;
  margin: 8px 0;
}

.legal-page a {
  color: var(--brand);
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-light);
}

.legal-back {
  display: inline-block;
  margin-top: 48px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}



/* v3 — SVG sprite (ikony definované jednou, použité přes <use>) */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.hero-pill .pill-no {
  font-weight: 700;
}

.hero-stage-col .stage-title {
  font-family: var(--font-heading);
  line-height: 1.3;
}

.menu-toggle .menu-icon,
.hero-pill .arr,
.process-item .dot {
  font-style: normal;
}

/* =========================================================================
   STRÁNKA 404 — animace plošného spoje v pozadí (404.js + img/404-pcb.svg)
   ========================================================================= */
body.page-404 {
  background: #06070a;
  color: #fff;
}

.e404 {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #190912 0%, #09080d 39%, #050609 85%);
}

.e404-board {
  position: absolute;
  inset: 0;
  overflow: hidden;
  contain: paint;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
  -webkit-mask-image: radial-gradient(ellipse 38% 50% at center, transparent 42%, #000 88%);
  mask-image: radial-gradient(ellipse 38% 50% at center, transparent 42%, #000 88%);
}

.e404-board.is-ready {
  opacity: 0.9;
}

.e404-board::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 20%, rgba(5, 6, 9, 0.6) 100%);
}

#pcb-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#pcb-art .st0 {
  fill: #872346;
  opacity: 0.75;
}

#pcb-art .st1 {
  fill: #bd3c69;
  opacity: 0.7;
}

#pcb-art .circuit-base {
  fill: #65203b;
  opacity: 0.48;
}

#pcb-art .energy-path {
  fill: #c62d64;
  stroke: none;
  pointer-events: none;
}

#pcb-art .contact-flash {
  fill: none;
  stroke: #e94a87;
  stroke-width: 8;
  stroke-linecap: round;
  pointer-events: none;
}

.e404-center {
  position: relative;
  z-index: 2;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.e404-center::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 80px;
  width: 560px;
  height: 380px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(198, 45, 100, 0.4), transparent 68%);
  opacity: var(--halo-alpha, 0.35);
  z-index: -1;
  pointer-events: none;
}

.e404-logo {
  width: clamp(110px, 12vw, 170px);
  height: auto;
  filter: drop-shadow(0 0 var(--halo-size, 18px) rgba(198, 45, 100, 0.53));
}

.e404-code {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #e94a87;
}

.e404 h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 14px 0 16px;
  color: #fff;
}

.e404-text {
  max-width: 460px;
  font-size: 16px;
  line-height: 1.65;
  color: #cbb8c0;
}

.e404-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: center;
  align-items: center;
}

.e404-secondary {
  color: #e8b6c8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.e404-secondary:hover {
  color: #fff;
}

@media (max-aspect-ratio: 3/4) {
  .e404-board {
    -webkit-mask-image: radial-gradient(ellipse 62% 36% at 50% 50%, transparent 30%, #000 92%);
    mask-image: radial-gradient(ellipse 62% 36% at 50% 50%, transparent 30%, #000 92%);
  }
}

@media (prefers-reduced-motion: reduce) {
  #energy {
    display: none;
  }

  .e404-board {
    transition: none;
  }
}
