/* Claus Decor — тёмная тема в стиле каталога: чёрный фон, золотой акцент, антиква в заголовках */
:root {
  --bg: #0d0c0b;
  --bg2: #151311;
  --line: #2b2723;
  --text: #ece6dc;
  --muted: #9a9187;
  --gold: #c9a46a;
  --gold2: #ddbd84;
  --ok: #8fbf8a;
  --err: #e08a7a;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --r: 14px;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold2); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; }
.code { font-family: var(--serif); font-size: 1.05em; letter-spacing: .04em; color: var(--gold); }
.center { text-align: center; }
.narrow { max-width: 720px; }
.mt { margin-top: 56px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgba(13,12,11,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: flex; flex-direction: column; line-height: .95; font-family: var(--serif); font-size: 22px; letter-spacing: .22em; color: var(--gold); }
.logo span + span { padding-left: .1em; }
.nav { display: flex; gap: 28px; flex: 1; }
.nav a { color: var(--text); font-size: 15px; position: relative; padding: 4px 0; }
.nav a.is-active::after, .nav a:hover::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold); }
.top__right { display: flex; align-items: center; gap: 18px; }
.top__phone { color: var(--text); font-weight: 500; white-space: nowrap; }
.iconlink { color: var(--text); position: relative; display: inline-flex; }
.iconlink:hover { color: var(--gold); }
.cartlink b { position: absolute; top: -8px; right: -10px; background: var(--gold); color: #111; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.burger { display: none; background: none; border: 0; width: 32px; height: 32px; cursor: pointer; padding: 6px 4px; }
.burger i { display: block; height: 1.5px; background: var(--text); margin: 6px 0; }
.optbar { background: #1d1913; color: var(--gold2); font-size: 14px; text-align: center; padding: 8px var(--gutter); border-top: 1px solid var(--line); }
.flash { padding: 14px 0; font-size: 15px; transition: opacity .4s; }
.flash--ok { background: #1a2318; color: #cfe6c9; }
.flash--err { background: #2a1714; color: #f3c9c0; }
.flash.is-hidden { opacity: 0; pointer-events: none; height: 0; padding: 0; overflow: hidden; }

/* типографика */
h1, h2, h3, .h1, .h2 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; }
.h1 { font-size: clamp(34px, 5vw, 52px); }
.h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--gold); margin: 0 0 14px; display: block; }
.lead { font-size: 18px; color: #d8d1c6; max-width: 60ch; }
.section { padding: 56px var(--gutter); }
.sechead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.more { font-size: 15px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.note { margin-top: 32px; color: var(--muted); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--gold); color: #15110b; border: 1px solid var(--gold); border-radius: 999px; padding: 13px 28px; font: 600 15px var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--gold2); color: #15110b; }
.btn--ghost { background: transparent; color: var(--gold); }
.btn--ghost:hover { background: var(--gold); color: #15110b; }
.btn--sm { padding: 8px 18px; font-size: 14px; }
.linkbtn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; }

/* главная */
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; min-height: 600px; padding-top: 40px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(42px, 6vw, 76px); margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero__btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero__img { position: relative; border-radius: 220px 220px var(--r) var(--r); overflow: hidden; aspect-ratio: 4/5; max-height: 640px; justify-self: end; width: 100%; max-width: 480px; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 20px; color: var(--text); display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.cat:hover { border-color: var(--gold); color: var(--text); transform: translateY(-2px); }
.cat img { aspect-ratio: 1; object-fit: contain; width: 100%; margin-bottom: 14px; background: #000; border-radius: 10px; }
.cat__t { font-family: var(--serif); font-size: 24px; }
.cat__n { font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.card { background: #000; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--text); display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--gold); color: var(--text); transform: translateY(-3px); }
.card__img { aspect-ratio: 4/5; background: #000; }
.card__img img { width: 100%; height: 100%; object-fit: contain; }
.card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); background: var(--bg2); flex: 1; }
.card__kind { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.card__name { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 8px; }
.price { font-weight: 600; }

.band { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band__in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.band__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 4/5; max-height: 560px; }
.band__img img { width: 100%; height: 100%; object-fit: cover; }
.feats { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 16px; }
.feats li { padding-left: 28px; position: relative; color: #d8d1c6; }
.feats li::before { content: ''; position: absolute; left: 0; top: .7em; width: 14px; height: 1px; background: var(--gold); }
.feats b { color: var(--text); }

.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }

/* формы */
.form { display: grid; gap: 16px; max-width: 640px; }
.form label { display: block; font-size: 14px; color: #cfc7bb; }
.form label > input, .form label > select, .form label > textarea { display: block; margin-top: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
input, select, textarea { width: 100%; background: #0a0908; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: 16px var(--sans); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold); flex: none; }
.form .btn { justify-self: start; }
.errors { background: #2a1714; border: 1px solid #5a2a22; color: #f3c9c0; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.errors p { margin: 4px 0; }
.ok { color: var(--ok); }

/* каталог */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 28px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; color: var(--text); font-size: 14px; }
.chip:hover { border-color: var(--gold); color: var(--text); }
.chip.is-on { background: var(--gold); border-color: var(--gold); color: #15110b; }
.pricetable { margin: 0 0 32px; overflow-x: auto; }
.pricetable table, table.adm, table.mini, .carttable { border-collapse: collapse; width: 100%; font-size: 15px; }
.pricetable table { max-width: 900px; }
.pricetable td, .pricetable th { white-space: nowrap; }
.pricetable th, .pricetable td, table.adm th, table.adm td, table.mini th, table.mini td, .carttable th, .carttable td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: middle; }
th { font-weight: 500; color: var(--muted); font-size: 13px; white-space: nowrap; }
th small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }

/* карточка товара */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.pdp__img { background: #000; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; position: sticky; top: 96px; }
.pdp__img img { width: 100%; aspect-ratio: 4/5; object-fit: contain; }
.sizes { border: 0; padding: 0; margin: 24px 0 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sizes legend { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.size input { position: absolute; opacity: 0; }
.size span { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .2s; }
.size b { font-weight: 500; font-size: 15px; }
.size em { font-style: normal; font-size: 18px; font-weight: 600; }
.size small { color: var(--gold); font-size: 12px; }
.size input:checked + span { border-color: var(--gold); background: #1b1711; }
.size input:focus-visible + span { outline: 2px solid var(--gold); }
.buy__row { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; }
.qty { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.qty input { width: 110px; }
.whprices { margin: 24px 0; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; }
.whprices summary { cursor: pointer; color: var(--gold); }
.pdp__list { color: #cfc7bb; padding-left: 18px; margin-top: 28px; }

/* корзина */
.carttable td { padding: 14px 10px; }
.ct__img img { width: 64px; height: 80px; object-fit: contain; background: #000; border-radius: 8px; }
.qtyin { width: 90px; }
.x { background: none; border: 0; color: var(--muted); font-size: 24px; cursor: pointer; }
.x:hover { color: var(--err); }
.cart__foot { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.cart__total { text-align: right; font-size: 18px; }
.cart__total .sum { font-size: 28px; font-family: var(--serif); color: var(--gold); }
.lvl { font-size: 15px; margin-bottom: 6px; }
.checkout { margin-top: 12px; }

/* опт */
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0 32px; }
.level { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 4px; background: var(--bg2); }
.level b { font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--gold); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.steps div { display: flex; gap: 14px; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 14px; }
.steps b { font-family: var(--serif); font-size: 34px; color: var(--gold); line-height: 1; }

/* кабинет и админка */
.cabgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.box { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.box h3 { margin-top: 0; }
.st { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: #2a2622; white-space: nowrap; }
.st--new, .st--pending { background: #3a2e17; color: var(--gold2); }
.st--approved, .st--done { background: #1c2a1b; color: var(--ok); }
.st--rejected, .st--blocked, .st--cancelled { background: #2c1915; color: var(--err); }
.st--in_work { background: #1b2430; color: #9fc0e6; }
.admtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; border-bottom: 1px solid var(--line); padding-bottom: 12px; align-items: center; }
.admtabs a { color: var(--text); padding: 6px 14px; border-radius: 999px; font-size: 14px; }
.admtabs a.is-on { background: var(--gold); color: #15110b; }
.admtabs__out { margin-left: auto; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; color: var(--text); display: grid; }
.stat b { font-family: var(--serif); font-size: 36px; font-weight: 500; color: var(--gold); }
.stat span { color: var(--muted); font-size: 14px; }
table.adm tr.is-off td { opacity: .45; }
.thumb { width: 48px; height: 60px; object-fit: contain; background: #000; border-radius: 6px; }
.thumb--lg { width: 160px; height: 200px; margin: 6px 0; }
.pricesedit input { padding: 8px 10px; min-width: 90px; }
.msgs { display: grid; gap: 14px; }
.msg.is-new { border-color: var(--gold); }
.pre { white-space: pre-wrap; }
.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline select { width: auto; }
.inline--end { align-items: flex-end; }
.inline--end .btn { margin-bottom: 2px; }
.grow { flex: 1; min-width: 220px; }
.prose h3 { margin-top: 28px; }

/* подвал */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 48px 0 24px; font-size: 15px; }
.foot__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { font: 500 13px var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 12px; }
.foot a { display: block; color: var(--text); margin-bottom: 6px; }
.foot a:hover { color: var(--gold); }
.foot .logo { display: inline-flex; margin-bottom: 14px; color: var(--gold); }
.foot__phone { font-size: 18px; }
.foot__copy { margin-top: 36px; font-size: 13px; }

/* адаптив */
@media (max-width: 1000px) {
  .cats { grid-template-columns: repeat(2, 1fr); }
  .hero__in, .band__in, .contact, .pdp, .cabgrid { grid-template-columns: 1fr; }
  .hero__in { min-height: 0; }
  .hero__img { justify-self: center; max-height: 520px; }
  .pdp__img { position: static; }
  .levels, .stats { grid-template-columns: repeat(2, 1fr); }
  .foot__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .top__in { height: 64px; gap: 12px; }
  .top__phone { display: none; }
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-open .nav { display: flex; }
  .top__right { margin-left: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card__name { font-size: 18px; }
  .cats { gap: 10px; }
  .cat { padding: 10px 10px 14px; }
  .cat__t { font-size: 19px; }
  .cat__n { font-size: 12px; }
  .card__meta { flex-direction: column; gap: 2px; }
  .grid2, .grid4, .steps { grid-template-columns: 1fr; }
  .section { padding: 36px var(--gutter); }
  .carttable thead { display: none; }
  .carttable tr { display: grid; grid-template-columns: 72px 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .carttable td { border: 0; padding: 0; }
  .carttable td.ct__img { grid-row: span 4; }
  .cart__total { text-align: left; }
  .foot__in { grid-template-columns: 1fr; }
}
