/**
 * СКАРБСТРОЙИНВЕСТ - Professional Multi-Page Styles v2
 * Design: Sharp 90° corners, Green accent, Light theme
 */

/* ===== Reset & Variables ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::selection {
  background: #bef264;
  color: #111827;
}

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

a:hover {
  color: var(--primary-dark);
}

:root {
  --primary: #047857;
  --primary-dark: #065f46;
  --primary-light: #059669;
  --primary-accent: #10b981;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f9fafb;
  
  --text-primary: #0f172a;
  --text-secondary: #1e293b;
  --text-gray: #374151;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-none: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Preloader ===== */
.preloader {
  display: none !important;
}

.preloader-logo {
  width: 500px;
  height: auto;
  animation: logoBreath 1.8s ease-in-out infinite;
}

.page-preloader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-preloader.active {
  opacity: 1;
  visibility: visible;
}

.page-preloader-logo {
  width: 500px;
  height: auto;
  animation: logoBreath 1.5s ease-in-out infinite;
}

.preloader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes logoBreath {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Preloader logo mobile sizing */
@media (max-width: 768px) {
  .preloader-logo,
  .page-preloader-logo {
    width: 180px !important;
    max-width: 65vw;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .preloader-logo,
  .page-preloader-logo {
    width: 140px !important;
    max-width: 60vw;
    height: auto !important;
  }
}

@media (max-width: 360px) {
  .preloader-logo,
  .page-preloader-logo {
    width: 120px !important;
    max-width: 55vw;
    height: auto !important;
  }
}

/* ===== Page Transitions ===== */
.page-content {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.page-content.page-exit {
  opacity: 0;
  transform: translateY(-20px);
}

.page-content.page-enter {
  animation: pageEnter 0.6s ease forwards;
}

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

/* ===== Scroll Animations ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  height: 110px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: scale(1.02);
}

.logo-img {
  height: 80px;
  width: auto;
  max-width: 320px;
}

.company-name {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-gray);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.phone-link {
  padding: 0.625rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.phone-link:hover {
  color: var(--primary-dark);
}

.nav-phone-header {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-phone-header:hover {
  color: var(--primary-dark);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-btn-nav-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(4, 120, 87, 0.2);
}

.cta-btn-nav-header:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(4, 120, 87, 0.3);
}

@media (max-width: 1024px) {
  .cta-btn-nav-header {
    display: none;
  }
}

.cta-btn-nav {
  display: none; /* Hide the old button class if it remains anywhere */
}

/* Menu Button */
.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-color);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.hamburger {
  width: 18px;
  height: 12px;
  position: relative;
}

.hamburger span {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 5px; }
.hamburger span:nth-child(3) { top: 10px; }

.menu-btn.active .hamburger span:nth-child(1) {
  transform: rotate(45deg);
  top: 5px;
}

.menu-btn.active .hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active .hamburger span:nth-child(3) {
  transform: rotate(-45deg);
  top: 5px;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 110px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 999;
  padding: 2rem;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-link {
  display: block;
  padding: 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
  transition: color var(--transition-fast);
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
  color: var(--primary);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 110px 0 0 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.hero-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.tag {
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.tag:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* ===== Tech Metrics (Predprinimatelyu page) ===== */
.tech-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.tech-metric {
  text-align: center;
}

.tech-metric-value {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.tech-metric-label {
  color: var(--text-gray);
  font-weight: 600;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--primary);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(4, 120, 87, 0.3);
}

.hero-btn .icon {
  width: 20px;
  height: 20px;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Section ===== */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-label {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: rgba(4, 120, 87, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-gray);
  line-height: 1.7;
}

/* ===== Cards Grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 120, 87, 0.1);
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.card-icon .icon {
  width: 24px;
  height: 24px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: 0.9375rem;
  color: var(--text-gray);
  line-height: 1.7;
}

/* ===== Stats Grid ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-normal);
}

.stat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== Progress Bars ===== */
.progress-chart {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.progress-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.progress-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

.progress-bar {
  height: 8px;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-accent) 100%);
  width: 0;
  transition: width 1.2s ease-out;
}

/* ===== Feature List ===== */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.feature-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 120, 87, 0.1);
  color: var(--primary);
}

.feature-icon .icon {
  width: 24px;
  height: 24px;
}

.feature-content h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feature-content p {
  font-size: 0.9375rem;
  color: var(--text-gray);
  line-height: 1.6;
}

/* ===== Content Block ===== */
.content-block {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.content-block h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.content-block p {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.7;
}

.content-block p + p {
  margin-top: 1rem;
}

/* ===== Benefits List ===== */
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.benefits-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--text-gray);
}

.benefits-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background: var(--primary);
}

/* ===== Table ===== */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.spec-table th,
.spec-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.spec-table th {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 200px;
  background: var(--bg-secondary);
}

.spec-table td {
  font-size: 0.9375rem;
  color: var(--text-primary);
}

/* ===== CTA Section ===== */
.cta-section {
  background: var(--primary);
  padding: 4rem 2rem;
  text-align: center;
}

.cta-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.cta-text {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: #ffffff;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-btn .icon {
  width: 20px;
  height: 20px;
}

/* ===== Gallery Modal ===== */
.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.gallery-modal.active {
  opacity: 1;
  visibility: visible;
}

.gallery-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  display: flex;
  justify-content: center;
}

.gallery-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.gallery-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10002;
  transition: all 0.3s ease;
  color: #fff;
}

.gallery-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10002;
  transition: all 0.3s ease;
  color: #fff;
}

.gallery-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  scale: 1.1;
}

.gallery-prev {
  left: 2rem;
}

.gallery-next {
  right: 2rem;
}

@media (max-width: 768px) {
  .gallery-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
  
  .gallery-nav-btn {
    width: 44px;
    height: 44px;
  }
  
  .gallery-prev { left: 1rem; }
  .gallery-next { right: 1rem; }
}

/* ===== Footer ===== */
.footer {
  background: #ffffff !important;
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  background: transparent;
}

.footer-logo {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.footer-logo img {
  height: 80px !important;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-gray);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-primary);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.95);
  transition: transform var(--transition-normal);
}

.modal.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--bg-secondary);
}

.modal-close .icon {
  width: 20px;
  height: 20px;
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

/* ===== Map ===== */
.map-frame {
  width: 100%;
  height: 300px;
  border: 1px solid var(--border-color);
}

/* ===== Photo Grid ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.photo-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.photo-grid img:hover {
  transform: scale(1.02);
}

/* ===== Video ===== */
.video-wrap {
  position: relative;
  background: #000;
}

.video-wrap video {
  width: 100%;
  display: block;
}

/* ===== Contacts ===== */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-normal);
}

.contact-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 120, 87, 0.1);
  color: var(--primary);
  margin: 0 auto 1rem;
}

.contact-card-icon .icon {
  width: 24px;
  height: 24px;
}

.contact-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-card-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.contact-card-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-card-link:hover {
  color: var(--primary-dark);
}

/* ===== Two Column Layout ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* ===== Object Switcher ===== */
.objects-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.object-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  padding: 2rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.object-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.object-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.object-card.active {
  border-color: var(--primary);
}

.object-card.active::before {
  transform: scaleX(1);
}

.object-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.object-card-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.object-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.object-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.object-details {
  display: none !important;
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease-out, visibility 0.4s ease-out, height 0.4s ease-out;
}

.object-details.active {
  display: block !important;
  opacity: 1;
  visibility: visible;
  height: auto;
  overflow: visible;
  animation: fadeIn 0.4s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  
  .menu-btn {
    display: flex;
  }
  
  .two-col,
  .objects-switcher {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 0 1rem;
    height: 90px;
  }
  
  .logo-img {
    height: 60px;
  }

  .nav-phone-header {
    font-size: 0.75rem !important; /* Force smaller size on mobile */
    max-width: 120px; /* Constrain width */
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-btn {
    width: 32px !important;
    height: 32px !important;
  }

  .hamburger {
    width: 16px;
    height: 10px;
  }
  
  .hamburger span {
    height: 1.5px;
  }
  
  .hamburger span:nth-child(2) { top: 4px; }
  .hamburger span:nth-child(3) { top: 8px; }

  .menu-btn.active .hamburger span:nth-child(1) { top: 4px; }
  .menu-btn.active .hamburger span:nth-child(3) { top: 4px; }
  
  .hero-content {
    padding: 3rem 1rem;
  }

  .hero-title {
    font-size: clamp(1.6rem, 6.2vw, 2.2rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .tech-metrics {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    margin-top: 2rem !important;
  }

  .tech-metric-value {
    font-size: 2.25rem !important;
  }

  .tech-metric-label {
    font-size: 0.95rem !important;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .container,
  .container-wide {
    padding: 0 1rem;
  }
  
  .cards-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-item {
    flex-direction: column;
    text-align: center;
  }
  
  .feature-icon {
    margin: 0 auto;
  }
  
  .spec-table th {
    width: auto;
  }
}

/* ===== Investor Infographics ===== */
.ig-block {
  margin-top: 2.5rem;
  padding: 1.75rem;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.ig-heading {
  text-align: center;
  font-weight: 900;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 1.25rem 0;
}

.ig-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .ig-grid-2 { grid-template-columns: 1fr 1fr; }
}

.ig-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  padding: 1rem 1rem 0.75rem;
}

.ig-card-title {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: #111827;
  margin: 0 0 0.75rem 0;
}

.ig-sublabel {
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 0.25rem;
  line-height: 1.4;
  font-size: 0.875rem;
}

.ig-svg {
  width: 100%;
  height: auto;
  display: block;
}

.ig-anim .ig-draw {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.4s ease;
}

.ig-anim .ig-bar {
  transform: scaleY(0.001);
  transform-origin: bottom;
  transition: transform 1.1s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.ig-anim .ig-fade {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.ig-anim.in-view .ig-draw { stroke-dashoffset: 0; }
.ig-anim.in-view .ig-bar { transform: scaleY(1); }
.ig-anim.in-view .ig-fade { opacity: 1; transform: translateY(0); }

.ig-pill {
  fill: #a3e635;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.12));
}

.ig-note {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.45;
}

.info-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.info-section h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.info-section p {
  color: var(--text-gray);
  line-height: 1.7;
}

.investor-lots-title {
  margin-top: 3rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.project-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

/* Inline gallery inside project card image */
.project-image .inline-gallery {
  position: relative;
}

.project-image .inline-gallery-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.project-image .inline-gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 2;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.project-image .inline-gallery-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-50%) scale(1.03);
}

.project-image .inline-gallery-btn.prev { left: 12px; }
.project-image .inline-gallery-btn.next { right: 12px; }

.project-image .inline-gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.project-image .inline-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
}

.project-image .inline-gallery-dot.active {
  background: var(--primary-accent);
  border-color: rgba(255, 255, 255, 0.9);
}

.project-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 1;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.05) 50%, transparent 100%);
  pointer-events: none;
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.project-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.project-spec-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.project-spec-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.project-price-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.lot-desc {
  margin-top: 0.75rem;
  color: var(--text-gray);
  line-height: 1.65;
  font-size: 0.98rem;
}

.project-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.project-link-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.project-link-btn .icon {
  width: 18px;
  height: 18px;
}

.lot-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 1024px) {
  .lot-metrics { grid-template-columns: repeat(3, 1fr); }
}

.metric-tile {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.9rem 1rem;
}

.metric-value {
  font-weight: 900;
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.metric-label {
  margin-top: 0.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  font-size: 0.875rem;
}

.metric-sub {
  margin-top: 0.25rem;
  color: var(--text-gray);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.35;
}

.big-quote {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 6px solid var(--primary);
  background: rgba(4, 120, 87, 0.08);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.6;
}

.divider {
  height: 1px;
  background: var(--border-color);
  margin: 2rem 0;
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* ===== Page Switcher (Sections Grid) ===== */
.sections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
}
@media (max-width: 1024px) {
  .sections-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .sections-grid { grid-template-columns: 1fr; }
}

.section-card {
  position: relative;
  height: 300px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  transition: all 0.5s ease;
}
.section-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
  transition: transform 0.5s ease, filter 0.3s ease;
}
.section-card:hover::before {
  transform: scale(1.1);
  filter: brightness(0.7);
}
.section-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}
.section-card.winter::before { background-image: url('../images/generated/e872b6eefe3c1dda9ae66799879060f8_1766419361.png'); }
.section-card.autumn::before { background-image: url('../images/generated/skarb-lot-skarb1-summer-2.webp'); }
.section-card.summer::before { background-image: url('../images/generated/skarb-lot-skarb1-summer-1.webp'); }
.section-card.spring::before { background-image: url('../images/generated/skarb-lot-skarb2-spring-1.webp'); }

/* Specific Section Images to match Index */
.section-card.o-kompanii::before { background-image: url('../images/oKompaniizima.jpg'); }
.section-card.investoru::before { background-image: url('../images/inveslet.jpg'); }
.section-card.predprinimatelyu::before { background-image: url('../images/PredprVes.jpg'); }
.section-card.upravlenie::before { background-image: url('../images/upravOs.jpg'); }
.section-card.obekty::before { background-image: url('../images/reference_warehouse.jpg'); }

.section-card-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  width: 100%;
}
.section-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-accent);
  margin-bottom: 0.5rem;
}
.section-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}
.section-card-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}
.section-card-arrow {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.section-card:hover .section-card-arrow {
  opacity: 1;
  transform: translateY(0);
  background: var(--primary);
  border-color: var(--primary);
}
.section-card-arrow .icon { width: 18px; height: 18px; color: #fff; }

