*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --green-dark: #2d5a1b;
  --green-mid: #4a7c2f;
  --green-light: #6aaa3a;
  --green-bg: #f0f5eb;
  --green-icon: #5a8a30;
  --orange: #e8611a;
  --orange-hover: #d0541a;
  --text-dark: #1a2e0f;
  --text-mid: #3a5c25;
  --text-muted: #6b7c6b;
  --white: #ffffff;
  --card-bg: #ffffff;
  --section-bg: #f5f7f3;
  --border: #e2e8dc;
  --shadow: 0 2px 20px rgba(45,90,27,0.08);
  --shadow-lg: 0 8px 40px rgba(45,90,27,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans';
  color: var(--text-dark);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

.container {
  max-width: 1400px;
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
}

.container-kontakt{
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  max-width: 1200px;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  background: white;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255,255,255,0.1);

  padding: 0 40px;
  height: 5rem;

  display: flex;
  align-items: center;
  justify-content: space-between;

  transition: background 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-bottom: 1px solid var(--border);
}

nav.scrolled .nav-links a { color: #000000; }
nav.scrolled .nav-links a:hover { color: var(--green-light); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  z-index: 1005;
  font-size: 1.2rem;
  color: var(--text-dark);
}

/* Animace hamburger menu na křížek */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-logo-icon img {
  height: 120px;
  width: auto;
  display: block;
}

/* pravá část */
.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* odkazy */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #000000;
  font-weight: 500;
  font-size: 1.2rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--green-dark); }

/* tlačítko */
.btn-orange {
  background: var(--green-dark);
  color: white;
  border: none;
  padding: 5px 25px;
  border-radius: 15px;
  font-family: inherit;
  font-weight: 500;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  transition: background 0.2s, transform 0.1s;
}

.btn-orange:hover {
  transform: translateY(-1px);
  background: var(--green-light);
}

.btn-outline:hover {
  background-color: var(--green-light);
  transform: translateY(-2px);
}

/* Hamburger menu (pro mobilní zobrazení) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: black;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #2a5a18;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('img/reference/6.webp') center/cover no-repeat;
  opacity: 1;
  transition: background-image 1.5s ease-in-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5),rgba(0, 0, 0, 0.5));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
  animation: fadeUp 0.8s ease both;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-orange-hero {
  background: var(--green-dark);
  color: white;
  padding: 16px 32px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}
.btn-orange-hero:hover {
  background: var(--green-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: black;
  color: var(--white);
  padding: 16px 32px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

/* ── SECTIONS ── */
section { padding-top: 60px; padding-bottom: 60px; }

/* section-header (sjednoceno, dříve 2× base + 2× p duplicitně) */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-weight: 500;
  color: var(--green-dark);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 700px;
  line-height: 1.7;
  margin: 0 auto;
}

/* ── SERVICES ── */
#sluzby {
  background: var(--white);
  padding: 60px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 24px auto;
  width: 100%;
}

.service-card {
  background: var(--section-bg);
  border-radius: 16px;
  padding: 0;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.service-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.svc-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  color: white;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: black;
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1;
}

.btn-orange-service {
  background: var(--green-dark);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, transform 0.1s;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  margin-top: auto;
}

.btn-orange-service:hover {
  background: var(--green-light);
  transform: translateY(-1px);
}

/* ===== SEKCE PROČ SI VYBRAT NÁS (CELÁ ŠÍŘKA) ===== */
.features-bg-wrapper {
  width: 100%;
  background-color: #f7f9f5;
  padding: 60px 0;
  margin-top: 60px;
}

.features-section {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 24px;
  font-family: 'Inter', sans-serif;
}

.features-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
}

.features-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 28px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.5;
}

.features-list li i {
  color: var(--green-light);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.features-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: var(--shadow);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: transparent;
  color: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.stat-text { display: flex; flex-direction: column; }

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── PROJEKTY / CAROUSEL ── */
.carousel-wrapper {
  position: relative;
  padding: 0 64px;
}

.carousel-arrow {
  position: absolute;
  top: 200px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: white;
  border: 1px solid #e2e8dc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 26px;
  color: #2d5a1b;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  transition: background 0.15s, transform 0.1s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  line-height: 1;
  z-index: 10;
}

.carousel-arrow:hover { background: #f0f5eb; }
.carousel-arrow:active { transform: scale(0.93); }
.carousel-arrow.arrow-left  { left: 0; }
.carousel-arrow.arrow-right { right: 0; }

.projects-carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
  scrollbar-width: none;
}

.projects-carousel::-webkit-scrollbar { display: none; }

.projects-track {
  display: flex;
  gap: 28px;
  padding: 0 10px;
  width: max-content;
}

.project-card {
  flex: 0 0 400px;
  scroll-snap-align: start;
  background: white;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.project-card:hover { transform: translateY(-8px); }

.project-img {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-body { padding: 28px; }

.project-body h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.project-body p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 18px;
}

.project-location {
  display: inline-block;
  margin-bottom: 14px;
  color: #85AC30;
  font-size: 0.9rem;
  font-weight: 700;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  background: rgba(133,172,48,0.12);
  color: #55751d;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
}

/* ── REFERENCE ── */
#reference { background: var(--section-bg); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
  position: relative;
}

.review-stars {
  color: #e8a020;
  font-size: 1.1rem;
  margin-bottom: 12px;
  display: flex; gap: 2px;
}

.review-quote-icon {
  position: absolute;
  top: 24px; right: 24px;
  width: 32px; height: 32px;
  background: var(--green-bg);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-light);
  font-size: 16px;
}

.review-text {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green-mid);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.review-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.review-city {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.reviews-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-secondary img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.btn-secondary {
  background: white;
  color: black;
  border: 1px solid #d9e3cc;
}

.btn-secondary:hover {
  background: #f4f7ee;
  transform: translateY(-2px);
}

/* ── FAQ ── */
#faq { background: var(--white); }

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--section-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-dark);
  user-select: none;
  transition: background 0.2s;
}

.faq-question:hover { background: #e8f0df; }

.faq-arrow {
  font-size: 18px;
  color: var(--green-light);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ── KONTAKT ── */
#kontakt { 
  background: var(--section-bg); 
}

/* --- Úprava gridu a karet pro maximální bezpečí před přetečením --- */
.contact-grid-three-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  align-items: stretch;
  margin-bottom: 30px;
  width: 100%;
  max-width: 100%; /* Zabránění přetečení celého gridu */
}

/* Styl pro zakázané/odesílající se tlačítko */
.btn-submit:disabled,
.btn-submit-compact:disabled {
  opacity: 0.6;
  cursor: not-allowed !important;
  filter: grayscale(80%);
  pointer-events: none; /* Zamezí jakýmkoliv dalším kliknutím */
  transition: all 0.3s ease;
}

.contact-col-card {
  background: var(--white);
  border-radius: 16px;
  padding: 30px 25px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%; /* Karta se drží svého sloupce */
  max-width: 100%;
  box-sizing: border-box; /* Klíčové pro zamezení posunu doprava */
}

/* Pojistka pro všechny textové vstupy, aby nepřelézaly kartu */
.compact-form,
.form-group-compact input,
.form-group-compact select {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* --- 1. SLOUPEC: Vertikální profil Jakuba --- */
.contact-person-vertical {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-person-vertical .person-image-container {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 15px;
}

.contact-person-vertical .person-img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  
}

.person-info-vertical .person-note {
  font-size: 0.8rem;
  color: var(--green-dark); /* Původní tmavě zelená */
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.person-info-vertical .person-name {
  font-size: 1.25rem;
  margin: 5px 0;
  color: var(--text-dark);
  font-weight: 700;
}

.person-info-vertical .person-role {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 15px;
}

.person-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f9faf7; /* Světlý podklad ladící k inputům */
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 30px;
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.person-phone-btn:hover {
  background: var(--green-light);
  color: var(--white);
}

/* --- 2. SLOUPEC: Kompaktní formulář --- */
.compact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group-compact {
  display: flex;
  flex-direction: column;
}

.form-group-compact label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.form-group-compact label span {
  color: var(--green-dark);
}

.form-group-compact input,
.form-group-compact select {
  padding: 10px 14px;
  font-size: 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  background: #f9faf7;
  color: var(--text-dark);
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.form-group-compact input:focus,
.form-group-compact select:focus {
  border-color: var(--green-light);
  background: var(--white);
}

.btn-submit-compact {
  background: var(--green-dark); /* Původní zelená barva tlačítek */
  color: white;
  border: none;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 5px;
  transition: background 0.2s, transform 0.1s;
}

.btn-submit-compact:hover {
  background: var(--green-light);
  transform: translateY(-1px);
}

/* --- 3. SLOUPEC: Firemní údaje vertikálně --- */
.company-vertical h3 {
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--text-dark);
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
}

.contact-item-vertical {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.contact-item-vertical:last-child {
  margin-bottom: 0;
}

.civ-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--green-light); /* Původní světle zelené ikony */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
}

.civ-text small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.civ-text span a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.civ-text span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* --- SPODNÍ ČÁST: Původní zelená CTA lišta --- */
.contact-cta-bar {
  background: var(--green-mid); /* Použije vaši střední zelenou pro podklad */
  border-radius: 16px;
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: white;
}

.cta-bar-text {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cta-check-icon {
  font-size: 2rem;
  color: white; /* Bílá ikona skvěle vynikne na zelené */
}

.cta-bar-text h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
}

.cta-bar-text p {
  margin: 3px 0 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.5;
}

.cta-bar-features {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
}

.cta-bar-features span {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cta-bar-features span i {
  color: white;
}

/* ── FOOTER ── */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.85);
  padding: 56px 24px 32px;
}

.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 28px;
}

.footer-brand .nav-logo { color: white; margin-bottom: 14px; }

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.7);
}

.footer-social { display: flex; gap: 10px; }

.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}

.footer-social a:hover { background: rgba(255,255,255,0.25); }

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: white; }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

.footer-contact-item span { font-size: 14px; }

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover { color: rgba(255,255,255,0.85); }

.footer-legal { display: flex; gap: 20px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}
/* ══════════════════════════════════════════════════════
   RESPONZIVNÍ DESIGN - OPRAVENÁ VERZE
   ══════════════════════════════════════════════════════ */

/* ── TABLET (≤ 1024px) ── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  /* OPRAVA: Převedení nového 3-sloupcového gridu na flexibilnější rozložení na tabletu */
  .contact-grid-three-cols {
    grid-template-columns: 1fr; /* Na tabletu jdou sloupce čistě pod sebe, aby nepřetékaly */
    gap: 20px;
    width: 100%;
  }

  /* Zajištění, že karty na tabletech nebudou přetékat */
  .contact-col-card {
    width: 100%;
    box-sizing: border-box;
  }

  .carousel-wrapper { padding: 0 56px; }
}

/* ── MALÝ TABLET / VELKÝ MOBIL (≤ 900px) ── */
@media (max-width: 900px) {
  .features-container {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }

  .features-image { order: -1; }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .features-bg-wrapper { padding: 40px 0; margin-top: 0px;}
}

/* ── MOBIL (≤ 768px) ── */
@media (max-width: 768px) {
  section { padding-top: 40px; padding-bottom: 40px; }

  .section-header { margin-bottom: 36px; }

  /* Navigace */
  nav { padding: 0 20px; height: 4.5rem; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 4.5rem;
    left: 0;
    right: 0;
    height: calc(100vh - 4.5rem); 
    background: var(--white);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;    
    gap: 20px;              

    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    width: auto;             
    font-size: 1.4rem;       
    padding: 10px 24px;
    border-bottom: 1px solid black;  
  }

  .nav-right .btn-orange { 
    display: none !important; 
  }

  /* Hero */
  #hero { min-height: 100vh; }
  .hero-content p { font-size: 1.05rem; margin-bottom: 28px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn-orange-hero, .btn-outline { justify-content: center; font-size: 15px; padding: 15px 20px;}
  .fa-telefon {display: none;}

  /* Služby */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Carousel projektů */
  .carousel-wrapper { padding: 0 8px; }
  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 20px;
    top: 150px;
  }
  .project-card { flex: 0 0 300px; }
  .project-img { height: 300px; }

  /* OPRAVA: Nová spodní CTA lišta a karty na mobilech */
  .contact-col-card { 
    padding: 24px 20px; 
    width: 100%;
    box-sizing: border-box;
  }

  .contact-cta-bar {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .cta-bar-text {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .cta-bar-features {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center;}
  .nav-logo {justify-content: center;}
  .footer-social {justify-content: center;}
  .footer-contact-item {justify-content: center;}
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── MALÝ MOBIL (≤ 480px) ── */
@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.5rem; }
  .hero-content p { font-size: 0.95rem; }

  .services-grid { grid-template-columns: 1fr; }

  .review-card { padding: 22px 20px 18px; }

  .project-card { flex: 0 0 260px; }
  .project-img { height: 240px; }

  /* OPRAVA: Maximální zúžení pro nejmenší telefony */
  .contact-col-card { 
    padding: 20px 16px; 
  }
  
  .contact-cta-bar {
    padding: 20px 16px;
  }

  .footer-social a { width: 32px; height: 32px; }
}