/* РИТИЗ — макеты сайта. Фирменный стиль: графит #1C1611, золото #CDA35C, бронза для текста #7A5A22; заголовки Lora, текст Montserrat */
@font-face { font-family: "Lora"; src: url("../fonts/lora-wght.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-700.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }

:root {
  --bg: #F6F3EE;
  --surface: #FFFFFF;
  --sand: #EFE8DE;
  --line: #E3DACE;
  --text: #1C1611;
  --muted: #6A5D51;
  --brand: #1C1611;
  --brand-700: #3A2F26;
  --brand-50: #F4EDE2;
  --accent: #7A5A22;
  --amber: #CDA35C;
  --amber-100: #F5EAD3;
  --ink: #1C1611;
  --deep: #1C1611;
  --ok: #2F6B3A;
  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(36, 26, 18, .06), 0 8px 24px rgba(36, 26, 18, .06);
  --wrap: 1240px;
  --tabbar: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 "Montserrat", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--brand-700); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1, h2 { font-family: "Lora", Georgia, serif; letter-spacing: 0; }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--amber); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.show-m { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .1s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #BF9248; color: var(--ink); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-s { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.hc-head button.link-more { border: 0; padding: 4px 0; color: var(--accent); background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.link-more:hover { text-decoration: underline; }

/* Шапка */
.topbar { background: var(--sand); font-size: 13px; color: var(--muted); }
.topbar .wrap { display: flex; align-items: center; gap: 24px; min-height: 36px; }
.topbar .sp { flex: 1; }
.topbar a { color: var(--text); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--accent); text-decoration: underline; }
.topbar .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); margin-right: 8px; vertical-align: middle; }

.header { transition: transform .25s ease; }
.header.hdr-hide { transform: translateY(-100%); }
.header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.2) blur(8px); 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; text-decoration: none; color: var(--text); flex: none; }
.logo img { height: 58px; width: auto; }
.logo:hover img { opacity: .85; }

.search { flex: 1; position: relative; min-width: 0; }
.search input { width: 100%; height: 48px; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 0 48px 0 44px; font-size: 15px; }
.search input::placeholder { color: #85776A; }
.search input:focus-visible { outline: 3px solid var(--brand); outline-offset: 0; background: #fff; }
.search .ico { position: absolute; left: 14px; top: 14px; color: var(--muted); }
.search kbd { position: absolute; right: 12px; top: 13px; font: 600 12px/20px "Montserrat"; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; background: #fff; }

.h-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.h-act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 72px; min-height: 52px; padding: 4px 8px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 12px; font-weight: 600; background: none; border: 0; cursor: pointer; position: relative; }
.h-act:hover { background: var(--bg); color: var(--accent); }
.h-act .ico { width: 22px; height: 22px; }
.badge { position: absolute; top: 2px; right: 14px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--amber); color: var(--ink); font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; }
.badge[data-zero] { display: none; }

.nav { border-top: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 4px; min-height: 48px; overflow-x: auto; scrollbar-width: none; }
.nav .wrap::-webkit-scrollbar { display: none; }
.nav a { flex: none; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; }
.nav a:hover { background: var(--bg); color: var(--accent); }
.nav .sep { flex: 1; min-width: 16px; }
.nav .nav-2 { color: var(--muted); font-weight: 500; }

/* Первый экран */
.hero { padding: 40px 0 32px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: stretch; }
.hero-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--brand-50); padding: 6px 12px; border-radius: 999px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.hero h1 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 600; margin: 18px 0 16px; }
.hero h1 span { color: var(--accent); }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero-note { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note .ico { color: var(--ok); width: 18px; height: 18px; }
/* Цифры — строкой показателей без рамок под первым экраном, чтобы не путались с плитками каталога */
.facts-wide { grid-template-columns: repeat(5, 1fr); margin-top: 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.facts-wide .fact { padding: 0 24px; }
.facts-wide .fact:first-child { padding-left: 0; }
.facts-wide .fact b { font-size: 28px; }
.facts-wide .fact span { font-size: 14px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.fact { padding: 0 16px; border-left: 1px solid var(--line); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact b { display: block; font-size: 24px; font-weight: 800; color: var(--accent); line-height: 1.1; letter-spacing: -.01em; }
.fact span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.35; }

/* Каталог в первом экране — отдельная панель с заголовком */
.hero-cats { background: var(--sand); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.hc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 2px 4px 0; }
.hc-head h2 { font-size: 18px; font-weight: 600; }
.hc-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(136px, 1fr); gap: 10px; }
.hc-tile { position: relative; background: #fff; border-radius: 14px; padding: 14px 14px 12px; overflow: hidden; display: flex; flex-direction: column; min-height: 132px; box-shadow: 0 1px 2px rgba(36, 26, 18, .06); transition: box-shadow .15s, transform .1s; }
.hc-tile:hover { box-shadow: 0 0 0 2px var(--brand), var(--shadow); }
.hc-tile:active { transform: scale(.98); }
.hc-tile h3 { font-size: 16px; font-weight: 800; position: relative; z-index: 2; }
.hc-tile h3 a { color: var(--text); text-decoration: none; }
.hc-tile h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hc-tile h3 a:focus-visible { outline: none; }
.hc-tile:has(h3 a:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.hc-tile p { font-size: 12px; color: var(--muted); margin-top: 2px; position: relative; z-index: 2; max-width: 100%; }
.hc-tile img { display: block; margin-top: auto; padding-top: 6px; align-self: flex-end; width: 62%; height: 58px; object-fit: contain; object-position: right bottom; mix-blend-mode: multiply; }
.hc-tile.big { grid-column: span 2; grid-row: span 2; background: linear-gradient(155deg, #fff 40%, var(--brand-50)); padding: 18px; }
.hc-tile.big h3 { font-size: 26px; }
.hc-tile.big p { font-size: 14px; }
.hc-tile.big img { flex: 1 1 0; width: 100%; height: 0; min-height: 120px; margin-top: 10px; padding: 0; object-position: center bottom; }
.hc-subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; position: relative; z-index: 3; }
.hc-subs a { font-size: 13px; font-weight: 700; color: var(--text); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }
.hc-subs a:hover { border-color: var(--accent); color: var(--accent); }
.hc-tile.order { background: var(--brand); justify-content: flex-end; }
.hc-tile.order:hover { background: var(--brand-700); box-shadow: var(--shadow); }
.hc-tile.order .ico { color: var(--amber); width: 26px; height: 26px; margin-bottom: auto; }
.hc-tile.order h3 a { color: #fff; }
.hc-tile.order p { color: #F1DFC9; max-width: none; }



/* Секции */
.section { padding: 56px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.sec-head h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; }
.sec-head p { color: var(--muted); margin-top: 8px; max-width: 640px; }


/* Товары */
.tabs { display: flex; gap: 6px; background: var(--sand); padding: 4px; border-radius: 12px; }
.tabs button { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; min-height: 40px; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: #CDBFAE; box-shadow: var(--shadow); }
.card .ph { --ph-x: 24px; --ph-y: 20px; aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; padding: var(--ph-y) var(--ph-x); border-bottom: 1px solid var(--line); position: relative; }
.card .ph img { position: absolute; inset: var(--ph-y) var(--ph-x); width: calc(100% - 2 * var(--ph-x)); height: calc(100% - 2 * var(--ph-y)); object-fit: contain; }
.card .tag { position: absolute; z-index: 1; left: 10px; top: 10px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--brand-50); color: var(--accent); }
.card .tag.ok { background: #E6F1E7; color: var(--ok); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .sku { font-size: 12px; color: var(--muted); font-weight: 600; }
.card h3 { font-size: 16px; font-weight: 700; line-height: 1.3; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--accent); text-decoration: underline; }
.card .price { font-size: 14px; color: var(--muted); margin-top: auto; padding-top: 6px; }
.card .price a { font-weight: 700; }
.buy { display: flex; gap: 8px; margin-top: 10px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); height: 44px; }
.qty button { width: 36px; height: 100%; border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--accent); border-radius: 10px; }
.qty button:hover { background: var(--brand-50); }
.qty button:active { transform: scale(.92); }
.qty input { width: 48px; height: 100%; border: 0; background: none; text-align: center; font-weight: 800; font-size: 15px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus-visible { outline-offset: -3px; }
.buy .btn { flex: 1; min-height: 44px; padding: 0 10px; font-size: 14px; }
.buy .btn.added { background: var(--ok); }
.preset { display: flex; gap: 6px; }
.preset button { border: 1px dashed #CDBFAE; background: none; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 8px; cursor: pointer; min-height: 28px; }
.preset button:hover { border-color: var(--accent); color: var(--accent); }

/* Частным лицам */
.private { display: flex; align-items: center; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-top: 28px; }
.private .qi { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--accent); flex: none; }
.private p { flex: 1; color: var(--muted); font-size: 15px; }
.private p b { color: var(--text); }

/* Как заказать */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; position: relative; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step b { display: block; font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); }
.docs { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.docs span { display: inline-flex; align-items: center; gap: 8px; }
.docs .ico { width: 18px; height: 18px; color: var(--accent); }

/* Производство */
.prod { background: var(--sand); }
.prod-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.prod-list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 14px; }
.prod-list li { display: flex; gap: 14px; align-items: flex-start; }
.prod-list .qi { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--accent); flex: none; }
.prod-list b { display: block; font-size: 16px; }
.prod-list span { font-size: 14px; color: var(--muted); }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 180px 180px; gap: 12px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; filter: saturate(.9) sepia(.1); }
.mosaic img:first-child { grid-column: span 2; grid-row: span 2; }

/* Доставка */
.deliv-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
.deliv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.deliv-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.deliv-facts div { background: var(--bg); border-radius: 12px; padding: 14px; }
.deliv-facts b { display: block; font-size: 22px; font-weight: 800; color: var(--accent); }
.deliv-facts span { font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 14px; font-weight: 600; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.chips .cty { background: var(--amber-100); border-color: #E5CFA0; }
.radius { position: relative; display: grid; place-items: center; min-height: 300px; background: radial-gradient(circle at 50% 50%, var(--amber-100) 0 18%, #F8F1E3 18% 38%, #FBF7EF 38% 62%, transparent 62%); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.radius .pin { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 13px; font-weight: 700; }
.radius .pin i { width: 14px; height: 14px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 6px rgba(96, 48, 0, .15); }
.radius .r-label { position: absolute; font-size: 12px; font-weight: 700; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; }
.radius .city { position: absolute; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.radius .city::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); outline: 2px solid #fff; }

/* Выставка */
.expo { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.expo-photos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.expo-photos img { border-radius: 12px; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.expo-photos .dip { grid-row: span 2; aspect-ratio: auto; object-fit: contain; background: var(--bg); padding: 10px; }
.expo .date { display: inline-flex; gap: 10px; align-items: center; background: var(--amber-100); border-radius: 12px; padding: 10px 14px; font-weight: 700; margin: 18px 0 22px; }
.expo .date .ico { color: var(--accent); }

/* Форма */
.req { background: var(--brand-50); border: 1px solid #E8D8C5; color: var(--text); border-radius: 24px; padding: 40px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
.req h2 { color: var(--text); font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; }
.req .lead { color: var(--muted); margin-top: 12px; }
.req-contacts { margin-top: 28px; display: grid; gap: 14px; }
.req-contacts a, .req-contacts div { color: var(--text); text-decoration: none; display: flex; gap: 12px; align-items: center; font-weight: 700; }
.req-contacts small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.req-contacts .qi { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--accent); flex: none; }
.req-contacts a:hover { color: var(--accent); }
.form { background: #fff; color: var(--text); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; }
.field label i { font-style: normal; color: #A3311B; }
.field input, .field textarea { width: 100%; border: 1px solid #CFC3B5; border-radius: 10px; background: #fff; padding: 11px 14px; font-size: 15px; min-height: 48px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--brand); outline-offset: 0; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: #A3311B; }
.field .hint { font-size: 13px; color: var(--muted); }
.field .err { font-size: 13px; color: #A3311B; font-weight: 600; }
.field .err:empty { display: none; }
.file { grid-column: 1 / -1; display: flex; flex-direction: row; align-items: center; gap: 10px; border: 1px dashed #CFC3B5; border-radius: 10px; padding: 12px 14px; font-size: 14px; color: var(--muted); cursor: pointer; }
.file:hover { border-color: var(--accent); color: var(--accent); }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); grid-column: 1 / -1; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.form .btn { grid-column: 1 / -1; }
.form-ok { grid-column: 1 / -1; background: #E6F1E7; color: var(--ok); border-radius: 10px; padding: 12px 14px; font-weight: 700; font-size: 14px; }
.form-ok.is-error { color: #882818; background: #fff0eb; }
.form-ok:empty { display: none; }

/* Подвал */
.footer { background: var(--deep); color: #D9C8B6; margin-top: 56px; padding: 48px 0 24px; font-size: 14px; }
.footer a { color: #F4EADF; text-decoration: none; }
.footer a:hover { color: var(--amber); text-decoration: underline; }
.f-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 32px; }
.footer h3 { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer .about { margin-top: 16px; max-width: 320px; line-height: 1.5; }
.f-contacts li small { display: block; color: #B7A491; font-size: 12px; }
.f-contacts li a { font-weight: 700; font-size: 15px; }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 20px; font-size: 13px; color: #B7A491; }

/* Заявка (панель) */
.drawer, .sheet { position: fixed; padding: 0; border: 0; color: var(--text); background: #fff; }
.drawer[open], .sheet[open] { display: flex; flex-direction: column; }
.drawer::backdrop, .sheet::backdrop { background: rgba(28, 22, 17, .45); }
html:has(.drawer[open], .sheet[open]) { overflow: hidden; }
@media (min-width: 761px) and (pointer: fine) { html { scrollbar-gutter: stable; } }
.drawer { inset: 0 0 0 auto; margin: 0; inline-size: min(440px, 100%); max-inline-size: 100%; block-size: 100dvh; max-block-size: 100dvh; box-shadow: -12px 0 40px rgba(28, 22, 17, .2); }
.ico-s { width: 14px; height: 14px; vertical-align: -2px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 20px; font-weight: 600; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: var(--bg); border-radius: 12px; cursor: pointer; color: var(--text); }
.icon-btn:hover { background: var(--brand-50); color: var(--accent); }
.drawer-body { flex: 1; overflow: auto; padding: 8px 20px; }
.d-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.d-item img { width: 64px; height: 52px; object-fit: contain; }
.d-item b { font-size: 14px; display: block; line-height: 1.3; }
.d-item small { color: var(--muted); font-size: 12px; }
.d-item .qty { height: 40px; }
.d-item .qty input { width: 40px; }
.d-empty { color: var(--muted); padding: 28px 0; text-align: center; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 10px; background: var(--bg); }
.d-total { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.d-total b { color: var(--text); }
.drawer-foot .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drawer-foot .btn { padding: 0 10px; font-size: 14px; white-space: nowrap; }
.drawer-status:empty { display: none; }
.drawer-status { font-size: 14px; font-weight: 600; }
.drawer-foot .hint { font-size: 12px; color: var(--muted); }

/* Меню каталога — панель снизу (открывается кнопкой «Каталог» в нижней панели телефона) */
.sheet { inset: auto 0 0; inline-size: min(100%, 640px); max-inline-size: 100%; max-block-size: 88dvh; margin: 0 auto; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(28, 22, 17, .2); }
.sheet-head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sheet-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; border-radius: 2px; background: var(--line); transform: translateX(-50%); }
.sheet-head h2 { font-size: 20px; font-weight: 600; }
.sheet-body { overflow: auto; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.cm-list { list-style: none; margin: 0; padding: 0; }
.cm-list li { padding: 8px 0 10px; border-bottom: 1px solid var(--line); }
.cm-cat { display: grid; grid-template-columns: 56px 1fr 20px; gap: 12px; align-items: center; min-height: 52px; color: var(--text); text-decoration: none; border-radius: 10px; }
.cm-cat img { width: 56px; height: 44px; object-fit: contain; mix-blend-mode: multiply; background: var(--bg); border-radius: 8px; padding: 4px; }
.cm-cat b { display: block; font-size: 16px; font-weight: 800; }
.cm-cat small { display: block; font-size: 13px; color: var(--muted); }
.cm-cat .ico { color: var(--muted); }
.cm-cat:active { background: var(--bg); }
.cm-subs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0 68px; }
.cm-subs a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; background: var(--bg); }
.cm-subs a:active { background: var(--brand-50); border-color: var(--accent); }
.cm-order { display: flex; gap: 12px; align-items: center; margin: 14px 0; padding: 12px 14px; border-radius: 14px; background: var(--brand); color: #fff; text-decoration: none; }
.cm-order .ico { color: var(--amber); width: 24px; height: 24px; }
.cm-order b { display: block; font-size: 15px; }
.cm-order small { display: block; font-size: 13px; color: #F1DFC9; }
.cm-order:is(:hover, :focus-visible, :active) { background: var(--brand-700); color: #fff; }
.cm-order:is(:hover, :focus-visible) b { text-decoration: underline; text-underline-offset: .18em; }
.cm-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; border-top: 1px solid var(--line); padding-top: 6px; }
.cm-links a { display: flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.cm-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.cm-contacts .btn { min-height: 44px; padding: 0 10px; font-size: 14px; white-space: nowrap; }

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

/* Уведомление о добавлении */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; padding: 12px 16px; border-radius: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 70; display: flex; gap: 12px; align-items: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { background: none; border: 0; color: var(--amber); font-weight: 800; cursor: pointer; padding: 4px; min-height: 32px; }

/* ---------- Шапка на ноутбуках и планшетах ---------- */
.tb-links { display: none; gap: 18px; }
@media (max-width: 1279px) {
  .tb-promo { display: none; }
  .tb-links { display: flex; }
  .nav .nav-2, .nav .sep { display: none; }   /* второе меню переезжает в верхнюю строку */
}
@media (max-width: 1180px) {
  .header-main { gap: 14px; }
  .logo img { height: 50px; }
  .h-act { min-width: 60px; }
}
@media (max-width: 960px) {
  .tb-hours { display: none; }
}
@media (max-width: 900px) {
  .tb-mail { display: none; }
}

/* ---------- Планшет ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .products { grid-template-columns: repeat(3, 1fr); }
  .prod-grid, .deliv-grid, .expo, .req { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Телефон: как приложение ---------- */
@media (max-width: 760px) {
  body { font-size: 15px; padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 16px; }
  .topbar { display: none; }
  .header { position: relative; }
  .hide-m { display: none; }
  .show-m { display: inline; }
  .header-main { min-height: 60px; gap: 10px; flex-wrap: wrap; padding: 8px 16px 10px; }
  .logo img { height: 46px; }
  .h-actions .h-hide-m { display: none; }
  .h-actions { margin-left: auto; }
  .h-act { min-width: 44px; padding: 4px; }
  .h-act .lbl { display: none; }
  .search { order: 3; flex-basis: 100%; }
  .search kbd { display: none; }
  .nav { display: none; }   /* на телефоне разделы — в нижней панели «Каталог» */

  .hero { padding: 20px 0 8px; }
  .hero h1 { margin: 14px 0 10px; }
  .hero .lead { font-size: 15px; }
  .hero-cta { flex-direction: column; margin: 20px 0 12px; }
  .hero-cta .btn { width: 100%; }
  .facts { grid-template-columns: 1fr 1fr; gap: 16px 0; margin-top: 20px; padding-top: 16px; }
  .fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .fact b { font-size: 20px; }
  .facts-wide { margin-top: 20px; padding: 18px 0; }
  .facts-wide .fact { padding: 0 12px; }
  .facts-wide .fact:nth-child(odd) { padding-left: 0; }
  .facts-wide .fact b { font-size: 21px; }
  .facts-wide .fact span { font-size: 13px; }
  .facts-wide { grid-template-columns: 1fr 1fr; }
  .facts-wide .fact:first-child { grid-column: 1 / -1; }
  .facts-wide .fact:nth-child(even) { padding-left: 0; border-left: 0; }
  .facts-wide .fact:nth-child(odd):not(:first-child) { padding-left: 12px; border-left: 1px solid var(--line); }
  .hero-cats { padding: 12px; border-radius: 18px; margin: 4px -4px 0; }
  .hc-head h2 { font-size: 16px; }
  .hc-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: auto; gap: 8px; }
  .hc-tile { min-height: 0; padding: 12px; }
  .hc-tile p { max-width: none; }
  .hc-tile img { position: static; width: 100%; height: 74px; margin-top: 8px; }
  .hc-tile.big { grid-column: 1 / -1; grid-row: auto; padding: 14px; }
  .hc-tile.big h3 { font-size: 22px; }
  .hc-tile.big img { position: static; width: 100%; height: 120px; margin-top: 10px; }
  .hc-tile.order { min-height: 120px; }


  .section { padding: 36px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 16px; }

  .tabs { width: 100%; overflow-x: auto; }
  .tabs button { flex: 1; white-space: nowrap; }
  .products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card .ph { --ph-x: 14px; --ph-y: 12px; }
  .card .body { padding: 10px 12px 12px; }
  .card h3 { font-size: 14px; }
  .card .price { font-size: 12px; }
  .preset { display: none; }
  .buy { flex-direction: column; }
  .qty { width: 100%; justify-content: space-between; }
  .qty button { width: 44px; }
  .private { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .private .btn { width: 100%; }

  .steps { grid-template-columns: 1fr; gap: 10px; }
  .step { display: grid; grid-template-columns: 36px 1fr; gap: 0 14px; padding: 16px; }
  .step::before { margin: 0; grid-row: span 2; }
  .mosaic { grid-template-rows: 120px 120px; gap: 8px; }
  .deliv-facts { grid-template-columns: 1fr; }
  .deliv-card { padding: 18px; }
  .radius { min-height: 240px; }
  .expo { padding: 18px; gap: 20px; }
  .req { padding: 24px 16px; border-radius: 18px; gap: 24px; margin: 0 -4px; }
  .form { grid-template-columns: 1fr; padding: 18px; }
  .f-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer { padding-bottom: 32px; }

  .drawer { top: auto; height: 86dvh; width: 100%; border-radius: 20px 20px 0 0; }
  .drawer-head { position: relative; }
  .drawer-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; border-radius: 2px; background: var(--line); transform: translateX(-50%); }

  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--muted); text-decoration: none; background: none; border: 0; position: relative; cursor: pointer; }
  .tabbar .ico { width: 24px; height: 24px; }
  .tabbar [aria-current="page"] { color: var(--accent); }
  .tabbar a:active, .tabbar button:active { background: var(--bg); }
  .tabbar .badge { top: 6px; right: calc(50% - 22px); }
  .toast { bottom: calc(var(--tabbar) + 12px + env(safe-area-inset-bottom)); width: calc(100% - 32px); justify-content: space-between; }
}

@media (hover: none) {
  .nav a:active { background: var(--brand-50); }
}

@media (max-width: 360px) {
  .logo img { height: 40px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .hc-grid { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
}

/* Фирменные шрифты: Montserrat шире прежнего шрифта — подгонка плотных мест; цифры — Lora */
body { letter-spacing: -.01em; }
.topbar { font-size: 12.5px; }
.topbar .wrap { gap: 20px; }
.topbar .wrap > * { white-space: nowrap; }
.nav a { font-size: 14px; padding: 8px 10px; }
.fact b, .deliv-facts b { font-family: "Lora", Georgia, serif; font-weight: 600; letter-spacing: 0; }
@media (min-width: 1101px) { .facts.facts-wide { grid-template-columns: repeat(5, 1fr); } .facts-wide .fact { padding: 0 18px; } }
