:root {
	--ink: #16120e;
	--ink-2: #2a231c;
	--paper: #f6f2ec;
	--card: #ffffff;
	--line: #e7e0d6;
	--muted: #7d7368;
	--gold: #d9b36c;
	--gold-2: #b8914a;
	--green: #1f8a4c;
	--amber: #a8661a;
	--wa: #1fa855;
	--r: 18px;
	--top-h: 68px;
	--serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--sans: Manrope, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 70px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
	font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s, filter .15s, background .15s, color .15s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.98); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { filter: brightness(1.07); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #e4c283; }
.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }

/* шапка */
.top { position: sticky; top: 0; z-index: 50; background: rgba(22, 18, 14, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.top__in { display: flex; align-items: center; gap: 28px; height: var(--top-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(145deg, #2c241b, #1a1510); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(217, 179, 108, .35); }
.logo__mark svg { width: 24px; height: 24px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__text b { font-weight: 700; letter-spacing: .14em; font-size: 16px; }
.logo__text small { font-size: 11.5px; color: var(--gold); letter-spacing: .08em; }
.top__nav { display: flex; gap: 24px; margin-left: 16px; }
.top__nav a { color: rgba(255, 255, 255, .72); text-decoration: none; font-size: 14px; font-weight: 500; }
.top__nav a:hover { color: #fff; }
.top__contacts { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.top__phone { text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }

/* первый экран */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 78% 10%, #3a2c1b 0%, #1d1711 45%, var(--ink) 75%); color: #fff; }
.hero__glow { position: absolute; width: 640px; height: 640px; right: 6%; top: -260px; border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 214, 140, .38) 0%, rgba(255, 196, 110, .12) 38%, transparent 70%); filter: blur(10px); pointer-events: none; }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 84px; }
.hero__eyebrow { margin: 0 0 18px; color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.hero__title { margin: 0; font: 600 clamp(44px, 6vw, 78px)/.98 var(--serif); letter-spacing: -.01em; }
.hero__title em { font-style: italic; color: var(--gold); }
.hero__lead { max-width: 500px; margin: 22px 0 30px; color: rgba(255, 255, 255, .74); font-size: 17px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { display: flex; gap: 40px; margin: 44px 0 0; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats dt { font: 600 36px/1 var(--serif); color: #fff; }
.hero__stats dd { margin: 8px 0 0; color: rgba(255, 255, 255, .6); font-size: 13px; }

.hero__show { position: relative; height: 480px; }
.hero__item { position: absolute; margin: 0; background: #fff; border-radius: 22px; padding: 18px 18px 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06); color: var(--ink); animation: float 7s ease-in-out infinite; }
.hero__item img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.hero__item figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; font-size: 12.5px; }
.hero__item figcaption span { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.hero__item figcaption b { font-size: 15px; }
.hero__item--1 { width: 54%; left: 22%; top: 0; z-index: 2; }
.hero__item--2 { width: 38%; left: 0; top: 46%; animation-delay: -2.3s; }
.hero__item--3 { width: 38%; right: 0; top: 40%; animation-delay: -4.6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero__item { animation: none; } html { scroll-behavior: auto; } }

/* панель с вкладками */
.catalog { padding-bottom: 40px; }
.toolbar { position: sticky; top: var(--top-h); z-index: 40; background: rgba(246, 242, 236, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.toolbar__in { display: flex; align-items: center; gap: 14px; height: 74px; }
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: #ebe4da; flex: none; }
.tabs__btn { height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 15px/1 var(--sans); cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.tabs__btn span { margin-left: 4px; font-weight: 500; opacity: .7; font-size: 13px; }
.tabs__btn.is-on { background: var(--ink); color: #fff; box-shadow: 0 6px 14px rgba(22, 18, 14, .2); }
.search { position: relative; flex: 1; max-width: 420px; margin-left: auto; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; height: 46px; padding: 0 16px 0 42px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: 15px var(--sans); color: var(--ink); outline: none; }
.search input:focus { border-color: var(--gold-2); }
.sort { height: 46px; padding: 0 36px 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237d7368' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center;
	-webkit-appearance: none; appearance: none; font: 500 14px var(--sans); color: var(--ink); cursor: pointer; outline: none; }

/* карусель подкатегорий */
.cats { position: relative; margin-top: 28px; }
.cats__track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; }
.cats__track::-webkit-scrollbar { display: none; }
.cat { flex: 0 0 168px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 12px 14px; border: 1.5px solid transparent; border-radius: var(--r);
	background: var(--card); cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; box-shadow: 0 1px 2px rgba(22, 18, 14, .04); }
.cat:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22, 18, 14, .08); }
.cat.is-on { border-color: var(--ink); }
.cat__img { display: grid; place-items: center; width: 100%; aspect-ratio: 1.25; margin-bottom: 6px; border-radius: 12px; background: #f7f4ef; overflow: hidden; }
.cat__img img { width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.cat__img--all { background: var(--ink); color: var(--gold); }
.cat__img--all svg { width: 46%; height: 46%; }
.cat__name { font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.cat__cnt { font-size: 12.5px; color: var(--muted); }
.cats__arrow { position: absolute; top: 38%; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 6px 18px rgba(22, 18, 14, .16);
	font: 400 26px/1 var(--sans); color: var(--ink); cursor: pointer; display: grid; place-items: center; padding-bottom: 3px; transition: opacity .15s; }
.cats__arrow--prev { left: -16px; }
.cats__arrow--next { right: -16px; }
.cats__arrow[disabled] { opacity: 0; pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 500 13.5px var(--sans); color: var(--ink); cursor: pointer; }
.chip span { color: var(--muted); margin-left: 4px; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-on span { color: rgba(255, 255, 255, .6); }

/* список товаров */
.list-head { display: flex; align-items: baseline; gap: 14px; margin: 30px 0 16px; }
.list-head__title { margin: 0; font: 600 32px/1.1 var(--serif); }
.list-head__cnt { color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid.is-loading { opacity: .45; pointer-events: none; }
.card { position: relative; display: flex; flex-direction: column; padding: 14px 14px 16px; border-radius: var(--r); background: var(--card); box-shadow: 0 1px 2px rgba(22, 18, 14, .04); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 16px 36px rgba(22, 18, 14, .1); transform: translateY(-2px); }
.card__img { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; background: #fff; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: contain; }
.card__img.no-img { background: linear-gradient(160deg, #f7f3ec, #efe8dc); color: #c9b48c; }
.card__img.no-img svg { width: 38%; height: 38%; }
.card__img.no-img img { display: none; }
.card__img.no-img:not(:has(svg))::after { content: "Фото скоро"; color: var(--muted); font-size: 13px; }
.soon { max-width: 560px; margin: 50px auto 30px; padding: 40px 30px; text-align: center; background: #fff; border-radius: 22px; }
.soon h3 { margin: 0 0 10px; font: 600 30px/1.15 var(--serif); }
.soon p { margin: 0 0 22px; color: var(--muted); }
.badge { position: absolute; top: 22px; left: 22px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1; background: #fff; box-shadow: 0 2px 8px rgba(22, 18, 14, .08); }
.badge::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: currentColor; }
.badge--in { color: var(--green); }
.badge--order { color: var(--amber); }
.card__code { margin-top: 12px; font-size: 12px; color: var(--muted); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.card__code + .card__name { margin-top: 3px; }
.lb__code { font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.lb__code:empty { display: none; }
.card__name { margin: 12px 0 0; font-size: 14.5px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.9em; }
.card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.card__price { font-size: 19px; font-weight: 700; white-space: nowrap; }
.card__price--ask { font-size: 14px; font-weight: 600; color: var(--muted); }
.card__btn { height: 42px; padding: 0 18px; font-size: 14px; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }
.more { display: flex; justify-content: center; margin: 32px 0 10px; }
.skeleton { border-radius: var(--r); background: linear-gradient(100deg, #ece6dd 30%, #f5f1eb 50%, #ece6dd 70%) 0 0 / 200% 100%; animation: sk 1.2s linear infinite; aspect-ratio: .72; }
@keyframes sk { to { background-position: -200% 0; } }

/* призыв и подвал */
.cta { background: var(--ink); color: #fff; margin-top: 40px; }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 54px; padding-bottom: 54px; }
.cta h2 { margin: 0 0 8px; font: 600 38px/1.1 var(--serif); }
.cta p { margin: 0; color: rgba(255, 255, 255, .7); }
.foot { background: #0f0c09; color: rgba(255, 255, 255, .55); font-size: 13.5px; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; padding-bottom: 22px; }
.foot a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: none; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 26px rgba(31, 168, 85, .45); }
.fab svg { width: 30px; height: 30px; }

@media (max-width: 1100px) {
	.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.top__nav { display: none; }
}
@media (max-width: 860px) {
	:root { --top-h: 60px; }
	.wrap { padding: 0 16px; }
	.hero__in { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; gap: 26px; }
	.hero__show { height: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
	.hero__item { position: static; width: auto !important; padding: 10px; border-radius: 16px; animation: none; }
	.hero__item figcaption span { display: none; }
	.hero__item figcaption b { font-size: 13px; }
	.hero__stats { gap: 26px; margin-top: 30px; }
	.hero__stats dt { font-size: 30px; }
	.toolbar__in { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 8px; gap: 8px; }
	.tabs__btn { height: 38px; }
	.search input, .sort { height: 42px; }
	.sort { width: 42px; }
	.tabs { width: 100%; }
	.tabs__btn { flex: 1; padding: 0 10px; }
	.search { max-width: none; margin-left: 0; }
	.sort { flex: none; padding: 0; color: transparent; background-position: center; }
	.sort option { color: var(--ink); }
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.cats__arrow { display: none; }
	.cat { flex-basis: 132px; padding: 10px; }
	.cta__in { flex-direction: column; align-items: flex-start; }
	.cta h2 { font-size: 30px; }
	.top__phone { display: none; }
	.fab { display: grid; }
	.list-head__title { font-size: 26px; }
}
@media (max-width: 480px) {
	.top .btn--wa span { display: none; }
	.top .btn--wa { width: 40px; padding: 0; }
	.hero__title { font-size: 44px; }
	.hero__lead { font-size: 15.5px; }
	.hero__actions .btn { flex: 1; }
	.card { padding: 8px 8px 10px; border-radius: 14px; }
	.badge { top: 14px; left: 14px; font-size: 11px; padding: 4px 8px; }
	.card__name { font-size: 13px; margin-top: 8px; }
	.card__code { margin-top: 8px; font-size: 11px; }
	.card__bottom { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; }
	.card__price { font-size: 16px; }
	.card__price--ask { font-size: 12.5px; }
	.card__btn { height: 38px; width: 100%; }
	.cta__in .btn { width: 100%; }
}

/* увеличенное фото */
.card:has(.card__img img) { cursor: zoom-in; }
.card .card__btn { cursor: pointer; }
.card__img img { transition: transform .35s ease; }
.card:hover .card__img img { transform: scale(1.04); }
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(15, 12, 9, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .18s; }
.lb.is-on { opacity: 1; }
.lb__in { position: relative; width: min(860px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; transform: scale(.97); transition: transform .18s; }
.lb.is-on .lb__in { transform: none; }
.lb__img { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 28px 70px 10px; background: #fff; cursor: zoom-out; }
.lb__img img { display: block; max-width: 100%; max-height: calc(100vh - 210px); width: auto; height: auto; object-fit: contain; }
.lb__info { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px 20px; border-top: 1px solid var(--line); }
.lb__name { font-weight: 500; font-size: 15px; line-height: 1.35; }
.lb__price { margin-top: 4px; font-size: 22px; font-weight: 700; }
.lb__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f3efe9; font: 400 28px/1 var(--sans); color: var(--ink); cursor: pointer; }
.lb__nav { position: absolute; top: 50%; margin-top: -24px; z-index: 2; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(22, 18, 14, .18); font: 400 30px/1 var(--sans); color: var(--ink); cursor: pointer; padding-bottom: 4px; }
.lb__nav--prev { left: 12px; }
.lb__nav--next { right: 12px; }
@media (max-width: 600px) {
	.lb { padding: 10px; }
	.lb__img { padding: 52px 10px 6px; }
	.lb__img img { max-height: calc(100vh - 230px); }
	.lb__nav { width: 40px; height: 40px; margin-top: -20px; font-size: 24px; }
	.lb__nav--prev { left: 6px; }
	.lb__nav--next { right: 6px; }
	.lb__info { flex-direction: column; align-items: stretch; padding: 14px 16px 16px; }
	.lb__info .btn { width: 100%; }
}
@media (hover: none) { .card:hover .card__img img { transform: none; } }
