.homepage main { padding-bottom: 110px; }

.home-hero {
  position: relative;
  display: grid;
  align-items: center;
  height: 722px;
  overflow: hidden;
  background: #eee;
}
.home-hero-overlay {
  position: absolute;
  inset: 0;
  display: block;
}
.home-hero-media {
  position: absolute;
  inset: 0;
  display: block;
}
.home-hero-media-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.home-hero-overlay::before,
.home-hero-overlay::after {
  content: none;
  position: absolute;
  background: rgba(243,246,245,.96);
}
.home-hero-overlay::before {
  top: 6%;
  bottom: 6%;
  left: calc(50% - 597px);
  width: 3px;
}
.home-hero-overlay::after {
  right: calc(50% - 597px);
  bottom: 40px;
  left: calc(50% - 597px);
  height: 3px;
}
.home-hero::before {
  content: none;
  position: absolute;
  top: 6%;
  bottom: 6%;
  left: calc(50% - 478px);
  z-index: 1;
  width: 3px;
  background: rgba(247,250,249,.92);
}
.home-hero-rings {
  position: absolute;
  top: 50%;
  left: 30%;
  width: 620px;
  height: 620px;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255,255,255,.12),inset 0 0 0 2px rgba(255,255,255,.20);
  display: none;
}
.home-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.home-hero-content h1 {
  max-width: 660px;
  margin: 0 auto;
  color: #656565;
  font-size: 50px;
  line-height: 1.05;
  text-transform: uppercase;
}
.home-hero-content h1 > span { color: var(--red); }
.home-hero-content h1 small {
  display: block;
  margin-top: 9px;
  color: #363636;
  font-size: 31px;
  font-weight: 400;
}
.home-hero-content > p { margin: 28px 0 0; color: #555; font-size: 22px; line-height: 1.5; }
.home-hero-actions { display: flex; justify-content: center; gap: 20px; margin-top: 34px; }
.home-hero-actions .button { font-size: 20px; }
.home-secondary-button { color: #555; background: linear-gradient(#fff,#eceeee); }

.home-intro { padding: 40px 0 55px; text-align: center; }
.home-intro h2,
.home-team h2,
.home-why > h2,
.home-faq h2 {
  margin: 0 0 22px;
  color: var(--heading);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.25;
  text-transform: uppercase;
}
.home-intro p { max-width: 1120px; margin: 0 auto; font-size: 22px; }

.homepage .brand-divider { grid-template-columns: 1fr 122px 1fr; gap: 24px; }
.homepage .brand-divider img { width: 106px; height: 106px; opacity: .48; }

.home-services { display: grid; grid-template-columns: repeat(3,1fr); gap: 35px; padding: 76px 0 92px; }
.home-services picture,.home-team-gallery picture { display: block; width: 100%; }
.home-service-card {
  overflow: hidden;
  border: 1px solid #e0e2e2;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 5px 13px rgba(0,0,0,.08);
  transform: translateZ(0);
  transition: transform .28s ease,border-color .28s ease,box-shadow .28s ease;
}
.home-service-card img { width: 100%; height: 245px; object-fit: cover; filter: saturate(.94); transition: transform .42s ease,filter .42s ease; }
.home-service-card > span {
  display: block;
  padding: 24px 20px 26px;
  color: #555;
  font-family: 'Montserrat',Arial,Helvetica,sans-serif;
  font-size: 25px;
  text-align: center;
  text-transform: uppercase;
  transition: color .28s ease,font-weight .28s ease,letter-spacing .28s ease;
}
@media (hover:hover) {
  .home-service-card:hover {
    border-color: rgba(208,16,27,.28);
    box-shadow: 0 16px 30px rgba(0,0,0,.18);
    transform: translateY(-8px) scale(1.02);
  }
  .home-service-card:hover img { filter: saturate(1.08) contrast(1.035); transform: scale(1.055); }
  .home-service-card:hover > span { color: var(--red); font-weight: 600; letter-spacing: .025em; }
}
.homepage .video-feature { margin-bottom: 94px; }

.homepage .help-block + .brand-divider { margin-top: 105px; }

.home-team { padding: 80px 0 100px; text-align: center; }
.home-team h2 span,
.home-why h2 span,
.home-faq h2 span { color: var(--red); }
.home-team > p { max-width: 900px; margin: 0 auto 48px; }
.home-team-gallery { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 38px; }
.home-team-gallery img { width: 100%; height: 195px; object-fit: cover; border-radius: 18px; }
.home-team > strong { display: block; margin-top: 30px; font-size: 18px; font-weight: 500; text-transform: uppercase; }
.home-team-button .button-logo {
  width: 42px;
  height: 42px;
  margin-right: 12px;
  object-fit: contain;
  opacity: 1;
  filter: brightness(0) invert(1) contrast(100) drop-shadow(0 0 .7px #fff) drop-shadow(0 0 .7px #fff);
}
.home-team-button { padding: 8px 24px 8px 12px; font-weight: 600; letter-spacing: .025em; text-transform: uppercase; }

.home-why { position: relative; padding: 20px 0 105px; text-align: center; }
.home-why::before {
  content: '';
  position: absolute;
  top: 300px;
  left: 50%;
  z-index: 0;
  width: min(1440px,100vw);
  height: 100px;
  background: linear-gradient(90deg,rgba(238,238,237,.92) 0,rgba(238,238,237,.92) calc(50% - 135px),transparent calc(50% - 135px),transparent calc(50% + 135px),rgba(238,238,237,.92) calc(50% + 135px),rgba(238,238,237,.92) 100%);
  transform: translateX(-50%);
}
.home-why::after {
  content: '';
  position: absolute;
  top: 240px;
  left: 50%;
  z-index: 1;
  display: block;
  width: 220px;
  height: 220px;
  opacity: .22;
  background: url('../images/logo-large.png') center/contain no-repeat;
  transform: translateX(-50%);
}
.home-why > * { position: relative; z-index: 2; }
.home-why > h2 { font-weight: 700; }
.home-why > p { max-width: 850px; margin: 0 auto 50px; }
.home-benefits { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 100px; max-width: 1100px; margin-inline: auto; }
.home-benefits article {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 138px;
  padding: 10px 15px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(0,0,0,.13);
  text-align: left;
}
.home-benefits article > picture { flex: 0 0 82px; width: 82px; height: 82px; aspect-ratio: 1; }
.home-benefits .benefit-icon { display: block; width: 82px; height: 82px; aspect-ratio: 1; object-fit: contain; }
.home-benefits h3 { margin: 0 0 7px; color: #555; font-size: 22px; }
.home-benefits p { margin: 0; font-size: 18px; }

.home-faq {
  position: relative;
  padding: 60px 45px 65px;
  overflow: hidden;
  border: 1px solid #eee;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(0,0,0,.12);
  text-align: center;
}
.home-faq h2 { font-size: 35px; font-weight: 700; }
.home-faq::after { content: '?'; position: absolute; right: 30px; top: -26px; color: #f5f5f5; font: 300px/1 'Montserrat',sans-serif; }
.home-faq > * { position: relative; z-index: 1; }
.home-faq > p { margin: 0 0 30px; }
.home-faq small { display: block; margin-top: 24px; font-size: 18px; }
.home-faq .button { font-weight: 600; }
.faq-button-icon {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  margin-right: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 20px !important;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 900px) {
  .home-hero { height: 560px; }
  .home-hero-media-image { object-position: center; }
  .home-hero::before { display: none; }
  .home-hero-overlay::before,.home-hero-overlay::after { display: none; }
  .home-hero-content { text-align: center; }
  .home-hero-content h1 { margin-inline: auto; font-size: 43px; }
  .home-hero-content > p { font-size: 20px; }
  .home-hero-actions { justify-content: center; }
  .home-services { gap: 18px; }
  .home-service-card img { height: 190px; }
  .home-service-card > span { font-size: 20px; }
  .home-team-gallery { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 650px) {
  .homepage main { padding-bottom: 70px; }
  .home-hero { height: 500px; }
  .home-hero-media-image { object-position: center; }
  .home-hero-content h1 { font-size: 34px; }
  .home-hero-content h1 small { font-size: 22px; }
  .home-hero-content > p { margin-top: 22px; font-size: 18px; }
  .home-hero-content > p br { display: none; }
  .home-hero-actions { flex-direction: column; align-items: center; gap: 14px; margin-top: 26px; }
  .home-hero-actions .button { width: 235px; font-size: 16px; }
  .home-intro { padding: 48px 0 42px; }
  .home-intro h2,.home-team h2,.home-why > h2,.home-faq h2 { font-size: 23px; }
  .home-intro p,.home-team > p,.home-why > p,.home-faq > p { font-size: 18px; }
  .home-services { grid-template-columns: 1fr; gap: 18px; padding: 55px 0 65px; }
  .home-service-card { transform: none; }
  .home-service-card img { height: 205px; }
  .home-service-card > span { padding: 18px; font-size: 20px; }
  .homepage .video-feature { margin-bottom: 65px; }
  .home-team { padding: 55px 0 75px; }
  .home-team > p { margin-bottom: 32px; }
  .home-team-gallery { gap: 10px; margin-bottom: 30px; }
  .home-team-gallery img { height: 130px; border-radius: 12px; }
  .home-team > strong { font-size: 14px; }
  .homepage .brand-divider { grid-template-columns: 1fr 86px 1fr; gap: 12px; }
  .homepage .brand-divider img { width: 76px; height: 76px; }
  .homepage .help-watermark { left: -135px; width: 430px; height: 430px; }
  .homepage .help-block + .brand-divider { margin-top: 76px; }
  .home-why { padding-bottom: 70px; }
  .home-why::before,.home-why::after { display: none; }
  .home-why > p { margin-bottom: 32px; }
  .home-benefits { grid-template-columns: 1fr; }
  .home-benefits article { gap: 16px; min-height: 120px; padding: 20px; }
  .home-benefits article > picture { flex-basis: 82px; width: 82px; height: 82px; }
  .home-benefits h3 { font-size: 20px; }
  .home-benefits p { font-size: 17px; }
  .home-faq { padding: 45px 22px 50px; border-radius: 17px; }
  .home-faq h2 { font-size: 26px; }
  .home-faq::after { right: -5px; top: 5px; font-size: 190px; }
  .home-faq small { font-size: 16px; }
}
