/* OPTIK61 A1, этап 1 — оболочка: верхняя полоса, шапка, меню с каталогом, подвал, мультикнопка, нижняя панель
   и шторки телефона. Эталон — макет главной (D:\work\optik61-design\home). Всё на классах o61-, тема не перекрашивается,
   кроме точечных заплаток в конце файла (каждая с причиной). */

.o61-shell a[class*="o61-"], .o61-shell [class*="o61-"] a { text-decoration: none; }
/* сброс кнопок без веса селектора: любой класс o61- его перебивает */
:where(.o61-shell [class*="o61-"]) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- верхняя полоса ---------- */
.o61-topbar { background: var(--navy-950); color: #C9D3EA; font: 400 13px/1.3 var(--f-ui); }
.o61-topbar .o61-wrap { display: flex; align-items: center; gap: 22px; height: 40px; }
.o61-topbar__item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.o61-topbar__item .o61-ico { width: 17px; height: 17px; color: var(--gold-400); }
.o61-topbar__sep { width: 1px; height: 16px; background: rgba(255,255,255,.14); flex: none; }
.o61-topbar__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.o61-msgr { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 6px; border-radius: 20px; background: rgba(255,255,255,.07); font-weight: 500; transition: background .16s var(--ease); }
.o61-shell .o61-msgr, .o61-shell .o61-msgr:hover, .o61-shell .o61-msgr:focus { color: #fff; }
.o61-msgr:hover { background: rgba(255,255,255,.16); }
.o61-msgr__tg { width: 18px; height: 18px; border-radius: 50%; background: #2AA3E0; display: grid; place-items: center; }
.o61-msgr__tg svg { width: 11px; height: 11px; fill: #fff; stroke: none; margin-left: -1px; }
.o61-msgr__max { height: 18px; padding: 0 5px; border-radius: 6px; background: linear-gradient(135deg, #2A5FE0, #6E35E8); color: #fff; font: 800 10px/18px var(--f-head); letter-spacing: .04em; }
/* WhatsApp (13.11): зелёный кружок, как у Telegram — голубой; значок #o61i-wa из спрайта оболочки */
.o61-msgr__wa { width: 18px; height: 18px; border-radius: 50%; background: #1FA855; display: grid; place-items: center; flex: none; }
.o61-msgr__wa svg { width: 12px; height: 12px; fill: #fff; stroke: none; }
/* верхняя полоса: три мессенджера, телефон и часы. Подписи «WhatsApp», «Telegram» — только на ≥1440, уже — значки
   (в ряд не влезало на 1280 вместе с «Склад в Ростове-на-Дону»); MAX — сам бейдж с подписью */
.o61-msgr:has(.o61-msgr__max:only-child) { padding: 0 4px; }
@media (max-width: 1439px) {
  .o61-topbar .o61-msgr { padding: 0 4px; gap: 0; }
  .o61-topbar .o61-msgr__txt { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .o61-topbar__right { gap: 10px; }
}
.o61-topbar__phone { font: 700 15px/1 var(--f-head); letter-spacing: .01em; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.o61-shell .o61-topbar__phone, .o61-shell .o61-topbar__phone:hover, .o61-shell .o61-topbar__phone:focus { color: #fff; }
.o61-topbar__phone:hover { opacity: .85; }
.o61-topbar__phone .o61-ico { color: var(--gold-400); width: 17px; height: 17px; }
.o61-topbar__hours { color: #9DAAC6; }
.o61-topbar :focus-visible { outline-color: var(--gold-400) !important; }
/* выбор города (ProgRoman): разметка модуля, у нас только цвета тёмной полосы и подсказка «Ваш город?» под ним */
.o61-topbar__city { flex: none; white-space: nowrap; }
/* с городом полоса не влезала (на 1440 обрезались часы): «Склад в Ростове-на-Дону» убираем, город рядом говорит о том же */
.o61-topbar--city .o61-topbar__opt3 { display: none; }
.o61-topbar__city .prmn-cmngr__title { display: inline-flex; align-items: center; gap: 6px; }
.o61-topbar__city .prmn-cmngr__title-text:empty { display: none; }
.o61-shell .o61-topbar__city .prmn-cmngr__city { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; border-bottom: 1px dashed rgba(242,193,78,.6); }
.o61-shell .o61-topbar__city .prmn-cmngr__city:hover { color: var(--gold-400); }
/* шрифта значков темы в оболочке нет: метка модуля рисуется нашей иконкой o61i-pin через маску */
.o61-topbar__city .prmn-cmngr__city .fa { display: inline-block; width: 17px; height: 17px; font-size: 0; background: var(--gold-400); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M12 21s-6.5-6-6.5-11a6.5 6.5 0 0 1 13 0c0 5-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M12 21s-6.5-6-6.5-11a6.5 6.5 0 0 1 13 0c0 5-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.4'/%3E%3C/svg%3E") center / contain no-repeat; }
.o61-topbar__city .prmn-cmngr__city .fa::before { content: none; }
.o61-topbar__city .prmn-cmngr__confirm { top: 30px; left: 0; color: #1B2440; font-size: 15px; border-radius: 10px; border-color: #E3E7F0; box-shadow: 0 12px 32px rgba(11,20,48,.18); }

/* ---------- шапка ---------- */
.o61-header { position: relative; z-index: 30; background: #fff; color: var(--ink-900); }
.o61-header__row { display: flex; align-items: center; gap: 22px; height: 92px; }
.o61-logo { display: flex; align-items: center; gap: 14px; flex: none; }
.o61-logo img { width: 150px; height: auto; display: block; }
.o61-logo__desc { font: 400 13px/1.3 var(--f-ui); color: var(--ink-500); max-width: 150px; border-left: 1px solid var(--line); padding-left: 14px; }

.o61-search { position: relative; flex: 1; min-width: 240px; max-width: 520px; margin: 0; }
.o61-search__field { display: flex; align-items: center; height: 50px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--bg-soft); transition: border-color .16s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease); }
.o61-search__field:focus-within { border-color: var(--blue-600); background: #fff; box-shadow: 0 0 0 4px rgba(29,87,219,.12); }
.o61-shell .o61-search input[type="search"] { flex: 1; min-width: 0; height: 100%; border: 0; background: none; padding: 0 16px; font: 400 15px/1 var(--f-ui); color: var(--ink-900); outline: none; box-shadow: none; -webkit-appearance: none; appearance: none; }
.o61-search input::placeholder { color: var(--ink-500); opacity: 1; }
.o61-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.o61-shell .o61-search__btn { width: 44px; height: 40px; margin-right: 4px; border-radius: 10px; display: grid; place-items: center; background: var(--navy-900); color: #fff; flex: none; transition: background .16s var(--ease); }
.o61-shell .o61-search__btn:hover { background: var(--blue-600); }

.o61-suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-3); padding: 8px; display: none; z-index: 60; max-height: min(70vh, 520px); overflow: auto; }
.o61-search.is-open .o61-suggest { display: block; animation: o61-drop .2s var(--ease); }
@keyframes o61-drop { from { opacity: 0; transform: translateY(-6px); } }
.o61-suggest__item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--ink-900); }
.o61-shell .o61-suggest__item:hover, .o61-shell .o61-suggest__item:focus, .o61-suggest__item.is-active { background: var(--blue-50); color: var(--ink-900); }
.o61-suggest__item img { width: 56px; height: 42px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); flex: none; }
.o61-suggest__txt { min-width: 0; }
.o61-suggest__name { display: block; font: 500 14px/1.3 var(--f-ui); }
.o61-suggest__name mark { background: var(--gold-300); color: inherit; border-radius: 3px; padding: 0 1px; }
.o61-suggest__meta { display: block; font-size: 12px; color: var(--ink-500); }
.o61-suggest__price { margin-left: auto; font: 700 15px/1 var(--f-head); white-space: nowrap; padding-left: 8px; }
.o61-suggest__all { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; padding: 10px; border-radius: 10px; font: 600 14px/1 var(--f-ui); }
.o61-shell .o61-suggest__all, .o61-shell .o61-suggest__all:hover { color: var(--blue-600); }
.o61-suggest__all:hover, .o61-suggest__all.is-active { background: var(--blue-50); }
.o61-suggest__empty, .o61-suggest__load { padding: 16px 12px; font-size: 14px; color: var(--ink-700); }
.o61-suggest__load { color: var(--ink-500); }

.o61-hactions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.o61-hact { display: flex; align-items: center; gap: 9px; padding: 8px 10px; white-space: nowrap; text-align: left; border-radius: 12px; font: 400 13px/1.25 var(--f-ui); position: relative; transition: background .16s var(--ease), color .16s var(--ease); }
.o61-shell .o61-hact { color: var(--ink-700); }
.o61-shell .o61-hact:hover, .o61-shell .o61-hact:focus-visible { background: var(--bg-soft); color: var(--blue-600); }
.o61-hact .o61-ico { width: 24px; height: 24px; color: var(--navy-900); transition: color .16s var(--ease); }
.o61-hact:hover .o61-ico { color: var(--blue-600); }
.o61-hact__txt b { font-weight: 600; color: var(--ink-900); display: inline-block; max-width: 130px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.o61-hact__badge { position: absolute; top: 2px; left: 26px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--blue-600); color: #fff; font: 700 11px/18px var(--f-ui); text-align: center; }
.o61-hact--tool { border: 1px solid var(--line); }
.o61-hact--tool .o61-ico { color: var(--blue-600); }

/* кабинет вошедшего: выпадашка «Мои заказы / Выйти» */
.o61-acc { position: relative; display: flex; align-items: center; }
.o61-acc .o61-hact { padding-right: 6px; }
.o61-shell .o61-acc__toggle { width: 26px; height: 40px; margin-left: 0; border-radius: 8px; display: grid; place-items: center; color: var(--ink-500); }
.o61-shell .o61-acc__toggle:hover { color: var(--blue-600); background: var(--bg-soft); }
.o61-acc__toggle .o61-ico { width: 16px; height: 16px; transition: transform .16s var(--ease); }
.o61-acc.is-open .o61-acc__toggle .o61-ico { transform: rotate(180deg); }
.o61-acc__menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3); padding: 6px; z-index: 60; animation: o61-drop .18s var(--ease); }
.o61-acc__menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font: 500 14px/1.2 var(--f-ui); }
.o61-shell .o61-acc__menu a { color: var(--ink-900); }
.o61-shell .o61-acc__menu a:hover, .o61-shell .o61-acc__menu a:focus-visible { background: var(--blue-50); color: var(--blue-600); }
.o61-acc__menu .o61-ico { width: 18px; height: 18px; color: var(--blue-600); }

/* корзина в шапке и в нижней панели: сумма + шкала до минимального заказа */
.o61-cartbox { flex: none; }
.o61-shell #cart.o61-cart { margin: 0; position: relative; }
.o61-shell #cart.o61-cart::after { content: none; display: none; }
.o61-cartw { display: flex; align-items: center; gap: 14px; padding: 9px 16px 9px 12px; border-radius: 14px; background: var(--navy-900); color: #fff; min-width: 232px; text-align: left; position: relative; font: inherit; border: 0; cursor: pointer; transition: background .16s var(--ease); }
.o61-shell .o61-cartw, .o61-shell .o61-cartw:hover, .o61-shell .o61-cartw:focus { color: #fff; }
.o61-cartw:hover { background: var(--navy-800); }
.o61-cartw:focus-visible { outline: 2px solid var(--gold-400) !important; outline-offset: 2px; }
.o61-cartw__ico { position: relative; flex: none; display: block; line-height: 0; }
.o61-cartw__ico .o61-ico { width: 26px; height: 26px; color: var(--gold-400); }
/* бейдж на иконке справа сверху; растёт влево, поэтому «999+» не заходит на сумму */
.o61-cartw__badge { position: absolute; top: -15px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold-400); color: var(--navy-950); font: 800 11px/18px var(--f-ui); text-align: center; white-space: nowrap; box-shadow: 0 0 0 2px var(--navy-900); }
.o61-cartw__body { flex: 1; min-width: 0; display: block; }
.o61-cartw__sum { display: block; font: 800 16px/1.1 var(--f-head); letter-spacing: .01em; }
.o61-cartw__hint { display: block; font: 400 11.5px/1.35 var(--f-ui); color: #B8C4DE; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o61-cartw__hint b { color: var(--gold-300); font-weight: 600; }
.o61-cartw.is-ready .o61-cartw__hint { color: #8FE0B0; }
.o61-cartw.is-bump { animation: o61-bump .45s var(--ease); }
@keyframes o61-bump { 40% { transform: scale(1.05); } }

/* мини-корзина темы (шторка справа): полоса прогресса до минимума вместо красной плашки */
.o61-cartmin { margin: 0 0 1.6rem; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); font: 400 13px/1.35 var(--f-ui); color: var(--ink-700); }
.o61-cartmin__row { display: flex; justify-content: space-between; gap: 10px; }
.o61-cartmin__row b { color: var(--ink-900); font-weight: 700; }
.o61-cartmin__row .o61-num { color: var(--ink-500); white-space: nowrap; }
.o61-cartmin.is-ready { background: var(--ok-100); border-color: #BFE6CF; color: var(--ok-600); }

.o61-mhead { display: none; }

/* ---------- меню ---------- */
.o61-nav { position: relative; z-index: 25; background: #fff; border-bottom: 1px solid var(--line); }
.o61-nav .o61-wrap { display: flex; align-items: center; gap: 6px; height: 64px; }
.o61-catwrap { position: relative; flex: none; }
.o61-nav__cat { width: 248px; height: 48px; justify-content: flex-start; padding: 0 18px; gap: 14px; }
.o61-nav__cat .o61-ico { width: 22px; height: 22px; }
.o61-nav__cat .o61-nav__chev { width: 18px; height: 18px; margin-left: auto; opacity: .8; transition: transform .2s var(--ease); }
.o61-catwrap.is-open .o61-nav__chev { transform: rotate(180deg); }
.o61-nav__links { display: flex; align-items: center; margin: 0 auto 0 8px; min-width: 0; }
.o61-nav__links a { padding: 10px 11px; border-radius: 10px; font: 500 14.5px/1.2 var(--f-ui); white-space: nowrap; position: relative; transition: color .16s var(--ease); }
.o61-shell .o61-nav__links a { color: var(--ink-900); }
.o61-shell .o61-nav__links a:hover { color: var(--blue-600); }
.o61-nav__links a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--gold-400); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.o61-nav__links a:hover::after, .o61-nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.o61-nav__links a.is-key { font-weight: 600; }
.o61-nav__cta { flex: none; }
/* «Ещё»: только на 992–1199, где часть пунктов не помещается в строку */
.o61-nav__more { display: none; position: relative; flex: none; }
.o61-shell .o61-nav__morebtn { display: inline-flex; align-items: center; gap: 4px; padding: 10px 8px; border: 0; border-radius: 10px; background: none; font: 500 14px/1.2 var(--f-ui); color: var(--ink-900); cursor: pointer; white-space: nowrap; transition: color .16s var(--ease); }
.o61-shell .o61-nav__morebtn:hover { color: var(--blue-600); }
.o61-nav__morebtn .o61-ico { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.o61-nav__more.is-open .o61-nav__morebtn .o61-ico { transform: rotate(180deg); }
.o61-nav__morepanel { position: absolute; top: calc(100% + 10px); left: 0; min-width: 190px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3); padding: 6px; z-index: 70; animation: o61-drop .2s var(--ease); }
.o61-nav__links .o61-nav__morepanel a { display: flex; padding: 10px 12px; border-radius: 10px; font: 500 14px/1.2 var(--f-ui); white-space: nowrap; }
.o61-nav__links .o61-nav__morepanel a::after { display: none; }
.o61-shell .o61-nav__links .o61-nav__morepanel a:hover, .o61-shell .o61-nav__links .o61-nav__morepanel a:focus-visible { background: var(--blue-50); color: var(--blue-600); }
.o61-nav__links .o61-nav__morepanel a.o61-m-opt2 { display: none; }

/* выпадающий каталог (ПК) */
.o61-catpanel { position: absolute; top: calc(100% + 8px); left: 0; width: min(880px, calc(100vw - 48px)); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-3); padding: 18px; z-index: 70; animation: o61-drop .2s var(--ease); }
.o61-catpanel__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 18px; }
.o61-catpanel__group.has-children { grid-column: span 2; grid-row: span 3; display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 2px 18px; padding: 6px; border-radius: 16px; background: var(--bg-soft); }
.o61-catpanel__group.has-children .o61-catpanel__top { grid-column: 1 / -1; font: 700 16px/1.2 var(--f-head); }
.o61-catpanel__top, .o61-catpanel__sub a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font: 500 15px/1.25 var(--f-ui); transition: background .16s var(--ease), color .16s var(--ease); }
.o61-shell .o61-catpanel__top, .o61-shell .o61-catpanel__sub a { color: var(--ink-900); }
.o61-shell .o61-catpanel__top:hover, .o61-shell .o61-catpanel__sub a:hover, .o61-shell .o61-catpanel__top:focus-visible, .o61-shell .o61-catpanel__sub a:focus-visible { background: var(--blue-50); color: var(--blue-600); }
.o61-catpanel__group.has-children .o61-catpanel__sub a:hover { background: #fff; }
.o61-catpanel .o61-ico { width: 24px; height: 24px; color: var(--navy-800); stroke-width: 1.4; }
.o61-catpanel a:hover .o61-ico { color: var(--blue-600); }
.o61-catpanel__sub { list-style: none; margin: 0; padding: 0; display: contents; }

/* ---------- подвал ---------- */
.o61-footer { margin-top: 80px; background: var(--navy-950); color: #B8C4DE; padding: 56px 0 28px; font: 400 14px/1.5 var(--f-ui); }
.o61-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.o61-footer__logo img { width: 150px; height: auto; display: block; }
.o61-footer p { margin: 14px 0 0; max-width: 300px; line-height: 1.55; }
.o61-footer__req { margin-top: 16px; max-width: 340px; font-size: 12.5px; line-height: 1.55; color: #8E9AB5; }
.o61-shell .o61-footer__req a { color: #8E9AB5; text-decoration: underline; }
.o61-footer__h { margin: 0 0 14px; font: 700 14px/1.3 var(--f-head); color: #fff; letter-spacing: .02em; }
.o61-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.o61-shell .o61-footer a { color: #B8C4DE; transition: color .16s var(--ease); }
.o61-shell .o61-footer a:hover, .o61-shell .o61-footer a:focus-visible { color: var(--gold-300); }
.o61-shell .o61-footer .o61-footer__ph { font: 800 20px/1.2 var(--f-head); color: #fff; white-space: nowrap; }
.o61-footer__more, .o61-footer__cb { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.o61-footer__more .o61-ico { width: 16px; height: 16px; }
.o61-footer__cb .o61-ico { width: 17px; height: 17px; color: var(--gold-400); }
/* мессенджеры подвала (13.11): ряд квадратиков 40×40 со значком в фирменном цвете */
.o61-footer__msg { display: flex; flex-wrap: wrap; gap: 8px; }
.o61-footer__m { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 10px; background: rgba(255,255,255,.08); transition: background-color .16s var(--ease); }
.o61-footer__m .o61-msgr__wa, .o61-footer__m .o61-msgr__tg { width: 22px; height: 22px; }
.o61-footer__m .o61-msgr__wa svg { width: 14px; height: 14px; }
.o61-footer__m .o61-msgr__tg svg { width: 13px; height: 13px; }
.o61-footer__m:active { background: rgba(255,255,255,.16); }
@media (hover: hover) and (pointer: fine) { .o61-footer__m:hover { background: rgba(255,255,255,.16); } }
.o61-footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 12.5px; color: #8E9AB5; }
.o61-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (min-width: 992px) { .o61-footer__bottom { padding-right: 84px; } } /* не под мультикнопкой */
.o61-shell .o61-footer__legal a { color: #8E9AB5; }
.o61-footer :focus-visible { outline-color: var(--gold-400) !important; }

/* подписка на рассылку (форма темы) — компактной строкой внутри подвала */
.o61-fsub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 10px 32px; align-items: center; margin-top: 36px; padding: 20px 0 0; border-top: 1px solid rgba(255,255,255,.1); }
.o61-fsub__t { font: 700 15px/1.3 var(--f-head); color: #fff; }
.o61-fsub__t small { display: block; margin-top: 3px; font: 400 13px/1.4 var(--f-ui); color: #9DAAC6; }
.o61-fsub__f { display: flex; gap: 8px; min-width: 0; }
.o61-shell .o61-fsub__input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #fff; font: 400 14px/1 var(--f-ui); outline: none; box-shadow: none; transition: border-color .16s var(--ease), background .16s var(--ease); }
.o61-fsub__input::placeholder { color: #8E9AB5; opacity: 1; }
.o61-shell .o61-fsub__input:focus { border-color: var(--gold-400); background: rgba(255,255,255,.09); }
.o61-fsub__f .o61-btn { flex: none; }
.o61-fsub__guard { grid-column: 1 / -1; min-width: 0; font-size: 12.5px; line-height: 1.45; color: #8E9AB5; }
.o61-fsub__guard .js-subscribe-guard { margin-top: 0 !important; }
.o61-fsub__guard .pdn-consent { color: #B8C4DE; margin-bottom: 6px !important; }
.o61-shell .o61-fsub__guard a { color: #B8C4DE; text-decoration: underline; text-underline-offset: 2px; }
.o61-shell .o61-fsub__guard a:hover { color: var(--gold-300); }
.o61-fsub__note { margin-top: 2px; }
@media (max-width: 991px) {
  .o61-fsub { grid-template-columns: 1fr; margin-top: 28px; }
}

/* ---------- мультикнопка связи ---------- */
.o61-mc { pointer-events: none; position: fixed; right: 24px; bottom: 24px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.o61-mc__list { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.o61-mc__item { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 16px; border-radius: 999px; background: #fff; box-shadow: var(--sh-3); font: 600 14px/1 var(--f-ui); opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .2s var(--ease), transform .2s var(--ease); white-space: nowrap; }
.o61-shell .o61-mc__item { color: var(--ink-900); }
.o61-shell .o61-mc__item:hover { color: var(--blue-600); }
.o61-mc__i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; }
.o61-mc__i svg { width: 16px; height: 16px; }
.o61-mc__i--telegram { background: #2AA3E0; } .o61-mc__i--telegram svg { fill: #fff; stroke: none; }
.o61-mc__i--whatsapp { background: #1FA855; } .o61-mc__i--whatsapp svg { fill: #fff; stroke: none; width: 18px; height: 18px; }
.o61-mc__i--vk { background: #0077FF; } .o61-mc__i--vk svg { fill: #fff; stroke: none; width: 18px; height: 18px; }
.o61-mc__i--max { background: linear-gradient(135deg, #2A5FE0, #6E35E8); } .o61-mc__i--max b { font: 800 9px var(--f-head); }
.o61-mc__i--phone { background: var(--navy-900); }
.o61-mc__i--mail { background: var(--blue-600); }
.o61-mc__i--cb { background: var(--gold-500); color: var(--navy-950); }
.o61-mc.is-open .o61-mc__list { pointer-events: auto; }
.o61-mc.is-open .o61-mc__item { opacity: 1; transform: none; }
.o61-mc.is-open .o61-mc__item:nth-child(2) { transition-delay: .03s; }
.o61-mc.is-open .o61-mc__item:nth-child(3) { transition-delay: .06s; }
.o61-mc.is-open .o61-mc__item:nth-child(4) { transition-delay: .09s; }
.o61-mc.is-open .o61-mc__item:nth-child(5) { transition-delay: .12s; }
.o61-mc.is-open .o61-mc__item:nth-child(n+6) { transition-delay: .15s; }
.o61-shell .o61-mc__btn { pointer-events: auto; width: 62px; height: 62px; border-radius: 50%; background: var(--g-gold); color: var(--navy-950); display: grid; place-items: center; box-shadow: var(--sh-gold), 0 16px 32px -12px rgba(6,18,41,.5); position: relative; transition: transform .2s var(--ease); }
.o61-mc__btn:hover { transform: scale(1.05); }
.o61-mc__btn::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(242,193,78,.5); animation: o61-ring 2.4s var(--ease) infinite; }
@keyframes o61-ring { 0% { transform: scale(.9); opacity: 1; } 80%, 100% { transform: scale(1.25); opacity: 0; } }
.o61-mc__btn .o61-ico { width: 26px; height: 26px; transition: transform .2s var(--ease), opacity .2s; }
.o61-mc__btn .o61-mc__x { position: absolute; opacity: 0; transform: rotate(-90deg); }
.o61-mc.is-open .o61-mc__btn .o61-mc__x { opacity: 1; transform: none; }
.o61-mc.is-open .o61-mc__btn .o61-mc__chat { opacity: 0; transform: rotate(90deg); }
.o61-mc.is-open .o61-mc__btn::before { display: none; }

/* мобильные элементы на ПК скрыты */
.o61-msearch, .o61-mbar, .o61-sheet, .o61-sheet-bg { display: none; }

/* ---------- ПК: контейнер 1320 px, поэтому на любой ширине от 1360 строка шапки одной и той же ширины ----------
   Раньше «широкие» значения (подпись у логотипа, кнопка каталога 248, отступы 11) включались от 1500 и не влезали:
   «Контакты» уходили под кнопку, поиск сжимался до 158 px. Компактные значения теперь базовые. */
.o61-logo__desc { display: none; }
.o61-nav__cat { width: 232px; }
.o61-nav__links { margin-left: 4px; }
.o61-nav__links a { padding: 10px 9px; font-size: 14px; }
.o61-nav__links a::after { left: 9px; right: 9px; }
@media (max-width: 1399px) {
  .o61-nav__links a { padding: 10px 8px; }
  .o61-nav__links a::after { left: 8px; right: 8px; }
}
@media (max-width: 1359px) {
  .o61-nav__cta-x { display: none; } /* «Стать клиентом»; полное название остаётся в aria-label и на ширинах от 1360 */
}
@media (max-width: 1279px) {
  /* подписи прячем только визуально: у ссылок-иконок остаётся доступное имя */
  .o61-hact__txt { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .o61-nav__cat { width: auto; }
  .o61-nav__links a { padding: 10px 8px; font-size: 14px; }
  .o61-nav__links a::after { left: 8px; right: 8px; }
  .o61-topbar__opt3 { display: none; }
}
@media (max-width: 1199px) {
  .o61-header__row { gap: 16px; }
  .o61-nav__links .o61-nav__opt { display: none; }
  .o61-nav__more { display: block; }
  .o61-topbar__opt2 { display: none; }
  .o61-nav__cat { padding: 0 14px; gap: 10px; }
  .o61-nav__cat .o61-nav__chev { display: none; }
  .o61-nav__cta { --h: 44px; padding: 0 16px; font-size: 15px; }
}

@media (max-width: 1099px) {
  .o61-nav__links .o61-nav__opt2 { display: none; }
  .o61-nav__links .o61-nav__morepanel a.o61-m-opt2 { display: flex; }
}

/* ---------- телефон и планшет (< 992): компактная шапка, крупный поиск, нижняя панель, шторки ---------- */
@media (max-width: 991px) {
  body.o61-shell { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .o61-wrap { padding: 0 16px; }
  .o61-topbar, .o61-nav, .o61-search, .o61-hactions, .o61-cartbox, .o61-logo__desc { display: none; }
  .o61-header { position: sticky; top: 0; box-shadow: 0 1px 0 var(--line); z-index: 90; }
  .o61-header__row { height: 60px; gap: 10px; }
  .o61-logo img { width: 104px; }
  .o61-mhead { margin-left: auto; display: flex; gap: 4px; }
  .o61-shell .o61-mhead__b { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--navy-900); position: relative; }
  .o61-mhead__b:active { background: var(--bg-soft); }
  .o61-mhead__b .o61-ico { width: 24px; height: 24px; }
  .o61-msearch { display: block; background: #fff; padding: 0 16px 12px; }
  .o61-msearch .o61-search { display: block; max-width: none; min-width: 0; }
  .o61-msearch .o61-search__field { height: 52px; }
  .o61-shell .o61-msearch .o61-search input[type="search"] { font-size: 16px; } /* 16px: iOS не зумит поле */
  .o61-msearch .o61-suggest { max-height: 60vh; }

  /* у темы body { height: 100% } — его padding-bottom не попадает в прокрутку, поэтому место под нижнюю панель даёт сам подвал */
  .o61-footer { margin-top: 48px; padding: 36px 0 calc(24px + 84px + env(safe-area-inset-bottom) + var(--o61-ck, 0px)); }
  .o61-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .o61-footer__grid > :first-child, .o61-footer__grid > :last-child { grid-column: 1 / -1; }
  .o61-footer__bottom { flex-direction: column; gap: 10px; }

  /* мультикнопка открывается кнопкой в шапке */
  .o61-mc { right: 12px; top: 64px; bottom: auto; z-index: 95; }
  .o61-shell .o61-mc__btn { display: none; }
  .o61-mc__item { height: 44px; }

  /* нижняя панель — инструмент закупки */
  .o61-mbar { display: grid; grid-template-columns: repeat(3, 1fr) 2.2fr; position: fixed; left: 0; right: 0; bottom: var(--o61-ck, 0px); z-index: 85; background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 4px; box-shadow: 0 -10px 30px -12px rgba(10,27,61,.18); }
  .o61-shell .o61-mbar__b { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 56px; border-radius: 12px; font: 600 12px/1.15 var(--f-ui); color: var(--ink-700); text-align: center; }
  .o61-mbar__b .o61-ico { width: 24px; height: 24px; color: var(--navy-900); }
  .o61-mbar__b:active, .o61-mbar__b[aria-expanded="true"] { background: var(--bg-soft); }
  .o61-cartw--bar { min-width: 0; height: 56px; padding: 8px 10px 8px 8px; gap: 9px; }
  .o61-cartw--bar .o61-cartw__ico .o61-ico { width: 22px; height: 22px; }
  .o61-cartw--bar .o61-cartw__badge { top: -14px; right: -6px; min-width: 16px; height: 16px; line-height: 16px; font-size: 10px; padding: 0 4px; }
  .o61-cartw--bar .o61-cartw__sum { font-size: 15px; }
  .o61-cartw--bar .o61-cartw__hint { font-size: 12px; }
  .o61-cartw--bar .o61-scale { margin-top: 3px; }

  /* шторки: каталог и меню */
  .o61-sheet { display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; max-height: 88vh; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -20px 50px -10px rgba(6,18,41,.4); transform: translateY(102%); visibility: hidden; transition: transform .32s var(--ease), visibility .32s; color: var(--ink-900); font: 400 15px/1.4 var(--f-ui); }
  .o61-sheet[hidden] { display: flex !important; }
  .o61-sheet.is-open { transform: none; visibility: visible; }
  .o61-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 10px 20px; position: relative; flex: none; }
  .o61-sheet__head::before { content: ""; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line-2); }
  .o61-sheet__t { font: 800 20px/1.2 var(--f-head); outline: none; }
  .o61-shell .o61-sheet__x { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--navy-900); }
  .o61-sheet__body { overflow: auto; overscroll-behavior: contain; padding: 0 12px calc(16px + env(safe-area-inset-bottom)); flex: 1; }
  .o61-sheet-bg { display: block; position: fixed; inset: 0; z-index: 115; background: rgba(6,18,41,.55); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
  .o61-sheet-bg[hidden] { display: block !important; }
  .o61-sheet-on .o61-sheet-bg { opacity: 1; pointer-events: auto; }
  body.o61-sheet-on { overflow: hidden; }

  .o61-mcat { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .o61-mcat > li { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
  .o61-mcat__top { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 14px; font: 700 16px/1.25 var(--f-head); }
  .o61-shell .o61-mcat__top { color: var(--ink-900); }
  .o61-mcat__top:active { background: var(--blue-50); }
  .o61-mcat .o61-ico { width: 24px; height: 24px; color: var(--navy-800); stroke-width: 1.4; }
  .o61-mcat__go { margin-left: auto; width: 18px !important; height: 18px !important; color: var(--ink-400) !important; }
  .o61-mcat__sub { list-style: none; margin: 0; padding: 0 6px 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--bg-soft); padding-top: 6px; border-top: 1px solid var(--line); }
  .o61-mcat__sub a { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font: 600 13.5px/1.2 var(--f-ui); }
  .o61-shell .o61-mcat__sub a { color: var(--ink-900); }
  .o61-mcat__sub a:active { border-color: var(--blue-600); }
  .o61-mcat__sub .o61-ico { width: 20px; height: 20px; color: var(--blue-600); }

  .o61-mmenu__acc { padding: 4px 4px 12px; }
  .o61-mmenu__user { display: flex; align-items: center; gap: 12px; padding: 8px 4px 12px; font-size: 13px; }
  .o61-shell .o61-mmenu__user { color: var(--ink-500); }
  .o61-mmenu__user b { display: block; font: 700 16px/1.25 var(--f-head); color: var(--ink-900); }
  .o61-mmenu__user .o61-ico { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--bg-tint); color: var(--navy-900); }
  .o61-mmenu__row { display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; }
  .o61-mmenu__row .o61-btn { width: 100%; padding: 0 10px; }
  .o61-shell .o61-mmenu__cat { width: 100%; display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 16px; border-radius: 14px; background: var(--blue-600); color: #fff; font: 700 16px/1 var(--f-ui); }
  .o61-mmenu__cat .o61-ico { width: 22px; height: 22px; }
  .o61-mmenu__cat .o61-mcat__go { color: rgba(255,255,255,.8) !important; }
  .o61-mmenu__links { list-style: none; margin: 8px 0 0; padding: 0; }
  .o61-mmenu__links a { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 8px; border-bottom: 1px solid var(--line); font: 500 15.5px/1.25 var(--f-ui); }
  .o61-shell .o61-mmenu__links a { color: var(--ink-900); }
  .o61-mmenu__links .o61-ico { width: 18px; height: 18px; color: var(--ink-400); }
  .o61-mmenu__contacts { margin-top: 14px; padding: 16px; border-radius: 16px; background: var(--navy-950); color: #C9D3EA; display: grid; gap: 8px; }
  .o61-mmenu__ph { display: inline-flex; align-items: center; gap: 10px; font: 800 20px/1.2 var(--f-head); }
  .o61-shell .o61-mmenu__ph { color: #fff; }
  .o61-mmenu__ph .o61-ico { color: var(--gold-400); }
  .o61-mmenu__hours { font-size: 13px; color: #9DAAC6; }
  .o61-mmenu__msg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
  .o61-mmenu__msg a { height: 38px; padding: 0 14px; border-radius: 10px; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); font: 600 14px/1 var(--f-ui); }
  .o61-mmenu__msg a:has(> .o61-msgr__wa, > .o61-msgr__tg, > .o61-msgr__max) { padding-left: 10px; } /* значок мессенджера, 13.11 */
  .o61-shell .o61-mmenu__msg a { color: #fff; }
}

@media (max-width: 767px) {
  .o61-footer__grid { gap: 20px 16px; }
}
@media (max-width: 360px) {
  .o61-mbar { grid-template-columns: repeat(3, 1fr) 2fr; }
  .o61-shell .o61-mbar__b { font-size: 12px; }
}

/* ---------- заплатки темы (только при новой оболочке) ---------- */
/* .app у темы overflow: hidden — из-за этого не работает липкая шапка на телефоне. clip режет так же, но не ломает sticky. */
.o61-shell .app { overflow: visible; overflow-x: clip; }
/* Слайдер главной темы заезжает на 2,5rem вверх под меню темы; под новой шапкой он перекрывал поиск. Этап 2 заменит главную. */
.o61-shell .slider .slides--width-full { margin-top: 0; }
/* Шторка мини-корзины темы живёт внутри шапки (у шапки свой z-index), поэтому поднимаем всю шапку, пока шторка открыта,
   иначе мультикнопка ложится поверх кнопок «Оформление заказа». */
.o61-shell .cart__dropdown { z-index: 200; font-family: var(--f-ui); }
.o61-shell .o61-header:has(#cart.is-open), .is-cart-open .o61-shell .o61-header { z-index: 210; }
/* Кнопка «наверх» темы не должна прятаться под нижней панелью и мультикнопкой. */
.o61-shell .scroll-to-top { bottom: 100px !important; }
@media (max-width: 991px) { .o61-shell .scroll-to-top { bottom: calc(96px + env(safe-area-inset-bottom) + var(--o61-ck, 0px)) !important; } }
/* Баннер cookie темы (инлайновые стили в common/footer.twig, разметку не трогаем) — в стиле сайта:
   тёмно-синяя карточка, «Принять» золотая, «Отказаться» контурная. ПК — слева внизу, не под мультикнопкой;
   телефон — компактно над нижней панелью. */
.o61-shell #cookie-consent { left: 24px !important; right: auto !important; bottom: 24px !important; max-width: 640px; padding: 14px 16px 14px 18px !important; border-radius: 16px; background: var(--navy-950) !important; color: #C9D3EA !important; box-shadow: var(--sh-3) !important; font: 400 13px/1.45 var(--f-ui) !important; z-index: 90 !important; }
.o61-shell #cookie-consent > div { gap: 12px 16px !important; flex-wrap: nowrap !important; max-width: none !important; }
.o61-shell #cookie-consent > div > div:first-child { flex: 1 1 auto !important; min-width: 0; }
.o61-shell #cookie-consent a { color: var(--gold-300) !important; text-underline-offset: 2px; }
.o61-shell #cookie-consent button { height: 38px; padding: 0 16px !important; border-radius: 10px !important; font: 600 14px/1 var(--f-ui) !important; white-space: nowrap; cursor: pointer; }
.o61-shell #cookie-accept { background: var(--g-gold) !important; color: var(--navy-950) !important; border: 0 !important; font-weight: 700 !important; }
.o61-shell #cookie-decline { background: transparent !important; color: #fff !important; border: 1px solid rgba(255,255,255,.34) !important; }
.o61-shell #cookie-decline:hover { border-color: rgba(255,255,255,.7) !important; }
.o61-shell #cookie-consent button:focus-visible { outline: 2px solid var(--gold-400) !important; outline-offset: 2px; }
/* --o61-ck: сколько пикселей от низа экрана занимает баннер (ставит скрипт в подвале; 0, пока баннера нет). Нижние липкие
   панели прибавляют её к своему bottom и сидят над баннером, а не под ним. Ниже она нигде не перебивается. */
:root { --o61-ck: 0px; }
@media (max-width: 991px) {
  /* телефон и планшет: баннер — самая нижняя полоса во всю ширину, нижняя панель и итоги поднимаются над ним */
  .o61-shell #cookie-consent { left: 0 !important; right: 0 !important; max-width: none; bottom: 0 !important; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)) 12px !important; border-radius: 14px 14px 0 0; font-size: 11.5px !important; line-height: 1.3 !important; }
  .o61-shell #cookie-consent > div { align-items: center !important; gap: 10px !important; }
  .o61-shell #cookie-consent > div > div:last-child { flex-direction: column !important; gap: 6px !important; }
  .o61-shell #cookie-consent button { height: 32px; padding: 0 10px !important; font-size: 12px !important; width: 100%; }
}

/* ---------- этап 9 ---------- */
/* skip-ссылка: видна только при фокусе с клавиатуры */
.o61-skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: var(--navy-900); font: 600 14px/1.2 var(--f-ui); box-shadow: var(--sh-3); transition: top .16s var(--ease); }
.o61-shell .o61-skip, .o61-shell .o61-skip:hover { color: #fff; text-decoration: none; }
.o61-skip:focus { top: 12px; outline: 2px solid var(--gold-400) !important; outline-offset: 2px; }
.o61-content-anchor { position: relative; height: 0; outline: none; scroll-margin-top: 76px; }

/* на телефоне в корзине и оформлении строка поиска скрыта; кнопка «Поиск» нижней панели её возвращает */
@media (max-width: 991px) {
  .o61-msearch.is-collapsed:not(.is-shown) { display: none; }
}

/* мини-корзина (шторка справа) в стиле сайта */
.o61-shell .o61-mcart { display: flex; flex-direction: column; width: 420px; max-width: 100vw; color: var(--ink-900); font: 400 14px/1.4 var(--f-ui); box-shadow: var(--sh-3); }
.is-cart-open .o61-shell .o61-mcart { box-shadow: 0 0 0 100vmax rgba(6,18,41,.45), var(--sh-3); }
.o61-shell .o61-mcart__head { flex: none; height: auto; display: flex; align-items: center; gap: 10px; padding: 18px 16px 14px 22px; border-bottom: 1px solid var(--line); }
.o61-shell .o61-mcart__t { margin: 0 auto 0 0; padding: 0; font: 800 22px/1.2 var(--f-head); color: var(--ink-900); }
.o61-shell .o61-mcart__clear { margin: 0; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; font: 600 13px/1 var(--f-ui); color: var(--ink-700); }
.o61-shell .o61-mcart__clear:hover { border-color: var(--err-600); background: #fff; color: var(--err-600); }
.o61-shell .o61-mcart__x { position: static; width: 40px; height: 40px; line-height: 0; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--navy-900); flex: none; }
.o61-shell .o61-mcart__x:hover { background: var(--bg-tint); color: var(--navy-900); }
.o61-shell .o61-mcart__body { flex: 1; min-height: 0; height: auto; }
.o61-shell .o61-mcart__body::before, .o61-shell .o61-mcart__body::after { display: none; }
.o61-shell .o61-mcart .cart__scroll { height: 100%; padding: 14px 16px 16px 22px; overscroll-behavior: contain; }
.o61-shell .o61-mcart .o61-cartmin { margin: 0 0 12px; }
.o61-shell .o61-mcart__list { list-style: none; margin: 0; padding: 0; }
.o61-shell .o61-mcart__list > li:not(:last-child) { border-bottom: 1px solid var(--line); }
.o61-mitem { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) 32px; gap: 4px 12px; padding: 12px 0; }
.o61-mitem__img { grid-row: span 2; width: 72px; height: 54px; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; background: #fff; }
.o61-mitem__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.o61-mitem__img img[data-fit="contain"] { object-fit: contain; mix-blend-mode: multiply; } /* высокое фото целиком */
/* «Фото скоро будет»: модель без фото (карточка товара, промо-превью). Светлая рамка в пропорции фото, значок очков и мелкая подпись.
   В плитках каталога то же рисует .o61-card__noimg (catalog.css), в <img>-местах (рельсы, корзины, кабинет) - картинка из модели optik61_image::placeholder() */
.o61-noimg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%; background: var(--bg-soft); color: var(--ink-400); text-align: center; }
.o61-noimg .o61-ico { width: 56px; height: 56px; stroke-width: 1.2; }
.o61-noimg small { font: 500 13px/1.2 var(--f-ui); color: var(--ink-500); }
.o61-noimg--s { gap: 0; }
.o61-noimg--s .o61-ico { width: 28px; height: 28px; }
.o61-noimg--s small { display: none; }
.o61-mitem__desc { min-width: 0; }
.o61-mitem__name { display: block; font: 600 14px/1.3 var(--f-ui); }
.o61-shell .o61-mitem__name { color: var(--ink-900); }
.o61-shell a.o61-mitem__name:hover { color: var(--blue-600); }
.o61-mitem__meta { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-500); font-variant-numeric: tabular-nums; }
.o61-shell .o61-mitem__del { grid-column: 3; grid-row: 1; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-400); }
.o61-shell .o61-mitem__del:hover { color: var(--err-600); background: var(--err-100); }
.o61-mitem__del .o61-ico { width: 16px; height: 16px; }
.o61-mitem__row { grid-column: 2 / -1; display: flex; align-items: center; gap: 8px; }
.o61-mitem__unit { font-size: 12.5px; color: var(--ink-500); }
.o61-mitem__sum { margin-left: auto; font: 800 16px/1 var(--f-head); white-space: nowrap; }
.o61-shell .o61-mcart .jq-number { margin: 0; }
.o61-mcart__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 4px; padding: 14px 0 4px; border-top: 1px solid var(--line-2); color: var(--ink-500); font-size: 13.5px; }
.o61-mcart__total b { font: 800 22px/1 var(--f-head); color: var(--ink-900); white-space: nowrap; }
.o61-mcart__empty { display: grid; justify-items: center; gap: 6px; padding: 48px 12px; text-align: center; color: var(--ink-500); }
.o61-mcart__empty .o61-ico { width: 40px; height: 40px; color: var(--ink-400); }
.o61-mcart__empty b { font: 700 17px/1.3 var(--f-head); color: var(--ink-900); }
.o61-shell .o61-mcart__foot { flex: none; height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)) 22px; border-top: 1px solid var(--line); background: #fff; }
.o61-mcart__foot .o61-btn { width: 100%; padding: 0 12px; }
.o61-mcart__fast { grid-column: 1 / -1; justify-self: center; padding: 4px 8px; font: 600 13.5px/1.2 var(--f-ui); }
.o61-shell .o61-mcart__fast { color: var(--blue-600); }
.o61-shell .o61-mcart__fast:hover { color: var(--blue-500); text-decoration: underline; }

/* ==== этап 10, A: наложения и переносы (начало) ==== */
/* меню-шторка телефона: «Войти» и «Стать оптовым клиентом» в одну строку на 360 px (текст кнопки был на 2 px шире) */
@media (max-width: 389px) {
  .o61-mmenu__row { grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 6px; }
  .o61-mmenu__row .o61-btn { padding: 0 8px; font-size: 13.5px; gap: 6px; }
}
/* ==== этап 10, A: наложения и переносы (конец) ==== */

/* ==== кольцо фокуса с клавиатуры у кнопок ====
   Тема глушит его правилом `button:focus { outline: none !important }`, поэтому здесь тоже !important. Кольцо только по :focus-visible
   (клавиатура), после щелчка мышью его нет. Цвет — токены оболочки: синий на светлом, золотой на тёмных поверхностях
   (верхняя полоса, подвал, cookie-плашка); на тёмном тот же золотой уже задан правилами `.o61-topbar :focus-visible` и `.o61-footer :focus-visible`. */
.o61-shell { --o61-ring: var(--blue-500); }
.o61-shell .o61-topbar, .o61-shell .o61-footer, .o61-shell #cookie-consent { --o61-ring: var(--gold-400); }
.o61-shell button:focus-visible,
.o61-shell [role="button"]:focus-visible,
.o61-shell summary:focus-visible,
.o61-shell input[type="button"]:focus-visible,
.o61-shell input[type="submit"]:focus-visible { outline: 2px solid var(--o61-ring) !important; outline-offset: 2px; }

/* телефон: нижнее меню без размытия — фон и так 97 %, а размытие над прокручиваемыми фото заставляет их мигать (Игорь, 10.11) */
@media (max-width: 991px), (pointer: coarse) {
  .o61-mbar { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ==== ссылки внутри ярлыков согласий ====
   Ярлык (label.ui-check) целиком переключает галочку; документ открывает только ссылка внутри него: у согласия с документом
   «Я ознакомлен(а) с документом «…»» это попап, у согласия на ПДн — новая вкладка. Ссылка должна читаться как ссылка: правило
   `.o61-shell [class*="o61-"] a { text-decoration: none }` стирало подчёркивание в оформлении, регистрации, возврате и контактах,
   и название документа выглядело обычным словом предложения (клик по нему открывал попап вместо галочки). Специфичность выше
   (label.ui-check), цвета не трогаем: на светлом остаются синими, в подвале — своими.
   Второй селектор — самодельные ярлыки согласия на ПДн без класса ui-check (форма «Контакты» и отзыв на карточке, их разметку
   добавляют правила OCMOD, не тема): чекбокс pdn_agree и текст в span рядом. */
.o61-shell label.ui-check a,
.o61-shell label > input[name="pdn_agree"] ~ span a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; cursor: pointer; }
.o61-shell label.ui-check a:hover,
.o61-shell label > input[name="pdn_agree"] ~ span a:hover { text-decoration-thickness: 2px; }
.o61-shell label.ui-check a:focus-visible,
.o61-shell label > input[name="pdn_agree"] ~ span a:focus-visible { outline: 2px solid var(--o61-ring); outline-offset: 2px; border-radius: 3px; }

/* ---------- окно выбора города (ProgRoman CityManager, шаблон technics/.../citymanager/cities.twig), 14.11 ---------- */
.o61cy .o61cy__dialog { max-width: 920px; margin: 48px auto; padding: 0 16px; }
.o61cy.fade .o61cy__dialog { transform: translateY(18px) scale(.97); opacity: 0; transition: transform .45s cubic-bezier(.2,.9,.25,1.15), opacity .3s var(--ease); }
.o61cy.show .o61cy__dialog { transform: none; opacity: 1; }
.o61cy .o61cy__box { border: 0; border-radius: var(--r-28); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(6,18,41,.55), 0 10px 24px -10px rgba(6,18,41,.3); background: var(--bg); }
.o61cy__head { position: relative; padding: 28px 32px 22px; color: #fff; background: var(--g-navy); overflow: hidden; isolation: isolate; }
.o61cy__head::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(242,193,78,.35) 1px, transparent 1.4px); background-size: 18px 18px;
  -webkit-mask: radial-gradient(80% 120% at 85% 0%, #000 0%, transparent 70%); mask: radial-gradient(80% 120% at 85% 0%, #000 0%, transparent 70%); }
.o61cy__head::after { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -170px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,193,78,.22), transparent 65%); animation: o61cy-glow 6s ease-in-out infinite alternate; }
@keyframes o61cy-glow { to { transform: translate(-40px, 30px) scale(1.15); opacity: .7; } }
.o61cy__close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer; transition: background .2s var(--ease), transform .3s var(--ease); }
.o61cy__close:hover { background: rgba(255,255,255,.18); transform: rotate(90deg); }
/* стили модуля (progroman.citymanager.css): полупрозрачный чёрный крестик справа и поле поиска до 400px */
.o61cy .prmn-cmngr-cities__close { opacity: 1; float: none; color: #fff; text-shadow: none; filter: none; }
.o61cy .prmn-cmngr-cities__close:hover, .o61cy .prmn-cmngr-cities__close:focus { opacity: 1; color: #fff; }
.o61cy .prmn-cmngr-cities__search { max-width: none; }
.o61cy__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.o61cy__eyebrow { font: 700 12px/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-400); }
.o61cy__title { margin: 10px 0 20px; font: 800 30px/1.1 var(--f-head); letter-spacing: -.01em; color: #fff; }
.o61cy__route { display: flex; align-items: center; gap: 14px; }
.o61cy__node { display: flex; align-items: center; gap: 10px; flex: none; min-width: 0; font: 700 16px/1.15 var(--f-head); }
.o61cy__node small { display: block; font: 500 11px/1.3 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: #9DAAC6; }
.o61cy__pin { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--g-gold); box-shadow: 0 0 0 6px rgba(242,193,78,.15); }
.o61cy__pin svg { width: 20px; height: 20px; fill: none; stroke: var(--navy-950); stroke-width: 2; }
.o61cy__pin--to { background: rgba(255,255,255,.1); box-shadow: 0 0 0 6px rgba(255,255,255,.05); transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.o61cy__pin--to svg { stroke: #fff; }
.o61cy.is-aim .o61cy__pin--to { background: var(--g-gold); box-shadow: 0 0 0 6px rgba(242,193,78,.18); animation: o61cy-ping 1.4s ease-out infinite; }
.o61cy.is-aim .o61cy__pin--to svg { stroke: var(--navy-950); }
@keyframes o61cy-ping { 0% { box-shadow: 0 0 0 0 rgba(242,193,78,.5); } 100% { box-shadow: 0 0 0 14px rgba(242,193,78,0); } }
.o61cy__to { display: inline-block; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.o61cy__to.is-in { animation: o61cy-in .35s cubic-bezier(.2,.9,.25,1.2); }
@keyframes o61cy-in { from { opacity: 0; transform: translateY(8px); } }
.o61cy__road { position: relative; flex: 1 1 auto; height: 38px; min-width: 60px; }
.o61cy__road::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: repeating-linear-gradient(90deg, rgba(242,193,78,.85) 0 10px, transparent 10px 18px); background-size: 18px 2px; animation: o61cy-road 1s linear infinite; }
@keyframes o61cy-road { to { background-position: 18px 0; } }
.o61cy__truck { position: absolute; top: 50%; left: 0; width: 34px; height: 34px; margin-top: -19px; display: grid; place-items: center; border-radius: 10px;
  background: #fff; box-shadow: 0 8px 18px -6px rgba(0,0,0,.45); animation: o61cy-drive 4.2s cubic-bezier(.45,.05,.35,1) infinite; }
.o61cy__truck svg { width: 22px; height: 22px; fill: none; stroke: var(--navy-900); stroke-width: 1.8; stroke-linejoin: round; }
@keyframes o61cy-drive { 0% { left: 0; } 70%, 100% { left: calc(100% - 34px); } }
.o61cy.is-go .o61cy__truck { animation: o61cy-go .7s cubic-bezier(.6,0,.3,1) forwards; }
@keyframes o61cy-go { from { left: 0; } to { left: calc(100% - 34px); } }
.o61cy__facts { margin: 18px 0 0; font: 500 14px/1.4 var(--f-ui); color: #C9D3EA; }

.o61cy__body { padding: 22px 32px 30px; }
.o61cy__search { position: relative; margin: 0 0 18px; }
.o61cy__lens { position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; fill: none; stroke: var(--ink-500); stroke-width: 2; pointer-events: none; }
.o61cy .o61cy__q { width: 100%; height: 56px; padding: 0 130px 0 52px; border: 2px solid var(--line-2); border-radius: var(--r-16); background: var(--bg-soft);
  font: 500 17px/1 var(--f-ui); color: var(--ink-900); box-shadow: none; outline: none; transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease); }
.o61cy .o61cy__q:focus { border-color: var(--blue-600); background: #fff; box-shadow: 0 0 0 4px var(--blue-100); }
.o61cy__hint { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); padding: 5px 9px; border-radius: 8px; background: var(--bg-tint);
  font: 600 12px/1 var(--f-ui); color: var(--ink-500); opacity: 0; transition: opacity .2s var(--ease); pointer-events: none; }
.o61cy--filter:not(.o61cy--miss) .o61cy__hint { opacity: 1; }
.o61cy__empty { display: none; margin: -6px 0 14px; font: 500 14px/1.4 var(--f-ui); color: var(--ink-700); }
.o61cy--miss .o61cy__empty { display: block; }
/* подсказки справочника модуля — только когда в списке ничего не нашлось */
.o61cy .prmn-cmngr-cities__search-items { display: none !important; }
.o61cy--miss .prmn-cmngr-cities__search-items:not(:empty) { display: block !important; position: absolute; top: 60px !important; left: 0 !important; right: 0; z-index: 5;
  padding: 6px; border: 1px solid var(--line); border-radius: var(--r-12); box-shadow: var(--sh-3); }
.o61cy .prmn-cmngr-cities__search-item a, .o61cy .prmn-cmngr-cities__search-items li > a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink-900); }
.o61cy .prmn-cmngr-cities__search-item_selected a, .o61cy .prmn-cmngr-cities__search-items li > a:hover { background: var(--blue-50); }

/* шапка стоит, прокручивается тело: колонки списка с высотой без ограничения (иначе колонки уезжают вбок) */
.o61cy .o61cy__box { display: flex; flex-direction: column; height: min(780px, calc(100vh - 96px)); padding: 0; }
.o61cy__node--to { flex: 0 1 auto; }
.o61cy__node--to > span:last-child { min-width: 0; overflow: hidden; }
.o61cy__head { flex: none; }
.o61cy__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.o61cy .o61cy__search { position: sticky; top: -22px; z-index: 3; margin: -22px -6px 14px; padding: 22px 6px 10px; background: var(--bg); }
.o61cy .o61cy__lens, .o61cy .o61cy__hint { top: 50px; }
.o61cy.o61cy--miss .prmn-cmngr-cities__search-items:not(:empty) { top: 82px !important; }
.o61cy__list { columns: 3 220px; column-gap: 28px; padding: 2px 2px 4px; }
.o61cy__grp { break-inside: avoid; display: flex; flex-direction: column; gap: 2px; margin: 0 0 14px; opacity: 0; transform: translateY(10px);
  animation: o61cy-rise .5s cubic-bezier(.2,.9,.25,1) forwards; animation-delay: calc(var(--i, 0) * 28ms + 120ms); }
@keyframes o61cy-rise { to { opacity: 1; transform: none; } }
.o61cy__grp[hidden] { display: none; }
.o61cy__letter { display: block; margin: 0 0 4px 10px; font: 800 13px/1 var(--f-head); color: var(--gold-600); letter-spacing: .04em; }
.o61-shell .o61cy .o61cy__city, .o61cy .o61cy__city { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 22px; border-radius: 10px;
  font: 500 16px/1.2 var(--f-ui); color: var(--ink-900); text-decoration: none; cursor: pointer; transition: background .18s var(--ease), color .18s var(--ease), padding .2s var(--ease); }
.o61cy__city[hidden] { display: none; }
.o61cy__city::before { content: ""; position: absolute; left: 9px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--line-2);
  transition: transform .2s var(--ease), background .2s var(--ease); }
.o61-shell .o61cy .o61cy__city:hover, .o61-shell .o61cy .o61cy__city:focus-visible { background: var(--blue-50); color: var(--blue-600); padding-left: 26px; outline: none; }
.o61cy__city:hover::before, .o61cy__city:focus-visible::before { background: var(--gold-500); transform: scale(1.8); }
.o61cy__city mark { padding: 0; background: none; color: var(--blue-600); font-weight: 700; box-shadow: inset 0 -2px 0 var(--gold-400); }
.o61-shell .o61cy .o61cy__city.is-current { background: var(--g-gold); color: var(--navy-950); font-weight: 700; box-shadow: var(--sh-gold); }
.o61cy__city.is-current::before { background: var(--navy-950); }
.o61cy__tag { margin-left: auto; padding: 3px 7px; border-radius: 6px; background: var(--navy-900); color: var(--gold-300); font: 700 10px/1 var(--f-ui); font-style: normal;
  letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 767px) {
  .o61cy .o61cy__dialog { margin: 12px auto; padding: 0 10px; }
  .o61cy__head { padding: 22px 20px 18px; }
  .o61cy__title { font-size: 24px; margin-bottom: 16px; padding-right: 40px; }
  .o61cy__node--from span:last-child { display: none; }
  .o61cy__to { max-width: 150px; }
  .o61cy__facts { font-size: 13px; }
  .o61cy__body { padding: 16px 16px 20px; }
  .o61cy__hint { display: none; }
  .o61cy .o61cy__q { padding-right: 16px; height: 52px; font-size: 16px; }
  .o61cy .o61cy__box { height: calc(100vh - 24px); height: calc(100dvh - 24px); }
  .o61cy .o61cy__search { top: -16px; margin-top: -16px; padding-top: 16px; }
  .o61cy .o61cy__lens { top: 42px; }
  .o61cy.o61cy--miss .prmn-cmngr-cities__search-items:not(:empty) { top: 72px !important; }
  .o61cy__list { columns: 2 120px; column-gap: 10px; }
  .o61cy__route { gap: 10px; }
  .o61cy__road { min-width: 48px; }
  .o61cy__to { max-width: 140px; }
  .o61cy .o61cy__city { font-size: 15px; padding: 9px 8px 9px 20px; flex-wrap: wrap; row-gap: 4px; }
  .o61cy__nm { white-space: nowrap; }
  .o61cy__tag { margin-left: 0; }
}

/* «Маршрут» на городском поддомене (Вадим 16.11): свой склад в Ростове → город покупателя. Мотив окна выбора города (.o61cy), светлый */
.o61-route { flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--r-16); background: var(--bg-soft); }
.o61-route__way { display: flex; align-items: center; gap: 12px; flex: 0 1 560px; min-width: 0; }
.o61-route__node { display: flex; align-items: center; gap: 10px; flex: none; min-width: 0; font: 700 15px/1.15 var(--f-head); color: var(--ink-900); }
.o61-route__node small { display: block; margin-bottom: 2px; font: 500 11px/1.3 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); }
.o61-route__node b { font-weight: 800; color: var(--navy-900); }
.o61-route__node--to { flex: 0 1 auto; }
.o61-route__node--to > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o61-route__pin { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--g-gold); box-shadow: 0 0 0 5px rgba(242,193,78,.18); }
.o61-route__pin svg { width: 18px; height: 18px; fill: none; stroke: var(--navy-950); stroke-width: 2; }
.o61-route__pin--to { background: var(--navy-900); box-shadow: 0 0 0 5px rgba(14,36,80,.08); }
.o61-route__pin--to svg { stroke: #fff; }
.o61-route__road { position: relative; flex: 1 1 auto; height: 34px; min-width: 56px; }
.o61-route__road::before { content: ""; position: absolute; left: 2px; right: 2px; top: 50%; margin-top: -1px; border-top: 2px dashed var(--line-2); }
.o61-route__truck { position: absolute; top: 50%; left: 50%; width: 32px; height: 28px; margin: -14px 0 0 -16px; display: grid; place-items: center; border-radius: 8px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--sh-1); }
.o61-route__truck svg { width: 20px; height: 20px; fill: none; stroke: var(--navy-900); stroke-width: 1.8; stroke-linejoin: round; }
.o61-route .o61-route__truck { animation: o61-route-go 1.1s cubic-bezier(.6,0,.3,1) .25s both; }
@keyframes o61-route-go { from { transform: translateX(-120%); opacity: 0; } 30% { opacity: 1; } to { transform: none; } }
.o61-route__note { flex: 1 1 260px; margin: 0; font: 500 13px/1.45 var(--f-ui); color: var(--ink-700); }
.o61-route__note a, .o61-route--card a { color: var(--blue-600); white-space: nowrap; }
.o61-route--card { flex: 1 1 100%; min-width: 0; display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 8px; margin: 10px 0 0; padding: 0; border: 0; background: none; font: 500 14px/1.45 var(--f-ui); color: var(--ink-700); }
.o61-route--card .o61-ico { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: var(--navy-900); stroke-width: 1.8; }
.o61-route--card b { color: var(--ink-900); }
@media (max-width: 767px) {
  .o61-route { padding: 12px 14px; gap: 8px; }
  .o61-route__way { flex-basis: 100%; gap: 8px; }
  .o61-route__node { font-size: 14px; gap: 8px; }
  .o61-route__pin { display: none; }
  .o61-route__node small { font-size: 10px; letter-spacing: .05em; }
  .o61-route__node--to > span:last-child { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
  .o61-route__road { min-width: 36px; }
  .o61-route__note { flex-basis: 100%; font-size: 12.5px; }
}