.automation-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
  color: #fff;
  background: #212836;
}

@media (min-width: 1200px) {
  .main-menu .main-menu__list > .products-mega-menu {
    position: static;
  }

  .main-menu .main-menu__list > .products-mega-menu > .products-mega-menu__panel {
    top: 100%;
    left: 50%;
    display: grid;
    width: min(1380px, calc(100vw - 30px));
    max-height: calc(88vh - 80px);
    overflow: hidden;
    padding: 20px 16px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    border-top: 3px solid #fb8404;
    border-radius: 0 0 12px 12px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(23, 29, 40, 0.2);
    transform: translateX(-50%) scaleY(0) translateZ(100px);
  }

  .main-menu .main-menu__list > .products-mega-menu:hover > .products-mega-menu__panel,
  .main-menu .main-menu__list > .products-mega-menu:focus-within > .products-mega-menu__panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scaleY(1) translateZ(0);
  }

  .main-menu .main-menu__list .products-mega-menu__group {
    display: flex;
    flex-direction: column;
    width: auto;
    min-width: 0;
    min-height: 0;
  }

  .main-menu .main-menu__list .products-mega-menu__group + .products-mega-menu__group {
    padding-left: 12px;
    border-left: 1px solid #e5e8ed;
  }

  .main-menu .main-menu__list .products-mega-menu__heading {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0 0 10px;
    padding: 0 0 10px;
    border-bottom: 2px solid #f0f3f7;
    color: #171d28;
    font-family: "Raleway", sans-serif;
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.2;
    flex-shrink: 0;
  }

  .main-menu .main-menu__list .products-mega-menu__heading::after {
    display: none;
  }

  .main-menu .main-menu__list .products-mega-menu__heading:hover {
    color: #fb8404;
    background: transparent;
  }

  .main-menu .main-menu__list .products-mega-menu__heading i {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #fe4040, #fb8404);
    font-size: 14px;
  }

  .main-menu .main-menu__list .products-mega-menu__heading span {
    display: block;
  }

  .main-menu .main-menu__list .products-mega-menu__heading small {
    display: block;
    margin-top: 1px;
    color: #747b87;
    font-family: "Rubik", sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
  }

  .main-menu .main-menu__list .products-mega-menu__group > .products-mega-menu__links {
    position: static;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    max-height: calc(88vh - 170px);
    overflow-y: auto;
    padding: 0 4px 0 0;
    opacity: 1;
    visibility: visible;
    gap: 1px;
    background: transparent;
    box-shadow: none;
    transform: none;
    scrollbar-width: thin;
    scrollbar-color: #fb8404 #f0f3f7;
  }

  .main-menu .main-menu__list .products-mega-menu__group > .products-mega-menu__links::-webkit-scrollbar {
    width: 4px;
  }

  .main-menu .main-menu__list .products-mega-menu__group > .products-mega-menu__links::-webkit-scrollbar-track {
    background: #f0f3f7;
    border-radius: 4px;
  }

  .main-menu .main-menu__list .products-mega-menu__group > .products-mega-menu__links::-webkit-scrollbar-thumb {
    background: #fb8404;
    border-radius: 4px;
  }

  .main-menu .main-menu__list .products-mega-menu__links li {
    width: auto;
    min-width: 0;
  }

  .main-menu .main-menu__list .products-mega-menu__links li > a {
    min-height: 28px;
    margin: 0;
    padding: 4px 6px 4px 20px;
    border-radius: 4px;
    white-space: normal;
    color: #303744;
    font-size: 12.5px;
    line-height: 18px;
  }

  .main-menu .main-menu__list .products-mega-menu__links li > a::before {
    position: absolute;
    top: 11px;
    left: 7px;
    width: 5px;
    height: 5px;
    border: 1px solid #fb8404;
    border-radius: 50%;
    content: "";
  }

  .main-menu .main-menu__list .products-mega-menu__links li > a::after {
    display: none;
  }

  .main-menu .main-menu__list .products-mega-menu__links li.current > a,
  .main-menu .main-menu__list .products-mega-menu__links li:hover > a {
    color: #fe4040;
    background: #fff3ec;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .main-menu .main-menu__list > .products-mega-menu > .products-mega-menu__panel {
    width: min(1080px, calc(100vw - 30px));
    padding: 22px;
    gap: 22px;
  }

  .main-menu .main-menu__list .products-mega-menu__group + .products-mega-menu__group {
    padding-left: 22px;
  }

  .main-menu .main-menu__list .products-mega-menu__links li > a {
    font-size: 12px;
  }
}

@media (max-width: 1199px) {
  .mobile-nav__content .products-mega-menu__heading {
    color: #fb8404 !important;
    font-weight: 700 !important;
  }

  .mobile-nav__content .products-mega-menu__heading small,
  .mobile-nav__content .products-mega-menu__heading i {
    display: none;
  }

  .mobile-nav__content .products-mega-menu__links li > a {
    padding-left: 2em !important;
  }
}

.automation-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(33, 40, 54, 0.98) 0%, rgba(33, 40, 54, 0.86) 52%, rgba(33, 40, 54, 0.2) 100%);
  content: "";
}

.automation-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.automation-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
}

.automation-hero h1 {
  margin: 0 0 20px;
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 800;
  line-height: 1.08;
  overflow-wrap: break-word;
}

.automation-hero p {
  max-width: 680px;
  margin: 0 0 30px;
  color: #eef1f6;
  font-size: 18px;
  line-height: 1.8;
}

.automation-breadcrumb {
  padding: 16px 0;
  border-bottom: 3px solid #fb8404;
  background: #171d28;
}

.automation-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.automation-breadcrumb li,
.automation-breadcrumb a {
  color: #fff;
  font-size: 14px;
}

.automation-breadcrumb a:hover {
  color: #fb8404;
}

.automation-breadcrumb li:not(:last-child)::after {
  margin-left: 8px;
  color: #fb8404;
  content: "/";
}

.automation-section {
  padding: 90px 0;
}

.automation-section--soft {
  background: #f6f7f9;
}

.automation-section__heading {
  max-width: 780px;
  margin: 0 auto 45px;
  text-align: center;
}

.automation-section__heading h2 {
  margin-bottom: 15px;
  color: #171d28;
  font-family: "Raleway", sans-serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
}

.automation-section__heading p {
  margin: 0;
  color: #5c6472;
  font-size: 17px;
  line-height: 1.75;
}

.automation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.automation-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid #e5e8ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(23, 29, 40, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.automation-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(23, 29, 40, 0.14);
}

.automation-card__image {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e8ebef;
}

.automation-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.automation-card:hover .automation-card__image img {
  transform: scale(1.04);
}

.automation-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
}

.automation-card h2,
.automation-card h3 {
  margin: 0 0 12px;
  color: #171d28;
  font-family: "Raleway", sans-serif;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.automation-card p {
  margin: 0 0 22px;
  color: #5c6472;
  line-height: 1.7;
}

.automation-card .tolak-btn {
  margin-top: auto;
}

.automation-detail {
  padding: 85px 0;
}

.automation-detail__overview {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 55px;
  align-items: center;
}

.automation-detail__overview h2,
.automation-content-block h2,
.automation-related h2 {
  margin: 0 0 18px;
  color: #171d28;
  font-family: "Raleway", sans-serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
}

.automation-detail__overview p,
.automation-content-block p {
  color: #5c6472;
  font-size: 16px;
  line-height: 1.8;
}

.automation-detail__media {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(23, 29, 40, 0.18);
}

.automation-detail__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.automation-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 55px;
}

.automation-content-block {
  padding: 32px;
  border: 1px solid #e5e8ed;
  border-radius: 12px;
  background: #fff;
}

.automation-content-block h2 {
  font-size: 25px;
}

.automation-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.automation-list li {
  position: relative;
  padding-left: 27px;
  color: #4f5867;
  line-height: 1.6;
}

.automation-list li::before {
  position: absolute;
  top: 7px;
  left: 0;
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #fb8404;
  box-shadow: 0 0 0 1px #fb8404;
  content: "";
}

.automation-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 55px;
}

.automation-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
}

.automation-cta {
  padding: 60px 0;
  color: #fff;
  background: linear-gradient(135deg, #fe4040, #fb8404);
}

.automation-cta__inner {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}

.automation-cta h2 {
  margin: 0 0 10px;
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
}

.automation-cta p {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: 17px;
}

.automation-cta .tolak-btn {
  flex: 0 0 auto;
  background: #171d28;
}

.automation-related {
  padding: 85px 0;
  background: #f6f7f9;
}

.automation-related > .container > h2 {
  margin-bottom: 35px;
  text-align: center;
}

.homepage-automation {
  padding: 95px 0;
  background: #f6f7f9;
}

.homepage-automation__top {
  display: flex;
  gap: 30px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 42px;
}

.homepage-automation__top h2 {
  margin-bottom: 10px;
  color: #171d28;
  font-family: "Raleway", sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
}

.homepage-automation__top p {
  max-width: 730px;
  margin: 0;
  color: #5c6472;
  font-size: 17px;
  line-height: 1.7;
}

.engineering-strength {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 100px 0;
  background: linear-gradient(180deg, #fff 0%, #f7f8fa 100%);
}

.engineering-strength::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1250px, 90%);
  height: 8px;
  background: linear-gradient(90deg, #fe4040, #fb8404);
  content: "";
  transform: translateX(-50%);
}

.engineering-strength__shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.engineering-strength__shape--one {
  top: 60px;
  right: -130px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(251, 132, 4, 0.13);
}

.engineering-strength__shape--two {
  bottom: -170px;
  left: -130px;
  width: 390px;
  height: 390px;
  background: rgba(254, 64, 64, 0.025);
}

.engineering-strength__header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 48px;
}

.engineering-strength__tagline {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 12px;
  color: #fe4040;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.engineering-strength__tagline::before {
  width: 34px;
  height: 2px;
  background: #fe4040;
  content: "";
}

.engineering-strength__header h2 {
  max-width: 700px;
  margin: 0;
  color: #10282a;
  font-family: "Raleway", sans-serif;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 800;
  line-height: 1.12;
}

.engineering-strength__intro {
  margin: 0;
  padding-left: 26px;
  border-left: 3px solid #fb8404;
  color: #5c6472;
  font-size: 16px;
  line-height: 1.75;
}

.engineering-strength__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.engineering-strength__card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e5e8ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 35px rgba(23, 29, 40, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.engineering-strength__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(23, 29, 40, 0.15);
}

.engineering-strength__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #dce2e6;
}

.engineering-strength__media::after {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(transparent, rgba(23, 29, 40, 0.6));
  content: "";
}

.engineering-strength__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.engineering-strength__card:hover .engineering-strength__media img {
  transform: scale(1.06);
}

.engineering-strength__number {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Raleway", sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.engineering-strength__body {
  position: relative;
  min-height: 205px;
  padding: 34px 25px 28px;
}

.engineering-strength__icon {
  position: absolute;
  top: -24px;
  left: 24px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #fe4040, #fb8404);
  box-shadow: 0 8px 18px rgba(254, 64, 64, 0.25);
}

.engineering-strength__body h3 {
  margin: 0 0 11px;
  color: #17202d;
  font-family: "Raleway", sans-serif;
  font-size: 22px;
  font-weight: 750;
}

.engineering-strength__body p {
  margin: 0;
  color: #5c6472;
  font-size: 15px;
  line-height: 1.65;
}

@media (max-width: 1199px) {
  .engineering-strength__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .engineering-strength__body {
    min-height: 175px;
  }
}

@media (max-width: 767px) {
  .engineering-strength {
    padding: 72px 0 65px;
  }

  .engineering-strength__header {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 34px;
  }

  .engineering-strength__intro {
    padding-left: 18px;
  }

  .engineering-strength__grid {
    grid-template-columns: 1fr;
  }

  .engineering-strength__body {
    min-height: 0;
  }
}

@media (max-width: 1199px) {
  .automation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .automation-hero {
    padding: 70px 0;
  }

  .automation-detail__overview {
    grid-template-columns: 1fr;
  }

  .automation-cta__inner,
  .homepage-automation__top {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .automation-section,
  .automation-detail,
  .automation-related,
  .homepage-automation {
    padding: 65px 0;
  }

  .automation-grid,
  .automation-detail-grid,
  .automation-gallery {
    grid-template-columns: 1fr;
  }

  .automation-hero::after {
    background: rgba(33, 40, 54, 0.9);
  }

  .automation-hero p {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .automation-hero h1 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .automation-content-block {
    padding: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .automation-card,
  .automation-card__image img {
    transition: none;
  }
}
