.en-home .main-nav{
  gap: min(2vw,35px);
  margin: 0 auto 0 min(4vw, 70px);
}

.en-home .footer-grid {
  grid-template-columns: 180px 246px 236px 245px;
  justify-content: space-between;
  gap: 44px;
  padding: 57px 0 42px;
}

.en-home .footer-brand-block .footer-logo {
  width: 155px;
}

.en-home .footer-social {
  display: flex;
  /* min-height: 26px; */
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.en-home .footer-social a {
  display: grid;
  margin: 0;
  place-items: center;
}

.en-home .footer-social img {
  width: auto;
  height: 22px;
}

.en-home .footer-grid h2 {
  font-size: 16px;
}

.en-home .footer-grid a,
.en-home .footer-grid p {
  font-size: 14px;
  line-height: 1.5;
}

@media (width <= 1100px) {
  .en-home .main-nav {
    margin: 0;
  }

  .en-home .footer-grid {
    grid-template-columns: 160px repeat(3, 1fr);
  }
}

@media (width <= 760px) {
  .en-home .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .en-home .footer-brand-block {
    grid-column: 1 / -1;
  }
}

.en-home {
  color: var(--ink);
  font-family: var(--font-english);
}

.en-home .language .is-current {
  color: var(--red);
}

.en-home .hero h1 {
  max-width: 900px;
}

.company-overview {
  background: #f3f3f3;
  padding: 166px 0;
}

 .company-overview-inner {
  display: flex;
}

.company-campus-frame {
  position: relative;
  z-index: 0;
  flex: 0 1 591px;
  max-width: 591px;
  height: 368px;
}

.company-campus-frame::before {
  position: absolute;
  z-index: -1;
  top: -18px;
  left: 18px;
  width: 100%;
  height: 100%;
  border: 2px solid #333;
  content: "";
  pointer-events: none;
}

.company-campus {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
} 

.company-campus[hidden],
.company-card[hidden] {
  display: none;
}

.company-copy {
  flex: 1;
  min-width: 0;
}

.company-overview.is-visible .company-campus-frame {
  animation: company-enter-left 700ms ease both;
}

.company-overview.is-visible .company-copy {
  animation: company-enter-right 700ms ease both;
}

.company-tabs {
  display: flex;
  align-items: start;
  justify-content: center;
  gap: 70px;
}

.company-tabs button,
.company-tabs a {
  position: relative;
  padding: 0 20px;
  color: rgba(0, 0, 0, 0.44);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.4; 
}

.company-tabs button.is-active,
.company-tabs a.is-active {
  font-weight: 600;
  color: #333333;
}

.company-tabs button.is-active::after,
.company-tabs a.is-active::after {
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 3px;
  content: "";
  background: #fff;
}

.company-card {
  padding: 45px 27px;
  color: #fff;
  background: var(--red);
}

.company-card.is-location-california {
  background: #1C3F64;
}

.company-card.is-location-china {
  background: var(--red);
}

.company-card h2 {
  margin-bottom: 22px;
  font-size: 48px;
  display: flex;
  align-items: center;
}

.company-card h2::before{
  content: "";
  width: 12px;
  height: 40px;
  background-color: #fff;
  margin-right: 10px;
}

.company-card p {
  max-width: 565px;
  font-size: 16px;
  line-height: 1.65;
    display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 5;
  -webkit-line-clamp: 5;
  overflow: hidden;
  text-overflow: ellipsis;
}

.company-card.is-switching h2,
.company-card.is-switching p {
  animation: company-switch-up 520ms ease both;
}

.company-card.is-switching p {
  animation-delay: 70ms;
}

@keyframes company-enter-left {
  from {
    opacity: 0;
    transform: translateX(-70px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes company-enter-right {
  from {
    opacity: 0;
    transform: translateX(70px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes company-switch-up {
  from {
    opacity: 0;
    transform: translateY(42px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .company-campus-frame,
  .company-copy,
  .company-overview.is-visible .company-campus-frame,
  .company-overview.is-visible .company-copy,
  .company-card.is-switching h2,
  .company-card.is-switching p {
    animation: none;
  }
}
.en-home .services .section-title {
  margin-bottom: 50px;
}

.en-home .service-panel {
  margin-top: 0;
}

.en-home .service-copy h3 {
  margin-bottom: 18px;
  font-size: 22px;
}

.en-home .service-search {
  width: 100%;
  height: 52px;
  margin-top: 38px;
}

.en-home .service-tabs {
  width: 100%;
  grid-template-columns: 218px 281px;
  justify-content: start;
  margin-top: 45px;
}


.en-home .advantage-card img {
  height: 260px;
}


.en-home .advantage-card h3 {
  font-size: 24px;
}

.en-home .news-card h3 {
  font-size: 22px;
  line-height: 1.45;
}

.en-home .contact-rail {
  right: 25px;
  bottom: 155px;
  width: 101px;
  padding: 13px 12px;
  border-radius: 51px;
}

.en-home .contact-rail a,
.en-home .contact-rail button {
  gap: 7px;
}

.en-home .contact-rail img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.en-home .contact-rail button img {
  width: 61px;
  height: 61px;
}

.en-home .contact-rail span {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.05;
  text-align: center;
}

.en-home .back-top {
  right: 28px;
  bottom: 45px;
  width: 96px;
  height: 96px;
}

.en-home .back-top img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.advantages{
  overflow: hidden;
}


.en-home .slider::after{
  position: absolute;
  width: 100vw;
  height: 80%;
  background-color: #F3F3F3;
  content: "";
  top: 50%;
  transform: translate(calc((100vw - 1200px) * -0.5),-50%);
  z-index: -1;
}

@media (width <= 1100px) {

  .company-campus-frame {
    flex-basis: 55%;
    width: 55%;
  }

  .company-copy {
    top: 155px;
    width: 55%;
  }

}

@media (width <= 760px) {
  .company-overview {
    padding: 64px 0;
  }

  .company-overview-inner {
    flex-direction: column;
  }

  .company-campus-frame,
  .company-copy {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
  }

  .company-campus-frame {
    flex: none;
    max-width: none;
    height: 250px;
    margin-top: 0;
  }

  .company-campus-frame::before {
    display: none;
  }

  .company-copy {
    margin-top: -1px;
  }

  .company-tabs {
    height: 50px;
    justify-content: space-around;
    gap: 0;
    padding-top: 15px;
    background: #fff;
  }

  .company-tabs button,
  .company-tabs a {
    padding: 0 12px;
    font-size: 22px;
  }

  .company-card {
    padding: 36px 24px;
  }

  .company-card h2 {
    font-size: 30px;
  }


  .en-home .service-tabs {
    grid-template-columns: 1fr 1fr;
  }

}
