/* ========================================
   SKES - СК-Енергосервіс Website Styles
   Brand Colors: Orange #F7941D + Dark #2D2D2D
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
  --orange: #F7941D;
  --orange-light: #FFAA42;
  --orange-dark: #D97B0B;
  --orange-glow: rgba(247, 148, 29, 0.3);
  --orange-tint: #FFF7ED;
  --dark: #2D2D2D;
  --dark-deep: #1A1A1A;
  --gray-600: #4B5563;
  --gray-400: #9CA3AF;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --white: #FFFFFF;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button { border: none; cursor: pointer; font-family: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }
p { color: var(--gray-600); }

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}
.section-title h2 { margin-bottom: 1rem; }
.section-title .accent-line {
  width: 60px;
  height: 4px;
  background: var(--orange);
  margin: 0 auto;
  border-radius: 2px;
}

/* ---------- Layout ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

section {
  padding: 6rem 0;
  position: relative;
}

/* Ensure nav and interactive elements stay above particle overlay */
.nav { z-index: 1000; }
.back-to-top { z-index: 999; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background: transparent;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 0;
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.05);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .nav.scrolled {
    background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.88) 50%,
      rgba(255, 255, 255, 0.45) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 44px;
  width: auto;
}
.nav-logo img.logo-light { display: none; }
.about-image-box img.logo-light { display: none; }

.nav-logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 44px;
}
.nav-logo-sub {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  letter-spacing: 0.06em;
  white-space: nowrap;
  line-height: 1.2;
}
.nav-logo-main {
  font-family: 'Nunito', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: 0.08em;
  line-height: 1.15;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-600);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: var(--transition);
}

.nav-links a:hover { color: var(--orange); }
.nav-links a:hover::after { width: 100%; }

.nav-lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--gray-200);
  margin-left: 0.5rem;
}

.nav-lang a {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}
.nav-lang a.active { color: var(--orange); background: var(--orange-tint); }
.nav-lang a:not(.active) { color: var(--gray-400); }
.nav-lang a:not(.active):hover { color: var(--gray-600); }

.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px var(--orange-glow);
}
.nav-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--orange-glow);
}
.nav-cta::after { display: none !important; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--white) 0%, var(--orange-tint) 50%, var(--white) 100%);
  padding-top: 5rem;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.hero h1 { margin-bottom: 1.5rem; }
.hero h1 .highlight { color: var(--orange); }

.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 900px;
  color: var(--gray-600);
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 900px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 20px var(--orange-glow);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--orange-glow);
}

.btn-outline {
  background: var(--white);
  color: var(--dark);
  border: 2px solid var(--gray-200);
}
.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

/* Hero background shapes */
.hero-shapes {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}
.hero-shape-1 {
  width: 500px;
  height: 500px;
  background: var(--orange);
  top: 10%;
  right: -10%;
  animation: float 8s ease-in-out infinite;
}
.hero-shape-2 {
  width: 300px;
  height: 300px;
  background: var(--dark);
  top: 50%;
  right: 20%;
  animation: float 6s ease-in-out infinite reverse;
}
.hero-shape-3 {
  width: 200px;
  height: 200px;
  background: var(--orange);
  bottom: 10%;
  right: 5%;
  animation: float 10s ease-in-out infinite;
}

/* Particle canvas — fixed between section backgrounds and content */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ---------- Stats Bar ---------- */
.stats {
  background: var(--dark);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.75rem;
  color: var(--orange);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* ---------- About Section ---------- */
.about { background: var(--white); }

.about-grid {
  overflow: hidden; /* contain floats */
}

.about-image {
  float: right;
  width: 220px;
  margin: 0.25rem 0 1.5rem 2.5rem;
  position: relative;
}

.about-image-box {
  background: linear-gradient(135deg, var(--orange-tint), var(--gray-100));
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-image-box img {
  width: 80%;
  max-width: 140px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}

.about-year-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: var(--orange);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 20px var(--orange-glow);
}

.about-text h2 { margin-bottom: 1.5rem; }
.about-text > p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-list {
  list-style: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
}
.about-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-600);
}
.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
}

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

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 10px;
  background: var(--gray-100);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-feature:hover,
.about-feature.active {
  background: var(--orange-tint);
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 148, 29, 0.12);
}

.about-feature-icon {
  width: 36px;
  height: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.about-feature-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  transition: var(--transition);
}

.about-feature:hover .about-feature-icon img,
.about-feature.active .about-feature-icon img {
  transform: scale(1.1);
}

.about-feature-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.about-feature span {
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--dark);
}

.about-feature-desc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--gray-600);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              margin-top 0.3s ease;
  margin-top: 0;
}

.about-feature:hover .about-feature-desc,
.about-feature.active .about-feature-desc {
  max-height: 120px;
  opacity: 1;
  margin-top: 0.4rem;
}

/* ---------- Services Section ---------- */
.services { background: var(--gray-100); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  border-radius: var(--radius);
  border: none;
  background: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Inner background + static border */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  z-index: -1;
  transition: inset 0.5s ease, border-color 0.3s ease, border-radius 0.5s ease;
}

/* Spinning border gradient */
.service-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  aspect-ratio: 1;
  background: conic-gradient(from 0deg, transparent 60%, var(--orange) 80%, transparent 100%);
  transform: translate(-50%, -50%);
  z-index: -2;
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover,
.service-card.active {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(247, 148, 29, 0.15);
}

.service-card:hover::after,
.service-card.active::after {
  inset: 2px;
  border-radius: calc(var(--radius) - 2px);
  border-color: transparent;
}

.service-card:hover::before,
.service-card.active::before {
  opacity: 1;
  animation: borderSpin 2s linear infinite;
}

@keyframes borderSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--orange-tint);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--orange);
  transition: var(--transition);
}
.service-icon svg {
  width: 40px;
  height: 40px;
}

.service-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: var(--transition);
}

.service-card:hover .service-icon,
.service-card.active .service-icon {
  background: var(--orange);
  color: var(--white);
}

.service-card:hover .service-icon img,
.service-card.active .service-icon img {
  filter: brightness(0) invert(1);
}

.service-card h3 {
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Typical Works Divider ---------- */
.typical-works {
  background: var(--dark);
  padding: 3rem 0;
}

.typical-works-title {
  text-align: center;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 2rem;
}
.typical-works-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--orange);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.typical-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 2.5rem;
}

.typical-works-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
}

.typical-works-item svg {
  flex-shrink: 0;
  color: var(--orange);
  width: 18px;
  height: 18px;
}

.typical-works-item span {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

/* ---------- Licenses Section ---------- */
.licenses { background: var(--white); }

/* 3D Carousel */
.licenses-carousel {
  position: relative;
  width: 100%;
  height: 370px;
  perspective: 1200px;
  overflow: hidden;
}

.license-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 24px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  gap: 0.75rem;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.6s ease,
              border-color 0.3s ease;
}

/* Carousel positions */
.license-card[data-pos="center"] {
  opacity: 1;
  z-index: 5;
  transform: translate(-50%, -50%) scale(1) translateX(0);
  pointer-events: auto;
  border-color: var(--orange);
  box-shadow: 0 8px 30px rgba(247, 148, 29, 0.15);
}
.license-card[data-pos="left"] {
  opacity: 0.65;
  z-index: 3;
  transform: translate(-50%, -50%) translateX(-115%) scale(0.82);
  pointer-events: auto;
  cursor: pointer;
}
.license-card[data-pos="right"] {
  opacity: 0.65;
  z-index: 3;
  transform: translate(-50%, -50%) translateX(115%) scale(0.82);
  pointer-events: auto;
  cursor: pointer;
}
.license-card[data-pos="far-left"] {
  opacity: 0;
  z-index: 1;
  transform: translate(-50%, -50%) translateX(-200%) scale(0.65);
}
.license-card[data-pos="far-right"] {
  opacity: 0;
  z-index: 1;
  transform: translate(-50%, -50%) translateX(200%) scale(0.65);
}

/* Carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--gray-200);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.carousel-dot.active {
  background: var(--orange);
  transform: scale(1.2);
}
.carousel-dot:hover {
  background: var(--orange);
  opacity: 0.7;
}

.licenses-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--gray-600);
  font-style: italic;
}

.license-icon {
  width: 64px;
  height: 64px;
  background: var(--orange-tint);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
  transition: var(--transition);
}
.license-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: var(--transition);
}

.license-card[data-pos="center"] .license-icon {
  background: var(--orange);
}
.license-card[data-pos="center"] .license-icon img {
  filter: brightness(0) invert(1);
}

.license-card h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.license-card p {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--gray-600);
  max-width: 220px;
}

/* ---------- Clients Section ---------- */
.clients {
  background: var(--dark);
  color: var(--white);
}

.clients .section-title h2 { color: var(--white); }
.clients .section-title p { color: var(--gray-400); }

.clients-logo-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.client-logo-card {
  background: #1A1A1A;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo-card:hover,
.client-logo-card.active {
  background: #FFFFFF;
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(247, 148, 29, 0.2);
}

.client-logo-img {
  height: 44px;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: var(--transition);
}
.client-logo-img[alt="SOCAR"] {
  position: relative;
  top: -2px;
}

.client-logo-card:hover .client-logo-img,
.client-logo-card.active .client-logo-img {
  filter: none;
  opacity: 1;
}


/* ---------- Contact Section ---------- */
.contact { background: var(--gray-100); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--orange-tint);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
}

.contact-item-text strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}
.contact-item-text p, .contact-item-text a {
  font-size: 0.95rem;
  color: var(--gray-600);
}
.contact-item-text a:hover { color: var(--orange); }

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-map {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  flex: 1;
  min-height: 200px;
  background: var(--gray-200);
  position: relative;
  transition: box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.contact-map:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
#companyMap {
  width: 100%;
  height: 100%;
  min-height: 320px;
  z-index: 1;
}

/* Muted map tiles — subdued so orange marker stands out */
.contact-map .leaflet-tile-pane {
  filter: saturate(0.3) brightness(0.97) contrast(0.85);
  transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.contact-map:hover .leaflet-tile-pane {
  filter: saturate(0.6) brightness(0.95) contrast(1.15);
}

/* Custom orange marker */
.sces-marker {
  background: none !important;
  border: none !important;
}
.sces-marker svg {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

/* Leaflet popup styling — match page typography */
.leaflet-popup-content-wrapper {
  border-radius: 10px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
  font-family: 'Inter', sans-serif;
}
.leaflet-popup-content {
  margin: 12px 16px !important;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--gray-800);
}
.leaflet-popup-content strong {
  color: var(--orange);
  font-weight: 600;
}
.leaflet-popup-tip {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
}

/* Hide Leaflet default attribution styling (keep text) */
.leaflet-control-attribution {
  font-size: 10px !important;
  opacity: 0.6;
}



/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--gray-200);
}

.contact-form-wrapper h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.contact-form-wrapper > p {
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--white);
  color: var(--dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
}

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

/* Validation states */
.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}
.form-group .field-error {
  display: none;
  font-size: 0.8rem;
  color: #EF4444;
  margin-top: 0.35rem;
}
.form-group .field-error.show {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px var(--orange-glow);
}
.btn-submit:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}
.form-success.show { display: block; }
.form-success svg { margin: 0 auto 1rem; color: #22C55E; }
.form-success h3 { color: #22C55E; margin-bottom: 0.5rem; }

.form-error {
  display: none;
  text-align: center;
  padding: 2rem;
}
.form-error.show { display: block; }
.form-error svg { margin: 0 auto 1rem; color: #EF4444; }
.form-error h3 { color: #EF4444; margin-bottom: 0.5rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--dark-deep);
  color: var(--gray-400);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img { height: 40px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; max-width: 300px; color: var(--gray-400); }

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  font-size: 0.9rem;
  color: var(--gray-400);
}
.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.7s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.8s; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.9s; }

/* ---------- Animations ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fade-in-up 0.8s ease forwards;
}

/* Counter animation */
.count-up { display: inline-block; }

/* Reduced motion: respect user preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale,
  .stagger-children > *, .fade-in-up {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-shape { animation: none !important; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--orange);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--orange-glow);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}
.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

/* ========== Theme Toggle Button ========== */
.theme-toggle {
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-600);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

/* ========== Dark Mode ========== */
/* Applied via [data-theme="dark"] on <html> (toggle or auto) */
[data-theme="dark"] {
  --white: #141414;
  --dark: #E5E7EB;
  --dark-deep: #0D0D0D;
  --gray-100: #1C1C1C;
  --gray-200: #2A2A2A;
  --gray-400: #8B8B8B;
  --gray-600: #A3A3A3;
  --orange-tint: rgba(247, 148, 29, 0.1);
  --orange-glow: rgba(247, 148, 29, 0.2);
  color-scheme: dark;
}

/* Toggle icon swap */
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Nav */
[data-theme="dark"] .nav.scrolled {
  background: rgba(20, 20, 20, 0.95);
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.3);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  [data-theme="dark"] .nav.scrolled {
    background: linear-gradient(to bottom,
      rgba(20, 20, 20, 0.98) 0%,
      rgba(20, 20, 20, 0.88) 50%,
      rgba(20, 20, 20, 0.45) 100%);
  }
}
[data-theme="dark"] .nav-toggle span { background: var(--dark); }
[data-theme="dark"] .nav-links.open {
  background: #1C1C1C;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Hero */
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #141414 0%, #1A1208 50%, #141414 100%);
}
[data-theme="dark"] .hero-badge {
  background: #1C1C1C;
  border-color: #2A2A2A;
}
[data-theme="dark"] .hero-shape { opacity: 0.04; }

/* About */
[data-theme="dark"] .about-image-box {
  background: linear-gradient(135deg, rgba(247,148,29,0.08), #1C1C1C);
}
[data-theme="dark"] .about-image-box img.logo-dark { display: none; }
[data-theme="dark"] .about-image-box img.logo-light { display: block; }
[data-theme="dark"] .about-feature { background: #1C1C1C; }
[data-theme="dark"] .about-feature:hover,
[data-theme="dark"] .about-feature.active {
  background: rgba(247, 148, 29, 0.08);
}

/* Service cards */
[data-theme="dark"] .service-card::after {
  background: #1C1C1C;
  border-color: #2A2A2A;
}
[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .service-card.active {
  box-shadow: 0 8px 30px rgba(247, 148, 29, 0.12);
}

/* License cards */
[data-theme="dark"] .license-card {
  background: #1C1C1C;
  border-color: #2A2A2A;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .license-card[data-pos="center"] {
  border-color: var(--orange);
  box-shadow: 0 8px 30px rgba(247, 148, 29, 0.15);
}
[data-theme="dark"] .license-card[data-pos="center"]:hover {
  box-shadow: 0 8px 30px rgba(247, 148, 29, 0.12);
}
[data-theme="dark"] .carousel-dot {
  background: #2A2A2A;
}

/* Clients, Stats, Typical works (already dark — deeper in dark mode) */
[data-theme="dark"] .clients { background: #111111; }
[data-theme="dark"] .client-logo-card {
  background: #1C1C1C;
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .client-logo-card:hover,
[data-theme="dark"] .client-logo-card.active {
  background: #C0C0C0;
  border-color: rgba(0, 0, 0, 0.12);
}
[data-theme="dark"] .stats { background: #111111; }
[data-theme="dark"] .typical-works { background: #111111; }
[data-theme="dark"] .typical-works-title { color: #FFFFFF; }
[data-theme="dark"] .clients .section-title h2 { color: var(--dark); }

/* Contact */
[data-theme="dark"] .contact-form-wrapper {
  background: #1C1C1C;
  border-color: #2A2A2A;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
  background: #141414;
  border-color: #2A2A2A;
  color: #E5E7EB;
}
[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
  color: #555;
}
[data-theme="dark"] .contact-map { background: #1C1C1C; }
[data-theme="dark"] .contact-map .leaflet-tile-pane {
  filter: brightness(1.6) contrast(1.4);
}
[data-theme="dark"] .contact-map:hover .leaflet-tile-pane {
  filter: brightness(2.2) contrast(1.6);
}
[data-theme="dark"] .leaflet-popup-content-wrapper {
  background: #2A2A2A !important;
}
[data-theme="dark"] .leaflet-popup-content {
  color: #E5E7EB;
}
[data-theme="dark"] .leaflet-popup-tip {
  background: #2A2A2A !important;
}
[data-theme="dark"] .leaflet-control-attribution {
  background: rgba(30, 30, 30, 0.7) !important;
  color: #999 !important;
}
[data-theme="dark"] .leaflet-control-attribution a {
  color: #bbb !important;
}

/* Footer */
[data-theme="dark"] .footer { background: #0D0D0D; }
[data-theme="dark"] .footer-col h4 { color: #FFFFFF; }

/* Back to top, form success */
[data-theme="dark"] .back-to-top { box-shadow: 0 4px 20px rgba(247, 148, 29, 0.15); }
[data-theme="dark"] .form-success h3 { color: #22C55E; }

/* Text readability */
[data-theme="dark"] p { color: var(--gray-600); }

/* Logo swap: show light version in dark mode */
[data-theme="dark"] .nav-logo img.logo-dark { display: none; }
[data-theme="dark"] .nav-logo img.logo-light { display: block; }

/* ---------- Medium Screens ---------- */
@media (max-width: 1200px) {
  .nav-links { gap: 1.25rem; }
  .nav-cta { padding: 0.5rem 1rem; font-size: 0.85rem; }
  .nav-logo-sub { font-size: 0.7rem; }
  .nav-logo-main { font-size: 1.2rem; }
}

/* ---------- Mobile Responsive ---------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-logo-sub { display: none; }
  .nav-logo-main { font-size: 1.15rem; }

  /* Mobile menu */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 0 0 16px 16px;
  }
  .nav-links.open .nav-lang {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
  }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .typical-works-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-logo-row { grid-template-columns: repeat(3, 1fr); }
  /* about uses float layout, no grid adjustments needed */
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Licenses carousel — tablet */
  .licenses-carousel { height: 340px; }
  .license-card { width: 250px; }
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }

  .hero { padding-top: 6rem; min-height: auto; padding-bottom: 4rem; }
  .hero-shapes { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stat-item h3 { font-size: 2.2rem; }

  .about-image { float: none; width: 180px; margin: 0 auto 1.5rem; }
  .about-features { grid-template-columns: 1fr; }

  .services-grid { grid-template-columns: 1fr; }
  .typical-works-grid { grid-template-columns: 1fr; }
  /* Clients — centered carousel on mobile (one at a time) */
  .clients-logo-row {
    display: flex;
    overflow: visible;
    position: relative;
    justify-content: center;
    gap: 0;
    padding: 20px 0;
    min-height: 90px;
  }
  .client-logo-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    width: 220px;
  }
  .client-logo-card.active {
    display: flex;
    background: var(--white);
    border-color: var(--gray-200);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }
  .client-logo-card.active .client-logo-img {
    filter: none;
    opacity: 1;
  }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { min-height: 250px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .hero-buttons { flex-direction: column; }
  .btn { justify-content: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  .hero-desc { font-size: 1rem; }
  .contact-form-wrapper { padding: 1.5rem; }

  /* Licenses carousel — mobile */
  .licenses-carousel { height: 320px; }
  .license-card {
    width: 240px;
    padding: 24px 20px;
  }
  .license-card[data-pos="left"],
  .license-card[data-pos="right"] {
    opacity: 0.4;
    transform: translate(-50%, -50%) translateX(-90%) scale(0.75);
  }
  .license-card[data-pos="right"] {
    transform: translate(-50%, -50%) translateX(90%) scale(0.75);
  }
  .license-icon {
    width: 56px;
    height: 56px;
  }
}
