/* LyraLab — графит, один акцент, воздух.
   Премиальность здесь делается пустым местом и типографикой:
   ни градиентов, ни золота, ни теней «под стекло». */

:root {
  --bg: #0e0f12;
  --surface: #16181c;
  --surface-2: #1c1f24;
  --line: #24272d;
  --text: #e9e7e4;
  --muted: #8d8b87;
  --accent: #c8a165;        /* латунь без блеска — единственный цвет в макете */
  --accent-dim: rgba(200, 161, 101, 0.14);
  --radius: 2px;
  --pad: clamp(1.25rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.lb-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ─── шапка ─────────────────────────────────────────────── */

.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.5rem var(--pad);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 15, 18, 0.92);
  backdrop-filter: blur(12px);
}
.brand { font-size: 1.15rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.brand span { color: var(--accent); }
.brand.small { font-size: 1rem; margin-bottom: 0.75rem; }
.site-head nav { display: flex; gap: 2.2rem; }
.site-head nav a {
  font-size: 0.86rem; letter-spacing: 0.06em; color: var(--muted);
  padding-bottom: 2px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.site-head nav a:hover { color: var(--text); }
.site-head nav a.active { color: var(--text); border-bottom-color: var(--accent); }
.burger { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* ─── каркас ────────────────────────────────────────────── */

main { max-width: 1120px; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--pad) 6rem; }
main.wide { max-width: 1480px; }
section { margin-bottom: clamp(4rem, 9vw, 7rem); }

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; margin: 0 0 1rem; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; margin-top: 2.5rem; }
p { margin: 0 0 1.2rem; }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--muted); max-width: 62ch; line-height: 1.65; }
.muted { color: var(--muted); }
.section-note { color: var(--muted); max-width: 60ch; margin-bottom: 2.5rem; }
.more { margin-top: 2.5rem; }

/* ─── герой ─────────────────────────────────────────────── */

.hero { padding-bottom: 1rem; }
.hero h1 { max-width: 16ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }
/* первый экран: текст слева, картинка крупно справа и уходит за край экрана —
   не карточка, а часть фона; текст на неё не наезжает, колонки не пересекаются */
.hero.with-pic { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero-pic { display: block; position: relative; margin-right: calc(-1 * var(--pad)); }
.hero-pic img { width: 100%; max-height: 84vh; object-fit: contain; object-position: right center;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%); mask-image: linear-gradient(to right, transparent 0, #000 12%); }
.hero-cap { display: block; margin-top: 0.6rem; margin-right: var(--pad); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; text-align: right; }
.hero-pic:hover .hero-cap { color: var(--accent); }

/* ─── блоки-акценты в текстах ───────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.8rem; margin: 2rem 0 2.5rem; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.fact b { display: block; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; color: var(--accent); margin-bottom: 0.3rem; line-height: 1.2; }
.fact span { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.steps { counter-reset: st; list-style: none; padding: 0; margin: 2rem 0 2.5rem; display: grid; gap: 0.7rem; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.steps li::before { content: counter(st); font-size: 1.4rem; font-weight: 600; color: var(--accent); line-height: 1.2; }
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 2rem 0 2.5rem; }
.compare .col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.compare .col h3 { margin-top: 0; color: var(--accent); font-size: 1.1rem; }
.compare .col p:last-child { margin-bottom: 0; }
.callout { border-left: 2px solid var(--accent); background: var(--accent-dim); padding: 1rem 1.3rem; margin: 2rem 0; }
.callout p:last-child { margin-bottom: 0; }
.prose h2 { padding-top: 0.5rem; }
.prose h2::before { content: ""; display: block; width: 2.5rem; height: 2px; background: var(--accent); margin-bottom: 1rem; }

/* вселенные: четыре самые сильные — крупнее; вселенная целиком 18+ — плашка, не чёрный квадрат */
.ucard.big { grid-column: span 2; }
.ucard.big .ucard-img { aspect-ratio: 16 / 9; }
.ucard.big .ucard-name { font-size: 1.25rem; }
.u18 { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem;
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 14px, var(--surface) 14px 28px); }
.u18 span { font-size: 1.6rem; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
.u18 small { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.03em; }

.order { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin-top: 0.5rem; }
.order .btn { margin: 0; }
.text-link { flex-basis: 100%; font-size: 0.88rem; color: var(--muted); margin-top: 0.4rem; }
.text-link:hover { color: var(--accent); }

.btn {
  display: inline-block; padding: 0.95rem 2rem;
  background: var(--accent); color: #14151a;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em;
  border-radius: var(--radius); border: 1px solid var(--accent);
  transition: opacity .2s; cursor: pointer;
}
.btn:hover { opacity: 0.88; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

/* ─── сетка карточек ────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-flow: dense;
  gap: clamp(1rem, 2.2vw, 1.8rem);
}

.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s, transform .25s, opacity .5s ease, translate .5s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card.featured { grid-column: span 2; grid-row: span 2; }
.card.featured .card-name { font-size: 1.25rem; }

/* картинка целиком, без обрезки: фигура на графитовом фоне */
.card-img {
  aspect-ratio: 4 / 5;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card.featured .card-img { aspect-ratio: auto; flex: 1; min-height: 0; }

.card-body { padding: 1rem 1.2rem 1.25rem; }
.card-top { display: flex; gap: 0.5rem; min-height: 1.2rem; margin-bottom: 0.35rem; }
.card-name { font-weight: 600; line-height: 1.3; margin-bottom: 0.3rem; }
.card-meta { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.03em; }
.price { margin-top: 0.8rem; font-size: 0.95rem; color: var(--accent); }
.card-note { margin-top: 0.5rem; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

.q {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); padding: 0.1rem 0.5rem; border-radius: var(--radius);
}
.q-top { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-dim); }
.q-18 { color: var(--muted); }

.noimg { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.05em; }
.noimg.big { padding: 6rem 2rem; text-align: center; background: var(--surface); }

/* постепенное появление: до попадания в экран карточка чуть ниже и прозрачна */
html.js .card:not(.in), html.js .ucard:not(.in) { opacity: 0; translate: 0 14px; }
html.js .card.in, html.js .ucard.in { opacity: 1; translate: 0 0; }

/* ─── 18+ ───────────────────────────────────────────────── */

.nsfw-wrap {
  width: 100%; height: 100%; min-height: 100%;
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 14px, var(--surface) 14px 28px);
  display: flex; align-items: center; justify-content: center;
}
.nsfw-wrap.big { aspect-ratio: 4 / 5; }
.nsfw-mark { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; padding: 1rem; text-align: center; }
.nsfw-mark span { font-size: 1.6rem; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
.nsfw-ok {
  font-size: 0.78rem; letter-spacing: 0.04em; color: var(--text);
  background: transparent; border: 1px solid var(--line); padding: 0.55rem 1rem; border-radius: var(--radius); cursor: pointer;
}
.nsfw-ok:hover { border-color: var(--accent); color: var(--accent); }
.card .nsfw-ok { font-size: 0.7rem; padding: 0.45rem 0.7rem; }
.nsfw-thumb { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 0.7rem; color: var(--muted); background: var(--surface-2); }
.small-note { font-size: 0.8rem; margin-top: 0.8rem; }

/* ─── каталог: вкладки, фильтры, пагинация ──────────────── */

.tabs { display: flex; gap: 0.4rem; border-bottom: 1px solid var(--line); margin: 2.5rem 0 2rem; }
.tab {
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--muted); padding: 0.8rem 1.1rem; cursor: pointer; font-size: 0.95rem; letter-spacing: 0.02em;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.tab-n { color: var(--accent); font-size: 0.8rem; margin-left: 0.4rem; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.filters { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin-bottom: 2rem; }
.filters input[type="search"], .filters select {
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  padding: 0.6rem 0.9rem; border-radius: var(--radius); font-size: 0.9rem; min-height: 2.6rem;
}
.filters input[type="search"] { flex: 1 1 220px; }
.filters select { appearance: none; padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.filters .chk { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--muted); }
.filters .chk input { accent-color: var(--accent); }

.pager { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin: 2.5rem 0 1rem; }
.pg { background: var(--surface); border: 1px solid var(--line); color: var(--muted); min-width: 2.4rem; height: 2.4rem; border-radius: var(--radius); cursor: pointer; }
.pg:hover:not([disabled]) { border-color: var(--accent); color: var(--text); }
.pg.active { color: var(--accent); border-color: var(--accent); }
.pg[disabled] { opacity: 0.35; cursor: default; }
.pg-dots { color: var(--muted); padding: 0 0.3rem; align-self: center; }
#f-count { text-align: center; font-size: 0.85rem; }

/* ─── вселенные ─────────────────────────────────────────── */

.ugrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.ucard {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface);
  transition: border-color .25s, opacity .5s ease, translate .5s ease;
}
.ucard:hover { border-color: var(--accent); }
.ucard-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.ucard-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.ucard:hover .ucard-img img { transform: scale(1.03); }
.ucard-body { padding: 1rem 1.2rem 1.15rem; }
.ucard-name { font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.ucard-count { font-size: 0.82rem; color: var(--accent); margin-top: 0.3rem; letter-spacing: 0.02em; }

/* ─── страница модели ───────────────────────────────────── */

.crumbs { font-size: 0.82rem; color: var(--muted); margin-bottom: 2rem; letter-spacing: 0.03em; }
.crumbs a:hover { color: var(--accent); }

.model { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
/* область картинки фиксированная: кадры у авторов разных пропорций, и без этого
   при переключении миниатюр вся страница прыгает; целиком — в лайтбоксе */
.model-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; }
.model-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 0.5rem; margin-top: 0.6rem; }
.thumb { padding: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1; overflow: hidden; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: opacity .2s; }
.thumb:hover img, .thumb.active img { opacity: 1; }
.thumb.active { border-color: var(--accent); }

.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; }
.badge {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim); padding: 0.35rem 0.8rem; border-radius: var(--radius);
}
.badge.muted-badge { color: var(--muted); background: var(--surface-2); }
.badge.q-badge { color: var(--text); background: transparent; border: 1px solid var(--line); }

.specs { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.specs th, .specs td { text-align: left; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-weight: 400; vertical-align: top; }
.specs th { color: var(--muted); font-size: 0.85rem; width: 42%; }
.model-note { color: var(--muted); margin: 1.5rem 0 2rem; }
.model-info .btn { margin-right: 0.8rem; margin-bottom: 0.6rem; }
.related { margin-top: 5rem; }

/* лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 11, 13, 0.96); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 92vh; object-fit: contain; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: none; border: 0; color: var(--muted); font-size: 2.4rem; line-height: 1; cursor: pointer; padding: 1rem;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--text); }
.lb-close { top: 0.5rem; right: 1rem; }
.lb-prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.5rem; top: 50%; transform: translateY(-50%); }

/* ─── форма «на заказ» и призыв к ней ───────────────────── */

.cta-strip { border-top: 1px solid var(--line); padding-top: 3rem; }
.cta-strip h2 { margin-bottom: 0.6rem; }
.zakaz { max-width: 68ch; margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.form { display: flex; flex-direction: column; gap: 1.2rem; }
.form label { display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.9rem; color: var(--muted); }
.form input, .form textarea, .form select {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.75rem 0.9rem; width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); }
.form textarea { resize: vertical; min-height: 6rem; }
.form .btn { align-self: flex-start; border: 0; }
.req { color: var(--accent); }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.form-err { color: var(--accent); font-size: 0.9rem; }

/* ─── текстовые страницы ────────────────────────────────── */

.prose { max-width: 68ch; }
.prose h2 { margin-top: 3.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.4rem; }
.prose li { margin-bottom: 0.5rem; }
.prose blockquote { margin: 2rem 0; padding: 0.2rem 0 0.2rem 1.5rem; border-left: 2px solid var(--accent); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.prose code { background: var(--surface-2); padding: 0.15em 0.4em; border-radius: var(--radius); font-size: 0.9em; }
.prose a { color: var(--accent); border-bottom: 1px solid var(--accent-dim); }
.prose a:hover { border-bottom-color: var(--accent); }
.table-wrap { overflow-x: auto; margin: 2rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { text-align: left; padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--line); }
thead th { color: var(--muted); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* ─── подвал ────────────────────────────────────────────── */

.site-foot { border-top: 1px solid var(--line); padding: 3.5rem var(--pad); margin-top: 4rem; }
.foot-inner { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.foot-inner p { max-width: 38ch; font-size: 0.9rem; margin: 0; }
.foot-links { display: flex; flex-direction: column; gap: 0.6rem; }
.foot-links a { font-size: 0.88rem; color: var(--muted); }
.foot-links a:hover { color: var(--accent); }

/* ─── телефон ───────────────────────────────────────────── */

@media (max-width: 760px) {
  body { font-size: 16px; }
  .burger { display: block; }
  .site-head nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); }
  .site-head.open nav { display: flex; }
  .site-head nav a { padding: 1rem var(--pad); border-bottom: 1px solid var(--line); }
  .model { grid-template-columns: 1fr; }
  .hero.with-pic { grid-template-columns: 1fr; }
  .hero-pic img { max-height: 60vh; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .card.featured { grid-column: span 2; grid-row: auto; }
  .card.featured .card-img { aspect-ratio: 4 / 5; }
  .card-body { padding: 0.75rem 0.85rem 0.9rem; }
  .card-name { font-size: 0.92rem; }
  .ugrid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .ucard-name { font-size: 0.92rem; }
  .ucard.big { grid-column: span 2; }
  .hero-pic { margin-right: 0; }
  .hero-pic img { max-height: 60vh; object-position: center; -webkit-mask-image: none; mask-image: none; }
  .filters input[type="search"] { flex-basis: 100%; }
  .foot-inner { flex-direction: column; gap: 2rem; }
  .tabs { margin-top: 1.5rem; }
  .tab { padding: 0.7rem 0.8rem; font-size: 0.88rem; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .card:not(.in), html.js .ucard:not(.in) { opacity: 1; translate: 0 0; }
  .card, .ucard { transition: none; }
}
