:root {
  --page-width: 1180px;
  --content-width: 980px;
  --ink: #063d73;
  --ink-dark: #042e59;
  --blue: #00558f;
  --blue-dark: #004678;
  --blue-bright: #2e98e4;
  --pale: #eaf2f8;
  --white: #ffffff;
  --line: #d8e5ef;
  --footer: #171717;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #2b2b2b;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

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

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

.site-frame {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  overflow: hidden;
  background: var(--pale);
  box-shadow: 0 20px 70px rgb(0 0 0 / 0.22);
}

.container {
  width: min(100% - 180px, var(--content-width));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 54px 0;
}

.section h2 {
  margin: 0 0 28px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.05;
}

.section-light {
  background: var(--pale);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 18px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.button-dark {
  color: var(--white);
  background: var(--ink);
}

.button-light {
  color: var(--ink);
  background: var(--white);
}

.button-outline {
  min-height: 25px;
  color: var(--white);
  border: 1px solid rgb(255 255 255 / 0.65);
}

.hero {
  position: relative;
  min-height: 660px;
  isolation: isolate;
  color: var(--white);
  background:
    linear-gradient(90deg, rgb(0 62 112 / 0.64) 0%, rgb(0 82 133 / 0.16) 48%, rgb(0 48 82 / 0.05) 100%),
    url("assets/hero-factory.png") center / cover no-repeat;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: min(100% - 88px, 1100px);
  min-height: 56px;
  margin: 0 auto;
  gap: 34px;
  color: var(--white);
}

.brand,
.footer-brand {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand::first-letter,
.footer-brand::first-letter {
  color: #00a6df;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.92;
}

.nav-action {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 10px;
  border: 1px solid rgb(255 255 255 / 0.45);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 340px;
  margin-left: calc((100% - min(100% - 180px, var(--content-width))) / 2);
  padding-top: 155px;
}

.hero-copy h1 {
  margin: 0;
  font-size: 31px;
  font-weight: 900;
  line-height: 1.03;
}

.hero-copy p {
  width: 325px;
  margin: 15px 0 18px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.hero-dots span {
  width: 15px;
  height: 3px;
  background: rgb(255 255 255 / 0.72);
}

.hero-dots span:first-child {
  background: var(--white);
}

.products {
  min-height: 526px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 330px;
  padding: 16px 15px 18px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--white);
  box-shadow: 0 1px 0 rgb(5 58 104 / 0.04);
}

.product-card h3 {
  min-height: 27px;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
}

.product-card p {
  min-height: 42px;
  margin: 0 0 12px;
  color: #557896;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.45;
}

.product-card a,
.solution-copy a {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 10px;
  color: var(--white);
  background: var(--ink);
  border-radius: 2px;
  font-size: 9px;
  font-weight: 800;
}

.product-card img {
  align-self: end;
  justify-self: center;
  width: 82%;
  height: 138px;
  object-fit: contain;
}

.about {
  min-height: 613px;
  padding-top: 0;
}

.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #06111d;
}

.video-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.video-overlay h3 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1;
}

.video-overlay strong {
  margin-top: 44px;
  color: #ff1212;
  font-size: 74px;
  font-weight: 500;
  line-height: 0.9;
}

.engineering {
  min-height: 687px;
  color: var(--white);
  background: var(--blue-bright);
}

.engineering h2,
.updates h2,
.solutions h2 {
  color: var(--white);
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.subheading {
  margin: 4px 0 19px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.service-panel {
  overflow: hidden;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink-dark);
}

.service-item {
  position: relative;
  display: flex;
  min-height: 74px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 0 54px 0 33px;
}

.service-item:first-child {
  border-top: 0;
}

.service-item h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
}

.service-item p {
  max-width: 540px;
  margin: 17px 0 0;
  color: #31526f;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.55;
}

.service-item-open {
  min-height: 247px;
  align-items: flex-start;
  padding-top: 36px;
  padding-bottom: 24px;
}

.service-item-open img {
  width: 225px;
  height: 150px;
  margin-left: auto;
  border-radius: 8px;
  object-fit: cover;
}

.plus {
  position: absolute;
  top: 24px;
  right: 30px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
}

.solutions {
  min-height: 760px;
  padding-top: 58px;
  background: var(--blue-dark);
}

.solution-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 470px;
  margin-top: 28px;
}

.solution-card {
  overflow: hidden;
  border-radius: 9px;
  background: var(--white);
  box-shadow: 0 12px 28px rgb(0 20 46 / 0.12);
}

.solution-main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 36px;
  width: min(760px, calc(100% - 230px));
  min-height: 335px;
  padding: 44px 42px;
}

.solution-copy h3 {
  width: 270px;
  margin: 0 0 24px;
  color: var(--ink-dark);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.18;
}

.solution-copy p {
  width: 245px;
  margin: 0 0 62px;
  color: #31526f;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.55;
}

.solution-main figure {
  margin: 0;
}

.solution-main img {
  width: 100%;
  height: 245px;
  object-fit: cover;
}

.solution-main figcaption {
  min-height: 36px;
  padding: 9px 11px;
  color: var(--white);
  background: var(--ink);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.45;
}

.solution-side {
  position: absolute;
  z-index: 1;
  width: 255px;
  height: 300px;
}

.solution-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-left {
  left: -170px;
}

.side-right {
  right: -150px;
  padding: 42px 32px;
}

.side-right h3 {
  margin: 0 0 16px;
  color: var(--ink-dark);
  font-size: 18px;
  line-height: 1.15;
}

.side-right p {
  margin: 0;
  color: #31526f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.carousel-arrow {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 1px solid rgb(255 255 255 / 0.55);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}

.arrow-left {
  left: calc(50% - 425px);
}

.arrow-right {
  right: calc(50% - 425px);
}

.updates {
  min-height: 530px;
  background: var(--blue);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.news-card img {
  width: 100%;
  height: 118px;
  border-radius: 5px;
  object-fit: cover;
}

.news-card p {
  margin: 13px 0 8px;
  color: #bcd8ee;
  font-size: 9px;
  font-weight: 800;
}

.news-card h3 {
  margin: 0;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.more-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
}

.feedback {
  min-height: 558px;
}

.feedback h2 {
  width: 460px;
  margin-bottom: 36px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.contact-card {
  min-height: 242px;
  padding: 45px 18px 22px;
  border-radius: 7px;
  background: var(--white);
  text-align: center;
}

.contact-card h3 {
  margin: 17px 0 14px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.contact-card p {
  margin: 0;
  color: #557896;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.55;
}

.contact-icon {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin: 0 auto;
  color: var(--blue);
}

.contact-icon::before,
.contact-icon::after {
  content: "";
  display: block;
}

.pin::before {
  width: 20px;
  height: 20px;
  border: 6px solid var(--blue);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.pin::after {
  position: absolute;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
}

.mail::before {
  width: 27px;
  height: 19px;
  border: 5px solid var(--blue);
  border-radius: 2px;
}

.mail::after {
  position: absolute;
  top: 8px;
  width: 18px;
  height: 18px;
  border-right: 4px solid var(--blue);
  border-bottom: 4px solid var(--blue);
  transform: rotate(45deg);
}

.phone::before,
.chat::before {
  width: 24px;
  height: 24px;
  border: 5px solid var(--blue);
  border-radius: 7px;
  transform: rotate(-16deg);
}

.chat::after {
  position: absolute;
  right: 2px;
  bottom: 3px;
  width: 9px;
  height: 9px;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.float-actions {
  position: absolute;
  right: 16px;
  bottom: 30px;
  display: grid;
  gap: 8px;
}

.float-actions span {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #42a8ec;
}

.footer {
  min-height: 401px;
  padding: 36px 0 28px;
  color: #a5a5a5;
  background: var(--footer);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 75px;
}

.footer p,
.footer a,
.footer-bottom {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.8;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--white);
}

.footer h2 {
  margin: 0 0 17px;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
}

.footer a {
  display: block;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 86px;
  color: #777;
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 48px, var(--content-width));
  }

  .topbar {
    width: min(100% - 32px, 1100px);
    gap: 16px;
  }

  .nav-links {
    display: none;
  }

  .nav-action {
    margin-left: auto;
  }

  .hero-copy {
    width: min(340px, calc(100% - 48px));
    margin-left: 24px;
  }

  .hero-copy p,
  .feedback h2,
  .solution-copy h3,
  .solution-copy p {
    width: auto;
  }

  .product-grid,
  .news-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .solution-main {
    width: min(760px, calc(100% - 48px));
    grid-template-columns: 1fr;
  }

  .solution-side,
  .carousel-arrow {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 600px;
  }

  .hero-copy {
    padding-top: 120px;
  }

  .hero-copy h1 {
    font-size: 27px;
  }

  .product-grid,
  .news-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-item-open {
    display: grid;
    gap: 24px;
  }

  .service-item-open img {
    width: 100%;
    height: 160px;
    margin-left: 0;
  }

  .video-card img {
    height: 310px;
  }

  .video-overlay strong {
    font-size: 48px;
  }

  .footer-bottom {
    display: grid;
    gap: 10px;
  }
}
