:root {
  --home-navy: #0d1b2a;
  --home-navy-2: #061b3a;
  --home-blue: #2d8cff;
  --home-cyan: #12aef7;
  --home-soft: #f5f8ff;
  --home-soft-2: #eaf7ff;
  --home-muted: #6b7c93;
  --home-line: #dfeaf6;
  --home-white: #fff;
  --home-shadow: 0 20px 42px rgba(6, 27, 58, .12);
  --home-shadow-soft: 0 12px 26px rgba(6, 27, 58, .08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--home-white);
}

body.home-page {
  margin: 0;
  overflow-x: hidden;
  color: var(--home-navy-2);
  background: var(--home-white);
  font-family: Manrope, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.home-page a {
  color: inherit;
  text-decoration: none;
}

body.home-page img,
body.home-page svg {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  flex-shrink: 0;
}

body.home-page .site-navbar svg,
body.home-page .site-navbar img,
body.home-page .home-main svg,
body.home-page .home-main img,
body.home-page .site-footer svg,
body.home-page .site-footer img {
  max-width: 180px;
  max-height: 180px;
  object-fit: contain;
  flex-shrink: 0;
}

body.home-page .site-navbar__icon {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex: 0 0 20px !important;
}

body.home-page .site-navbar__mobile-action-icon {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex: 0 0 20px !important;
}

body.home-page .site-navbar__language-flag img,
body.home-page .site-navbar__language-flag svg {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  flex: 0 0 22px !important;
}

body.home-page .site-navbar,
body.home-page .site-navbar.is-scrolled {
  background: var(--home-navy);
  box-shadow: 0 8px 20px rgba(4, 14, 26, .16);
}

body.home-page .site-navbar__auth-link--primary .site-navbar__label {
  color: #061b3a;
  background: #25b7ff;
  box-shadow: 0 8px 18px rgba(37, 183, 255, .22);
}

body.home-page .site-navbar__language-button {
  background: rgba(255, 255, 255, .16) !important;
}

.home-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.home-main {
  overflow: hidden;
  background: var(--home-white);
}

.home-hero {
  position: relative;
  min-height: 670px;
  display: flex;
  align-items: flex-start;
  padding: 138px 0 190px;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(232, 247, 255, .98) 0%, rgba(232, 247, 255, .86) 34%, rgba(232, 247, 255, .36) 58%, rgba(232, 247, 255, .04) 78%),
    url("../mock/decorative/root-blue-door-hero.png") center / cover no-repeat,
    #dff5ff;
  background:
    linear-gradient(90deg, rgba(232, 247, 255, .98) 0%, rgba(232, 247, 255, .86) 34%, rgba(232, 247, 255, .36) 58%, rgba(232, 247, 255, .04) 78%),
    image-set(
      url("../mock/decorative/root-blue-door-hero.webp") type("image/webp"),
      url("../mock/decorative/root-blue-door-hero.png") type("image/png")
    ) center / cover no-repeat,
    #dff5ff;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 165px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .9) 68%, #fff 100%);
  pointer-events: none;
}

.home-hero__copy {
  width: min(720px, 100%);
}

.home-badge {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  padding: 9px 15px;
  border: 1px solid rgba(6, 27, 58, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #28415f;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(6, 27, 58, .08);
  backdrop-filter: blur(10px);
}

.home-badge svg {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  flex: 0 0 18px;
  color: var(--home-navy-2);
}

.home-hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--home-navy-2);
  font-size: clamp(48px, 4.6vw, 64px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: 0;
}

.home-hero h1 span {
  color: var(--home-blue);
}

.home-hero__question {
  margin: 28px 0 0;
  color: #304760;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
}

.home-services {
  position: relative;
  z-index: 4;
  margin-top: -138px;
}

.home-services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-service-card {
  position: relative;
  min-height: 275px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 42px 28px 34px;
  overflow: hidden;
  border: 1px solid rgba(223, 234, 246, .9);
  border-radius: 8px;
  background: var(--home-white);
  box-shadow: var(--home-shadow);
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-service-card:hover,
.home-service-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(45, 140, 255, .32);
  box-shadow: 0 24px 54px rgba(6, 27, 58, .16);
  outline: none;
}

.home-service-card__icon {
  width: 76px;
  height: 76px;
  max-width: 76px;
  max-height: 76px;
  flex: 0 0 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background: #eaf7ff;
  color: var(--home-blue);
  box-shadow: inset 0 0 0 1px rgba(45, 140, 255, .08), 0 10px 22px rgba(45, 140, 255, .14);
}

.home-service-card__icon svg {
  width: 30px;
  height: 30px;
  max-width: 30px;
  max-height: 30px;
  flex: 0 0 30px;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.home-service-card h2 {
  margin: 0;
  color: var(--home-navy-2);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0;
}

.home-service-card p {
  max-width: 215px;
  margin: 14px auto 0;
  color: var(--home-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

.home-card-arrow {
  width: 42px;
  height: 42px;
  max-width: 42px;
  max-height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border-radius: 50%;
  background: var(--home-cyan);
  color: var(--home-white);
  box-shadow: 0 12px 22px rgba(18, 174, 247, .32);
}

.home-card-arrow svg {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  flex: 0 0 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.home-benefits {
  padding: 48px 0 0;
}

.home-benefits__panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  padding: 32px 42px;
  border: 1px solid rgba(223, 234, 246, .95);
  border-radius: 8px;
  background: linear-gradient(180deg, #f6fbff 0%, #fff 100%);
  box-shadow: var(--home-shadow-soft);
}

.home-benefit {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  min-width: 0;
}

.home-benefit__icon {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eaf7ff;
  color: var(--home-blue);
}

.home-benefit__icon svg {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  flex: 0 0 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.home-benefit h3 {
  margin: 0 0 5px;
  color: var(--home-navy-2);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.home-benefit p {
  margin: 0;
  color: var(--home-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.home-why {
  padding: 82px 0 88px;
  text-align: center;
}

.home-why h2 {
  margin: 0;
  color: var(--home-navy-2);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
}

.home-why__intro {
  max-width: 560px;
  margin: 17px auto 0;
  color: var(--home-muted);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.65;
}

.home-stats {
  width: min(820px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin: 52px auto 0;
}

.home-stat {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: #a7bad1;
}

.home-stat svg {
  width: 52px;
  height: 52px;
  max-width: 52px;
  max-height: 52px;
  flex: 0 0 52px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.home-stat strong {
  display: block;
  color: var(--home-navy-2);
  font-size: 31px;
  font-weight: 900;
  line-height: 1;
}

.home-stat span {
  display: block;
  margin-top: 5px;
  color: var(--home-muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
}

@media (max-width: 1180px) {
  .home-shell {
    width: min(100% - 32px, 1060px);
  }

  .home-services__grid {
    gap: 12px;
  }

  .home-service-card {
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (max-width: 900px) {
  .home-hero {
    min-height: 610px;
    padding-top: 96px;
    background-position: 58% center;
  }

  .home-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-benefits__panel {
    grid-template-columns: 1fr 1fr;
  }

  .home-stats {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .home-shell {
    width: min(100% - 24px, 430px);
  }

  .home-hero {
    min-height: 422px;
    padding: 48px 0 116px;
    background:
      linear-gradient(90deg, rgba(232, 247, 255, .96) 0%, rgba(232, 247, 255, .78) 38%, rgba(232, 247, 255, .16) 74%),
      url("../mock/decorative/root-blue-door-hero.png") 70% center / cover no-repeat,
      #dff5ff;
    background:
      linear-gradient(90deg, rgba(232, 247, 255, .96) 0%, rgba(232, 247, 255, .78) 38%, rgba(232, 247, 255, .16) 74%),
      image-set(
        url("../mock/decorative/root-blue-door-hero.webp") type("image/webp"),
        url("../mock/decorative/root-blue-door-hero.png") type("image/png")
      ) 70% center / cover no-repeat,
      #dff5ff;
  }

  .home-hero::after {
    height: 82px;
  }

  .home-badge {
    margin-bottom: 18px;
    padding: 7px 11px;
    font-size: 11px;
    box-shadow: 0 7px 18px rgba(6, 27, 58, .08);
  }

  .home-badge svg {
    width: 15px;
    height: 15px;
    max-width: 15px;
    max-height: 15px;
    flex-basis: 15px;
  }

  .home-hero h1 {
    max-width: 280px;
    font-size: clamp(36px, 10.7vw, 46px);
    line-height: 1.08;
  }

  .home-hero__question {
    max-width: 205px;
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.45;
  }

  .home-services {
    margin-top: -82px;
  }

  .home-services__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-service-card {
    min-height: 128px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 38px;
    grid-template-rows: auto auto;
    align-items: center;
    justify-items: stretch;
    column-gap: 16px;
    padding: 20px 16px 20px 20px;
    text-align: left;
  }

  .home-service-card__icon {
    grid-row: 1 / 3;
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
    flex-basis: 48px;
    margin: 0;
  }

  .home-service-card__icon svg {
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
    flex-basis: 22px;
  }

  .home-service-card h2 {
    align-self: end;
    font-size: 17px;
    line-height: 1.25;
  }

  .home-service-card p {
    align-self: start;
    max-width: none;
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.45;
  }

  .home-card-arrow {
    grid-row: 1 / 3;
    grid-column: 3;
    align-self: end;
    justify-self: end;
    width: 34px;
    height: 34px;
    max-width: 34px;
    max-height: 34px;
    flex-basis: 34px;
    margin: 0;
  }

  .home-card-arrow svg {
    width: 15px;
    height: 15px;
    max-width: 15px;
    max-height: 15px;
    flex-basis: 15px;
  }

  .home-benefits {
    padding-top: 34px;
  }

  .home-benefits__panel {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 20px;
  }

  .home-benefit {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 13px 0;
  }

  .home-benefit + .home-benefit {
    border-top: 1px solid rgba(223, 234, 246, .9);
  }

  .home-benefit__icon {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
    flex-basis: 44px;
  }

  .home-benefit h3 {
    font-size: 13px;
  }

  .home-benefit p {
    font-size: 12px;
  }

  .home-why {
    padding: 56px 0 58px;
  }

  .home-why h2 {
    font-size: 25px;
  }

  .home-why__intro {
    max-width: 320px;
    font-size: 13px;
    line-height: 1.6;
  }

  .home-stats {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 34px;
  }

  .home-stat {
    gap: 9px;
  }

  .home-stat svg {
    width: 42px;
    height: 42px;
    max-width: 42px;
    max-height: 42px;
    flex-basis: 42px;
  }

  .home-stat strong {
    font-size: 25px;
  }

}

@media (max-width: 380px) {
  .home-service-card {
    grid-template-columns: 52px minmax(0, 1fr) 34px;
    column-gap: 13px;
    padding-left: 16px;
  }

  .home-service-card h2 {
    font-size: 16px;
  }

  .home-hero h1 {
    font-size: 34px;
  }
}
