.hero {
  position: relative;
  min-height: 590px;
  background:
    linear-gradient(90deg, rgba(6, 27, 58, 0.97) 0%, rgba(6, 27, 58, 0.86) 48%, rgba(6, 27, 58, 0.1) 100%),
    url("../images/hero-world.webp") center right / cover no-repeat;
  color: #ffffff;
  overflow: hidden;
}

.hero-grid {
  min-height: 590px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.hero-content {
  width: min(100%, 620px);
  padding: 42px 0 72px;
}

.hero-badge {
  display: inline-flex;
  height: 30px;
  padding: 0 13px;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0;
  font-size: 46px;
  line-height: 1.13;
  font-weight: 600;
  letter-spacing: -1.4px;
}

.hero p {
  width: min(100%, 520px);
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
}

.hero-buttons {
  margin-top: 28px;
  display: flex;
  gap: 12px;
}

.stats {
  position: relative;
  z-index: 2;
  margin-top: -46px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 104px;
  overflow: hidden;
}

.stat-item {
  padding: 25px 24px;
  border-right: 1px solid var(--color-border);
}

.stat-item:last-child {
  border-right: 0;
}

.stat-item strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  font-weight: 600;
  color: var(--color-blue);
}

.stat-item span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #455a78;
}

.brands {
  padding: 72px 0 36px;
  background: #ffffff;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 28px;
}

.brands-head {
  align-items: center;
}

.brand-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-control {
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-blue);
  display: grid;
  place-items: center;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(7, 27, 58, 0.06);
}

.brand-control:hover {
  background: var(--color-blue-soft);
  border-color: #b9cde6;
}

.brands-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.brands-scroll::-webkit-scrollbar {
  display: none;
}

.brand-card {
  position: relative;
  flex: 0 0 calc((100% - 54px) / 4);
  min-height: 220px;
  padding: 28px 24px;
  scroll-snap-align: start;
  overflow: hidden;
  transition: 0.22s ease;
}

.brand-card:hover {
  transform: translateY(-4px);
  border-color: #b9cde6;
  box-shadow: 0 18px 45px rgba(7, 27, 58, 0.08);
}

.brand-logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.brand-logo img {
  max-width: 190px;
  max-height: 70px;
  object-fit: contain;
}

.brand-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.brand-card p {
  width: 165px;
  margin: 9px 0 0;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 300;
  color: var(--color-muted);
}

.brand-arrow {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-blue-soft);
  color: var(--color-blue);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 600;
}

.services {
  padding: 36px 0 72px;
  background: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 205px;
  padding: 26px 22px 24px;
  transition: 0.22s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(7, 27, 58, 0.09);
  border-color: #b9cde6;
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(18, 100, 200, 0.1), rgba(31, 117, 214, 0.18));
  border: 1px solid rgba(18, 100, 200, 0.16);
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  color: var(--color-blue);
  font-size: 24px;
  font-weight: 300;
}

.service-card:hover .service-icon {
  background: var(--color-blue);
  color: #ffffff;
  border-color: var(--color-blue);
}

.service-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--color-text);
}

.service-card p {
  margin: 11px 0 0;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 300;
  color: #55677f;
}

.about-home {
  padding: 0 0 74px;
  background: #ffffff;
}

.about-box {
  display: grid;
  grid-template-columns: 0.88fr 0.78fr 0.9fr;
  min-height: 350px;
  background: linear-gradient(90deg, var(--color-dark) 0%, var(--color-dark-2) 52%, rgba(8, 41, 85, 0.82) 100%);
  color: #ffffff;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(7, 27, 58, 0.16);
}

.about-content {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.about-content span {
  display: inline-flex;
  margin-bottom: 13px;
  color: #7bb7ff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.4px;
}

.about-content h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.8px;
}

.about-content p {
  margin: 18px 0 25px;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
}

.about-content .btn-primary {
  background: var(--color-blue);
  border-color: var(--color-blue);
}

.about-content .btn-primary:hover {
  background: var(--color-blue-2);
  border-color: var(--color-blue-2);
}

.about-features {
  position: relative;
  padding: 46px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

.about-features::before {
  content: "";
  position: absolute;
  left: 0;
  top: 45px;
  bottom: 45px;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.about-feature {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: flex-start;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 21px;
  font-weight: 300;
}

.about-feature h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  color: #ffffff;
}

.about-feature p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
}

.about-image {
  padding: 30px 30px 30px 0;
  display: flex;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  border-radius: 10px;
}

.cta {
  padding: 0 0 74px;
  background: #ffffff;
}

.cta-box {
  min-height: 130px;
  padding: 34px 38px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-blue), var(--color-dark));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 18px 45px rgba(7, 27, 58, 0.12);
}

.cta-box h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.cta-box p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
}

.cta-box .btn-primary {
  background: #ffffff;
  color: var(--color-dark);
  border-color: #ffffff;
  flex: 0 0 auto;
}

@media (max-width: 1020px) {
  .hero,
  .hero-grid {
    min-height: 540px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-box {
    grid-template-columns: 1fr;
  }

  .about-features {
    padding: 0 40px 38px;
  }

  .about-features::before {
    display: none;
  }

  .about-image {
    padding: 0 40px 40px;
  }

  .about-image img {
    height: 300px;
  }
}

@media (max-width: 900px) {
  .brand-card {
    flex-basis: calc((100% - 18px) / 2);
  }
}

@media (max-width: 760px) {
  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-content {
    padding: 72px 0 108px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .stats {
    margin-top: -62px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: 0;
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid var(--color-border);
  }

  .brands {
    padding: 58px 0 30px;
  }

  .services {
    padding: 30px 0 58px;
  }

  .about-home,
  .projects,
  .cta {
    padding-bottom: 58px;
  }

  .about-content {
    padding: 38px 26px 26px;
  }

  .about-content h2 {
    font-size: 29px;
  }

  .about-content p {
    font-size: 14px;
  }

  .about-features {
    padding: 0 26px 30px;
    gap: 18px;
  }

  .about-image {
    padding: 0 26px 30px;
  }

  .about-image img {
    height: 230px;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 26px;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 30px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .stats-grid,
  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .stat-item:last-child {
    border-bottom: 0;
  }

  .brands-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-card {
    flex-basis: 86%;
  }
}

.solutions {
  padding: 0 0 74px;
  background: #ffffff;
}

.solutions-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.solutions-scroll::-webkit-scrollbar {
  display: none;
}

.solution-card {
  position: relative;
  flex: 0 0 calc((100% - 54px) / 4);
  min-height: 230px;
  padding: 28px 24px;
  scroll-snap-align: start;
  transition: 0.22s ease;
}

.solution-card:hover {
  transform: translateY(-5px);
  border-color: #b9cde6;
  box-shadow: 0 18px 45px rgba(7, 27, 58, 0.09);
}

.solution-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(18, 100, 200, 0.1), rgba(31, 117, 214, 0.18));
  border: 1px solid rgba(18, 100, 200, 0.16);
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  color: var(--color-blue);
  font-size: 22px;
  font-weight: 300;
}

.solution-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--color-text);
}

.solution-card p {
  margin: 11px 0 0;
  padding-right: 18px;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 300;
  color: var(--color-muted);
}

.solution-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--color-blue-soft);
  color: var(--color-blue);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 600;
  transition: 0.22s ease;
}

.solution-card:hover .solution-icon,
.solution-card:hover .solution-arrow {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: #ffffff;
}

.solution-card:hover .solution-arrow {
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .solution-card {
    flex-basis: calc((100% - 18px) / 2);
  }
}

@media (max-width: 520px) {
  .solution-card {
    flex-basis: 86%;
  }
}
