/*
Theme Name: Diyor Mebel
Description: Diyor Mebel uchun maxsus mavzu (qora-oltin uslub, katalog va buyurtma).
Version: 1.0.0
Author: Diyor Mebel
Text Domain: diyor-mebel
*/

:root {
	--ink: #161412;
	--ink-2: #201c18;
	--ink-3: #2b2621;
	--ivory: #faf7f2;
	--ivory-2: #f2ece2;
	--paper: #ffffff;
	--text: #23201c;
	--muted: #6b645b;
	--muted-on-dark: #b9b0a3;
	--line: #e7dfd2;
	--line-dark: rgba(255, 255, 255, .1);
	--gold: #c49a52;
	--gold-2: #dcb877;
	--gold-ink: #8a6424;
	--ok: #2e7d4f;
	--err: #b3261e;
	--r: 14px;
	--r-lg: 22px;
	--shadow: 0 1px 2px rgba(22, 20, 18, .04), 0 8px 24px rgba(22, 20, 18, .06);
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-h: "Montserrat", "Inter", system-ui, sans-serif;
	--wrap: 1200px;
	--hh: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--ivory);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-h); line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.dm-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.dm-skip:focus { left: 12px; }

.dm-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.dm-ico { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* ---------- Buttons ---------- */
.dm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
	font-weight: 600; font-size: 15px; letter-spacing: .01em; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s;
	white-space: nowrap;
}
.dm-btn:active { transform: translateY(1px); }
.dm-btn--gold { background: var(--gold); color: var(--ink); }
.dm-btn--gold:hover { background: var(--gold-2); }
.dm-btn--ghost { border-color: rgba(255, 255, 255, .22); color: var(--ivory); }
.dm-btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.dm-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.dm-btn--block { width: 100%; }
.dm-btn[disabled] { opacity: .6; cursor: wait; }

.dm-kicker {
	font-family: var(--font-h); font-size: 12px; font-weight: 600; letter-spacing: .22em;
	text-transform: uppercase; color: var(--gold-ink); margin-bottom: 12px;
}
.dm-h1 { font-size: clamp(30px, 4vw, 44px); }
.dm-h2 { font-size: clamp(26px, 3.2vw, 38px); }
.dm-h3 { font-size: 22px; margin-bottom: 12px; }
.dm-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gold-ink); }
.dm-link:hover { color: var(--text); }

/* ---------- Header ---------- */
.dm-header {
	position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--ivory);
	border-bottom: 1px solid var(--line-dark); transition: box-shadow .2s;
}
.dm-header.is-scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.dm-header__in { display: flex; align-items: center; gap: 28px; height: var(--hh); }
.dm-logo { display: block; flex: none; }
.dm-logo__img { height: 38px; width: auto; }
.dm-logo__text { font-family: var(--font-h); font-weight: 600; font-size: 22px; letter-spacing: .12em; color: var(--gold-2); }
.dm-logo__text small { font-size: .55em; letter-spacing: .3em; color: var(--muted-on-dark); }
.dm-nav { margin-left: auto; }
.dm-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.dm-nav__list a { font-size: 15px; font-weight: 500; color: rgba(250, 247, 242, .82); padding: 6px 0; position: relative; }
.dm-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.dm-nav__list a:hover, .dm-nav__list .current-menu-item > a { color: var(--ivory); }
.dm-nav__list a:hover::after, .dm-nav__list .current-menu-item > a::after { transform: scaleX(1); }
.dm-nav__contacts { display: none; }
.dm-header__actions { display: flex; align-items: center; gap: 14px; }
.dm-header__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--ivory); }
.dm-header__phone .dm-ico { color: var(--gold); }
.dm-header__phone:hover { color: var(--gold-2); }
.dm-burger { display: none; background: none; border: 0; color: var(--ivory); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; font-size: 24px; }
.dm-burger__close { display: none; }

@media (max-width: 1100px) {
	.dm-header__phone span { display: none; }
	.dm-header__phone { width: 40px; height: 40px; justify-content: center; border: 1px solid var(--line-dark); border-radius: 50%; }
}
@media (max-width: 900px) {
	:root { --hh: 64px; }
	.dm-logo__img { height: 30px; }
	.dm-burger { display: inline-flex; }
	.dm-header__tg span { display: none; }
	.dm-header__tg { width: 40px; padding: 0; }
	.dm-nav {
		position: fixed; inset: var(--hh) 0 0 0; background: var(--ink); padding: 24px 20px 40px;
		display: flex; flex-direction: column; gap: 28px; overflow-y: auto;
		transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s;
		margin: 0;
	}
	.dm-nav-open .dm-nav { transform: none; visibility: visible; }
	.dm-nav-open { overflow: hidden; }
	.dm-nav-open .dm-burger__open { display: none; }
	.dm-nav-open .dm-burger__close { display: inline-flex; }
	.dm-nav__list { flex-direction: column; gap: 0; }
	.dm-nav__list a { display: block; font-family: var(--font-h); font-size: 22px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
	.dm-nav__list a::after { display: none; }
	.dm-nav__contacts { display: flex; flex-direction: column; gap: 14px; }
	.dm-nav__contacts a { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-2); font-weight: 600; font-size: 17px; }
}

/* ---------- Hero ---------- */
.dm-hero {
	position: relative; overflow: hidden; color: var(--ivory);
	background:
		radial-gradient(900px 500px at 85% 20%, rgba(196, 154, 82, .16), transparent 60%),
		linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}
.dm-hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; min-height: 600px; padding-top: 56px; padding-bottom: 72px; }
.dm-hero .dm-kicker { color: var(--gold-2); }
.dm-hero__title { font-size: clamp(38px, 5.4vw, 66px); font-weight: 600; line-height: 1.05; max-width: 12ch; }
.dm-hero__lead { margin-top: 20px; font-size: 18px; color: var(--muted-on-dark); max-width: 46ch; }
.dm-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.dm-hero__art { position: relative; height: 520px; }
.dm-arch {
	position: absolute; background: var(--paper); overflow: hidden;
	border-radius: 999px 999px var(--r-lg) var(--r-lg);
	box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.dm-arch img { width: 100%; height: 100%; object-fit: contain; padding: 14% 10% 8%; }
.dm-arch--1 { right: 0; top: 0; width: 64%; height: 100%; }
.dm-arch--2 { left: 0; bottom: 0; width: 44%; height: 66%; border: 6px solid var(--ink-2); }
.dm-hero__ring { position: absolute; left: 14%; top: 4%; width: 120px; height: 120px; border: 1px solid rgba(220, 184, 119, .5); border-radius: 50%; }

@media (max-width: 900px) {
	.dm-hero__in { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; padding-bottom: 48px; gap: 32px; }
	.dm-hero__lead { font-size: 16px; }
	.dm-hero__art { height: 380px; max-width: 460px; width: 100%; margin: 0 auto; }
	.dm-hero__cta .dm-btn { flex: 1 1 200px; }
}

/* ---------- Strip ---------- */
.dm-strip { background: var(--ivory-2); border-bottom: 1px solid var(--line); }
.dm-strip__in { display: grid; grid-template-columns: repeat(3, 1fr); }
.dm-strip__item { display: flex; gap: 16px; padding: 30px 24px; }
.dm-strip__item + .dm-strip__item { border-left: 1px solid var(--line); }
.dm-strip__num { font-family: var(--font-h); font-weight: 600; color: var(--gold-ink); font-size: 14px; letter-spacing: .1em; padding-top: 2px; }
.dm-strip__item strong { display: block; font-family: var(--font-h); font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.dm-strip__item p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) {
	.dm-strip__in { grid-template-columns: 1fr; }
	.dm-strip__item { padding: 20px 0; }
	.dm-strip__item + .dm-strip__item { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.dm-section { padding: 88px 0; }
.dm-section--tint { background: var(--ivory-2); }
.dm-section--top0 { padding-top: 0; }
.dm-head { margin-bottom: 36px; }
.dm-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .dm-section { padding: 56px 0; } .dm-head { margin-bottom: 24px; } }

/* ---------- Categories ---------- */
.dm-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dm-cat { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.dm-cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dm-cat__media { aspect-ratio: 4 / 3; background: var(--paper); display: flex; align-items: center; justify-content: center; }
.dm-cat__media img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.dm-cat__body { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 22px; border-top: 1px solid var(--line); }
.dm-cat__name { font-family: var(--font-h); font-weight: 600; font-size: 19px; }
.dm-cat__meta { font-size: 14px; color: var(--muted); white-space: nowrap; }
.dm-cat.is-soon .dm-cat__media { background: radial-gradient(circle at 50% 40%, var(--ink-3), var(--ink)); }
.dm-cat__mono { font-family: var(--font-h); font-size: 96px; font-weight: 600; color: transparent; -webkit-text-stroke: 1.5px var(--gold); line-height: 1; }
.dm-cat.is-soon .dm-cat__meta { color: var(--gold-ink); font-weight: 600; }
@media (max-width: 900px) { .dm-cats { grid-template-columns: 1fr; } .dm-cat { flex-direction: row; } .dm-cat__media { width: 38%; aspect-ratio: 1; flex: none; } .dm-cat__body { border-top: 0; border-left: 1px solid var(--line); flex-direction: column; justify-content: center; gap: 4px; } .dm-cat__mono { font-size: 56px; } }

/* ---------- Product grid & card ---------- */
.dm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .dm-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .dm-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.dm-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.dm-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.dm-card__media { display: block; aspect-ratio: 4 / 5; background: var(--paper); }
.dm-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .4s ease; }
.dm-card:hover .dm-card__media img { transform: scale(1.03); }
.dm-card__body { padding: 14px 16px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dm-card__title { font-size: 18px; font-weight: 600; }
.dm-card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.dm-card__more { margin-top: auto; padding-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--gold-ink); display: inline-flex; align-items: center; gap: 6px; }
.dm-card__more .dm-ico { transition: transform .2s; }
.dm-card:hover .dm-card__more .dm-ico { transform: translateX(3px); }
.dm-price { font-family: var(--font-h); font-weight: 600; font-size: 17px; color: var(--text); white-space: nowrap; }
.dm-price small { font-size: .72em; font-weight: 500; color: var(--muted); }
.dm-price--ask { font-size: 15px; color: var(--gold-ink); }
.dm-dots { display: inline-flex; align-items: center; }
.dm-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--paper); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); margin-left: -4px; }
.dm-dots i:first-child { margin-left: 0; }
.dm-dots em { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 4px; }
@media (max-width: 760px) {
	.dm-card__body { padding: 10px 12px 12px; }
	.dm-card__title { font-size: 15.5px; }
	.dm-price { font-size: 15px; }
	.dm-card__more { font-size: 12.5px; }
	.dm-card__more .dm-ico { display: none; }
}

/* ---------- Steps ---------- */
.dm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.dm-steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.dm-steps span { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; border: 1px solid var(--gold); color: var(--gold-ink); font-family: var(--font-h); font-weight: 600; margin-bottom: 18px; }
.dm-steps strong { display: block; font-family: var(--font-h); font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.dm-steps p { color: var(--muted); }
@media (max-width: 900px) { .dm-steps { grid-template-columns: 1fr; } .dm-steps li { padding: 22px; } }

/* ---------- Contact ---------- */
.dm-contact { background: var(--ink); color: var(--ivory); padding: 80px 0; }
.dm-contact .dm-kicker { color: var(--gold-2); }
.dm-contact__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.dm-contact__list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.dm-contact__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.dm-contact__list .dm-ico { color: var(--gold); margin-top: 4px; }
.dm-contact__list small { color: var(--muted-on-dark); font-size: 14px; }
.dm-contact__list a:hover { color: var(--gold-2); }
.dm-contact__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 900px) { .dm-contact { padding: 56px 0; } .dm-contact__in { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .dm-contact__actions { grid-template-columns: 1fr; } }

/* ---------- Page head, tabs ---------- */
.dm-pagehead { padding: 48px 0 32px; }
.dm-pagehead__lead { margin-top: 10px; color: var(--muted); max-width: 60ch; }
.dm-tabs { display: flex; gap: 8px; margin-top: 24px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.dm-tabs::-webkit-scrollbar { display: none; }
.dm-tabs a { flex: none; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 14.5px; font-weight: 500; }
.dm-tabs a:hover { border-color: var(--gold); }
.dm-tabs a.is-active { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.dm-empty { text-align: center; max-width: 520px; margin: 0 auto; padding: 48px 0; display: grid; gap: 14px; justify-items: center; }
.dm-empty p { color: var(--muted); }
.dm-pager .nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.dm-pager .page-numbers { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.dm-pager .page-numbers.current { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

/* ---------- Product page ---------- */
.dm-product { padding-top: 28px; }
.dm-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.dm-crumbs a:hover { color: var(--text); }
.dm-product__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.dm-gallery { position: sticky; top: calc(var(--hh) + 20px); }
.dm-gallery__main { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); aspect-ratio: 4 / 5; overflow: hidden; }
.dm-gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.dm-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.dm-thumb { width: 72px; height: 72px; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.dm-thumb img { width: 100%; height: 100%; object-fit: contain; }
.dm-thumb.is-active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.dm-buy__title { font-size: clamp(30px, 3.6vw, 42px); }
.dm-buy__price { margin-top: 12px; display: flex; align-items: baseline; gap: 8px; }
.dm-buy__price .dm-price { font-size: 28px; }
.dm-buy__unit { color: var(--muted); font-size: 14px; }
.dm-buy__lead { margin-top: 14px; color: var(--muted); font-size: 16.5px; }
.dm-order { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 18px; }
.dm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dm-swatches { border: 0; padding: 0; margin: 0; }
.dm-swatches legend { font-size: 15px; margin-bottom: 12px; padding: 0; }
.dm-swatches__list { display: flex; flex-wrap: wrap; gap: 10px; }
.dm-swatch { position: relative; cursor: pointer; }
.dm-swatch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.dm-swatch span { display: block; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .15s, transform .15s; }
.dm-swatch:hover span { transform: scale(1.06); }
.dm-swatch input:checked + span { outline-color: var(--gold); }
.dm-swatch input:focus-visible + span { outline-color: var(--text); }
.dm-note { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.dm-field { display: grid; gap: 6px; }
.dm-field label { font-size: 14px; font-weight: 500; }
.dm-field input, .dm-field textarea {
	width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
	transition: border-color .15s, box-shadow .15s;
}
.dm-field textarea { min-height: 0; resize: vertical; }
.dm-field input:focus, .dm-field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196, 154, 82, .18); }
.dm-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dm-field--qty { grid-template-columns: auto auto 1fr; align-items: center; gap: 14px; }
.dm-field--qty label { grid-column: 1 / -1; }
.dm-qty { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); overflow: hidden; }
.dm-qty button { width: 46px; height: 46px; border: 0; background: none; font-size: 20px; cursor: pointer; }
.dm-qty button:hover { background: var(--ivory-2); }
.dm-qty input { width: 56px; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; background: transparent; }
.dm-qty input::-webkit-outer-spin-button, .dm-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dm-total { color: var(--muted); }
.dm-total strong { color: var(--text); font-family: var(--font-h); }
.dm-order__msg { font-size: 15px; min-height: 1.4em; }
.dm-order__msg.is-ok { color: var(--ok); font-weight: 600; }
.dm-order__msg.is-error { color: var(--err); }
.dm-buy__alt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; font-size: 15px; color: var(--muted); }
.dm-buy__alt a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; }
.dm-buy__alt a .dm-ico { color: var(--gold-ink); }
.dm-buy__alt a:hover { color: var(--gold-ink); }
.dm-product__desc { margin-top: 56px; max-width: 760px; }
@media (max-width: 900px) {
	.dm-product__grid { grid-template-columns: 1fr; gap: 24px; }
	.dm-gallery { position: static; }
	.dm-gallery__main { aspect-ratio: 1; }
}
@media (max-width: 520px) { .dm-field-row { grid-template-columns: 1fr; } }

/* ---------- Prose ---------- */
.dm-prose { max-width: 760px; font-size: 17px; }
.dm-prose > * + * { margin-top: 1em; }
.dm-prose h2 { font-size: 26px; margin-top: 1.6em; }
.dm-prose h3 { font-size: 21px; margin-top: 1.4em; }
.dm-prose a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }
.dm-prose ul { padding-left: 1.2em; }
.dm-post + .dm-post { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }

/* ---------- Footer ---------- */
.dm-footer { background: #0f0e0c; color: var(--muted-on-dark); padding: 64px 0 0; font-size: 15px; }
.dm-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; }
.dm-footer__brand img { width: 190px; margin-bottom: 18px; }
.dm-footer__brand p { max-width: 34ch; }
.dm-footer__h { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 16px; }
.dm-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dm-footer__list a:hover { color: var(--ivory); }
.dm-footer__contacts a { display: inline-flex; gap: 10px; align-items: flex-start; }
.dm-footer__contacts .dm-ico { color: var(--gold); margin-top: 4px; }
.dm-footer__bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid var(--line-dark); font-size: 14px; }
.dm-footer__bottom a:hover { color: var(--ivory); }
@media (max-width: 900px) { .dm-footer__grid { grid-template-columns: 1fr; gap: 30px; } .dm-footer { padding-top: 48px; } }

/* ---------- Mobile bottom bar ---------- */
.dm-mbar { display: none; }
@media (max-width: 760px) {
	body { padding-bottom: 68px; }
	.dm-mbar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(22, 20, 18, .96); border-top: 1px solid var(--line-dark);
	}
	.dm-mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; font-weight: 600; color: var(--ivory); border: 1px solid rgba(255, 255, 255, .2); }
	.dm-mbar a.is-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* v1.1 */
.dm-card__size { font-size: 13px; color: var(--muted); margin-top: -2px; }
.dm-buy__size { margin-top: 10px; color: var(--muted); }
.dm-buy__size strong { color: var(--text); font-weight: 600; }
.dm-tabs--sub { margin-top: 10px; }
.dm-tabs--sub a { padding: 6px 14px; font-size: 13.5px; }
.dm-tabs--sub a.is-active { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.admin-bar .dm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .dm-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .dm-header { top: 0; } }

/* v1.2 */
.dm-card.is-cover .dm-card__media img, .dm-gallery__main.is-cover img { object-fit: cover; padding: 0; }
.dm-card.is-cover:hover .dm-card__media img { transform: scale(1.04); }
.dm-pnote { margin-top: 8px; font-size: 14px; color: var(--muted); }
.dm-partner { display: inline-block; margin-top: 12px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 13.5px; color: var(--muted); }
