/* ===== 共享样式 · 华体会登录导航站 ===== */

:root {
  --ink: #111315;
  --deep: #0B2B2E;
  --red: #8E1B2C;
  --red-dark: #5A0F1E;
  --moss: #0F3D34;
  --gold: #E3A73F;
  --champagne: #F6D58B;
  --neon: #FF6B2C;
  --paper: #F4F0E8;
  --gray: #8A8F8C;
  --line: rgba(244, 240, 232, 0.14);
  --line-strong: rgba(244, 240, 232, 0.3);
  --shell: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 84% -10%, rgba(142, 27, 44, 0.42), transparent 62%),
    radial-gradient(760px 480px at 6% 8%, rgba(15, 61, 52, 0.62), transparent 60%),
    var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 240, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 232, 0.035) 1px, transparent 1px);
  background-size: 88px 88px, 88px 88px;
  -webkit-mask-image: radial-gradient(130% 90% at 50% 0%, #000 32%, transparent 88%);
  mask-image: radial-gradient(130% 90% at 50% 0%, #000 32%, transparent 88%);
}

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

a {
  color: var(--champagne);
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

/* ---------- 结构容器 ---------- */

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

.site-main,
#main-content {
  display: block;
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  padding-block: clamp(36px, 5.5vw, 72px);
  border-top: 1px solid var(--line);
}

.section:first-of-type {
  border-top: 0;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: clamp(18px, 3vw, 32px);
}

.section__num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  padding: 2px 9px;
  background: rgba(142, 27, 44, 0.28);
  border: 1px solid rgba(227, 167, 63, 0.45);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 300;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 14px;
  color: #14100a;
  background: var(--gold);
  border: 2px solid var(--champagne);
  box-shadow: 5px 5px 0 0 var(--red-dark);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 14px;
  outline-offset: 2px;
}

/* ---------- 排版 ---------- */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.t-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 7.4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0;
}

.t-h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  margin: 0;
}

.t-h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.22;
  margin: 0;
}

.t-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.t-num {
  font-family: var(--font-mono);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--champagne);
}

.prose {
  max-width: 66ch;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(244, 240, 232, 0.88);
}

.prose a {
  color: var(--champagne);
  text-decoration-color: rgba(227, 167, 63, 0.55);
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--neon);
  text-decoration-color: var(--neon);
}

/* ---------- 网格 ---------- */

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 26px);
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  color: var(--paper);
  background: transparent;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    color 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-color: rgba(227, 167, 63, 0.55);
  box-shadow: 0 12px 26px -16px var(--red);
}

.btn--primary:hover {
  background: var(--neon);
  border-color: var(--champagne);
  color: #17130b;
}

.btn--ghost {
  background: rgba(244, 240, 232, 0.04);
  border-color: var(--line-strong);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.btn--gold {
  background: var(--gold);
  border-color: #141008;
  color: #141008;
  box-shadow: 5px 5px 0 -1px var(--red-dark);
}

.btn--gold:hover {
  background: var(--neon);
  border-color: var(--champagne);
}

/* ---------- 标签与数据卡 ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--champagne);
  background: rgba(142, 27, 44, 0.35);
  border: 1px solid rgba(227, 167, 63, 0.45);
  border-radius: 2px;
}

.data-card {
  position: relative;
  padding: clamp(16px, 2.4vw, 26px);
  background: linear-gradient(158deg, rgba(15, 61, 52, 0.94), rgba(11, 43, 46, 0.72));
  border: 2px solid rgba(244, 240, 232, 0.16);
  box-shadow: 10px 10px 0 -2px rgba(90, 15, 30, 0.6);
}

.data-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 26px;
  height: 4px;
  background: var(--gold);
}

.data-card__value {
  display: block;
  font-family: var(--font-mono);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--champagne);
}

.data-card__label {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--gray);
}

/* ---------- 面包屑 ---------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 16px 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--gray);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li::after {
  content: "/";
  color: rgba(227, 167, 63, 0.6);
}

.breadcrumb li:last-child::after {
  content: none;
}

.breadcrumb a {
  color: rgba(244, 240, 232, 0.8);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--neon);
}

/* ---------- 图片容器基础规则 ---------- */

.media {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(152deg, var(--moss) 0%, var(--deep) 55%, var(--ink) 100%);
  border: 2px solid var(--line-strong);
  box-shadow: 9px 9px 0 -2px rgba(90, 15, 30, 0.62);
  aspect-ratio: 16 / 9;
}

.media img,
.media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(17, 19, 21, 0) 42%, rgba(11, 43, 46, 0.62) 100%);
}

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

.media--portrait {
  aspect-ratio: 4 / 5;
}

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

.media--placeholder {
  background-image:
    linear-gradient(rgba(244, 240, 232, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 232, 0.07) 1px, transparent 1px),
    linear-gradient(152deg, var(--moss) 0%, var(--deep) 55%, var(--ink) 100%);
  background-size: 44px 44px, 44px 44px, cover;
}

.media__caption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(246, 213, 139, 0.9);
}

/* ---------- 章节目录（长页面） ---------- */

.toc {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 14px;
  background: rgba(11, 43, 46, 0.6);
  border-left: 3px solid var(--red);
  border-top: 1px solid var(--line);
}

.toc__title {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.toc__list {
  display: grid;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc__link {
  display: block;
  padding: 7px 9px;
  font-size: 13.5px;
  line-height: 1.4;
  color: rgba(244, 240, 232, 0.72);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.toc__link:hover {
  color: var(--neon);
  background: rgba(255, 107, 44, 0.1);
}

.toc__link[aria-current="true"] {
  color: var(--champagne);
  border-left-color: var(--gold);
  background: rgba(142, 27, 44, 0.34);
}

/* ---------- 头部 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(17, 19, 21, 0.97) 0%, rgba(11, 43, 46, 0.96) 100%);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 24px 48px -34px #000;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-upper {
  border-bottom: 1px solid var(--line);
}

.header-upper__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  min-height: 78px;
  padding-block: 11px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
  flex: 0 0 auto;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 46px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--champagne);
  background: linear-gradient(158deg, var(--red) 0%, var(--red-dark) 78%);
  border: 2px solid var(--gold);
  box-shadow: 4px 4px 0 0 rgba(90, 15, 30, 0.72);
  clip-path: polygon(0 0, 100% 0, 100% 76%, 84% 100%, 0 100%);
}

.brand__text {
  display: grid;
  gap: 2px;
}

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: 0.04em;
}

.brand__line {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gray);
  line-height: 1.3;
}

.header-tagline {
  margin: 0;
  padding-left: 16px;
  border-left: 1px solid var(--line-strong);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--gray);
  flex: 1 1 auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  margin-left: auto;
  padding: 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--paper);
  background: var(--moss);
  border: 2px solid var(--gold);
  border-radius: 2px;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars > span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.nav-toggle__label {
  line-height: 1;
}

.site-header[data-open="true"] .nav-toggle {
  background: var(--red);
  border-color: var(--neon);
  color: var(--champagne);
}

.site-header[data-open="true"] .nav-toggle__bars > span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle__bars > span:nth-child(2) {
  opacity: 0;
}

.site-header[data-open="true"] .nav-toggle__bars > span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.header-lower {
  background: linear-gradient(100deg, rgba(15, 61, 52, 0.88) 0%, rgba(11, 43, 46, 0.76) 44%, rgba(90, 15, 30, 0.6) 100%);
  border-top: 1px solid var(--line);
}

.site-nav {
  display: block;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 7px 0;
  list-style: none;
}

.site-nav__item {
  flex: 1 1 0;
  min-width: 0;
}

.site-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.05em;
  line-height: 1.15;
  text-decoration: none;
  color: var(--paper);
  background: rgba(244, 240, 232, 0.045);
  border: 1px solid rgba(244, 240, 232, 0.12);
  border-bottom: 3px solid rgba(142, 27, 44, 0.92);
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.site-nav__link:hover {
  background: var(--red);
  border-bottom-color: var(--neon);
  transform: translateY(-2px);
}

.site-nav__num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  transition: color 0.18s var(--ease);
}

.site-nav__link:hover .site-nav__num {
  color: var(--champagne);
}

.site-nav__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav__link[aria-current="page"] {
  background: var(--gold);
  color: #141008;
  border-color: var(--champagne);
  border-bottom-color: #141008;
  box-shadow: inset 0 0 0 1px rgba(90, 15, 30, 0.35);
}

.site-nav__link[aria-current="page"] .site-nav__num {
  color: var(--red-dark);
}

/* ---------- 页脚 ---------- */

.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 110px);
  background: linear-gradient(180deg, rgba(11, 43, 46, 0.98) 0%, #0a1414 58%, #080d0e 100%);
  border-top: 3px solid var(--red);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 22px, rgba(227, 167, 63, 0) 22px 44px);
  opacity: 0.55;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  padding-block: clamp(38px, 6vw, 68px) clamp(26px, 4vw, 40px);
}

.footer-brand {
  min-width: 0;
}

.brand--footer .brand__mark {
  width: 48px;
  height: 42px;
  font-size: 13.5px;
}

.brand--footer .brand__name {
  font-size: 18px;
}

.footer-summary {
  margin: 18px 0 0;
  max-width: 38ch;
  font-size: 14px;
  line-height: 1.78;
  color: rgba(244, 240, 232, 0.82);
}

.footer-note {
  margin: 14px 0 0;
  padding-left: 11px;
  border-left: 2px solid var(--gold);
  font-size: 12px;
  line-height: 1.65;
  color: var(--gray);
}

.footer-col {
  min-width: 0;
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.16em;
  line-height: 1.2;
  color: var(--champagne);
}

.footer-col__title::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.footer-col__list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col__link {
  display: inline-block;
  font-size: 14px;
  color: rgba(244, 240, 232, 0.78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.footer-col__link:hover {
  color: var(--neon);
  border-bottom-color: var(--neon);
  transform: translateX(2px);
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px 28px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(142, 27, 44, 0.3) 0%, rgba(15, 61, 52, 0.34) 60%, rgba(11, 43, 46, 0.2) 100%);
  box-shadow: inset 3px 0 0 0 var(--gold);
  padding-left: clamp(12px, 2vw, 22px);
  padding-right: clamp(12px, 2vw, 22px);
}

.footer-contact__item {
  min-width: 0;
}

.footer-contact__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-contact__value {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--paper);
  word-break: break-word;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px;
  font-size: 12.5px;
  color: var(--gray);
}

.footer-copy,
.footer-icp {
  margin: 0;
}

.footer-icp {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: rgba(244, 240, 232, 0.6);
}

/* ---------- 滚动进度与返回顶部 ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 200;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 58%, var(--neon) 100%);
  pointer-events: none;
}

.back-to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 190;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #141008;
  background: var(--gold);
  border: 2px solid #141008;
  border-radius: 2px;
  box-shadow: 6px 6px 0 -1px var(--red-dark);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
    visibility 0.24s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.back-to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--neon);
  border-color: var(--champagne);
}

.back-to-top__arrow {
  font-size: 15px;
  line-height: 1;
}

.back-to-top__text {
  line-height: 1;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .header-tagline {
    display: none;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-summary {
    max-width: 56ch;
  }
}

@media (max-width: 1024px) {
  .grid-12 {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 110px;
  }

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

  .header-upper__inner {
    min-height: 68px;
    padding-block: 10px;
  }

  .header-lower {
    display: none;
    border-top: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(15, 61, 52, 0.96) 0%, rgba(11, 43, 46, 0.94) 100%);
  }

  .site-header[data-open="true"] .header-lower {
    display: block;
    animation: nav-panel-in 0.26s var(--ease) both;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 8px;
    padding: 14px 0;
  }

  .site-nav__item {
    flex: 0 0 auto;
  }

  .site-nav__link {
    width: 100%;
    justify-content: flex-start;
    padding: 0 16px;
    font-size: 15px;
  }

  .site-nav__num {
    min-width: 22px;
    font-size: 11px;
  }

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

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

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

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

  .header-actions {
    display: none;
  }

  .brand__mark {
    width: 46px;
    height: 40px;
    font-size: 13px;
  }

  .brand__name {
    font-size: 17px;
  }

  .brand__line {
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .nav-toggle__label {
    display: none;
  }

  .nav-toggle {
    padding: 0 13px;
  }

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

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

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }

  .back-to-top {
    padding: 0 13px;
    font-size: 12px;
  }

  .back-to-top__text {
    display: none;
  }
}

@keyframes nav-panel-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@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;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .site-nav__link:hover,
  .footer-col__link:hover {
    transform: none;
  }

  .back-to-top {
    transform: none;
  }
}
