@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --red: #ef2028;
  --ink: #111214;
  --muted: #65708a;
  --line: #e5e8ed;
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  background: #fff;
  border-bottom: 1px solid #eceff3;
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner,
.section-inner {
  width: min(var(--max), calc(100% - 72px));
  margin: 0 auto;
}
.header-inner {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand img {
  width: 176px;
  height: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 56px;
  font-size: 15px;
  font-weight: 500;
}
.main-nav a { transition: color .2s ease; }
.main-nav a:hover { color: var(--red); }

.hero {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  background: #030404;
}
.hero-image {
  position: absolute;
  inset: 0 0 0 31%;
  background: url('assets/hero-machine.png') center center / cover no-repeat;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #030404 0%, #070809 31%, rgba(4,5,6,.95) 38%, rgba(4,5,6,.55) 52%, rgba(4,5,6,0) 70%),
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.10));
}
.hero-content {
  width: min(var(--max), calc(100% - 72px));
  margin: 0 auto;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.hero h1 {
  margin: 0;
  text-transform: uppercase;
  font-family: 'Audiowide', sans-serif;
  font-weight: 600;
  letter-spacing: .015em;
  line-height: .98;
}
.hero h1 span,
.hero h1 strong {
  display: block;
  font-size: clamp(36px, 4.1vw, 60px);
}
.hero h1 span { color: #fff; }
.hero h1 strong {
  color: var(--red);
  margin-top: 5px;
}
.accent-line {
  width: 120px;
  height: 4px;
  background: var(--red);
  margin-top: 28px;
}

.capabilities {
  padding: 42px 0 56px;
  background: #fff;
}
.capabilities h2,
.about h2,
.contact h2 {
  font-family: 'Audiowide', sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: .02em;
}
.capabilities h2 {
  margin: 0 0 28px;
  text-align: center;
  font-size: clamp(28px, 2.8vw, 39px);
  color: var(--red);
}
.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.capability-card img {
  width: 100%;
  aspect-ratio: 2.18 / 1;
  object-fit: cover;
  border-radius: 3px;
}
.capability-card h3 {
  margin: 14px 0 7px;
  text-transform: uppercase;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 700;
}
.capability-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}


.about {
  padding: 54px 0;
  background: #f7f8fa;
  border-top: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 56px;
  align-items: center;
}
.about h2 {
  margin: 0 0 18px;
  font-family: 'Audiowide', sans-serif;
  text-transform: uppercase;
  font-size: clamp(24px, 2.1vw, 32px);
  letter-spacing: .01em;
  color: var(--red);
  font-weight: 400;
}

.about-copy > p {
  margin: 0 0 28px;
  color: #4d5668;
  font-size: 15px;
  line-height: 1.65;
  max-width: 650px;
}
.about h3 {
  margin: 0 0 14px;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: .08em;
}
.plant-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #dfe3e8;
}
.plant-list li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid #dfe3e8;
  font-size: 14px;
}
.plant-list strong { font-weight: 700; }
.plant-list span { color: var(--muted); }
.machine-slider {
  position: relative;
  min-width: 0;
  width: 88%;
  max-width: 520px;
  justify-self: end;
}
.slides {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #111;
  aspect-ratio: 4 / 3;
}
.machine-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.machine-slide.active { opacity: 1; pointer-events: auto; }
.machine-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.machine-slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 24px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,.80));
  color: #fff;
}
.machine-slide figcaption strong,
.machine-slide figcaption span { display: block; }
.machine-slide figcaption strong { font-size: 17px; margin-bottom: 3px; }
.machine-slide figcaption span { font-size: 13px; color: rgba(255,255,255,.84); }
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 48px;
  border: 0;
  background: rgba(0,0,0,.42);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.slider-arrow:hover { background: rgba(0,0,0,.65); }
.slider-arrow.prev { left: 0; }
.slider-arrow.next { right: 0; }
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #bcc2cb;
  cursor: pointer;
}
.dot.active { background: var(--red); }

.contact {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.1fr 1.12fr .8fr;
  align-items: center;
  gap: 30px;
}
.contact h2 {
  margin: 0;
  color: var(--red);
  font-size: clamp(22px, 1.9vw, 30px);
  font-weight: 400;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.contact-item .icon {
  color: var(--red);
  font-size: 28px;
  line-height: 1;
  width: 30px;
  flex: 0 0 30px;
  text-align: center;
}
.contact-item .mail,
.contact-item .phone { font-size: 27px; }
.contact-item strong,
.contact-item span,
.contact-item a {
  display: block;
  font-size: 15px;
}
.contact-item strong { font-weight: 700; margin-bottom: 3px; }
.contact-item div > span { color: var(--muted); }
.contact-item a { white-space: nowrap; }
.contact-item a:hover { color: var(--red); }

.site-footer { background: #fff; }
.footer-inner {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-inner > img { width: 126px; }
.footer-right {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #65708a;
  font-size: 12px;
}
.footer-right nav {
  display: flex;
  gap: 30px;
}
.footer-right a:hover { color: var(--red); }
.divider {
  width: 1px;
  height: 20px;
  background: #adb4c0;
}
.footer-right small { font-size: 12px; }

@media (max-width: 1000px) {
  .header-inner,
  .section-inner,
  .hero-content { width: min(var(--max), calc(100% - 40px)); }
  .main-nav { gap: 30px; }
  .hero-image { inset-left: 18%; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .machine-slider { width: 100%; max-width: 620px; justify-self: center; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact h2 { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .site-header { position: static; }
  .header-inner { height: 76px; }
  .brand img { width: 145px; }
  .main-nav { gap: 18px; font-size: 13px; }
  .main-nav a:nth-child(2) { display: none; }

  .hero,
  .hero-content { min-height: 330px; }
  .hero-image {
    inset: 0;
    background-position: 61% center;
  }
  .hero-shade {
    background: linear-gradient(90deg, rgba(3,4,4,.96) 0%, rgba(3,4,4,.88) 42%, rgba(3,4,4,.34) 77%, rgba(3,4,4,.16) 100%);
  }
  .hero h1 span,
  .hero h1 strong { font-size: clamp(34px, 11vw, 48px); }
  .accent-line { width: 86px; margin-top: 22px; }

  .capabilities { padding: 34px 0 42px; }
  .capabilities h2 { margin-bottom: 24px; }
  .capability-grid { grid-template-columns: 1fr; gap: 28px; }
  .capability-card img { aspect-ratio: 16 / 7; }

  .about { padding: 38px 0; }
  .about h2 { font-size: 23px; }
  .plant-list li { grid-template-columns: 1fr; gap: 3px; }
  .slides { aspect-ratio: 4 / 3; }

  .contact { padding: 30px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact h2 { grid-column: auto; }
  .contact-item a { white-space: normal; overflow-wrap: anywhere; }

  .footer-inner {
    padding: 24px 0;
    align-items: flex-start;
    gap: 24px;
  }
  .footer-right { align-items: flex-end; flex-direction: column; gap: 10px; }
  .footer-right nav { display: none; }
  .divider { display: none; }
}
