@font-face {
  font-family: "Klaster Sans";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/klaster-sans-heavy.otf") format("opentype");
}

@font-face {
  font-family: "Fixel Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fixel-text-regular.woff2") format("woff2");
}

:root {
  --wine: #330c1c;
  --wine-soft: #4f0f28;
  --accent: #80113c;
  --gold: #ffbf00;
  --gold-soft: #ffebb2;
  --ink: #18181c;
  --muted: #777788;
  --line: #e4e4e8;
  --surface: #fff;
  --paper: #f1f1f3;
  --shadow: 0 12px 32px rgba(32, 6, 16, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Fixel Text", sans-serif;
  letter-spacing: 0;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  color: #fff;
  background: color-mix(in srgb, var(--wine) 97%, transparent);
  border-bottom: 1px solid #6e2b46;
  backdrop-filter: blur(14px);
}

.topbar__inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img { width: 43px; height: 43px; object-fit: contain; }
.brand__text { line-height: 1.05; }
.brand__name {
  display: block;
  font-family: "Klaster Sans", sans-serif;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
}
.brand__label { color: #dfcbd3; font-size: 11px; font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 8px; }

.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.icon-button:hover, .icon-button:focus-visible { color: var(--wine); background: var(--gold); }

.hero { overflow: hidden; color: #fff; background: var(--wine-soft); }
.hero__inner {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  min-height: 330px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 52px;
  padding: 56px 0 62px;
}
.hero__inner::before {
  content: "Х";
  position: absolute;
  top: -160px;
  right: 250px;
  color: rgba(255, 189, 22, .06);
  font-family: "Klaster Sans", sans-serif;
  font-size: 620px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}
.hero__copy { position: relative; z-index: 1; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--gold); }
h1 {
  max-width: 720px;
  margin: 0;
  font-family: "Klaster Sans", sans-serif;
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero__copy p { max-width: 590px; margin: 22px 0 0; color: #e8dce1; font-size: 16px; line-height: 1.65; }
.hero__crest {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: 286px;
  aspect-ratio: 1;
  padding: 18px;
  border: 1px solid rgba(255, 189, 22, .35);
  background: rgba(255, 255, 255, .035);
}
.hero__crest img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .24)); }

.main { position: relative; z-index: 2; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 50px; }
.content-head {
  min-height: 96px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 2px 14px;
  border-bottom: 1px solid var(--line);
}
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--accent); font-weight: 700; text-decoration: none; }
.breadcrumb a:hover, .breadcrumb a:focus-visible { text-decoration: underline; }
.breadcrumb i { color: #b7adb1; font-size: 9px; }
.catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-top: 18px; }

.link-tile {
  position: relative;
  min-height: 132px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 14px;
  padding: 22px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: var(--surface);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  animation: reveal .42s both;
}
.link-tile:hover, .link-tile:focus-visible { transform: translateY(-3px); border-color: #6e2b46; box-shadow: var(--shadow); }
.link-tile::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--gold);
  transition: width .25s ease;
}
.link-tile:hover::after, .link-tile:focus-visible::after { width: 100%; }
.tile-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--accent);
  background: var(--gold-soft);
  font-size: 20px;
}
.link-tile[data-type="group"] .tile-icon { color: #fff; background: var(--accent); }
.tile-copy { min-width: 0; }
.tile-title { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 800; line-height: 1.35; }
.tile-meta { display: block; overflow-wrap: anywhere; color: var(--muted); font-size: 11px; line-height: 1.45; }
.tile-arrow { color: #a99da2; font-size: 13px; transition: transform .2s, color .2s; }
.link-tile:hover .tile-arrow, .link-tile:focus-visible .tile-arrow { color: var(--wine); transform: translateX(3px); }
.empty { grid-column: 1 / -1; padding: 72px 20px; color: var(--muted); text-align: center; }
.empty i { display: block; margin-bottom: 14px; color: #c4b8bd; font-size: 28px; }
.catalog-status {
  grid-column: 1 / -1;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
}
.catalog-status .fa-spinner { animation: spin .8s linear infinite; }
.catalog-status--error { flex-direction: column; }
.catalog-status--error > i { color: var(--accent); font-size: 28px; }
.catalog-status button {
  margin-top: 6px;
  padding: 9px 14px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
}

footer { padding: 8px 0 34px; color: var(--muted); font-size: 11px; }
.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: calc(100% - 40px);
  padding: 13px 17px;
  border-left: 4px solid var(--gold);
  color: #fff;
  background: var(--wine);
  box-shadow: var(--shadow);
  font-size: 13px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
noscript { display: block; padding: 20px; color: #fff; background: var(--wine); text-align: center; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero__inner { min-height: 300px; grid-template-columns: minmax(0, 1fr) 220px; }
  .hero__crest { width: 210px; }
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .topbar__inner, .hero__inner, .main, .footer-inner { width: min(100% - 28px, 1180px); }
  .topbar__inner { min-height: 62px; }
  .brand__name { font-size: 17px; }
  .brand__label { display: none; }
  .hero__inner { min-height: 320px; display: block; padding: 48px 0 70px; }
  .hero__inner::before { top: -20px; right: -40px; font-size: 330px; }
  .hero__copy { padding-right: 56px; }
  .hero__copy p { font-size: 14px; line-height: 1.55; }
  .hero__crest { position: absolute; right: -24px; bottom: -18px; width: 130px; opacity: .95; }
  .content-head { min-height: 80px; align-items: center; padding-top: 23px; }
  .catalog { grid-template-columns: 1fr; gap: 10px; padding-top: 14px; }
  .link-tile { min-height: 94px; grid-template-columns: 44px minmax(0, 1fr) 22px; padding: 16px; }
  .tile-icon { width: 44px; height: 44px; }
  .footer-inner { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}