.home-page {
  overflow: clip;
  color: #303033;
}

.home-section {
  margin: 0;
  padding: clamp(48px, 4vw, 56px) 0;
}

.home-section:nth-of-type(even) {
  background: #fffbed;
}

.home-page h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 3.2vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.home-kicker {
  margin: 0 0 14px;
  color: var(--bs-primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.home-section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  margin-bottom: 38px;
}

.home-section__head h2 {
  max-width: none;
}

.home-section__lead {
  max-width: 660px;
  margin: 0;
  color: #666;
  font-size: 18px;
  line-height: 1.45;
}

.home-section__head > .home-section__lead {
  max-width: 760px;
  line-height: 1.45;
}

.home-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  color: #2f3033;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.home-arrow-link span {
  color: var(--bs-primary);
  font-size: 26px;
  transition: transform 180ms ease;
}

.home-arrow-link:hover,
.home-arrow-link:focus-visible {
  color: var(--bs-primary);
}

.home-arrow-link:hover span,
.home-arrow-link:focus-visible span {
  transform: translateX(5px);
}

.home-services {
  background: #fff8f5;
}

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

.home-service-card {
  position: relative;
  display: flex;
  min-height: 170px;
  flex-direction: column;
  padding: 26px 52px 25px 26px;
  overflow: hidden;
  border: 1px solid #eadbd4;
  border-radius: 20px;
  background: #fff;
  color: #303033;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.home-service-card--primary {
  min-height: 205px;
  grid-column: span 1;
  background: #ff7466;
  border-color: #ff7466;
  color: #fff;
}

.home-service-card__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.22;
}

.home-service-card--primary .home-service-card__title {
  font-size: 27px;
}

.home-service-card__text {
  max-width: 420px;
  margin-top: 16px;
  color: #666;
  font-size: 15px;
  line-height: 1.48;
}

.home-service-card--primary .home-service-card__text {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
}

.home-service-card__arrow {
  position: absolute;
  right: 24px;
  bottom: 20px;
  color: var(--bs-primary);
  font-size: 27px;
  line-height: 1;
}

.home-service-card--primary .home-service-card__arrow {
  color: #fff;
}

.home-service-card:hover,
.home-service-card:focus-visible {
  border-color: var(--bs-primary);
  color: #303033;
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(66, 66, 66, 0.1);
}

.home-service-card--primary:hover,
.home-service-card--primary:focus-visible {
  color: #fff;
}

.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
}

.home-split--reverse {
  grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1fr);
}

.home-split__content {
  min-width: 0;
}

.home-split__content > .home-section__lead {
  margin-top: 22px;
}

.home-split__media {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 8 / 5;
  border-radius: 32px;
  background: #f4eee9;
}

.home-split__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-split__media--portrait {
  max-width: 500px;
  justify-self: end;
  aspect-ratio: 4 / 5;
}

.home-split__media--portrait img {
  height: 100%;
}

.home-bindings {
  background: #fff;
}

.home-bindings__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.home-bindings__links a {
  padding: 10px 16px;
  border: 1px solid #e5d8d2;
  border-radius: 999px;
  background: #fffaf7;
  color: #343437;
  font-size: 16px;
  line-height: 1.25;
  text-decoration: none;
}

.home-bindings__links a:hover,
.home-bindings__links a:focus-visible {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
}

.home-tools {
  background: #fffbed;
}

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

.home-tool-card {
  position: relative;
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 25px;
  border: 1px solid #eadbd4;
  border-radius: 22px;
  background: #fff;
  color: #303033;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-tool-card__number {
  margin-bottom: 32px;
  color: var(--bs-primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-tool-card h3 {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.2;
}

.home-tool-card p {
  margin: 0 0 28px;
  color: #686868;
  font-size: 15px;
  line-height: 1.48;
}

.home-tool-card__action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  color: var(--bs-primary);
  font-weight: 700;
}

.home-tool-card__action span {
  font-size: 23px;
}

.home-tool-card:hover,
.home-tool-card:focus-visible {
  border-color: var(--bs-primary);
  color: #303033;
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(66, 66, 66, 0.1);
}

.home-portfolio {
  background: #fff;
}

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

.home-portfolio__item {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background: #f0ebe7;
}

.home-portfolio__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.home-portfolio__item:hover img {
  transform: scale(1.025);
}

.home-process {
  background: #f7f3ef;
}

.home-process__steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.home-process__steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid #ded7d1;
}

.home-process__steps li > span {
  color: var(--bs-primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.home-process__steps strong {
  display: block;
  font-size: 18px;
  line-height: 1.3;
}

.home-process__steps p {
  margin: 7px 0 0;
  color: #686868;
  font-size: 14px;
  line-height: 1.48;
}

.home-reviews {
  background: #fffbed;
}

.home-reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-review-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid #eadbd4;
  border-radius: 24px;
  background: #fff;
}

.home-review-card__quote {
  height: 44px;
  color: var(--bs-primary);
  font-family: Georgia, serif;
  font-size: 70px;
  line-height: 0.9;
}

.home-review-card > p {
  margin: 16px 0 30px;
  color: #4c4c4f;
  font-size: 17px;
  line-height: 1.5;
}

.home-review-card footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #eee4df;
}

.home-review-card footer strong {
  font-size: 16px;
}

.home-review-card footer time {
  color: #818181;
  font-size: 13px;
}

.home-articles {
  background: #fff;
}

.home-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-article-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #eadbd4;
  border-radius: 22px;
  background: #fff;
}

.home-article-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 7 / 4;
  background: #f3eeea;
}

.home-article-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.home-article-card:hover .home-article-card__media img {
  transform: scale(1.025);
}

.home-article-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 24px;
}

.home-article-card time {
  margin-bottom: 12px;
  color: var(--bs-primary);
  font-size: 13px;
  font-weight: 700;
}

.home-article-card h3 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.25;
}

.home-article-card h3 a {
  color: #303033;
  text-decoration: none;
}

.home-article-card h3 a:hover,
.home-article-card h3 a:focus-visible {
  color: var(--bs-primary);
}

.home-article-card p {
  margin: 0 0 22px;
  color: #686868;
  font-size: 15px;
  line-height: 1.5;
}

.home-article-card__link {
  margin-top: auto;
  color: var(--bs-primary);
  font-weight: 700;
  text-decoration: none;
}

.home-contact {
  background: #f7f3ef;
}

.home-contact__panel {
  display: grid;
  min-height: 440px;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  overflow: hidden;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(66, 66, 66, 0.09);
}

.home-contact__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 5vw, 72px);
}

.home-contact__content > p:not(.home-kicker) {
  max-width: 650px;
  margin: 22px 0 0;
  color: #666;
  font-size: 18px;
  line-height: 1.45;
}

.home-contact__panel > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.home-contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 30px;
}

.home-contact__actions .btn {
  min-height: 56px;
  padding: 13px 28px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 700;
}

.home-contact__actions > a {
  color: #303033;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.home-contact__actions > a:hover,
.home-contact__actions > a:focus-visible {
  color: var(--bs-primary);
}

@media (min-width: 992px) and (max-width: 1679.98px) {
  .home-section > .container,
  .home-page ~ .footer-scroll-top-band .footer-scroll-top {
    padding-right: 200px;
  }

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

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

  .home-split,
  .home-split--reverse {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 48px;
  }

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

  .home-contact__panel {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .home-portfolio__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .home-split,
  .home-split--reverse,
  .home-contact__panel {
    grid-template-columns: 1fr;
  }

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

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

  .home-split__content {
    order: 1;
  }

  .home-split__media {
    order: 2;
  }

  .home-process .home-split__media {
    order: 2;
  }

  .home-process .home-split__content {
    order: 1;
  }

  .home-split__media--portrait {
    width: min(100%, 520px);
    max-width: none;
    justify-self: start;
  }

  .home-contact__panel > img {
    min-height: 340px;
    max-height: 440px;
  }
}

@media (max-width: 767.98px) {
  .home-section {
    padding: 40px 0;
  }

  .home-services__grid,
  .home-tools__grid,
  .home-reviews__grid,
  .home-articles__grid {
    grid-template-columns: 1fr;
  }

  .home-service-card,
  .home-service-card--primary {
    min-height: 155px;
  }

  .home-tool-card {
    min-height: 220px;
  }

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

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

  .home-contact__content {
    padding: 34px 28px 40px;
  }

  .home-contact__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-contact__actions .btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .home-page h2 {
    font-size: 32px;
  }

  .home-section__lead {
    font-size: 17px;
  }

  .home-split {
    gap: 34px;
  }

  .home-split__media {
    border-radius: 22px;
  }

  .home-bindings__links {
    gap: 8px;
  }

  .home-bindings__links a {
    padding: 9px 13px;
    font-size: 15px;
  }

  .home-service-card,
  .home-tool-card,
  .home-review-card,
  .home-article-card {
    border-radius: 18px;
  }

  .home-process__steps li {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .home-contact__panel {
    border-radius: 24px;
  }

  .home-contact__panel > img {
    min-height: 250px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-service-card,
  .home-tool-card,
  .home-arrow-link span,
  .home-portfolio__item img,
  .home-article-card__media img {
    transition: none;
  }
}
