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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--primary);
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.8rem, 8vw, 6rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--light-blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

address {
  font-style: normal;
}

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

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

:root {
  --primary: #0A1F44;
  --accent: #FF6B35;
  --gold: #FFD700;
  --cream: #F5F0E8;
  --gray: #6B7280;
  --moss: #7C9A74;
  --terracotta: #C4735B;
  --dark: #1A1A1A;
  --light-blue: #3A6D8C;
  --deep-orange: #D94F1A;
  --font-headings: "Oswald", "Arial Narrow", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Sans Pro", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-data: "Roboto Mono", "SFMono-Regular", "Cascadia Mono", monospace;
  --shadow: 8px 8px 0 rgba(10, 31, 68, 0.14);
}

.container {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.content-narrow {
  max-width: 34rem;
}

.content-wide {
  max-width: none;
}

.section-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--font-headings);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-number {
  color: var(--primary);
  font-family: var(--font-data);
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.editorial-grid > :last-child {
  position: sticky;
  top: 120px;
}

.aside-note {
  padding: 20px 24px;
  color: var(--gray);
  background: #fff;
  border-left: 6px solid var(--accent);
  box-shadow: var(--shadow);
  font-size: 15px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-headings);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--accent {
  color: #fff;
  background: var(--accent);
  box-shadow: 4px 4px 0 rgba(10, 31, 68, 0.2);
}

.btn--accent:hover {
  color: #fff;
  background: var(--deep-orange);
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 rgba(10, 31, 68, 0.2);
}

.btn--gold {
  color: var(--primary);
  background: var(--gold);
  box-shadow: 4px 4px 0 rgba(10, 31, 68, 0.2);
}

.btn--gold:hover {
  color: var(--primary);
  background: #e0b800;
  transform: translateY(-2px);
}

.btn--ghost {
  color: var(--primary);
  background: transparent;
  border-color: var(--primary);
}

.btn--ghost:hover {
  color: #fff;
  background: var(--primary);
  transform: translateY(-2px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

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

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--gray);
}

.breadcrumb__link {
  color: var(--light-blue);
  text-decoration: none;
}

.breadcrumb__link:hover {
  color: var(--accent);
}

.breadcrumb__current {
  color: var(--gray);
}

.tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(10, 31, 68, 0.08);
  font-size: 14px;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge--accent {
  color: #fff;
  background: var(--accent);
}

.badge--gold {
  color: var(--primary);
  background: var(--gold);
}

.badge--moss {
  color: #fff;
  background: var(--moss);
}

.badge--terracotta {
  color: #fff;
  background: var(--terracotta);
}

.stat {
  display: grid;
  gap: 4px;
  padding: 20px;
  background: #fff;
  border: 2px solid var(--primary);
  box-shadow: 6px 6px 0 rgba(10, 31, 68, 0.14);
}

.stat__value {
  color: var(--primary);
  font-family: var(--font-data);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.stat__label {
  color: var(--gray);
  font-size: 14px;
}

.image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 8px 8px 0 rgba(10, 31, 68, 0.14);
}

.image-frame--portrait {
  aspect-ratio: 3 / 4;
}

.image-frame--wide {
  aspect-ratio: 21 / 9;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame--placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 107, 53, 0.5) 0 12px, rgba(10, 31, 68, 0.75) 12px 24px);
  mix-blend-mode: multiply;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 200;
  padding: 12px 20px;
  color: #fff;
  text-decoration: none;
  background: var(--primary);
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto 32px;
  padding-top: 8px;
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(10, 31, 68, 0.14);
}

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: left center;
}

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px 10px 18px;
  color: #fff;
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(10, 31, 68, 0.28), 6px 6px 0 rgba(10, 31, 68, 0.18);
}

.site-header__bar::before {
  content: "";
  position: absolute;
  right: 16px;
  bottom: -7px;
  width: 56px;
  height: 10px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}

.site-header__bar::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -6px;
  width: 28px;
  height: 5px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
  opacity: 0.85;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.site-brand:hover {
  color: #fff;
}

.site-brand__mark {
  padding: 6px 12px 6px 8px;
  color: #fff;
  background: var(--accent);
  font-family: var(--font-headings);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
}

.site-brand__name {
  margin-left: 8px;
  font-family: var(--font-headings);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
}

.site-nav {
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__item {
  margin: 0;
}

.site-nav__link {
  display: block;
  position: relative;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-headings);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav__link:hover {
  color: #fff;
  background: rgba(255, 107, 53, 0.85);
  transform: translateY(-2px);
}

.site-nav__link[aria-current="page"] {
  color: #fff;
  background: var(--accent);
}

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 5px;
  left: 12px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle:hover {
  background: var(--deep-orange);
}

.nav-toggle__bar {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-footer {
  position: relative;
  margin-top: 96px;
  color: #fff;
  background: var(--primary);
  border-top: 6px solid var(--accent);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 1fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  padding-top: 64px;
  padding-bottom: 48px;
}

.site-footer__brand {
  min-width: 0;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.site-footer__logo:hover {
  color: #fff;
}

.site-footer__logo-mark {
  padding: 6px 12px 6px 8px;
  color: #fff;
  background: var(--accent);
  font-family: var(--font-headings);
  font-size: 24px;
  font-weight: 700;
  clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
}

.site-footer__logo-name {
  margin-left: 8px;
  font-family: var(--font-headings);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.site-footer__statement {
  max-width: 42em;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.7;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.site-footer__nav-group {
  min-width: 0;
}

.site-footer__title {
  margin: 0 0 16px;
  color: var(--gold);
  font-family: var(--font-headings);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.site-footer__list a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.site-footer__list a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.site-footer__contact {
  min-width: 0;
}

.site-footer__contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__contact-list span {
  display: block;
  margin-bottom: 2px;
  color: var(--gold);
  font-family: var(--font-headings);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer__contact-list address {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.site-footer__bottom p {
  margin: 0;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  background: var(--accent);
  font-family: var(--font-headings);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 rgba(10, 31, 68, 0.25);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, visibility 0.2s ease;
}

.back-top:hover {
  background: var(--deep-orange);
  transform: translateY(-2px) rotate(-2deg);
}

.back-top[data-visible="false"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
}

@media (max-width: 900px) {
  .site-header {
    top: 10px;
    width: min(100% - 20px, 720px);
    padding-top: 8px;
  }

  .site-header__bar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    border-radius: 28px;
  }

  .site-brand {
    margin-right: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex-basis: 100%;
    display: none;
    margin-left: 0;
    padding: 12px;
    border-radius: 18px;
    background: var(--primary);
  }

  .site-nav[data-open="true"] {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .site-nav__link {
    padding: 14px 16px;
    border-radius: 12px;
  }

  .site-nav__link[aria-current="page"]::after {
    right: 16px;
    bottom: 8px;
    left: 16px;
  }

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

  .editorial-grid > :last-child {
    position: static;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__nav {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom-inner {
    justify-content: center;
    text-align: center;
  }
}

@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;
  }
}
