/* Home page. */

.home-page {
  padding: 0 var(--page-edge) 72px;
}

.home-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(640px, calc(100vh - 132px));
  margin: 0 calc(var(--page-edge) * -1);
  padding: 0 var(--page-edge);
  overflow: hidden;
  background: #f3f2ee;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 36%, rgba(255, 255, 255, 0.2) 68%, rgba(255, 255, 255, 0.05) 100%);
}

.home-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  max-width: 680px;
  padding: 72px 0;
}

.home-section__head p {
  margin: 0;
  color: #686771;
  font-family: var(--store-font);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.home-hero__copy h1 {
  max-width: 720px;
  font-family: var(--store-font);
  font-size: clamp(42px, 5vw, 78px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

.home-hero__lead {
  max-width: 520px;
  color: #4b4a54;
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 500;
  line-height: 1.55;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-family: var(--store-font);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.home-button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #111;
}

.home-button--ghost {
  background: transparent;
  color: #111;
}

.home-button--ghost:hover {
  border-color: #111;
  background: #111;
  color: #fff;
}

.home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 580px;
}

.home-hero__meta span {
  padding: 8px 10px;
  border: 1px solid rgba(23, 21, 31, 0.12);
  background: rgba(255, 255, 255, 0.68);
  color: #33323a;
  font-size: 13px;
  font-weight: 800;
}

.home-hero__visual {
  position: absolute;
  inset: 0;
  margin: 0;
}

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

.home-hero__visual figcaption {
  position: absolute;
  right: var(--page-edge);
  bottom: 34px;
  z-index: 2;
  padding: 10px 12px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

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

.home-hero + .home-section {
  margin-top: 24px;
}

.home-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.home-section__head h2 {
  margin: 0;
  font-family: var(--store-font);
  font-size: clamp(30px, 3.4vw, 50px);
  font-weight: 800;
  line-height: 1;
}

.home-categories,
.home-edit__grid,
.home-service__grid {
  display: grid;
  gap: 1px;
  background: #e3e3e8;
}

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

.home-categories a,
.home-edit-card,
.home-service__grid div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 166px;
  padding: 24px;
  background: #f7f7f9;
  color: #111;
  text-decoration: none;
}

.home-categories span,
.home-edit-card strong,
.home-service__grid strong {
  font-family: var(--store-font);
  font-size: clamp(20px, 1.6vw, 28px);
  font-weight: 800;
  line-height: 1.12;
}

.home-categories small,
.home-edit-card small,
.home-service__grid span,
.home-service__grid a {
  max-width: 280px;
  color: #696777;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

.home-categories a:hover {
  background: var(--accent);
}

.home-categories a:hover small,
.home-service__grid a:hover {
  color: #111;
}

.home-edit__grid {
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
}

.home-edit-card {
  min-height: 300px;
}

.home-edit-card span {
  color: #74727d;
  font-size: 13px;
  font-weight: 900;
}

.home-edit-card--dark {
  background: #111;
  color: #fff;
}

.home-edit-card--dark span,
.home-edit-card--dark small {
  color: #d8d8dc;
}

.home-edit-card--accent {
  background: var(--accent);
}

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

.home-service__grid div {
  min-height: 142px;
  background: #fff;
}

@media (max-width: 1100px) {
  .home-hero::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 48%, rgba(255, 255, 255, 0.28) 100%);
  }

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

  .home-edit__grid,
  .home-service__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .home-page {
    padding: 0 var(--page-gutter) 48px;
  }

  .home-hero {
    min-height: 610px;
    margin: 0 calc(var(--page-gutter) * -1);
    padding: 0 var(--page-gutter);
  }

  .home-hero::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 48%, rgba(255, 255, 255, 0.28) 100%);
  }

  .home-hero__copy {
    justify-content: start;
    padding: 44px 0;
  }

  .home-hero__copy h1 {
    font-size: clamp(36px, 11vw, 54px);
  }

  .home-hero__visual img {
    object-position: 62% center;
  }

  .home-hero__visual figcaption {
    right: var(--page-gutter);
    bottom: 24px;
  }

  .home-hero__meta {
    display: none;
  }

  .home-section {
    margin-top: 56px;
  }

  .home-section__head {
    display: grid;
  }

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

  .home-categories a,
  .home-edit-card,
  .home-service__grid div {
    min-height: 148px;
    padding: 20px;
  }
}
