.site-header {
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 82px;
  padding: 16px max(24px, calc((100vw - 1180px) / 2));
}

.site-header.on-hero {
  position: absolute;
  top: 0;
  left: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.site-header.solid {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.header-link,
.header-search-link {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.header-link {
  color: #fff;
}

.header-search-link {
  color: var(--blue);
}

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  place-items: center;
  overflow: hidden;
  padding: 125px 24px 95px;
  color: #fff;
  background: #1e3858 url("/assets/img/hero-street.webp") center 52% / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 23, 45, 0.75), rgba(7, 23, 45, 0.26) 60%, rgba(7, 23, 45, 0.48)),
    linear-gradient(0deg, rgba(6, 18, 35, 0.58), transparent 54%);
}

.hero-card {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  text-align: center;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(47px, 7vw, 80px);
  text-shadow: 0 4px 25px rgba(5, 20, 42, 0.25);
}

.hero-intro {
  width: min(100%, 610px);
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

.hero-search {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 26px;
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 700;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-points i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #66e3a8;
  box-shadow: 0 0 0 4px rgba(102, 227, 168, 0.12);
}

.hero-scroll {
  position: absolute;
  z-index: 2;
  bottom: 27px;
  left: 50%;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transform: translateX(-50%);
}

.hero-scroll span {
  margin-left: 8px;
}

.content-section,
.how-section {
  padding: 95px max(24px, calc((100vw - 1180px) / 2));
}

.curated-section {
  background: #fff;
}

.how-section {
  background: #f1f5f7;
}

.how-intro {
  width: min(100%, 650px);
}

.how-intro h2 {
  margin-bottom: 42px;
  font-size: clamp(32px, 4vw, 49px);
}

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

.how-grid article {
  min-height: 235px;
  padding: 28px;
  border: 1px solid #e0e7ec;
  border-radius: var(--radius);
  background: #fff;
}

.how-grid article > span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.how-grid h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.how-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.how-section .content-ad {
  max-width: 970px;
  margin: 48px auto 0;
}

.root-viewer > .top-ad {
  margin-top: 13px;
  margin-bottom: 13px;
}

.viewer-layout {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  min-height: calc(100vh - 263px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.viewer-sidebar {
  max-height: calc(100vh - 188px);
  padding: 35px 31px 40px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #fff;
}

.viewer-sidebar h1 {
  margin-bottom: 5px;
  font-size: 33px;
}

.root-viewer .viewer-stage {
  height: 100%;
}

@media (max-width: 900px) {
  .hero {
    min-height: 700px;
  }

  .viewer-layout {
    grid-template-columns: 1fr;
  }

  .viewer-sidebar {
    max-height: none;
    border-right: 0;
  }

  .root-viewer .viewer-stage {
    min-height: 68vh;
    order: -1;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 72px;
    padding: 12px 18px;
  }

  .header-link {
    display: none;
  }

  .header-search-link {
    font-size: 12px;
  }

  .hero {
    min-height: 680px;
    padding: 110px 17px 70px;
    background-position: 60% center;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .hero-intro {
    font-size: 16px;
  }

  .hero-points {
    gap: 9px 14px;
  }

  .hero-scroll {
    white-space: nowrap;
  }

  .content-section,
  .how-section {
    padding: 68px 18px;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .how-grid article {
    min-height: 0;
  }

  .top-ad {
    min-height: 76px;
  }

  .top-ad ins {
    max-width: 100%;
    height: 50px !important;
  }

  .viewer-sidebar {
    padding: 30px 20px;
  }

  .root-viewer .viewer-stage {
    min-height: 64vh;
  }
}
