@font-face { font-family: "Manrope"; src: url("fonts/manrope-cyrillic.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-cyrillic.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Палитра: тёплый светлый фон, почти чёрный текст с зелёным оттенком, бирюзовый акцент из логотипа */
:root {
  --bg: #f4f5f2;
  --surface: #fff;
  --tile: #eceeea;
  --tile-hover: #e4e7e2;
  --ink: #0e1a1b;
  --ink-2: #3b4a4b;
  --muted: #6d7b7b;
  --line: #e1e5e0;
  --accent: #0c9488;
  --accent-dark: #0a6f67;
  --accent-soft: #e2f3ef;
  --mint: #b6f2d6;
  --deep: #0d2325;
  --ok: #12754a;
  --ok-bg: #e0f4e8;
  --wait: #b47a12;
  --wait-bg: #fdf1d8;
  --off: #7a8585;
  --err: #c0322b;
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 27, .04), 0 6px 18px rgba(14, 26, 27, .05);
  --shadow: 0 2px 6px rgba(14, 26, 27, .05), 0 22px 50px rgba(14, 26, 27, .12);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: clip; margin: 0; font: 500 16px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; text-wrap: balance; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.35rem); }
h2 { font-size: clamp(1.3rem, 1.12rem + .8vw, 1.7rem); }
p { margin: 0 0 1em; }
b, strong { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
::selection { background: var(--mint); color: var(--ink); }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 940px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: var(--pill); }
.eyebrow { display: inline-block; margin-bottom: 14px; font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-dark); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 9px 22px; border: 1.5px solid #cfd6d0; border-radius: var(--pill); background: transparent; color: var(--ink); font-weight: 650; cursor: pointer; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s; }
.btn:hover { border-color: var(--ink); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-mint { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.btn-mint:hover { background: #fff; border-color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-lg { min-height: 54px; padding: 12px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-icon { width: 46px; padding: 0; }
.btn-link { border: 0; background: none; color: var(--muted); font-weight: 600; padding-inline: 8px; }
.btn-link:hover { color: var(--err); }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
.link-more, .link-pill { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 650; font-size: .95rem; white-space: nowrap; }
.link-more svg { transition: transform .3s var(--ease); }
.link-more:hover { text-decoration: none; color: var(--accent-dark); }
.link-more:hover svg { transform: translateX(4px); }

/* Шапка */
.topbar { color: var(--muted); font-size: .82rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding-block: 10px 6px; }
.topbar-links { display: flex; gap: 22px; white-space: nowrap; }
.topbar a { color: var(--ink-2); font-weight: 600; }
.topbar a:hover { color: var(--accent-dark); text-decoration: none; }
.header { position: sticky; top: 0; z-index: 30; padding-block: 6px; }
.header-in { position: relative; display: flex; align-items: center; gap: 18px; padding: 10px 12px 10px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); box-shadow: var(--shadow-sm); }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.logo:hover { text-decoration: none; }
.logo-mark { display: block; flex-shrink: 0; }
.logo img { width: 40px; height: auto; }
.logo-text { display: flex; flex-direction: column; gap: 3px; line-height: 1.1; }
.logo-word { font-family: var(--display); font-size: 1.16rem; font-weight: 500; letter-spacing: -.01em; line-height: 1; }
.logo-word i { font-style: normal; color: var(--accent); }
.logo-text small { font-size: .68rem; color: var(--muted); font-weight: 600; letter-spacing: .01em; }
.search { flex: 1; display: flex; align-items: center; position: relative; min-width: 0; }
.search-icon { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 46px; text-overflow: ellipsis; padding: 0 52px 0 46px; border: 1.5px solid transparent; border-radius: var(--pill); background: var(--bg); transition: background .2s, border-color .2s, box-shadow .2s; }
.search input:focus { border-color: var(--ink); background: #fff; outline: 0; }
.search input::-webkit-search-cancel-button { display: none; }
.search button { position: absolute; right: 5px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: opacity .2s, transform .25s var(--ease), background .2s; }
.search input:focus ~ button, .search input:not(:placeholder-shown) ~ button { opacity: 1; transform: none; }
.search button:hover { background: var(--accent-dark); }
.search-inline { margin: 20px auto; }
.header-phone { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; white-space: nowrap; }
.header-phone a { color: var(--ink); font-size: 1.02rem; }
.header-phone a:hover { text-decoration: none; color: var(--accent-dark); }
.header-phone b { font-weight: 700; }
.header-phone button { border: 0; background: none; padding: 0; color: var(--muted); font-size: .8rem; font-weight: 600; cursor: pointer; }
.header-phone button:hover { color: var(--accent-dark); }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: var(--pill); color: var(--ink); font-weight: 650; white-space: nowrap; transition: border-color .2s, background .2s, color .2s; }
.cart-link:hover { border-color: var(--ink); text-decoration: none; }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ink); color: #fff; font-size: .76rem; font-weight: 700; display: grid; place-items: center; }
.cart-count.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }
.search-toggle { display: none; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink); cursor: pointer; flex-shrink: 0; }
.search-toggle[aria-expanded=true] { background: var(--ink); color: #fff; }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--bg); cursor: pointer; position: relative; flex-shrink: 0; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 13px; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); content: ""; transition: transform .3s var(--ease), opacity .2s; }
.burger span { top: 22px; }
.burger span::before { left: 0; top: -6px; }
.burger span::after { left: 0; top: 6px; }
.burger[aria-expanded=true] span { background: transparent; }
.burger[aria-expanded=true] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded=true] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Выпадающий каталог: слева разделы, справа — подразделы и товары выбранного раздела */
.nav-item { align-self: stretch; display: flex; align-items: center; margin-block: -10px; padding-block: 10px; }
.nav-all { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px 0 16px; border-radius: var(--pill); background: var(--ink); color: #fff; font-weight: 650; white-space: nowrap; transition: background .2s; }
.nav-all:hover, .nav-item.is-open .nav-all { background: var(--accent-dark); color: #fff; text-decoration: none; }
.mega { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 5; display: none; grid-template-columns: 310px minmax(0, 1fr); padding: 10px; border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow); }
.mega::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.nav-item:hover .mega, .nav-item.is-open .mega, .nav-item:focus-within .mega { display: grid; animation: mega-in .3s var(--ease); }
@keyframes mega-in { from { opacity: 0; transform: translateY(8px); } }
.mega-list { display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: var(--r-lg); background: var(--bg); }
.mega-tab { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px; padding: 6px 14px 6px 6px; border-radius: var(--r-md); color: var(--ink); font-size: .92rem; font-weight: 600; line-height: 1.25; transition: background .2s, box-shadow .2s; }
.mega-tab:hover { text-decoration: none; }
.mega-tab img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: #fff; }
.mega-tab small { color: var(--muted); font-size: .78rem; font-weight: 600; }
.mega-tab.is-active { background: #fff; box-shadow: var(--shadow-sm); }
.mega-panes { min-width: 0; padding: 12px 14px 6px 26px; }
.mega-pane { display: none; flex-direction: column; gap: 14px; height: 100%; }
.mega-pane.is-active { display: flex; }
.mega-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.mega-head b { font-size: 1.2rem; letter-spacing: -.02em; }
.mega-head a { font-size: .88rem; font-weight: 650; white-space: nowrap; }
.mega-subs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 4px 10px; align-items: start; }
.mega-sub-main { display: flex; align-items: center; gap: 12px; padding: 7px; border-radius: var(--r-md); color: var(--ink); font-size: .9rem; font-weight: 650; line-height: 1.25; transition: background .2s; }
.mega-sub-main:hover { background: var(--bg); text-decoration: none; }
.mega-sub-main img { flex-shrink: 0; width: 60px; height: 42px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; object-fit: contain; }
.mega-sub-main small { display: block; color: var(--muted); font-size: .78rem; font-weight: 500; }
.mega-sub-kid { display: block; padding: 3px 8px 3px 79px; color: var(--ink-2); font-size: .85rem; line-height: 1.35; }
.mega-sub-kid:hover { color: var(--accent-dark); text-decoration: none; }
.mega-prods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mega-prod { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r-md); background: var(--bg); color: var(--ink); font-size: .82rem; font-weight: 600; line-height: 1.3; transition: background .2s; }
.mega-prod:hover { background: var(--tile-hover); text-decoration: none; }
.mega-prod img { flex-shrink: 0; width: 52px; height: 52px; border-radius: 10px; background: #fff; object-fit: contain; padding: 4px; }
.mega-prod span { min-width: 0; }
.mega-prod b { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mega-prod small { display: block; color: var(--muted); font-size: .76rem; font-weight: 500; }
/* в разделе без подразделов товары показываем крупно — они занимают всё окно меню */
.mega-prods-lg { gap: 10px; }
.mega-prods-lg .mega-prod { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 8px 12px; }
.mega-prods-lg .mega-prod img { width: 100%; height: 104px; padding: 8px; border-radius: 12px; }
.mega-prods-lg .mega-prod span { padding-inline: 4px; }
.mega-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--ink-2); font-size: .88rem; }
.mega-foot button { border: 0; background: none; padding: 0; color: var(--accent-dark); font-weight: 700; white-space: nowrap; cursor: pointer; }
.mega-foot button:hover { text-decoration: underline; }
.nav { display: none; }

/* Главная */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(28px, 4vw, 52px) clamp(24px, 3vw, 36px); }
.hero::before { content: ""; position: absolute; left: -12%; top: -30%; width: 60%; height: 120%; background: radial-gradient(closest-side, rgba(182, 242, 214, .55), transparent); z-index: -1; pointer-events: none; }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.04; letter-spacing: -.04em; margin-bottom: .45em; }
.hero p { font-size: 1.08rem; color: var(--ink-2); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-tiles { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: clamp(320px, 34vw, 440px); }
.hero-tile { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--tile); }
.hero-tile:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
.hero-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .8s var(--ease); }
.hero-tile:hover img { transform: scale(1.05); }
.hero-tile-label { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--pill); background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ink); font-size: .86rem; font-weight: 650; line-height: 1.2; }
.hero-tile-label svg { flex-shrink: 0; transition: transform .3s var(--ease); }
.hero-tile:hover .hero-tile-label svg { transform: translateX(3px); }

.facts { list-style: none; margin: 0; padding: 6px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.facts li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; }
.facts li + li { border-left: 1px solid var(--line); }
.facts svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.facts b { display: block; font-weight: 650; line-height: 1.3; }
.facts span { display: block; margin-top: 2px; color: var(--muted); font-size: .86rem; line-height: 1.4; }

.section { padding-block: clamp(28px, 3.4vw, 44px); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); }

/* Разделы каталога — всегда в один ряд */
.cats { display: grid; grid-template-columns: repeat(var(--n, 8), minmax(0, 1fr)); gap: 14px; }
.cat { display: flex; flex-direction: column; gap: 3px; color: var(--ink); }
.cat:hover { text-decoration: none; }
.cat-img { position: relative; aspect-ratio: 1; display: block; margin-bottom: 9px; border-radius: var(--r-lg); overflow: hidden; background: var(--tile); }
.cat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.cat:hover .cat-img img { transform: scale(1.07); }
.cat-name { font-weight: 650; font-size: .84rem; line-height: 1.25; letter-spacing: -.015em; hyphens: auto; overflow-wrap: break-word; transition: color .2s; }
.cat:hover .cat-name { color: var(--accent-dark); }
.cat-count { color: var(--muted); font-size: .8rem; }

.brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 10px; }
.brand { display: grid; place-items: center; height: 88px; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; transition: border-color .2s, transform .3s var(--ease); }
.brand:hover { border-color: var(--ink); transform: translateY(-2px); }
.brand img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.brand:hover img { filter: none; opacity: 1; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 1.5px solid var(--ink); }
.steps li::before { content: "0" counter(step); display: block; margin-bottom: 12px; color: var(--accent-dark); font-size: .8rem; font-weight: 700; letter-spacing: .08em; }
.steps b { display: block; margin-bottom: 6px; font-size: 1.05rem; font-weight: 650; }
.steps span { color: var(--muted); font-size: .92rem; }

.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post { display: flex; flex-direction: column; color: var(--ink); }
.post:hover { text-decoration: none; }
.post-img { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); background: var(--tile, #fff); overflow: hidden; isolation: isolate; }
.post-img img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; transition: transform .6s var(--ease); }
.post:hover .post-img img { transform: scale(1.04); }
.post-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 4px 0; }
.post-body time { color: var(--muted); font-size: .8rem; font-weight: 600; }
.post-body b { font-size: 1.04rem; line-height: 1.3; font-weight: 650; transition: color .2s; }
.post:hover .post-body b { color: var(--accent-dark); }
.post-body span { color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.news-5 .post-img { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
.news-5 .post-img img { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
.news-5 .post-img.is-photo img { inset: 0; width: 100%; height: 100%; }
.news-5 .post-body b { font-size: .98rem; }
.news-5 .post-body span { font-size: .86rem; line-height: 1.5; -webkit-line-clamp: 9; }

/* Карточки товаров: крупное фото на спокойной плашке, под ним — раздел, название и цена */
.grid > *, .cats > *, .news > *, .hero > * { min-width: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 20px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: 14px; }
.card-media { position: relative; border-radius: var(--r-lg); background: var(--tile); overflow: hidden; transition: background .3s; }
.card:hover .card-media { background: var(--tile-hover); }
.card-img { position: relative; display: block; aspect-ratio: 1; }
.card-img img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card-sale { position: absolute; left: 12px; top: 12px; padding: 3px 10px; border-radius: var(--pill); background: var(--ink); color: #fff; font-size: .76rem; font-weight: 700; }
.card-actions { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: flex-end; gap: 8px; opacity: 0; transform: translateY(8px); transition: opacity .25s var(--ease), transform .3s var(--ease); }
.card:hover .card-actions, .card:focus-within .card-actions { opacity: 1; transform: none; }
.card-quick { flex: 1; height: 42px; border: 0; border-radius: var(--pill); background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--ink); font-size: .84rem; font-weight: 650; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s; }
.card-quick:hover { background: #fff; color: var(--accent-dark); }
.card-add { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .25s var(--ease); }
.card-add:hover { background: var(--accent-dark); transform: scale(1.06); }
.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-inline: 4px; flex: 1; }
.card-cat { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--accent-dark); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.card-name { color: var(--ink); font-weight: 650; font-size: 1rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-name:hover { color: var(--accent-dark); text-decoration: none; }
.card-sku { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.card-foot { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; width: 100%; margin-top: auto; padding-top: 8px; }
.card-price { display: flex; align-items: baseline; gap: 8px; line-height: 1.2; }
.card-price s { color: var(--muted); font-size: .82rem; }
.card-price b { font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
.price-request { font-size: .9rem !important; color: var(--ink-2); font-weight: 600 !important; }
.stock { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stock.badge-ok { color: var(--ok); }
.stock.badge-wait::before { background: var(--wait); }
.stock.badge-off { color: var(--off); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: var(--pill); font-size: .76rem; font-weight: 700; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-wait { background: var(--wait-bg); color: #8a5a00; }
.badge-off { background: #e9edea; color: var(--off); }
.stock.badge-ok, .stock.badge-wait, .stock.badge-off { background: none; }
.stock.badge-wait { color: var(--muted); }

/* Каталог */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 22px 0 16px; color: var(--muted); font-size: .84rem; font-weight: 600; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-dark); text-decoration: none; }
.catalog { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; padding-bottom: 56px; align-items: start; }
.side { position: sticky; top: 96px; max-height: calc(100dvh - 112px); overflow: auto; scrollbar-width: thin; }
.side-title { font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 6px 12px 10px; }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { margin: 2px 0 6px 14px; border-left: 1.5px solid var(--line); padding-left: 6px; }
.tree a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink-2); font-size: .92rem; font-weight: 600; line-height: 1.3; transition: background .2s, color .2s; }
.tree a:hover { background: var(--tile); text-decoration: none; }
.tree a.is-active { background: var(--ink); color: #fff; }
.tree a.is-active span { color: rgba(255, 255, 255, .65); }
.tree span { color: var(--muted); font-size: .8rem; font-weight: 600; }
.catalog-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 18px; }
.catalog-head h1 { margin: 0; }
.cat-desc { color: var(--ink-2); margin-bottom: 20px; max-width: 78ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 16px; border: 1.5px solid var(--line); border-radius: var(--pill); background: var(--surface); color: var(--ink); font-size: .88rem; font-weight: 650; transition: border-color .2s; }
.chip:hover { border-color: var(--ink); text-decoration: none; }
.chip img { width: 44px; height: 30px; margin-left: -6px; border-radius: 8px; background: #fff; object-fit: contain; }
.sortbar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: .88rem; color: var(--muted); font-weight: 600; }
.sortbar select { height: 40px; padding: 0 36px 0 16px; border: 1.5px solid var(--line); border-radius: var(--pill); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236d7b7b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font-weight: 650; color: var(--ink); cursor: pointer; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 44px; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 14px; display: grid; place-items: center; border-radius: var(--pill); color: var(--ink-2); font-weight: 650; transition: background .2s, color .2s; }
.pager a:hover { background: var(--tile); text-decoration: none; }
.pager .is-active { background: var(--ink); color: #fff; }
.empty { padding: 56px 24px; text-align: center; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); color: var(--ink-2); margin-bottom: 48px; }

/* Товар */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: 40px; }
.gallery { position: sticky; top: 96px; }
.gallery-main { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r-xl); background: var(--tile); cursor: zoom-in; overflow: hidden; }
.gallery-main img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.gallery-main:hover img { transform: scale(1.04); }
.gallery-zoom { position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.gallery-thumbs button { width: 76px; height: 76px; padding: 6px; border: 1.5px solid transparent; border-radius: var(--r-md); background: var(--tile); cursor: pointer; transition: border-color .2s; }
.gallery-thumbs button.is-active { border-color: var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-info { padding-top: 6px; }
.product-info .eyebrow { margin-bottom: 10px; }
.product-info .eyebrow:hover { text-decoration: none; color: var(--accent); }
.product-info h1 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.2rem); margin-bottom: 14px; }
.product-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 18px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.product-meta b { color: var(--ink); font-weight: 650; }
.product-short { color: var(--ink-2); margin-bottom: 22px; }
.buybox { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.buybox-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 18px; }
.buybox-price s { color: var(--muted); }
.buybox-price b { font-size: 2rem; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.buybox-price .price-request { font-size: 1.35rem !important; color: var(--ink); font-weight: 700 !important; }
.buybox-price small { color: var(--muted); flex-basis: 100%; font-size: .88rem; }
.buybox-form { display: flex; flex-wrap: wrap; gap: 10px; }
.buybox-form .btn { flex: 1; min-width: 180px; }
.buybox-ask { margin-top: 10px; }
.perks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; color: var(--ink-2); font-size: .92rem; }
.perks li { display: flex; align-items: center; gap: 12px; }
.perks svg { flex-shrink: 0; color: var(--accent); }
.buybox-notes { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; color: var(--ink-2); font-size: .92rem; }
.qty { display: inline-flex; border-radius: var(--pill); background: #fff; overflow: hidden; height: 54px; box-shadow: inset 0 0 0 1.5px #cfd6d0; }
.qty button { width: 46px; border: 0; background: none; font-size: 1.25rem; cursor: pointer; color: var(--ink-2); transition: background .2s; }
.qty button:hover { background: var(--tile); }
.qty input { width: 54px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; background: transparent; }
.qty input:focus { outline: 0; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.docs { margin-top: 26px; }
.docs h2 { font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.doc { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-weight: 600; margin-bottom: 8px; overflow-wrap: anywhere; transition: border-color .2s; }
.doc:hover { border-color: var(--ink); text-decoration: none; }
.doc svg { color: var(--accent); flex-shrink: 0; }
.doc small { color: var(--muted); margin-left: 4px; }
.product-desc, .section-related { margin-bottom: 28px; }
.product-desc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 3.4vw, 44px); }
.section-related { padding: 16px 0 36px; }

/* Текстовый контент */
.content { overflow-wrap: break-word; }
.content > *:last-child { margin-bottom: 0; }
.content h2, .content h3 { margin-top: 1.4em; }
.content ul, .content ol { padding-left: 1.3em; margin: 0 0 1em; }
.content li { margin-bottom: .3em; }
.content li::marker { color: var(--accent); }
.content img { border-radius: var(--r-md); margin: 12px 0; }
.content figure { margin: 1.4em 0; }
.content figure img { display: block; margin: 0; width: auto; max-width: 100%; max-height: 520px; }
.content figcaption { margin-top: 8px; color: var(--muted); font-size: .88rem; }
.content iframe { border: 0; border-radius: var(--r-lg); max-width: 100%; }
.content table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .93rem; display: block; overflow-x: auto; }
.content table tbody { display: table; width: 100%; }
.content th, .content td { padding: 11px 16px 11px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.content th { font-weight: 600; width: 36%; color: var(--muted); }
.content tr:last-child > * { border-bottom: 0; }
.article { margin-bottom: 56px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 48px); }
.article h1 { margin-top: 6px; }
.article-img { max-height: 320px; width: auto; margin: 0 0 24px; border-radius: var(--r-lg); }

/* Коллаж фото на странице «О компании»: широкий кадр слева на две строки, четыре вертикальных справа */
.collage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 1.6em 0; }
.collage figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-md); background: var(--bg); aspect-ratio: 4 / 5; }
.collage figure.collage-wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.collage img, .content .collage img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border-radius: 0; object-fit: cover; transition: transform .5s ease; }
.collage figure:hover img { transform: scale(1.04); }
.collage figcaption { position: absolute; left: 10px; bottom: 10px; padding: 5px 11px; border-radius: 999px; background: rgba(14, 26, 27, .62); color: #fff; font-size: .8rem; font-weight: 600; line-height: 1.3; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (max-width: 600px) {
  .collage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .collage figure.collage-wide { grid-row: auto; aspect-ratio: 5 / 4; }
}
@media (prefers-reduced-motion: reduce) { .collage img { transition: none; } .collage figure:hover img { transform: none; } }

/* Карусель партнёров («Нам доверяют») */
.partners { margin: 2.2em calc(clamp(24px, 4vw, 48px) * -1) 0; padding: clamp(22px, 3vw, 34px) 0 clamp(26px, 3vw, 38px); background: var(--bg); border-radius: var(--r-lg); overflow: hidden; }
.article .partners:last-child { margin-bottom: calc(clamp(24px, 4vw, 48px) * -1); border-radius: var(--r-lg) var(--r-lg) var(--r-xl) var(--r-xl); }
.partners-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(24px, 4vw, 48px); margin-bottom: 20px; }
.partners-head h2 { margin: 0 !important; }
.partners-arrows { display: flex; gap: 8px; }
.partners-nav { width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s; }
.partners-nav:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.partners-nav:active { transform: scale(.96); }
.partners-track { display: flex; gap: 14px; padding: 10px clamp(24px, 4vw, 48px) 18px; overflow-x: auto; scrollbar-width: none; cursor: grab; -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.partners-track::-webkit-scrollbar { display: none; }
.partners-track.is-dragging { cursor: grabbing; }
.partners-track.is-dragging .partner { pointer-events: none; }
.partners-track:focus-visible { outline-offset: -4px; }
.partner { flex: 0 0 210px; margin: 0; padding: 14px 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; text-align: center; user-select: none; transition: transform .35s var(--ease), border-color .2s; }
.partner:hover { transform: translateY(-4px); border-color: var(--ink); }
.partner-logo { display: grid; place-items: center; height: 110px; padding: 6px; }
.content .partner-logo img { max-width: 100%; max-height: 98px; width: auto; height: auto; margin: 0; border-radius: 0; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .35s, opacity .35s, transform .45s var(--ease); -webkit-user-drag: none; }
.partner:hover .partner-logo img { filter: none; opacity: 1; transform: scale(1.05); }
.partner figcaption { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .86rem; font-weight: 650; line-height: 1.25; }
@media (max-width: 560px) {
  .partner { flex-basis: 160px; }
  .partner-logo { height: 84px; }
  .content .partner-logo img { max-height: 74px; }
  .partners-nav { width: 40px; height: 40px; }
}
@media (hover: none) {
  .content .partner-logo img { filter: none; opacity: 1; }
}

/* Корзина и оформление */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; padding-bottom: 56px; }
.cart-list { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); padding: 8px 22px; }
.cart-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto 130px 40px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-img { display: block; border-radius: var(--r-sm); background: var(--tile); padding: 6px; }
.cart-img img { width: 72px; height: 72px; object-fit: contain; mix-blend-mode: multiply; }
.cart-name { display: flex; flex-direction: column; gap: 2px; }
.cart-name a { color: var(--ink); font-weight: 650; line-height: 1.3; }
.cart-name small { color: var(--muted); font-size: .84rem; }
.cart-row .qty { height: 46px; }
.cart-sum { text-align: right; font-weight: 700; white-space: nowrap; }
.cart-del { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg); color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s, transform .3s var(--ease); }
.cart-del:hover { background: #fde6e3; color: var(--err); transform: rotate(90deg); }
.cart-actions { display: flex; gap: 8px; margin-top: 16px; }
.summary { position: sticky; top: 96px; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); }
.summary h2 { font-size: 1.2rem; }
.summary dl { margin: 0 0 18px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.summary dt { color: var(--ink-2); }
.summary dd { margin: 0; font-weight: 650; text-align: right; }
.summary-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px !important; font-size: 1.25rem; }
.summary-total dt, .summary-total dd { font-weight: 700; color: var(--ink); }
.summary-items { list-style: none; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; font-size: .9rem; max-height: 320px; overflow: auto; }
.summary-items li { display: flex; justify-content: space-between; gap: 12px; }
.summary-items b { white-space: nowrap; }
.summary-items small { color: var(--muted); }
.summary .btn-block { margin-bottom: 14px; }

.checkout fieldset { border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px 28px 28px; margin: 0 0 20px; min-width: 0; background: var(--surface); }
.checkout legend { float: left; width: 100%; font-weight: 700; font-size: 1.2rem; padding: 0; margin-bottom: 18px; }
.checkout legend + * { clear: both; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 14px; }
.fields:last-child { margin-bottom: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 650; color: var(--ink-2); }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid transparent; border-radius: var(--r-sm); background: var(--bg); font-weight: 500; color: var(--ink); transition: background .2s, border-color .2s; }
.field input:focus, .field textarea:focus { border-color: var(--ink); background: #fff; outline: 0; }
.field textarea { resize: vertical; border-radius: var(--r-md); }
.is-invalid input, .is-invalid textarea { border-color: var(--err); background: #fff7f6; }
.field-error { color: var(--err); font-size: .84rem; font-weight: 600; }
.switch { display: inline-flex; padding: 5px; border-radius: var(--pill); background: var(--bg); margin-bottom: 18px; flex-wrap: wrap; }
.switch label { cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { display: block; padding: 9px 20px; border-radius: var(--pill); font-weight: 650; font-size: .92rem; color: var(--muted); transition: background .25s var(--ease), color .2s, box-shadow .25s; }
.switch input:checked + span { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.switch input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.options { display: grid; gap: 10px; margin-bottom: 14px; }
.option { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer; transition: border-color .2s, background .2s; }
.option:hover { border-color: #b9c2bb; }
.option:has(input:checked) { border-color: var(--ink); background: var(--bg); }
.option input { margin-top: 4px; accent-color: var(--ink); width: 18px; height: 18px; }
.option-body { flex: 1; display: flex; flex-direction: column; }
.option-body small { color: var(--muted); font-size: .86rem; }
.option-price { font-weight: 700; white-space: nowrap; }
.delivery-note { margin: 4px 0 0; padding: 14px 18px; border-radius: var(--r-md); background: var(--bg); color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
.suggest { position: relative; display: block; }
.suggest-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 10; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); max-height: 280px; overflow: auto; padding: 6px; }
.suggest-list button { display: block; width: 100%; padding: 10px 14px; border: 0; border-radius: 10px; background: none; text-align: left; cursor: pointer; font-weight: 500; }
.suggest-list button:hover, .suggest-list button:focus { background: var(--bg); outline: 0; }
.check { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: flex-start; margin: 6px 0 20px; font-size: .92rem; }
.check input { margin-top: 4px; accent-color: var(--ink); width: 18px; height: 18px; }
.check span:first-of-type { flex: 1; }
.check .field-error { flex-basis: 100%; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.alert { padding: 14px 20px; border-radius: var(--r-md); margin: 16px 0; font-weight: 600; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-error { background: #fde6e3; color: var(--err); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; max-width: min(420px, calc(100vw - 32px)); padding: 14px 24px; border-radius: var(--pill); background: var(--ink); color: #fff; box-shadow: var(--shadow); font-size: .93rem; font-weight: 600; transform: translateX(-50%); animation: toast-in .4s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 20px); } }

.done { text-align: center; padding: 44px 24px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); margin: 24px 0 20px; }
.done-icon, .bubble-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-size: 1.9rem; font-weight: 700; display: grid; place-items: center; }
.done-icon, .bubble-ok { background: var(--mint); color: var(--ink); animation: pop .6s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.done p { max-width: 60ch; margin-inline: auto; color: var(--ink-2); }
.order-box { border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; background: var(--surface); }
.order-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.order-table th, .order-table td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.order-table th:nth-child(n+2), .order-table td:nth-child(n+2) { text-align: right; white-space: nowrap; }
.order-table tfoot td { font-weight: 650; }
.order-table tfoot td:first-child { text-align: right; white-space: normal; }
.order-total td { font-size: 1.12rem; border-bottom: 0; font-weight: 700 !important; }
.done-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 24px 0 56px; }

/* Всплывающие окна */
.modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: clamp(22px, 4vw, 36px); border: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--ink); box-shadow: 0 40px 100px rgba(8, 22, 24, .35); overflow: auto; overscroll-behavior: contain; }
.modal[open] { animation: modal-in .45s var(--ease); }
.modal::backdrop { background: rgba(13, 35, 37, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade-in .3s ease; }
.modal.is-closing { animation: modal-out .22s ease forwards; }
.modal.is-closing::backdrop { animation: fade-out .22s ease forwards; }
@keyframes modal-in { from { opacity: 0; transform: translateY(28px) scale(.94); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.modal-close { position: absolute; right: 18px; top: 18px; z-index: 3; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s, transform .35s var(--ease); }
.modal-close:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }
.modal-title { font-size: 1.45rem; margin-bottom: 12px; padding-right: 44px; }
.quick .modal-title { font-size: 1.3rem; }
.modal-title .muted { font-size: .95rem; font-weight: 600; letter-spacing: 0; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.modal-actions .btn { flex: 1; white-space: nowrap; }
.modal-loading { min-height: 180px; display: grid; place-items: center; }
.modal-loading::after { content: ""; width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--tile); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.modal-cart { width: min(620px, calc(100vw - 24px)); }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mini-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 36px; gap: 14px; align-items: center; padding: 10px; border-radius: var(--r-md); background: var(--bg); }
.mini-img { border-radius: 12px; background: #fff; }
.mini-img img { width: 64px; height: 64px; object-fit: contain; padding: 6px; }
.mini-name { display: flex; flex-direction: column; gap: 2px; }
.mini-name a { color: var(--ink); font-weight: 650; font-size: .92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-name small { color: var(--muted); font-size: .84rem; }
.mini-sum { white-space: nowrap; font-weight: 700; }
.mini-del { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s, transform .3s var(--ease); }
.mini-del:hover { background: #fde6e3; color: var(--err); transform: rotate(90deg); }
.mini-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 18px; padding: 16px 4px 0; border-top: 1px solid var(--line); font-weight: 650; }
.mini-total b { font-size: 1.4rem; font-weight: 700; }
.mini-total small { color: var(--muted); font-weight: 600; }
.mini-empty, .lead-done { text-align: center; padding: 12px 0 4px; }

.modal-quick { width: min(920px, calc(100vw - 24px)); }
.quick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.quick-img { display: block; position: relative; aspect-ratio: 1; border-radius: var(--r-lg); background: var(--tile); }
.quick-img img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.quick-short { color: var(--ink-2); font-size: .94rem; margin-bottom: 16px; max-height: 8.4em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.quick-more { display: inline-block; margin-top: 18px; font-weight: 650; }

.modal-zoom { width: min(1100px, calc(100vw - 24px)); height: min(860px, calc(100dvh - 24px)); padding: 16px; display: none; background: #fff; overflow: hidden; }
.modal-zoom[open] { display: grid; place-items: center; }
.modal-zoom img { max-width: 100%; max-height: calc(min(860px, 100dvh - 24px) - 32px); object-fit: contain; }
.modal-zoom .modal-close { right: 16px; top: 16px; }
.zoom-nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.zoom-nav:hover { background: var(--ink); color: #fff; }
.zoom-prev { left: 16px; }
.zoom-next { right: 16px; }

/* Заголовок страницы с пояснением */
.page-head { margin-bottom: 26px; }
.page-head h1 { margin-bottom: 8px; }
.page-head p { margin: 0; max-width: 70ch; color: var(--ink-2); font-size: 1.04rem; }

/* Производитель раздела */
.cat-brand { display: inline-flex; align-items: center; gap: 16px; margin-bottom: 20px; padding: 8px 22px 8px 8px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); line-height: 1.25; transition: border-color .2s; }
.cat-brand:hover { border-color: var(--ink); text-decoration: none; }
.cat-brand img { width: 104px; height: 60px; padding: 4px 8px; border-radius: 10px; background: #fff; object-fit: contain; }
.cat-brand span { display: flex; flex-direction: column; }
.cat-brand small { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cat-brand b { font-size: 1.05rem; font-weight: 650; }
.cat-brand i { font-style: normal; color: var(--ink-2); font-size: .86rem; }

/* Новости: лента с датами слева, текст открыт сразу */
.feed { position: relative; display: grid; gap: 22px; padding-bottom: 56px; }
.feed::before { content: ""; position: absolute; left: 118px; top: 12px; bottom: 56px; width: 1.5px; background: var(--line); }
.feed-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 46px; align-items: start; scroll-margin-top: 110px; }
.feed-date { position: sticky; top: 104px; display: flex; flex-direction: column; align-items: flex-end; padding-top: 22px; text-align: right; line-height: 1.2; }
.feed-date::after { content: ""; position: absolute; right: -29px; top: 34px; width: 13px; height: 13px; border: 3px solid var(--bg); border-radius: 50%; background: var(--accent); }
.feed-date b { font-family: var(--display); font-size: 1.9rem; font-weight: 500; letter-spacing: -.03em; }
.feed-date span { margin-top: 4px; color: var(--muted); font-size: .8rem; font-weight: 600; }
.feed-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); transition: box-shadow .3s var(--ease); }
.feed-card:hover { box-shadow: var(--shadow-sm); }
.feed-card > .feed-body:first-child { grid-column: 1 / -1; }
/* рамка картинки: логотип на подложке цвета своего фона, фото — на всю рамку (класс и --tile ставит image_frame_attrs) */
.feed-img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-lg); background: var(--tile, var(--bg)); overflow: hidden; isolation: isolate; }
.feed-img::after, .post-img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(14, 26, 27, .07); pointer-events: none; }
.feed-img img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; transition: transform .6s var(--ease); }
.feed-img.is-photo img, .post-img.is-photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feed-card:hover .feed-img img { transform: scale(1.04); }
.feed-body h2 { margin-bottom: .55em; font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
.feed-body h2 a { color: var(--ink); }
.feed-body h2 a:hover { color: var(--accent-dark); text-decoration: none; }
.feed-text { color: var(--ink-2); }
.feed-text h3 { font-size: 1.05rem; }
.feed-text.is-clamped { max-height: 21em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 calc(100% - 5em), transparent); mask-image: linear-gradient(#000 calc(100% - 5em), transparent); }
.feed-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 18px; border: 1.5px solid var(--line); border-radius: var(--pill); background: none; color: var(--ink); font-size: .9rem; font-weight: 650; cursor: pointer; transition: border-color .2s; }
.feed-more:hover { border-color: var(--ink); }

/* Контакты */
.contact-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.contact-big { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 220px; padding: clamp(20px, 2.6vw, 32px); border-radius: var(--r-xl); background: linear-gradient(135deg, #0b6c65, var(--deep)); color: #fff; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.contact-big::before { content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, rgba(182, 242, 214, .32), transparent); }
.contact-big:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.contact-big-alt { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.contact-big-alt::before { background: radial-gradient(closest-side, rgba(182, 242, 214, .7), transparent); }
.contact-big-label { position: relative; font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; opacity: .75; }
.contact-big-value { position: relative; font-family: var(--display); font-size: clamp(1.25rem, .8rem + 1.5vw, 1.95rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; white-space: nowrap; }
.contact-big-hint { position: relative; font-size: .9rem; opacity: .75; }
.contact-side { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); }
.contact-side b { font-size: 1.08rem; line-height: 1.3; }
.contact-side p { margin: 0 0 auto; color: var(--ink-2); font-size: .92rem; }
.places { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 8px; margin-bottom: 16px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); }
.places-list { display: flex; flex-direction: column; gap: 6px; padding: 16px 8px 8px 12px; }
.places-list h2 { margin: 0 0 8px 10px; font-size: 1.25rem; }
.place { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px; border: 1.5px solid transparent; border-radius: var(--r-lg); cursor: pointer; transition: background .25s, border-color .25s; }
.place:hover { background: var(--bg); }
.place.is-active { background: var(--bg); border-color: var(--ink); }
.place-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--accent-dark); box-shadow: inset 0 0 0 1px var(--line); transition: background .25s, color .25s; }
.place.is-active .place-icon { background: var(--ink); color: var(--mint); box-shadow: none; }
.place small { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.place b { display: block; margin: 2px 0 4px; font-size: 1.15rem; font-weight: 650; }
.place p { margin: 0 0 6px; color: var(--ink-2); font-size: .93rem; line-height: 1.45; }
.place .place-note { color: var(--muted); font-size: .86rem; }
.place a { font-size: .88rem; font-weight: 650; }
.places-map { min-height: 460px; border-radius: var(--r-lg); background: var(--tile); overflow: hidden; z-index: 0; }
.places-map .leaflet-tile-pane { filter: grayscale(1) contrast(.92) brightness(1.06) sepia(.12) hue-rotate(120deg); }
.places-map .leaflet-control-attribution { font: 500 10px/1.6 var(--font); background: rgba(255, 255, 255, .8); border-radius: 8px 0 0 0; }
.places-map .leaflet-bar { border: 0; border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
.places-map .leaflet-bar a { width: 38px; height: 38px; line-height: 38px; color: var(--ink); }
.map-pin { position: relative; width: 22px; height: 22px; border: 5px solid #fff; border-radius: 50%; background: var(--accent); box-shadow: 0 4px 14px rgba(13, 35, 37, .35); }
.map-pin::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; background: rgba(12, 148, 136, .22); animation: pin-pulse 2.2s ease-out infinite; z-index: -1; }
@keyframes pin-pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.leaflet-tooltip.map-label { padding: 5px 12px; border: 0; border-radius: var(--pill); background: var(--ink); color: #fff; font: 650 12px/1.4 var(--font); box-shadow: var(--shadow-sm); }
.leaflet-tooltip.map-label::before { display: none; }
.contact-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 44px; margin-bottom: 56px; padding: 22px clamp(20px, 2.6vw, 32px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); }
.contact-legal small { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-legal b { font-weight: 650; }
.contact-legal .btn { margin-left: auto; }

/* Подвал: цветная полоса с запросом и светлая карточка со ссылками */
.footer { margin-top: 36px; padding-bottom: 24px; }
.footer-cta { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-bottom: 12px; padding: clamp(22px, 3vw, 38px) clamp(20px, 3vw, 44px); border-radius: var(--r-xl); background: linear-gradient(120deg, #0b6c65, var(--deep) 78%); color: #fff; overflow: hidden; }
.footer-cta::before { content: ""; position: absolute; left: 34%; top: -140%; width: 46%; height: 300%; background: radial-gradient(closest-side, rgba(182, 242, 214, .22), transparent); pointer-events: none; }
.footer-cta > * { position: relative; }
.footer-cta h2 { margin: 0 0 4px; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
.footer-cta p { margin: 0; color: rgba(255, 255, 255, .75); }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-main { padding: clamp(20px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); color: var(--ink-2); font-size: .92rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; padding-bottom: clamp(20px, 2.6vw, 30px); border-bottom: 1px solid var(--line); }
.footer-about { max-width: 520px; }
.footer-about p { margin: 12px 0 0; }
.footer-contacts { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-contact { display: flex; align-items: center; gap: 12px; padding: 10px 22px 10px 10px; border-radius: var(--pill); background: var(--bg); color: var(--ink); line-height: 1.25; transition: background .2s; }
.footer-contact:hover { background: var(--accent-soft); text-decoration: none; }
.footer-contact-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--mint); flex-shrink: 0; }
.footer-contact small { display: block; color: var(--muted); font-size: .76rem; font-weight: 600; }
.footer-contact b { font-size: 1.08rem; font-weight: 700; white-space: nowrap; }
.footer-cols { display: grid; grid-template-columns: 1.7fr 1fr .8fr 1.25fr; gap: 28px 36px; padding-block: clamp(22px, 2.8vw, 34px); }
.footer h3 { margin-bottom: 12px; color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.footer-col a { display: block; padding: 4px 0; color: var(--ink); font-weight: 600; line-height: 1.35; transition: color .2s; }
.footer-col a:hover { color: var(--accent-dark); text-decoration: none; }
.footer-links-2 { columns: 2; column-gap: 28px; }
.footer-links-2 a { break-inside: avoid; }
.footer-col p { margin: 0 0 12px; line-height: 1.45; }
.footer-col p b { display: block; color: var(--ink); font-weight: 650; }
.footer-col .footer-map-link { color: var(--accent-dark); }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.footer-up { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: var(--pill); color: var(--ink); font-weight: 650; transition: border-color .2s; }
.footer-up:hover { border-color: var(--ink); text-decoration: none; }

/* Плавное появление блоков при прокрутке */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Адаптив */
@media (max-width: 1180px) {
  .logo-text small { display: none; }
  .cart-link span { display: none; }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega-prods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog { gap: 28px; }
}
@media (max-width: 1100px) {
  /* разделы остаются одним рядом — он прокручивается в сторону */
  .cats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 148px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 24px; scrollbar-width: none; margin-inline: -24px; padding-inline: 24px; }
  .cats::-webkit-scrollbar { display: none; }
  .cat { scroll-snap-align: start; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(odd) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .news-5 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 250px; overflow-x: auto; scrollbar-width: none; margin-inline: -24px; padding-inline: 24px; }
  .news-5::-webkit-scrollbar { display: none; }
  .contact-hero { grid-template-columns: 1fr 1fr; }
  .contact-side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .contact-side p { flex-basis: 100%; }
  .places { grid-template-columns: 1fr; }
  .places-map { min-height: 380px; }
}
@media (max-width: 860px) {
  .topbar-links a:not(:last-child) { display: none; }
  .topbar-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-in { flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
  .burger { display: block; }
  .nav-item, .header-phone { display: none; }
  /* поиск на телефоне спрятан за кнопкой с лупой, чтобы шапка была в одну строку */
  .search-toggle { display: grid; margin-left: auto; }
  .cart-link { padding: 0 16px; }
  .search { display: none; order: 5; flex-basis: 100%; }
  .header.is-search .search { display: flex; animation: mega-in .25s var(--ease); }
  .nav { position: absolute; left: 24px; right: 24px; top: calc(100% + 2px); }
  .nav.is-open { display: block; animation: mega-in .3s var(--ease); }
  .nav-in { display: flex; flex-direction: column; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); max-height: calc(100dvh - 170px); overflow: auto; background: #fff; }
  .nav-in a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: var(--r-sm); color: var(--ink); font-weight: 600; line-height: 1.3; }
  .nav-in a:hover { background: var(--bg); text-decoration: none; }
  .nav-in small { color: var(--muted); font-weight: 600; }
  .nav-title { background: var(--ink); color: #fff !important; justify-content: center !important; margin-bottom: 4px; }
  .nav-title:hover { background: var(--accent-dark) !important; }
  .nav-extra { display: flex; flex-wrap: wrap; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
  .nav-extra a { color: var(--ink-2); font-size: .92rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-tiles { height: 300px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog { grid-template-columns: 1fr; gap: 16px; }
  .side { position: static; order: 2; max-height: none; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
  .product { grid-template-columns: 1fr; gap: 20px; }
  .gallery { position: static; }
  .fields { grid-template-columns: 1fr; }
  .quick { grid-template-columns: 1fr; gap: 16px; }
  .quick-img { max-width: 260px; margin: 0 auto; width: 100%; }
  .cart-list { padding: 4px 16px; }
  .cart-row { grid-template-columns: 72px minmax(0, 1fr) 40px; gap: 10px 12px; }
  .cart-img img { width: 60px; height: 60px; }
  .cart-row .qty { grid-column: 2; grid-row: 2; justify-self: start; }
  .cart-sum { grid-column: 2 / 4; grid-row: 2; align-self: center; }
  .cart-del { grid-column: 3; grid-row: 1; }
  .feed::before, .feed-date::after { display: none; }
  .feed-item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .feed-date { position: static; flex-direction: row; align-items: baseline; gap: 8px; padding: 0 4px; }
  .feed-date b { font-size: 1.2rem; }
  .feed-card { grid-template-columns: minmax(0, 1fr); }
  .feed-body { min-width: 0; overflow-wrap: anywhere; }
  .feed-img { max-width: 320px; }
  .contact-hero { grid-template-columns: 1fr; }
  .contact-big { min-height: 170px; }
  .contact-legal .btn { margin-left: 0; }
}
@media (hover: none) {
  /* на сенсорных экранах кнопка «в заявку» видна всегда, быстрый просмотр не нужен */
  .card-actions { opacity: 1; transform: none; }
  .card-quick { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 14px; }
  .nav { left: 14px; right: 14px; }
  /* шапка в одну строку даже на узком телефоне */
  .header-in { flex-wrap: nowrap; gap: 6px; padding: 8px 10px; }
  .header.is-search .header-in { flex-wrap: wrap; }
  .header .logo { gap: 8px; min-width: 0; }
  .header .logo img { width: 34px; }
  .header .logo-word { font-size: 1.02rem; }
  .burger, .search-toggle { width: 42px; height: 42px; }
  .burger span { left: 11px; top: 20px; }
  .cart-link { height: 42px; padding: 0 11px; }
  .cart-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; font-size: .66rem; }
  .cats { margin-inline: -14px; padding-inline: 14px; scroll-padding-inline: 14px; grid-auto-columns: 132px; gap: 10px; }
  .hero-tiles { height: 240px; gap: 8px; }
  .hero-tile, .cat-img { border-radius: var(--r-md); }
  .hero-tile-label { left: 8px; right: 8px; bottom: 8px; max-width: none; justify-content: space-between; padding: 8px 10px 8px 12px; border-radius: 12px; font-size: .76rem; letter-spacing: -.01em; hyphens: auto; overflow-wrap: break-word; }
  .hero-actions .btn { flex: 1; }
  .facts { grid-template-columns: 1fr; }
  .facts li + li { border-left: 0; border-top: 1px solid var(--line); }
  .grid, .grid-4 { grid-template-columns: 1fr 1fr; gap: 22px 10px; }
  .card { gap: 10px; }
  .card-media { border-radius: var(--r-md); }
  .card-name { font-size: .92rem; }
  .card-add { width: 38px; height: 38px; }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .footer-cols { grid-template-columns: 1fr; gap: 22px; }
  .footer-contacts, .footer-contact, .footer-cta-actions, .footer-cta-actions .btn { width: 100%; }
  .footer-up { margin-left: 0; }
  .footer-links-2 { columns: 1; }
  .news-5 { margin-inline: -14px; padding-inline: 14px; grid-auto-columns: 230px; }
  .places-list { padding: 10px 2px 4px; }
  .place { padding: 12px; }
  .checkout fieldset { padding: 20px 16px; border-radius: var(--r-lg); }
  .product-desc, .article, .summary, .cart-list, .order-box, .panel, .footer-cta, .footer-main, .feed-card, .contact-big, .contact-side, .places, .contact-legal, .gallery-main { border-radius: var(--r-lg); }
  .modal { border-radius: var(--r-lg) var(--r-lg) 0 0; margin-bottom: 0; width: 100vw; max-width: 100vw; max-height: 92dvh; }
  .modal[open] { animation-name: sheet-in; }
  @keyframes sheet-in { from { transform: translateY(100%); } }
  .modal-zoom { border-radius: 0; height: 100dvh; max-height: 100dvh; }
  .mini-list li { grid-template-columns: 52px minmax(0, 1fr) 36px; }
  .mini-img img { width: 52px; height: 52px; }
  .mini-sum { grid-column: 2; }
  .mini-del { grid-column: 3; grid-row: 1; }
  .modal-actions .btn { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .topbar, .header, .footer, .toast, .done-actions, .modal { display: none; }
  body { background: #fff; }
}
