/* Стиль страниц коллекций. Отдельный файл, а не инлайн: страниц шесть,
   и браузер тянет его один раз на все. Токены те же, что на главной. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/fonts/unbounded-latin.woff2') format('woff2');
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f5f0ea;
  background-image:
    radial-gradient(ellipse 90% 55% at 15% -5%,  rgba(242,114,192,0.16) 0%, transparent 65%),
    radial-gradient(ellipse 65% 50% at 88% 12%,  rgba(242,114,192,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 75% 60% at 50% 105%, rgba(242,114,192,0.11) 0%, transparent 60%);
  background-attachment: fixed;
  color: #1a1412;
  min-height: 100vh;
  overflow-x: hidden;
}

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #d44fa8;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(245,240,234,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26,20,18,0.06);
}
.nav-logo {
  font-family: 'Unbounded', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .16em;
  color: #1a1412;
  text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-link {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(26,20,18,.55);
  text-decoration: none;
  transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: #1a1412; }
.nav-cta {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #f272c0, #d44fa8);
  padding: 10px 20px;
  border-radius: 100px;
  box-shadow: 0 4px 18px rgba(242,114,192,0.32);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(242,114,192,0.42); }

main { max-width: 1400px; margin: 0 auto; padding: 118px 24px 0; }

/* ── ХЛЕБНЫЕ КРОШКИ ── */
.crumbs {
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(26,20,18,.42);
  margin-bottom: 18px;
}
.crumbs a { color: rgba(26,20,18,.42); text-decoration: none; }
.crumbs a:hover { color: #d44fa8; }

/* ── ШАПКА КОЛЛЕКЦИИ ── */
.hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px;
  border-radius: 32px;
  background: rgba(255,255,255,0.66);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 4px 40px rgba(0,0,0,0.06), 0 1px 0 rgba(255,255,255,0.9) inset;
}
.hero-art {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.07);
  background: rgba(240,235,227,0.6);
}
.hero-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-bottom: 8px;
}
.hero-chain {
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #d44fa8;
  margin-bottom: 16px;
}
.hero-desc {
  font-size: .95rem;
  line-height: 1.6;
  color: rgba(26,20,18,.66);
  max-width: 62ch;
  margin-bottom: 24px;
  white-space: pre-line;
}
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; margin-bottom: 26px; }
.hs { display: flex; flex-direction: column; gap: 3px; }
.hs-val {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -.02em;
}
.hs-key {
  font-size: .52rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(26,20,18,.5);
  font-weight: 600;
}
.hero-btn {
  display: inline-block;
  background: linear-gradient(135deg, #f272c0, #d44fa8);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(242,114,192,0.35);
  transition: transform .2s, box-shadow .2s;
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(242,114,192,0.45); }

/* ── СЕТКА РАБОТ ── */
.section-title {
  font-family: 'Unbounded', sans-serif;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 52px 0 18px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}
.tile {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 18px;
  padding: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s, border-color .3s;
  box-shadow: 0 2px 14px rgba(0,0,0,0.05);
}
.tile:hover {
  transform: translateY(-4px);
  border-color: rgba(242,114,192,0.35);
  box-shadow: 0 12px 34px rgba(242,114,192,0.16);
}
.tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(240,235,227,0.6);
  display: block;
}
.tile-name {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(26,20,18,.62);
  margin-top: 8px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.grid-loading, .grid-empty {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(26,20,18,.4);
}

/* ── ДРУГИЕ КОЛЛЕКЦИИ ── */
.others { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.other {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.9);
  text-decoration: none;
  color: inherit;
  font-size: .72rem;
  font-weight: 600;
  transition: transform .2s, border-color .2s;
}
.other:hover { transform: translateY(-2px); border-color: rgba(242,114,192,0.35); }
.other img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }

/* ── ИНДЕКС КОЛЛЕКЦИЙ ── */
.page-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.page-sub { font-size: .9rem; color: rgba(26,20,18,.6); margin-bottom: 36px; }
.page-sub a { color: #d44fa8; text-decoration: none; border-bottom: 1px solid rgba(212,79,168,.35); }
.page-sub a:hover { border-bottom-color: #d44fa8; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card {
  display: block;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(255,255,255,0.9);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s, border-color .3s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(242,114,192,0.35);
  box-shadow: 0 16px 44px rgba(242,114,192,0.18);
}
.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(240,235,227,0.6);
  display: block;
}
.card-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 14px 0 6px;
}
.card-stats { display: flex; gap: 20px; }

/* ── ПОДВАЛ ── */
footer {
  max-width: 1400px;
  margin: 60px auto 0;
  padding: 30px 24px 50px;
  border-top: 1px solid rgba(26,20,18,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a, .foot-copy {
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(26,20,18,.45);
  text-decoration: none;
  font-weight: 500;
}
.foot-links a:hover { color: #1a1412; }

@media (max-width: 780px) {
  /* В одну строку логотип, четыре ссылки и кнопка не влезают,
     поэтому ссылки уезжают на вторую строку. */
  .nav { padding: 12px 16px; flex-wrap: wrap; row-gap: 10px; }
  .nav-logo { order: 1; }
  .nav-cta { order: 2; padding: 9px 16px; font-size: .62rem; }
  .nav-links {
    order: 3;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-link { font-size: .62rem; white-space: nowrap; }
  main { padding: 128px 16px 0; }
  .hero { grid-template-columns: 1fr; gap: 22px; padding: 22px; border-radius: 26px; }
  .hero-art { max-width: 200px; }
  .hero-name { font-size: 1.9rem; }
  .page-title { font-size: 1.9rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
  .hero-stats { gap: 22px; }
}

/* Вторая, приглушённая кнопка: сайт самой коллекции */
.hero-btn.ghost {
  background: rgba(255,255,255,0.8);
  color: #1a1412;
  border: 1px solid rgba(242,114,192,0.35);
  box-shadow: 0 2px 14px rgba(0,0,0,0.05);
  margin-left: 10px;
}
.hero-btn.ghost:hover { box-shadow: 0 10px 28px rgba(242,114,192,0.2); }
@media (max-width: 640px) {
  .hero-btn { display: block; text-align: center; }
  .hero-btn.ghost { margin: 10px 0 0; }
}
