/* =====================================================================
   Магазин: динамические блоки (поиск, корзина, фильтры, формы, адаптив)
   Подключается после style.css и переопределяет макетные стили.
   ===================================================================== */
[hidden] { display: none !important; }
body.no-scroll { overflow: hidden; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn { cursor: pointer; }

/* шапка: поиск */
.header__callback, .footer__small, .p-install { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.header__login { background: none; cursor: pointer; }
.search { position: relative; display: flex; align-items: center; width: auto; height: 40px; margin-left: 20px; padding: 0 32px 0 0; box-sizing: border-box; border-right: 1px solid var(--line-soft); }
.search__btn { display: flex; align-items: center; width: 21px; height: 20px; flex: none; }
.search__input { width: 0; opacity: 0; padding: 0; border: 0; height: 36px; border-radius: 6px; font: inherit; background: #fff; outline: none; transition: width .25s, opacity .2s; }
.search.is-open .search__input { width: 240px; opacity: 1; padding: 0 12px; margin-left: 10px; border: 1px solid var(--line); }
.search.is-open .search__input:focus { border-color: var(--green); }
.search__drop { position: absolute; top: 46px; left: 0; width: 440px; max-width: 90vw; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(26, 26, 37, .16); z-index: 80; overflow: hidden; }
.sd { display: flex; align-items: center; gap: 12px; padding: 10px 14px; font-size: 14px; }
a.sd:hover { background: var(--bg); }
.sd__img { flex: none; width: 44px; height: 44px; border-radius: 6px; background-size: cover; background-position: center; background-color: var(--bg); }
.sd__t { flex: 1; min-width: 0; line-height: 18px; }
.sd b { white-space: nowrap; }
.sd--all { color: var(--green); font-weight: 700; justify-content: center; border-top: 1px solid var(--line-soft); }
.sd--empty { color: var(--gray); justify-content: center; }
.burger { display: none; width: 28px; height: 28px; flex-direction: column; justify-content: center; gap: 5px; margin-left: 8px; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* герой */
.hero__main { background: var(--green); }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity .3s; }
.dots button { width: 8px; height: 8px; border-radius: 2px; background: #fff; opacity: .5; padding: 0; cursor: pointer; transition: opacity .2s; }
.dots button.is-active, .dots button:hover { opacity: 1; }
.hero__promo { display: block; }

/* хиты — карусель */
.hits { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; transition: opacity .2s; }
.hits::-webkit-scrollbar { display: none; }
.hits .card { scroll-snap-align: start; }
.hits.is-loading, .grid.is-loading { opacity: .45; pointer-events: none; }
.empty-line { grid-column: 1 / -1; padding: 40px 0; color: var(--gray); text-align: center; }
.tabs .tab.is-active { color: var(--ink); }

/* карта: целиком, справа */
.about { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 80px; height: auto; align-items: center; padding: 20px 0; }
.about__map { height: auto; overflow: visible; display: flex; justify-content: flex-end; }
.map { position: relative; left: auto; top: auto; width: 100%; max-width: 760px; height: auto; container-type: inline-size; }
.map > img { position: static; width: 100%; max-width: 100%; height: auto; }
.map__lbl { font-size: max(10px, 1.36cqw); line-height: 1.1; }
.map__dot { width: 1.06cqw; height: 1.06cqw; min-width: 10px; min-height: 10px; margin: 0; transform: translate(-50%, -50%); }

/* карточка: ссылка поверх изображения */
.card__media { overflow: hidden; }
.card__link { position: absolute; inset: 0; z-index: 0; }
.card__badges { position: relative; z-index: 1; pointer-events: none; }
.card__tools { z-index: 2; }
.card__title { margin-top: 0; }
.card__info > .card__stock + .card__title { margin-top: -12px; }
.price__ph { display: block; height: 20px; }
.card__stock--out span { color: var(--gray); }
.btn.is-in { background: #fff; color: var(--green); border-color: var(--green); }
.btn.is-in img { filter: invert(25%) sepia(98%) saturate(2500%) hue-rotate(95deg) brightness(.7); }
.icon-btn.is-on img, .link-ico.is-on img { filter: invert(27%) sepia(96%) saturate(5000%) hue-rotate(340deg) brightness(.95); }
.stars img.off { filter: grayscale(1) opacity(.35); }
.stars--input img.is-set { filter: none; }

/* дерево категорий (по умолчанию свёрнуто) */
.tree__node > .tree__sub { display: none; }
.tree__node.is-open > .tree__sub { display: block; }
.tree__row--l1 { padding-left: 0; }
.tree__row--l2 { padding-left: 24px; }
.tree__row--l3 { padding-left: 48px; }
.tree__row { padding-right: 6px; }
.tree__row > a { padding: 0; }
.chev { display: grid; place-items: center; width: 24px; height: 24px; flex: none; margin-right: 0; transition: transform .2s; cursor: pointer; }
.tree__node.is-open > .tree__row > .chev { transform: rotate(90deg); }
.tree__row.is-active > a { color: var(--green); text-decoration: underline; }

/* двойной ползунок цены */
.dual { position: relative; height: 16px; margin-top: 14px; }
.dual__track { position: absolute; left: 6px; right: 6px; top: 7px; height: 2px; background: rgba(0, 128, 0, .25); }
.dual__track i { position: absolute; top: 0; bottom: 0; background: var(--green); }
.dual input[type=range] { position: absolute; left: 0; top: 0; width: 100%; height: 16px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.dual input[type=range]::-webkit-slider-runnable-track { background: none; height: 16px; }
.dual input[type=range]::-moz-range-track { background: none; }
.dual input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 14px; height: 14px; margin-top: 1px; border-radius: 50%; background: #fff; border: 2px solid var(--green); cursor: grab; }
.dual input[type=range]::-moz-range-thumb { pointer-events: auto; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--green); cursor: grab; }
.filters-toggle { display: none; width: 100%; }
.catalog__count { color: var(--gray); margin-bottom: 16px; min-height: 20px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 60px 20px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.empty h3 { font-size: 22px; }
.empty p { color: var(--gray); }
.more__btn { background: none; cursor: pointer; padding: 4px 8px; }
.more__btn:hover { text-decoration: underline; }
.pager a:hover { background: rgba(0, 128, 0, .08); }

/* страница товара */
.p-brand--text { display: block; font-weight: 800; font-size: 30px; line-height: 57px; color: var(--green); }
.p-info__head { min-height: 57px; }
.review__ava { display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; background: var(--gray); }
.p-install:hover { text-decoration: underline; }
.reviews__avg { grid-template-columns: auto auto; }
.form__error { color: var(--red); font-size: 13px; line-height: 18px; }

/* формы и модальные окна */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text); }
.form input[type=text], .form input[type=tel], .form input[type=email], .form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 14px; background: #fff; outline: none; color: var(--ink); }
.form input:focus, .form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 128, 0, .1); }
.form__row { display: flex; gap: 12px; }
.form__hint { font-size: 12px; line-height: 16px; color: var(--gray); }
.form__hint a { color: var(--green); text-decoration: underline; }
.form__group { border: 0; display: flex; flex-direction: column; gap: 8px; }
.form__group legend { font-size: 13px; color: var(--text); margin-bottom: 6px; }
.radio { flex-direction: row !important; align-items: center; gap: 10px !important; cursor: pointer; color: var(--ink) !important; font-size: 14px !important; }
.radio input { position: absolute; opacity: 0; }
.radio i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--gray); flex: none; position: relative; background: #fff; }
.radio input:checked + i { border-color: var(--green); }
.radio input:checked + i::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--green); }
.radio input:focus-visible + i { outline: 2px solid var(--green); outline-offset: 2px; }
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .5); overflow-y: auto; }
.modal__box { position: relative; width: 100%; max-width: 420px; padding: 32px; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal__box h3 { font-size: 24px; line-height: 28px; margin-bottom: 8px; padding-right: 30px; }
.modal__lead { color: var(--gray); margin-bottom: 20px; }
.modal__close { position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; color: var(--gray); font-size: 16px; cursor: pointer; }
.modal__close:hover { background: var(--bg); color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 30px); padding: 12px 20px; background: var(--ink); color: #fff; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; max-width: 90vw; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* корзина */
.page-head--simple .crumbs { padding-top: 40px; }
.page-head--simple h1 { font-weight: 800; font-size: 38px; line-height: 42px; padding: 24px 0; }
.cart { display: flex; gap: 24px; align-items: flex-start; padding-top: 40px; padding-bottom: 60px; }
.cart__list { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.crow { display: grid; grid-template-columns: 96px 1fr auto 150px 32px; gap: 20px; align-items: center; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.crow__img { width: 96px; height: 96px; border-radius: 10px; background-size: cover; background-position: center; border: 1px solid var(--line-soft); }
.crow__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.crow__title { font-weight: 700; font-size: 16px; line-height: 21px; }
.crow__title:hover { color: var(--green); }
.crow__brand { color: var(--gray); font-size: 13px; }
.crow__price { text-align: right; display: flex; flex-direction: column; }
.crow__price b { font-size: 18px; line-height: 23px; }
.crow__price small { color: var(--gray); font-size: 12px; }
.crow__del { width: 32px; height: 32px; border-radius: 50%; color: var(--gray); cursor: pointer; }
.crow__del:hover { background: var(--bg); color: var(--red); }
.crow .qty button { cursor: pointer; }
.crow .qty span { color: var(--ink); font-weight: 700; }
.link-clear { align-self: flex-start; background: none; color: var(--gray); text-decoration: underline; cursor: pointer; font-size: 13px; padding: 4px 0; }
.link-clear:hover { color: var(--red); }
.cart__side { flex: 0 0 400px; position: sticky; top: 20px; }
.cart__box { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.cart__box h3 { font-size: 22px; line-height: 26px; margin-bottom: 18px; }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.cart__total b { font-size: 24px; line-height: 29px; }
.done { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; padding: 60px 20px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.done__ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; font-size: 32px; }
.done h2 { font-size: 28px; }

/* избранное, инфо, 404 */
.listpage { padding-top: 40px; padding-bottom: 60px; }
.info { padding-top: 40px; padding-bottom: 60px; }
.info__body { width: 100%; max-width: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.info__body h2 { font-size: 22px; line-height: 28px; margin: 28px 0 10px; }
.info__body h2:first-child { margin-top: 0; }
.info__body h3 { font-size: 16px; margin-bottom: 6px; }
.info__body p, .info__body li { font-size: 16px; line-height: 26px; margin-bottom: 10px; }
.info__body ul { list-style: disc; padding-left: 22px; margin-bottom: 10px; }
.info__body a:not(.btn) { color: var(--green); text-decoration: underline; }
.info__body .lead { font-size: 18px; line-height: 28px; }
.info-stats { display: flex; gap: 40px; margin: 20px 0; }
.info-stats b { display: block; font-size: 32px; line-height: 35px; color: var(--green); }
.info-stats span { color: var(--gray); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 20px; }
.notfound { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 100px 20px; text-align: center; }
.notfound b { font-size: 120px; line-height: 1; color: var(--green); font-weight: 800; }
.notfound h1 { font-size: 32px; }
.notfound p { color: var(--gray); }
.notfound__btns { display: flex; gap: 12px; margin-top: 12px; }

/* ---------- адаптив ---------- */
@media (max-width: 1280px) {
  .nav a { padding: 12px 10px 13px; }
  .header__right { gap: 20px; }
}
@media (max-width: 1100px) {
  .header__top-in { height: 60px; }
  .logo img { height: 40px; width: auto; }
  .header__nav-in { height: 56px; }
  .header__nav-left { gap: 12px; }
  .search { margin-left: 0; padding-right: 12px; border: 0; }
  .search.is-open .search__input { width: 180px; }
  .burger { display: flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 70; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(26, 26, 37, .1); padding: 8px 20px 16px; }
  .header__nav { position: relative; }
  body.menu-open .nav { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); }
  .hits { grid-auto-columns: calc((100% - 24px) / 2); }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about__map { justify-content: center; }
  .features { flex-wrap: wrap; margin-top: 0; align-items: stretch; }
  .feat { flex: 1 1 45%; }
  .p-top { gap: 32px; flex-direction: column; }
  .p-gallery { flex: 0 0 auto; width: 100%; }
  .p-gallery__main { width: 100%; height: auto; aspect-ratio: 1; }
  .p-info { width: 100%; }
  .cart { flex-direction: column; }
  .cart__side { flex: none; width: 100%; position: static; }
  .slider__btn--prev { left: 12px; }
  .slider__btn--next { right: 12px; }
  .filters-toggle { display: block; margin-bottom: 16px; }
  .filters { display: none; max-width: none; width: 100%; flex-basis: auto; }
  body.filters-open .filters { display: block; }
  .catalog { flex-direction: column; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__cols .footer__contacts { margin-left: 0; }
}
@media (max-width: 760px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .header__top-in { gap: 8px; }
  .header__call, .socials, .vsep { display: none; }
  .header__login #loginLabel { display: none; }
  .home { gap: 40px; padding-top: 16px; }
  .hero__main { padding: 24px; min-height: 380px; }
  .hero__body h1 { font-size: 30px; line-height: 34px; }
  .hero__btns { flex-direction: column; gap: 10px; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero__promo { min-height: 360px; }
  .section__head h2 { font-size: 24px; line-height: 28px; }
  .tabs { gap: 16px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; padding-bottom: 4px; align-items: flex-end; }
  .tabs .tab { font-size: 18px; white-space: nowrap; }
  .tabs h2 { white-space: nowrap; }
  .arrows { display: none; }
  .cat-grid, .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat { height: auto; }
  .cat__img { flex-basis: 120px; }
  .cat__name { padding: 12px; font-size: 14px; line-height: 18px; }
  .cat-cta { grid-column: span 2; height: 120px; }
  .hits { grid-auto-columns: 78%; gap: 12px; }
  .card__body { padding: 14px 14px 18px; }
  .card__buy { flex-direction: column; align-items: stretch; gap: 10px; }
  .card__buy .btn { width: 100%; }
  .stats { flex-wrap: wrap; gap: 16px; }
  .stats > div { padding-right: 16px; }
  .features { flex-direction: column; }
  .cta { padding: 24px; }
  .cta__body h2 { font-size: 30px; line-height: 34px; }
  .footer__cols { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .footer__bottom { flex-direction: column; gap: 24px; }
  .footer__brand { width: auto; }
  .footer__pay { flex-wrap: wrap; gap: 16px; }
  .page-head h1, .page-head--product h1, .page-head--simple h1 { font-size: 28px; line-height: 32px; }
  .crumbs { padding-top: 24px; flex-wrap: wrap; gap: 6px 8px; }
  .page-head__row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .sort { flex-wrap: wrap; gap: 8px 14px; }
  .p-cols { flex-direction: column; }
  .p-meta { flex-basis: auto; }
  .p-ship { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .acc { padding: 16px; }
  .acc__head h2 { font-size: 20px; }
  .text p { font-size: 16px; line-height: 24px; }
  .slider { height: 260px; margin: 16px -16px 0; }
  .slide:nth-child(2) { width: 80vw; }
  .slide:not(:nth-child(2)) { width: 40vw; }
  .reviews { flex-direction: column; gap: 24px; }
  .reviews__sum { flex-basis: auto; width: 100%; }
  .rform__grid, .rform__two { grid-template-columns: 1fr; }
  .rform__note { margin-top: 0; max-width: none; }
  .specs td { padding: 12px; }
  .crow { grid-template-columns: 72px 1fr 32px; grid-template-areas: "img info del" "qty price price"; gap: 12px; }
  .crow__img { grid-area: img; width: 72px; height: 72px; }
  .crow__info { grid-area: info; }
  .crow__del { grid-area: del; }
  .crow .qty { grid-area: qty; }
  .crow__price { grid-area: price; }
  .info__body { padding: 20px; }
  .info-grid { grid-template-columns: 1fr; }
  .modal__box { padding: 24px; }
}
.stats span{white-space:nowrap}

.tabs__title { cursor: pointer; }

/* ===== сверка с макетом ===== */
.card__tools { right: 26px; }
.card__title { letter-spacing: -.01em; }
.section__head h2 { line-height: 23px; }
.tabs .tab { line-height: 17px; }
.stats { gap: 0; }
.stats > div { flex: 1; padding: 0 0 0 40px; }
.stats > div:first-child { padding-left: 0; }
.map__lbl { text-transform: uppercase; letter-spacing: -.02em; }
.feat h3 { font-size: 14px; line-height: 17px; }
.cta__body span { text-transform: uppercase; letter-spacing: .06em; opacity: .6; }
.cta__body p { max-width: 600px; }
@media (min-width: 1101px) {
  .feat:first-child { border-radius: 16px 0 0 16px; }
  .feat:last-child { border-radius: 0 16px 16px 0; }
  .feat--active { border-radius: 16px 16px 0 0; }
}

/* ===== сверка: каталог и страница товара ===== */
.sort__item { color: rgba(56, 66, 85, .6); }
.sort__item.is-active, .sort__item:hover { color: var(--text); }
.catalog__count { margin: 0; }
.page-product { background: #fff; }
.page-product .page-head { background: #fff; }
.p-flags b { text-transform: uppercase; }
.p-props { font-size: 16px; line-height: 24px; gap: 4px; }
.p-meta { gap: 24px; }
.p-meta__acts { font-size: 16px; }
.p-all, .p-ship a { color: var(--blue); }
.p-buy__box { padding: 30px 20px 20px; gap: 0; }
.p-price { align-items: baseline; gap: 12px; margin: 14px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.p-price b { font-size: 32px; line-height: 35px; }
.p-price s { font-size: 22px; line-height: 26px; }
.p-buy__row { margin: 18px 0 14px; }
.p-buy__row .btn { height: 49px; font-size: 14px; max-width: 170px; }
.qty button { width: 26px; height: 26px; }
.p-install { font-weight: 700; font-size: 14px; line-height: 17px; color: var(--green); }
.p-ship { position: relative; grid-template-columns: 1fr 1fr; gap: 32px; padding: 30px; font-size: 14px; line-height: 20px; background: var(--bg); border-radius: 6px; }
.p-ship__col { position: relative; }
.p-ship b { font-weight: 700; }
.help { position: absolute; right: 8px; bottom: 8px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; color: var(--gray); cursor: help; }
.p-ship__col:last-child .help { top: 4px; bottom: auto; }
.page-product .acc { border-color: var(--line); }

.p-ship__col { padding-right: 30px; }

/* свёрнутый раздел скрывает всё, кроме заголовка (включая форму отзыва) */
.acc:not(.is-open) > :not(.acc__head) { display: none !important; }

/* ===== окно входа / регистрации ===== */
.modal__box--auth { max-width: 440px; padding: 28px 32px 30px; overflow: hidden; }
.modal__box--auth::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--green), var(--lime)); }
.auth__brand { display: flex; justify-content: center; margin: 4px 0 20px; }
.auth__tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 22px; background: var(--bg); border-radius: 12px; }
.auth__tabs::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: #fff; border-radius: 9px; box-shadow: 0 2px 8px rgba(26, 26, 37, .12); transition: transform .25s cubic-bezier(.4, 0, .2, 1); }
.auth__tabs[data-active="register"]::before { transform: translateX(100%); }
.auth__tabs button { position: relative; height: 40px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--gray); transition: color .2s; }
.auth__tabs button.is-active { color: var(--ink); }
.auth__form h3 { font-size: 24px; line-height: 28px; padding-right: 0; margin-bottom: -6px; }
.auth__form .modal__lead { margin-bottom: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__l { font-size: 13px; font-weight: 500; color: var(--text); }
.field__in { position: relative; display: flex; align-items: center; }
.field__in > svg { position: absolute; left: 14px; color: var(--gray); pointer-events: none; transition: color .2s; }
.modal__box--auth .field__in input { width: 100%; height: 48px; padding: 0 14px 0 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 15px; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.modal__box--auth .field__in input::placeholder { color: #aab2c2; }
.field__in:focus-within > svg { color: var(--green); }
.modal__box--auth .field__in input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 128, 0, .1); }
.modal__box--auth .field__in input.is-bad { border-color: var(--red); box-shadow: 0 0 0 4px rgba(245, 59, 73, .1); }
.modal__box--auth .field__in input[type=password], .modal__box--auth .field__in input[data-pw] { padding-right: 46px; }
.pw__eye { position: absolute; right: 4px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--gray); border-radius: 8px; }
.pw__eye:hover { color: var(--ink); }
.pw__eye.is-on { color: var(--green); }
.auth__form .btn { height: 50px; font-size: 16px; margin-top: 4px; }
.auth__switch { text-align: center; font-size: 14px; color: var(--gray); }
.auth__switch button { color: var(--green); font-weight: 700; padding: 4px 2px; }
.auth__switch button:hover { text-decoration: underline; }
.auth__form .form__error { padding: 10px 12px; border-radius: 8px; background: rgba(245, 59, 73, .08); }
.auth__account { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding-top: 4px; }
.auth__account .btn { width: 100%; }
.auth__ava { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--lime)); color: #fff; font-size: 30px; font-weight: 700; }
.auth__account h3 { margin: 4px 0 0; padding: 0; }
.auth__mail { color: var(--gray); margin-top: -8px; margin-bottom: 8px; word-break: break-all; }
.auth__form:not([hidden]), .auth__account:not([hidden]) { animation: auth-in .25s ease-out; }
@keyframes auth-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* сертификаты на странице товара */
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; list-style: none; padding: 0; }
.certs a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 500; transition: .2s; }
.certs a:hover { border-color: var(--green); box-shadow: 0 6px 18px rgba(0, 128, 0, .1); }
.certs__ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 8px; background: rgba(0, 128, 0, .1); color: var(--green); font-weight: 800; font-size: 11px; }
.cert-texts { display: grid; gap: 10px; margin-top: 12px; }
.cert-text { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.cert-text summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; font-weight: 500; list-style: none; }
.cert-text summary::-webkit-details-marker { display: none; }
.cert-text summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border: solid var(--gray); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: .2s; }
.cert-text[open] summary::after { transform: rotate(-135deg); }
.cert-text[open] { border-color: var(--green); }
.cert-text__body { padding: 4px 16px 6px 66px; }
.cert-text__body p { font-size: 15px; line-height: 23px; margin-bottom: 12px; }
@media (max-width: 760px) { .cert-text__body { padding-left: 16px; } }

/* ===== подкатегории в модальном окне (главная) ===== */
.cat__img { position: relative; }
.cat__sub { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--green); box-shadow: 0 2px 8px rgba(26, 26, 37, .18); transition: .2s; }
.cat--has-sub:hover .cat__sub { background: var(--green); color: #fff; transform: translateX(2px); }
.modal__box--sub { max-width: 880px; max-height: 90vh; overflow-y: auto; padding: 28px 28px 30px; overscroll-behavior: contain; }
.sub__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-right: 40px; margin-bottom: 20px; }
.modal__box--sub .sub__head h3 { margin: 0; padding: 0; font-size: 26px; line-height: 32px; }
.sub__all { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 700; }
.sub__all:hover { text-decoration: underline; }
.sub__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.sub__card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .2s, border-color .2s, transform .2s; }
.sub__card:hover, .sub__card:focus-visible { box-shadow: 0 8px 26px rgba(26, 26, 37, .12); border-color: rgba(0, 128, 0, .4); transform: translateY(-2px); }
.sub__img { display: block; aspect-ratio: 4 / 3; background: #f1f3f1 center / cover no-repeat; border-bottom: 1px solid var(--line-soft); }
.sub__name { display: block; padding: 12px 14px; font-weight: 700; line-height: 19px; }
.sub__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sub__chips a { padding: 6px 12px; border-radius: 15px; background: var(--bg); font-size: 13px; line-height: 16px; transition: .15s; }
.sub__chips a:hover { background: rgba(0, 128, 0, .1); color: var(--green); }
@media (max-width: 760px) {
  .modal__box--sub { padding: 22px 14px calc(20px + env(safe-area-inset-bottom)); max-height: 88vh; }
  .modal__box--sub .sub__head h3 { font-size: 22px; line-height: 27px; }
  .sub__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sub__name { padding: 10px 12px; font-size: 14px; line-height: 18px; }
  .cat__sub { width: 24px; height: 24px; right: 8px; bottom: 8px; }
}

/* кнопка «Купить в Каспи магазине» */
.p-kaspi { display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 24px; border-radius: 10px; background: #f14635; color: #fff; font-weight: 700; font-size: 16px; line-height: 20px; transition: background .2s, box-shadow .2s, transform .2s; }
.p-kaspi:hover { background: #d93a2a; box-shadow: 0 8px 22px rgba(241, 70, 53, .35); transform: translateY(-1px); }
.p-kaspi svg { flex: none; }

/* поиск: подсказки */
.search__drop { max-height: 70vh; overflow-y: auto; overscroll-behavior: contain; padding: 4px 0; }
.sd__h { padding: 10px 14px 4px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gray); }
.sd__t small { display: block; margin-top: 1px; font-size: 12px; color: var(--gray); }
a.sd:hover, a.sd.is-sel { background: rgba(0, 128, 0, .07); }
.sd--cat { font-weight: 600; }
.sd__go { flex: none; color: var(--gray); font-size: 20px; line-height: 1; }
.sd--empty { flex-direction: column; gap: 4px; padding: 22px 16px; text-align: center; }
.sd--empty b { color: var(--ink); font-size: 15px; }
.sd--empty span { font-size: 13px; }

/* корзина: «Итого» вместо заголовка блока заказа */
.cart__sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cart__sum h3 { margin: 0; font-size: 22px; line-height: 26px; }
.cart__sum b { font-size: 28px; line-height: 32px; white-space: nowrap; }
.cart__count { margin: 6px 0 20px; color: var(--gray); font-size: 15px; }
.cart__go { width: 100%; height: 54px; font-size: 16px; }
/* страница оформления: состав заказа */
.co__h { margin-bottom: 14px; }
.co__items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); list-style: none; }
.co__it { display: flex; align-items: center; gap: 12px; }
.co__img { flex: none; width: 52px; height: 52px; border-radius: 8px; border: 1px solid var(--line-soft); background: #f1f3f1 center / cover no-repeat; }
.co__t { flex: 1; min-width: 0; font-size: 14px; line-height: 18px; font-weight: 600; }
.co__t small { display: block; margin-top: 2px; font-weight: 400; color: var(--gray); }
.co__it b { white-space: nowrap; font-size: 14px; }
.cart__sum--end + .cart__count { margin-bottom: 12px; }

/* пагинация каталога */
.more { margin-top: 40px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.pager .pg { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.pager a.pg:hover { border-color: var(--green); color: var(--green); background: rgba(0, 128, 0, .05); transform: translateY(-2px); }
.pager a.pg:active { transform: scale(.94); }
.pager .pg.is-active { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(0, 128, 0, .28); }
.pager a.pg.is-active:hover { background: #006a00; color: #fff; transform: none; }
.pager .pg--arrow { color: var(--green); }
.pager .pg--off { color: #c3c9d6; background: transparent; border-color: var(--line-soft); cursor: default; }
.pager .pg--dots { min-width: 28px; padding: 0; border: 0; background: none; color: var(--gray); font-weight: 400; }
@media (max-width: 480px) { .pager { gap: 6px; } .pager .pg { min-width: 40px; height: 40px; border-radius: 10px; } }

/* =====================================================================
   Оформление заказа (по макету «оформление.png»)
   ===================================================================== */
.co { display: grid; grid-template-columns: minmax(0, 1fr) 450px; gap: 50px; align-items: start; padding-top: 36px; padding-bottom: 70px; }
.co__main { min-width: 0; }
.co h2 { margin-bottom: 26px; font-size: 32px; line-height: 38px; font-weight: 800; }

/* шаги */
.steps { display: flex; align-items: center; gap: 16px; margin-bottom: 34px; font-size: 16px; line-height: 20px; }
.steps__i { color: #b3b9c7; font-weight: 600; transition: color .2s; }
.steps__i.is-on { color: var(--text); font-weight: 700; }
a.steps__i:hover { color: var(--green); }
.steps__sep { width: 1px; height: 20px; background: var(--line); }
.steps--cart { padding-top: 34px; margin-bottom: -6px; }

/* секции */
.co__sec { margin-top: 48px; padding-top: 48px; border-top: 1px solid rgba(26, 26, 37, .15); scroll-margin-top: 90px; }
.co__sec--first { margin-top: 0; padding-top: 0; border-top: 0; }
.co__lead { margin: -8px 0 26px; font-size: 16px; line-height: 24px; color: var(--text); }
.co__city { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; font-size: 18px; line-height: 24px; color: var(--text); }
.co__city select { appearance: none; -webkit-appearance: none; border: 0; padding: 0 20px 0 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%231a1a25'/%3E%3C/svg%3E") no-repeat right center; font: inherit; color: var(--ink); cursor: pointer; outline: none; }
.co__city select:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 4px; }

/* карточки выбора (доставка / оплата) */
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.opt { position: relative; display: flex; gap: 16px; padding: 22px 20px; background: #fff; border: 2px solid transparent; border-radius: 6px; cursor: pointer; transition: border-color .25s, box-shadow .3s, transform .25s var(--ease, ease); }
.opt--wide { grid-column: 1 / -1; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__box { position: relative; flex: none; width: 18px; height: 18px; margin-top: 2px; border: 1.5px solid #858fa4; border-radius: 3px; background: #fff; transition: background .2s, border-color .2s, transform .25s; }
.opt__box::after { content: ''; position: absolute; left: 5px; top: 1px; width: 4px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .2s; }
.opt.is-on { border-color: #2fc509; }
.opt.is-on .opt__box { background: #2fc509; border-color: #2fc509; }
.opt.is-on .opt__box::after { transform: rotate(45deg) scale(1); }
.opt:hover { box-shadow: 0 8px 24px rgba(26, 26, 37, .08); }
.opt:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.opt__b { display: block; min-width: 0; }
.opt__t { display: block; font-size: 18px; line-height: 22px; font-weight: 700; color: var(--ink); }
.opt__d { display: block; margin-top: 12px; font-size: 16px; line-height: 24px; color: var(--text); }
.opt__d:empty { display: none; }
.opt__free { display: block; margin-top: 24px; font-size: 15px; line-height: 20px; color: var(--ink); }
#secPay .opt__d { margin-top: 2px; }
.co__addr { margin-top: 24px; max-width: 520px; animation: pageIn .4s ease both; }

/* вкладки «Физическое / Юридическое лицо» */
.co__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 34px; }
.co__tabs button { height: 36px; border-radius: 4px; background: #fff; color: var(--ink); font-weight: 700; font-size: 12px; letter-spacing: .01em; transition: background .25s, color .25s; }
.co__tabs button:hover { background: #eef0f3; }
.co__tabs button.is-on { background: #727b8a; color: #fff; }
.co__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: start; }

/* поля */
.fld { display: block; margin-bottom: 14px; }
.fld > span { display: block; margin-bottom: 8px; font-size: 16px; line-height: 20px; color: var(--text); }
.fld em { color: var(--green); font-style: normal; }
.fld input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid rgba(133, 143, 164, .45); border-radius: 4px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.fld input::placeholder { color: #aab1c1; }
.fld input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 128, 0, .1); }
.fld input.is-bad { border-color: var(--red); box-shadow: 0 0 0 3px rgba(245, 59, 73, .1); }
.legal-only, .co__pw { animation: pageIn .4s ease both; }

/* галочки согласия */
.chk { position: relative; display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--text); cursor: pointer; }
.chk input { position: absolute; opacity: 0; pointer-events: none; }
.chk i { position: relative; flex: none; width: 16px; height: 16px; margin-top: 2px; border: 1.5px solid #858fa4; border-radius: 3px; background: #fff; transition: background .2s, border-color .2s; }
.chk i::after { content: ''; position: absolute; left: 4px; top: 0; width: 3px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .2s; }
.chk input:checked + i { background: #2fc509; border-color: #2fc509; }
.chk input:checked + i::after { transform: rotate(45deg) scale(1); }
.chk input:focus-visible + i { outline: 2px solid var(--green); outline-offset: 2px; }
.chk a { color: var(--green); text-decoration: underline; }
.co .form__error { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: rgba(245, 59, 73, .08); }

/* кнопки внизу формы */
.co__guest { display: grid; gap: 12px; margin-top: 24px; }
.co__guest .btn, .co__user .btn { width: 100%; height: 44px; font-size: 14px; }
.co__user { margin-top: 24px; }
.co__user .btn { height: 52px; }

/* правый блок */
.co__acc h3 { margin-bottom: 6px; font-size: 20px; line-height: 26px; font-weight: 700; color: var(--text); }
.co__acc p { font-size: 16px; line-height: 24px; color: var(--text); }
.co__acc a { color: var(--green); }
.co__acc a:hover { text-decoration: underline; }
.co__acc .co__acc-t { margin-top: 30px; }

/* итоговая карточка */
.co__side { position: sticky; top: 20px; }
.sum { padding: 30px; background: #fff; border-radius: 6px; }
.sum__total { display: grid; grid-template-columns: 150px 1fr; align-items: baseline; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--green); font-size: 21px; line-height: 26px; font-weight: 800; }
.sum__rows { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 8px 10px; align-items: start; font-size: 15px; line-height: 24px; color: var(--text); }
.sum__rows dt, .sum__rows dd { margin: 0; }
.sum__b { font-weight: 700; }
.sum__gap { margin-top: 12px; }
.sum__rows dd b { display: block; font-weight: 700; }
.sum__rows dd span { display: block; }
.sum__a a { color: var(--blue); font-weight: 700; font-size: 12px; line-height: 24px; transition: color .2s; }
.sum__a a:hover { text-decoration: underline; }
.sum__btn { width: 100%; height: 56px; margin-top: 30px; font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }

/* ---------- планшет и телефон ---------- */
@media (max-width: 1100px) {
  .co { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .co__side { position: static; }
}
@media (max-width: 760px) {
  .co { padding-top: 22px; padding-bottom: 40px; }
  .co h2 { margin-bottom: 18px; font-size: 26px; line-height: 32px; }
  .steps { margin-bottom: 24px; }
  .co__sec { margin-top: 36px; padding-top: 36px; }
  .opts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .opt { padding: 18px 16px; }
  .opt__t { font-size: 17px; }
  .opt__d { margin-top: 10px; font-size: 15px; line-height: 22px; }
  .co__city { font-size: 16px; }
  .co__tabs { gap: 10px; margin-bottom: 24px; }
  .co__tabs button { height: 42px; }
  .co__cols { grid-template-columns: minmax(0, 1fr); }
  .fld input { font-size: 16px; }
  .co__acc .co__acc-t { margin-top: 16px; }
  .sum { padding: 22px 18px; }
  .sum__total, .sum__rows { grid-template-columns: 110px minmax(0, 1fr) auto; }
  .sum__total { grid-template-columns: 110px 1fr; }
  .sum__btn { height: 54px; }
}

/* ---------- оплата: «Скоро», итог шага, кнопки ---------- */
.opt--soon { cursor: not-allowed; background: #f6f8f6; }
.opt--soon .opt__t, .opt--soon .opt__d { opacity: .6; }
.opt--soon .opt__box { opacity: .45; }
.soon { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 10px; background: rgba(249, 152, 8, .15); color: #b86e00; font-size: 12px; font-style: normal; font-weight: 600; vertical-align: 2px; opacity: 1; }
.recap { margin-top: 22px; padding: 18px 20px; border: 1px solid rgba(133, 143, 164, .25); border-radius: 14px; background: #fff; }
.recap h3 { margin: 0 0 10px; font-size: 16px; }
.recap dl { margin: 0; display: grid; gap: 8px; }
.recap dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; font-size: 14px; }
.recap dt { color: #858fa4; }
.recap dd { margin: 0; color: #1a1a25; overflow-wrap: anywhere; }
.co__paybtns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.co__paybtns .btn { min-width: 180px; }
.co__paybtns #payBtn { flex: 1; }
@media (max-width: 760px) { .recap dl > div { grid-template-columns: 1fr; gap: 2px; } .co__paybtns .btn { width: 100%; } }

/* ---------- чек ---------- */
.co--done { display: block; }
.rc { max-width: 560px; margin: 8px auto 40px; }
.rc__card { position: relative; background: #fff; border-radius: 18px 18px 0 0; box-shadow: 0 10px 40px rgba(0, 64, 0, .12); overflow: hidden; padding: 0 0 26px; animation: rcIn .6s cubic-bezier(.2, .8, .2, 1) both; }
.rc__card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: linear-gradient(-135deg, transparent 8px, #fff 0) 0 0 / 16px 12px, linear-gradient(135deg, transparent 8px, #fff 0) 0 0 / 16px 12px; background-color: transparent; }
.rc__card { padding-bottom: 34px; }
@keyframes rcIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.rc__top { padding: 32px 28px 24px; text-align: center; color: #fff; background: linear-gradient(135deg, #004000, #008000 60%, #2fc509); }
.rc__top h2 { margin: 14px 0 6px; font-size: 26px; color: #fff; }
.rc__top p { margin: 0 auto; max-width: 380px; font-size: 14px; line-height: 1.5; opacity: .92; }
.rc__ok { width: 68px; height: 68px; margin: 0 auto; }
.rc__ok svg { width: 100%; height: 100%; fill: rgba(255, 255, 255, .15); stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.rc__ok circle { stroke-dasharray: 152; stroke-dashoffset: 152; animation: rcDraw .7s .15s ease forwards; }
.rc__ok path { fill: none; stroke-width: 3.5; stroke-dasharray: 40; stroke-dashoffset: 40; animation: rcDraw .4s .7s ease forwards; }
@keyframes rcDraw { to { stroke-dashoffset: 0; } }
.rc__meta { display: flex; justify-content: space-between; gap: 16px; padding: 18px 28px; border-bottom: 2px dashed rgba(133, 143, 164, .35); }
.rc__meta span, .rc__info span { display: block; margin-bottom: 3px; font-size: 12px; color: #858fa4; text-transform: uppercase; letter-spacing: .04em; }
.rc__meta b { font-size: 15px; color: #1a1a25; }
.rc__meta > div:last-child { text-align: right; }
.rc__list { list-style: none; margin: 0; padding: 8px 28px; }
.rc__it { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(133, 143, 164, .15); font-size: 14px; }
.rc__it:last-child { border-bottom: 0; }
.rc__n { color: #1a1a25; overflow-wrap: anywhere; }
.rc__n small { display: block; margin-top: 3px; color: #858fa4; font-size: 13px; }
.rc__it b { white-space: nowrap; color: #1a1a25; }
.rc__sum { margin: 0; padding: 14px 28px; border-top: 2px dashed rgba(133, 143, 164, .35); display: grid; gap: 8px; }
.rc__sum > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: #384255; }
.rc__sum dd, .rc__sum dt { margin: 0; }
.rc__sum .rc__tot { padding-top: 10px; margin-top: 4px; border-top: 1px solid rgba(133, 143, 164, .2); font-size: 20px; font-weight: 700; color: #1a1a25; }
.rc__tot dd { color: #008000; }
.rc__info { display: grid; gap: 14px; margin: 6px 28px 0; padding: 18px; border-radius: 12px; background: #f6f8f6; }
.rc__info b { font-size: 14px; font-weight: 600; color: #1a1a25; line-height: 1.5; }
.rc__info b div { font-weight: 500; }
.rc__st { color: #b86e00; }
.rc__brand { margin-top: 22px; text-align: center; font-size: 12px; letter-spacing: .08em; color: #858fa4; }
.rc__acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
@media (max-width: 760px) { .rc__top { padding: 26px 18px 20px; } .rc__meta, .rc__list, .rc__sum { padding-left: 18px; padding-right: 18px; } .rc__info { margin: 6px 18px 0; } .rc__acts .btn { width: 100%; } }
@media print {
  body * { visibility: hidden; }
  .rc, .rc * { visibility: visible; }
  .rc { position: absolute; left: 0; top: 0; width: 100%; max-width: none; margin: 0; }
  .rc__card { box-shadow: none; animation: none; }
  .rc__top { background: #fff !important; color: #1a1a25 !important; border-bottom: 2px solid #008000; }
  .rc__top h2, .rc__top p { color: #1a1a25 !important; }
  .rc__ok svg { stroke: #008000; }
  .rc__acts { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rc__card, .rc__ok circle, .rc__ok path { animation: none; stroke-dashoffset: 0; } }

/* ---------- вход: код из письма, «Забыли пароль?» ---------- */
.auth__forgot { display: flex; justify-content: flex-end; margin: -6px 0 0; }
.auth__forgot button { padding: 2px 0; font-size: 13px; font-weight: 600; color: var(--green); }
.auth__forgot button:hover { text-decoration: underline; }
.auth__mailico { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 4px; border-radius: 50%; background: rgba(0, 128, 0, .09); color: var(--green); animation: pageIn .4s ease both; }
.auth__form .modal__lead b { color: #1a1a25; overflow-wrap: anywhere; }
.auth__code { width: 100%; height: 60px; border: 1px solid rgba(133, 143, 164, .35); border-radius: 12px; background: #fff; text-align: center; font: 700 28px/1 'Courier New', monospace; letter-spacing: .5em; text-indent: .5em; color: #1a1a25; outline: none; transition: border-color .15s, box-shadow .15s; }
.auth__code:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 128, 0, .12); }
.auth__code.is-bad { border-color: #f53b49; box-shadow: 0 0 0 3px rgba(245, 59, 73, .12); }
.auth__code::placeholder { color: #c3c9d4; }
.auth__resend { align-self: center; padding: 4px 6px; font-size: 14px; font-weight: 600; color: var(--green); }
.auth__resend:hover:not(:disabled) { text-decoration: underline; }
.auth__resend:disabled { color: var(--gray); cursor: default; font-weight: 500; }
.co__code-t { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: #384255; }
.co__code-t b { color: #1a1a25; overflow-wrap: anywhere; }
.co__resend { margin-top: 8px; padding: 4px 0; font-size: 14px; font-weight: 600; color: var(--green); }
.co__resend:hover:not(:disabled) { text-decoration: underline; }
.co__resend:disabled { color: var(--gray); }

/* ---------- «Мои заказы» ---------- */
.myo { display: grid; gap: 16px; width: 100%; }
.myo__sk { height: 84px; border-radius: 14px; background: linear-gradient(90deg, #eef1ee, #f6f8f6, #eef1ee) 0 0 / 200% 100%; animation: skl 1.2s linear infinite; }
@keyframes skl { to { background-position: -200% 0; } }
.myo__o { background: #fff; border: 1px solid rgba(133, 143, 164, .25); border-radius: 16px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.myo__o:hover, .myo__o.is-open { border-color: rgba(0, 128, 0, .35); box-shadow: 0 8px 28px rgba(0, 64, 0, .08); }
.myo__h { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 20px; align-items: center; gap: 16px; width: 100%; padding: 18px 22px; text-align: left; cursor: pointer; }
.myo__no b { display: block; font-size: 17px; color: #1a1a25; }
.myo__no small, .myo__tot small { display: block; margin-top: 3px; font-size: 13px; color: #858fa4; font-weight: 400; }
.myo__tot { font-size: 17px; font-weight: 700; color: #1a1a25; text-align: right; white-space: nowrap; }
.myo__st { display: inline-flex; align-items: center; height: 28px; padding: 0 13px; border-radius: 14px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.myo__st--new { background: rgba(75, 126, 232, .14); color: #2f5fc9; }
.myo__st--processing { background: rgba(249, 152, 8, .16); color: #b86e00; }
.myo__st--done { background: rgba(47, 197, 9, .14); color: #1b8a05; }
.myo__st--cancelled { background: rgba(245, 59, 73, .12); color: #d4202e; }
.myo__chev { width: 10px; height: 10px; border-right: 2px solid #858fa4; border-bottom: 2px solid #858fa4; transform: rotate(45deg); transition: transform .25s; justify-self: center; margin-top: -4px; }
.is-open .myo__chev { transform: rotate(-135deg); margin-top: 4px; }
.myo__b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.is-open .myo__b { grid-template-rows: 1fr; }
.myo__bi { overflow: hidden; min-height: 0; padding: 0 22px; }
.is-open .myo__bi { padding-bottom: 22px; border-top: 1px solid rgba(133, 143, 164, .15); }
.myo__track { list-style: none; display: flex; margin: 22px 0 6px; padding: 0; }
.myo__track li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: #858fa4; text-align: center; }
.myo__track li i { position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid rgba(133, 143, 164, .4); }
.myo__track li::before { content: ''; position: absolute; top: 8px; right: 50%; width: 100%; height: 2px; background: rgba(133, 143, 164, .3); }
.myo__track li:first-child::before { display: none; }
.myo__track .is-past, .myo__track .is-now { color: #1a1a25; font-weight: 600; }
.myo__track .is-past i, .myo__track .is-now i { background: #008000; border-color: #008000; }
.myo__track .is-past::before, .myo__track .is-now::before { background: #008000; }
.myo__track .is-now i { box-shadow: 0 0 0 5px rgba(0, 128, 0, .18); }
.myo__cancel { margin: 22px 0 6px; padding: 10px 14px; border-radius: 10px; background: rgba(245, 59, 73, .1); color: #d4202e; font-weight: 600; }
.myo__hint { margin: 10px 0 14px; font-size: 14px; color: #384255; text-align: center; }
.myo__items { list-style: none; margin: 0; padding: 0; }
.myo__items li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(133, 143, 164, .15); font-size: 15px; }
.myo__items span { overflow-wrap: anywhere; }
.myo__items small { display: block; margin-top: 3px; font-size: 13px; color: #858fa4; }
.myo__items b { white-space: nowrap; }
.myo__sum { margin: 14px 0 0; display: grid; gap: 8px; }
.myo__sum > div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: #384255; }
.myo__sum dt, .myo__sum dd { margin: 0; }
.myo__all { padding-top: 10px; border-top: 1px solid rgba(133, 143, 164, .2); font-size: 19px !important; font-weight: 700; color: #1a1a25 !important; }
.myo__all dd { color: #008000; }
.myo__info { margin-top: 18px; padding: 6px 18px; border-radius: 12px; background: #f6f8f6; }
.myo__kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(133, 143, 164, .15); font-size: 14px; }
.myo__kv:last-child { border-bottom: 0; }
.myo__kv span { color: #858fa4; }
.myo__kv b { font-weight: 500; color: #1a1a25; overflow-wrap: anywhere; line-height: 1.5; }
@media (max-width: 760px) {
  .myo__h { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 16px; }
  .myo__st { grid-row: 2; grid-column: 1; justify-self: start; }
  .myo__tot { grid-row: 1; grid-column: 2; }
  .myo__tot small { display: none; }
  .myo__chev { grid-row: 2; grid-column: 2; }
  .myo__bi { padding-left: 16px; padding-right: 16px; }
  .myo__kv { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .myo__b, .myo__chev { transition: none; } .myo__sk { animation: none; } }

/* «Мои заказы» — улучшенный вид */
.myo__o { position: relative; border-radius: 18px; }
.myo__o::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: #b9c0cf; }
.myo__o--new::before { background: #4b7ee8; } .myo__o--processing::before { background: #f99808; } .myo__o--done::before { background: #2fc509; } .myo__o--cancelled::before { background: #f53b49; }
.myo__o--cancelled { opacity: .85; }
.myo__h { grid-template-columns: auto minmax(0, 1fr) auto auto 20px; padding: 18px 22px 18px 26px; }
.myo__ths { display: inline-flex; }
.myo__th { width: 46px; height: 46px; margin-left: -12px; border-radius: 12px; border: 2px solid #fff; background: #eef1ee center / cover no-repeat; box-shadow: 0 0 0 1px rgba(133, 143, 164, .2); }
.myo__ths .myo__th:first-child { margin-left: 0; }
.myo__th--more { display: inline-grid; place-items: center; background: #e6ebe6; color: #384255; font-size: 13px; font-weight: 700; }
.myo__st i { width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: currentColor; }
.myo__st { gap: 0; }
.myo__bi { padding-left: 26px; }
.myo__items li { align-items: center; gap: 14px; }
.myo__img { flex: none; width: 60px; height: 60px; border-radius: 12px; border: 1px solid rgba(133, 143, 164, .2); background: #eef1ee center / cover no-repeat; }
.myo__n { flex: 1; min-width: 0; }
.myo__n a { color: inherit; text-decoration: none; }
.myo__n a:hover { color: #008000; }
.myo__acts { display: flex; justify-content: flex-end; margin-top: 18px; }
.myo__acts .btn { min-width: 190px; }
.myo__track li.is-now span { color: #008000; }
@media (max-width: 760px) {
  .myo__h { grid-template-columns: auto minmax(0, 1fr) auto; padding: 14px 14px 14px 20px; gap: 8px 12px; }
  .myo__ths { grid-row: 1 / span 2; }
  .myo__no { grid-column: 2; grid-row: 1; } .myo__no b { font-size: 15px; }
  .myo__tot { grid-column: 3; grid-row: 1; } .myo__tot small { display: none; }
  .myo__st { grid-column: 2; grid-row: 2; justify-self: start; }
  .myo__chev { grid-column: 3; grid-row: 2; }
  .myo__th { width: 40px; height: 40px; }
  .myo__bi { padding-left: 20px; }
  .myo__acts .btn { width: 100%; }
}

.myo__items li { gap: 12px; }
.myo__lnk { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; border-radius: 12px; transition: background .15s; }
a.myo__lnk:hover { background: rgba(0, 128, 0, .05); }
a.myo__lnk:hover .myo__n { color: #008000; }
a.myo__lnk:hover .myo__img { border-color: #008000; }

/* ---------- оплата Kaspi ---------- */
.opts--one { grid-template-columns: 1fr; }
.opt__logo { height: 22px; width: auto; vertical-align: -5px; margin-right: 4px; }
.co__off { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: rgba(245, 59, 73, .1); color: #d4202e; font-size: 14px; font-weight: 600; }
.rc__st--ok { color: #1b8a05; }
.kp { max-width: 820px; margin: 8px auto 40px; }
.kp__card { background: #fff; border-radius: 18px; box-shadow: 0 10px 40px rgba(0, 64, 0, .12); overflow: hidden; animation: pageIn .5s ease both; }
.kp__head { display: flex; align-items: center; gap: 16px; padding: 22px 28px; color: #fff; background: linear-gradient(120deg, #c4281a, #f14635); }
.kp__logo { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: #fff; }
.kp__head h2 { margin: 0 0 4px; font-size: 22px; color: #fff; }
.kp__head p { margin: 0; font-size: 15px; opacity: .95; }
.kp__body { display: grid; grid-template-columns: 290px 1fr; gap: 32px; align-items: center; padding: 28px; }
.kp__qr { padding: 12px; border: 1px solid rgba(133, 143, 164, .25); border-radius: 16px; background: #fff; transition: opacity .3s, filter .3s; }
.kp__qr img { display: block; width: 100%; height: auto; }
.kp__qr.is-dead { opacity: .25; filter: grayscale(1); }
.kp__steps { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 10px; font-size: 15px; line-height: 1.5; color: #384255; }
.kp__open { display: flex; width: 100%; height: 50px; margin-bottom: 18px; background: #f14635; color: #fff; font-weight: 700; }
.kp__open:hover { background: #d63a2a; }
.kp__st { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; background: #f6f8f6; font-weight: 600; color: #1a1a25; }
.kp__st b { margin-left: auto; font-variant-numeric: tabular-nums; color: #f14635; }
.kp__st--bad { background: rgba(245, 59, 73, .08); color: #d4202e; justify-content: space-between; }
.kp__spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(241, 70, 53, .25); border-top-color: #f14635; animation: kpSpin .9s linear infinite; }
@keyframes kpSpin { to { transform: rotate(360deg); } }
.kp__note { margin: 0; padding: 0 28px 24px; font-size: 13px; color: #858fa4; text-align: center; }
@media (max-width: 760px) {
  .kp__head { padding: 18px 16px; } .kp__head h2 { font-size: 19px; }
  .kp__body { grid-template-columns: 1fr; gap: 20px; padding: 20px 16px; }
  .kp__qr { max-width: 260px; margin: 0 auto; order: 2; }
  .kp__side { order: 1; }
  .kp__note { padding: 0 16px 20px; }
}
@media (prefers-reduced-motion: reduce) { .kp__spin { animation: none; } }
.myo__unpaid { font-weight: 600; }
.myo__unpaid--pending { color: #b86e00; } .myo__unpaid--expired { color: #5b667b; } .myo__unpaid--failed { color: #d4202e; }
.kp__logo { background: rgba(255, 255, 255, .2); }
.kp__logo img { opacity: 1; filter: none; }
.opt__logo { height: 26px; padding: 3px 6px; border-radius: 7px; background: #f14635; vertical-align: -8px; }

/* ---------- страница «Акции» ---------- */
/* колонки фиксированные: даже один баннер занимает ширину одной ячейки (как при 4 в ряду) */
.promo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: start; }
.promo.promo--empty { grid-template-columns: 1fr; }
.promo__item { position: relative; display: block; overflow: hidden; border-radius: 18px; background: #fff; border: 1px solid rgba(133, 143, 164, .2); box-shadow: 0 6px 24px rgba(26, 26, 37, .06); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
a.promo__item:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(26, 26, 37, .16); }
.promo__item img { display: block; width: 100%; height: auto; }
.promo__cap { display: block; padding: 12px 14px; font-weight: 700; font-size: 15px; line-height: 19px; color: #1a1a25; }
a.promo__item:hover .promo__cap { color: #008000; }
@media (max-width: 1100px) { .promo { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 760px) { .promo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .promo__item { border-radius: 12px; } .promo__cap { padding: 9px 10px; font-size: 13px; line-height: 17px; } }

/* отзывы: пустое состояние и подсказка про необязательную оценку */
.reviews__empty { margin: 0; padding: 22px; border-radius: 12px; background: #f6f8f6; color: #5b667b; text-align: center; }
.rform__opt { margin: -2px 0 14px; font-size: 14px; color: #858fa4; }

/* ---------- SEO-текст категории ---------- */
.catseo { margin-top: 40px; padding: 28px 32px; border: 1px solid var(--line-soft); border-radius: 20px; background: #f7f9f7; color: var(--text); line-height: 1.65; }
.catseo[hidden] { display: none; }
.catseo h2 { margin: 0 0 10px; font-size: 22px; color: var(--ink); }
.catseo h3 { margin: 22px 0 10px; font-size: 16px; color: var(--ink); }
.catseo p { margin: 0; font-size: 15px; }
.catseo__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.catseo__links li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; transition: border-color .2s, color .2s; }
.catseo__links li:hover { border-color: var(--green); }
.catseo__links a { color: var(--ink); font-weight: 600; }
.catseo__links li:hover a { color: var(--green); }
.catseo__links span { color: var(--gray); font-size: 12.5px; }
@media (max-width: 760px) { .catseo { margin-top: 28px; padding: 20px 18px; border-radius: 16px; } .catseo h2 { font-size: 19px; } }
