/* OPTIK61 A1, этап 3 — каталог (категория, поиск). Эталон: макет D:\work\optik61-design\catalog\ (= /maket/catalog/).
   Токены и кнопки — base.css. Все классы с префиксом o61-, корень .o61-cat. Единицы только px: у темы html { font-size: 62.5% }. */

.o61-cat { --tick: 10%; background: linear-gradient(180deg, var(--bg-soft) 0, #fff 640px); color: var(--ink-900); font: 400 15px/1.5 var(--f-ui); -webkit-font-smoothing: antialiased; padding-bottom: 8px; }
.o61-cat *, .o61-cat *::before, .o61-cat *::after { box-sizing: border-box; }
:where(.o61-cat) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; border-radius: 0; height: auto; text-align: inherit; }
:where(.o61-cat) button[disabled] { cursor: not-allowed; }
:where(.o61-cat) a { color: inherit; text-decoration: none; }
:where(.o61-cat) a:hover { text-decoration: none; }
.o61-cat h1, .o61-cat h2 { font-family: var(--f-head); margin: 0; color: inherit; }
:where(.o61-cat) ol, :where(.o61-cat) ul, :where(.o61-cat) dl, :where(.o61-cat) dd { margin: 0; padding: 0; list-style: none; }
:where(.o61-cat) p { margin: 0; }
:where(.o61-cat) input, :where(.o61-cat) select { font: inherit; color: inherit; margin: 0; }
:where(.o61-cat) label { margin: 0; display: block; }
:where(.o61-cat) img { max-width: 100%; height: auto; }
:where(.o61-cat) svg { max-width: none; }
.o61-cat .o61-ico--s { width: 16px; height: 16px; }
.o61-cat :focus-visible { outline: 2px solid var(--blue-500) !important; outline-offset: 2px; } /* у темы button:focus { outline: none !important } */
.o61-cat .o61-chead :focus-visible, .o61-cat .o61-spec :focus-visible { outline-color: var(--gold-300) !important; }
.o61-cat .o61-stepper input:focus-visible, .o61-cat .o61-prng input:focus-visible, .o61-cat .o61-prng__in input:focus-visible, .o61-cat .o61-sform input:focus-visible, .o61-cat .o61-sform select:focus-visible, .o61-cat .o61-sortsel select:focus-visible, .o61-cat .o61-cb input:focus-visible { outline: none !important; } /* рамку рисует обёртка (:focus-within) */
.o61-cat .o61-btn { width: auto; }
@keyframes o61-drop { from { opacity: 0; transform: translateY(-6px); } }
@keyframes o61-card-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes o61-knows-in { from { opacity: 0; transform: translateY(6px) scale(.96); } }
@keyframes o61-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@keyframes o61-load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* ---------- хлебные крошки и раскладка ---------- */
.o61-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 0 14px; font-size: 13.5px; color: var(--ink-500); }
.o61-crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.o61-crumbs li + li::before { content: ""; width: 5px; height: 5px; border-top: 1.5px solid var(--ink-400); border-right: 1.5px solid var(--ink-400); transform: rotate(45deg); margin-right: 4px; }
.o61-crumbs a { color: var(--ink-700); transition: color .16s var(--ease); }
.o61-crumbs a:hover { color: var(--blue-600); }
.o61-crumbs [aria-current] { color: var(--ink-900); font-weight: 600; }
.o61-clayout { display: grid; grid-template-columns: 284px minmax(0, 1fr); gap: 20px; align-items: start; }
.o61-clayout--wide { grid-template-columns: minmax(0, 1fr); }
.o61-cmain { min-width: 0; }
.o61-fbg { display: none; }

/* ---------- фильтры ---------- */
/* ПК: у панели нет своей прокрутки (она перехватывала колёсико на краю списка). Панель липнет: пока помещается в экран —
   к верху, а выше экрана — к низу: --flt-top = min(12px, высота окна − высота панели − 12px) ставит catalog.js. */
.o61-flt { background: #fff; border: 1px solid var(--line); border-radius: var(--r-20); box-shadow: var(--sh-1); position: sticky; top: var(--flt-top, 12px); }
.o61-flt__mt:focus { outline: none; }
.o61-flt__mhead, .o61-flt__mfoot { display: none; }
.o61-flt__body { padding: 8px; }
.o61-fg { display: block; padding: 14px 12px 16px; border-top: 1px solid var(--line); }
.o61-fg:first-child { border-top: 0; }
.o61-fg__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; list-style: none; cursor: pointer; }
.o61-fg__head::-webkit-details-marker { display: none; }
.o61-fg--dio .o61-fg__head { cursor: default; }
.o61-fg__t { display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1.2 var(--f-head); color: var(--ink-900); }
.o61-fg__t .o61-ico { color: var(--blue-600); }
.o61-fg__chev { color: var(--ink-500); transform: rotate(90deg); transition: transform .2s var(--ease); }
details:not([open]) > .o61-fg__head .o61-fg__chev { transform: rotate(0); }
details[open] > .o61-fg__head { margin-bottom: 12px; }
.o61-fg__reset { font-size: 13px; font-weight: 600; color: var(--blue-600); }
.o61-fg__reset:hover { text-decoration: underline; text-underline-offset: 3px; }
.o61-fg__hint { display: flex; gap: 8px; margin-top: 10px; font-size: 12.5px; line-height: 1.4; color: var(--ink-500); }
.o61-fg__hint .o61-ico { color: var(--blue-600); margin-top: 1px; }

/* главный фильтр: диоптрийная линейка-сетка */
.o61-fg--dio { margin: 0; padding: 16px 14px 14px; border-radius: 16px; background: linear-gradient(180deg, var(--blue-50) 0%, #fff 100%); box-shadow: inset 0 0 0 1px rgba(29, 87, 219, .1); }
.o61-fg--dio .o61-fg__head { margin-bottom: 12px; }
.o61-qd { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.o61-qd__b { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 9px 12px 10px; border-radius: 12px; background: #fff; border: 1.5px solid var(--line-2); transition: border-color .16s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease); }
.o61-qd__b span { font-size: 12px; color: var(--ink-500); font-weight: 500; }
.o61-qd__b b { font: 800 16px/1 var(--f-head); color: var(--navy-900); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.o61-qd__b:hover { border-color: var(--blue-600); }
.o61-qd__b[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); box-shadow: var(--sh-2); }
.o61-qd__b[aria-pressed="true"] span { color: #B8C4DE; }
.o61-qd__b[aria-pressed="true"] b { color: var(--gold-300); }
.o61-qd__note { margin: 6px 2px 0; font-size: 11.5px; color: var(--ink-500); }
.o61-dz { margin-top: 14px; }
.o61-dz__cap { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-700); margin-bottom: 8px; }
.o61-dz__sign { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--navy-900); color: var(--gold-300); font: 800 15px/1 var(--f-head); }
.o61-dz__sign--m { background: #fff; color: var(--navy-900); box-shadow: inset 0 0 0 1.5px var(--navy-900); }
.o61-dz__grid { display: grid; gap: 4px; position: relative; padding-bottom: 8px; }
.o61-dz__grid::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; border-bottom: 1px solid var(--line-2); background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px var(--tick)); pointer-events: none; }
.o61-dz__grid--5 { grid-template-columns: repeat(5, 1fr); --tick: calc(100% / 10); }
.o61-dz__grid--6 { grid-template-columns: repeat(6, 1fr); --tick: calc(100% / 12); }
.o61-dz__step { display: flex; justify-content: space-between; margin: 6px 0; font-size: 11px; color: var(--ink-500); letter-spacing: .02em; }

/* ячейка диоптрии: в сетке фильтра, в карточке, в строке накладной */
.o61-dc { height: 34px; border-radius: 7px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 600 11.5px/1 var(--f-ui); color: var(--ink-900); position: relative; transition: border-color .14s var(--ease), color .14s var(--ease), background-color .14s var(--ease), box-shadow .14s var(--ease); font-variant-numeric: tabular-nums; min-width: 0; }
.o61-dc i { width: 5px; height: 5px; border-radius: 50%; background: var(--ok-600); margin-top: 4px; }
.o61-dc:hover { border-color: var(--blue-600); color: var(--blue-600); }
.o61-dc[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.o61-dc[aria-pressed="true"] i { background: var(--gold-400); }
.o61-dc.is-out { color: var(--ink-400); background: repeating-linear-gradient(135deg, #F4F6FA 0 4px, #fff 4px 8px); cursor: not-allowed; }
.o61-dc.is-out:hover { border-color: var(--line); color: var(--ink-400); }
.o61-dc[disabled] { color: var(--ink-400); background: repeating-linear-gradient(135deg, #F4F6FA 0 4px, #fff 4px 8px); }
.o61-dc[disabled]:hover { border-color: var(--line); color: var(--ink-400); }
.o61-dc.is-sel { box-shadow: 0 0 0 2px var(--gold-400); }
.o61-dc .o61-no { font-size: 9px; font-weight: 600; margin-top: 3px; color: var(--ink-500); letter-spacing: .02em; }
.o61-dc[data-tip]:hover::before { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 5px 8px; border-radius: 6px; background: var(--navy-950); color: #fff; font: 500 11.5px/1.2 var(--f-ui); z-index: 5; pointer-events: none; }
.o61-dz .o61-dc { height: 32px; font-size: 12px; }
.o61-dz .o61-dc[aria-pressed="true"] { box-shadow: 0 6px 12px -8px rgba(10, 27, 61, .8); }
.o61-dz .o61-dc[aria-pressed="true"]::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 12px; height: 2px; margin-left: -6px; border-radius: 1px; background: var(--gold-400); }
.o61-dz .o61-dc.is-int { font-weight: 700; }

/* чекбоксы */
.o61-cbl { display: grid; gap: 2px; }
.o61-cb { display: flex !important; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 10px; font-size: 14.5px; cursor: pointer; transition: background .16s var(--ease); position: relative; }
.o61-cb:hover { background: var(--bg-soft); }
.o61-cb input { position: absolute; opacity: 0; pointer-events: none; }
.o61-cb__box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); background: #fff; display: grid; place-items: center; flex: none; transition: background-color .16s var(--ease), border-color .16s var(--ease); }
.o61-cb__box svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.6); transition: opacity .16s var(--ease), transform .16s var(--ease); }
.o61-cb input:checked + .o61-cb__box { background: var(--blue-600); border-color: var(--blue-600); }
.o61-cb input:checked + .o61-cb__box svg { opacity: 1; transform: none; }
.o61-cb input:focus-visible + .o61-cb__box { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.o61-cb input:checked ~ .o61-cb__n { font-weight: 600; }
.o61-cb.is-off { cursor: not-allowed; color: var(--ink-400); }
.o61-cb.is-off:hover { background: none; }

/* переключатели-плашки */
.o61-tgl { display: flex; flex-wrap: wrap; gap: 6px; }
.o61-tgl button { height: 36px; padding: 0 13px; border-radius: 10px; border: 1.5px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 500; color: var(--ink-900); transition: border-color .16s var(--ease), color .16s var(--ease), background-color .16s var(--ease); font-variant-numeric: tabular-nums; text-align: center; }
.o61-tgl button:hover { border-color: var(--blue-600); color: var(--blue-600); }
.o61-tgl button small { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--ink-500); }
.o61-tgl button[aria-pressed="true"] { background: var(--blue-50); border-color: var(--blue-600); color: var(--blue-600); font-weight: 600; }
.o61-tgl button[disabled] { color: var(--ink-400); border-style: dashed; }
.o61-tgl button[disabled]:hover { border-color: var(--line-2); color: var(--ink-400); }

/* цена */
.o61-prng__track { position: relative; height: 28px; margin: 0 9px; }
.o61-prng__track::before { content: ""; position: absolute; left: -9px; right: -9px; top: 13px; height: 3px; border-radius: 2px; background: var(--line); }
.o61-prng__fill { position: absolute; top: 13px; height: 3px; border-radius: 2px; background: var(--g-gold); }
.o61-prng input[type=range] { position: absolute; left: -9px; right: -9px; width: calc(100% + 18px); top: 0; height: 28px; margin: 0; padding: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.o61-prng input[type=range]::-webkit-slider-runnable-track { background: none; border: 0; }
.o61-prng input[type=range]::-moz-range-track { background: none; border: 0; }
.o61-prng input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--navy-900); box-shadow: var(--sh-2); cursor: grab; margin-top: 4px; }
.o61-prng input[type=range]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--navy-900); cursor: grab; }
.o61-prng input[type=range]:focus-visible { outline: none; }
.o61-prng input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(29, 87, 219, .25); }
.o61-prng input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(29, 87, 219, .25); }
.o61-prng__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 10px; }
.o61-prng__in label { display: flex !important; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; transition: border-color .16s; }
.o61-prng__in label:focus-within { border-color: var(--blue-600); }
.o61-prng__in span { font-size: 12.5px; color: var(--ink-500); }
.o61-prng__in input { width: 100%; min-width: 0; border: 0; outline: none; font: 700 15px var(--f-head); font-variant-numeric: tabular-nums; background: none; padding: 0; height: auto; box-shadow: none; }
.o61-prng__dash { color: var(--ink-400); }

/* ---------- шапка категории с линейкой −10…+10 ---------- */
.o61-chead { position: relative; border-radius: var(--r-20); overflow: hidden; background: var(--g-navy); color: #fff; isolation: isolate; box-shadow: var(--sh-3); padding: 22px 28px 16px; }
.o61-chead__bg { position: absolute; top: 0; right: 0; width: 64%; height: 100%; object-fit: cover; object-position: 66% 46%; z-index: -2; max-width: none !important; }
.o61-chead__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #071430 0%, rgba(7, 20, 48, .92) 34%, rgba(7, 20, 48, .25) 66%, rgba(7, 20, 48, .1) 100%), linear-gradient(0deg, rgba(6, 18, 41, .9) 0%, rgba(6, 18, 41, 0) 52%); }
.o61-chead__txt { max-width: 820px; }
.o61-items[data-view="list"] .o61-buy__d { display: none; }
.o61-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 12.5px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
.o61-eyebrow::before { content: ""; flex: none; width: 36px; height: 10px; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) left bottom / 1px 10px no-repeat, linear-gradient(currentColor, currentColor) 50% 100% / 1px 8px no-repeat, linear-gradient(currentColor, currentColor) right bottom / 1px 10px no-repeat, repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 4.5px) left bottom / 100% 4px no-repeat; opacity: .85; }
.o61-chead__h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.o61-chead h1 { font: 800 31px/1.12 var(--f-head); letter-spacing: -.02em; color: #fff; }
.o61-chead__cnt { display: inline-flex; align-items: baseline; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(242, 193, 78, .55); background: rgba(242, 193, 78, .08); color: #E9EEF9; font-size: 14px; line-height: 32px; white-space: nowrap; }
.o61-chead__cnt b { font: 800 18px/32px var(--f-head); color: var(--gold-400); }
.o61-chead__lead { margin-top: 10px; font-size: 15px; line-height: 1.5; color: #C8D2EA; max-width: 600px; }
.o61-ruler { margin-top: 16px; padding: 12px 16px 6px; border-radius: 14px; background: rgba(6, 18, 41, .62); border: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.o61-ruler__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: #9DAAC6; letter-spacing: .04em; min-height: 26px; }
.o61-ruler__side { text-transform: uppercase; letter-spacing: .1em; font-weight: 600; font-size: 11px; white-space: nowrap; }
.o61-ruler__side--p { color: var(--gold-300); }
.o61-ruler__read { font-size: 13.5px; color: #E3E9F7; letter-spacing: 0; text-align: center; }
.o61-ruler__read b { color: var(--gold-300); font: 800 15px var(--f-head); }
.o61-ruler__read button { color: #9DAAC6; font-size: 12.5px; margin-left: 10px; text-decoration: underline; text-underline-offset: 3px; }
.o61-ruler__read button:hover { color: #fff; }
.o61-ruler__scale { position: relative; display: grid; grid-template-columns: repeat(var(--n, 55), 1fr); height: 62px; margin-top: 10px; }
.o61-ruler__scale::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 1px; background: rgba(255, 255, 255, .26); }
.o61-ruler__zone { position: absolute; top: 4px; height: 26px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .05)); pointer-events: none; }
.o61-ruler__zone.is-fine { background: linear-gradient(180deg, rgba(242, 193, 78, 0), rgba(242, 193, 78, .08)); }
.o61-rs { position: relative; height: 100%; cursor: pointer; padding: 0; }
.o61-rs::before { content: ""; position: absolute; left: 50%; bottom: 32px; width: 1px; height: 7px; margin-left: -.5px; background: rgba(255, 255, 255, .42); transition: height .2s var(--ease), background-color .2s var(--ease), width .2s var(--ease); }
.o61-rs.is-half::before { height: 11px; }
.o61-rs.is-int::before { height: 16px; background: rgba(255, 255, 255, .75); }
.o61-rs.is-zero { cursor: default; }
.o61-rs.is-zero::before { height: 22px; width: 2px; margin-left: -1px; background: #fff; }
.o61-rs.is-off { cursor: not-allowed; }
.o61-rs.is-off::before { opacity: .3; }
.o61-rs__l { position: absolute; top: 36px; left: 50%; transform: translateX(-50%); font: 600 11px/1 var(--f-ui); color: #9DAAC6; white-space: nowrap; font-variant-numeric: tabular-nums; transition: color .16s; }
.o61-rs.is-zero .o61-rs__l { color: #fff; }
.o61-rs:not(.is-off):not(.is-zero):hover::before { background: var(--gold-300); height: 20px; }
.o61-rs:not(.is-off):hover .o61-rs__l { color: #fff; }
.o61-rs__tip { position: absolute; bottom: 52px; left: 50%; transform: translate(-50%, 4px); padding: 4px 7px; border-radius: 6px; background: #fff; color: var(--navy-950); font: 700 12px/1 var(--f-head); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .16s var(--ease), transform .16s var(--ease); font-variant-numeric: tabular-nums; z-index: 2; }
.o61-rs:not(.is-off):hover .o61-rs__tip, .o61-rs:focus-visible .o61-rs__tip { opacity: 1; transform: translate(-50%, 0); }
.o61-rs.is-on::before { background: var(--gold-400); width: 3px; margin-left: -1.5px; height: 24px; border-radius: 2px; box-shadow: 0 0 12px rgba(242, 193, 78, .7); }
.o61-rs.is-on .o61-rs__tip { opacity: 1; transform: translate(-50%, 0); background: var(--g-gold); }
.o61-rs.is-on .o61-rs__l { color: var(--gold-300); }
.o61-ruler__band { position: absolute; top: 20px; height: 12px; border-radius: 3px; background: linear-gradient(90deg, rgba(242, 193, 78, .25), rgba(242, 193, 78, .45), rgba(242, 193, 78, .25)); pointer-events: none; transition: left .35s var(--ease), width .35s var(--ease); }
.o61-ruler.is-multi .o61-rs.is-on .o61-rs__tip { opacity: 0; }
.o61-ruler.is-multi .o61-rs.is-on.is-edge .o61-rs__tip { opacity: 1; }
.o61-chead.is-compact { padding-top: 18px; }
.o61-chead.is-compact .o61-eyebrow, .o61-chead.is-compact .o61-chead__lead { display: none; }
.o61-chead.is-compact .o61-chead__h { margin-top: 0; }
.o61-chead.is-compact .o61-ruler { margin-top: 14px; }

/* поиск: узкая шапка и форма */
.o61-chead--slim { padding-bottom: 20px; }
.o61-sform { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto auto auto; gap: 10px 16px; align-items: center; margin-top: 16px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-16); box-shadow: var(--sh-1); }
.o61-sform__q input, .o61-sform__sel select { width: 100%; height: 44px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 15px; color: var(--ink-900); outline: none; box-shadow: none; transition: border-color .16s var(--ease); }
.o61-sform__q input:focus, .o61-sform__sel select:focus { border-color: var(--blue-600); }
.o61-sform__chk { display: flex !important; align-items: center; gap: 8px; position: relative; font-size: 13.5px; color: var(--ink-700); cursor: pointer; white-space: nowrap; }
.o61-sform__chk input { position: absolute; opacity: 0; pointer-events: none; }
.o61-sform__chk input:checked + .o61-cb__box { background: var(--blue-600); border-color: var(--blue-600); }
.o61-sform__chk input:checked + .o61-cb__box svg { opacity: 1; transform: none; }
.o61-sform__chk input:focus-visible + .o61-cb__box { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.o61-sform .o61-btn { --h: 44px; }

/* подразделы */
.o61-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.o61-subcat { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line-2); font: 700 14.5px/1.25 var(--f-head); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.o61-subcat span { flex: 1; min-width: 0; }
.o61-subcat .o61-ico { color: var(--blue-600); }
.o61-subcat:hover { border-color: #BFD0F5; box-shadow: var(--sh-2); transform: translateY(-2px); }

/* ---------- над сеткой ---------- */
.o61-tbar { display: flex; align-items: center; gap: 14px; margin-top: 18px; min-height: 48px; }
.o61-tbar__flt { display: none; }
.o61-tbar__count { margin-right: auto; font-size: 14.5px; color: var(--ink-700); }
.o61-tbar__count b { color: var(--ink-900); font-weight: 700; }
.o61-sortsel { position: relative; display: inline-flex !important; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; transition: border-color .16s, box-shadow .16s; }
.o61-sortsel:focus-within { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(29, 87, 219, .12); }
.o61-sortsel__k { font-size: 13px; color: var(--ink-500); }
.o61-sortsel select { appearance: none; -webkit-appearance: none; border: 0; background: none; outline: none; font-weight: 600; font-size: 14.5px; padding: 0 22px 0 0; cursor: pointer; color: var(--ink-900); height: 42px; box-shadow: none; max-width: 230px; }
.o61-sortsel .o61-ico { position: absolute; right: 12px; transform: rotate(90deg); pointer-events: none; color: var(--ink-500); }
.o61-viewsw { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg-tint); }
.o61-viewsw button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink-700); transition: background-color .16s var(--ease), color .16s var(--ease), box-shadow .16s var(--ease); }
.o61-viewsw button .o61-ico { width: 18px; height: 18px; }
.o61-viewsw button:hover { color: var(--blue-600); }
.o61-viewsw button[aria-pressed="true"] { background: var(--navy-900); color: #fff; box-shadow: var(--sh-2); }
.o61-viewsw button[aria-pressed="true"] .o61-ico { color: var(--gold-400); }
.o61-mdq { display: none; }
.o61-mcount { display: none; }
.o61-flip { transform: scaleX(-1); }

.o61-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.o61-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 500; color: var(--ink-900); transition: border-color .16s var(--ease); animation: o61-drop .2s var(--ease); white-space: nowrap; }
.o61-chip small { color: var(--ink-500); font-size: 12px; }
.o61-chip .o61-ico { width: 16px; height: 16px; color: var(--ink-500); }
.o61-chip:hover { border-color: var(--err-600); }
.o61-chip:hover .o61-ico { color: var(--err-600); }
.o61-chip--d { background: var(--navy-900); border-color: var(--navy-900); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.o61-chip--d small { color: #9DAAC6; font-weight: 500; }
.o61-chip--d .o61-ico { color: var(--gold-400); }
.o61-chips__reset { margin-left: 4px; font-size: 13.5px; font-weight: 600; color: var(--blue-600); }
.o61-chips__reset:hover { text-decoration: underline; text-underline-offset: 3px; }

.o61-lhint { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 7px 12px; border-radius: 12px; background: var(--blue-50); border: 1px solid #D5E1FB; font-size: 13.5px; color: var(--ink-700); }
.o61-cat kbd { display: inline-grid; place-items: center; min-width: 54px; height: 26px; padding: 0 8px; border-radius: 7px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 2px 0 var(--line-2); font: 700 12px var(--f-ui); color: var(--navy-900); }

/* ---------- результаты ---------- */
.o61-results { position: relative; margin-top: 16px; }
.o61-results::before { content: ""; position: absolute; left: 0; top: -8px; height: 3px; width: 38%; border-radius: 2px; background: var(--g-gold); opacity: 0; pointer-events: none; z-index: 3; }
.o61-results[aria-busy="true"]::before { opacity: 1; animation: o61-load 1s var(--ease) infinite; }
.o61-results[aria-busy="true"] .o61-items { opacity: .5; pointer-events: none; transition: opacity .15s var(--ease); }
.o61-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.o61-inv-th { display: none; }

/* без колонки фильтров (поиск, разделы без фильтров) карточек больше в ряд */
.o61-cat--search .o61-items, .o61-clayout--wide .o61-items { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* карточка: компонент главной + режим «знает диоптрию» */
.o61-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-16); display: flex; flex-direction: column; transition: box-shadow .25s var(--ease), border-color .2s var(--ease), transform .25s var(--ease); position: relative; min-width: 0; animation: o61-card-in .35s var(--ease) both; animation-delay: calc(min(var(--k, 0), 12) * 22ms); }
.o61-card:hover { box-shadow: var(--sh-3); border-color: transparent; transform: translateY(-3px); }
.o61-card.is-knows { border-color: #D9C38A; box-shadow: 0 0 0 1px rgba(242, 193, 78, .35), var(--sh-1); }
.o61-card.is-knows:hover { box-shadow: var(--sh-3); }
.o61-card__media { position: relative; aspect-ratio: 4 / 3; border-radius: 15px 15px 0 0; overflow: hidden; background: #EEF1F6; }
.o61-card__noimg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--bg-soft); color: var(--ink-400); text-align: center; }
.o61-card__noimg .o61-ico { width: 48px; height: 48px; stroke-width: 1.2; }
.o61-card__noimg small { font: 500 12.5px/1.2 var(--f-ui); color: var(--ink-500); }
.o61-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.o61-card__media img[data-fit="contain"] { object-fit: contain; mix-blend-mode: multiply; } /* высокое фото (чехлы 3:4) целиком, иначе плитка 4:3 срежет ~45 % */
.o61-card:hover .o61-card__media img { transform: scale(1.04); }
.o61-card__ovl { position: absolute; inset: 0; z-index: 1; }
.o61-badge { position: absolute; left: 12px; top: 12px; height: 24px; padding: 0 10px 0 8px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; font: 700 11.5px/1 var(--f-ui); letter-spacing: .03em; z-index: 2; }
.o61-badge--hit { background: var(--navy-900); color: #fff; }
.o61-badge--hit::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-400); }
.o61-badge--new { background: var(--g-gold); color: var(--navy-950); }
.o61-fav { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--navy-900); z-index: 2; box-shadow: var(--sh-1); transition: transform .16s var(--ease), color .16s; }
.o61-fav:hover { transform: scale(1.08); color: var(--err-600); }
.o61-knows { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--g-gold); color: var(--navy-950); font: 800 13.5px/1 var(--f-head); box-shadow: var(--sh-gold); font-variant-numeric: tabular-nums; animation: o61-knows-in .4s var(--ease) both; white-space: nowrap; pointer-events: none; }
.o61-knows i { width: 20px; height: 20px; border-radius: 50%; background: var(--navy-900); display: grid; place-items: center; font-style: normal; }
.o61-knows i svg { width: 11px; height: 11px; stroke: var(--gold-300); stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.o61-knows small { font: 600 12px var(--f-ui); opacity: .8; }
.o61-knows--part { background: #fff; color: var(--navy-900); box-shadow: var(--sh-2); }
.o61-knows--part i { background: var(--gold-400); }
.o61-knows--part i svg { stroke: var(--navy-950); }
.o61-knows--no { background: #fff; color: var(--ink-700); box-shadow: var(--sh-2); }
.o61-knows--no i { background: var(--err-100); }
.o61-knows--no i svg { stroke: var(--err-600); }
.o61-card__body { padding: 14px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.o61-art { display: block; font: 600 12px/1 var(--f-ui); color: var(--ink-500); letter-spacing: .02em; }
.o61-card__name { display: block; margin-top: 6px; font: 600 14.5px/1.3 var(--f-ui); min-height: 38px; color: var(--ink-900); }
.o61-card__name:hover { color: var(--blue-600); }
.o61-card__meta { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-500); }
.o61-card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.o61-price { font: 800 25px/1 var(--f-head); letter-spacing: -.01em; white-space: nowrap; }
.o61-price b { font-weight: 800; }
.o61-price small { font: 500 13px var(--f-ui); color: var(--ink-500); letter-spacing: 0; }
.o61-price__from { font: 600 13px var(--f-ui) !important; }
.o61-price__login { font-size: 14px; font-weight: 600; color: var(--blue-600); }
.o61-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ok-600); white-space: nowrap; }
.o61-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px var(--ok-100); }
.o61-mdio { display: none; }
.o61-dio { margin-top: 12px; }
.o61-dio__cap { display: flex; justify-content: space-between; gap: 6px; white-space: nowrap; font-size: 12px; color: var(--ink-500); margin-bottom: 6px; }
.o61-dio__cap b { color: var(--ink-900); font-weight: 600; }
.o61-dio__cap .is-ok { color: var(--ok-600); font-weight: 700; }
.o61-dio__cap .is-no { color: var(--err-600); font-weight: 700; }
.o61-dio__row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; position: relative; padding-bottom: 7px; }
.o61-dio__row::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px calc(100% / 14)); border-bottom: 1px solid var(--line-2); pointer-events: none; }
.o61-card__all { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--blue-600); display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; }
.o61-card__all:hover { text-decoration: underline !important; text-underline-offset: 3px; }
.o61-calc { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg-soft); font-size: 12.5px; color: var(--ink-700); line-height: 1.35; display: flex; justify-content: space-between; gap: 8px; }
.o61-calc[hidden] { display: none; }
.o61-calc b { color: var(--ink-900); font: 800 14px var(--f-head); white-space: nowrap; font-variant-numeric: tabular-nums; }
.o61-calc span { min-width: 0; }
.o61-msg { display: none; font-size: 12px; color: var(--err-600); margin-top: 6px; }
.o61-msg.is-on { display: block; }
.o61-msg.is-ok { color: var(--ok-600); }
.o61-card.is-err .o61-msg { animation: o61-shake .3s; }
.o61-card.is-err .o61-dio__row .o61-dc:not(.is-out) { border-color: #F0B8B8; }
.o61-buy { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.o61-buy .o61-btn { flex: 1; min-width: 0; --h: 40px; padding: 0 8px; gap: 6px; font-size: 14px; border-radius: 10px; }
.o61-buy .o61-btn span { overflow: hidden; text-overflow: ellipsis; }
.o61-card.is-added .o61-buy .o61-btn--blue { background: var(--ok-600); }
/* «в корзине» у артикула — когда кнопка этого не говорит: отмечены диоптрии («В корзину · N») или товар без диоптрий.
   Без отметок кнопка матричной плитки сама пишет «✓ В корзине · N шт.» (Вадим 12.11, dp-panel.css) */
.o61-card.is-in:is(.has-picks, [data-mode="simple"]) .o61-art::after { content: " · в корзине"; color: var(--ok-600); font-weight: 700; }
.o61-stepper { display: inline-flex; align-items: center; height: 40px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; flex: none; }
.o61-stepper button { width: 28px; height: 100%; display: grid; place-items: center; color: var(--navy-900); border-radius: 8px; }
.o61-stepper button:hover { color: var(--blue-600); background: var(--bg-soft); }
.o61-stepper input { width: 34px; text-align: center; border: 0; font: 700 14px var(--f-head); background: none; outline: none; padding: 0; height: auto; box-shadow: none; -moz-appearance: textfield; appearance: textfield; min-width: 0; }
.o61-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.o61-stepper:focus-within { border-color: var(--blue-600); }
.o61-buy--link .o61-btn { color: var(--navy-900); }

/* ---------- «накладная» для опта (та же разметка карточки) ---------- */
.o61-results[data-view="list"] .o61-inv-th { display: grid; }
.o61-items[data-view="list"] { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r-20); box-shadow: var(--sh-2); }
.o61-inv-th, .o61-items[data-view="list"] .o61-card { grid-template-columns: 76px minmax(0, 1fr) 84px 236px 112px 136px; gap: 0 14px; align-items: center; }
.o61-results[data-view="list"] .o61-inv-th { position: sticky; top: 0; z-index: 4; padding: 12px 18px; margin-bottom: -1px; border: 1px solid var(--line); border-bottom: 0; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: var(--r-20) var(--r-20) 0 0; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); font-weight: 600; box-shadow: var(--sh-1); }
.o61-results[data-view="list"] .o61-items { border-top-left-radius: 0; border-top-right-radius: 0; }
.o61-items[data-view="list"] .o61-card { display: grid; grid-template-areas: "media info price dio qty buy" "media info price all qty calc" ". msg msg msg msg msg"; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 18px; transition: background-color .16s var(--ease); box-shadow: none; transform: none; animation-duration: .3s; }
.o61-items[data-view="list"] .o61-card:last-child { border-bottom: 0; border-radius: 0 0 var(--r-20) var(--r-20); }
.o61-items[data-view="list"] .o61-card:hover { background: #FAFBFE; box-shadow: none; transform: none; }
.o61-items[data-view="list"] .o61-card::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; transition: background-color .2s; }
.o61-items[data-view="list"] .o61-card.is-knows::before { background: var(--gold-400); }
.o61-items[data-view="list"] .o61-card.is-in::before { background: var(--ok-600); }
.o61-items[data-view="list"] .o61-card__media { grid-area: media; width: 76px; height: 57px; aspect-ratio: auto; border-radius: 10px; align-self: center; }
.o61-items[data-view="list"] .o61-card__media img { transform: none !important; }
.o61-items[data-view="list"] .o61-badge { left: 4px; top: 4px; height: 18px; padding: 0 6px 0 5px; font-size: 10px; border-radius: 6px; gap: 4px; }
.o61-items[data-view="list"] .o61-badge::before { width: 5px; height: 5px; }
.o61-items[data-view="list"] .o61-fav, .o61-items[data-view="list"] .o61-knows, .o61-items[data-view="list"] .o61-dio__cap, .o61-items[data-view="list"] .o61-stock, .o61-items[data-view="list"] .o61-mdio { display: none; }
.o61-items[data-view="list"] .o61-card__body { display: contents; }
.o61-items[data-view="list"] .o61-card__info { grid-area: info; min-width: 0; }
.o61-items[data-view="list"] .o61-card__name { margin-top: 3px; min-height: 0; font: 700 15.5px/1.25 var(--f-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o61-items[data-view="list"] .o61-nm-pre { display: none; }
.o61-items[data-view="list"] .o61-card__meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o61-items[data-view="list"] .o61-card__row { grid-area: price; margin: 0; display: block; }
.o61-items[data-view="list"] .o61-price { font-size: 20px; white-space: normal; }
.o61-items[data-view="list"] .o61-price small:not(.o61-price__from) { display: block; font-size: 12px; margin-top: 3px; }
.o61-items[data-view="list"] .o61-price__from { display: block; font-size: 11.5px !important; margin: 0 0 2px; }
.o61-items[data-view="list"] .o61-dio { grid-area: dio; margin: 0; }
.o61-items[data-view="list"] .o61-dio__row { padding-bottom: 0; gap: 3px; }
.o61-items[data-view="list"] .o61-dio__row::after { display: none; }
.o61-items[data-view="list"] .o61-dc { height: 32px; font-size: 11px; }
.o61-items[data-view="list"] .o61-dc i { width: 4px; height: 4px; margin-top: 3px; }
.o61-items[data-view="list"] .o61-card__all { grid-area: all; margin: 2px 0 0; font-size: 12px; }
.o61-items[data-view="list"] .o61-buy { display: contents; }
.o61-items[data-view="list"] .o61-stepper { grid-area: qty; height: 38px; justify-self: start; }
.o61-items[data-view="list"] .o61-stepper button { width: 30px; }
.o61-items[data-view="list"] .o61-stepper input { width: 38px; }
.o61-items[data-view="list"] .o61-buy .o61-btn { grid-area: buy; --h: 40px; padding: 0 10px; width: 100%; }
.o61-items[data-view="list"] .o61-buy--link .o61-btn { grid-column: 5 / 7; grid-row: 1; }
.o61-items[data-view="list"] .o61-calc { grid-area: calc; margin: 4px 0 0; padding: 0; background: none; display: block; font-size: 12px; color: var(--ink-500); text-align: center; }
.o61-items[data-view="list"] .o61-calc span { display: none; }
.o61-items[data-view="list"] .o61-calc b { font-size: 13px; }
.o61-items[data-view="list"] .o61-msg { grid-area: msg; margin: 4px 0 0; }
.o61-items[data-view="list"] .o61-card.is-in .o61-buy .o61-btn--blue { background: var(--ok-600); box-shadow: none; }
.o61-items[data-view="list"] .o61-card.is-err { animation: o61-shake .3s; }
.o61-items[data-view="list"] .o61-card.is-in:is(.has-picks, [data-mode="simple"]) .o61-art::after { content: " · ✓ в корзине"; }

/* ---------- пусто ---------- */
.o61-empty { grid-column: 1 / -1; display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; padding: 36px; border-radius: var(--r-20); border: 1.5px dashed var(--line-2); background: #fff; }
.o61-empty--plain { grid-template-columns: 1fr; }
.o61-empty__art { position: relative; height: 140px; border-radius: 16px; background: var(--bg-tint); display: grid; place-items: center; overflow: hidden; }
.o61-empty__art .o61-ico { width: 84px; height: 84px; color: var(--ink-400); stroke-width: 1.2; transform: rotate(-6deg); }
.o61-empty__art span { position: absolute; right: 12px; top: 12px; height: 26px; padding: 0 10px; border-radius: 8px; background: #fff; box-shadow: var(--sh-1); font: 800 13px/26px var(--f-head); color: var(--ink-500); }
.o61-empty h2 { font: 800 25px/1.2 var(--f-head); }
.o61-empty p { margin-top: 8px; color: var(--ink-700); font-size: 15px; }
.o61-empty__opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.o61-empty__opt { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 12px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 500; transition: border-color .16s var(--ease), background-color .16s var(--ease); }
.o61-empty__opt .o61-ico { width: 16px; height: 16px; color: var(--err-600); }
.o61-empty__opt b { font-weight: 700; }
.o61-empty__opt em { font-style: normal; color: var(--ok-600); font-weight: 700; }
.o61-empty__opt:hover { border-color: var(--blue-600); background: var(--blue-50); }
.o61-empty p.o61-empty__foot { margin-top: 14px; font-size: 13.5px; color: var(--ink-500); }
.o61-empty__foot a { color: var(--blue-600); font-weight: 600; }
.o61-empty__cta { margin-top: 18px; } /* кнопка «Перейти в каталог» у бренда без моделей (manufacturer_info.twig) */

/* ---------- ещё и страницы ---------- */
.o61-more { display: grid; justify-items: center; gap: 14px; margin-top: 28px; }
.o61-more:empty { display: none; }
.o61-more__prog { display: grid; gap: 2px; width: 260px; text-align: center; font-size: 13px; color: var(--ink-500); }
.o61-more__btn { min-width: 300px; }
.o61-pager .pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.o61-pager .pagination li { display: block; margin: 0; padding: 0; }
.o61-cat .o61-pager .pagination li > a, .o61-cat .o61-pager .pagination li > span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border: 0; border-radius: 10px; font-weight: 600; font-size: 14.5px; line-height: 1; color: var(--ink-700); background: none; font-variant-numeric: tabular-nums; transition: background-color .16s var(--ease), color .16s var(--ease); }
.o61-cat .o61-pager .pagination li > a .o61-ico--s { width: 16px; height: 16px; }
.o61-cat .o61-pager .pagination li > a, .o61-cat .o61-pager .pagination li > span { grid-auto-flow: column; position: static; }
.o61-cat .o61-pager .pagination li > a::after, .o61-cat .o61-pager .pagination li > span::after { display: none !important; }
.o61-cat .o61-pager .pagination li { padding: 0; }
.o61-cat .o61-pager .pagination li.active > span, .o61-cat .o61-pager .pagination li.active > a { background: var(--navy-900) !important; color: #fff; }
.o61-cat .o61-pager .pagination li > a:hover { background: var(--bg-tint) !important; color: var(--blue-600); }
.o61-cat .o61-pager .pagination li > a:hover { background: var(--bg-tint); color: var(--blue-600); }
.o61-cat .o61-pager .pagination li.active > span, .o61-cat .o61-pager .pagination li.active > a { background: var(--navy-900); color: #fff; box-shadow: none; }
.o61-pager .pagination li > a:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }

/* ---------- SEO-текст, справка, перелинковка ---------- */
.o61-sec { padding: 72px 0 0; }
.o61-seo__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; border-top: 1px solid var(--line); padding-top: 8px; }
.o61-seo__grid--one { grid-template-columns: minmax(0, 1fr); }
.o61-seo__txt { padding-top: 32px; }
.o61-editor { font-size: 15.5px; line-height: 1.65; color: var(--ink-700); max-width: 760px; hyphens: manual; text-wrap: pretty; }
.o61-editor q { quotes: "«" "»" "„" "“"; }
.o61-editor strong, .o61-editor b { color: var(--ink-900); }
.o61-editor h1, .o61-editor h2 { font: 800 25px/1.2 var(--f-head); color: var(--ink-900); margin: 28px 0 12px; letter-spacing: -.01em; }
.o61-editor > :first-child { margin-top: 0; }
.o61-editor p { margin: 0 0 14px; }
.o61-editor h2, .o61-editor h3 { font: 800 25px/1.2 var(--f-head); color: var(--ink-900); margin: 24px 0 12px; }
.o61-editor ul, .o61-editor ol { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.o61-editor ol { list-style: decimal; }
.o61-editor li { margin-bottom: 6px; }
.o61-editor a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.o61-editor img { height: auto; border-radius: 12px; }
.o61-spec { margin-top: 32px; padding: 22px 24px 18px; border-radius: var(--r-20); background: var(--g-navy); color: #fff; position: relative; overflow: hidden; box-shadow: var(--sh-3); }
.o61-spec__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.o61-spec dt { font-size: 14px; color: #B8C4DE; }
.o61-spec dd { font: 700 15px var(--f-head); text-align: right; }
.o61-spec__row--gold { border-bottom: 0; }
.o61-spec__row--gold dd { color: var(--gold-400); font-size: 18px; }
.o61-spec__scale { height: 10px; margin-top: 6px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .3) 0 1px, transparent 1px 10px); -webkit-mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
.o61-sec__head { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.o61-sec__title { font: 800 31px/1.15 var(--f-head); letter-spacing: -.015em; }
.o61-rel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.o61-relc { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 210px; padding: 14px 16px; border-radius: var(--r-16); overflow: hidden; background: linear-gradient(165deg, #FFFFFF 0%, #F2F5FB 100%); border: 1px solid var(--line); isolation: isolate; transition: border-color .2s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
.o61-relc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px 20px 64px; z-index: -1; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.o61-relc:hover { border-color: #BFD0F5; box-shadow: var(--sh-2); transform: translateY(-2px); }
.o61-relc:hover img { transform: scale(1.045); }
.o61-relc__n { font: 700 15px/1.2 var(--f-head); padding-right: 40px; }
.o61-relc__go { position: absolute; right: 12px; bottom: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--blue-600); transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.o61-relc:hover .o61-relc__go { background: var(--blue-600); color: #fff; border-color: var(--blue-600); transform: translateX(2px); }

/* ---------- сообщения ---------- */
/* Один тост за раз, всегда сверху: на ПК справа под плашкой корзины, на телефоне под липкой шапкой и панелью фильтров.
   Отступ сверху считает O61Toast.place (shell.js) и пишет в --o61-toast-top; значения здесь — запасные. Тело тоста
   кликов не ловит (под ним плитки и кнопки), кликается только ссылка «В корзину». */
.o61-toasts { position: fixed; top: var(--o61-toast-top, 96px); right: 14px; z-index: 130; display: grid; gap: 8px; width: min(380px, calc(100vw - 28px)); pointer-events: none; }
.o61-toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px 12px 12px; border-radius: 14px; background: var(--navy-900); color: #fff; box-shadow: var(--sh-3); font-size: 14px; line-height: 1.4; animation: o61-toast-in .25s var(--ease) both; pointer-events: none; }
.o61-toast i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-600); display: grid; place-items: center; font-style: normal; }
.o61-toast i svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.o61-toast--err i { background: var(--err-600); }
.o61-toast b { color: var(--gold-300); }
.o61-toast a { color: var(--gold-300); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; pointer-events: auto; }
.o61-toast__note { display: block; margin-top: 4px; color: rgba(255, 255, 255, .86); }
@keyframes o61-toast-in { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- планшет ---------- */
@media (max-width: 1280px) {
  /* страницы без фильтров (футляры, аксессуары) остаются в одну колонку — иначе товары падали в колонку фильтров 264px (Вадим, 11.11) */
  .o61-clayout:not(.o61-clayout--wide) { grid-template-columns: 264px minmax(0, 1fr); }
  .o61-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .o61-cat--search .o61-items, .o61-clayout--wide .o61-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .o61-inv-th, .o61-items[data-view="list"] .o61-card { grid-template-columns: 72px minmax(0, 1fr) 80px 220px 104px 120px; gap: 0 10px; }
  .o61-items[data-view="list"] .o61-card__media { width: 72px; height: 54px; }
}
/* final-fix 11.11: «Накладная» на 992–1280: в колонке кнопки 104–120 px подпись «В корзину · N» обрезалась до «В корзи…». Без иконки, плотнее, 13 px. */
@media (min-width: 992px) and (max-width: 1280px) {
  .o61-items[data-view="list"] .o61-buy .o61-btn:not(.is-ask) { padding: 0 6px; gap: 0; font-size: 13px; }
  .o61-items[data-view="list"] .o61-buy .o61-btn:not(.is-ask) .o61-ico { display: none; }
}
@media (max-width: 1100px) {
  .o61-seo__grid { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- телефон и узкий планшет: фильтры шторкой ---------- */
@media (max-width: 991px) {
  .o61-cat { background: none; }
  .o61-crumbs ol { padding: 8px 0 10px; font-size: 12.5px; }
  .o61-clayout { display: block; }
  .o61-flt { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 125; max-height: 90vh; display: flex; flex-direction: column; border-radius: 22px 22px 0 0; border: 0; box-shadow: 0 -20px 50px -10px rgba(6, 18, 41, .4); transform: translateY(102%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s; overflow: visible; }
  .o61-flt.is-open { transform: none; visibility: visible; }
  .o61-flt__mhead { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 10px 20px; position: relative; flex: none; }
  .o61-flt__mhead::before { content: ""; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line-2); }
  .o61-flt__mt { font: 800 20px var(--f-head); }
  .o61-flt__x { width: 40px; height: 40px; border-radius: 50%; display: grid !important; place-items: center; background: var(--bg-soft); }
  .o61-flt__body { overflow: auto; overscroll-behavior: contain; padding: 0 8px 8px; flex: 1; min-height: 0; }
  .o61-flt__mfoot { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; flex: none; }
  .o61-flt__mfoot .o61-btn { width: 100%; }
  .o61-fbg { display: block; position: fixed; inset: 0; z-index: 120; background: rgba(6, 18, 41, .55); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
  body.o61-fsheet-on .o61-fbg { opacity: 1; pointer-events: auto; }
  body.o61-fsheet-on { overflow: hidden; }
  .o61-fg--dio { padding: 14px 12px 12px; }
  .o61-dz .o61-dc { height: 40px; font-size: 13px; }
  .o61-qd__b { padding: 10px 12px; }
  .o61-tgl button { height: 40px; }

  .o61-chead { padding: 20px 18px 16px; border-radius: 18px; }
  .o61-chead__bg { width: 100%; opacity: .55; object-position: 70% 50%; }
  .o61-chead__shade { background: linear-gradient(90deg, rgba(7, 20, 48, .95) 0%, rgba(7, 20, 48, .7) 60%, rgba(7, 20, 48, .4) 100%); }
  .o61-chead__h { margin-top: 10px; gap: 8px 12px; }
  .o61-chead__cnt { height: 30px; line-height: 28px; font-size: 13px; padding: 0 12px; }
  .o61-chead__cnt b { font-size: 16px; line-height: 28px; }
  .o61-chead__lead { font-size: 14px; }
  .o61-ruler { display: none; }

  .o61-tbar { position: sticky; top: 60px; z-index: 25; margin: 12px -16px 0; padding: 8px 16px; background: rgba(245, 247, 251, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); gap: 8px; min-height: 0; }
  .o61-tbar__flt { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--navy-900); color: #fff; font-weight: 700; font-size: 14.5px; flex: none; }
  .o61-tbar__flt .o61-ico { color: var(--gold-400); }
  .o61-tbar__n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--g-gold); color: var(--navy-950); font: 800 12px/22px var(--f-ui); text-align: center; }
  .o61-tbar__count { display: none; }
  .o61-sortsel { height: 44px; padding: 0 26px 0 10px; flex: 1; min-width: 0; margin-left: auto; }
  .o61-sortsel .o61-ico { right: 8px; }
  .o61-sortsel__k { display: none; }
  .o61-sortsel select { font-size: 13.5px; width: 100%; padding-right: 0; max-width: none; text-overflow: ellipsis; }
  .o61-viewsw { padding: 3px; border-radius: 12px; flex: none; }
  .o61-viewsw button { height: 38px; padding: 0 8px; }
  .o61-viewsw button span { display: none; }
  .o61-mdq { display: flex; gap: 6px; overflow-x: auto; margin: 10px -16px 0; padding: 0 16px 2px; scrollbar-width: none; }
  .o61-mdq::-webkit-scrollbar { display: none; }
  .o61-mdq button { flex: none; height: 38px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line-2); background: #fff; font: 700 14px var(--f-head); color: var(--navy-900); font-variant-numeric: tabular-nums; }
  .o61-mdq button.is-pre { font: 600 13.5px var(--f-ui); }
  .o61-mdq button[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--gold-300); }
  .o61-mdq button[disabled] { color: var(--ink-400); border-style: dashed; }
  .o61-chips { flex-wrap: nowrap; overflow-x: auto; margin: 10px -16px 0; padding: 0 16px 2px; scrollbar-width: none; }
  .o61-chips::-webkit-scrollbar { display: none; }
  .o61-chip, .o61-chips__reset { flex: none; white-space: nowrap; }
  .o61-lhint { display: none !important; }
  .o61-mcount { display: block; margin-top: 12px; font-size: 13.5px; color: var(--ink-700); }
  .o61-mcount b { color: var(--ink-900); font-weight: 700; }
  .o61-results { margin-top: 12px; }
}

@media (max-width: 991px) {
  .o61-toasts { top: var(--o61-toast-top, 128px); left: 12px; right: 12px; width: auto; }
  .o61-toast { padding: 10px 14px 10px 10px; font-size: 13.5px; line-height: 1.35; }
  .o61-sform { grid-template-columns: 1fr 1fr; }
  .o61-sform__q { grid-column: 1 / -1; }
  .o61-sform .o61-btn { grid-column: 1 / -1; }
}

@media (max-width: 991px) {
  .o61-cat--search .o61-items, .o61-clayout--wide .o61-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .o61-items, .o61-cat--search .o61-items, .o61-clayout--wide .o61-items { grid-template-columns: 1fr 1fr; gap: 10px; }
  .o61-card__body { padding: 10px; }
  .o61-card__name { font-size: 13.5px; min-height: 35px; line-height: 1.3; margin-top: 4px; }
  .o61-art { font-size: 11px; }
  .o61-card__meta { display: none; }
  .o61-card__row { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 8px; }
  .o61-price { font-size: 20px; }
  .o61-price small { font-size: 12px; }
  .o61-stock { font-size: 11.5px; }
  .o61-dio, .o61-card__all { display: none; }
  .o61-card.is-knows .o61-dio { display: block; margin-top: 8px; }
  .o61-card.is-knows .o61-dio__cap { display: none; }
  .o61-card.is-knows .o61-dc { height: 28px; font-size: 10px; }
  .o61-card.is-knows .o61-dc i { display: none; }
  .o61-card.is-knows .o61-dc:not(.is-sel):not([aria-pressed="true"]) { display: none; }
  .o61-card.is-knows .o61-dio__row { grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); }
  .o61-mdio { display: block; margin-top: 6px; font-size: 11.5px; color: var(--ink-500); }
  .o61-mdio b { color: var(--ink-900); white-space: nowrap; }
  .o61-card.is-knows .o61-mdio { display: none; }
  .o61-buy { padding-top: 10px; gap: 6px; }
  .o61-buy .o61-stepper { display: none; }
  .o61-card.is-knows .o61-buy .o61-stepper, .o61-card[data-mode="simple"] .o61-buy .o61-stepper { display: inline-flex; height: 38px; }
  .o61-buy .o61-stepper button { width: 24px; }
  .o61-buy .o61-stepper input { width: 26px; font-size: 13px; }
  .o61-card.is-knows .o61-buy .o61-btn span { display: none; }
  /* футляры и аксессуары: рядом со счётчиком «В корзину» не влезает и режется до «В ...» — только значок */
  .o61-items:not([data-view="list"]) .o61-card[data-mode="simple"] .o61-buy .o61-btn span { display: none; }
  .o61-buy .o61-btn { --h: 38px; font-size: 13px; }
  .o61-calc { font-size: 11.5px; padding: 6px 8px; flex-direction: column; gap: 2px; }
  .o61-calc b { font-size: 13px; }
  .o61-nm-pre { display: none; }
  .o61-badge { left: 8px; top: 8px; height: 22px; font-size: 10.5px; }
  .o61-fav { width: 32px; height: 32px; right: 8px; top: 8px; }
  .o61-knows { left: 8px; bottom: 8px; height: 26px; font-size: 12.5px; padding: 0 10px 0 4px; }
  .o61-knows i { width: 18px; height: 18px; }
  .o61-knows small { display: none; }

  .o61-items[data-view="list"] { border-radius: 16px; }
  .o61-items[data-view="list"] .o61-card { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "media info price" "dio dio dio" "qty qty buy" "msg msg msg"; gap: 10px; padding: 12px; }
  .o61-items[data-view="list"] .o61-card__media { width: 72px; height: 54px; }
  .o61-items[data-view="list"] .o61-card__name { font-size: 14.5px; white-space: normal; }
  .o61-items[data-view="list"] .o61-card__meta { white-space: normal; display: block; }
  .o61-items[data-view="list"] .o61-card__row { text-align: right; align-self: start; }
  .o61-items[data-view="list"] .o61-price { font-size: 17px; }
  .o61-items[data-view="list"] .o61-dio { display: block; margin: 0; }
  .o61-items[data-view="list"] .o61-card.is-knows .o61-dc:not(.is-sel):not([aria-pressed="true"]) { display: flex; }
  .o61-items[data-view="list"] .o61-card__all, .o61-items[data-view="list"] .o61-calc { display: none; }
  .o61-items[data-view="list"] .o61-stepper { display: inline-flex; }
  .o61-items[data-view="list"] .o61-buy .o61-btn span { display: inline; }
  .o61-items[data-view="list"] .o61-buy--link .o61-btn { grid-column: 1 / -1; grid-row: 3; }
  .o61-results[data-view="list"] .o61-inv-th { display: none; }
  .o61-results[data-view="list"] .o61-items { border-top-left-radius: 16px; border-top-right-radius: 16px; }

  .o61-empty { grid-template-columns: 1fr; padding: 22px 18px; gap: 16px; }
  .o61-empty__art { height: 110px; }
  .o61-empty h2 { font-size: 20px; }
  .o61-more__btn { min-width: 0; width: 100%; }
  .o61-cat .o61-pager .pagination li > a, .o61-cat .o61-pager .pagination li > span { min-width: 36px; height: 36px; }
  .o61-sec { padding-top: 40px; }
  .o61-seo__txt { padding-top: 24px; }
  .o61-editor { font-size: 15px; }
  .o61-spec { margin-top: 20px; }
  .o61-sec__title { font-size: 25px; }
  .o61-rel { grid-template-columns: 1fr 1fr; gap: 10px; }
  .o61-relc { height: 170px; padding: 12px; }
  .o61-relc__n { font-size: 14px; }
  .o61-relc img { padding: 6px 10px 62px; }
  .o61-chead h1 { font-size: 25px; }
  .o61-eyebrow { font-size: 11px; letter-spacing: .1em; }
  .o61-subcat { min-height: 40px; font-size: 14px; }
}

/* ==== этап 10, A: наложения и переносы (начало) ==== */
/* «Накладная» на 992–1199: при боковой колонке 264 px на строку остаётся ~620–770 px, а шесть колонок с зазорами занимают 680+.
   Колонка «Модель» схлопывалась в 0 («Арт.» налезал на «от»). Строка в две линии: вверху фото, название, цена, количество, кнопка;
   внизу диоптрии и ссылка «Все диоптрии». Шапка таблицы на этих ширинах не нужна.
   QA 12.11: на планшете 761–991 (без боковой колонки, бренд, поиск, категория) та же беда — «Модель» сжималась до
   «Арт. 2667 «Glo…»; там та же раскладка в две линии, название в две строки. */
@media (min-width: 761px) and (max-width: 1199px) {
  .o61-results[data-view="list"] .o61-inv-th { display: none; }
  .o61-results[data-view="list"] .o61-items { border-top-left-radius: var(--r-20); border-top-right-radius: var(--r-20); }
  .o61-items[data-view="list"] .o61-card { grid-template-columns: 64px minmax(0, 1fr) 88px 104px 116px; gap: 0 10px; grid-template-areas: "media info price qty buy" "media dio dio dio calc" "media all all all calc" ". msg msg msg msg"; padding: 10px 14px; }
  .o61-items[data-view="list"] .o61-card__media { width: 64px; height: 48px; }
  .o61-items[data-view="list"] .o61-dio { margin-top: 8px; }
  .o61-items[data-view="list"] .o61-dio__row { flex-wrap: nowrap; }
  .o61-items[data-view="list"] .o61-buy--link .o61-btn { grid-column: 4 / 6; }
  .o61-items[data-view="list"] .o61-card__name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .o61-items[data-view="list"] .o61-card__meta { white-space: normal; }
}
/* форма поиска на телефоне: колонки 1fr растягивались по nowrap-подписи «Поиск в названии» (410 px при экране 360) */
@media (max-width: 991px) {
  .o61-sform { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .o61-sform { grid-template-columns: minmax(0, 1fr); }
  .o61-sform__chk { white-space: normal; }
}
/* «Показано 1–15 из 314»: диапазон не рвётся на дефисе */
.o61-tbar__count b { white-space: nowrap; }
/* ==== этап 10, A: наложения и переносы (конец) ==== */

/* этап 10, руководитель: тексты из админки вставлены из Word со своими шрифтами (Times, Helvetica, Oswald) - приводим к шрифтам сайта */
.o61-editor { font-family: var(--f-ui); }
.o61-editor :is(p, span, font, div, ul, ol, li, table, tbody, tr, td, th, a, strong, b, em, i, u, small, blockquote) { font-family: var(--f-ui) !important; font-size: inherit !important; line-height: inherit !important; background-color: transparent !important; }
.o61-editor :is(h1, h2, h3, h4) { font-family: var(--f-head) !important; }
.o61-editor :is(h1, h2, h3, h4) * { font: inherit !important; }

/* ==== этап 11: вёрстка и телефон (UX-аудит 09.11.2026) ==== */

/* P2-1. «Выбрать диоптрии» — вторичная кнопка, пока не отмечена ни одна диоптрия; после выбора «В корзину · N» (синяя) */
.o61-buy .o61-btn.is-ask { background: #fff; color: var(--blue-600); box-shadow: inset 0 0 0 1.5px var(--blue-600); }
.o61-buy .o61-btn.is-ask:hover, .o61-buy .o61-btn.is-ask:focus { background: var(--blue-50); color: var(--blue-600); }
.o61-buy .o61-btn.is-ask .o61-ico { display: none; }
.o61-card.is-added .o61-buy .o61-btn--blue.is-ask { background: var(--ok-600); color: #fff; box-shadow: none; }
/* подсказка над рядом диоптрий, 14 px (плитка; в «накладной» у сообщения своя область сетки) */
.o61-items:not([data-view="list"]) .o61-card[data-mode="matrix"] .o61-card__body > .o61-dio,
.o61-items:not([data-view="list"]) .o61-card[data-mode="matrix"] .o61-card__body > .o61-card__all,
.o61-items:not([data-view="list"]) .o61-card[data-mode="matrix"] .o61-card__body > .o61-calc,
.o61-items:not([data-view="list"]) .o61-card[data-mode="matrix"] .o61-card__body > .o61-buy { order: 1; }
.o61-msg.is-hint { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--blue-50); box-shadow: inset 3px 0 0 var(--blue-600); color: var(--navy-900); font: 600 14px/1.35 var(--f-ui); }
.o61-items[data-view="list"] .o61-msg.is-hint { margin-top: 4px; }
@keyframes o61-nudge { 0%, 100% { transform: none; } 40% { transform: translateY(-4px); } }
.o61-card.is-nudge .o61-dc[data-id] { border-color: var(--blue-600); animation: o61-nudge .5s var(--ease) both; }
.o61-card.is-nudge .o61-dc:nth-child(2) { animation-delay: .05s; }
.o61-card.is-nudge .o61-dc:nth-child(3) { animation-delay: .1s; }
.o61-card.is-nudge .o61-dc:nth-child(4) { animation-delay: .15s; }
.o61-card.is-nudge .o61-dc:nth-child(5) { animation-delay: .2s; }
.o61-card.is-nudge .o61-dc:nth-child(6) { animation-delay: .25s; }
.o61-card.is-nudge .o61-dc:nth-child(7) { animation-delay: .3s; }

@media (max-width: 760px) {
  /* P2-1, телефон: ряд диоптрий в плитке свёрнут; по нажатию «Выбрать диоптрии» раскрывается (как на ПК подсвечивается) */
  .o61-items:not([data-view="list"]) .o61-card.is-open .o61-dio { display: block; margin-top: 8px; }
  .o61-items:not([data-view="list"]) .o61-card.is-open .o61-dio__cap, .o61-items:not([data-view="list"]) .o61-card.is-open .o61-mdio { display: none; }
  .o61-items:not([data-view="list"]) .o61-card.is-open .o61-card__all { display: inline-flex; }
  .o61-items:not([data-view="list"]) .o61-card.is-open .o61-dio__row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding-bottom: 0; }
  .o61-items:not([data-view="list"]) .o61-card.is-open .o61-dio__row::after { display: none; }
  .o61-items:not([data-view="list"]) .o61-card.is-open .o61-dc { display: flex; height: 40px; font-size: 13px; }
  .o61-items:not([data-view="list"]) .o61-card.is-open .o61-dc i { display: block; }

  /* P2-8. Рабочие данные не мельче 13 px, служебные подписи не мельче 12 px */
  .o61-art, .o61-stock, .o61-mdio { font-size: 13px; }
  .o61-dc, .o61-items[data-view="list"] .o61-dc, .o61-card.is-knows .o61-dc { font-size: 13px; }
  .o61-card.is-knows .o61-dc { height: 32px; }
  .o61-calc { font-size: 13px; }
  .o61-calc b { font-size: 14px; }
  .o61-badge, .o61-eyebrow { font-size: 12px; }
  .o61-msg { font-size: 13px; }
}

/* P3-8. Сортировка на узких экранах: без стрелки подпись («По умолчанию») помещается целиком */
@media (max-width: 420px) {
  .o61-sortsel { padding: 0 10px; }
  .o61-sortsel .o61-ico { display: none; }
}

@media (max-width: 760px) {
  .o61-items:not([data-view="list"]) .o61-card.is-open .o61-dc { letter-spacing: -.04em; padding: 0; }
  .o61-items:not([data-view="list"]) .o61-card.is-open .o61-card__all { white-space: nowrap; gap: 4px; }
}

/* ==== этап 11, приёмка: «Выбрать диоптрии» в «накладной» не помещалась в колонку кнопки (130 px текста на 96–136 px) ====
   Пока ничего не выбрано, количество не нужно: степпер скрыт, кнопка занимает обе колонки (количество + кнопка). */
.o61-items[data-view="list"] .o61-card:has(.o61-btn.is-ask) .o61-stepper { display: none; }
.o61-items[data-view="list"] .o61-buy .o61-btn.is-ask { grid-area: auto; grid-column: 5 / 7; grid-row: 1; }
@media (min-width: 761px) and (max-width: 1199px) {
  .o61-items[data-view="list"] .o61-buy .o61-btn.is-ask { grid-column: 4 / 6; }
}
@media (max-width: 760px) {
  .o61-items[data-view="list"] .o61-buy .o61-btn.is-ask { grid-column: 1 / -1; grid-row: 3; }
}

/* ==== этап 11, QA M-1: поле «пар на диоптрию» на плитке телефона ====
   Раньше степпер на ≤760 был скрыт совсем (всегда по 10). Когда ряд раскрыт («Выбрать диоптрии» → чипы), он возвращается:
   отдельной строкой над кнопкой, на всю ширину карточки, «−/+» по 44 px. */
@media (max-width: 760px) {
  .o61-items:not([data-view="list"]) .o61-card.is-open:not(.is-knows) .o61-buy { flex-wrap: wrap; }
  .o61-items:not([data-view="list"]) .o61-card.is-open:not(.is-knows) .o61-buy::before { content: "Штук на диоптрию"; flex: 0 0 100%; font: 400 13px/1.3 var(--f-ui); color: var(--ink-500); }
  .o61-items:not([data-view="list"]) .o61-card.is-open:not(.is-knows) .o61-buy .o61-stepper { display: inline-flex; flex: 0 0 100%; height: 47px; justify-content: space-between; }
  .o61-items:not([data-view="list"]) .o61-card.is-open:not(.is-knows) .o61-buy .o61-stepper button { width: 44px; }
  .o61-items:not([data-view="list"]) .o61-card.is-open:not(.is-knows) .o61-buy .o61-stepper input { flex: 1 1 0; width: 0; min-width: 0; font-size: 16px; height: 100%; }
  .o61-items:not([data-view="list"]) .o61-card.is-open:not(.is-knows) .o61-buy .o61-btn { flex: 0 0 100%; --h: 44px; }
}

/* QA 10.11 (сценарий «30 моделей»): поля количества на телефоне. Меньше 16px — iPhone при вводе увеличивает страницу.
   Поле занимает всю высоту рамки (нажимается вся рамка, а не 16-пиксельная строка текста), «−/+» не ниже 40 px, ширина поля
   под четыре цифры. Шторка диоптрий — в dp-panel.css. На ПК вид прежний (на планшете с касанием меняется только кегль). */
@media (max-width: 991px), (pointer: coarse) {
  .o61-stepper input { font-size: 16px; height: 100%; }
}
@media (max-width: 760px) {
  .o61-items[data-view="list"] .o61-stepper { height: 44px; }
  .o61-items[data-view="list"] .o61-stepper button { width: 40px; }
  .o61-items[data-view="list"] .o61-stepper input { width: 44px; }
  /* узкая плитка сетки (счётчик рядом с кнопкой-значком): 40 px по высоте, поле 34 px — две–три цифры в 16px */
  .o61-card.is-knows .o61-buy .o61-stepper, .o61-card[data-mode="simple"] .o61-buy .o61-stepper { height: 40px; }
  .o61-card.is-knows .o61-buy .o61-btn, .o61-card[data-mode="simple"] .o61-buy .o61-btn { --h: 40px; }
  .o61-buy .o61-stepper button { width: 28px; }
  .o61-buy .o61-stepper input { width: 34px; font-size: 16px; }
}

/* QA 09.11 (B, C): на телефоне после выбора в шторке и при фильтре по диоптрии кнопка плитки сразу кладёт в корзину,
   а ссылка «Все диоптрии» была скрыта — вернуться к выбору было нельзя. Когда выбор есть, ссылка видна и открывает шторку. */
@media (max-width: 760px) {
  .o61-items .o61-card.has-picks .o61-card__all { display: inline-flex; white-space: nowrap; gap: 4px; min-height: 32px; }
  .o61-items[data-view="list"] .o61-card.has-picks .o61-card__all { grid-area: auto; grid-column: 1 / -1; margin: 0; font-size: 13px; }
}

/* товар без цены (цена 0 или меньше не продаётся): «Цена по запросу» и «Узнать цену» вместо цены, наличия и корзины */
.o61-price--ask { font-size: 18px; }
.o61-price--ask b { color: var(--ink-700); }
.o61-buy--ask { margin-top: auto; }
.o61-buy--ask .o61-btn { width: 100%; }
/* ---------- фото плитки открывает окно быстрого заказа (catalog.js → dp-panel.js, правка Вадима 11.11). Само окно —
   stylesheet/optik61/dp-panel.css. На ПК при наведении на фото — подсказка «Быстрый заказ», чтобы было видно, что фото
   не уводит в карточку; на телефоне подсказки нет (наведения нет), окно открывается касанием. ---------- */
@media (hover: hover) and (pointer: fine) {
  .o61-items:not([data-view="list"]) .o61-card:is([data-mode="matrix"], [data-mode="simple"]) .o61-card__media::after { content: "Быстрый заказ"; position: absolute; right: 10px; bottom: 10px; z-index: 2; height: 30px; padding: 0 12px 0 30px; border-radius: 15px; background: rgba(10, 27, 61, .88) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F9DC8A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") 10px 50% / 14px no-repeat; color: #fff; font: 600 12.5px/30px var(--f-ui); pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .o61-items:not([data-view="list"]) .o61-card:is([data-mode="matrix"], [data-mode="simple"]):hover .o61-card__media::after { opacity: 1; transform: none; }
}

/* ---------- SEO-текст категории (.o61-editor): типографика поверх HTML из админки. Текст и разметку не меняем:
   лид — первый абзац, абзац перед списком — подзаголовок, нумерованный список — карточки с номером на линейке,
   последний абзац после списка — врезка. «Читать полностью» — catalog.js (текст всегда в HTML). ---------- */
.o61-editor :is(p, span, font, li) { color: inherit !important; }
.o61-editor { max-width: 72ch; }
.o61-editor > p:first-child { font-size: 18px !important; line-height: 1.6 !important; color: var(--ink-900); font-weight: 500; margin-bottom: 18px; }
.o61-editor > p:first-child * { font-weight: inherit; }
.o61-editor > p:not(.o61-ed-long):has(+ ol), .o61-editor > p:not(.o61-ed-long):has(+ ul) { font: 800 22px/1.25 var(--f-head) !important; color: var(--ink-900); margin: 30px 0 16px; letter-spacing: -.01em; text-wrap: balance; }
.o61-editor > p:not(.o61-ed-long):has(+ ol) *, .o61-editor > p:not(.o61-ed-long):has(+ ul) * { font-family: var(--f-head) !important; font-weight: inherit; }
.o61-editor > ol { list-style: none !important; padding: 0 !important; margin: 0 0 22px !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; counter-reset: o61ed; font-size: 15px !important; }
.o61-editor > ol > li { counter-increment: o61ed; position: relative; margin: 0 !important; padding: 16px 18px 16px 64px !important; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--sh-1); line-height: 1.5 !important; color: var(--ink-700); transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.o61-editor > ol > li:hover { border-color: #E9D7A6; transform: translateY(-2px); box-shadow: var(--sh-2); }
.o61-editor > ol > li::before { content: counter(o61ed, decimal-leading-zero); position: absolute; left: 18px; top: 15px; font: 800 22px/1 var(--f-head); color: var(--gold-500); font-variant-numeric: tabular-nums; }
.o61-editor > ol > li::after { content: ""; position: absolute; left: 18px; top: 42px; width: 28px; height: 6px; background: repeating-linear-gradient(90deg, var(--gold-400) 0 1px, transparent 1px 5px); opacity: .7; }
.o61-editor > ol > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.o61-editor > ol > li > p { display: inline !important; margin: 0 !important; }
.o61-editor > ul { list-style: none !important; padding: 0 !important; margin: 0 0 22px !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; font-size: 15px !important; }
.o61-editor > ul > li { position: relative; margin: 0 !important; padding: 10px 12px 10px 40px !important; border-radius: 12px; background: var(--bg-soft); line-height: 1.45 !important; color: var(--ink-900); font-weight: 500; }
.o61-editor > ul > li::before { content: ""; position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-400) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23061229' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.o61-editor > ul > li > p { display: inline !important; margin: 0 !important; }
.o61-ed-k { display: block; margin-bottom: 4px; font: 700 16px/1.3 var(--f-head) !important; color: var(--ink-900); }
.o61-editor > :is(ol, ul) ~ p:last-child { margin: 4px 0 0 !important; padding: 14px 18px !important; border-left: 3px solid var(--gold-400); border-radius: 0 12px 12px 0; background: var(--bg-soft); color: var(--ink-900); font-weight: 600; }
.o61-editor.is-clamp { max-height: var(--ed-h, 440px); overflow: hidden; -webkit-mask: linear-gradient(180deg, #000 calc(100% - 140px), transparent); mask: linear-gradient(180deg, #000 calc(100% - 140px), transparent); }
.o61-editor.is-open > * { animation: o61-ed-in .4s var(--ease) both; }
@keyframes o61-ed-in { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.o61-ed-more { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; font: 700 14px/1 var(--f-ui); color: var(--ink-900); transition: border-color .16s var(--ease), color .16s var(--ease); }
.o61-ed-more:hover { border-color: var(--blue-600); color: var(--blue-600); }
.o61-ed-more svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.o61-ed-more[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (max-width: 991px) {
  .o61-editor > p:first-child { font-size: 16.5px !important; }
  .o61-editor > p:not(.o61-ed-long):has(+ ol), .o61-editor > p:not(.o61-ed-long):has(+ ul) { font-size: 20px !important; }
  .o61-editor > ol, .o61-editor > ul { grid-template-columns: minmax(0, 1fr); }
  .o61-editor > ol > li:last-child:nth-child(odd) { grid-column: auto; }
}
/* длинный абзац перед списком (catalog.js: .o61-ed-long) — обычный текст, не заголовок */
.o61-editor > p.o61-ed-long { margin: 18px 0 14px; }
/* подпись «Все 24 диоптрии модели» в узкой плитке сетки (две колонки на телефоне, до ~215 px) в одну строку не
   помещается: «модели» убираем, полный текст остаётся в title и aria-label ссылки; в списке ссылка во всю ширину */
@media (max-width: 479px) {
  .o61-items:not([data-view="list"]) .o61-card__all-m { display: none; }
}
/* плитка, уже проявившаяся при прокрутке (wow-catalog ставит ей --mo-d и потом снимает o61-mo-in), не проигрывает
   o61-card-in второй раз — иначе «появилась, исчезла, появилась» (Игорь, 10.11, ПК и iPhone) */
html.o61-motion .o61-items .o61-card[style*="--mo-d"]:not(.o61-mo-in) { animation: none; }
/* телефон: без эффектов, из-за которых мобильный браузер перерисовывает плитки при прокрутке и они мигают (Игорь, 10.11) */
@media (hover: none), (pointer: coarse) {
  .o61-card:hover { transform: none; box-shadow: none; }
  .o61-card:hover .o61-card__media img { transform: none; }
}
@media (max-width: 991px), (pointer: coarse) {
  .o61-tbar, .o61-ruler { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .o61-card__media img[data-fit="contain"] { mix-blend-mode: normal; }
  .o61-card__media:has(img[data-fit="contain"]) { background: #fff; }
  .o61-card__media img { transition: none; }
}

/* ==== шапка категории (правка Вадима 11.11.2026): вместо тёмного баннера — H1, число моделей и линейка-риска снизу.
   Тёмная .o61-chead осталась только у поиска (search.twig). Подразделы и фильтры начинаются сразу под шапкой. ==== */
.o61-ctop { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 2px 0 22px; margin-bottom: 20px; }
.o61-ctop::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px; pointer-events: none;
  background:
    linear-gradient(var(--line-2), var(--line-2)) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 8px) left bottom / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, var(--ink-400) 0 1px, transparent 1px 80px) left bottom / 100% 9px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 55%, transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 55%, transparent 100%); }
.o61-ctop h1 { margin: 0; font: 800 var(--t-31)/1.15 var(--f-head); letter-spacing: -.02em; color: var(--ink-900); text-wrap: balance; }
.o61-ctop__cnt { display: inline-block; height: 34px; padding: 0 14px 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); color: var(--ink-500); font-size: 14px; line-height: 32px; white-space: nowrap; }
.o61-ctop__cnt::before { content: ""; display: inline-block; vertical-align: 1px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok-600); box-shadow: 0 0 0 3px var(--ok-100); margin-right: 9px; }
.o61-ctop__cnt b { font: 800 16px/1 var(--f-head); color: var(--navy-900); }
.o61-cmain > .o61-subcats:first-child { margin-top: 0; }
.o61-cmain > .o61-subcats:first-child + .o61-tbar { margin-top: 16px; }
.o61-cmain > .o61-tbar:first-child { margin-top: 0; }
@media (min-width: 992px) {
  .o61-subcat { min-height: 40px; padding: 0 12px 0 14px; font-size: 14px; gap: 8px; }
}
@media (max-width: 991px) {
  .o61-ctop { gap: 8px 10px; padding: 2px 0 14px; margin-bottom: 12px; }
  .o61-ctop h1 { font-size: 25px; }
  .o61-ctop__cnt { height: 30px; font-size: 13px; line-height: 28px; padding: 0 12px 0 10px; }
  .o61-ctop__cnt b { font-size: 15px; }
  /* подразделы — одна строка с прокруткой: на телефоне пять кнопок столбиком отодвигали каталог на полэкрана */
  .o61-subcats { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
  .o61-subcats::-webkit-scrollbar { display: none; }
  .o61-subcat { flex: none; white-space: nowrap; min-height: 40px; }
  .o61-cmain > .o61-subcats:first-child + .o61-tbar { margin-top: 8px; }
}
