/* ===================== ДИЗАЙН-СИСТЕМА ===================== */

:root {
  --paper: #f3f0e8;
  --white: #fffdf7;
  --ink: #20231f;
  --muted: #62675f;
  --line: #d7d7cc;
  --red: #b93626;
  --red-dark: #94291d;
  --dark: #171918;
  --radius: 6px;
  --max: 1280px;
  --shadow: 0 16px 40px rgb(20 25 20 / 9%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; }
h1, h2 { letter-spacing: -.045em; }
a, button, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--white);
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: block;
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.muted { color: var(--muted); }
.accent { color: var(--red); }
.section { padding-block: 76px; }
.border-top { border-top: 1px solid var(--line); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 12px 21px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.button:hover { background: #e6e3d9; transform: translateY(-2px); }
.button.primary { background: var(--red); border-color: var(--red); color: white; }
.button.primary:hover { background: var(--red-dark); }
.button.light { color: white; border-color: #656861; }
.button.light:hover { background: #30342e; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  font-weight: 600;
  font-size: 14px;
}

.pill {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 10px;
  letter-spacing: .07em;
  font-weight: 700;
  text-transform: uppercase;
}

/* ===================== ШАПКА ===================== */

.header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.header-inner {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: white;
  font-family: Georgia, serif;
  font-size: 29px;
  line-height: 1;
}
.brand-name {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.brand-name small {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--muted);
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  padding-block: 8px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  border-color: var(--red);
  color: var(--red);
}
.header-note {
  font-family: monospace;
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  line-height: 1.7;
}

/* ===================== ГЛАВНАЯ ===================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--paper);
}
.hero-inner {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 70px;
  padding-block: 72px;
}
.hero .eyebrow { color: #bebfb6; }
.hero h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(46px, 5.3vw, 76px);
  font-weight: 550;
  line-height: 1.02;
}
.hero h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #e77560;
}
.hero-description {
  max-width: 470px;
  color: #c0c3b9;
  font-size: 15px;
  margin-bottom: 32px;
}
.poster {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid #646459;
  background: #242821;
  transform: rotate(2deg);
  box-shadow: 20px 24px 0 #0e100e;
}
.poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 4px, #0002 4px 5px),
    linear-gradient(125deg, #b1b3a4, #555b50 48%, #272e26);
}
.poster-circle {
  position: absolute;
  width: 340px;
  height: 340px;
  border: 47px solid #c74631;
  border-radius: 50%;
  right: -50px;
  top: 28px;
  box-shadow: 0 0 0 1px #161c1633;
}
.poster-slash {
  position: absolute;
  width: 130px;
  height: 640px;
  background: #171d17;
  left: 90px;
  top: -90px;
  transform: rotate(32deg);
}
.poster-copy {
  position: relative;
  z-index: 1;
  padding: 30px;
  height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.poster-top {
  font: 11px/1.7 monospace;
  letter-spacing: .08em;
  color: #f4f1df;
}
.poster-title {
  font-size: clamp(45px, 5vw, 68px);
  font-weight: 850;
  line-height: .92;
  letter-spacing: -.06em;
  text-transform: uppercase;
}
.poster-title span {
  display: block;
  margin-top: 18px;
  font: 11px/1.5 monospace;
  letter-spacing: .13em;
}
.poster-caption {
  margin-top: 30px;
  color: #9da194;
  font: 10px/1.5 monospace;
  text-align: right;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 25px 30px; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat strong { font-size: 30px; font-weight: 500; margin-right: 12px; }
.stat span { font-size: 12px; color: var(--muted); }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 32px;
}
.section-heading h2 { font-size: clamp(30px, 4vw, 44px); margin: 0; }

.themes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.theme {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 114px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .2s;
}
.theme:hover { background: var(--white); }
.theme-number { color: var(--red); font: 12px monospace; align-self: flex-start; }
.theme-name { flex: 1; font-weight: 650; font-size: 16px; line-height: 1.3; }
.theme-name small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

/* ===================== КАТАЛОГ / ЭКСПОЗИЦИЯ ===================== */

.page-head { padding-block: 56px 38px; }
.page-head h1 { font-size: clamp(40px, 6vw, 68px); margin-bottom: 18px; }
.page-head p { max-width: 690px; color: var(--muted); }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 28px;
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }

.catalog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 76px;
  align-items: start;
}
.sidebar {
  padding-top: 21px;
  border-top: 2px solid var(--ink);
}
.sidebar h2 {
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.filter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  padding: 11px 12px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
}
.filter-link:hover { background: #e6e4db; }
.filter-link.active { color: white; background: var(--ink); }
.filter-count { font: 11px monospace; opacity: .65; }

.search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.search-box { flex: 1; min-width: 0; }
.search-box label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  border: 1px solid #bfc2b6;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.search-form button { align-self: end; }
.results-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 12px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.catalog-layout .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--dark);
}
.card-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, #0003 3px 4px),
    linear-gradient(140deg, #6f7568, #2a2f28 60%, #171a16);
}
.card-cover::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border: 22px solid var(--red);
  border-radius: 50%;
  right: -30px;
  bottom: -30px;
  opacity: .85;
}
.card-body { padding: 20px 22px 24px; }
.card-body h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.card-body p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

/* ===================== О МУЗЕЕ ===================== */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-lead {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.3;
  letter-spacing: -.02em;
  margin-bottom: 28px;
}
.about-text p { color: var(--muted); margin-bottom: 18px; }
.about-facts {
  border-top: 2px solid var(--ink);
  padding-top: 21px;
}
.about-facts h2 {
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.fact {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.fact strong {
  display: block;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -.03em;
}
.fact span { font-size: 12px; color: var(--muted); }

.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.team-card h3 { font-size: 17px; margin-bottom: 6px; }
.team-card p { color: var(--muted); font-size: 13px; margin: 0; }
.team-role {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ===================== ПОДВАЛ ===================== */

.footer {
  background: var(--dark);
  color: #c0c3b9;
  padding-block: 52px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer .brand-mark { width: 36px; height: 36px; font-size: 24px; }
.footer p { margin: 0; font-size: 12px; }
.footer a { color: #f3f0e8; text-decoration: none; }
.footer a:hover { color: #e77560; }
.footer .brand-name { color: #f3f0e8; }
.footer .brand-name small { color: #8b9086; }

/* ===================== АДАПТИВ ===================== */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .poster { max-width: 480px; }
  .themes { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .cards, .catalog-layout .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-note { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .team { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .header-inner { flex-wrap: wrap; padding-block: 16px; min-height: 0; }
  .nav { gap: 18px; flex-wrap: wrap; }
  .hero-inner { min-height: 0; padding-block: 48px; }
  .hero h1 { font-size: clamp(38px, 10vw, 52px); }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding-inline: 0; }
  .stat:last-child { border-bottom: 0; }
  .themes { grid-template-columns: 1fr; }
  .cards, .catalog-layout .cards { grid-template-columns: 1fr; }
  .section { padding-block: 52px; }
  .poster { transform: none; box-shadow: 12px 14px 0 #0e100e; }
  .team { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .card, .theme { transition: none; }
}