:root {
  --bg: #ffffff;
  --text: #17324a;
  --muted: #5f7182;
  --primary: #0878bd;
  --primary-dark: #055a91;
  --primary-light: #7cc4ee;
  --accent: #b9d9ef;
  --soft: #eef6fb;
  --border: #d6e6f0;
  --steel: #8da3b3;
  --max: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(8,120,189,.06);
}

.nav {
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: .3px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
}

.logo img {
  display: block;
  width: 340px;
  object-fit: contain;
}

.menu {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}

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

.mobile-btn {
  display: none;
  border: 1px solid var(--border);
  background: white;
  padding: 8px 12px;
  border-radius: 8px;
}

.hero {
  min-height: 560px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5,90,145,.82), rgba(8,120,189,.48) 48%, rgba(185,217,239,.08)),
    url('../images/raw-materials-hero.jpg');
  background-size: cover;
  background-position: center right;
  color: white;
}

.hero-slides,
.hero-slide {
  min-height: inherit;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
  background:
    linear-gradient(90deg, rgba(5,90,145,.86), rgba(8,120,189,.52) 48%, rgba(185,217,239,.1)),
    var(--slide-image);
  background-size: cover;
  background-position: center right;
}

.hero-slide.is-active {
  position: relative;
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

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

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 30px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 13px;
  height: 13px;
  padding: 0;
  border: 2px solid white;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: white;
}

.hero h1 {
  max-width: 800px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  margin: 0 0 20px;
}

.hero p {
  max-width: 680px;
  font-size: 20px;
  margin: 0 0 30px;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(8,120,189,.22);
}

.btn.light {
  background: white;
  color: var(--primary-dark);
}

.cta-row {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.section {
  padding: 78px 0;
}

.section.soft { background: var(--soft); }

.section-title {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-title h2 {
  font-size: clamp(28px, 3vw, 42px);
  margin: 0 0 10px;
}

.section-title p {
  color: var(--muted);
  margin: 0;
}

.about-content {
  max-width: 900px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 18px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid.cards-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cards-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 14px 35px rgba(8,120,189,.07);
}

.card.image-card {
  min-height: 220px;
  display: flex;
  align-items: end;
  background: linear-gradient(180deg, rgba(124,196,238,.08), rgba(5,90,145,.82)), var(--soft);
  color: white;
}

.card h3 { margin-top: 0; font-size: 22px; }

.image-placeholder-card {
  overflow: hidden;
}

.image-placeholder {
  height: 170px;
  display: grid;
  place-items: center;
  margin: -26px -26px 22px;
  border-bottom: 1px dashed var(--border);
  background:
    linear-gradient(135deg, rgba(8,120,189,.12), rgba(185,217,239,.38)),
    repeating-linear-gradient(45deg, rgba(8,120,189,.08) 0 10px, rgba(255,255,255,.2) 10px 20px);
  color: var(--primary-dark);
  font-weight: 800;
  letter-spacing: .2px;
}

.no-jobs-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.no-jobs-card p {
  color: var(--muted);
}

.category-card {
  display: block;
  overflow: hidden;
}

.category-card img {
  display: block;
  width: calc(100% + 52px);
  height: 180px;
  object-fit: cover;
  margin: -26px -26px 22px;
}

.category-card p { color: var(--muted); margin-bottom: 0; }

.category-card:hover h3,
.card h3 a:hover { color: var(--primary); }

.category-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 36px;
}

.category-hero-image {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(8,120,189,.16);
}

.product-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.product-list li { margin-bottom: 6px; }

.product-list a {
  color: var(--primary);
  font-weight: 700;
}

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

.product-list.columns {
  columns: 2;
  column-gap: 42px;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--primary);
  font-weight: 700;
}

.map-embed {
  width: 100%;
  height: 180px;
  margin-top: 14px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(8,120,189,.12);
}

.map-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-weight: 700;
}

.map-icon-link img {
  width: 18px;
  height: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.stat {
  text-align: center;
  padding: 34px 18px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 42px;
  color: var(--primary);
}

.footer {
  background: linear-gradient(135deg, #055a91, #17324a);
  color: white;
  padding: 56px 0 26px;
}

.footer p { color: #d7e8f3; margin: 8px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer h3,
.footer h4 {
  margin: 0 0 12px;
}

.footer-logo {
  display: block;
  width: 260px;
  max-width: 100%;
  background: white;
  border-radius: 12px;
  padding: 8px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer a {
  color: #eaf7ff;
}

.footer a:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.18);
  color: #d7e8f3;
  font-size: 14px;
}

.page-hero {
  min-height: 360px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.84) 46%, rgba(255,255,255,.22)),
    url('../images/services-hero.png');
  background-size: cover;
  background-position: center right;
  padding: 74px 0;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(34px, 4vw, 54px);
  margin: 0 0 12px;
}

.page-hero p {
  max-width: 740px;
  color: var(--text);
  margin: 0;
}

.services-hero {
  min-height: 430px;
}

.form {
  display: grid;
  gap: 14px;
  max-width: 680px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
}

.form textarea { min-height: 140px; }

@media (max-width: 900px) {
  .mobile-btn { display: block; }
  .logo img { width: 240px; }
  .menu {
    display: none;
    position: absolute;
    left: 22px;
    right: 22px;
    top: 128px;
    flex-direction: column;
    align-items: flex-start;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
  }
  .menu.open { display: flex; }
  .grid.cards-2,
  .grid.cards-3,
  .grid.cards-4,
  .stats,
  .footer-grid { grid-template-columns: 1fr; }
  .category-hero-grid { grid-template-columns: 1fr; }
  .product-list.columns { columns: 1; }
}
