:root {
  --container-max: 1200px;
  --text-main: #1d1d1f;
  --text-sub: #817b79;
  --brand: #ee414a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text-main);
  background: #fff;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container-max), calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  height: 570px;
  background: #f4e9ea url("./images/header-bg.webp") center/cover no-repeat;
  overflow: hidden;
}

.nav {
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
}

.logo {
  width: 108px;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1;
  color: #312d2c;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(430px, 520px) minmax(420px, 560px);
  justify-content: center;
  align-items: center;
  height: calc(570px - 53px);
}

.hero-copy {
  padding-left: 0;
  padding-bottom: 0;
}

.hero-title {
  margin: 0;
  font-size: 53px;
  font-weight: 700;
  line-height: 75px;
  letter-spacing: 0;
}

.title-line,
.title-line-second {
  display: block;
}

.title-line {
  position: relative;
  width: fit-content;
  padding-right: 36px;
}

.hero-title em {
  color: var(--brand);
  font-style: normal;
}

.title-icon {
  position: absolute;
  right: 0;
  top: 12px;
  width: 27px;
  height: 18px;
}

.hero-copy p {
  margin: 15px 0 0;
  width: 428px;
  max-width: 100%;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 400;
  line-height: 33px;
}

.store-buttons {
  margin-top: 42px;
  display: flex;
  gap: 8px;
}

.store-buttons img {
  height: 46px;
  width: auto;
}

.hero-image-wrap {
  position: relative;
  justify-self: center;
  align-self: end;
}

.hero-image {
  width: 450px;
  height: 546px;
  object-fit: cover;
}

.hero-icon {
  position: absolute;
  right: -76px;
  top: 215px;
  width: 180px;
  height: 168px;
}

main {
  display: block;
}

.section-one {
  margin-top: 133px;
}

.section-one-inner {
  display: grid;
  grid-template-columns: 468px 359px;
  column-gap: 72px;
  justify-content: center;
  align-items: center;
}

.section-one-media {
  width: 468px;
  position: relative;
}

.section-one-icon {
  position: absolute;
  top: -62px;
  left: -89px;
  width: 409px;
  height: 74px;
}

.section-one-hero {
  margin-top: -6px;
  width: 468px;
  height: 312px;
  object-fit: cover;
}

.section-one-copy h2 {
  margin: 0;
  font-size: 33px;
  font-weight: 700;
  line-height: 50px;
  color: #111;
}

.section-one-copy p {
  margin: 8px 0 0;
  max-width: 359px;
  color: #817b79;
  font-size: 14px;
  font-weight: 400;
  line-height: 26px;
}

.section-two {
  margin-top: 157px;
  margin-bottom: 157px;
}

.section-two-card {
  width: min(899px, calc(100% - 48px));
  height: 371px;
  border-radius: 30px;
  background: linear-gradient(139deg, #fffefe 0%, #ffede8 100%);
  display: grid;
  grid-template-columns: 359px 402px;
  justify-content: space-between;
  align-items: center;
  padding-left: 42px;
  padding-right: 75px;
}

.section-two-copy h2 {
  margin: 0;
  font-size: 33px;
  font-weight: 700;
  line-height: 50px;
  color: #111;
}

.section-two-copy p {
  margin: 8px 0 0;
  max-width: 359px;
  color: #817b79;
  font-size: 14px;
  font-weight: 400;
  line-height: 26px;
}

.section-two-media {
  position: relative;
  width: 402px;
}

.section-two-hero {
  width: 402px;
  height: 252px;
  object-fit: cover;
}

.section-two-icon {
  position: absolute;
  top: -48px;
  right: -69px;
  width: 132px;
  height: 96px;
  pointer-events: none;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 78px 0;
}

.feature.reverse .feature-image {
  order: 2;
}

.feature.reverse .feature-text {
  order: 1;
}

.feature-text h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 44px);
}

.feature-text p {
  margin-top: 12px;
  max-width: 470px;
  color: #646464;
  line-height: 1.6;
}

.feature-image img {
  width: 100%;
  border-radius: 14px;
  min-height: 260px;
  object-fit: cover;
}

.card-soft .feature-image img {
  background: #fce8ea;
  padding: 10px;
}

.collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.collage img {
  min-height: 230px;
}

.gallery {
  background: linear-gradient(134deg, #fff9f8 0%, #ffeef0 100%);
  text-align: center;
  padding: 54px 0 88px;
}

.gallery h2 {
  margin: 0;
  font-size: 33px;
  font-weight: 700;
  line-height: 50px;
  color: #111;
}

.gallery p {
  margin: 15px auto 24px;
  color: #817b79;
  font-size: 14px;
  font-weight: 400;
  line-height: 26px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 288px 318px 288px;
  justify-content: center;
  gap: 11px;
}

.gallery-grid img {
  width: 288px;
  height: 390px;
  object-fit: cover;
}

.gallery-grid img:nth-child(2) {
  width: 318px;
}

.footer {
  height: 32px;
  background: #1d1d1f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  line-height: 1;
}

@media (max-width: 1100px) {
  .hero-main {
    grid-template-columns: minmax(390px, 1fr) minmax(360px, 1fr);
    column-gap: 18px;
  }

  .hero-icon {
    right: -20px;
  }
}

@media (max-width: 900px) {
  .hero {
    height: auto;
    padding-bottom: 28px;
  }

  .hero-main,
  .feature,
  .section-one-inner {
    grid-template-columns: 1fr;
    height: auto;
  }

  .section-one {
    margin-top: 56px;
    padding: 56px 0;
  }

  .section-two {
    margin-top: 56px;
    padding-bottom: 56px;
  }

  .section-two-card {
    width: min(899px, calc(100% - 48px));
    height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 24px;
  }

  .section-two-media,
  .section-two-hero {
    width: 100%;
    max-width: 402px;
  }

  .section-two-icon {
    width: 110px;
    height: auto;
    right: -24px;
    top: -34px;
  }

  .section-one-media,
  .section-one-hero {
    width: 100%;
    max-width: 468px;
  }

  .section-one-icon {
    width: min(100%, 409px);
    height: auto;
  }

  .section-one-copy {
    margin-top: 24px;
  }

  .hero-copy {
    padding: 28px 0 20px;
  }

  .hero-title {
    font-size: 42px;
    line-height: 58px;
  }

  .hero-image-wrap {
    justify-self: center;
  }

  .title-line {
    padding-right: 30px;
  }

  .hero-icon {
    right: -24px;
    top: 165px;
    width: 130px;
    height: auto;
  }

  .feature.reverse .feature-image,
  .feature.reverse .feature-text {
    order: initial;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
