/* СВЕТОЛОВ — стили. Палитра и типографика перенесены из макета. */
:root {
  --bg: #faf9f6;
  --ink: #1f1e1c;
  --accent: #8a6a45;
  --card-bg: #efece6;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: var(--ink); }
body.locked { overflow: hidden; }

@keyframes ovIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes upIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Шапка */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: rgba(250, 249, 246, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31, 30, 28, .07);
}
.brand { display: flex; flex-direction: column; gap: 2px; }
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 23px; font-weight: 600; letter-spacing: .08em; line-height: 1;
}
.brand-sub {
  font-size: 9px; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(31, 30, 28, .45);
}
.burger {
  min-width: 44px; min-height: 44px; padding: 6px;
  display: flex; flex-direction: column; align-items: flex-end;
  justify-content: center; gap: 6px;
  background: none; border: none; cursor: pointer;
}
.burger:hover { opacity: .6; }
.burger span { display: block; width: 26px; height: 2px; background: var(--ink); }
.burger span:last-child { width: 17px; }

/* Hero */
.hero { max-width: 1200px; margin: 0 auto; padding: 54px 20px 8px; }
.hero h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 6.4vw, 68px); font-weight: 500;
  line-height: 1.06; letter-spacing: -.01em; text-wrap: balance;
}
.accent-dot { color: var(--accent); }
.hero p {
  margin: 14px 0 0; max-width: 560px;
  font-size: 14px; line-height: 1.65; color: rgba(31, 30, 28, .6);
  text-wrap: pretty;
}

/* Панель фильтра */
.filter-bar {
  max-width: 1200px; margin: 0 auto; padding: 26px 20px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.filter-label { font-size: 12.5px; letter-spacing: .05em; color: rgba(31, 30, 28, .55); }
.genres-btn {
  min-height: 44px; padding: 4px 2px;
  display: flex; align-items: center; gap: 8px;
  background: none; border: none; border-bottom: 1px solid rgba(31, 30, 28, .3);
  cursor: pointer;
  font-family: Manrope, sans-serif; font-size: 12.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
.genres-btn:hover { border-color: var(--ink); }

/* Сетка */
.grid {
  max-width: 1200px; margin: 0 auto; padding: 0 20px 64px;
  column-width: 270px; column-gap: 14px;
}
.card {
  position: relative; break-inside: avoid;
  margin: 0 0 14px; min-height: 160px;
  background: var(--card-bg); cursor: zoom-in;
}
.card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-label {
  position: absolute; left: 0; bottom: 0; pointer-events: none;
  padding: 5px 9px; background: rgba(250, 249, 246, .88);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(31, 30, 28, .65);
}
.card-open {
  position: absolute; right: 8px; bottom: 8px; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(250, 249, 246, .9); border: none; cursor: pointer;
  font-size: 15px;
}
.card-open:hover { background: var(--ink); color: var(--bg); }
.grid-empty { padding: 40px 0 20px; font-size: 14px; line-height: 1.6; color: rgba(31, 30, 28, .55); }

/* Футер */
.site-footer {
  border-top: 1px solid rgba(31, 30, 28, .08);
  padding: 40px 20px 48px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
}
.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px; font-weight: 600; letter-spacing: .08em;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; font-size: 13px; font-weight: 500; }
.footer-copy { font-size: 11px; letter-spacing: .06em; color: rgba(31, 30, 28, .4); }

/* Оверлеи */
.overlay { position: fixed; inset: 0; display: flex; flex-direction: column; animation: ovIn .22s ease; }
.overlay[hidden] { display: none; }
.menu-overlay { z-index: 60; background: rgba(250, 249, 246, .97); backdrop-filter: blur(14px); }
.lightbox { z-index: 70; background: rgba(250, 249, 246, .98); animation-duration: .18s; }
.overlay-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; }
.overlay-kicker {
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(31, 30, 28, .45);
}
.close-btn { min-width: 44px; min-height: 44px; background: none; border: none; cursor: pointer; font-size: 20px; }
.close-btn:hover { opacity: .6; }

/* Меню жанров */
.menu-list {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 0 30px;
  animation: upIn .32s ease;
}
.menu-item {
  display: flex; align-items: baseline; gap: 14px;
  background: none; border: none; cursor: pointer;
  padding: 7px 0; min-height: 48px; text-align: left;
}
.menu-item:hover { opacity: .65; }
.menu-item .ru {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 5.4vh, 44px); font-weight: 500; line-height: 1.12;
}
.menu-item.active .ru { color: var(--accent); font-style: italic; }
.menu-item .en {
  font-family: Manrope, sans-serif;
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(31, 30, 28, .4);
}
.menu-item .count { font-family: Manrope, sans-serif; font-size: 11px; font-weight: 600; color: var(--accent); }
.menu-footer {
  padding: 18px 30px 34px;
  display: flex; flex-wrap: wrap; gap: 8px 26px;
  font-size: 13px; font-weight: 500;
  border-top: 1px solid rgba(31, 30, 28, .07);
}

/* Лайтбокс */
.lb-caption {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(31, 30, 28, .5);
}
.lb-stage {
  flex: 1; min-height: 0; padding: 0 16px;
  display: flex; align-items: center; justify-content: center;
}
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-nav { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 14px 0 28px; }
.lb-nav button {
  min-width: 48px; min-height: 44px;
  background: none; border: 1px solid rgba(31, 30, 28, .2);
  cursor: pointer; font-size: 16px;
}
.lb-nav button:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.lb-count { font-size: 12px; letter-spacing: .1em; color: rgba(31, 30, 28, .55); min-width: 52px; text-align: center; }
