* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fcf9f7;
  color: #292334;
  font: 16px/1.75 system-ui,-apple-system,"Microsoft YaHei",sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #a53667;
}

img {
  max-width: 100%;
  display: block;
}

button,input {
  font: inherit;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  background: white;
  z-index: 99;
}

.wrap {
  width: min(1180px,calc(100% - 40px));
  margin: auto;
}

.mast {
  background: #fff;
  border-bottom: 1px solid #eee3e7;
}

.mast .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}

.brand {
  font-size: 27px;
  font-weight: 850;
  color: #ad376a;
  letter-spacing: 1px;
}

.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  color: #826c7d;
}

.mast p {
  font-size: 13px;
  color: #766b78;
  margin: 0;
}

.nav {
  background: #39273e;
  color: #fff;
}

.nav .wrap {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  padding: 11px 0;
}

.nav a:hover {
  color: #ffb8d1;
}

.hero {
  background: linear-gradient(115deg,#382b55 0%,#774a76 55%,#d58ca3 100%);
  color: white;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  min-height: 390px;
  gap: 50px;
}

.eyebrow {
  color: #ffcfdf;
  letter-spacing: 4px;
  font-size: 13px;
}

.hero h1 {
  font-size: clamp(34px,4vw,60px);
  line-height: 1.25;
  margin: 10px 0 18px;
}

.hero p {
  max-width: 590px;
  color: #fce7f0;
}

.hero-art {
  height: 330px;
  border: 1px solid #ffffff40;
  border-radius: 180px 180px 24px 24px;
  background: radial-gradient(circle at 60% 25%,#ffd6b9 0,#ffd6b900 30%),linear-gradient(135deg,#7a4877,#d68e9c);
  position: relative;
  box-shadow: 0 20px 50px #23152b40;
}

.hero-art:before,.hero-art:after {
  content: "";
  position: absolute;
  border: 8px solid #ffe3e3;
  border-radius: 50% 50% 0 0;
  transform: rotate(-45deg);
  width: 115px;
  height: 180px;
  top: 70px;
  left: calc(50% - 70px);
  border-bottom: 0;
  opacity: .8;
}

.hero-art:after {
  transform: rotate(45deg);
  left: calc(50% - 15px);
}

.hero-art span {
  position: absolute;
  bottom: 25px;
  left: 0;
  right: 0;
  text-align: center;
  letter-spacing: 8px;
  color: #fff5e9;
}

.section {
  padding: 54px 0;
}

.section h2 {
  font-size: 27px;
  line-height: 1.35;
  margin: 0 0 8px;
}

.sub {
  margin: 0 0 26px;
  color: #776b79;
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.topics a {
  background: #fff0f5;
  color: #8d3760;
  padding: 9px 18px;
  border-radius: 50px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 270px;
  gap: 42px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 24px;
}

.feature {
  background: #fff;
  border: 1px solid #eee2e7;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s;
}

.feature:hover {
  transform: translateY(-3px);
}

.feature img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.feature .content {
  padding: 19px 20px 23px;
}

.tag {
  font-size: 12px;
  color: #aa3e6d;
  font-weight: 700;
}

.feature h3 {
  font-size: 20px;
  line-height: 1.5;
  margin: 5px 0 9px;
}

.feature p {
  color: #706675;
  font-size: 14px;
  margin: 0;
}

.side {
  background: #f5edf2;
  border-radius: 18px;
  padding: 24px;
  height: fit-content;
}

.side h2 {
  font-size: 20px;
}

.side ol {
  padding-left: 22px;
}

.side li {
  margin: 15px 0;
  border-bottom: 1px solid #e5d8e0;
  padding-bottom: 12px;
}

.note {
  background: #f5eef1;
  padding: 40px 0;
}

.note p {
  max-width: 800px;
  color: #5f5362;
}

.foot {
  background: #33263b;
  color: #f1e4ec;
  padding: 35px 0;
}

.foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.foot small {
  color: #cabac7;
}

.article {
  max-width: 820px;
  margin: 55px auto 80px;
  padding: 0 20px;
}

.article h1 {
  font-size: clamp(28px,3.5vw,42px);
  line-height: 1.4;
}

.article h2 {
  font-size: 24px;
  margin-top: 38px;
}

.article p {
  color: #4e4652;
}

.article img {
  width: 100%;
  border-radius: 18px;
  margin: 25px 0;
}

.back {
  color: #a53667;
}

.related {
  border-top: 1px solid #e9dce3;
  margin-top: 40px;
  padding-top: 20px;
}

.related a {
  display: block;
  margin: 8px 0;
  color: #a53667;
}

@media (max-width:820px) {
  .hero .wrap,.layout {
    grid-template-columns: 1fr;
  }
  .hero .wrap {
    padding: 35px 0;
  }
  .hero-art {
    height: 220px;
  }
  .side {
    order: 2;
  }
  .mast p {
    display: none;
  }
}

@media (max-width:550px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .wrap {
    width: min(100% - 28px,1180px);
  }
  .nav .wrap {
    gap: 12px;
    font-size: 13px;
  }
  .section {
    padding: 35px 0;
  }
  .hero h1 {
    font-size: 36px;
  }
}
