:root {
  --header-h: 86px;
  --logo-h: 48px;

  /* Firemní barvy */
  --color-green: #1f5b3a;
  --color-yellow: #f6c300;
  --color-dark: #111111;
  --color-bg-light: #f4f7f5;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }

/* 1. TYPOGRAFIE */
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: #fff;
  color: var(--color-dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, 
.eyebrow, .about-kicker, .kicker-line-dark, .kicker-line-yellow, 
.banner-label, .step-num, .badge-num { 
  font-family: 'Montserrat', sans-serif; 
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: transparent; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* 3. RYTMUS POZADÍ */
.bg-white { background-color: #fff !important; }
.bg-muted { background-color: var(--color-bg-light) !important; }

/* 2. ANIMACE (SCROLL REVEAL) */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =========================================================
   HLAVIČKA
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 100;
  background: transparent;
  color: #fff;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled, .site-header:hover { background: #fff; color: var(--color-dark); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.site-header.scrolled .logo--light, .site-header:hover .logo--light { display: none; }
.site-header.scrolled .logo--dark, .site-header:hover .logo--dark { display: block; }

.header-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; }
.logo { height: var(--logo-h); width: auto; display: block; }
.logo--light { display: block; }
.logo--dark { display: none; }

.nav-list { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-list a { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; transition: color 0.2s; }
.nav-list a:hover { color: var(--color-yellow); }

.nav-btn { background: var(--color-green); color: #fff !important; padding: 10px 24px; border-radius: 6px; transition: background 0.2s, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important; }
.nav-btn:hover { background: var(--color-yellow); color: var(--color-dark) !important; transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 20px rgba(246,195,0,0.2); }

.menu-toggle { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 20px; z-index: 101; }
.menu-toggle span { display: block; width: 100%; height: 2px; background: currentColor; transition: 0.3s; }

@media (max-width: 991px) {
  .site-header { background: #fff; color: var(--color-dark); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
  .logo--light { display: none; }
  .logo--dark { display: block; }
  .menu-toggle { display: flex; }
  .main-nav { position: absolute; top: var(--header-h); left: 0; width: 100%; background: #fff; padding: 24px; box-shadow: 0 20px 30px rgba(0,0,0,0.1); transform: translateY(-150%); opacity: 0; visibility: hidden; transition: 0.4s ease; }
  .main-nav.is-active { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; gap: 20px; text-align: center; }
}

/* =========================================================
   HERO VIDEO
   ========================================================= */
.hero-video-wrap { position: relative; min-height: 100vh; background-color: var(--color-dark); overflow: hidden; display: flex; }
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-hover-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s ease-in-out; z-index: 1; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,.75) 100%); z-index: 2; pointer-events: none; }
.slide-content { position: relative; z-index: 3; width: 100%; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; padding-top: calc(var(--header-h) + 60px); padding-bottom: 60px; gap: 60px; animation: fadeUp 1s ease forwards; }

.hero-text-block { width: 100%; color: #fff; }
.hero-text-block .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .14em; font-size: 12px; text-transform: uppercase; margin-bottom: 16px; }
.hero-text-block .eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--color-yellow); display: inline-block; }
.hero-text-block h1 { margin: 0; font-size: clamp(34px, 4.2vw, 66px); line-height: 1.05; letter-spacing: -.02em; }

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

.hero-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; margin-top: 20px; }
.glass-card { background: rgba(15, 20, 30, 0.45); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 32px 28px; color: #fff; display: flex; flex-direction: column; align-items: flex-start; transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); text-decoration: none; }
.glass-card:hover { background: rgba(15, 20, 30, 0.7); border-color: rgba(255, 255, 255, 0.25); transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }

.gc-icon { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; margin-bottom: 24px; background: rgba(255,255,255,0.1); flex-shrink: 0; }
.gc-icon img { width: 100%; height: 100%; object-fit: cover; }
.gc-title { font-size: 20px; font-weight: 700; margin: 0 0 12px 0; color: #fff; letter-spacing: -0.01em; }
.gc-text { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.75); margin: 0 0 28px 0; flex-grow: 1; }

.gc-link { font-weight: 700; font-size: 14px; display: flex; align-items: center; color: #fff; transition: color 0.2s; }
.gc-link .arrow { display: inline-block; margin-left: 6px; transition: transform 0.3s ease; }
.glass-card:hover .gc-link { color: var(--color-yellow); }
.glass-card:hover .gc-link .arrow { transform: translateX(6px); }

@media (max-width: 991px) {
  .hero-cards { grid-template-columns: 1fr; gap: 12px; }
  .slide-content { padding-top: calc(var(--header-h) + 20px); padding-bottom: 32px; gap: 32px; }
  .glass-card { display: grid; grid-template-columns: max-content 1fr; align-items: center; padding: 20px; }
  .gc-icon { grid-column: 1; grid-row: 1; margin: 0; width: 40px; height: 40px; }
  .gc-title { grid-column: 2; grid-row: 1; margin: 0 0 0 16px; font-size: 18px; }
  .gc-text { grid-column: 1 / -1; grid-row: 2; margin: 16px 0 16px 0; font-size: 14px; }
  .gc-link { grid-column: 1 / -1; grid-row: 3; }
}

/* =========================================================
   O NÁS
   ========================================================= */
.about { position: relative; padding: 100px 0; overflow: hidden; border-top: 1px solid rgba(0,0,0,0.05); }
.about-intro { margin-bottom: 48px; width: 100%; } 
.about-kicker { display: block; font-weight: 800; letter-spacing: .16em; font-size: 12px; text-transform: uppercase; color: var(--color-dark); opacity: .85; margin-bottom: 18px; }
.about-kicker::before { content: ""; display: block; width: 48px; height: 2px; background: var(--color-dark); opacity: .7; margin: 0 0 10px 0; }
.about-title { margin: 0 0 24px 0; font-size: clamp(32px, 3.2vw, 52px); line-height: 1.05; letter-spacing: -0.02em; color: var(--color-dark); }
.about-text { width: 100%; }
.about-text p { margin: 0 0 16px; color: #444; line-height: 1.7; font-size: 16px; }

.about-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0 64px 0; }
.key-box { background: var(--color-bg-light); padding: 32px 24px; border-radius: 12px; border: 1px solid rgba(31, 91, 58, 0.05); }
.key-title { margin: 0 0 12px 0; color: var(--color-green); font-size: 20px; font-weight: 800; }
.key-desc { margin: 0; font-size: 15px; color: #555; line-height: 1.6; }

.about-regions-note { margin-bottom: 24px; font-size: 16px; color: #333; padding-top: 32px; border-top: 1px solid rgba(0,0,0,0.05); }

.about-map-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; }
.about-visual { border-radius: 18px; background: #f9f9f9; border: 1px solid rgba(0,0,0,.05); padding: 32px; display: flex; align-items: center; justify-content: center; }
.about-visual img { width: 100%; height: auto; display: block; opacity: .9; filter: drop-shadow(0 10px 20px rgba(0,0,0,.15)); }

.about-stats { display: flex; flex-direction: column; gap: 40px; padding-left: 32px; border-left: 1px solid rgba(0,0,0,.10); }
.stat-num { font-weight: 900; font-size: clamp(40px, 4.6vw, 64px); letter-spacing: -0.02em; color: var(--color-green); line-height: 1.02; }
.stat-label { margin-top: 8px; color: var(--color-dark); font-weight: 700; font-size: 15px; line-height: 1.4; opacity: .9; }

.about-corner { position: absolute; top: 0; right: 0; width: 220px; height: 220px; pointer-events: none; }
.about-corner::before { content: ""; position: absolute; top: 0; right: 0; width: 220px; height: 220px; background: rgba(246,195,0,.22); clip-path: polygon(100% 0, 0 0, 100% 100%); }
.about-corner::after { content: ""; position: absolute; top: 0; right: 0; width: 120px; height: 120px; background: rgba(246,195,0,.55); clip-path: polygon(100% 0, 0 0, 100% 100%); }

@media (max-width: 991px){
  .about-keys { grid-template-columns: 1fr; gap: 16px; margin: 32px 0 48px 0; }
  .about-map-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-stats { padding-left: 0; border-left: 0; border-top: 1px solid rgba(0,0,0,.10); padding-top: 32px; gap: 24px;}
}

/* =========================================================
   BANNER
   ========================================================= */
.sustainability-banner { position: relative; padding: 100px 0; border-top: 1px solid rgba(0,0,0,0.05); }
.banner-wrapper { position: relative; width: 100%; border-radius: 16px; overflow: hidden; }
.banner-img-wrap { width: 100%; height: 500px; }
.banner-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; padding: 48px; }
.banner-card { background: rgba(244, 247, 245, 0.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 48px; border-radius: 16px; max-width: 600px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.banner-label { display: inline-block; background: #fff; padding: 8px 14px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-dark); margin-bottom: 24px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.banner-card h2 { font-size: clamp(28px, 3.5vw, 42px); margin: 0 0 16px 0; line-height: 1.15; letter-spacing: -0.02em; color: var(--color-dark); }
.banner-card p { font-size: 16px; line-height: 1.6; color: #555; margin: 0; }

@media (max-width: 991px) {
  .sustainability-banner { padding: 60px 0; }
  .banner-wrapper { overflow: visible; border-radius: 0; }
  .banner-img-wrap { height: 380px; border-radius: 16px; overflow: hidden; }
  .banner-overlay { position: relative; padding: 0; margin-top: -60px; }
  .banner-card { padding: 32px; margin: 0 16px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
}

/* =========================================================
   HODNOTY
   ========================================================= */
.value-model { padding: 100px 0; border-top: 1px solid rgba(0,0,0,0.05); }
.value-intro { margin-bottom: 56px; max-width: 900px; }
.kicker-line-dark { display: inline-flex; align-items: center; gap: 14px; font-weight: 800; letter-spacing: .16em; font-size: 12px; text-transform: uppercase; color: var(--color-dark); margin-bottom: 20px; }
.kicker-line-dark::before { content: ""; width: 48px; height: 2px; background: var(--color-dark); display: inline-block; opacity: 0.8; }
.value-title { margin: 0 0 16px 0; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -0.02em; color: var(--color-dark); }
.value-text { margin: 0; font-size: 16px; line-height: 1.6; color: #555; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; padding: 32px 24px; background: #fff; display: flex; flex-direction: column; transition: box-shadow 0.4s, border-color 0.4s, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); cursor: pointer; }
.value-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: rgba(31,91,58,0.2); transform: translateY(-6px); }
.value-icon { color: var(--color-green); margin-bottom: 24px; }
.value-card-title { font-size: 18px; font-weight: 800; margin: 0 0 16px 0; color: var(--color-dark); }
.value-card-desc { font-size: 14px; color: #555; line-height: 1.6; margin: 0 0 24px 0; flex-grow: 1; }

.value-arrow { margin-top: auto; align-self: flex-end; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #ddd; display: flex; align-items: center; justify-content: center; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); color: #777; }
.value-arrow svg { width: 16px; height: 16px; }
.value-card:hover .value-arrow { background: var(--color-green); color: #fff; border-color: var(--color-green); transform: translateX(4px) translateY(-4px); }

@media (max-width: 991px) { .value-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 768px) { .value-grid { grid-template-columns: 1fr; } }

/* =========================================================
   SYNERGIE
   ========================================================= */
.synergy { padding: 100px 0; border-top: 1px solid rgba(0,0,0,0.05); }
.synergy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.synergy-visual { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.1); aspect-ratio: 4/5; }
.synergy-visual img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.synergy-visual:hover img { transform: scale(1.06); }
.synergy-visual::after { content: ''; position: absolute; top: 0; left: -150%; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%); transform: skewX(-25deg); animation: premiumSweep 6s infinite; pointer-events: none; }

@keyframes premiumSweep { 0% { left: -150%; } 20% { left: 200%; } 100% { left: 200%; } }

.synergy-badge { position: absolute; bottom: 32px; right: -24px; background: var(--color-yellow); padding: 24px; border-radius: 12px; box-shadow: 0 15px 35px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 16px; animation: levitateBadge 4s ease-in-out infinite; z-index: 2; }
@keyframes levitateBadge { 0% { transform: translateY(0); } 50% { transform: translateY(-12px); } 100% { transform: translateY(0); } }

.badge-num { font-size: 36px; font-weight: 900; color: var(--color-dark); line-height: 1; }
.badge-text { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-dark); line-height: 1.4; }
.synergy-title { margin: 0 0 24px 0; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -0.02em; color: var(--color-dark); }
.synergy-text { margin: 0 0 20px 0; font-size: 16px; line-height: 1.7; color: #444; }
.synergy-content .btn-outline { margin-top: 24px; }

.btn-outline { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 32px; border: 2px solid var(--color-green); color: var(--color-green); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; border-radius: 8px; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); background: transparent; cursor: pointer;}
.btn-outline:hover { background: var(--color-green); color: #fff; transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 25px rgba(31,91,58,0.2); }

@media (max-width: 991px) {
  .synergy-grid { grid-template-columns: 1fr; gap: 40px; }
  .synergy-badge { right: 16px; bottom: 16px; padding: 16px; }
}

/* =========================================================
   PROCES
   ========================================================= */
.process { padding: 100px 0; border-top: 1px solid rgba(0,0,0,0.05); }
.process-head { margin-bottom: 64px; }
.process-title { margin: 0; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -0.02em; color: var(--color-dark); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }

/* 5. KROKY - PŘERUŠOVANÁ ČÁRA (PROGRESS) */
.process-grid::before { 
  content: ''; 
  position: absolute; 
  top: 32px; 
  left: 32px; 
  width: calc(100% - 64px); 
  height: 2px; 
  background-image: linear-gradient(to right, var(--color-yellow) 40%, rgba(0,0,0,0.1) 40%);
  background-size: 16px 2px; 
  background-repeat: repeat-x;
  z-index: 0; 
}

.step-card { position: relative; z-index: 1; }
.step-num { width: 64px; height: 64px; background: #fff; border: 2px solid var(--color-yellow); color: var(--color-dark); font-size: 24px; font-weight: 900; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; box-shadow: 0 10px 20px rgba(246,195,0,0.15); transition: transform 0.3s ease; }
.step-card:hover .step-num { transform: scale(1.1); }
.step-title { margin: 0 0 12px 0; font-size: 20px; font-weight: 800; color: var(--color-dark); }
.step-text { margin: 0; font-size: 15px; line-height: 1.6; color: #555; }

@media (max-width: 991px) { .process-grid { grid-template-columns: repeat(2, 1fr); } .process-grid::before { display: none; } }
@media (max-width: 768px) { .process-grid { grid-template-columns: 1fr; gap: 40px; } }

/* =========================================================
   KONTAKTY (PREMIUM)
   ========================================================= */
.premium-contact { background: #0d1210; padding: 120px 0; color: #fff; position: relative; overflow: hidden; }
.premium-contact::before { content: ''; position: absolute; top: -20%; left: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(31,91,58,0.4) 0%, rgba(0,0,0,0) 70%); border-radius: 50%; pointer-events: none; }
.premium-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 1; }
.pc-title { margin: 0 0 24px 0; font-size: clamp(32px, 4vw, 48px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.pc-text { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.7); margin-bottom: 48px; max-width: 500px; }
.pc-info-list { display: flex; flex-direction: column; gap: 32px; }
.pc-info-item { display: flex; align-items: center; gap: 20px; }
.pc-icon { width: 56px; height: 56px; background: rgba(246,195,0,0.1); color: var(--color-yellow); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.pc-details { display: flex; flex-direction: column; gap: 4px; }
.pc-details span { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.5); font-weight: 700; }
.pc-details a, .pc-details strong { font-size: 18px; color: #fff; font-weight: 700; text-decoration: none; transition: color 0.2s; }
.pc-details a:hover { color: var(--color-yellow); }

.pc-form-card { background: #fff; padding: 48px; border-radius: 16px; color: var(--color-dark); }
.pc-form-card h3 { margin: 0 0 8px 0; font-size: 28px; font-weight: 800; letter-spacing: -0.01em; }
.pc-form-card p { margin: 0 0 32px 0; font-size: 15px; color: #555; line-height: 1.6; }

.btn-solid { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 32px; background: var(--color-yellow); color: var(--color-dark); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; border-radius: 8px; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease; border: none;}
.btn-solid:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 25px rgba(246,195,0,0.3); cursor: pointer;}

@media (max-width: 991px) { .premium-contact { padding: 80px 0; } .premium-contact-grid { grid-template-columns: 1fr; gap: 56px; } .pc-form-card { padding: 32px 24px; } }

/* =========================================================
   ZÁPATÍ
   ========================================================= */
.site-footer { background: var(--color-dark); color: #fff; padding: 60px 0 20px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo { height: 28px; width: auto; margin-bottom: 16px; opacity: .9; }
.footer-brand p { color: rgba(255,255,255,.5); max-width: 260px; line-height: 1.5; margin: 0; }
.footer-nav h4, .footer-info h4 { font-size: 16px; font-weight: 700; margin: 0 0 20px; color: #fff; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: rgba(255,255,255,.6); transition: color .2s; }
.footer-nav a:hover { color: var(--color-yellow); }
.footer-info p { color: rgba(255,255,255,.6); line-height: 1.6; margin: 0; }
.footer-bottom { text-align: center; color: rgba(255,255,255,.3); font-size: 12px; }
@media (max-width: 768px){ .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* =========================================================
   POP-UPY (MODÁLNÍ OKNA)
   ========================================================= */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.modal.is-active { opacity: 1; visibility: visible; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
.modal-content { position: relative; background: #fff; width: 90%; max-width: 500px; padding: 40px; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.2); transform: translateY(20px); transition: transform 0.3s ease; }
.modal.is-active .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 20px; right: 20px; font-size: 28px; color: #888; line-height: 1; border: none; background: none; transition: color 0.2s; cursor: pointer; z-index: 10; }
.modal-close:hover { color: var(--color-dark); }
.modal-title { margin: 0 0 12px; font-size: 24px; color: var(--color-dark); letter-spacing: -0.01em; }
.modal-desc { margin: 0 0 24px; font-size: 14px; color: #555; line-height: 1.6; }

.contact-form .form-group { margin-bottom: 16px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px 16px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; font-size: 15px; color: var(--color-dark); transition: border-color 0.2s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--color-green); }

.modal-content--large { max-width: 1000px; padding: 0; display: grid; grid-template-columns: 350px 1fr; overflow: hidden; }
.modal-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-body { padding: 48px; display: flex; flex-direction: column; justify-content: flex-start; max-height: 90vh; overflow-y: auto; }
.modal-body .modal-title { margin: 0 0 16px 0; font-size: 32px; }
.modal-body .modal-desc { font-size: 15px; line-height: 1.6; color: #444; margin-bottom: 24px; }

.modal-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.modal-info-card { background: var(--color-bg-light); padding: 20px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.03); }
.modal-info-card h4 { margin: 0 0 8px 0; color: var(--color-dark); font-size: 16px; font-weight: 800; }
.modal-info-card p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #555; }

@media (max-width: 768px) {
  /* Ограничиваем высоту ВСЕХ модальных окон, чтобы браузер мог их прокручивать */
  .modal-content { 
    max-height: 85vh; 
    overflow-y: auto; 
  } 
  
  /* Возвращаем скролл для больших поп-апов */
  .modal-content--large { 
    grid-template-columns: 1fr; 
    max-height: 85vh; /* Жесткая высота */
    overflow-y: auto; /* Включаем ползунок прокрутки */
  }
  
  .modal-img { 
    height: 180px; 
    min-height: 180px; 
  } 
  
  /* Наш спасительный отступ снизу, чтобы кнопка не тонула */
  .modal-body { 
    padding: 32px 24px 64px 24px; 
    overflow-y: visible; 
    max-height: none; 
  }
  
  .modal-info-grid { 
    grid-template-columns: 1fr; 
  }
}