/* ==========================================================================
   HENSTAV - Moderní Design Systém & Styly
   ========================================================================== */

:root {
  /* Barevná paleta */
  --primary: #001737;
  --primary-dark: #000f24;
  --primary-light: #00285d;
  
  --accent: #e52b42;
  --accent-hover: #c91b31;
  --accent-gradient: linear-gradient(135deg, #ff4e61 0%, #e52b42 100%);
  --accent-soft: rgba(229, 43, 66, 0.08);
  --accent-border: rgba(229, 43, 66, 0.25);
  
  --bg-body: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #08101e;
  --bg-dark-card: #0f1c32;
  
  --text-main: #334155;
  --text-heading: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --text-light-muted: #94a3b8;
  
  --border-light: #e2e8f0;
  --border-dark: rgba(255, 255, 255, 0.12);
  
  /* Typografie */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Stíny a zaoblení */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 24px -4px rgba(0, 23, 55, 0.09), 0 4px 8px -2px rgba(0, 23, 55, 0.04);
  --shadow-xl: 0 20px 35px -5px rgba(0, 23, 55, 0.14), 0 10px 15px -5px rgba(0, 23, 55, 0.06);
  --shadow-red: 0 10px 25px -3px rgba(229, 43, 66, 0.35);
  
  /* Ostatní */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 80px;
}

/* Reset & základní nastavení */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-body);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

/* Kontejner */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-fluid {
  width: 100%;
  padding: 0;
}

/* Typografie */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.25;
  font-weight: 700;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px auto;
}

.section-title {
  font-size: clamp(1.65rem, 3.5vw + 0.5rem, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  text-transform: uppercase;
  margin-bottom: 12px;
  word-break: break-word;
}

.section-title-divider {
  width: 60px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  margin: 0 auto 16px auto;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Tlačítka */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  max-width: 100%;
  text-align: center;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -2px rgba(229, 43, 66, 0.45);
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-alt);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

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

.btn-sm {
  padding: 9px 20px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Hlavička & Navigace
   ========================================================================== */
/* ==========================================================================
   Hlavička & Navigace (Tmavě modrý brandový design pro bílé logo)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(0, 23, 55, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.site-header.scrolled {
  height: 70px;
  background: rgba(0, 17, 41, 0.98);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 46px;
  width: auto;
  transition: var(--transition);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.site-header.scrolled .logo-img {
  height: 40px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 24px);
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: clamp(10px, 1.4vw, 22px);
}

.nav-link {
  font-family: var(--font-heading);
  font-size: clamp(0.82rem, 0.86vw, 0.88rem);
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 0;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.header-cta {
  display: inline-flex;
}

.nav-mobile-cta {
  display: none !important;
}

/* Mobilní menu tlačítko */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #ffffff;
  font-size: 1.5rem;
  align-items: center;
  justify-content: center;
}


/* ==========================================================================
   Hero Slider
   ========================================================================== */
.hero-slider-section {
  position: relative;
  height: 85vh;
  min-height: 560px;
  max-height: 860px;
  margin-top: var(--header-height);
  background: var(--primary);
  overflow: hidden;
}

.hero-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 6s ease-out;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 15, 36, 0.88) 0%,
    rgba(0, 23, 55, 0.72) 50%,
    rgba(0, 23, 55, 0.3) 100%
  );
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  color: #ffffff;
}


.hero-title {
  font-size: clamp(2rem, 4.5vw + 0.5rem, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
  text-transform: uppercase;
  word-break: break-word;
}

.hero-description {
  font-size: clamp(1rem, 1.8vw + 0.3rem, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Ovládací prvky slideru */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.slider-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.08);
}

.slider-arrow.prev {
  left: 24px;
}

.slider-arrow.next {
  right: 24px;
}

.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  width: 36px;
  background: var(--accent);
}

/* ==========================================================================
   Sekce O nás
   ========================================================================== */
.about-section {
  padding: 100px 0;
  background-color: var(--bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  height: 480px;
  object-fit: cover;
}


.about-content h2 {
  font-size: clamp(1.65rem, 3.5vw + 0.4rem, 2.2rem);
  margin-bottom: 8px;
  text-transform: uppercase;
  word-break: break-word;
}

.about-divider {
  width: 50px;
  height: 4px;
  background: var(--accent);
  margin-bottom: 24px;
  border-radius: var(--radius-full);
}

.about-text p {
  margin-bottom: 18px;
  color: var(--text-main);
  line-height: 1.7;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.about-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-highlight-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-highlight-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-heading);
}

/* ==========================================================================
   Sekce Služby
   ========================================================================== */
.services-section {
  padding: 100px 0;
  background-color: var(--bg-body);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(229, 43, 66, 0.4);
  box-shadow: var(--shadow-xl);
}

.service-card-image {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-card-image img {
  transform: scale(1.06);
}

.service-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-title {
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card-text {
  color: var(--text-main);
  line-height: 1.65;
  font-size: 0.98rem;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
  padding: 70px 0;
  background: linear-gradient(135deg, #001737 0%, #08101e 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 100%;
  background: radial-gradient(circle, rgba(229, 43, 66, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.cta-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.6rem;
  flex-shrink: 0;
}

.cta-title {
  font-size: clamp(1.45rem, 3vw + 0.4rem, 2rem);
  color: #ffffff;
  margin-bottom: 6px;
  word-break: break-word;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
}

/* ==========================================================================
   Sekce Projekty a specializace
   ========================================================================== */
.projects-section {
  padding: 100px 0;
  background-color: var(--bg-alt);
}

.project-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
}

.project-block.reverse {
  direction: rtl;
}

.project-block.reverse > * {
  direction: ltr;
}

.project-image-box {
  height: 100%;
  min-height: 340px;
  position: relative;
  overflow: hidden;
}

.project-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-block:hover .project-image-box img {
  transform: scale(1.04);
}

.project-content-box {
  padding: 44px;
}


.project-title {
  font-size: clamp(1.35rem, 2.5vw + 0.4rem, 1.85rem);
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--primary);
  word-break: break-word;
}

.project-divider {
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 20px;
  border-radius: var(--radius-full);
}

.project-contact {
  font-size: 1.05rem;
  margin-bottom: 24px;
  color: var(--text-main);
}

.project-contact strong {
  color: var(--text-heading);
}

.project-contact a {
  color: var(--accent);
  font-weight: 600;
}

.project-contact a:hover {
  text-decoration: underline;
}

.multi-project-box {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sub-project {
  padding-bottom: 24px;
}

.sub-project:not(:last-child) {
  border-bottom: 1px solid var(--border-light);
}

/* ==========================================================================
   Sekce Dotační projekty EU
   ========================================================================== */
.subsidies-section {
  padding: 90px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.subsidies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.subsidy-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.subsidy-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary);
  line-height: 1.35;
}

.subsidy-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.subsidy-body {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-main);
  margin-bottom: 24px;
}

.subsidy-body ul {
  margin: 14px 0 14px 20px;
}

.subsidy-body li {
  margin-bottom: 6px;
}

.subsidy-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  background: #ffffff;
  padding: 16px 20px;
  border-radius: var(--radius-md);
}

.subsidy-logos img {
  max-height: 52px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.subsidy-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.subsidy-card.has-poster {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.subsidy-info-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 20px 0;
}

.subsidy-badge-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.86rem;
  color: var(--text-dark);
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.subsidy-badge-item strong {
  color: var(--primary);
  font-weight: 600;
}

.subsidy-poster-side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subsidy-poster-link {
  display: block;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #ffffff;
  text-decoration: none;
}

.subsidy-poster-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.subsidy-poster-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease;
}

.subsidy-poster-link:hover .subsidy-poster-img {
  transform: scale(1.02);
}

.subsidy-poster-zoom {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(17, 30, 56, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}

.subsidy-poster-link:hover .subsidy-poster-zoom {
  background: var(--accent);
  color: #ffffff;
  transform: scale(1.04);
}

/* ==========================================================================
   Sekce Kontakty & Formulář
   ========================================================================== */
.contact-section {
  padding: 100px 0;
  background: var(--bg-alt);
  position: relative;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

/* Levý sloupec - Personální kontakty (Dark card) */
.contact-info-card {
  background: linear-gradient(145deg, #001737 0%, #0b1329 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/contact-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  pointer-events: none;
}

.contact-card-header {
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.contact-card-title {
  font-size: clamp(1.45rem, 3vw + 0.4rem, 2rem);
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 6px;
  word-break: break-word;
}

.contact-card-divider {
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: var(--radius-full);
}

.team-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.team-contact-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: var(--transition);
  word-break: break-word;
}

.team-contact-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(229, 43, 66, 0.35);
  transform: translateX(4px);
}

.contact-role-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
  word-break: break-word;
}

.contact-email-link {
  font-size: 0.9rem;
  color: #ff8a99;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  word-break: break-all;
  overflow-wrap: anywhere;
}

.contact-email-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.office-locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 1;
}

.location-item {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}

.location-item h4 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.location-item p {
  color: var(--text-light-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Pravý sloupec - Formulář */
.contact-form-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.form-header {
  margin-bottom: 26px;
}

.form-title {
  font-size: clamp(1.4rem, 3vw + 0.4rem, 1.85rem);
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 6px;
  word-break: break-word;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  font-size: 1rem;
  color: var(--text-heading);
  background: var(--bg-alt);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(229, 43, 66, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Skryté pole honeypot proti botům */
.form-bot-trap {
  display: none !important;
  visibility: hidden !important;
}

/* Zprávy formuláře */
.form-alert {
  display: none;
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  align-items: center;
  gap: 12px;
}

.form-alert.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-alert.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.form-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

/* Fakturační údaje pod formulářem */
.contact-billing-info {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.billing-info-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.billing-info-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.billing-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.billing-info-item {
  display: flex;
  flex-direction: column;
  font-size: 0.88rem;
  line-height: 1.35;
}

.billing-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.billing-val {
  color: var(--text-heading);
  font-weight: 500;
}

.billing-val strong {
  color: var(--primary);
  font-weight: 700;
}

.text-vat {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: normal;
}

/* ==========================================================================
   Patička
   ========================================================================== */
.site-footer {
  background: var(--primary-dark);
  color: var(--text-light-muted);
  padding: 60px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 360px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-heading {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: var(--text-light-muted);
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Responzivita (Media Queries)
   ========================================================================== */

/* --- Tablet / menší notebooky (do 1160px) --- */
@media (max-width: 1160px) {
  :root {
    --header-height: 70px;
  }
  
  .site-header {
    height: var(--header-height);
  }

  .site-header.scrolled {
    height: 64px;
  }

  .logo-img {
    height: 40px;
  }

  .site-header.scrolled .logo-img {
    height: 36px;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #001737;
    padding: 24px 28px 36px 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    font-size: 1.05rem;
    display: block;
    width: 100%;
    padding: 13px 0;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-link:hover,
  .nav-link.active {
    color: #ffffff;
    padding-left: 8px;
  }

  .nav-mobile-cta {
    display: block;
    width: 100%;
    margin-top: 24px;
  }

  .nav-mobile-cta .btn {
    width: 100%;
    padding: 13px 20px;
    font-size: 0.95rem;
  }

  /* Hero */
  .hero-slider-section {
    height: 75vh;
    min-height: 500px;
    margin-top: var(--header-height);
  }

  .hero-title {
    font-size: 2.6rem;
  }

  /* Sekce */
  .about-section,
  .services-section,
  .projects-section,
  .subsidies-section,
  .contact-section {
    padding: 75px 0;
  }

  /* O nás */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    height: 360px;
  }

  /* Služby */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Projekty */
  .project-block,
  .project-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    margin-bottom: 34px;
  }

  .project-image-box {
    width: 100%;
    height: 280px;
    min-height: 220px;
  }

  .project-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .project-content-box {
    padding: 32px 28px;
  }

  /* Dotace */
  .subsidies-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .subsidy-card {
    padding: 30px 26px;
  }

  .subsidy-card.has-poster {
    grid-column: 1;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .subsidy-poster-side {
    max-width: 440px;
    margin: 10px auto 0 auto;
    width: 100%;
  }

  /* Kontakty */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 36px 30px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
  }
}

/* --- Mobilní telefony a běžné tablety (do 768px) --- */
@media (max-width: 768px) {
  .section-header {
    margin-bottom: 36px;
  }

  .section-title-divider {
    margin-bottom: 14px;
  }

  /* Hero slider */
  .hero-slider-section {
    height: auto;
    min-height: 480px;
    padding: 60px 0 70px 0;
    display: flex;
    align-items: center;
  }

  .hero-slide {
    display: flex;
    align-items: center;
  }

  .hero-title {
    font-size: 2.1rem;
    margin-bottom: 14px;
  }

  .hero-description {
    font-size: 1.02rem;
    margin-bottom: 24px;
    line-height: 1.55;
  }

  /* Skrytí šipek překrývajících text na mobilu (touch swipe a tečky zůstávají) */
  .slider-arrow {
    display: none !important;
  }

  .slider-dots {
    bottom: 18px;
  }

  /* O nás */
  .about-section {
    padding: 60px 0;
  }

  .about-image {
    height: 300px;
  }

  /* Služby */
  .services-section {
    padding: 60px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card-image {
    height: 220px;
  }

  .service-card-body {
    padding: 22px 18px;
  }

  .service-card-title {
    font-size: 1.35rem;
    margin-bottom: 10px;
  }

  /* CTA Banner */
  .cta-banner {
    padding: 44px 0;
  }

  .cta-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .cta-left {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .cta-icon {
    width: 54px;
    height: 54px;
    font-size: 1.35rem;
  }

  .cta-title {
    font-size: 1.6rem;
  }

  .cta-subtitle {
    font-size: 0.98rem;
  }

  /* Projekty */
  .projects-section {
    padding: 60px 0;
  }

  .project-image-box {
    height: 230px;
    min-height: 180px;
  }

  .project-content-box {
    padding: 24px 18px;
  }

  .project-title {
    font-size: 1.5rem;
  }

  .project-contact {
    font-size: 0.95rem;
    margin-bottom: 18px;
    word-break: break-word;
  }

  .project-content-box .btn {
    width: 100%;
    max-width: 100%;
    padding: 12px 18px;
    font-size: 0.88rem;
    justify-content: center;
  }

  .multi-project-box {
    gap: 20px;
  }

  .sub-project {
    padding-bottom: 20px;
  }

  .sub-project h3.project-title {
    font-size: 1.3rem !important;
  }

  .sub-project .btn {
    width: 100%;
    justify-content: center;
  }

  /* Dotace */
  .subsidies-section {
    padding: 60px 0;
  }

  .subsidy-card {
    padding: 24px 18px;
  }

  .subsidy-title {
    font-size: 1.2rem;
  }

  .subsidy-body {
    font-size: 0.92rem;
  }

  .subsidy-logos {
    gap: 14px;
    padding: 14px 16px;
  }

  .subsidy-logos img {
    max-height: 44px;
  }

  .subsidy-info-badges {
    flex-direction: column;
    gap: 8px;
  }

  .subsidy-badge-item {
    font-size: 0.82rem;
    padding: 7px 12px;
  }

  .subsidy-poster-side {
    max-width: 100%;
  }

  /* Kontakty & formulář */
  .contact-section {
    padding: 60px 0;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 26px 18px;
    border-radius: var(--radius-lg);
  }

  .contact-card-title,
  .form-title {
    font-size: 1.6rem;
  }

  .team-contacts-list {
    gap: 8px;
    margin-bottom: 24px;
  }

  .team-contact-item {
    padding: 10px 14px;
  }

  .contact-role-name {
    font-size: 0.88rem;
  }

  .contact-email-link {
    font-size: 0.85rem;
    word-break: break-all;
  }

  .office-locations {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 18px;
  }

  .location-item {
    padding: 12px 14px;
  }

  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-control {
    padding: 12px 14px;
    font-size: 16px; /* Zabraňuje iOS auto-zoomu */
  }

  /* Footer */
  .site-footer {
    padding: 44px 0 24px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    justify-content: center;
  }
}

/* --- Menší mobilní telefony (do 640px) --- */
@media (max-width: 640px) {
  .about-highlights {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
  }

  .about-highlight-item {
    align-items: center;
  }

  .about-image {
    height: 250px;
  }

  .billing-info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }
}

/* --- Extra malé displeje (do 480px) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .about-content h2 {
    font-size: 1.6rem;
  }

  .project-content-box {
    padding: 20px 14px;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 22px 14px;
  }

  .subsidy-card {
    padding: 20px 14px;
  }
}
