/* =========================================
   PROMPT 2 SERVIS s.r.o. — styles.css
   =========================================

   0. CSS CUSTOM PROPERTIES
   1. RESET & BASE
   2. TYPOGRAPHY
   3. LAYOUT UTILITIES
   4. COMPONENTS
      4a. Buttons
      4b. Cards
      4c. Section Headers
      4d. Badges
      4e. Comparison Table
      4f. Process Stepper
      4g. Count-up Stats
      4h. Logo Grid
      4i. PDF Viewer
      4j. Forms
      4k. Alerts
   5. HEADER & NAVIGATION
   6. HERO
   7. FOOTER
   8. PAGE HERO (inner pages)
   9. PAGE-SPECIFIC
      9a. index.html
      9b. sluzby.html
      9c. produkty.html
      9d. kvalita.html
      9e. ke-stazeni.html
      9f. kariera.html
      9g. kontakt.html
  10. ANIMATIONS
  11. MEDIA QUERIES
   ========================================= */

/* =========================================
   0. CSS CUSTOM PROPERTIES
   ========================================= */
:root {
  /* Brand colours */
  --primary:          #2A2A53;
  --primary-hover:    #3a3a6e;
  --primary-soft:     #D5E2EE;
  --secondary:        #2E89C4;
  --secondary-hover:  #3a9ad5;

  /* Surfaces */
  --bg:               #FFFFFF;
  --bg-alt:           #F5F7F8;
  --bg-dark:          #1a1a3a;

  /* Text */
  --text:             #1E2A32;
  --text-muted:       #5D6670;
  --text-light:       #8A95A0;
  --text-on-dark:     #FFFFFF;

  /* UI */
  --border:           #E3E8EB;
  --border-focus:     #2E89C4;
  --radius-sm:        6px;
  --radius:           12px;
  --radius-lg:        20px;
  --radius-xl:        32px;

  /* Shadows */
  --shadow-sm:        0 1px 3px rgba(42,42,83,.07), 0 1px 2px rgba(42,42,83,.05);
  --shadow-md:        0 4px 12px rgba(42,42,83,.10), 0 2px 4px rgba(42,42,83,.06);
  --shadow-lg:        0 10px 30px rgba(42,42,83,.13);
  --shadow-xl:        0 20px 60px rgba(42,42,83,.16);

  /* Typography */
  --font-stack:       -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                      "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-size-xs:     0.75rem;   /* 12px */
  --font-size-sm:     0.875rem;  /* 14px */
  --font-size-base:   1rem;      /* 16px */
  --font-size-lg:     1.125rem;  /* 18px */
  --font-size-xl:     1.25rem;   /* 20px */
  --font-size-2xl:    1.5rem;    /* 24px */
  --font-size-3xl:    1.875rem;  /* 30px */
  --font-size-4xl:    2.25rem;   /* 36px */
  --font-size-5xl:    3rem;      /* 48px */

  /* Spacing (8px base) */
  --sp-1:  0.5rem;   /*  8px */
  --sp-2:  1rem;     /* 16px */
  --sp-3:  1.5rem;   /* 24px */
  --sp-4:  2rem;     /* 32px */
  --sp-5:  3rem;     /* 48px */
  --sp-6:  4rem;     /* 64px */
  --sp-7:  6rem;     /* 96px */
  --sp-8:  8rem;     /* 128px */

  /* Layout */
  --container-max:    1200px;
  --container-px:     var(--sp-3);
  --header-h:         72px;
  --section-py:       var(--sp-7);

  /* Transitions */
  --t-fast:           150ms ease;
  --t-base:           250ms ease;
  --t-slow:           400ms ease;

  /* Animations */
  --anim-duration:    0.6s;
  --anim-delay-step:  0.1s;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --anim-duration:   0.01s;
    --anim-delay-step: 0s;
    --t-fast:          0s;
    --t-base:          0s;
    --t-slow:          0s;
  }
}

/* =========================================
   1. RESET & BASE
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  font-size: var(--font-size-base);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--secondary-hover); }

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
}

table { border-collapse: collapse; }

/* Anchor offset for sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-2);
  z-index: 9999;
  padding: var(--sp-1) var(--sp-2);
  background: var(--primary);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0; }

/* Screen-reader only */
.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;
}

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

h1 { font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl)); }
h2 { font-size: clamp(var(--font-size-2xl), 3.5vw, var(--font-size-4xl)); }
h3 { font-size: clamp(var(--font-size-xl), 2.5vw, var(--font-size-3xl)); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p { margin-bottom: var(--sp-2); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }
em { font-style: italic; }

.text-muted  { color: var(--text-muted); }
.text-small  { font-size: var(--font-size-sm); }
.text-center { text-align: center; }
.text-lead   { font-size: var(--font-size-lg); line-height: 1.7; }

/* =========================================
   3. LAYOUT UTILITIES
   ========================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section {
  padding-block: var(--section-py);
}
.section--alt  { background-color: var(--bg-alt); }
.section--dark {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--text-on-dark); }

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--sp-6);
}
.section__eyebrow {
  display: inline-block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: var(--sp-1);
}
.section__title {
  font-size: clamp(var(--font-size-2xl), 3.5vw, var(--font-size-4xl));
  margin-bottom: var(--sp-2);
}
.section--dark .section__eyebrow { color: var(--primary-soft); }

.section__subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  margin-bottom: 0;
}
.section--dark .section__subtitle { color: rgba(255,255,255,.7); }

/* Grid system */
.grid {
  display: grid;
  gap: var(--sp-3);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* Flex utilities */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-gap    { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

/* =========================================
   4a. BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  padding: 0.75rem 1.5rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-base), border-color var(--t-base),
              color var(--t-base), box-shadow var(--t-base), transform var(--t-fast);
  white-space: nowrap;
  user-select: none;
}
.btn:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}
.btn--secondary:hover {
  background-color: var(--secondary-hover);
  border-color: var(--secondary-hover);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn--outline:hover {
  background-color: var(--primary);
  color: #fff;
}

.btn--outline-white {
  background-color: transparent;
  border-color: rgba(255,255,255,.6);
  color: #fff;
}
.btn--outline-white:hover {
  background-color: rgba(255,255,255,.15);
  border-color: #fff;
  color: #fff;
}

.btn--ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--secondary);
  padding-inline: 0.5rem;
}
.btn--ghost:hover { color: var(--secondary-hover); }

.btn--lg {
  padding: 1rem 2rem;
  font-size: var(--font-size-lg);
  border-radius: var(--radius-lg);
}
.btn--sm {
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
}
.btn--full { width: 100%; }

/* =========================================
   4b. CARDS
   ========================================= */
.card {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: var(--sp-4);
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.card--hover:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card--featured {
  background: var(--primary-soft);
  border-color: var(--secondary);
  border-left: 4px solid var(--secondary);
}
.card--icon { text-align: center; }
.card__icon {
  width: 80px;
  height: 80px;
  background: var(--primary-soft);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-2);
  overflow: hidden;
}
.card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}
.card--hover:hover .card__icon img {
  transform: scale(1.08);
}
.card--icon .card__icon { margin-inline: auto; }
.card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--sp-1);
  color: var(--primary);
}
.card__text { color: var(--text-muted); margin-bottom: 0; }
.card__list {
  margin-top: var(--sp-2);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.card__list-item {
  display: flex;
  gap: var(--sp-1);
  align-items: flex-start;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}
.card__list-item::before {
  content: "✓";
  color: var(--secondary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.card__footer {
  margin-top: var(--sp-3);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--border);
}

/* =========================================
   4c. SECTION HEADERS — see §3
   ========================================= */

/* =========================================
   4d. BADGES
   ========================================= */
.badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
}
.badge--secondary {
  background: rgba(46,137,196,.15);
  color: var(--secondary);
}

/* =========================================
   4e. COMPARISON TABLE
   ========================================= */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.services-table {
  width: 100%;
  font-size: var(--font-size-sm);
}
.services-table thead {
  background: var(--primary);
  color: #fff;
}
.services-table th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: var(--font-size-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.services-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.services-table tbody tr:last-child td { border-bottom: none; }
.services-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.services-table tbody tr:hover { background: var(--primary-soft); }

/* =========================================
   4f. PROCESS STEPPER
   ========================================= */
.stepper {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: var(--sp-2);
}
.stepper__step {
  text-align: center;
  padding: var(--sp-3);
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.stepper__step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.stepper__number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: var(--font-size-xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-2);
  box-shadow: 0 4px 12px rgba(42,42,83,.3);
}
.stepper__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--sp-1);
}
.stepper__desc {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}
.stepper__connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 38px; /* align with center of circle */
  color: var(--secondary);
  font-size: 1.5rem;
}
.stepper__connector::before { content: "→"; }

/* =========================================
   4g. COUNT-UP STATS
   ========================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-4);
  text-align: center;
}
.stat-item {}
.stat-item__number {
  font-size: clamp(var(--font-size-4xl), 6vw, 4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--primary-soft);
  display: inline;
}
.section--dark .stat-item__number { color: #fff; }
.stat-item__value-wrap {
  font-size: clamp(var(--font-size-4xl), 6vw, 4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--primary-soft);
  margin-bottom: var(--sp-1);
}
.section--dark .stat-item__value-wrap { color: #fff; }
.stat-item__suffix {
  font-size: clamp(var(--font-size-2xl), 3vw, var(--font-size-3xl));
  font-weight: 700;
  color: var(--secondary);
}
.section--dark .stat-item__suffix { color: var(--primary-soft); }
.stat-item__label {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* =========================================
   4h. LOGO GRID (References)
   ========================================= */
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
}
.logo-grid__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 140px;
  height: 72px;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: box-shadow var(--t-base);
}
.logo-grid__item:hover { box-shadow: var(--shadow-md); }

/* =========================================
   4i. PDF VIEWER
   ========================================= */
.pdf-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.pdf-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.pdf-block__title {
  font-size: var(--font-size-xl);
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.pdf-block__meta {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: 0;
}
.pdf-block__viewer { padding: var(--sp-3); }
.pdf-iframe {
  width: 100%;
  height: 75vh;
  min-height: 500px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: block;
}
[hidden] { display: none !important; }
.pdf-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-7) var(--sp-4);
  text-align: center;
}
.pdf-fallback__icon {
  font-size: 4rem;
  color: var(--text-muted);
}
.pdf-fallback__title {
  font-size: var(--font-size-2xl);
  color: var(--primary);
}
.pdf-fallback__text {
  color: var(--text-muted);
  max-width: 400px;
  margin-bottom: 0;
}

/* =========================================
   4j. FORMS
   ========================================= */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.form-group--full { grid-column: 1 / -1; }

.form-group__label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text);
}
.required { color: var(--secondary); }

.form-group__input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-base);
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
}
.form-group__input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(46,137,196,.2);
}
.form-group__input:invalid:not(:placeholder-shown) {
  border-color: #e53e3e;
}
.form-group__input.has-error { border-color: #e53e3e; }

textarea.form-group__input {
  resize: vertical;
  min-height: 120px;
}
select.form-group__input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235D6670' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group__input--file {
  padding: 0.5rem;
  cursor: pointer;
}

.form-group__hint {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-bottom: 0;
}
.form-group__error {
  font-size: var(--font-size-xs);
  color: #e53e3e;
  font-weight: 600;
  margin-bottom: 0;
  display: none;
}
.form-group__error.is-visible { display: block; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.form-check__input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--secondary);
}
.form-check__label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.5;
}
.form-check__label a { color: var(--secondary); }

.form__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}

/* =========================================
   4k. ALERTS
   ========================================= */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--sp-3);
}
.alert[hidden] { display: none; }
.alert--success {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}
.alert--error {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}
.alert--info {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e40af;
}

/* =========================================
   5. HEADER & NAVIGATION
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow var(--t-base);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.header__logo img {
  height: 44px;
  width: auto;
}

.nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav__link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background-color var(--t-fast);
  white-space: nowrap;
}
.nav__link:hover {
  color: var(--primary);
  background-color: var(--bg-alt);
}
.nav__link.is-active {
  color: var(--primary);
  font-weight: 700;
  background-color: var(--primary-soft);
}

.header__cta { flex-shrink: 0; }

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  gap: 5px;
  flex-shrink: 0;
  transition: background-color var(--t-fast);
}
.hamburger:hover { background-color: var(--bg-alt); }
.hamburger__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-fast);
}

/* Hamburger open state */
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay
   NOTE: .site-header has backdrop-filter which on iOS Safari creates
   a new containing block for fixed descendants. JS moves .nav to <body>
   when opening the menu and back into header when closing, so that
   position:fixed works correctly relative to the viewport. */
.nav.is-open {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(255,255,255,.98);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: var(--sp-2);
  border-top: 1px solid var(--border);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav.is-open .nav__list {
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
}
.nav.is-open .nav__link {
  padding: 0.875rem var(--sp-2);
  font-size: var(--font-size-base);
  border-radius: var(--radius);
}

/* Mobile-only CTA in nav */
.nav__item--cta { display: none; }
.nav.is-open .nav__item--cta {
  display: block;
  padding: 0.5rem var(--sp-2);
  margin-top: 0.5rem;
}
.header__cta-mobile {
  display: block;
  text-align: center;
  width: 100%;
}

/* Main content offset for fixed header */
main { padding-top: var(--header-h); }

/* =========================================
   6. HERO
   ========================================= */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, #1e4a7a 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 50%, rgba(46,137,196,.25) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(213,226,238,.1) 0%, transparent 40%);
  pointer-events: none;
}
.hero__photo {
  position: absolute;
  inset: 0;
  background-image: image-set(
    url('/assets/img/hero-industrial-hall.webp') type('image/webp'),
    url('/assets/img/hero-industrial-hall.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-position: center right;
  opacity: 0.18; /* jemný hint fotky pod gradientem — upravit na 0.12–0.25 dle vkusu */
  pointer-events: none;
  z-index: 0;
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 740px;
  padding-block: var(--sp-8);
  color: #fff;
}
.hero__eyebrow {
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-soft);
  margin-bottom: var(--sp-2);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.hero__eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
}
.hero__title {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: var(--sp-3);
}
.hero__title--accent { color: var(--secondary); }
.hero__subtitle {
  font-size: clamp(var(--font-size-base), 2vw, var(--font-size-xl));
  line-height: 1.6;
  color: rgba(255,255,255,.8);
  margin-bottom: var(--sp-5);
  max-width: 580px;
}
.hero__actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}
.hero__badge {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
}

/* =========================================
   7. FOOTER
   ========================================= */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.8);
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-3);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-5);
}
.footer__heading {
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: var(--sp-2);
}
.footer__tagline {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,.6);
  margin-top: var(--sp-2);
  line-height: 1.6;
  margin-bottom: var(--sp-3);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer__links a {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,.7);
  transition: color var(--t-fast);
}
.footer__links a:hover { color: #fff; }

.footer__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.footer__address p {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,.7);
  margin-bottom: 0;
}
.footer__address a {
  color: rgba(255,255,255,.7);
  font-size: var(--font-size-sm);
}
.footer__address a:hover { color: #fff; }

.footer__hours p {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,.7);
  margin-bottom: 0.25rem;
}
.footer__hours strong { color: #fff; }

.footer__cert {
  display: flex;
  gap: var(--sp-1);
  flex-wrap: wrap;
  margin-top: var(--sp-2);
}
.footer__cert .badge {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.2);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--sp-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-1);
}
.footer__bottom p {
  font-size: var(--font-size-xs);
  color: rgba(255,255,255,.4);
  margin-bottom: 0;
}

/* =========================================
   8. PAGE HERO (inner pages)
   ========================================= */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e4a7a 100%);
  padding: var(--sp-7) 0 var(--sp-6);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(46,137,196,.2) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero__content { position: relative; z-index: 1; }
.page-hero__eyebrow {
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-soft);
  margin-bottom: var(--sp-1);
}
.page-hero__title {
  font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--sp-2);
}
.page-hero__subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255,255,255,.8);
  max-width: 600px;
  margin-bottom: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--sp-3);
  font-size: var(--font-size-sm);
}
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb__sep { color: rgba(255,255,255,.3); }
.breadcrumb__current { color: rgba(255,255,255,.9); }

/* =========================================
   9a. INDEX.HTML — Pillars
   ========================================= */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--sp-3);
}

/* Company intro split */
.intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: center;
}
.intro-split__text {}
.intro-split__aside {}

.history-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.history-item {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
}
.history-item__year {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--secondary);
  min-width: 48px;
  padding-top: 2px;
}
.history-item__text {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1e4a7a 100%);
  padding: var(--sp-7) 0;
  color: #fff;
  text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: var(--sp-2); }
.cta-section p { color: rgba(255,255,255,.8); margin-bottom: var(--sp-4); }
.cta-section .flex-gap { justify-content: center; }

/* =========================================
   9b. SLUZBY.HTML
   ========================================= */
.service-card {
  padding: var(--sp-4);
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.service-card__header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--primary-soft);
}
.service-card__icon {
  width: 72px;
  height: 72px;
  background: var(--primary-soft);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  color: var(--secondary);
}
.service-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}
.service-card:hover .service-card__icon img {
  transform: scale(1.08);
}
.service-card__icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}
.service-card__title {
  font-size: var(--font-size-xl);
  color: var(--primary);
  margin-bottom: 0;
}
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--sp-3);
}
.service-list li {
  display: flex;
  gap: var(--sp-1);
  align-items: flex-start;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}
.service-list li::before {
  content: "✓";
  color: var(--secondary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* =========================================
   9c. PRODUKTY.HTML
   ========================================= */
.product-category {
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--border);
}
.product-category:last-child { border-bottom: none; }
.product-category__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-5);
  align-items: start;
}
.product-category__aside {}
.product-category__icon-wrap {
  width: 100px;
  height: 100px;
  background: var(--primary-soft);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-2);
  overflow: hidden;
}
.product-category__icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}
.product-category__aside:hover .product-category__icon-wrap img {
  transform: scale(1.06);
}
.product-category__eyebrow {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
  margin-bottom: var(--sp-1);
}
.product-category__title {
  font-size: var(--font-size-2xl);
  color: var(--primary);
  margin-bottom: var(--sp-2);
}
.product-category__text { color: var(--text-muted); margin-bottom: var(--sp-3); }

/* Tork featured card */
.tork-card {
  background: var(--primary-soft);
  border: 1px solid var(--secondary);
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius);
  padding: var(--sp-3);
  margin-top: var(--sp-3);
}
.tork-card__title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--sp-1);
}

/* =========================================
   9d. KVALITA.HTML
   ========================================= */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--sp-3);
}
.quality-stat {
  text-align: center;
  padding: var(--sp-5) var(--sp-3);
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.quality-stat__number {
  font-size: clamp(var(--font-size-4xl), 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  margin-bottom: var(--sp-1);
}
.quality-stat__suffix {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--secondary);
}
.quality-stat__label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ISO certs */
.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  max-width: 760px;
  margin: 0 auto;
}
.cert-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 2px solid var(--primary-soft);
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.cert-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.cert-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.cert-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}
.cert-card:hover .cert-card__image img {
  transform: scale(1.04);
}
.cert-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
}
.cert-card__number {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0;
}
.cert-card__name {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* =========================================
   9e. KE-STAZENI.HTML — see §4i
   ========================================= */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.doc-card {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.doc-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text);
}
.doc-card__icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.doc-card__info { flex: 1; min-width: 0; }
.doc-card__title {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--primary);
}
.doc-card__meta {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Map click-to-load (GDPR) */
.map-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: 360px;
  background: var(--bg-alt);
  text-align: center;
  padding: var(--sp-3);
  cursor: pointer;
}
.map-placeholder__icon { color: var(--secondary); margin-bottom: var(--sp-2); }
.map-placeholder__icon svg { width: 48px; height: 48px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.map-placeholder__title { color: var(--primary); font-size: var(--font-size-xl); margin-bottom: var(--sp-1); }
.map-placeholder__text { color: var(--text-muted); font-size: var(--font-size-sm); margin-bottom: 0; }

/* =========================================
   9f. KARIERA.HTML
   ========================================= */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.benefit-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.benefit-item__icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.benefit-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}
.benefit-item:hover .benefit-item__icon img {
  transform: scale(1.08);
}
.benefit-item__title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.benefit-item__text {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: 0;
}

/* =========================================
   9g. KONTAKT.HTML
   ========================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  align-items: start;
}
.contact-info {}
.contact-info__item {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  margin-bottom: var(--sp-3);
}
.contact-info__icon {
  width: 44px;
  height: 44px;
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--secondary);
}
.contact-info__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}
.contact-info__label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.contact-info__value {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text);
}
.contact-info__value a {
  color: var(--text);
  font-weight: 600;
}
.contact-info__value a:hover { color: var(--secondary); }

.contact-map {
  width: 100%;
  height: 360px;
  border: none;
  border-radius: var(--radius);
  display: block;
}

/* =========================================
   10. ANIMATIONS
   ========================================= */
.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--anim-duration) ease,
    transform var(--anim-duration) ease;
}
.js-reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Stagger delays for grid children */
.js-reveal:nth-child(1)  { transition-delay: 0s; }
.js-reveal:nth-child(2)  { transition-delay: var(--anim-delay-step); }
.js-reveal:nth-child(3)  { transition-delay: calc(var(--anim-delay-step) * 2); }
.js-reveal:nth-child(4)  { transition-delay: calc(var(--anim-delay-step) * 3); }
.js-reveal:nth-child(5)  { transition-delay: calc(var(--anim-delay-step) * 4); }
.js-reveal:nth-child(6)  { transition-delay: calc(var(--anim-delay-step) * 5); }

/* =========================================
   11. MEDIA QUERIES
   ========================================= */

/* Tablet — ≤1024px */
@media (max-width: 1024px) {
  :root {
    --section-py: var(--sp-6);
    --container-px: var(--sp-3);
  }

  .stepper {
    grid-template-columns: 1fr;
  }
  .stepper__connector {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
  }

  .intro-split { grid-template-columns: 1fr; gap: var(--sp-4); }
  .product-category__inner { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile nav — ≤768px */
@media (max-width: 768px) {
  :root {
    --section-py: var(--sp-5);
    --container-px: var(--sp-2);
  }

  .hamburger { display: flex; margin-left: auto; }
  .nav:not(.is-open) { display: none; }
  .header__cta { display: none; }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .form-grid { grid-template-columns: 1fr; }
  .form__actions { justify-content: stretch; }
  .form__actions .btn { width: 100%; }

  .hero__content { padding-block: var(--sp-6); }
  .hero__title { font-size: clamp(1.75rem, 7vw, 2.5rem); }

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

  .pdf-iframe { height: 50vh; min-height: 300px; }
  .benefits-grid { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .footer__bottom { flex-direction: column; }
}

/* Small mobile — ≤480px */
@media (max-width: 480px) {
  :root {
    --container-px: var(--sp-2);
  }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; text-align: center; }

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

  .btn--lg {
    padding: 0.875rem 1.5rem;
    font-size: var(--font-size-base);
  }
}

/* Focus visible for keyboard users */
*:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}
