:root {
  --gold-primary: #D4AF37;
  --gold-light: #F0E68C;
  --gold-deep: #B8860B;
  --black-bg: #0A0A0A;
  --void-black: #000000;
  --blood-red: #8B0000;
  --charcoal: #1E1E1E;
  --cream: #F5F0E1;
  --gray-dim: #A9A9A9;
  --teal-gold: #3A7D6F;
  --font-heading: "Didot", "Bodoni MT", Georgia, "Times New Roman", serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --header-w: 280px;
  --container: 1120px;
  --gutter: 24px;
  --radius: 2px;
  --size-display: clamp(2.8rem, 6vw, 5rem);
  --size-h1: clamp(2.2rem, 4vw, 3.5rem);
  --size-h2: clamp(1.8rem, 3vw, 2.4rem);
  --size-h3: clamp(1.2rem, 1.5vw, 1.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
  background: var(--black-bg);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--cream);
  background:
    radial-gradient(ellipse 90% 60% at 92% 0%, rgba(139, 0, 0, 0.14), transparent 65%),
    radial-gradient(ellipse 70% 50% at 8% 100%, rgba(212, 175, 55, 0.06), transparent 60%),
    var(--black-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
dl,
dd,
figure,
figcaption,
blockquote,
address {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(212, 175, 55, 0.8);
  color: #000000;
}

:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.35);
  border: 2px solid #0a0a0a;
  border-radius: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cream);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: var(--size-h1);
  color: var(--gold-primary);
}

h2 {
  font-size: var(--size-h2);
  color: var(--gold-primary);
}

h3 {
  font-size: var(--size-h3);
  color: var(--cream);
}

h4,
h5,
h6 {
  font-size: 1.05rem;
  color: var(--gold-light);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--gold-primary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--gold-light);
}

.skip-link {
  position: fixed;
  left: 8px;
  top: 8px;
  z-index: 999;
  display: inline-block;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--void-black);
  background: var(--gold-primary);
  border-radius: var(--radius);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.3s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: var(--header-w);
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.94), rgba(0, 0, 0, 0.98)),
    rgba(0, 0, 0, 0.85);
  border-right: 1px solid rgba(212, 175, 55, 0.32);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px 26px 26px;
  overflow-y: auto;
}

.site-header__topline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 8px;
}

.site-header__topline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-primary), transparent);
}

.site-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

.site-brand__mark {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.12em;
  background: linear-gradient(115deg, var(--gold-light) 0%, var(--gold-primary) 52%, var(--gold-deep) 100%);
  background-size: 150% 100%;
  background-position: 20% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 0.8s ease;
}

.site-brand:hover .site-brand__mark {
  background-position: 90% 0;
}

.site-brand__sub {
  margin-top: 6px;
  font-size: 0.74rem;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.82;
}

.site-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: 42px;
}

.site-nav__list {
  position: relative;
}

.site-nav__list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.72), rgba(212, 175, 55, 0.12) 72%);
}

.site-nav__item {
  position: relative;
  display: flex;
  align-items: baseline;
  padding: 8px 0 8px 28px;
}

.site-nav__item::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 50%;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
  background: var(--black-bg);
  transform: translateY(-50%);
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
  z-index: 1;
}

.site-nav__item:hover::before {
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.38);
}

.site-nav__item:has(.site-nav__link[aria-current="page"])::before {
  background: var(--gold-primary);
  border-color: var(--gold-light);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.7);
}

.site-nav__index {
  min-width: 22px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 5px 0;
  font-size: 1.04rem;
  font-weight: 500;
  color: var(--gray-dim);
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.site-nav__link:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.site-nav__link[aria-current="page"] {
  color: var(--gold-primary);
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.25);
}

.site-nav__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid rgba(212, 175, 55, 0.16);
}

.site-nav__meta {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--gray-dim);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 4px 8px 12px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(212, 175, 55, 0.36);
  border-radius: var(--radius);
  color: var(--cream);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav-toggle:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.12);
}

.nav-toggle__label {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}

.nav-toggle__box {
  position: relative;
  width: 20px;
  height: 14px;
}

.nav-toggle__bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: top 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle__bar:nth-child(1) {
  top: 0;
}

.nav-toggle__bar:nth-child(2) {
  top: 6px;
}

.nav-toggle__bar:nth-child(3) {
  top: 12px;
}

body.nav-open .nav-toggle__bar:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle__bar:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.site-main {
  min-height: 100vh;
  margin-left: var(--header-w);
}

.site-footer {
  position: relative;
  margin-left: var(--header-w);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(139, 0, 0, 0.12), transparent 52%),
    linear-gradient(180deg, #050505, #0a0a0a);
  border-top: 1px solid rgba(212, 175, 55, 0.28);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.8) 25%, rgba(212, 175, 55, 0.8) 75%, transparent);
  z-index: 1;
}

.site-footer::after {
  content: "DAFA·BET";
  position: absolute;
  right: 4%;
  bottom: 10%;
  font-family: var(--font-heading);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  color: rgba(212, 175, 55, 0.05);
  -webkit-text-stroke: 1px rgba(212, 175, 55, 0.12);
  pointer-events: none;
  user-select: none;
}

.site-footer__main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px 32px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px 44px;
}

.site-footer__brand {
  grid-column: span 5;
}

.site-footer__nav {
  grid-column: span 3;
}

.site-footer__contact {
  grid-column: span 4;
}

.site-footer__wordmark {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.12em;
  background: linear-gradient(110deg, var(--gold-light), var(--gold-primary) 56%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer__tagline {
  margin-top: 4px;
  font-size: 0.74rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.72;
}

.site-footer__statement {
  max-width: 36ch;
  margin-top: 18px;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--gray-dim);
}

.site-footer__title {
  margin-bottom: 18px;
  padding-bottom: 10px;
  font-family: var(--font-heading);
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__list a {
  display: inline-block;
  font-size: 0.96rem;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, padding-left 0.3s ease, border-color 0.3s ease;
}

.site-footer__list a:hover {
  color: var(--gold-primary);
  padding-left: 6px;
  border-color: rgba(212, 175, 55, 0.35);
}

.site-footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.92rem;
  font-style: normal;
  line-height: 1.5;
  color: var(--gray-dim);
}

.site-footer__label {
  display: block;
  margin-bottom: 2px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.site-footer__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 32px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.site-footer__copyright,
.site-footer__icp {
  font-size: 0.8rem;
  color: var(--gray-dim);
}

.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  font-family: var(--font-body);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--gold-primary);
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 50%;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background: var(--gold-primary);
  color: var(--void-black);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.45);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: 72px;
}

.section--tight {
  padding-block: 36px;
}

.section--wide {
  padding-block: 96px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.68), rgba(10, 10, 10, 0.85));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.card--ruby {
  border-left: 3px solid var(--blood-red);
}

@media (hover: hover) {
  .card:hover {
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 12px 44px rgba(0, 0, 0, 0.45);
    transform: translateY(-4px);
  }
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.btn--gold {
  overflow: hidden;
  border-color: var(--gold-deep);
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary) 45%, var(--gold-deep));
  color: var(--void-black);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.22);
}

.btn--gold::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
}

.btn--gold:hover::after {
  left: 130%;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--gold-primary);
}

.btn--ghost:hover {
  background: rgba(58, 125, 111, 0.14);
  border-color: rgba(58, 125, 111, 0.8);
  color: var(--cream);
}

.btn--block {
  display: flex;
  width: 100%;
}

.tag {
  display: inline-block;
  padding: 3px 12px;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--gold-light);
  background: rgba(139, 0, 0, 0.14);
  border: 1px solid rgba(139, 0, 0, 0.5);
  border-radius: var(--radius);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-primary);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold-primary);
}

.lead {
  font-size: 1.14rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--cream);
}

.display-title,
.h1,
.h2,
.h3,
.h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
}

.display-title {
  font-size: var(--size-display);
  color: var(--gold-primary);
  letter-spacing: 0.01em;
}

.h1 {
  font-size: var(--size-h1);
  color: var(--gold-primary);
}

.h2 {
  font-size: var(--size-h2);
  color: var(--gold-primary);
}

.h3 {
  font-size: var(--size-h3);
  color: var(--cream);
}

.h4 {
  font-size: 1.1rem;
  color: var(--gold-light);
}

.prose {
  max-width: 68ch;
  font-size: 1.02rem;
  line-height: 1.85;
}

.prose p + p {
  margin-top: 1.2em;
}

.prose a {
  color: var(--gold-primary);
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.4);
  text-underline-offset: 4px;
}

.prose strong {
  color: var(--gold-light);
}

.prose ul {
  list-style: square;
  padding-left: 1.2em;
}

.prose ol {
  list-style: decimal;
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 0.4em;
}

blockquote {
  margin: 24px 0;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--cream);
  background: rgba(212, 175, 55, 0.04);
  border-left: 2px solid var(--gold-primary);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
  list-style: none;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "／";
  margin: 0 6px;
  color: var(--gold-deep);
}

.breadcrumbs a {
  color: var(--gold-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.breadcrumbs a:hover {
  color: var(--gold-light);
  border-color: rgba(212, 175, 55, 0.4);
}

.breadcrumbs [aria-current="page"] {
  color: var(--gray-dim);
}

.divider-gold {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.65), transparent);
}

.table-wrap {
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

th,
td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-primary);
  background: linear-gradient(135deg, rgba(58, 125, 111, 0.12), rgba(212, 175, 55, 0.06));
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(212, 175, 55, 0.04);
}

.chapter-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--gray-dim);
  background: none;
  border: 0;
  border-left: 1px solid rgba(212, 175, 55, 0.3);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.chapter-link:hover {
  color: var(--gold-light);
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
}

.chapter-link.is-active,
.chapter-link[aria-current="location"] {
  color: var(--gold-primary);
  border-color: var(--gold-primary);
}

.media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(0, 0, 0, 0.3));
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.media--16x9 {
  aspect-ratio: 16 / 9;
}

.media--4x3 {
  aspect-ratio: 4 / 3;
}

.media--square {
  aspect-ratio: 1 / 1;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.accent-diagonal {
  position: relative;
  overflow: hidden;
}

.accent-diagonal::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 32%;
  background: linear-gradient(125deg, transparent 40%, rgba(212, 175, 55, 0.12) 100%);
  pointer-events: none;
}

@media (max-width: 1023px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 64px;
    background: rgba(0, 0, 0, 0.88);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-right: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  }

  .site-header__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 14px 0 20px;
    overflow: visible;
  }

  .site-header__topline {
    flex: 1;
    height: 100%;
    padding: 0;
    margin: 0;
  }

  .site-header__topline::after {
    display: none;
  }

  .site-brand {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .site-brand__mark {
    font-size: 1.45rem;
  }

  .site-brand__sub {
    margin-top: 0;
    font-size: 0.64rem;
    letter-spacing: 0.3em;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    z-index: 50;
    width: min(84vw, 340px);
    margin-top: 0;
    padding: 30px 24px;
    background: rgba(0, 0, 0, 0.96);
    border-right: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.5);
    transform: translateX(-103%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex: none;
  }

  .site-nav[data-open] {
    transform: translateX(0);
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }

  .site-main {
    margin-left: 0;
    padding-top: 64px;
  }

  .site-footer {
    margin-left: 0;
  }

  .site-footer__main {
    grid-template-columns: 1fr 1fr;
    padding: 44px 24px 32px;
  }

  .site-footer__brand {
    grid-column: span 12;
  }

  .site-footer__nav,
  .site-footer__contact {
    grid-column: span 6;
  }

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

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

@media (max-width: 640px) {
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    padding: 40px 20px 30px;
  }

  .site-footer__nav,
  .site-footer__contact {
    grid-column: span 12;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 20px 22px;
  }

  .scroll-top-btn {
    right: 16px;
    bottom: 16px;
  }

  .section {
    padding-block: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .btn--gold::after {
    display: none;
  }
}
