:root {
  --page-width: 1024px;
  --text-main: #111111;
  --text-muted: #666666;
  --bg-light: #f6f6f6;
  --blue-main: #041f78;
  --hero-blue: #77b6ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  background: #ffffff;
}

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

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

.page {
  overflow: hidden;
}

.hero,
.intro,
.advantage-panel,
.services {
  width: min(calc(100% - 48px), var(--page-width));
  margin: 0 auto;
}

.hero {
  padding-top: 18px;
}

.hero__visual {
  position: relative;
  min-height: 534px;
  border-radius: 0 0 22px 22px;
  background: url("./img/ban.png") center/cover no-repeat;
}

.hero__nav {
  position: absolute;
  top: 24px;
  right: 72px;
  display: flex;
  gap: 34px;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

.hero__cta {
  position: absolute;
  left: 47px;
  top: 378px;
  width: 205px;
  height: 70px;
  border-radius: 40px;
}

.floating-badge {
  position: fixed;
  top: 85px;
  right: 12px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.floating-badge__chip {
  width: 72px;
}

.floating-badge__label {
  width: 52px;
}

.intro {
  padding: 78px 0 26px;
  text-align: center;
}

.intro h2,
.services h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.intro p {
  width: min(100%, 380px);
  margin: 12px auto 0;
  font-size: 10px;
  line-height: 1.8;
  color: var(--text-muted);
}

.advantage-panel {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 232px;
  padding: 0 46px 0 118px;
  border-radius: 20px;
  background: #000000;
  overflow: visible;
}

.advantage-panel__shape {
  position: absolute;
  left: 0;
  top: 0;
  width: 92px;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.advantage-panel__card {
  position: absolute;
  right: -14px;
  top: -18px;
  width: 146px;
}

.advantage-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.advantage-item {
  text-align: center;
  color: #ffffff;
}

.advantage-item__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 34px;
  margin-bottom: 14px;
}

.advantage-item__icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.advantage-item p {
  max-width: 190px;
  margin: 0 auto;
  font-size: 10px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.services {
  padding: 78px 0 0;
}

.services h2 {
  text-align: center;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 65px;
  align-items: center;
  padding: 38px 48px 0;
}

.service-row--reverse {
  grid-template-columns: 360px 1fr;
  padding-top: 56px;
}

.service-row__content h3 {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
}

.service-row__content p {
  width: min(100%, 370px);
  margin: 0;
  font-size: 12px;
  line-height: 1.9;
  color: #6d7b92;
}

.service-row__media {
  display: flex;
  justify-content: center;
}

.service-row__media img {
  width: 100%;
  max-width: 320px;
}

.stats {
  margin-top: 70px;
  background: var(--blue-main);
}

.stats__grid {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 34px 60px 38px;
}

.stat-item {
  text-align: center;
  color: #ffffff;
}

.stat-item strong {
  display: block;
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 700;
}

.stat-item span {
  display: block;
  font-size: 10px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.footer {
  background: #000000;
}

.footer__grid {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr;
  gap: 72px;
  padding: 52px 78px 62px;
  color: #ffffff;
}

.footer h4 {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 600;
}

.footer p,
.footer li {
  margin: 0;
  font-size: 12px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.78);
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 960px) {
  .hero__visual {
    min-height: 0;
    padding-top: 53.38%;
    background-position: center;
  }

  .hero__nav {
    right: 28px;
    gap: 18px;
    font-size: 10px;
  }

  .hero__cta {
    left: 4.5%;
    top: 54%;
    width: 20%;
    height: 11%;
  }

  .advantage-panel {
    min-height: 0;
    padding: 34px 28px 34px 102px;
  }

  .advantage-panel__card {
    width: 120px;
    right: -10px;
    top: -12px;
  }

  .service-row,
  .service-row--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 34px 20px 0;
  }

  .service-row--reverse .service-row__media {
    order: 2;
  }

  .service-row--reverse .service-row__content {
    order: 1;
  }

  .stats__grid,
  .footer__grid,
  .advantage-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero,
  .intro,
  .advantage-panel,
  .services {
    width: min(calc(100% - 24px), var(--page-width));
  }

  .floating-badge {
    display: none;
  }

  .hero {
    padding-top: 10px;
  }

  .hero__visual {
    border-radius: 0 0 18px 18px;
  }

  .hero__nav {
    top: 14px;
    right: 14px;
    gap: 10px;
    font-size: 8px;
  }

  .intro {
    padding: 48px 0 28px;
  }

  .intro h2,
  .services h2 {
    font-size: 18px;
  }

  .advantage-panel {
    padding: 26px 18px 26px 18px;
    overflow: hidden;
  }

  .advantage-panel__shape,
  .advantage-panel__card {
    display: none;
  }

  .advantage-list,
  .stats__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .services {
    padding-top: 56px;
  }

  .service-row,
  .service-row--reverse {
    padding-left: 0;
    padding-right: 0;
  }

  .stats {
    margin-top: 48px;
  }

  .stats__grid {
    padding: 28px 24px;
  }

  .footer__grid {
    gap: 28px;
    padding: 40px 24px 48px;
  }
}
