:root {
  --paper: #F5F0E6;
  --paper-deep: #E8E0D5;
  --yellow: #FFD166;
  --teal: #06D6A0;
  --coral: #FF6B6B;
  --lilac: #9B5DE5;
  --orange: #F77F00;
  --blue: #457B9D;
  --red: #EF476F;
  --ink: #1D1D1B;
  --gray: #403D39;
  --white: #FFFFFF;
  --font-display: "Archivo Black", "Arial Black", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-tag: "Arial Rounded MT Bold", "Arial Rounded MT Bold", "Arial", "PingFang SC", sans-serif;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 12px rgba(29, 29, 27, .08);
  --shadow-md: 0 12px 28px rgba(29, 29, 27, .12);
  --shadow-card: 4px 4px 0 var(--ink);
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--gray);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 .45em;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}

p {
  margin: 0 0 1em;
}

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

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

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

ul, ol {
  margin: 0;
  padding-left: 1.2em;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

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

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: 56px;
}

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

.section--narrow {
  padding-block: 32px;
}

.section--deep {
  background: var(--paper-deep);
}

.section--yellow {
  background: var(--yellow);
}

.section--teal {
  background: var(--teal);
}

.section--coral {
  background: var(--coral);
}

.section--lilac {
  background: var(--lilac);
}

.content-block {
  max-width: 72ch;
}

.content-block--center {
  margin-inline: auto;
  text-align: center;
}

.lead {
  font-size: 1.08rem;
  color: var(--gray);
}

.eyebrow {
  font-family: var(--font-tag);
  color: var(--orange);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
}

.breadcrumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--gray);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--blue);
}

.breadcrumbs a {
  text-decoration: none;
  font-weight: 600;
}

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

.page-hero {
  padding: clamp(48px, 9vw, 108px) 0 48px;
  position: relative;
}

.page-hero__eyebrow {
  font-family: var(--font-tag);
  color: var(--orange);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.page-hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: .95;
  letter-spacing: -.03em;
}

.page-hero__lead {
  max-width: 64ch;
  font-size: 1.05rem;
  color: var(--gray);
}

.section-title {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.section-title__index {
  font-family: var(--font-display);
  color: var(--orange);
  font-size: .8rem;
  letter-spacing: .14em;
  padding-top: .4em;
}

.section-title__text {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0;
}

.section-title__sub {
  margin-left: auto;
  max-width: 45ch;
  color: var(--gray);
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: var(--ink);
  padding: 11px 18px;
  font-family: var(--font-tag);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.btn:hover {
  background: var(--yellow);
  color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn--ghost {
  background: transparent;
}

.btn--ghost:hover {
  background: var(--paper-deep);
}

.skip-link {
  position: absolute;
  top: 14px;
  left: 18px;
  z-index: 2000;
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 0 0;
  background: transparent;
  transition: background-color .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
  background: rgba(245, 240, 230, .94);
  box-shadow: 0 1px 0 rgba(29, 29, 27, .08);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 8px 10px 8px 20px;
  background: rgba(29, 29, 27, .78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  color: #FFF;
  transition: background-color .25s ease;
}

.site-header.is-scrolled .site-header__bar {
  background: var(--ink);
}

.site-header__tagline {
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  line-height: 1.3;
  border-left: 1px solid rgba(255, 255, 255, .2);
  padding-left: 14px;
  white-space: nowrap;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-brand:hover {
  color: var(--teal);
}

.site-brand__suffix {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 4px 9px;
  font-family: var(--font-tag);
  font-size: .75rem;
}

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

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

.site-nav__link {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}

.site-nav__link:hover {
  background: var(--yellow);
  color: var(--ink);
}

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

.site-header__search {
  order: 2;
  width: 210px;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  cursor: default;
}

.site-search:hover {
  background: rgba(255, 255, 255, .12);
  color: #FFF;
}

.site-search__icon {
  color: var(--yellow);
  font-size: 16px;
  line-height: 1;
}

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

.site-nav-toggle {
  display: none;
  order: 3;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .3);
  color: #FFF;
  font-family: var(--font-tag);
  font-size: 12px;
  cursor: pointer;
}

.site-nav-toggle:hover {
  background: rgba(255, 255, 255, .12);
}

.site-nav-toggle__text {
  font-family: var(--font-tag);
  font-size: 12px;
}

.site-nav-toggle__icon {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  display: inline-block;
  border-radius: 2px;
}

.site-nav-toggle__icon::before,
.site-nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease;
}

.site-nav-toggle__icon::before {
  top: -6px;
}

.site-nav-toggle__icon::after {
  top: 6px;
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle__icon {
  background: transparent;
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .74);
  border-radius: 44px 44px 0 0;
  margin-top: 72px;
}

.site-footer__stripe {
  height: 8px;
  background: linear-gradient(90deg, var(--yellow) 0, var(--yellow) 20%, var(--teal) 20%, var(--teal) 42%, var(--coral) 42%, var(--coral) 68%, var(--lilac) 68%, var(--lilac) 100%);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 44px;
}

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

.site-footer__tagline {
  color: rgba(255, 255, 255, .5);
  font-size: 14px;
  max-width: 36ch;
  margin: 14px 0 0;
}

.site-brand--footer {
  color: var(--yellow);
}

.site-brand--footer .site-brand__suffix {
  background: var(--teal);
}

.site-footer__heading {
  color: var(--yellow);
  font-family: var(--font-tag);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

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

.site-footer__nav a {
  color: rgba(255, 255, 255, .76);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer__contact-item {
  display: block;
  color: rgba(255, 255, 255, .76);
  font-size: 14px;
  line-height: 1.6;
}

.site-footer__contact-item strong {
  display: inline-block;
  min-width: 2.6em;
  color: var(--yellow);
  font-weight: 600;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding: 20px 0 28px;
  color: rgba(255, 255, 255, .48);
  font-size: 12px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}

.card--yellow {
  background: var(--yellow);
}

.card--teal {
  background: var(--teal);
}

.card--coral {
  background: var(--coral);
}

.card--lilac {
  background: var(--lilac);
}

.card--ink {
  background: var(--ink);
}

.card--ink .card__title {
  color: var(--yellow);
}

.card--ink .card__meta {
  color: rgba(255, 255, 255, .5);
}

.card--ink .card__text {
  color: rgba(255, 255, 255, .72);
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--yellow), var(--coral));
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}

.card__media--teal {
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

.card__media--lilac {
  background: linear-gradient(135deg, var(--lilac), var(--coral));
}

.card__media--yellow {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
}

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

.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .14) 0 2px, transparent 2px 8px);
  mix-blend-mode: soft-light;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  flex: 1;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.2;
  margin: 0;
}

.card__meta {
  font-size: 13px;
  color: var(--blue);
}

.card__badge {
  margin-bottom: 4px;
}

.card__text {
  font-size: 14px;
  margin: 0;
}

.media-placeholder {
  aspect-ratio: 16 / 10;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  position: relative;
  overflow: hidden;
}

.media-placeholder--yellow {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
}

.media-placeholder--teal {
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

.media-placeholder--coral {
  background: linear-gradient(135deg, var(--coral), var(--orange));
}

.media-placeholder--lilac {
  background: linear-gradient(135deg, var(--lilac), var(--blue));
}

.media-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(29, 29, 27, .08) 0 2px, transparent 2px 10px);
}

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

.magnet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.magnet {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 130px;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 2px solid var(--ink);
  background: var(--lilac);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}

.magnet:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--ink);
  color: var(--ink);
}

.magnet--yellow {
  background: var(--yellow);
}

.magnet--teal {
  background: var(--teal);
}

.magnet--coral {
  background: var(--coral);
}

.magnet--lilac {
  background: var(--lilac);
}

.magnet--orange {
  background: var(--orange);
}

.magnet--blue {
  background: var(--blue);
  color: var(--white);
}

.magnet--blue:hover {
  color: var(--white);
}

.magnet__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.2;
  margin-bottom: 4px;
}

.magnet__meta {
  font-size: 12px;
  opacity: .85;
}

.magnet__arrow {
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 1.2rem;
  line-height: 1;
}

.list-stack {
  display: grid;
  grid-template-columns: 1fr;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--ink);
}

.list-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-top: 2px solid var(--paper-deep);
  color: inherit;
  text-decoration: none;
}

.list-row:first-child {
  border-top: 0;
}

.list-row:hover {
  background: var(--paper);
}

.list-row__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--orange);
}

.list-row__title {
  font-weight: 700;
  color: var(--ink);
}

.list-row__meta {
  font-size: 13px;
  color: var(--gray);
}

.tag-block {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-tag);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .12s ease, background-color .12s ease;
}

.tag:hover {
  background: var(--yellow);
  color: var(--ink);
  transform: translateY(-1px);
}

.tag--year {
  background: var(--teal);
}

.tag--hot {
  background: var(--red);
}

.tag--new {
  background: var(--teal);
}

.tag--old {
  background: var(--blue);
  color: var(--white);
}

.tag--old:hover {
  color: var(--white);
  background: var(--ink);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink);
  background: var(--paper-deep);
  color: var(--ink);
  font-family: var(--font-tag);
  font-size: 11px;
  line-height: 1.4;
}

.status-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge--new {
  background: var(--teal);
}

.status-badge--ok {
  background: var(--blue);
  color: var(--white);
}

.status-badge--deprecated {
  background: var(--gray);
  color: var(--white);
}

.status-badge--hot {
  background: var(--red);
}

.status-badge--old {
  background: var(--blue);
  color: var(--white);
}

.index-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--ink);
}

.metric {
  background: var(--paper-deep);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 16px;
}

.metric__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.metric__label {
  font-size: 13px;
  font-weight: 600;
}

.metric__value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
}

.metric__bar {
  height: 12px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--white);
  overflow: hidden;
}

.metric__fill {
  display: block;
  height: 100%;
  width: 60%;
  border-radius: var(--radius-pill);
  background: var(--orange);
}

.metric__fill--teal {
  background: var(--teal);
}

.metric__fill--coral {
  background: var(--coral);
}

.metric__fill--lilac {
  background: var(--lilac);
}

.index-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--ink);
  border-radius: var(--radius-pill);
  color: #FFF;
}

.index-strip__label {
  font-family: var(--font-tag);
  color: var(--yellow);
  font-size: 12px;
  letter-spacing: .08em;
}

.index-strip__item {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .08);
  color: #FFF;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.index-strip__item:hover {
  background: var(--orange);
  color: var(--ink);
}

.index-strip__item.is-current,
.index-strip__item[aria-current="page"] {
  background: var(--teal);
  color: var(--ink);
}

.track {
  display: grid;
  gap: 16px;
}

.track__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.track__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0;
}

.track__hint {
  font-size: 12px;
  color: var(--blue);
  font-family: var(--font-tag);
}

.track__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--orange) var(--paper-deep);
  scrollbar-width: thin;
}

.track__item {
  min-width: 0;
  scroll-snap-align: start;
}

.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--paper-deep);
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .02em;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table td {
  font-size: 14px;
}

.compare-table td:first-child {
  font-weight: 700;
  color: var(--ink);
}

.step-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: step-counter;
}

.step {
  position: relative;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 28px 18px 18px;
  box-shadow: 3px 3px 0 var(--ink);
  counter-increment: step-counter;
}

.step::before {
  content: "0" counter(step-counter);
  position: absolute;
  top: -14px;
  left: 14px;
  background: var(--teal);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  font-family: var(--font-display);
  font-size: 12px;
}

.step__title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.step__text {
  font-size: 14px;
  margin: 0;
}

@media (max-width: 1060px) {
  .site-header__tagline {
    display: none;
  }

  .site-header__search {
    width: 170px;
  }

  .site-nav__link {
    padding: 8px 10px;
    font-size: 12px;
  }

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

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

@media (max-width: 960px) {
  .site-header__bar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border-radius: 28px;
  }

  .site-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-header__search {
    width: auto;
    flex: 1 1 140px;
    margin-left: 0;
  }

  .site-nav {
    order: 4;
    width: 100%;
    margin: 0;
    display: none;
    padding: 2px 0 4px;
  }

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

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

  .site-nav__link {
    padding: 12px 14px;
    font-size: 14px;
  }

  .site-footer {
    margin-top: 48px;
  }

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

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

  .site-footer__contact {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .site-footer {
    border-radius: 32px 32px 0 0;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 32px;
  }

  .site-footer__brand {
    grid-column: auto;
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }

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

  .magnet-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .list-row {
    grid-template-columns: 52px 1fr;
  }

  .list-row__meta {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
