:root {
  --bg-main: #ffffff;
  --bg-alt: #faf7f4;
  --bg-soft: #f3ece6;
  --accent: #7a4928;
  --accent-hover: #5c351b;
  --accent-secondary: #9c633e;
  --accent-soft: #f5ebe4;
  --text-main: #1c1917;
  --text-muted: #57504a;
  --border: #e6ddd5;
  --footer-bg: #1e1814;
  --footer-text: #f3ece6;
  --footer-muted: #c2b5aa;
  --shadow-sm: 0 2px 10px rgba(28, 25, 23, 0.04);
  --shadow-md: 0 10px 30px rgba(28, 25, 23, 0.07);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --container: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

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

.nav-link {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-main);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  background: var(--accent);
  color: #ffffff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.9rem;
}

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

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-secondary {
  background-color: #3d2516;
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #29180e;
}

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

.btn-outline:hover {
  background-color: var(--accent-soft);
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-main);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 16px 24px 20px;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu .nav-link {
  padding: 8px 0;
  border-bottom: 1px solid var(--bg-soft);
}

/* Hero Section */
.hero {
  padding: 64px 0 64px;
  background: var(--bg-main);
}

.hero-content {
  max-width: 960px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 28px;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  max-width: 820px;
}

.hero-subtitle {
  margin: 0 0 28px;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 640px;
}

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

/* Section Commons */
.section {
  padding: 72px 0;
  scroll-margin-top: 76px;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 660px;
  margin-bottom: 40px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.015em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.section-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.section-header-row .section-head {
  margin-bottom: 0;
  flex: 1 1 460px;
}

.division-contact-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 1 auto;
}

.division-contact-alt {
  background: var(--bg-alt);
}

.division-contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.division-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.services-grid-2x2 {
  grid-template-columns: repeat(2, 1fr);
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-secondary);
}

.service-img-wrap {
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  overflow: hidden;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-body h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-main);
}

.service-body p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* Heavy Machinery Specs & Works Block */
.heavy-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  margin-top: 24px;
}

.specs-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.specs-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.specs-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.specs-header h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
}

.specs-desc {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-tag-muted {
  background: var(--bg-alt);
  color: var(--text-muted);
  font-weight: 600;
}

.works-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
}

.works-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-main);
}

.works-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

/* Gallery Carousel */
.gallery-carousel {
  position: relative;
  display: flex;
  align-items: center;
}

.gallery-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 6px 4px 12px;
  width: 100%;
  cursor: grab;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-track.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.gallery-slide {
  flex: 0 0 calc((100% - 36px) / 3);
  scroll-snap-align: start;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gallery-slide:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.gallery-slide:hover img {
  transform: scale(1.04);
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-main);
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.carousel-prev {
  left: -18px;
}

.carousel-next {
  right: -18px;
}

.carousel-controls {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dot.active {
  width: 24px;
  border-radius: 999px;
  background: var(--accent);
}

.carousel-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.carousel-status {
  font-weight: 700;
  color: var(--accent);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 15, 12, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-counter {
  color: #f3ece6;
  font-size: 0.9rem;
  font-weight: 600;
}

.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-btn:hover {
  background: var(--accent);
}

.lightbox-close {
  top: 20px;
  right: 24px;
  font-size: 1.7rem;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}

.about-badge-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.about-circle-logo {
  width: 190px;
  height: 190px;
  object-fit: contain;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.pillar-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.pillar-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.pillar-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.pillar-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contacts & Map Section */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 28px;
  align-items: stretch;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.contact-card-alt {
  background: var(--bg-alt);
}

.contact-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 10px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.contact-row:hover {
  color: var(--accent);
}

.contact-row svg {
  color: var(--accent);
  flex-shrink: 0;
}

.address-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.address-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--text-main);
}

.address-text svg {
  color: var(--accent);
  flex-shrink: 0;
}

.map-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 410px;
  display: flex;
  flex-direction: column;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 410px;
  border: 0;
  flex: 1;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 14px;
}

.footer-tagline {
  margin: 0;
  color: var(--footer-muted);
  font-size: 0.94rem;
  max-width: 300px;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--footer-muted);
}

.footer-list a {
  color: var(--footer-text);
  transition: color 0.2s ease;
}

.footer-list a:hover {
  color: #d9a078;
}

.footer-label {
  color: var(--footer-muted);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--footer-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-badge-box {
    max-width: 260px;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 960px) {
  .main-nav,
  .header-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 600px;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    padding: 12px 14px;
  }

  .heavy-specs-grid {
    grid-template-columns: 1fr;
  }

  .gallery-slide {
    flex: 0 0 calc((100% - 18px) / 2);
  }

  .carousel-prev {
    left: 6px;
  }

  .carousel-next {
    right: 6px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 44px 0 44px;
  }

  .section {
    padding: 52px 0;
  }

  .services-grid,
  .services-grid-2x2,
  .about-pillars,
  .footer-grid,
  .works-list {
    grid-template-columns: 1fr;
  }

  .division-contact-box {
    width: 100%;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

@media (max-width: 640px) {
  .gallery-slide {
    flex: 0 0 86%;
    scroll-snap-align: center;
  }

  .carousel-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }
}
