/* =========================================================
   Маркет камня — стили
   Светлая тема: зелёные заголовки,
   акцент — тёплое золото/охра.
   ========================================================= */

:root, [data-theme="light"] {
  --bg: #F4F1EA;
  --bg-alt: #ECE7DC;
  --surface: #FFFFFF;
  --surface-2: #F8F6F1;
  --text: #1F2421;
  --muted: #6A6E67;
  --line: #DDD6C8;
  --head: #2C4636;
  --accent: #B5843A;
  --accent-soft: rgba(181, 132, 58, .12);
  --primary: #2C4636;
  --primary-hover: #223829;
  --primary-ink: #FFFFFF;
  --band: #1E2123;
  --band-2: #272A2D;
  --band-text: #ECE7DE;
  --band-muted: #A6A199;
  --header-bg: rgba(255, 255, 255, .94);
  --shadow: 0 1px 2px rgba(30, 35, 30, .05), 0 8px 24px rgba(30, 35, 30, .07);
  --danger: #A63D32;
  --ok: #3F7A4E;
  color-scheme: light;
}
/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, .serif {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  color: var(--head);
  line-height: 1.1;
  margin: 0;
  letter-spacing: .005em;
}
h1 { font-size: clamp(34px, 4.4vw, 54px); }
h2 { font-size: clamp(30px, 3.4vw, 44px); }
h3 { font-size: 24px; }
p { margin: 0 0 1em; }
em.acc, h1 em, h2 em { font-style: italic; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 48px 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section__head p { color: var(--muted); max-width: 520px; margin: 8px 0 0; }
.kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 10px; display: block; }
.link-more { font-weight: 600; color: var(--head); border-bottom: 1px solid var(--accent); padding-bottom: 2px; white-space: nowrap; }
.link-more:hover { color: var(--accent); }

/* Тёмная полоса (портфолио и т.п.) — всегда тёмная */
.band { background: var(--band); color: var(--band-text); }
.band h2, .band h3 { color: var(--band-text); }
.band .section__head p { color: var(--band-muted); }
.band .link-more { color: var(--band-text); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  background: var(--primary); color: var(--primary-ink);
  transition: background .2s, transform .1s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--accent); }
.btn--accent { background: var(--accent); color: #1B1D1F; }
.btn--accent:hover { filter: brightness(1.08); background: var(--accent); }
.btn--light { background: #F4F1EA; color: #1E2123; }
.btn--light:hover { background: #fff; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

.chip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }

.badge { display: inline-block; padding: 4px 9px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.badge--hit { background: var(--accent); color: #1B1D1F; }
.badge--sale { background: #A63D32; color: #fff; }
.badge--order { background: rgba(20, 22, 24, .78); color: #fff; backdrop-filter: blur(4px); }

.ico { width: 22px; height: 22px; flex: none; }

/* ---------- Шапка ---------- */
.topbar { background: var(--band); color: var(--band-muted); font-size: 13px; }
.topbar .container { display: flex; align-items: center; gap: 24px; min-height: 38px; }
.topbar__city { display: flex; align-items: center; gap: 6px; color: var(--band-text); }
.topbar__city svg { width: 15px; height: 15px; color: var(--accent); }
.topbar nav { display: flex; gap: 20px; }
.topbar nav a:hover, .topbar__phone:hover { color: var(--band-text); }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.topbar__phone { color: var(--band-text); font-weight: 700; font-size: 14px; }
.msg { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; }
.msg svg { width: 14px; height: 14px; }
.msg--wa { background: #2E8B57; }
.msg--max { background: #5B4BDB; }
.msg--tel { background: var(--accent); color: #1B1D1F; }
.msg:hover { filter: brightness(1.1); }

.header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header__main { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; flex: none; }

.catbtn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border-radius: 10px; background: var(--primary); color: var(--primary-ink); font-weight: 700; flex: none; }
.catbtn:hover { background: var(--primary-hover); }
.catbtn .burger { width: 18px; height: 12px; position: relative; }
.catbtn .burger::before, .catbtn .burger::after, .catbtn .burger i { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.catbtn .burger::before { top: 0; } .catbtn .burger i { top: 5px; } .catbtn .burger::after { top: 10px; }
.catbtn[aria-expanded="true"] .burger::before { transform: translateY(5px) rotate(45deg); }
.catbtn[aria-expanded="true"] .burger::after { transform: translateY(-5px) rotate(-45deg); }
.catbtn[aria-expanded="true"] .burger i { opacity: 0; }

.search { position: relative; flex: 1; min-width: 0; }
.search form { display: flex; height: 48px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; transition: border-color .2s; }
.search form:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px; outline: none; font-size: 15px; }
.search input::placeholder { color: var(--muted); }
.search button[type="submit"] { width: 54px; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); }
.search button[type="submit"]:hover { background: var(--primary-hover); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 60; display: none; max-height: 70vh; overflow: auto; }
.suggest.open { display: block; }
.suggest__item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; }
.suggest__item:hover, .suggest__item.active { background: var(--surface-2); }
.suggest__item img { width: 52px; height: 40px; border-radius: 6px; object-fit: cover; flex: none; }
.suggest__name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.suggest__name mark { background: var(--accent-soft); color: inherit; border-radius: 3px; }
.suggest__price { font-size: 13px; color: var(--muted); }
.suggest__all { display: block; padding: 10px 8px 6px; font-weight: 600; color: var(--head); border-top: 1px solid var(--line); margin-top: 4px; }
.suggest__empty { padding: 14px 10px; font-size: 14px; color: var(--muted); }
.suggest__empty a { color: var(--accent); font-weight: 600; }
.suggest__fix { padding: 6px 10px 2px; font-size: 12px; color: var(--muted); }

.hactions { display: flex; gap: 4px; flex: none; }
.hact { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; color: var(--text); min-width: 66px; }
.hact:hover { background: var(--surface-2); color: var(--head); }
.hact svg { width: 24px; height: 24px; }
.count { position: absolute; top: 0; right: 10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #1B1D1F; font-size: 11px; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.count:empty, .count[data-n="0"] { display: none; }

.mob-only { display: none !important; }
.hmob { display: none; align-items: center; gap: 6px; margin-left: auto; }
.hmob a, .hmob button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--text); }
.hmob a:hover, .hmob button:hover { background: var(--surface-2); }

/* Выпадающий каталог */
.megamenu { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; z-index: 55; }
.megamenu.open { display: block; animation: drop .18s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.megamenu__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 24px 0 28px; }
.mm-item { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; }
.mm-item:hover { background: var(--surface-2); }
.mm-item img { width: 76px; height: 58px; object-fit: cover; border-radius: 8px; flex: none; }
.mm-item b { display: block; font-size: 15px; color: var(--head); }
.mm-item span { font-size: 13px; color: var(--muted); }
.megamenu__foot { display: flex; gap: 18px; padding: 0 0 22px; font-size: 14px; flex-wrap: wrap; }
.megamenu__foot a { color: var(--muted); } .megamenu__foot a:hover { color: var(--accent); }

/* Мобильное меню */
.drawer { position: fixed; inset: 0; z-index: 90; display: none; }
.drawer.open { display: block; }
.drawer__bg { position: absolute; inset: 0; background: rgba(10, 12, 12, .55); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: var(--surface); padding: 20px; overflow: auto; animation: slidein .22s ease-out; display: flex; flex-direction: column; gap: 18px; }
.drawer__panel--left { right: auto; left: 0; animation-name: slideinl; }
@keyframes slidein { from { transform: translateX(100%); } }
@keyframes slideinl { from { transform: translateX(-100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__head h3 { font-size: 26px; }
.xbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); }
.drawer nav a { display: flex; justify-content: space-between; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--line); font-weight: 600; }
.drawer nav a small { color: var(--muted); font-weight: 500; }
.drawer__label { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; margin-top: 6px; }
.drawer__contacts { display: flex; flex-wrap: wrap; gap: 8px; }

/* Нижняя панель на телефоне */
.bottomnav { display: none; }

/* ---------- Хлебные крошки ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 22px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a:hover { color: var(--accent); }
.crumbs span::before { content: '/'; margin-right: 6px; opacity: .5; }
.crumbs a + a::before { content: '/'; margin-right: 6px; opacity: .5; }
.page-head { padding: 14px 0 28px; }
.page-head p { color: var(--muted); margin: 10px 0 0; max-width: 680px; }

/* ---------- Главная: слайдер ---------- */
.hero { padding: 24px 0 0; }
.hero__grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }
.slider { position: relative; border-radius: 18px; overflow: hidden; min-height: 460px; background: #222; isolation: isolate; touch-action: pan-y; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; display: flex; align-items: flex-end; pointer-events: none; }
.slide.active { opacity: 1; pointer-events: auto; }
.slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s ease-out; }
.slide.active .slide__bg { transform: scale(1); }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 13, 14, .82) 0%, rgba(12, 13, 14, .5) 50%, rgba(12, 13, 14, .1) 100%), linear-gradient(0deg, rgba(12, 13, 14, .55), transparent 55%); z-index: 1; }
.slide__body { position: relative; z-index: 2; padding: 48px 52px 64px; max-width: 640px; color: #F4F1EA; }
.slide__body .kicker { color: #D9B57A; }
.slide__body h2 { color: #F7F3EA; font-size: clamp(34px, 4.2vw, 56px); font-weight: 400; margin-bottom: 16px; }
.slide__body h2 em { color: #D9B57A; }
.slide__body p { color: rgba(244, 241, 234, .82); font-size: 17px; max-width: 480px; margin-bottom: 26px; }
.slider__nav { position: absolute; z-index: 3; right: 24px; bottom: 24px; display: flex; gap: 8px; }
.slider__nav button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(6px); }
.slider__nav button:hover { background: rgba(255, 255, 255, .26); }
.slider__dots { position: absolute; z-index: 3; left: 52px; bottom: 30px; display: flex; gap: 8px; }
.slider__dots button { width: 26px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); transition: width .3s, background .3s; }
.slider__dots button.active { width: 48px; background: #D9B57A; }

.advs { display: grid; grid-template-rows: repeat(3, 1fr); gap: 12px; }
.adv { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; }
.adv__ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.adv__ico svg { width: 22px; height: 22px; }
.adv b { display: block; font-size: 15px; color: var(--head); margin-bottom: 2px; }
.adv span { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; }


/* ---------- Категории ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; color: #F7F3EA; isolation: isolate; display: flex; align-items: flex-end; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 11, 12, .85) 0%, rgba(10, 11, 12, .25) 55%, rgba(10, 11, 12, .05) 100%); z-index: -1; }
.cat:hover img { transform: scale(1.06); }
.cat__body { padding: 22px 24px; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cat__name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 30px; line-height: 1.05; }
.cat__sub { font-size: 13px; color: rgba(247, 243, 234, .75); margin-top: 6px; }
.cat__meta { text-align: right; font-size: 13px; color: rgba(247, 243, 234, .8); white-space: nowrap; }
.cat__meta b { display: block; color: #D9B57A; font-size: 15px; }

/* ---------- Карточка товара в сетке ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.tabs button { padding: 8px 16px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); }
.tabs button.active { background: var(--primary); color: var(--primary-ink); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.pcard__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.pcard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.pcard__img .i1 { opacity: 0; }
.pcard:hover .pcard__img .i1 { opacity: 1; }
.pcard__badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; z-index: 2; }
.favbtn { position: absolute; right: 10px; top: 10px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: #2a2d2b; transition: transform .15s, color .2s, background .2s; }
.favbtn:hover { transform: scale(1.08); }
.favbtn svg { width: 20px; height: 20px; }
.favbtn.on { color: #C0453A; }
.favbtn.on svg path { fill: currentColor; }
.pcard__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.pcard__cat { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.pcard__name { font-weight: 700; font-size: 16px; line-height: 1.35; color: var(--head); }
[data-theme="light"] .pcard__name { color: var(--head); }
.pcard__name:hover { color: var(--accent); }
.pcard__chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pcard__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.price { font-weight: 800; font-size: 19px; color: var(--text); white-space: nowrap; }
.price small { font-weight: 600; font-size: 13px; color: var(--muted); }
.price-req { font-weight: 700; font-size: 15px; color: var(--muted); }

/* ---------- SEO-текст ---------- */
.seo { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.seo__text { columns: 2; column-gap: 32px; color: var(--muted); font-size: 15px; }
.seo__text p { break-inside: avoid; }

/* ---------- Отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.review__stars { color: var(--accent); letter-spacing: 2px; }
.review__text { font-size: 15px; margin: 0; flex: 1; }
.review__who { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.review__who b { color: var(--text); }
.ratings { display: flex; gap: 12px; flex-wrap: wrap; }
.rating { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.rating b { font-size: 20px; color: var(--head); }
.note { font-size: 12px; color: var(--muted); margin-top: 14px; }

/* ---------- Наши работы ---------- */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.works--home { grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: 260px; }
.works--home .work:first-child { grid-row: span 2; }
.work { position: relative; border-radius: 14px; overflow: hidden; cursor: zoom-in; isolation: isolate; min-height: 240px; display: flex; align-items: flex-end; background: #111; }
.work img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.work:hover img { transform: scale(1.05); }
.work::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 9, 10, .88), rgba(8, 9, 10, 0) 60%); z-index: -1; }
.work__cap { padding: 18px 20px; color: #F2EEE5; }
.work__cap b { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; font-weight: 500; }
.work__cap span { font-size: 13px; color: #D9B57A; }
.work__cap small { display: block; font-size: 12px; color: rgba(242, 238, 229, .6); }

/* ---------- CTA-полоса ---------- */
.cta { border-radius: 18px; padding: 36px 40px; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta h2 { font-size: clamp(28px, 3vw, 38px); }
.cta p { color: var(--muted); margin: 8px 0 0; }
.cta__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Подвал ---------- */
.footer { background: var(--band); color: var(--band-muted); padding: 56px 0 28px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.1fr .8fr .8fr 1.3fr; gap: 36px; }
.footer h4 { color: var(--band-text); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px; }
.footer a:hover { color: var(--band-text); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__phone { display: block; font-size: 22px; font-weight: 700; color: var(--band-text); margin: 18px 0 4px; }
.footer__msg { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.footer__map { border-radius: 14px; overflow: hidden; height: 230px; background: var(--band-2); }
.footer__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(.95); }
.footer__hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 12.5px; }
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }
.offer-note { font-size: 12px; color: var(--muted); }

/* ---------- Каталог ---------- */
.catalog { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; padding-bottom: 72px; }
.filters { position: sticky; top: 100px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px 18px 18px; max-height: calc(100vh - 120px); overflow: auto; }
.fgroup { border-bottom: 1px solid var(--line); padding: 14px 0; }
.fgroup:last-of-type { border-bottom: 0; }
.fgroup__title { font-weight: 700; font-size: 14px; margin-bottom: 10px; color: var(--head); }
.fopt { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; cursor: pointer; }
.fopt input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin: 0; }
.fopt span { flex: 1; }
.fopt small { color: var(--muted); font-size: 12px; }
.fopt.dim { opacity: .45; }
.frange { display: flex; gap: 8px; }
.input, .frange input, select.input, textarea.input {
  width: 100%; height: 44px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); outline: none; transition: border-color .2s; font-size: 15px;
}
.input:focus, .frange input:focus { border-color: var(--accent); }
textarea.input { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.filters__reset { margin-top: 10px; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar__count { color: var(--muted); font-size: 14px; }
.toolbar__right { display: flex; gap: 10px; align-items: center; }
.toolbar select { width: auto; height: 40px; padding: 0 34px 0 12px; font-size: 14px; }
.filters-btn { display: none; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.active-filters button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--text); font-size: 13px; font-weight: 600; }
.active-filters button::after { content: '×'; font-size: 16px; line-height: 1; opacity: .6; }
.empty { text-align: center; padding: 56px 24px; background: var(--surface); border: 1px dashed var(--line); border-radius: 16px; }
.empty h3 { margin-bottom: 10px; }
.empty p { color: var(--muted); max-width: 460px; margin: 0 auto 20px; }
.empty__btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cat-seo { margin-top: 40px; padding: 28px 32px; border-radius: 16px; background: var(--bg-alt); color: var(--muted); font-size: 15px; }
.cat-seo h2 { font-size: 28px; margin-bottom: 12px; }
.not-found-hint { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: 14px; border: 1px dashed var(--accent); background: var(--surface); flex-wrap: wrap; }
.not-found-hint p { margin: 0; }

/* ---------- Карточка товара ---------- */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; padding-bottom: 56px; align-items: start; }
.gallery { position: sticky; top: 100px; }
.gallery__main { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); cursor: zoom-in; touch-action: pan-y; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main .pcard__badges { left: 16px; top: 16px; }
.gallery__zoom { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .88); color: #222; display: grid; place-items: center; pointer-events: none; }
.gallery__arrows button { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .85); color: #222; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.gallery__main:hover .gallery__arrows button { opacity: 1; }
.gallery__arrows .prev { left: 14px; } .gallery__arrows .next { right: 14px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.gallery__thumbs button { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; opacity: .6; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .2s, outline-color .2s; }
.gallery__thumbs button.active { opacity: 1; outline-color: var(--accent); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery__note { font-size: 12px; color: var(--muted); margin-top: 10px; }

.pinfo h1 { font-size: clamp(30px, 3.2vw, 44px); margin-bottom: 12px; }
.pinfo__short { color: var(--muted); font-size: 16px; }
.pinfo__top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 6px 0 22px; }
.pinfo__from { font-size: 28px; font-weight: 800; }
.pinfo__from small { font-size: 15px; color: var(--muted); font-weight: 600; }
.pinfo__fav { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--muted); padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); }
.pinfo__fav:hover { color: var(--text); border-color: var(--accent); }
.pinfo__fav.on { color: #C0453A; border-color: #C0453A; }
.pinfo__fav.on svg path { fill: currentColor; }

.ptable { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.ptable__row { display: grid; grid-template-columns: 1fr 1.5fr 1fr 120px 136px; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.ptable--nouse .ptable__row { grid-template-columns: 1.4fr 1fr 120px 136px; }
.ptable--nouse .c-use { display: none; }
.ptable__row:first-child { border-top: 0; }
.ptable__row--head { background: var(--surface-2); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: 10px; padding-bottom: 10px; }
.ptable__row:not(.ptable__row--head):hover { background: var(--surface-2); }
.c-l { font-weight: 700; white-space: nowrap; }
.pinfo__fav { white-space: nowrap; }
.c-use { font-size: 14px; color: var(--muted); }
.c-p { font-weight: 800; white-space: nowrap; }
.c-p s { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }
.c-p .req { color: var(--muted); font-weight: 600; font-size: 14px; }
.ptable__row .btn { width: 100%; }
.ptable__row .btn.added { background: var(--ok); color: #fff; }

.stepper { display: flex; align-items: center; height: 40px; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.stepper button { width: 32px; height: 100%; display: grid; place-items: center; font-size: 18px; color: var(--muted); flex: none; }
.stepper button:hover { color: var(--text); background: var(--surface-2); }
.stepper input { width: 100%; min-width: 0; text-align: center; border: 0; background: transparent; outline: none; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__u { font-size: 12px; color: var(--muted); padding-right: 8px; }

.helpbox { margin-top: 16px; padding: 18px 20px; border-radius: 14px; background: var(--accent-soft); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.helpbox p { margin: 0; flex: 1 1 240px; font-weight: 600; }
.helpbox p span { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.helpbox .msgs { display: flex; gap: 8px; flex-wrap: wrap; }
.msgs .msg { height: 36px; padding: 0 14px; font-size: 13px; }
.msgs .msg svg { width: 16px; height: 16px; }

.specs { margin-top: 28px; }
.specs h3, .pdesc h3 { font-size: 26px; margin-bottom: 12px; }
.specs dl { margin: 0; display: grid; grid-template-columns: minmax(140px, auto) 1fr; }
.specs dt, .specs dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 15px; }
.specs dt { color: var(--muted); padding-right: 16px; }
.pdesc { margin-top: 28px; }
.pdesc p { color: var(--text); }
.ask { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Корзина ---------- */
.cart { display: grid; grid-template-columns: 1fr 420px; gap: 32px; align-items: start; padding-bottom: 72px; }
.cart__list { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.citem { display: grid; grid-template-columns: 88px 1fr 130px 120px 36px; gap: 16px; align-items: center; padding: 16px 18px; border-top: 1px solid var(--line); }
.citem:first-child { border-top: 0; }
.citem img { width: 88px; height: 66px; border-radius: 10px; object-fit: cover; }
.citem__name { font-weight: 700; line-height: 1.3; color: var(--head); }
.citem__name:hover { color: var(--accent); }
.citem__var { font-size: 14px; color: var(--muted); margin-top: 4px; }
.citem__sum { text-align: right; font-weight: 800; white-space: nowrap; }
.citem__sum small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.citem__del { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.citem__del:hover { background: var(--surface-2); color: var(--danger); }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px; border-top: 1px solid var(--line); background: var(--surface-2); gap: 12px; flex-wrap: wrap; }
.cart__total b { font-size: 26px; }
.cart__total p { margin: 0; font-size: 13px; color: var(--muted); flex-basis: 100%; }
.cart__clear { margin-top: 12px; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.order { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; position: sticky; top: 100px; }
.order h2 { font-size: 30px; margin-bottom: 6px; }
.order > p { color: var(--muted); font-size: 14px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field > span i { color: var(--danger); font-style: normal; }
.field.err .input { border-color: var(--danger); }
.field__err { font-size: 12px; color: var(--danger); margin-top: 4px; display: none; }
.field.err .field__err { display: block; }
.radios { display: flex; gap: 6px; flex-wrap: wrap; }
.radios label { flex: 1; }
.radios input { position: absolute; opacity: 0; pointer-events: none; }
.radios span { display: block; text-align: center; padding: 9px 8px; border-radius: 10px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; cursor: pointer; }
.radios input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.radios input:focus-visible + span { outline: 2px solid var(--accent); }
.consent { display: flex; gap: 10px; font-size: 13px; color: var(--muted); align-items: flex-start; margin: 6px 0 16px; cursor: pointer; }
.consent input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin: 1px 0 0; }
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.consent.err { color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.order__alt { text-align: center; font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.order__alt a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.thanks { text-align: center; max-width: 620px; margin: 0 auto; padding: 40px 0 88px; }
.thanks__ico { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin: 0 auto 22px; }
.thanks__ico svg { width: 36px; height: 36px; }
.thanks p { color: var(--muted); }

/* ---------- Текстовые страницы ---------- */
.prose { max-width: 820px; padding-bottom: 72px; }
.prose h2 { font-size: 32px; margin: 36px 0 14px; }
.prose h3 { margin: 26px 0 10px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose p, .prose li { color: var(--text); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0; }
.fact { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.fact b { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 40px; color: var(--accent); line-height: 1; margin-bottom: 6px; font-weight: 500; }
.fact span { font-size: 14px; color: var(--muted); }
.contacts { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; padding-bottom: 72px; }
.contacts__card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.contacts__card dl { display: grid; grid-template-columns: 130px 1fr; gap: 12px 16px; margin: 0; }
.contacts__card dt { color: var(--muted); font-size: 14px; }
.contacts__card dd { margin: 0; font-weight: 600; }
.contacts__map { border-radius: 16px; overflow: hidden; min-height: 420px; background: var(--bg-alt); }
.contacts__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }
.todo { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); letter-spacing: .04em; vertical-align: middle; }

/* ---------- Промо (акции) ---------- */
.promos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promo { position: relative; border-radius: 16px; overflow: hidden; min-height: 280px; color: #F4F1EA; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.promo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 11, 12, .9), rgba(10, 11, 12, .2)); z-index: -1; }
.promo h3 { color: #F7F3EA; font-size: 30px; margin-bottom: 8px; }
.promo h3 em { color: #D9B57A; }
.promo p { color: rgba(244, 241, 234, .8); font-size: 14px; }
.promo .kicker { color: #D9B57A; }

/* ---------- Плавающая кнопка связи ---------- */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab__main { width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: #1B1D1F; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .2s; }
.fab__main:hover { transform: scale(1.06); }
.fab__main svg { width: 26px; height: 26px; }
.fab__list { display: none; flex-direction: column; gap: 8px; align-items: flex-end; }
.fab.open .fab__list { display: flex; animation: drop .18s; }
.fab__list a { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.fab__list a svg { width: 20px; height: 20px; }

/* ---------- Переключатель темы ---------- */

/* ---------- Cookie ---------- */
.cookie { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 80; width: min(760px, calc(100% - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 16px 18px; display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--muted); }
.cookie p { margin: 0; }
.cookie a { color: var(--text); text-decoration: underline; }

/* ---------- Тост ---------- */
.toast { position: fixed; left: 50%; top: 90px; transform: translate(-50%, -20px); z-index: 95; background: var(--band); color: var(--band-text); padding: 14px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); display: flex; align-items: center; gap: 14px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #D9B57A; font-weight: 700; white-space: nowrap; }

/* ---------- Лайтбокс ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8, 9, 10, .94); display: none; align-items: center; justify-content: center; touch-action: pan-y; }
.lb.open { display: flex; animation: fade .2s; }
.lb img { max-width: 92vw; max-height: 82vh; border-radius: 10px; object-fit: contain; user-select: none; }
.lb__cap { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; color: #ECE7DE; font-size: 14px; padding: 0 60px; }
.lb__cap b { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; font-weight: 500; }
.lb button { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; }
.lb button:hover { background: rgba(255, 255, 255, .2); }
.lb__x { top: 18px; right: 18px; }
.lb__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb__n { position: absolute; top: 30px; left: 30px; color: rgba(255, 255, 255, .6); font-size: 14px; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero__grid { grid-template-columns: 1fr; }
  .advs { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
  .topbar nav { gap: 14px; }
  .hact { min-width: 58px; padding: 6px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .ptable__row { grid-template-columns: 1fr 1.2fr 1fr 110px 130px; }
}
@media (max-width: 1000px) {
  .topbar nav { display: none; }
  .catalog { grid-template-columns: 1fr; }
  .filters { display: none; }
  .filters.open { display: block; position: fixed; inset: 0; top: 0; z-index: 92; max-height: none; border-radius: 0; padding: 0 18px 90px; overflow: auto; }
  .filters__mhead { display: flex !important; position: sticky; top: 0; background: var(--surface); padding: 16px 0 10px; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); z-index: 2; }
  .filters__apply { display: block !important; position: fixed; left: 18px; right: 18px; bottom: 18px; }
  .filters-btn { display: inline-flex; }
  .product { grid-template-columns: 1fr; gap: 28px; }
  .gallery { position: static; }
  .cart { grid-template-columns: 1fr; }
  .order { position: static; }
  .seo { grid-template-columns: 1fr; gap: 20px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .works, .works--home { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .works--home .work:first-child { grid-row: span 1; grid-column: span 2; }
  .reviews { grid-template-columns: 1fr; }
  .promos { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
.filters__mhead, .filters__apply { display: none; }

@media (max-width: 760px) {
  body { font-size: 15px; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .topbar { display: none; }
  .header__main { min-height: 60px; gap: 10px; flex-wrap: wrap; padding: 8px 0 10px; }
  .catbtn, .hactions { display: none; }
  .hmob { display: flex; }
  .mob-only { display: initial !important; }
  .search { flex-basis: 100%; order: 3; }
  .search form { height: 44px; }
  .megamenu { display: none !important; }

  .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; background: var(--band); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .06); }
  .bottomnav a, .bottomnav button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--band-muted); padding: 4px 0; }
  .bottomnav a.active, .bottomnav button.active { color: #D9B57A; }
  .bottomnav svg { width: 24px; height: 24px; }
  .bottomnav .count { right: calc(50% - 24px); top: 0; }

  .fab { bottom: calc(82px + env(safe-area-inset-bottom)); right: 14px; }
  .fab__main { width: 52px; height: 52px; }
  .cookie { bottom: calc(80px + env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; }

  .hero { padding-top: 12px; }
  .slider { min-height: 440px; border-radius: 14px; }
  .slide__body { padding: 28px 22px 70px; }
  .slide__body p { font-size: 15px; }
  .slider__dots { left: 22px; bottom: 30px; }
  .slider__nav { right: 14px; bottom: 16px; }
  .slider__nav button { width: 38px; height: 38px; }
  .advs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .adv { padding: 12px; gap: 10px; flex-direction: column; }
  .adv__ico { width: 34px; height: 34px; }

  .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat { aspect-ratio: 1 / 1; border-radius: 12px; }
  .cat__body { padding: 14px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .cat__name { font-size: 22px; }
  .cat__sub { display: none; }
  .cat__meta { text-align: left; }

  .grid, .grid--3 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pcard { border-radius: 12px; }
  .pcard__body { padding: 12px; gap: 8px; }
  .pcard__name { font-size: 14px; }
  .pcard__cat { font-size: 10.5px; }
  .pcard__chips { display: none; }
  .pcard__foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .pcard__foot .btn { display: none; }
  .price { font-size: 16px; }
  .favbtn { width: 34px; height: 34px; right: 8px; top: 8px; }
  .favbtn svg { width: 17px; height: 17px; }
  .pcard__badges { left: 8px; top: 8px; }

  .seo__text { columns: 1; }
  .works, .works--home { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .works--home .work:first-child { grid-column: span 1; }
  .cta { grid-template-columns: 1fr; padding: 26px 22px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }

  .ptable__row--head { display: none !important; }
  .ptable__row, .ptable--nouse .ptable__row { grid-template-columns: 1fr auto; grid-template-areas: "l p" "u u" "q b"; gap: 8px 12px; padding: 14px; }
  .c-l { grid-area: l; } .c-use { grid-area: u; } .c-p { grid-area: p; text-align: right; } .c-q { grid-area: q; } .c-b { grid-area: b; }
  .c-p s { display: inline; margin-left: 6px; }
  .c-q .stepper { width: 140px; }

  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .gallery__arrows { display: none; }
  .specs dl { grid-template-columns: 1fr 1.3fr; }

  .citem { grid-template-columns: 72px 1fr auto; grid-template-areas: "i n d" "i q s"; gap: 10px 12px; padding: 14px; }
  .citem > a:first-child { grid-area: i; align-self: start; }
  .citem img { width: 72px; height: 72px; }
  .citem__info { grid-area: n; } .citem .stepper { grid-area: q; width: 140px; } .citem__sum { grid-area: s; } .citem__del { grid-area: d; align-self: start; }
  .order { padding: 20px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .contacts__card dl { grid-template-columns: 1fr; gap: 2px; }
  .contacts__card dd { margin-bottom: 10px; }
  .toast { top: auto; bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .grid, .grid--3 { gap: 8px; }
  .advs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Логотип «Маркет камня» и группы меню ---------- */
.logo__img { height: 52px; width: auto; border-radius: 6px; display: block; }
.footer .logo__img { height: 56px; }
.drawer__head .logo__img { height: 42px; }
.mm-group { padding-top: 18px; }
.mm-group + .mm-group { border-top: 1px solid var(--line); }
.mm-group__title { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.mm-group__title:hover { color: var(--head); }
.mm-group .megamenu__grid { padding: 12px 0 18px; }
@media (max-width: 760px) {
  .logo__img { height: 40px; }
  .hmob { gap: 2px; }
  .hmob a, .hmob button { width: 38px; }
}
@media (max-width: 360px) {
  .logo__img { height: 34px; }
}
@media (min-width: 1001px) {
  .cats--n4 { grid-template-columns: repeat(4, 1fr); }
  .cats--n4 .cat__name { font-size: 26px; }
  .cats--n2 { grid-template-columns: repeat(2, 1fr); }
  .cats--n2 .cat { aspect-ratio: 16 / 9; }
}

/* ---------- Правки 15.11: крупнее логотип и иконки, шапка закреплена на телефоне ---------- */
.logo__img { height: 60px; }
@media (max-width: 760px) {
  .header { position: fixed; top: 0; left: 0; right: 0; }
  .header__main { gap: 8px; }
  .logo__img { height: 50px; }
  .hmob { gap: 0; }
  .hmob a, .hmob button { width: 44px; height: 44px; }
  .hmob svg { width: 28px; height: 28px; }
}
@media (max-width: 370px) {
  .logo__img { height: 42px; }
  .hmob a, .hmob button { width: 40px; height: 40px; }
  .hmob svg { width: 26px; height: 26px; }
}

/* ---------- Каталог на главной (по эскизу заказчика) ---------- */
.gcats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gcat { position: relative; display: flex; align-items: flex-end; min-height: 200px; border-radius: 16px; overflow: hidden; isolation: isolate; color: #F7F3EA; }
.gcat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.gcat::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 11, 12, .86) 0%, rgba(10, 11, 12, .35) 60%, rgba(10, 11, 12, .1) 100%); }
.gcat:hover img { transform: scale(1.05); }
.gcat__body { padding: 20px 22px; width: 100%; }
.gcat__name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 28px; line-height: 1.05; }
.gcat__sub { font-size: 13px; color: rgba(247, 243, 234, .75); margin-top: 6px; }
.gcat__meta { margin-top: 10px; font-size: 13px; color: rgba(247, 243, 234, .8); display: flex; gap: 8px; align-items: baseline; }
.gcat__meta b { color: #D9B57A; font-size: 15px; }
@media (max-width: 760px) {
  .advs .adv--main { grid-column: auto; }
  .gcats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gcat { min-height: 0; aspect-ratio: 1 / 1; border-radius: 12px; }
  .gcat__body { padding: 12px; }
  .gcat__name { font-size: 19px; }
  .gcat__sub { display: none; }
  .gcat__meta { margin-top: 6px; font-size: 11.5px; flex-direction: column; gap: 0; }
  .gcat__meta b { font-size: 13px; }
}

/* ---------- 22.11: шапка на iPhone — закрываем полосу над ней, чтобы контент не просвечивал ---------- */
@media (max-width: 760px) {
  .header { background: #fff; padding-top: env(safe-area-inset-top, 0px); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 200px; background: #fff; pointer-events: none; }
}
/* ---------- 22.11: три преимущества на телефоне — одинаковые карточки в один ряд ---------- */
@media (max-width: 760px) {
  .advs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .adv { padding: 10px; gap: 8px; min-width: 0; }
  .adv__ico { width: 32px; height: 32px; }
  .adv__ico svg { width: 18px; height: 18px; }
  .adv b { font-size: 13px; line-height: 1.25; margin-bottom: 4px; -webkit-hyphens: auto; hyphens: auto; }
  .adv span { font-size: 11.5px; line-height: 1.35; -webkit-hyphens: auto; hyphens: auto; }
}
@media (max-width: 380px) {
  .advs { gap: 6px; }
  .adv { padding: 8px; }
  .adv b { font-size: 12px; letter-spacing: -.01em; }
  .adv span { font-size: 11px; }
}
