/* ==========================================================================
   CALSTAT s.r.o. — Brand styles
   Primary: #00468C  | Accent: #5CA9FF | Navy: #0A1022 | Surface: #F8FAFC
   Font: Inter (400 / 500 / 600 / 900)
   ========================================================================== */

/* -------- Reset & base -------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand-blue: #00468C;
  --color-heading: #2A3550;
  --action-blue: #5CA9FF;
  --navy: #0A1022;
  --navy-elevated: #15254C;
  --surface: #F8FAFC;
  --text: #0F172A;
  --text-muted: #475569;
  --white: #FFFFFF;
  --border: #E2E8F0;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --container: 1500px;
  --header-h: 96px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

.heading-color { color: var(--color-heading); }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--brand-blue);
  color: var(--white) !important;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s var(--ease);
  box-shadow: var(--shadow-lg);
}

.skip-link:focus-visible {
  top: 20px;
  outline: 3px solid var(--action-blue);
  outline-offset: 2px;
}

main#main-content:focus {
  outline: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Material Symbols defaults — Sharp, fill 1, weight 300, grade 200, optical 24 */
.material-symbols-sharp {
  font-variation-settings:
    'FILL' 1,
    'wght' 300,
    'GRAD' 200,
    'opsz' 24;
}

/* -------- Layout -------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

/* -------- Logo -------- */
.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.logo .logo-cal { color: var(--brand-blue); }
.logo .logo-stat { color: var(--black); }
.logo .logo-sro { color: var(--brand-blue); }

.logo.logo-dark .logo-cal { color: var(--brand-blue); }
.logo.logo-dark .logo-stat { color: var(--white); }
.logo.logo-dark .logo-sro { color: var(--brand-blue); }

/* -------- Header -------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  height: var(--header-h);
  transition: background 0.3s var(--ease), 
              box-shadow 0.3s var(--ease), 
              transform 0.4s var(--ease), 
              opacity 0.4s var(--ease);
  transform: translateY(0);
  opacity: 1;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.site-header.header-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
}

.main-nav { margin-left: auto; }

.site-header .logo {
  font-size: clamp(27px, 4.5vw, 50px);
}


.main-nav {
  display: none;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--brand-blue);
  transition: width 0.25s var(--ease);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brand-blue);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.site-header .header-cta {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav,
  .site-header .header-cta { display: flex; }
}

@media (max-width: 1023px) {
  :root {
    --header-h: 134px; /* Vyšší výška hlavičky na mobilech a tabletech pro umístění spodního tlačítka */
  }

  .site-header .container {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 12px 0;
    align-items: center;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .site-header .logo {
    grid-column: 1;
    grid-row: 1;
  }

  .hamburger {
    grid-column: 2;
    grid-row: 1;
    margin-left: auto;
  }

  .site-header .header-cta {
    grid-column: 1 / 3;
    grid-row: 2;
    display: flex; /* Zobrazíme tlačítko "Zavolejte nám" pod logem a hamburgerem */
    width: 100%;
    padding: 10px 16px; /* Kompaktnější padding pro uvolnění místa */
    font-size: 13.5px;
    letter-spacing: 0.08em;
    justify-content: center;
  }
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  margin-right: -10px;
  margin-left: auto; /* Zarovnání hamburger menu doprava na mobilech */
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
  .hamburger { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 99;
  padding: 32px 24px;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu nav a {
  font-size: 23px;
  font-weight: 600;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.mobile-menu .btn { margin-top: 32px; width: 100%; }

@media (min-width: 1024px) {
  .mobile-menu { display: none; }
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: transform 0.2s var(--ease),
              background 0.25s var(--ease),
              color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn .material-symbols-sharp {
  font-size: 20px;
  transition: transform 0.25s var(--ease);
}

.btn:hover .material-symbols-sharp { transform: translateX(4px); }

.btn-primary {
  background: var(--brand-blue);
  color: var(--white);
}
.btn-primary:hover {
  background: #003975;
  box-shadow: 0 12px 28px rgba(0, 70, 140, 0.32);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-light {
  background: var(--white);
  color: var(--brand-blue);
}
.btn-light:hover {
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.btn-header {
  padding: 16px 32px;
  font-size: 15px;
}

/* -------- Hero -------- */
.hero {
  position: relative;
  color: var(--white);
  background: var(--navy);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-video.is-loaded {
  opacity: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(10, 16, 34, 0.92) 0%,
    rgba(10, 16, 34, 0.78) 35%,
    rgba(0, 70, 140, 0.55) 70%,
    rgba(0, 70, 140, 0.45) 100%
  );
  z-index: 1;
}

.hero-intro {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  padding-bottom: 60px;
}

.hero-pain {
  position: relative;
  z-index: 2;
  padding: 60px 0 80px;
}

.hero-content {
  max-width: 1060px;
}

.eyebrow {
  display: inline-block;
  padding: 8px 18px;
  background: var(--brand-blue);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 6px;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(32px, 6.5vw, 84px); /* Optimalizovaná velikost na úzkých mobilech */
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 .accent {
  display: block;
  color: var(--action-blue);
}

.hero p.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-ctas .btn {
  flex: 1;
}

@media (max-width: 479px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
    flex: none;
  }
}

.hero-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .hero-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.feature-card {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: none;
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  color: var(--white);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.feature-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.18);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  margin-bottom: 16px;
}

.feature-icon .material-symbols-sharp {
  font-size: 44px;
  color: var(--white);
}

.feature-card h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

/* -------- Why-CALSTAT section -------- */
.why {
  padding: 120px 0 120px;
  background: var(--white);
}

@media (max-width: 767px) {
  .why { padding: 80px 0 80px; }
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 80px;
  }
}

.section-eyebrow {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 20px;
  position: relative;
  padding-left: 0;
}

.why-content h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-heading);
  margin-bottom: 24px;
}

.why-content > p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 520px;
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 12px;
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}

.bullet-list li .material-symbols-sharp {
  color: var(--brand-blue);
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.bullet-list li strong {
  font-weight: 600;
  color: var(--text);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue);
  transition: gap 0.25s var(--ease);
}

.link-arrow .material-symbols-sharp {
  font-size: 20px;
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover { gap: 16px; }
.link-arrow:hover .material-symbols-sharp { transform: translateX(4px); }

/* -------- Stats / Bento grid -------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .stats-grid { gap: 20px; }
}

/* Bento: karta 2 a 3 jsou wide (2 sloupce) */
.stats-grid .stat-card:nth-child(2) { grid-column: span 2; }
.stats-grid .stat-card:nth-child(3) { grid-column: span 2; }

@media (max-width: 767px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat-card:nth-child(2),
  .stats-grid .stat-card:nth-child(3) { grid-column: span 1; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; } /* Přechod na 1 sloupec na úzkých mobilech */
  .stats-grid .stat-card:nth-child(2),
  .stats-grid .stat-card:nth-child(3) { grid-column: span 1; }
}

.stat-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 48px rgba(0, 70, 140, 0.18);
}

.stat-card .stat-number {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.stat-card .stat-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stat-card .stat-desc {
  font-size: 14.5px;
  line-height: 1.55;
}

.stat-light {
  background: var(--surface);
  color: var(--brand-blue);
}
.stat-light .stat-label { color: var(--brand-blue); }
.stat-light .stat-desc { color: var(--text-muted); }
.stat-light:hover {
  background-color: var(--brand-blue);
  color: var(--white);
  box-shadow: 0 24px 48px rgba(0, 70, 140, 0.3);
}
.stat-light:hover .stat-label { color: rgba(255, 255, 255, 0.75); }
.stat-light:hover .stat-desc { color: rgba(255, 255, 255, 0.78); }

.stat-primary {
  background: var(--brand-blue);
  color: var(--white);
}
.stat-primary .stat-label { color: rgba(255, 255, 255, 0.75); }
.stat-primary .stat-desc { color: rgba(255, 255, 255, 0.72); }
.stat-primary:hover {
  background-color: #00366e;
  box-shadow: 0 24px 48px rgba(0, 70, 140, 0.38);
}

.stat-dark {
  background: #1F2937;
  color: var(--white);
}
.stat-dark .stat-label { color: rgba(255, 255, 255, 0.65); }
.stat-dark .stat-desc { color: rgba(255, 255, 255, 0.62); }
.stat-dark:hover {
  background-color: #111827;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.42);
}

/* -------- CTA strip -------- */
.cta-strip {
  background: var(--brand-blue);
  color: var(--white);
  padding: 100px 0;
  text-align: center;
}

.cta-strip h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.cta-strip p {
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 36px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* -------- Footer -------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 60px;
  }
}

.footer-brand .logo {
  margin-bottom: 20px;
  font-size: 24px;
}

.footer-brand p {
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 360px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 22px;
  letter-spacing: -0.005em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s var(--ease);
}

.footer-col ul a:hover { color: var(--action-blue); }

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.contact-list .material-symbols-sharp {
  color: var(--action-blue);
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.contact-list a:hover { color: var(--action-blue); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

/* -------- Reveal-on-scroll -------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ==========================================================================
   SUBPAGES — shared patterns
   ========================================================================== */

/* -------- Page hero with image + glass card -------- */
.page-hero-image {
  position: relative;
  min-height: 420px;
  padding: calc(var(--header-h) + 80px) 0 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0f172a;
}

.page-hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg, none);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.page-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.page-hero-video.is-loaded {
  opacity: 1;
}

.page-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(15, 23, 42, 0.40) 0%,
    rgba(15, 23, 42, 0.15) 60%,
    rgba(15, 23, 42, 0.05) 100%
  );
  z-index: 1;
}

.page-hero-image .container {
  position: relative;
  z-index: 2;
}

.glass-card {
  background: rgba(255, 255, 255, 0.50);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 520px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.eyebrow-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 15px;
}

.glass-card .eyebrow-text {
  display: block;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 18px;
}

.glass-card h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-heading);
  margin-bottom: 22px;
}

.glass-card p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
}

@media (max-width: 640px) {
  .glass-card { padding: 30px 24px; }
}

/* -------- Plain page header (Kontakt, Realizace) -------- */
.page-header-plain {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 80px;
  background: linear-gradient(135deg, #0f172a 0%, #1a2f4e 60%, #2A3550 100%);
  overflow: hidden;
}

.page-header-plain h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-heading);
  margin-bottom: 18px;
}

.page-header-plain p {
  font-size: 17.5px;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.6;
}

/* -------- Light page header (no video, white bg) -------- */
.page-header-light {
  padding: calc(var(--header-h) + 80px) 0 0px;
  background: var(--white);
}

.page-header-light h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-heading);
  margin-bottom: 22px;
}

.page-header-light .eyebrow-text {
  display: block;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 18px;
}

.page-header-light p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 640px;
}

.page-header-light .project-stats {
  margin-bottom: 0;
}

/* -------- Service cards (Sluzby) -------- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 48px 0 0;
}

@media (min-width: 768px) {
  .service-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 70, 140, 0.2);
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.service-icon-wrap {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 70, 140, 0.08);
  border-radius: 12px;
  flex-shrink: 0;
}

.service-icon-wrap .material-symbols-sharp {
  color: var(--brand-blue);
  font-size: 26px;
}

.service-card h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: -0.01em;
}

.service-card > p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.service-card .bullet-list li {
  font-size: 15.5px;
}

.service-card .bullet-list .material-symbols-sharp {
  font-size: 18px;
}

/* -------- Section heading -------- */
.section-head {
  text-align: left;
  margin-bottom: 48px;
}

.section-head.center { text-align: center; }

.section-head h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-heading);
  margin-top: 14px;
  margin-bottom: 12px;
}

.section-head p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
}

.section-head.center p { margin-left: auto; margin-right: auto; }

/* Section heading font — Montserrat Black, same as h1 */
.why-content h2,
.section-head h2,
.mission-block h2,
.contact-intro h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
}

/* Section spacing utility */
.section {
  padding: 80px 0;
}

@media (max-width: 767px) {
  .section { padding: 56px 0; }
}

.section-alt { background: var(--surface); }

/* -------- Building types (Sluzby) -------- */
.types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .types-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

.type-item {
  text-align: center;
  padding: 16px;
}

.type-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 70, 140, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.type-item:hover .type-icon {
  background: var(--brand-blue);
  transform: translateY(-4px);
}

.type-icon .material-symbols-sharp {
  font-size: 36px;
  color: var(--brand-blue);
  transition: color 0.3s var(--ease);
}

.type-item:hover .type-icon .material-symbols-sharp { color: var(--white); }

.type-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.type-item p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* -------- Process steps -------- */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .process-steps { grid-template-columns: repeat(5, 1fr); gap: 28px; }
}

.process-step {
  position: relative;
}

.process-step .step-num {
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  color: rgba(0, 70, 140, 0.18);
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}

.process-step h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 8px;
}

.process-step p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* -------- Project stats (Realizace) -------- */
.project-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0 64px;
}

@media (min-width: 768px) {
  .project-stats { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.stat-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
}

.stat-pill .stat-num {
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 900;
  color: var(--brand-blue);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.stat-pill .stat-text {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* -------- Projects grid (Realizace) -------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .projects-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

.project-card {
  display: block;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}

.project-card-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--surface);
  margin-bottom: 18px;
  position: relative;
}

.project-card-img > * {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.project-card:hover .project-card-img > * { transform: scale(1.04); }

.project-card h2 {
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  color: var(--color-heading);
  letter-spacing: -0.01em;
  line-height: 1.3;
  transition: color 0.2s var(--ease);
}

.project-card:hover h2 { color: var(--brand-blue); }

/* -------- Placeholder image -------- */
.placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(
      135deg,
      #eef2f7 0,
      #eef2f7 12px,
      #e2e8f0 12px,
      #e2e8f0 13px
    );
  color: var(--text-muted);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}

/* -------- Project detail (Realizace detail) -------- */
.project-back-bar {
  padding-top: calc(var(--header-h) + 24px);
  background: var(--white);
  padding-bottom: 8px;
}

.project-back-bar .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-blue);
  transition: color 0.2s var(--ease);
}

.project-back-bar .back-link .material-symbols-sharp {
  font-size: 20px;
  transition: transform 0.25s var(--ease);
}

.project-back-bar .back-link:hover {
  color: #00366e;
}

.project-back-bar .back-link:hover .material-symbols-sharp {
  transform: translateX(-4px);
}

.project-gallery {
  padding: 16px 0 60px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr 1.4fr;
    grid-auto-rows: 280px;
    gap: 22px;
  }

  .gallery-grid .g-1 { grid-column: 1 / 2; grid-row: 1 / 2; }
  .gallery-grid .g-2 { grid-column: 2 / 3; grid-row: 1 / 2; }
  .gallery-grid .g-3 { grid-column: 3 / 4; grid-row: 1 / 3; }
  .gallery-grid .g-4 { grid-column: 1 / 3; grid-row: 2 / 3; }
}

.gallery-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  height: 100%;
  min-height: 240px;
}

.gallery-img > * {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-img {
  cursor: pointer;
}

.gallery-img img {
  transition: transform 0.4s ease;
}

.gallery-img:hover img {
  transform: scale(1.07);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  cursor: default;
  transform: scale(0.95);
  transition: transform 0.25s ease, opacity 0.16s ease;
}

.lightbox.is-open img {
  transform: scale(1);
}

.lightbox img.lb-fade {
  opacity: 0;
}

/* Lightbox close button */
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1020; /* Vyšší z-index, aby bylo zavírací tlačítko vždy na vrchu */
  -webkit-tap-highlight-color: transparent; /* Odstraní modrý problik na mobilech */
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.08);
}

/* Lightbox navigation - full height click/tap zones */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%; /* Velkorysá zóna pro kliknutí (15% šířky obrazovky z každé strany) */
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  z-index: 1010;
  transition: background-color 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent; /* Odstraní modrý problik na mobilech */
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}

.lightbox-prev {
  left: 0;
  justify-content: flex-start;
  padding-left: 24px;
}

.lightbox-next {
  right: 0;
  justify-content: flex-end;
  padding-right: 24px;
}

.lightbox-prev .material-symbols-sharp,
.lightbox-next .material-symbols-sharp {
  font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 40; /* Tenká, elegantní šipka */
  font-size: 44px;
  color: var(--white);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); /* Stín pro čitelnost na světlém pozadí (mraky, stěna) */
  opacity: 0; /* Zcela skryté v klidu na desktopu */
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.lightbox-prev .material-symbols-sharp {
  transform: translateX(12px);
}

.lightbox-next .material-symbols-sharp {
  transform: translateX(-12px);
}

/* Hover efekty na desktopu - šipka se plynule zobrazí a posune při najetí na kraj */
@media (hover: hover) {
  .lightbox-prev:hover .material-symbols-sharp {
    opacity: 0.8;
    transform: translateX(0);
  }
  .lightbox-next:hover .material-symbols-sharp {
    opacity: 0.8;
    transform: translateX(0);
  }
}

/* Optimalizace pro mobilní telefony (kde není hover a ovládá se tapnutím nebo swipem) */
@media (hover: none) {
  .lightbox-prev,
  .lightbox-next {
    width: 20%; /* Větší zóna pro snazší tapnutí palcem */
  }
  .lightbox-prev .material-symbols-sharp,
  .lightbox-next .material-symbols-sharp {
    opacity: 0.25; /* Na mobilech šipky trvale jemně přiznané, aby uživatel věděl, kam kliknout */
    transform: translateX(0);
  }
}

/* Gallery collapse */
.gallery-img.is-hidden {
  display: none;
}

.project-info {
  padding: 40px 0 60px;
}

/* Layout swap on mobile for project detail */
@media (max-width: 767px) {
  .project-detail-layout {
    display: flex;
    flex-direction: column-reverse;
  }

  .project-detail-layout .project-info {
    padding-top: 24px;
    padding-bottom: 20px;
  }

  .project-detail-layout .project-gallery {
    padding-top: 20px;
    padding-bottom: 60px;
  }
}

.project-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 768px) {
  .project-info-grid { grid-template-columns: 1fr 1.4fr; gap: 80px; }
}

.project-info .year {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 14px;
}

.project-info h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-heading);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.project-info .client {
  font-size: 16px;
  color: var(--text-muted);
}

.project-info .body p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 18px;
}

.project-nav {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-nav a {
  font-size: 15px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s var(--ease);
}

.project-nav a:hover { color: var(--brand-blue); }

.project-nav .grid-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.project-nav .grid-link.back-to-grid {
  width: auto;
  height: auto;
  gap: 8px;
  font-weight: 500;
}

.project-nav .grid-link .material-symbols-sharp { font-size: 24px; }

/* Responsive navigation extra words */
@media (max-width: 560px) {
  .project-nav .nav-extra {
    display: none;
  }
}

/* -------- About — Mission card -------- */
.mission-block {
  background: var(--brand-blue);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  margin: 0;
}

.mission-block h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 18px;
  color: var(--white);
}

.mission-block p {
  font-size: 17px;
  line-height: 1.7;
  max-width: 780px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.92);
}

/* -------- Values grid -------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .values-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }
}

.value-item {
  text-align: center;
}

.value-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 70, 140, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.value-icon .material-symbols-sharp {
  font-size: 36px;
  color: var(--brand-blue);
}

.value-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 10px;
}

.value-item p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* -------- Timeline -------- */
.timeline {
  position: relative;
  margin-top: 40px;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

@media (max-width: 767px) {
  .timeline::before { left: 18px; }
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 16px 40px 16px 0;
  margin-bottom: 6px;
}

.timeline-item.right {
  margin-left: 50%;
  padding: 16px 0 16px 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 36px;
  right: -7px;
  width: 12px;
  height: 12px;
  background: var(--brand-blue);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--brand-blue);
}

.timeline-item.right::before { right: auto; left: -7px; }

.timeline-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.timeline-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.timeline-year {
  display: inline-block;
  background: var(--brand-blue);
  color: var(--white);
  padding: 4px 14px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.timeline-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 6px;
}

.timeline-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 767px) {
  .timeline-item,
  .timeline-item.right {
    width: 100%;
    margin-left: 0;
    padding: 16px 0 16px 48px;
  }
  .timeline-item::before,
  .timeline-item.right::before { left: 12px; right: auto; }
}

/* -------- Certifications list -------- */
.cert-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 32px 0 24px;
}

@media (min-width: 768px) {
  .cert-list { grid-template-columns: 1fr 1fr; gap: 24px 60px; }
}

.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
}

.cert-item .material-symbols-sharp {
  color: var(--brand-blue);
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.cert-note {
  font-size: 14.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 18px;
  font-style: italic;
}

/* -------- Blog tabs -------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  justify-content: center;
}

.tab {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 4px;
  transition: color 0.2s var(--ease);
  position: relative;
  cursor: pointer;
}

.tab:hover { color: var(--brand-blue); }

.tab.active {
  color: var(--brand-blue);
  font-weight: 600;
}

.tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brand-blue);
}

/* -------- Blog post grid -------- */
.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 64px 0;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1023px) {
  .posts-grid {
    max-width: 100%; /* Plná šířka na tabletech a mobilech pro cenné místo */
  }
}

.post-card {
  display: flex;
  flex-direction: row;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease);
}

.post-card:hover {
  box-shadow: var(--shadow-md);
}

.post-thumb {
  flex: 0 0 380px;
  min-height: 220px;
  background: var(--surface);
  overflow: hidden;
}

.post-thumb > * {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991px) {
  .post-card { flex-direction: column; }
  .post-thumb { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
}

.post-body {
  flex: 1;
  padding: 1.2em; /* Mobilní a tabletový padding */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

@media (min-width: 992px) {
  .post-body {
    padding: 2em; /* Větší, reprezentativnější padding na desktopu */
  }
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.post-card h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.post-card p {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.post-tag {
  display: inline-block;
  background: rgba(0, 70, 140, 0.08);
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* -------- Article page wrapper (Blog post detail) -------- */
.article-outer {
  padding-top: calc(var(--header-h) + 80px);
}

/* -------- Article (Blog post detail) -------- */
.article {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 0 64px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 22px;
}

.article-meta .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--action-blue));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
}

.article-meta .dot { color: var(--border); }

.article h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-heading);
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.article-lead {
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 36px;
}

.article-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  margin: 32px 0 8px;
}

.article-image > * {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-caption {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 36px;
  font-style: italic;
}

.article h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  color: var(--color-heading);
  margin: 36px 0 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.article p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 18px;
}

.article ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 18px;
}

.article ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
}

.article ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--brand-blue);
  border-radius: 50%;
}

.article-footer {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  margin-top: 40px;
}

.article-tags {
  font-size: 14.5px;
  color: var(--brand-blue);
  margin-bottom: 22px;
}

.article-tags a { text-decoration: underline; }

.share-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.share-row .share-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  cursor: pointer;
}

.share-row .share-btn:hover {
  background: rgba(0, 70, 140, 0.08);
  color: var(--brand-blue);
}

.article-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14.5px;
  color: var(--text-muted);
}

.heart-btn {
  color: var(--text-muted);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.heart-btn:hover { color: #ef4444; transform: scale(1.1); }

.comments-section {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.comments-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 20px;
}

.comment-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.comment-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 70, 140, 0.12);
}

/* -------- Contact Bento -------- */
.contact-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .contact-bento { grid-template-columns: 1.1fr 1fr; gap: 20px; }
}

.bento-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr auto;
  gap: 16px;
}

.bento-info .bento-hq      { grid-column: 1; grid-row: 1; }
.bento-info .bento-addr    { grid-column: 1; grid-row: 2; }
.bento-right-stack         { grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 16px; }
.bento-right-stack .bento-card { flex: 1; }
.bento-info .bento-company { grid-column: 1 / 3; grid-row: 3; }

@media (max-width: 767px) {
  .bento-info { grid-template-columns: 1fr; grid-template-rows: auto; } /* Skládání kontaktů pod sebe již od tabletů */
  .bento-info .bento-hq,
  .bento-info .bento-addr,
  .bento-info .bento-company { grid-column: 1; grid-row: auto; }
  .bento-right-stack { grid-column: 1; grid-row: auto; flex-direction: column; }
}

@media (max-width: 640px) {
  .bento-firm-details {
    grid-template-columns: 1fr; /* Firemní detaily (IČO, DIČ) do jednoho sloupce */
    padding-left: 0; /* Zrušení levého odsazení pro čitelnost na úzkých displejích */
    margin-top: 12px;
  }
  .bento-card > p {
    padding-left: 0; /* Zrušení levého odsazení u textu kontaktů pro čitelnost */
    margin-top: 6px;
  }
  .bento-card-header {
    margin-bottom: 6px;
  }
}

/* Info cards */
.bento-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.bento-info .bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.bento-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.bento-icon {
  font-size: 45px;
  color: var(--brand-blue);
  flex-shrink: 0;
  line-height: 1;
}

.bento-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-heading);
}

.bento-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

.bento-card > p {
  padding-left: 57px;
}

.bento-card a {
  font-size: 15px;
  color: var(--brand-blue);
  font-weight: 500;
}

.bento-card a:hover { text-decoration: underline; }

/* Form card */
.bento-form {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
}

/* Success overlay in contact bento form */
.form-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  animation: formSuccessFadeIn 0.3s var(--ease);
}

@keyframes formSuccessFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.form-success-overlay .material-symbols-sharp {
  font-size: 64px;
  color: #16a34a;
  margin-bottom: 16px;
}

.form-success-overlay h2 {
  font-size: 24px;
  color: var(--color-heading);
  margin-bottom: 12px;
}

.form-success-overlay p {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 320px;
}

@media (max-width: 640px) {
  .bento-form { padding: 28px 22px; }
}

.bento-form h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 22px;
}

.bento-form .form-field-grow {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bento-form .form-field-grow textarea {
  flex: 1;
  min-height: 110px;
}

.bento-form .btn { width: 100%; margin-top: 8px; }

.bento-firm-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  align-items: start;
  padding-left: 57px;
}

.bento-firm-details p { font-size: 14.5px; line-height: 1.75; color: var(--text-muted); }

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.form-field label .req { color: #dc2626; }

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 70, 140, 0.12);
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-box .btn { width: 100%; margin-top: 8px; }

/* Phone field with flag */
.phone-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.phone-row:focus-within {
  border-color: var(--brand-blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 70, 140, 0.12);
}

.phone-row .flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-right: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.phone-row input {
  border: none;
  background: transparent;
  border-radius: 0;
}

.phone-row input:focus { box-shadow: none; background: transparent; }

.contact-intro h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--color-heading);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 18px;
  max-width: 700px;
}

.contact-intro p {
  font-size: 16.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Map placeholder */
.map-block {
  width: 100%;
  height: 380px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.map-block iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* -------- Utility -------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Avoid body scroll when mobile menu is open */
body.menu-open { overflow: hidden; }

/* -------- EEAT Extensions -------- */

/* Footer Bottom styles */
.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom p {
  margin: 0;
  line-height: 1.5;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  transition: color 0.2s var(--ease);
}

.footer-bottom a:hover {
  color: var(--white);
}

.developer-credit img {
  height: 21px;
  vertical-align: middle;
  margin-left: 6px;
  display: inline-block !important;
}

/* GDPR disclaimer in form */
.form-gdpr-info {
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.form-gdpr-info a {
  color: var(--brand-blue);
  text-decoration: underline;
}

.form-gdpr-info a:hover {
  text-decoration: none;
}

/* Blogpost Author Bio Box */
.author-bio-box {
  margin-top: 48px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  text-align: left;
}

.author-bio-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 70, 140, 0.16);
}

.author-bio-info h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-heading);
  margin-top: 0;
  margin-bottom: 4px;
}

.author-bio-info .author-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.author-bio-info .author-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 640px) {
  .author-bio-box {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }
  .author-bio-avatar {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
}

/* ČKAIT Register link */
.cert-verify-link {
  color: var(--brand-blue);
  text-decoration: underline;
  font-weight: 500;
  margin-left: 4px;
  transition: color 0.2s var(--ease);
}

.cert-verify-link:hover {
  color: #00366e;
  text-decoration: none;
}

/* Testimonials (Ohlasy) */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 0;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.testimonial-card .quote-text {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-card .quote-author strong {
  display: block;
  font-size: 15px;
  color: var(--color-heading);
  font-style: normal;
}

.testimonial-card .quote-author span {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  font-style: normal;
  margin-top: 2px;
}

/* Rich text layout (GDPR page) */
.rich-text h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-blue);
  margin-top: 36px;
  margin-bottom: 12px;
  font-family: 'Montserrat', sans-serif;
}

.rich-text h2:first-of-type {
  margin-top: 0;
}

.rich-text p {
  margin-bottom: 18px;
}

.rich-text ul {
  margin-bottom: 18px;
  padding-left: 24px;
  list-style-type: disc;
}

.rich-text li {
  margin-bottom: 8px;
  color: var(--text-muted);
}

/* -------- 404 Page Styles -------- */
.page-404-header {
  text-align: center;
  padding: calc(var(--header-h) + 80px) 0 40px;
  background: var(--white);
}

.error-code {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(80px, 12vw, 150px);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand-blue), var(--action-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  text-align: center;
}

@media (min-width: 768px) {
  .page-404-content .values-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }
}

.remedy-box {
  background: rgba(0, 70, 140, 0.04);
  border-left: 4px solid var(--brand-blue);
  padding: 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 48px;
}

.remedy-box h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 8px;
}

.remedy-box p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
}

/* -------- Cookie Consent Bar -------- */
.cookie-consent-bar {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 998;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  padding: 24px;
  animation: slideUp 0.4s var(--ease);
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-consent-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .cookie-consent-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
}

.cookie-consent-content p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.cookie-consent-content a {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-consent-buttons .btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0, 70, 140, 0.2);
}

.cookie-consent-buttons .btn-ghost:hover {
  background: rgba(0, 70, 140, 0.05);
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}

@media (max-width: 575px) {
  .cookie-consent-buttons {
    flex-direction: column;
  }
  .cookie-consent-buttons .btn {
    width: 100%;
    text-align: center;
  }
}

/* -------- Cookie Consent Modal -------- */
.cookie-consent-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s var(--ease);
}

.cookie-modal-container {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  z-index: 1001;
  animation: modalScaleUp 0.3s var(--ease);
  overflow: hidden;
}

@keyframes modalScaleUp {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.cookie-modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0;
}

.cookie-modal-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s var(--ease);
}

.cookie-modal-close-btn:hover {
  color: var(--text);
}

.cookie-modal-body {
  padding: 24px 32px;
  overflow-y: auto;
  flex: 1;
}

.cookie-modal-body p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 0;
  margin-bottom: 24px;
}

/* Toggle Switch & Option Items */
.cookie-option-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cookie-option-item {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.cookie-option-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.cookie-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cookie-option-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-heading);
}

.cookie-option-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Custom CSS Toggle Switch */
.cookie-toggle-container {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.cookie-toggle-container input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 34px;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.cookie-toggle-container input:checked + .cookie-toggle-slider {
  background-color: var(--brand-blue);
}

.cookie-toggle-container input:checked + .cookie-toggle-slider:before {
  transform: translateX(22px);
}

.cookie-toggle-slider.disabled {
  background-color: #e2e8f0;
  cursor: not-allowed;
}

.cookie-toggle-slider.disabled:before {
  background-color: #94a3b8;
}

.cookie-modal-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  background: var(--surface);
}

.cookie-modal-footer .btn {
  width: 100%;
}

@media (min-width: 576px) {
  .cookie-modal-footer .btn {
    width: auto;
  }
}

/* -------- Floating Trigger Icon -------- */
.cookie-consent-trigger {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 997;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: var(--white);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.cookie-consent-trigger:hover {
  transform: scale(1.08);
  background: #0050aa;
  box-shadow: var(--shadow-lg);
}

.cookie-consent-trigger .material-symbols-sharp {
  font-size: 24px;
}
