:root {
  color-scheme: dark;
  --bg: #090b0f;
  --surface: #11151c;
  --surface-strong: #171d26;
  --line: #252d38;
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #eef3f8;
  --muted: #9aa7b6;
  --muted-strong: #c3ccd6;
  --accent: #58d7b8;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: 100%;
  max-width: 1228px;
  margin: 0 auto;
  padding: 40px 24px 56px;
  flex: 1 0 auto;
}

.catalog-header {
  display: grid;
  grid-template-columns: minmax(92px, 140px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 0 0 28px;
}

.brand-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 128px);
  margin: 0;
  padding: 0;
  background: transparent;
}

.brand-logo-card img {
  display: block;
  width: 100%;
  height: auto;
}

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

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.asset-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.asset-card:hover {
  transform: translateY(-3px);
  border-color: rgba(88, 215, 184, 0.34);
  background: var(--surface-strong);
}

.asset-link {
  display: grid;
  height: 100%;
  grid-template-rows: auto 1fr;
}

.asset-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  background: #151a22;
}

.asset-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.asset-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 220ms ease;
}

.asset-card:hover img {
  scale: 1.035;
}

.asset-copy {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 16px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
}

.asset-copy h2 {
  overflow-wrap: anywhere;
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.asset-copy p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 1228px;
  margin: 0 auto;
  padding: 0 24px 24px;
  color: rgba(195, 204, 214, 0.46);
  font-size: 0.78rem;
  line-height: 1.4;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 0;
  font-style: normal;
}

.footer-contacts a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: inherit;
  transition: color 160ms ease, background 160ms ease;
}

.footer-contacts a:hover {
  color: rgba(238, 243, 248, 0.78);
  background: rgba(255, 255, 255, 0.04);
}

.footer-contacts svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-contacts .unity-icon {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 920px) {
  .page-shell {
    max-width: 780px;
    padding: 28px 22px 56px;
  }

  .catalog-header {
    grid-template-columns: minmax(84px, 120px) minmax(0, 1fr);
    align-items: center;
  }

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

@media (max-width: 620px) {
  .page-shell {
    max-width: 520px;
    padding: 28px 28px 36px;
  }

  h1 {
    font-size: 2.25rem;
  }

  .catalog-header {
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: center;
    text-align: center;
  }

  .brand-logo-card {
    width: 96px;
  }

  .asset-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
