:root {
  --page-bg: #e9e3e8;
  --footer-bg: #383150;
  --text-main: #73658a;
  --text-strong: #6a5a7f;
  --badge-bg: #5d4a7a;
  --gold: #d2b677;
  --divider: rgba(111, 92, 138, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--footer-bg);
  color: var(--text-main);
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  background: var(--page-bg);
}

.hero {
  position: relative;
  background: #1f0d36;
}

.hero-crop {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3840 / 1600;
}

.hero-reference {
  width: 100%;
  max-width: none;
  height: auto;
}

.about {
  position: relative;
  overflow: hidden;
  padding: 102px 72px 156px;
  background: var(--page-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 1710px;
  margin: 0 auto;
}

.about-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 700px;
  padding: 0 76px;
  text-align: center;
}

.about-card.with-divider {
  border-left: 1px solid var(--divider);
}

.card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  min-height: 152px;
  padding: 16px 0;
  background: var(--badge-bg);
  border: 2px solid var(--gold);
  clip-path: polygon(26% 0, 74% 0, 100% 10%, 100% 90%, 74% 100%, 26% 100%, 0 90%, 0 10%);
  color: #f6dd9a;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 2px;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.card-gem {
  width: 10px;
  height: 10px;
  margin-top: 34px;
  margin-bottom: 52px;
  background: var(--gold);
  transform: rotate(45deg);
}

.about-card p,
.about-card li {
  color: var(--text-main);
  font-size: 19px;
  line-height: 2.05;
  letter-spacing: 0.02em;
}

.about-card p {
  margin: 0;
}

.about-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.about-card li {
  text-align: left;
}

.ornament {
  position: absolute;
  bottom: 34px;
  width: 228px;
  opacity: 0.86;
  pointer-events: none;
}

.ornament-left {
  left: 196px;
}

.ornament-right {
  right: 198px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
  min-height: 108px;
  padding: 20px 32px;
  background: var(--footer-bg);
  color: rgba(244, 240, 250, 0.84);
  font-size: 17px;
  line-height: 1.6;
}

.footer a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.footer a:hover,
.footer a:focus-visible {
  text-decoration-style: solid;
}

@media (max-width: 1200px) {
  .about {
    padding: 72px 32px 128px;
  }

  .about-card {
    padding: 0 40px;
  }

  .about-card p,
  .about-card li,
  .footer {
    font-size: 17px;
  }

  .ornament-left {
    left: 72px;
  }

  .ornament-right {
    right: 72px;
  }

}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .about-card {
    min-height: auto;
    padding: 0 0 56px;
  }

  .about-card.with-divider {
    border-left: 0;
    border-top: 1px solid var(--divider);
    padding-top: 56px;
  }

  .ornament {
    width: 150px;
    bottom: 28px;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .about {
    padding: 56px 20px 108px;
  }

  .card-badge {
    width: 54px;
    min-height: 138px;
    font-size: 20px;
  }

  .card-gem {
    margin-top: 26px;
    margin-bottom: 36px;
  }

  .about-card p,
  .about-card li,
  .footer {
    font-size: 16px;
    line-height: 1.9;
  }

  .ornament-left {
    left: 20px;
  }

  .ornament-right {
    right: 20px;
  }

}
