/* Komforts Mebel — стили сайта.
   Палитра бренда: слоновая кость #F8F5EF, песочный беж #E5D9CD, фирменный #A39182,
   какао #7B6557, оливковый #8B9279, графит #3D3A36. */

:root {
  --ivory: #F8F5EF;
  --sand: #E5D9CD;
  --sand-light: #EFE8DF;
  --brand: #A39182;
  --cocoa: #7B6557;
  --cocoa-dark: #67524A;
  --olive: #8B9279;
  --olive-dark: #66704F;
  --graphite: #3D3A36;
  --text: #3D3A36;
  --muted: #746B63;
  --line: #E7DFD5;
  --white: #FFFFFF;
  --danger: #9A3F2C;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(61, 58, 54, .08);
  --shadow-lg: 0 24px 60px rgba(61, 58, 54, .18);
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
  margin: 0; background: var(--ivory); color: var(--text);
  font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--cocoa); outline-offset: 2px; border-radius: 6px; }
.ic { flex: none; display: block; }

.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--graphite); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip-link:focus { left: 8px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 12px; border: 1.5px solid transparent;
  font: 600 14px/1 var(--sans); letter-spacing: .01em; white-space: nowrap;
  transition: background-color .18s, border-color .18s, color .18s, transform .1s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cocoa); color: #fff; }
.btn-primary:hover { background: var(--cocoa-dark); }
.btn-outline { background: transparent; border-color: var(--cocoa); color: var(--cocoa); }
.btn-outline:hover { background: var(--sand-light); }
.btn-ghost { background: var(--sand-light); color: var(--graphite); }
.btn-ghost:hover { background: var(--sand); }
.btn-light { background: var(--ivory); color: var(--graphite); }
.btn-light:hover { background: #fff; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; border-radius: 14px; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; padding: 0;
  border-radius: 12px; background: transparent; color: var(--graphite);
}
.icon-btn:hover { background: var(--sand-light); }

/* ---------- верхние полосы ---------- */
.announce { background: var(--olive-dark); color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 8px 16px; }
.topbar { background: var(--graphite); color: #D9CFC4; font-size: 12.5px; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 36px; }
.topbar-info, .topbar-links { display: flex; align-items: center; gap: 22px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar .ic { opacity: .75; }

/* ---------- шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 245, 239, .94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s;
}
.header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(61, 58, 54, .06); }
.header-row { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.burger { display: none; margin-left: -8px; }

.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo-mono { height: 46px; width: auto; }
.logo-text { display: flex; flex-direction: column; gap: 5px; }
.logo-word { height: 21px; width: auto; }
.logo-sub { font-size: 8.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--cocoa); line-height: 1; white-space: nowrap; }

.catalog-menu { position: relative; flex: none; }
.catalog-btn { height: 46px; padding: 0 18px; }
.catalog-panel {
  display: none; position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
  width: 320px; max-height: 70vh; overflow: auto; padding: 8px;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
}
.catalog-menu.open .catalog-panel { display: block; }
.catalog-panel a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 12px; font-size: 14.5px; }
.catalog-panel a:hover { background: var(--sand-light); }
.catalog-panel small { color: var(--muted); font-size: 12px; }
.catalog-panel-all { font-weight: 700; color: var(--cocoa); }

.search {
  flex: 1; min-width: 0; display: flex; height: 46px; background: #fff;
  border: 2px solid var(--brand); border-radius: 13px; overflow: hidden;
}
.search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 16px; background: transparent; font-size: 14.5px; }
.search input::placeholder { color: #9A9088; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search button { flex: none; width: 58px; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; transition: background-color .18s; }
.search button:hover { background: var(--cocoa); }
.search:focus-within { border-color: var(--cocoa); }
.search:focus-within button { background: var(--cocoa); }

.header-actions { display: flex; align-items: center; gap: 18px; flex: none; }
.hact { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--graphite); font-size: 11.5px; font-weight: 500; }
.hact:hover { color: var(--cocoa); }
.hact-ic { position: relative; display: block; }
.hact-phone { flex-direction: row; gap: 8px; }
.hact-phone-num { font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.fav-count {
  position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--cocoa); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center;
}

.catnav { border-top: 1px solid var(--line); }
.catnav-row { display: flex; gap: 26px; height: 44px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.catnav-row::-webkit-scrollbar { display: none; }
.catnav a { font-size: 13.5px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .15s; }
.catnav a:hover, .catnav a.active { color: var(--graphite); }
.catnav a.active { font-weight: 700; }

/* ---------- общие секции ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-title { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3vw, 42px); line-height: 1.05; color: var(--graphite); letter-spacing: -.005em; }
.section-title-lg { font-size: clamp(34px, 3.6vw, 50px); }
.section-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--cocoa); white-space: nowrap; }
.section-link:hover { color: var(--cocoa-dark); }
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--cocoa); margin-bottom: 14px; }
.page-title { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.08; }
.page-title-q { color: var(--cocoa); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--muted); margin: 20px 0 14px; }
.crumbs a:hover { color: var(--cocoa); }
.crumbs span:not([aria-current]) { opacity: .5; }
.crumbs [aria-current] { color: var(--graphite); }

.rich { font-size: 15px; line-height: 1.7; color: var(--text); }
.rich p + p, .rich p + ul, .rich ul + p { margin-top: 12px; }
.rich ul { margin: 0; padding-left: 20px; }
.rich li + li { margin-top: 4px; }
.rich h3 { font-family: var(--serif); font-size: 26px; margin: 24px 0 8px; }

/* ---------- главный баннер ---------- */
.hero { padding-top: 20px; }
.hero-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: stretch;
  background: var(--sand-light); border-radius: 30px; padding: 56px; min-height: 480px; overflow: hidden;
}
.hero-card::before {
  content: ""; position: absolute; left: -60px; bottom: -90px; width: 380px; height: 300px;
  background: url("../img/monogram.png") no-repeat center / contain; opacity: .05; pointer-events: none;
}
.hero-text { position: relative; display: flex; flex-direction: column; justify-content: center; }
.hero-title { font-family: var(--serif); font-weight: 600; font-size: clamp(42px, 5.2vw, 76px); line-height: .98; color: var(--graphite); letter-spacing: -.01em; }
.hero-sub { margin-top: 18px; font-size: 13.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--cocoa); }
.hero-rule { display: block; width: 64px; height: 1px; background: var(--cocoa); margin: 26px 0; opacity: .6; }
.hero-desc { font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 470px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-media { position: relative; min-height: 360px; }
.hero-media-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; position: absolute; inset: 0; }
.hero-collage { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.hero-collage img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 22px; }
.hc-a { grid-row: 1 / 3; }
.hc-badge {
  position: absolute; left: -30px; bottom: 34px; width: 92px; height: 92px; border-radius: 50%;
  background: var(--brand); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(61, 58, 54, .25);
  border: 5px solid var(--sand-light);
}
.hc-badge img { width: 50px; }

/* ---------- категории ---------- */
.section-cats { padding-bottom: 8px; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.cat-tile { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 14px; background: #fff; border-radius: 20px; transition: box-shadow .2s, transform .2s; }
.cat-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-tile-img { display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #fff; margin-bottom: 8px; }
.cat-tile-img img { width: 100%; height: 100%; object-fit: contain; }
.cat-tile-img .cat-tile-mono { width: 42%; height: auto; opacity: .55; }
.cat-tile-name { font-weight: 600; font-size: 14.5px; padding: 0 4px; }
.cat-tile-count { font-size: 12px; color: var(--muted); padding: 0 4px; }

/* ---------- каталог ---------- */
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.results-count { font-size: 14px; color: var(--muted); }
.sort { position: relative; }
.sort-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; font-weight: 600;
}
.sort-btn:hover { border-color: var(--brand); }
.sort-chev { transition: transform .2s; }
.sort.open .sort-chev { transform: rotate(180deg); }
.sort-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 230px; padding: 6px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
}
.sort.open .sort-menu { display: block; }
.sort-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 10px; font-size: 14px; }
.sort-menu a:hover { background: var(--sand-light); }
.sort-menu a.active { font-weight: 700; color: var(--cocoa); }

.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 20px; }
.catalog-results { min-width: 0; transition: opacity .2s; }
.catalog-results.loading { opacity: .45; pointer-events: none; }
.more-wrap { display: flex; justify-content: center; margin-top: 36px; }
.btn-more { min-width: 260px; }

/* карточка товара (как на маркетплейсах) */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #fff; }
.card-track {
  display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
}
.card-track::-webkit-scrollbar { display: none; }
.card-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: start; background: #fff; }
.fit-cover .card-track img { object-fit: cover; }
.noimg { flex: 0 0 100%; display: grid; place-items: center; background: var(--sand-light); }
.noimg img { width: 34%; opacity: .35; }
.card-dots { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; gap: 4px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.card-dots i { flex: 1; height: 3px; border-radius: 2px; background: rgba(61, 58, 54, .16); transition: background-color .15s; }
.card-dots i.on { background: var(--cocoa); }
.card:hover .card-dots { opacity: 1; }
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; pointer-events: none; }
.badge { display: inline-block; padding: 5px 9px; border-radius: 8px; font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: .02em; }
.badge-hit { background: var(--cocoa); color: #fff; }
.badge-new { background: #fff; color: var(--cocoa); box-shadow: inset 0 0 0 1px var(--sand); }
.badge-sale { background: var(--olive-dark); color: #fff; }
.fav-btn {
  position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .86); color: var(--graphite);
  transition: color .15s, transform .15s, background-color .15s;
}
.fav-btn:hover { color: var(--cocoa); background: #fff; }
.fav-btn:active { transform: scale(.9); }
[data-fav].active .ic { fill: var(--cocoa); stroke: var(--cocoa); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 2px 0; flex: 1; }
.card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price { font-size: 19px; font-weight: 700; color: var(--graphite); letter-spacing: -.01em; white-space: nowrap; }
.price-request { font-size: 16px; }
.price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; white-space: nowrap; }
.price-disc { font-size: 13px; font-weight: 700; color: var(--olive-dark); white-space: nowrap; }
.card-title {
  font-size: 14px; line-height: 1.38; color: var(--graphite); min-height: 2.76em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title:hover { color: var(--cocoa); }
.card-meta { font-size: 12.5px; }
.avail { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.avail-in_stock { color: var(--olive-dark); }
.avail-order { color: var(--cocoa); }
.avail-out { color: var(--muted); }
.card-btn { margin-top: 12px; height: 40px; width: 100%; font-size: 13.5px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 19px;
  background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; transition: all .15s;
}
.chip:hover { border-color: var(--brand); }
.chip.active { background: var(--graphite); border-color: var(--graphite); color: #fff; }

.catalog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.filters-toggle { display: none; }
.catalog-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 64px; }
.catalog-layout .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.filters { position: sticky; top: 140px; background: #fff; border-radius: 20px; padding: 20px; }
.filters-head { display: none; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.filters legend { font-size: 14px; font-weight: 700; margin-bottom: 10px; padding: 0; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-range label { position: relative; }
.price-range span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); pointer-events: none; }
.price-range input {
  width: 100%; height: 42px; padding: 0 8px 0 32px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--ivory); font-size: 14px; outline: 0; -moz-appearance: textfield;
}
.price-range input::-webkit-outer-spin-button, .price-range input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-range input:focus { border-color: var(--cocoa); background: #fff; }
.filters .check + .check { margin-top: 10px; }
.filters .btn + .btn { margin-top: 8px; }

.empty { text-align: center; padding: 64px 24px; background: #fff; border-radius: 24px; }
.empty img { margin: 0 auto 18px; opacity: .85; }
.empty h3 { font-family: var(--serif); font-size: 30px; font-weight: 600; margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 460px; margin: 0 auto 22px; }
.empty-404 { margin: 40px 0 64px; }
.empty-404 .page-title { margin-bottom: 8px; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.page-favorites .grid, .page-favorites .empty { margin: 20px 0 64px; }

/* ---------- преимущества ---------- */
.section-adv { padding-top: 24px; }
.adv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.adv { display: flex; gap: 16px; align-items: flex-start; padding: 24px; background: #fff; border-radius: 22px; }
.adv-ic { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--sand-light); color: var(--cocoa); }
.adv h3 { font-size: 15px; font-weight: 700; margin: 4px 0 6px; }
.adv p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ---------- о компании ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.about-text .section-title { margin-bottom: 22px; }
.about-text .rich { font-size: 16px; color: var(--muted); }
.about-visual { position: relative; height: 480px; }
.about-logo {
  position: absolute; left: 0; top: 0; width: 74%; height: 76%; border-radius: 28px;
  background: linear-gradient(150deg, #A39182 0%, #8F7C6C 100%); display: grid; place-items: center; padding: 8% 18% 18% 8%;
}
.about-logo img { width: 100%; max-width: 300px; }
.about-photo { position: absolute; object-fit: cover; border-radius: 22px; border: 6px solid var(--ivory); }
.about-photo-1 { right: 0; bottom: 0; width: 44%; height: 54%; }
.about-photo-2 { right: 4%; top: 8%; width: 26%; height: 30%; }

/* ---------- контакты ---------- */
.contacts-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; background: #fff; border-radius: 30px; padding: 48px; }
.contacts-info .section-title { margin-bottom: 28px; }
.contact-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list li > .ic { flex: none; width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: var(--sand-light); color: var(--cocoa); }
.contact-list small { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.contact-list a, .contact-list span { display: block; font-size: 15.5px; font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--cocoa); }
.contacts-form { background: var(--ivory); border-radius: 22px; padding: 30px; }
.contacts-form h3 { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.contacts-form > p { color: var(--muted); font-size: 14px; margin: 6px 0 18px; }
.inline-success { display: flex; gap: 14px; align-items: center; padding: 18px; background: #fff; border-radius: 16px; color: var(--olive-dark); }
.inline-success b { color: var(--graphite); }

/* ---------- мессенджеры ---------- */
.msgr { display: flex; flex-wrap: wrap; gap: 8px; }
.msgr-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--graphite); transition: border-color .15s, background-color .15s;
}
.msgr-btn:hover { border-color: var(--brand); }
.msgr-btn b { font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.msgr-wa .ic { color: #1FA855; }
.msgr-tg .ic { color: #2A9FD8; }
.msgr-max b { color: #5B4BE0; }
.msgr-vk b { color: #0077FF; }
.msgr-phone .ic { color: var(--cocoa); }
.msgr-compact .msgr-btn { width: 40px; padding: 0; justify-content: center; }
.msgr-compact .msgr-btn span { display: none; }
.msgr-footer { margin-top: 18px; }
.msgr-footer .msgr-btn { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .12); color: #EDE6DE; }
.msgr-footer .msgr-btn:hover { background: rgba(255, 255, 255, .14); }
.msgr-footer .msgr-btn .ic, .msgr-footer .msgr-btn b { color: #EDE6DE; }

/* ---------- подвал ---------- */
.footer { background: var(--graphite); color: #CFC5BA; padding: 56px 0 26px; margin-top: 40px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-logo img { width: 210px; height: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 280px; line-height: 1.6; }
.footer h4 { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-col a:hover { color: #fff; }
.footer-phone { font-size: 19px; font-weight: 700; color: #fff; }
.footer-contacts .btn { margin-top: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; color: #B3A99F; }
.footer-legal { white-space: pre-line; }

/* ---------- формы ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; }
.field > span i { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 12px 14px;
  font-size: 15px; outline: 0; transition: border-color .15s, box-shadow .15s;
}
.field input { height: 50px; }
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field textarea:focus { border-color: var(--cocoa); box-shadow: 0 0 0 4px rgba(123, 101, 87, .12); }
.field input.invalid { border-color: var(--danger); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--cocoa); }
.check a { text-decoration: underline; text-underline-offset: 2px; color: var(--cocoa); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #F7E9E4; color: var(--danger); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- модальное окно ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(40, 37, 34, .5); opacity: 0; transition: opacity .2s; }
.modal-dialog {
  position: relative; width: min(470px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; border-radius: 26px; padding: 34px 32px 28px; box-shadow: var(--shadow-lg);
  transform: translateY(16px); opacity: 0; transition: transform .22s, opacity .22s;
}
.modal.open .modal-backdrop { opacity: 1; }
.modal.open .modal-dialog { transform: none; opacity: 1; }
.modal-close { position: absolute; top: 12px; right: 12px; }
.modal-title { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.05; padding-right: 32px; }
.modal-lead { color: var(--muted); font-size: 14px; margin: 8px 0 18px; }
.order-product { display: flex; gap: 12px; align-items: center; background: var(--ivory); border-radius: 14px; padding: 10px; margin: 14px 0 18px; }
.order-product img { width: 60px; height: 60px; flex: none; object-fit: contain; background: #fff; border-radius: 10px; }
.order-product-name { font-size: 14px; font-weight: 600; line-height: 1.35; }
.order-product-price { font-size: 15px; font-weight: 700; margin-top: 2px; }
.order-alt { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
.order-alt > span { font-size: 13px; color: var(--muted); }
.order-alt-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.order-alt-row .msgr { justify-content: center; }
.order-success { text-align: center; padding: 18px 0 4px; }
.order-success .modal-title { padding: 0; }
.order-success p { color: var(--muted); margin: 10px 0 22px; }
.order-success-ic { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: var(--olive); color: #fff; display: grid; place-items: center; }

/* ---------- мобильное меню ---------- */
.drawer { position: fixed; inset: 0; z-index: 110; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(40, 37, 34, .45); opacity: 0; transition: opacity .22s; }
.drawer-panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(370px, 88vw); background: var(--ivory);
  overflow-y: auto; padding: 14px 16px 28px; transform: translateX(-100%); transition: transform .25s ease;
}
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer-nav { display: flex; flex-direction: column; background: #fff; border-radius: 18px; padding: 6px; margin-bottom: 12px; }
.drawer-nav a { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px; border-radius: 12px; font-size: 15px; }
.drawer-nav a:hover { background: var(--sand-light); }
.drawer-nav small { color: var(--muted); }
.drawer-contacts { display: flex; flex-direction: column; gap: 10px; padding: 8px 4px; font-size: 14px; color: var(--muted); }
.drawer-phone { font-size: 20px; font-weight: 700; color: var(--graphite); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translateX(-50%);
  background: var(--graphite); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-lg);
  max-width: calc(100% - 32px);
}

/* ---------- страница товара ---------- */
.pp-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) 340px;
  grid-template-areas: "gallery info buy"; gap: 36px; align-items: start; margin-bottom: 16px;
}
.pp-gallery { grid-area: gallery; display: flex; gap: 12px; min-width: 0; }
.pp-info { grid-area: info; min-width: 0; }
.pp-buy { grid-area: buy; position: sticky; top: 140px; }
.pp-thumbs { flex: none; display: flex; flex-direction: column; gap: 8px; width: 72px; max-height: 620px; overflow-y: auto; scrollbar-width: none; }
.pp-thumbs::-webkit-scrollbar { display: none; }
.pp-thumb { flex: none; width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 12px; background: #fff; overflow: hidden; transition: border-color .15s; }
.pp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.fit-cover .pp-thumb img { object-fit: cover; }
.pp-thumb:hover { border-color: var(--sand); }
.pp-thumb.active { border-color: var(--cocoa); }
.pp-main { position: relative; flex: 1; min-width: 0; aspect-ratio: 1; background: #fff; border-radius: 22px; overflow: hidden; }
.pp-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.pp-track::-webkit-scrollbar { display: none; }
.pp-slide { flex: 0 0 100%; height: 100%; padding: 0; border: 0; background: #fff; scroll-snap-align: start; cursor: zoom-in; }
.pp-slide img { width: 100%; height: 100%; object-fit: contain; }
.pp-noimg { display: grid; place-items: center; background: var(--sand-light); cursor: default; }
.pp-noimg img { width: 30%; height: auto; opacity: .45; }
.pp-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--graphite); box-shadow: var(--shadow);
  opacity: 0; transition: opacity .2s;
}
.pp-main:hover .pp-arrow { opacity: 1; }
.pp-arrow:disabled { opacity: 0 !important; pointer-events: none; }
.pp-prev { left: 14px; }
.pp-next { right: 14px; }
.pp-counter { position: absolute; right: 14px; bottom: 14px; background: rgba(61, 58, 54, .62); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 10px; }
.pp-dots { display: none; position: absolute; left: 0; right: 0; bottom: 14px; justify-content: center; gap: 6px; }
.pp-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(61, 58, 54, .2); }
.pp-dots i.on { background: var(--cocoa); }
.pp-badges { top: 14px; left: 14px; }
.pp-title { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 2.6vw, 38px); line-height: 1.08; }
.pp-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); margin: 12px 0 24px; }
.pp-meta b { color: var(--graphite); font-weight: 600; }
.pp-meta a { color: var(--cocoa); font-weight: 600; }
.pp-h { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.pp-about { margin-bottom: 14px; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--cocoa); margin-top: 6px; }
.link-more:hover { color: var(--cocoa-dark); }

.specs { margin: 0; }
.specs > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; font-size: 14px; line-height: 1.45; margin-bottom: 11px; break-inside: avoid; }
.specs dt { display: flex; align-items: baseline; color: var(--muted); min-width: 0; }
.specs dt span { flex: 0 1 auto; }
.specs dt::after { content: ""; flex: 1 1 12px; min-width: 12px; margin-left: 8px; border-bottom: 1px dotted #C9BEB2; transform: translateY(-4px); }
.specs dd { margin: 0; color: var(--graphite); word-break: break-word; }
.specs-full { column-count: 2; column-gap: 56px; }

.buy-card { display: flex; flex-direction: column; gap: 14px; background: #fff; border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
.price-xl { font-size: 34px; letter-spacing: -.02em; }
.buy-old { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.buy-old .price-old, .buy-old .price-disc { font-size: 15px; }
.buy-avail { font-size: 14px; }
.fav-wide { gap: 8px; }
.buy-help { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; }
.buy-help b { font-size: 14px; }
.buy-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.buy-phone:hover { color: var(--cocoa); }
.buy-phone .ic { color: var(--cocoa); }
.buy-hours { color: var(--muted); font-size: 12.5px; }

.pp-sections { max-width: 960px; margin-top: 24px; }
.pp-section { padding: 30px 0; border-top: 1px solid var(--line); }
.pp-section-title { font-family: var(--serif); font-weight: 600; font-size: 32px; margin-bottom: 18px; }
.pp-delivery-row { display: flex; gap: 18px; align-items: flex-start; background: #fff; border-radius: 20px; padding: 22px; }
.section-recs { padding-top: 32px; }
.grid-recs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mbar { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(28, 26, 24, .96); }
.lb-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; height: 100%; display: grid; place-items: center; padding: 56px 72px; scroll-snap-align: start; }
.lb-slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lb-close { position: absolute; top: 14px; right: 14px; z-index: 2; color: #fff; width: 48px; height: 48px; }
.lb-close:hover { background: rgba(255, 255, 255, .1); }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; }
.lb-arrow:hover { background: rgba(255, 255, 255, .2); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-counter { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: #fff; font-size: 14px; opacity: .8; }

.doc { background: #fff; border-radius: 26px; padding: 44px; margin-bottom: 64px; white-space: normal; }

/* ---------- адаптив ---------- */
@media (max-width: 1279px) {
  .grid, .grid-recs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .catalog-layout .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pp-grid { grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "gallery buy" "info buy"; column-gap: 32px; row-gap: 28px; }
  .hact-phone-num { display: none; }
  .header-actions { gap: 14px; }
}

@media (max-width: 1099px) {
  .adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { gap: 40px; }
  .contacts-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .callback-btn { display: none; }
}

@media (max-width: 959px) {
  :root { --header-h: 64px; }
  html { scroll-padding-top: 130px; }
  .topbar { display: none; }
  .burger { display: inline-grid; }
  .catalog-menu, .catnav, .hact-label { display: none; }
  .header-row { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 10px; gap: 8px 12px; }
  .logo { margin-right: auto; }
  .logo-mono { height: 38px; }
  .logo-word { height: 17px; }
  .logo-sub { font-size: 7.5px; }
  .search { order: 5; flex: 1 0 100%; height: 44px; }
  .header-actions { gap: 4px; }
  .hact { width: 42px; height: 42px; justify-content: center; }
  .hact-phone { flex-direction: column; }
  .grid, .grid-recs, .catalog-layout .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-card { grid-template-columns: 1fr; padding: 36px 28px 28px; gap: 28px; min-height: 0; }
  .hero-media { min-height: 0; height: 300px; }
  .hc-badge { left: auto; right: 18px; bottom: -14px; width: 76px; height: 76px; }
  .hc-badge img { width: 40px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters-toggle { display: inline-flex; }
  .filters { display: none; position: fixed; inset: 0; z-index: 115; border-radius: 0; overflow-y: auto; padding: 16px 20px 32px; }
  .filters.open { display: block; }
  .filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; font-size: 18px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { height: 380px; }
  .pp-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "info" "buy"; row-gap: 22px; }
  .pp-buy { position: static; }
  .pp-thumbs { display: none; }
  .pp-arrow { display: none; }
  .pp-counter { display: none; }
  .pp-dots { display: flex; }
  .specs-full { column-count: 1; }
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(61, 58, 54, .06);
  }
  .mbar-price { display: flex; flex-direction: column; line-height: 1.2; }
  .mbar-price b { font-size: 19px; }
  .mbar-price s { font-size: 12.5px; color: var(--muted); }
  .mbar .btn { flex: none; min-width: 150px; }
  .page-product .footer { padding-bottom: 96px; }
  .lb-slide { padding: 56px 8px; }
  .lb-arrow { display: none; }
}

@media (max-width: 639px) {
  body { font-size: 14.5px; }
  .container { padding: 0 14px; }
  .section { padding: 40px 0; }
  .grid, .grid-recs, .catalog-layout .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 10px; }
  .card-media { border-radius: 14px; }
  .price { font-size: 17px; }
  .card-title { font-size: 13px; }
  .card-btn { height: auto; min-height: 38px; padding: 6px 8px; font-size: 13px; line-height: 1.2; white-space: normal; text-align: center; }
  .fav-btn { width: 34px; height: 34px; top: 6px; right: 6px; }
  .card-dots { opacity: 1; left: 30%; right: 30%; bottom: 8px; }
  .hero { padding-top: 12px; }
  .hero-card { border-radius: 24px; padding: 28px 18px 18px; }
  .hero-title { font-size: 42px; }
  .hero-sub { font-size: 11.5px; letter-spacing: .18em; }
  .hero-rule { margin: 20px 0; }
  .hero-desc { font-size: 15px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-media { height: 230px; }
  .hero-collage { gap: 8px; }
  .hero-collage img { border-radius: 16px; }
  .cat-tiles { grid-auto-flow: column; grid-auto-columns: 132px; grid-template-columns: none; overflow-x: auto; margin: 0 -14px; padding: 0 14px 6px; scrollbar-width: none; }
  .cat-tiles::-webkit-scrollbar { display: none; }
  .adv-grid { grid-template-columns: 1fr; gap: 10px; }
  .adv { padding: 18px; }
  .about-visual { height: 300px; }
  .contacts-card { padding: 26px 18px; border-radius: 24px; gap: 28px; }
  .contact-list { grid-template-columns: 1fr; }
  .contacts-form { padding: 22px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .sort-btn span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .modal { padding: 0; place-items: end center; }
  .modal-dialog { width: 100%; border-radius: 24px 24px 0 0; padding: 28px 18px calc(20px + env(safe-area-inset-bottom)); max-height: 92vh; transform: translateY(40px); }
  .modal-title { font-size: 28px; }
  .pp-main { border-radius: 18px; margin: 0 -14px; border-radius: 0; }
  .pp-title { font-size: 28px; }
  .buy-card { padding: 20px 16px; border-radius: 20px; }
  .pp-section-title { font-size: 28px; }
  .specs > div { font-size: 13.5px; }
  .doc { padding: 26px 18px; }
}

@media (hover: none) {
  .card-dots { opacity: 1; }
}

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