/* Шапка, подвал и кнопка мессенджеров — общие для сайта и блога (render.php: site_header/site_footer/site_dock).
   Переменные свои (--c-*): у блога другие --pad/--wrap. Ширина колонки синхронна с --wrap в site.css. */
:root {
  --c-rule: #d6e1e9; --c-ink: #000; --c-ink-2: rgba(0, 0, 0, 0.64); --c-accent: #1d71b8; --c-gold: #1d71b8; --c-blue: #1d71b8;
  --c-white: #fff; --c-tint: #f2f3f7; --c-indigo: #4f517d;
  --c-nav: "Nunito", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --c-display: var(--c-nav);
  --c-wrap: 1160px; --c-pad: 20px;
}
@media (min-width: 640px) { :root { --c-pad: 28px; } }
@media (min-width: 1800px) { :root { --c-wrap: 1320px; } }
@media (min-width: 2400px) { :root { --c-wrap: 1480px; } }
.top .wrap, .foot .wrap {
  width: 100%; max-width: var(--c-wrap); margin: 0 auto; box-sizing: border-box;
  padding-left: max(var(--c-pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--c-pad), env(safe-area-inset-right, 0px));
}
.top, .foot { font-family: var(--c-nav); }
.top *, .foot * { box-sizing: border-box; }

/* Шапка */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  /* сплошной белый: у телефона и «Работаем по всей России» белые подложки до края экрана — при полупрозрачной шапке они виднелись полосами при прокрутке */
  background: var(--c-white);
  border-bottom: 1px solid var(--c-rule);
  color: var(--c-ink);
  padding-top: env(safe-area-inset-top, 0px);
}
.top-row { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { color: inherit; text-decoration: none; margin-right: auto; display: flex; align-items: center; gap: 10px; }
.brand img { height: 44px; width: auto; }
.brand span { font-size: 0.78rem; line-height: 1.2; color: var(--c-accent); max-width: 11em; }
.top-phone { color: var(--c-ink); text-decoration: none; font-family: var(--c-nav); font-weight: 500; letter-spacing: .01em; white-space: nowrap; font-size: 0.95rem; }
/* Разделы в шапке: на мобилке листаются по горизонтали */
.sections { border-top: 1px solid var(--c-rule); }
.sections-row {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.sections-row::-webkit-scrollbar { display: none; }
.sections a {
  flex: none; white-space: nowrap; padding: 11px 10px; color: var(--c-ink); text-decoration: none;
  font-family: var(--c-nav); font-size: 0.9rem; font-weight: 500; line-height: 1.2;
}
.sections a:hover { color: var(--c-accent); }
.sections a[aria-current] { box-shadow: inset 0 -3px 0 var(--c-gold); }
@media (max-width: 479px) { .brand span { display: none; } } /* на узких экранах вместо подписи — телефон */

.foot { background: var(--c-tint); color: var(--c-indigo); padding: 32px 0; font-size: 0.9rem; border-top: 1px solid var(--c-rule); }
.foot a { color: var(--c-indigo); text-decoration: none; }
.foot a:hover { color: var(--c-accent); }
.foot-brand { color: var(--c-accent); font-family: var(--c-display); font-size: 1.2rem; margin-bottom: 8px !important; }
.foot p { margin: 0 0 6px; }
.foot-grid { display: grid; gap: 20px; }





/* Шапка: логотип с подписью по центру, тонкие синие линии в стороны, при прокрутке ужимается */
@media (min-width: 960px) {
  .top { overflow-x: clip; }
  .top .top-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; min-height: 0; padding-top: 12px; padding-bottom: 8px; }
  .top .brand { grid-column: 2; flex-direction: column; gap: 2px; margin: 0; position: relative; }
  .top .brand img { height: 80px; margin: 0; transition: height .3s; }
  .top .brand span { max-width: none; font-size: 0.8rem; letter-spacing: .02em; transition: opacity .2s; }
  .top .brand::before, .top .brand::after {
    content: ""; position: absolute; top: 45px; width: 100vw; height: 1px; background: var(--c-accent); opacity: .65; transition: top .3s;
  }
  .top .brand::before { right: calc(100% + 16px); }
  .top .brand::after { left: calc(100% + 16px); }
  /* телефон с почтой «вырезают» линию под собой, чтобы она не перечеркивала номер в ужатой шапке */
  .top-contact { grid-column: 3; justify-self: end; margin-bottom: 4px; position: relative; z-index: 1; background: var(--c-white); padding: 2px 0 2px 16px; text-align: right; }
  .top-contact::after { content: ""; position: absolute; left: 100%; top: 0; bottom: 0; width: 100vw; background: var(--c-white); }
  .top.is-small .top-row { padding-top: 6px; padding-bottom: 6px; align-items: center; }
  .top.is-small .brand img { height: 40px; }
  .top.is-small .brand span { display: none; }
  .top.is-small .brand::before, .top.is-small .brand::after { top: 22px; }
  .top.is-small .top-contact { margin-bottom: 0; align-self: center; }
}

/* «Настройки cookie» в подвале — как остальные ссылки подвала */
.foot .link-btn { text-decoration: none; color: var(--c-indigo); }
.foot .link-btn:hover { color: var(--c-accent); }

@media (max-width: 959px) { .top-phone { padding: 10px 0; } }
/* почта под телефоном — тем же размером, обычным начертанием и мягче цветом: номер остаётся главным */
.top-contact { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.top-mail { color: var(--c-indigo); text-decoration: none; white-space: nowrap; }
.top-mail:hover, .top-phone:hover { color: var(--c-accent); }
@media (max-width: 959px) {
  .top-mail { font-size: 0.85rem; margin-top: 2px; }
  .top-row:not(:has(.top-geo)) .top-mail { margin: -8px 0 8px; }
}
/* на компьютере почта — слева от телефона в одну строку: так она остаётся видна и в ужатой шапке */
@media (min-width: 960px) {
  .top-contact { flex-direction: row-reverse; align-items: baseline; gap: 20px; }
  .top-mail { font-size: 0.95rem; }
}

/* «Работаем по всей России»: на компьютере — слева, напротив телефона; на телефоне не показываем */
.top-geo { margin: 0; color: var(--c-indigo); line-height: 1.25; }
.top-geo b { font-weight: 500; }
.top-geo span { display: none; }
@media (max-width: 959px) {
  .top-row:has(.top-geo) { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto auto 1fr; gap: 0 12px; padding-top: 6px; padding-bottom: 6px; }
  .top-row:has(.top-geo) .brand { grid-row: 1 / 5; }
  .top-row:has(.top-geo) .top-contact { grid-column: 2; grid-row: 2; justify-self: end; }
  .top-row:has(.top-geo) .top-phone { padding: 0; }
  .top-geo { display: none; } /* на телефоне шапка и так плотная — строка лишняя */
}
@media (min-width: 960px) {
  .top .brand, .top .top-contact { grid-row: 1; }
  .top-geo { grid-column: 1; grid-row: 1; justify-self: start; align-self: end; margin-bottom: 4px; position: relative; z-index: 1; background: var(--c-white); padding: 2px 16px 2px 0; font-size: 0.8rem; }
  .top-geo::before { content: ""; position: absolute; right: 100%; top: 0; bottom: 0; width: 100vw; background: var(--c-white); }
  .top-geo b { display: block; font-size: 0.95rem; color: var(--c-ink); }
  .top-geo span { display: block; color: color-mix(in srgb, var(--c-indigo) 40%, #9aa6b2); }
  .top.is-small .top-geo { margin-bottom: 0; align-self: center; }
  .top.is-small .top-geo span { display: none; }
}

.foot p { margin: 0 0 6px; }
.foot .link-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

@media (min-width: 640px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
/* все разделы в одну строку без прокрутки — только когда помещаются (с «Блогом» — от 1160px); уже — листаются, как на планшете */
@media (min-width: 1160px) {
  .sections-row { -webkit-mask-image: none; mask-image: none; justify-content: space-between; }
  .sections a { padding: 13px 4px; font-size: 0.95rem; }
}
/* подвал на телефоне: ссылки повыше, чтобы попадать пальцем */
@media (max-width: 959px) { .foot p { margin: 0 0 2px; } .foot a, .foot .link-btn { display: inline-block; padding: 6px 0; } .foot-brand, .foot p:not(:has(a, button)) { margin-bottom: 6px; } }

/* ---------- Кнопка мессенджеров в углу: Telegram, MAX и WhatsApp сменяют друг друга ---------- */
/* телефон: одинаковые отступы 20 px справа и снизу (плюс системная зона жестов, если она есть) */
.msgw { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 30; width: 56px; height: 56px; }
/* пульсация — нейтральная серая и редкая (раз в 5 с), чтобы не спорить с цветом значков */
.msgw::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #8a94a6; opacity: .3; animation: msgw-pulse 5s ease-out infinite; }
.msgw-b { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; box-shadow: 0 8px 24px rgba(16, 24, 40, .22);
  opacity: 0; transform: scale(.5) rotate(-90deg); pointer-events: none; transition: opacity .45s ease, transform .55s cubic-bezier(.2, .9, .3, 1.3); -webkit-tap-highlight-color: transparent; }
.msgw-b.is-on { opacity: 1; transform: none; pointer-events: auto; }
.msgw-b img { display: block; width: 100%; height: 100%; }
/* Telegram — официальный круглый знак целиком; MAX — цветной знак на белом круге; WhatsApp — белый знак на фирменном зелёном */
.msgw-max { background: #fff; }
.msgw-max img { width: 62%; height: 62%; }
.msgw-wa { background: #25d366; }
.msgw-wa img { width: 52%; height: 52%; }
.msgw-tip { display: none; }
/* на телефоне, пока видна плашка про cookie, кнопка не нужна — не перекрываем плашку */
@media (max-width: 959px) { body:has(.cookie:not([hidden])) .msgw { display: none; } }
@media (min-width: 960px) {
  .msgw { right: 64px; bottom: 64px; width: 60px; height: 60px; } /* одинаковые отступы справа и снизу */
  .msgw-b:hover { box-shadow: 0 10px 28px rgba(16, 24, 40, .3); }
  .msgw-tip { display: block; position: absolute; right: 74px; top: 50%; transform: translateY(-50%) translateX(6px); white-space: nowrap; background: #fff; color: #1d2433;
    font: 600 14px/1 var(--c-nav, sans-serif); padding: 10px 14px; border-radius: 12px; box-shadow: 0 6px 20px rgba(16, 24, 40, .16); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .msgw:hover .msgw-tip, .msgw:focus-within .msgw-tip { opacity: 1; transform: translateY(-50%); }
  body:has(.cookie:not([hidden])) .msgw { bottom: 110px; }
}
/* «Номер визита скопирован» — подсказка после клика по MAX */
.vtoast { position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 40; transform: translate(-50%, 12px); max-width: calc(100% - 32px); background: #1d2433; color: #fff;
  font: 500 14px/1.35 var(--c-nav, sans-serif); padding: 12px 16px; border-radius: 12px; box-shadow: 0 8px 24px rgba(16, 24, 40, .25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.vtoast.on { opacity: 1; transform: translate(-50%, 0); }
@keyframes msgw-pulse { 0% { transform: scale(1); opacity: .3; } 40%, 100% { transform: scale(1.5); opacity: 0; } }
/* смена значков и пульсация — у всех, в том числе с выключенными «Эффектами анимации» в системе: движение мягкое и редкое,
   а столбик из кнопок вместо одной круглой выглядел хуже (решение заказчика, 06.10.2026) */

/* Магазин: кабинет и корзина справа в строке разделов (render.php: shop_top_tools) */
.sec-shop { display: flex; align-items: center; gap: 8px; }
.sec-shop .sections-row { flex: 1; min-width: 0; }
.top-shop { display: flex; gap: 2px; flex: none; }
.top-shop a { position: relative; display: grid; place-items: center; width: 42px; height: 42px; color: var(--c-ink); border-radius: 50%; }
.top-shop a:hover { color: var(--c-accent); background: var(--c-tint); }
.top-shop svg { width: 23px; height: 23px; }
.top-shop i { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--c-accent); color: #fff;
  font: 700 11px/19px var(--c-nav); font-style: normal; text-align: center; }
.top-shop i[hidden] { display: none; }

/* ---------- Шапка магазина (inc/shop_chrome.php): строка акции, «Каталог» с меню разделов, поиск, кабинет и корзина ---------- */
.promo { position: relative; background: var(--promo, var(--c-indigo)); color: var(--promof, #fff); font: 500 .86rem/1.35 var(--c-nav); text-align: center; padding: 8px 44px; letter-spacing: .02em; }
.promo[hidden] { display: none; }
.promo p { margin: 0; }
.promo a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.promo-code { margin-left: 6px; padding: 2px 9px; border: 1px dashed currentColor; border-radius: 6px; background: none; color: inherit; font: 700 .86rem var(--c-nav); letter-spacing: .06em; cursor: pointer; }
.promo-code.ok::after { content: " ✓ скопирован"; font-weight: 500; letter-spacing: 0; }
.promo-x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: none; color: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; opacity: .7; }
.promo-x:hover { opacity: 1; }

.top-sh .sh-row { display: flex; align-items: center; gap: 14px; min-height: 68px; padding-top: 8px; padding-bottom: 8px; }
.top-sh .brand { margin: 0; flex: none; }
.top-sh .brand img { height: 42px; }
.sh-cat { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 44px; padding: 0 18px; border: 0; border-radius: var(--btn-r, 100px); background: var(--c-accent); color: #fff; font: 600 .95rem var(--c-nav); text-decoration: none; cursor: pointer; }
.sh-cat svg { width: 16px; height: 16px; }
.sh-cat:hover, .sh-cat[aria-expanded="true"] { background: color-mix(in srgb, var(--c-accent) 85%, #000); color: #fff; }
.sh-search { position: relative; flex: 1; min-width: 0; }
.sh-search input { width: 100%; height: 44px; padding: 0 48px 0 18px; border: 1px solid var(--c-rule); border-radius: var(--btn-r, 100px); background: var(--c-tint); font: 16px var(--c-nav); color: var(--c-ink); }
.sh-search input:focus { outline: none; border-color: var(--c-accent); background: #fff; }
.sh-search button { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; color: var(--c-ink); cursor: pointer; border-radius: 8px; }
.sh-search svg, .sh-find svg { width: 20px; height: 20px; }
.sh-phone { flex: none; }
.sh-find { display: none; width: 42px; height: 42px; place-items: center; border: 0; background: none; color: var(--c-ink); border-radius: 50%; cursor: pointer; }
.top-sh .top-shop { margin-left: 2px; }
.top-sh .sections a.hl { margin: 6px 4px; padding: 5px 12px; border-radius: 100px; background: var(--c-accent); color: #fff; }
.top-sh .sections a.hl:hover { color: #fff; background: color-mix(in srgb, var(--c-accent) 85%, #000); }
/* разделы — от левого края, по линии логотипа и баннера */
.top-sh .sections-row { justify-content: flex-start; }
.top-sh .sections a:first-child { padding-left: 0; }
@media (min-width: 1160px) { .top-sh .sections-row { gap: 22px; } }
/* шапка магазина без линий над строкой разделов и под шапкой; при прокрутке её отделяет мягкая тень */
.top-sh { border-bottom: 0; transition: box-shadow .2s; }
.top-sh .sections { border-top: 0; }
.top-sh.is-small { box-shadow: 0 8px 20px -14px rgba(16, 24, 40, .35); }
@media (min-width: 760px) { .top-sh.capsule.is-small { box-shadow: none; } } /* у «капсулы» тень своя — у плашки */
@media (max-width: 1159px) { .sh-phone { display: none; } }
/* телефон: логотип и значки в строку, поиск — по кнопке-лупе отдельной строкой, «Каталог» — второй строкой во всю ширину */
@media (max-width: 759px) {
  .top-sh .sh-row { flex-wrap: wrap; gap: 4px 6px; min-height: 56px; }
  .top-sh .brand { margin-right: auto; }
  .top-sh .brand img { height: 34px; }
  .sh-find { display: grid; }
  .sh-search { order: 6; flex-basis: 100%; display: none; }
  .top-sh.find-on .sh-search { display: block; padding-bottom: 6px; }
  .top-sh:has(.mega) .sections { display: none; }
}

/* меню каталога: слева разделы, справа подразделы и популярные товары */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--c-rule); box-shadow: 0 24px 48px -12px rgba(16, 24, 40, .18); max-height: calc(100vh - 140px); overflow: auto; }
.mega[hidden] { display: none; }
.mega-in { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0 28px; padding-top: 14px; padding-bottom: 22px; }
.mega-top { display: none; }
.mega-l { list-style: none; margin: 0; padding: 0 16px 0 0; border-right: 1px solid var(--c-rule); }
.mega-l a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 8px; color: var(--c-ink); text-decoration: none; font: 500 .95rem var(--c-nav); }
.mega-l a i { width: 7px; height: 7px; border: solid currentColor; border-width: 1.6px 1.6px 0 0; transform: rotate(45deg); opacity: .45; flex: none; }
.mega-l a.on, .mega-l a:hover { background: var(--c-tint); color: var(--c-accent); }
.mega-all a { color: var(--c-indigo); font-weight: 400; }
.mega-x a { font-weight: 400; color: var(--c-ink-2, #555); }
.mega-l li:not(.mega-x) + .mega-x { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--c-rule); }
.mega-h { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 14px; }
.mega-h a { color: var(--c-ink); font: 600 1.05rem var(--c-nav); text-decoration: none; }
.mega-h a:hover { color: var(--c-accent); }
.mega-h small, .mk small { color: color-mix(in srgb, var(--c-ink) 45%, #fff); font-weight: 400; }
.mega-back { display: none; }
.mega-k { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 18px; margin-bottom: 18px; }
.mk-t { display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 10px; color: var(--c-ink); text-decoration: none; font: 500 .95rem/1.3 var(--c-nav); }
.mk-t:hover { background: var(--c-tint); color: var(--c-accent); }
.mk-t img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: var(--c-tint); mix-blend-mode: multiply; flex: none; }
.mk-s { display: flex; flex-direction: column; padding: 2px 0 0 70px; }
.mk-s a { padding: 3px 0; color: var(--c-indigo); text-decoration: none; font-size: .9rem; }
.mk-s a:hover { color: var(--c-accent); }
.mega-pt { margin: 4px 0 10px; font: 600 .78rem var(--c-nav); letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--c-ink) 50%, #fff); }
.mega-pr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mp-i { display: flex; flex-direction: column; gap: 6px; color: var(--c-ink); text-decoration: none; font: 400 .88rem/1.3 var(--c-nav); }
.mp-i img, .mp-i > span:first-child { aspect-ratio: 1; width: 100%; object-fit: contain; padding: 8%; border-radius: 10px; background: var(--c-tint); mix-blend-mode: multiply; }
.mp-i span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-i:hover { color: var(--c-accent); }
.mp-i b { font-weight: 700; }
/* телефон и планшет: меню — во весь экран, уровни сменяют друг друга */
@media (max-width: 959px) {
  .mega { position: fixed; inset: 0; z-index: 70; max-height: none; border: 0; box-shadow: none; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .mega-in { display: block; padding-top: 0; }
  .mega-top { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1; background: #fff; padding: calc(10px + env(safe-area-inset-top, 0px)) 0 10px; border-bottom: 1px solid var(--c-rule); margin-bottom: 6px; }
  .mega-top b { font: 700 1.2rem var(--c-display); }
  .mega-x { width: 40px; height: 40px; border: 0; background: var(--c-tint); border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--c-ink); }
  .mega-l { border: 0; padding: 0; }
  .mega-l a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--c-rule); font-size: 1.02rem; }
  .mega-l a.on { background: none; color: var(--c-ink); }
  .mega-r { display: none; }
  .mega.lvl2 .mega-l { display: none; }
  .mega.lvl2 .mega-r { display: block; }
  .mega-back { display: inline-block; border: 0; background: none; padding: 6px 0; font: 500 .95rem var(--c-nav); color: var(--c-accent); cursor: pointer; }
  .mega-h { flex-direction: column; gap: 4px; }
  .mega-k { grid-template-columns: 1fr; gap: 2px; }
  .mega-pr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
body.mega-lock { overflow: hidden; }

/* «Капсула» (Настройки, Оформление): при прокрутке шапка отрывается от краёв и становится плавающей плашкой */
@media (min-width: 760px) {
  .top-sh.capsule { transition: background .25s, border-color .25s; }
  .top-sh.capsule.is-small { background: transparent; border-bottom-color: transparent; }
  .top-sh.capsule.is-small .sh-row { max-width: calc(var(--c-wrap) - 24px); margin: 8px auto 0; min-height: 68px; border-radius: 100px; background: #fff; box-shadow: 0 10px 30px -10px rgba(16, 24, 40, .25); padding-left: calc(var(--c-pad) - 12px); padding-right: calc(var(--c-pad) - 12px); }
  .top-sh.capsule.is-small .sections { display: none; }
  .top-sh.capsule.is-small .sh-cat, .top-sh.capsule.is-small .sh-search input { border-radius: 100px; }
}
.mega-site { display: none; }
@media (max-width: 759px) { .mega-site { display: flex; flex-direction: column; margin-top: 18px; } .mega-site a { padding: 12px 4px; color: var(--c-indigo); text-decoration: none; font: 500 1rem var(--c-nav); } .mega.lvl2 .mega-site { display: none; } }
/* у шапки магазина нет декоративных линий у логотипа и подписи под ним (они — у шапки сайта услуг) */
.top-sh .brand::before, .top-sh .brand::after, .top-sh .brand span { display: none; }
@media (min-width: 960px) { .top-sh .brand { flex-direction: row; } .top-sh .brand img, .top.top-sh.is-small .brand img { height: 42px; } }

/* ---------- Подвал магазина (inc/shop_chrome.php): колонки, контакты и подписка, соцсети, реквизиты и оплата ---------- */
.fx { padding: 40px 0 28px; color: var(--c-ink); }
.fx a { color: color-mix(in srgb, var(--c-ink) 72%, var(--c-tint)); }
.fx a:hover { color: var(--c-accent); }
.fx-grid { display: grid; gap: 8px 32px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: start; }
.fx-col summary { list-style: none; font: 700 .95rem var(--c-nav); color: var(--c-ink); margin-bottom: 12px; cursor: default; }
.fx-col summary::-webkit-details-marker { display: none; }
.fx-col nav { display: flex; flex-direction: column; gap: 9px; }
.fx-main nav a { color: var(--c-ink); font-weight: 600; }
.fx-contact { display: flex; flex-direction: column; gap: 8px; min-width: 240px; }
.fx-addr, .fx-more { font-size: .9rem; }
.fx-more { font-weight: 600; }
.fx .fx-phone { margin-top: 6px; color: var(--c-ink); font: 700 1.1rem var(--c-nav); }
.fx-hours { font-size: .86rem; color: color-mix(in srgb, var(--c-ink) 60%, var(--c-tint)); }
.fx-sub { margin-top: 12px; }
.fx-sub-l { display: block; font: 600 .9rem var(--c-nav); margin-bottom: 8px; }
.fx-sub-r { display: flex; border: 1px solid var(--c-rule); border-radius: var(--btn-r, 100px); background: #fff; overflow: hidden; }
.fx-sub-r input { flex: 1; min-width: 0; border: 0; padding: 11px 14px; font: 16px var(--c-nav); background: none; color: var(--c-ink); }
.fx-sub-r input:focus { outline: none; }
.fx-sub-r:focus-within { border-color: var(--c-accent); }
.fx-sub-r button { width: 46px; border: 0; background: var(--c-accent); color: #fff; font-size: 1.2rem; cursor: pointer; }
.fx-sub-c { margin: 8px 0 0 !important; font-size: .76rem; line-height: 1.4; color: color-mix(in srgb, var(--c-ink) 60%, var(--c-tint)); }
.fx-sub-c a { text-decoration: underline; }
.fx-sub-ok { margin: 8px 0 0 !important; font-size: .9rem; font-weight: 600; color: var(--c-accent); }
.fx-sub-ok.err { color: #b42318; }
.fx .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.fx-soc { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 30px; position: relative; }
.fx-soc::before { content: ""; position: absolute; left: max(var(--c-pad), env(safe-area-inset-left, 0px)); right: max(var(--c-pad), env(safe-area-inset-right, 0px)); top: 50%; height: 1px; background: var(--c-rule); z-index: 0; }
.fx-soc a { position: relative; z-index: 1; display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--c-rule); border-radius: 10px; background: var(--c-tint); color: var(--c-ink); font: 700 .78rem var(--c-nav); text-decoration: none; }
.fx-soc a:hover { border-color: var(--c-accent); color: var(--c-accent); }
.fx-bot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 26px; font-size: .8rem; color: color-mix(in srgb, var(--c-ink) 60%, var(--c-tint)); }
.fx-bot p { margin: 0 !important; }
.fx-links { display: flex; gap: 16px; flex-wrap: wrap; }
.fx-links .link-btn { font-size: .8rem; color: inherit; }
.fx-pay { margin-left: auto !important; display: flex; gap: 6px; }
.pay { padding: 3px 8px; border: 1px solid var(--c-rule); border-radius: 6px; background: #fff; font: 800 .72rem var(--c-nav); letter-spacing: .03em; color: var(--c-ink); }
.pay-sbp { color: #5b2e90; } .pay-mir { color: #0f754e; } .pay-visa { color: #1a1f71; font-style: italic; } .pay-mc { color: #c2410c; }
/* телефон: колонки ссылок сворачиваются (их закрывает site.js), контакты и подписка открыты */
@media (max-width: 759px) {
  .fx { padding-top: 24px; }
  .fx-grid { grid-template-columns: 1fr; gap: 0; }
  .fx-col[data-fx] { border-bottom: 1px solid var(--c-rule); }
  .fx-col[data-fx] summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; margin: 0; cursor: pointer; }
  .fx-col[data-fx] summary::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); opacity: .5; transition: transform .2s; }
  .fx-col[data-fx][open] summary::after { transform: rotate(-135deg); }
  .fx-col[data-fx] nav { padding-bottom: 14px; }
  .fx-col nav a { padding: 4px 0; }
  .fx-contact { padding-top: 18px; }
  .fx-pay { margin-left: 0 !important; }
}
/* телефон: «Каталог» — круглый значок в строке с логотипом, без широкой полосы под ним (решение заказчика, 13.10.2026) */
@media (max-width: 759px) {
  .top-sh .sh-find { order: 2; }
  .top-sh .sh-cat { order: 3; flex: none; width: 40px; height: 40px; padding: 0; margin: 0; justify-content: center; }
  .top-sh .sh-cat span { display: none; }
  .top-sh .top-shop { order: 4; }
  .top-sh .sh-row { min-height: 56px; }
  .top-sh.is-small .sh-row { min-height: 52px; }
}
/* шапка корзины (только логотип и телефон): без линий у логотипа, логотип обычного размера */
.top-bare .brand::before, .top-bare .brand::after, .top-bare .brand span { display: none; }
@media (min-width: 960px) { .top-bare .top-row { display: flex; } .top-bare .brand img, .top.top-bare.is-small .brand img { height: 42px; } }
/* «Каталог»: подпись по центру по вертикали при любом шрифте — без запаса строки, значок и текст на одной оси */
.sh-cat { line-height: 1; gap: 9px; padding: 0 20px 0 17px; font-family: var(--c-display); letter-spacing: .01em; }
/* подпись обрезана по высоте заглавной и линии строки — по центру встаёт сама буква, а не запас шрифта сверху и снизу */
.sh-cat span { display: block; text-box: trim-both cap alphabetic; }
.sh-cat svg { display: block; flex: none; }
/* узкие телефоны (Fold 344, S25 360): шапка при прокрутке — строго в одну строку */
@media (max-width: 419px) {
  /* логотип и пять значков помещаются в строку и при открытом поиске (он — второй строкой): 344 px → 304 px под содержимое */
  .top-sh .sh-row { gap: 4px 2px; }
  .top-sh .top-shop { margin-left: 0; gap: 0; }
  .top-sh .top-shop a, .sh-find { width: 36px; height: 36px; }
  .top-sh .top-shop svg { width: 21px; height: 21px; }
  .top-sh .sh-row:not(.find-on .sh-row) { flex-wrap: nowrap; }
  .top-sh .brand img, .top-sh.is-small .brand img { height: 26px; }
  .top-sh .sh-cat { width: 36px; height: 36px; }
}

/* ---------- подсказки поиска в шапке магазина (site.js) ---------- */
.ss { position: absolute; left: 0; top: calc(100% + 8px); z-index: 60; width: min(760px, calc(100vw - 32px)); max-height: min(70vh, 620px); overflow: auto; padding: 14px; border: 1px solid var(--c-rule); border-radius: 20px; background: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, .14); text-align: left; }
.ss[hidden] { display: none; }
.ss-h { display: flex; align-items: center; justify-content: space-between; margin: 0 0 6px; font: 700 .72rem var(--c-nav); letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-2, #6b6b6b); }
.ss-clear { border: 0; background: none; padding: 0; font: 600 .78rem var(--c-nav); color: var(--c-accent); cursor: pointer; text-transform: none; letter-spacing: 0; }
.ss-sec + .ss-sec { margin-top: 14px; }
.ss-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ss-chip { padding: 7px 14px; border-radius: 100px; background: var(--c-tint); color: var(--c-ink); text-decoration: none; font: 500 .9rem var(--c-nav); }
.ss-chip:hover, .ss-chip:focus { background: color-mix(in srgb, var(--c-accent) 14%, #fff); outline: none; }
.ss-cols { display: grid; gap: 16px; }
@media (min-width: 720px) { .ss-cols { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.ss-p { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 8px; border-radius: 12px; color: var(--c-ink); text-decoration: none; }
.ss-p img, .ss-ph { width: 48px; height: 48px; border-radius: 10px; object-fit: contain; background: var(--c-tint); mix-blend-mode: multiply; }
.ss-pn { font: 500 .92rem/1.3 var(--c-nav); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ss-pn small { display: block; color: var(--c-ink-2, #888); font-size: .78rem; }
.ss-p b { font: 700 .92rem var(--c-nav); white-space: nowrap; }
.ss-l { display: block; padding: 6px 8px; border-radius: 10px; color: var(--c-ink); text-decoration: none; font: 500 .92rem/1.3 var(--c-nav); }
.ss-l small { display: block; color: var(--c-ink-2, #888); font-size: .78rem; }
.ss-p:hover, .ss-p:focus, .ss-l:hover, .ss-l:focus { background: var(--c-tint); outline: none; }
.ss-all { display: flex; justify-content: center; gap: 6px; margin-top: 12px; padding: 12px; border-radius: 100px; background: var(--c-tint); color: var(--c-ink); text-decoration: none; font: 600 .95rem var(--c-nav); }
.ss-all span { color: var(--c-accent); }
.ss-all:hover, .ss-all:focus { background: color-mix(in srgb, var(--c-accent) 14%, #fff); outline: none; }
.ss-fix, .ss-none { margin: 0 0 10px; font: .9rem/1.4 var(--c-nav); color: var(--c-ink-2, #6b6b6b); }
@media (max-width: 959px) {
  .ss { position: fixed; left: 8px; right: 8px; top: auto; width: auto; margin-top: 8px; max-height: calc(100dvh - 140px); }
  .ss-p { grid-template-columns: 44px minmax(0, 1fr) auto; }
}
