/* market.css — сайт для покупателя в привычном виде маркетплейса. Подключается последним.
   Всё здесь действует только на сайте: body:not(.miniapp). Мини-приложение Telegram (рабочее место продавца)
   этих правил не получает и выглядит как раньше. */

.mk-topbar,.mk-search,.mk-action,.mk-tabbar,.mk-buy-price,.mk-in-cart{display:none}
body.miniapp .mk-topbar,body.miniapp .mk-search,body.miniapp .mk-action,body.miniapp .mk-tabbar,
body.miniapp .mk-buy-price,body.miniapp .mk-in-cart,body.embedded .mk-topbar,body.embedded .mk-tabbar{display:none!important}

body:not(.miniapp){--mk-max:1680px;--mk-pad:clamp(16px,2.4vw,40px);--mk-side:max(var(--mk-pad),calc((100% - var(--mk-max))/2 + var(--mk-pad)))}

/* ───────── Шапка (компьютер) ───────── */
@media (min-width:769px){
  body:not(.miniapp):not(.embedded) .mk-topbar{display:block;background:#fff;border-bottom:1px solid var(--line);font-size:13px}
  body:not(.miniapp) .mk-topbar-in{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:36px;padding:0 var(--mk-side)}
  body:not(.miniapp) .mk-topbar-note{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body:not(.miniapp) .mk-topbar nav{display:flex;align-items:center;gap:20px;white-space:nowrap}
  body:not(.miniapp) .mk-topbar nav a{color:var(--secondary);font-weight:600;text-decoration:none}
  body:not(.miniapp) .mk-topbar nav a:hover{color:var(--ink)}
  body:not(.miniapp) .mk-topbar nav .mk-topbar-open{color:#C4532A;font-weight:800}

  body:not(.miniapp):not(.embedded) .desktop-header{padding-left:var(--mk-side)!important;padding-right:var(--mk-side)!important;gap:20px}
  body:not(.miniapp) .desktop-header{height:76px}
  body:not(.miniapp) .desktop-header .main-nav{flex:none;gap:0}
  body:not(.miniapp) .desktop-header .main-nav a:not(.nav-catalog){display:none}
  body:not(.miniapp) .desktop-header .nav-catalog{min-height:48px;padding:0 20px;border-radius:14px;font-size:15px;font-weight:800;gap:8px}
  body:not(.miniapp) .desktop-header .header-open,
  body:not(.miniapp) .desktop-header .header-more{display:none}

  body:not(.miniapp):not(.embedded) .mk-search{display:flex;flex:1 1 auto;min-width:0;align-items:center;height:48px;background:#fff;border:2px solid var(--ink);border-radius:14px;overflow:hidden}
  body:not(.miniapp) .mk-search:focus-within{border-color:var(--orange);outline:3px solid rgba(232,112,63,.25);outline-offset:1px}
  body:not(.miniapp) .mk-search input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;padding:0 16px;font:inherit;font-size:15px;color:var(--ink)}
  body:not(.miniapp) .mk-search input::placeholder{color:#9c8b81}
  body:not(.miniapp) .mk-search button{flex:none;height:100%;padding:0 24px;border:0;background:var(--ink);color:#fff;font:inherit;font-size:15px;font-weight:800;cursor:pointer}
  body:not(.miniapp) .mk-search button:hover{background:#463a35}

  body:not(.miniapp) .desktop-header .header-actions{flex:none;gap:4px;align-items:center}
  body:not(.miniapp):not(.embedded) .mk-action{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;position:relative;min-width:68px;height:56px;padding:4px 8px;border:0;border-radius:12px;background:transparent;box-shadow:none;color:var(--ink);font-size:12px;font-weight:700;line-height:1;text-decoration:none;width:auto}
  body:not(.miniapp) .mk-action:hover{background:#fff!important;color:var(--ink)!important}
  body:not(.miniapp) .mk-action svg{width:24px;height:24px;flex:none}
  body:not(.miniapp) .mk-action [data-cart-count]{position:absolute;top:2px;left:calc(50% + 4px);right:auto;min-width:18px;height:18px;padding:0 4px;display:grid;place-items:center;border-radius:999px;background:var(--orange);color:#fff;font-size:11px;font-weight:800}
  body:not(.miniapp) .mk-action .mk-action-label{display:block}
  body:not(.miniapp) .desktop-header .city-button{min-height:48px;border-radius:14px}
}

/* ───────── Ширина страниц ───────── */
@media (min-width:769px){
  body:not(.miniapp) .catalog-intro,body:not(.miniapp) .catalog-layout{max-width:none;padding-left:var(--mk-side);padding-right:var(--mk-side)}
  body:not(.miniapp)[data-page=vendor] .shell,body:not(.miniapp)[data-page=product] .shell,
  body:not(.miniapp)[data-page=cart] .shell,body:not(.miniapp)[data-page=checkout] .shell{max-width:none;padding-left:var(--mk-side);padding-right:var(--mk-side)}
  body:not(.miniapp)[data-page=orders] .shell{max-width:1040px}
  body:not(.miniapp) .site-footer{padding-left:var(--mk-side);padding-right:var(--mk-side);max-width:none}
}

/* ───────── Каталог ───────── */
body:not(.miniapp) .catalog-intro h1{font-size:28px;line-height:1.2;max-width:none}
body:not(.miniapp) .catalog-intro{gap:12px;padding-top:20px}
body:not(.miniapp) .catalog-subtitle{font-size:14px;color:var(--muted)}
@media (min-width:769px){
  body:not(.miniapp):not(.embedded) .catalog-intro>.search{display:none}
}
@media (min-width:1024px){
  body:not(.miniapp) .catalog-layout{gap:24px;padding-top:16px}
  body:not(.miniapp) .cat-side{flex:0 0 264px;width:264px;position:sticky;top:92px;max-height:calc(100vh - 108px);overflow-y:auto;border-radius:16px;scrollbar-width:thin}
  body:not(.miniapp) .catalog-results .products,body:not(.miniapp) .shop-products{grid-template-columns:repeat(auto-fill,minmax(212px,1fr));gap:20px 16px}
}
@media (min-width:641px) and (max-width:1023px){
  body:not(.miniapp) .catalog-results .products,body:not(.miniapp) .shop-products{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px 12px}
}

/* Карточка товара: фото, цена, название, лавка, кнопка «В корзину» */
body:not(.miniapp) .product-card{display:flex;flex-direction:column;gap:0;padding:0 0 12px;background:#fff;border:0;border-radius:16px;overflow:hidden;transition:box-shadow .16s cubic-bezier(.22,1,.36,1)}
@media (hover:hover){body:not(.miniapp) .product-card:hover{box-shadow:0 8px 24px rgba(43,35,32,.12)}}
body:not(.miniapp) .product-card>.product-picture{order:1;width:100%;height:auto;aspect-ratio:1;border-radius:16px 16px 0 0;margin:0}
body:not(.miniapp) .product-card>.product-picture img{width:100%;height:100%;object-fit:cover}
body:not(.miniapp) .product-card>.product-picture>.tag{left:8px;top:8px;font-size:11px;border-radius:8px;padding:4px 8px}
body:not(.miniapp) .product-card .product-bottom{display:contents}
body:not(.miniapp) .product-card .price{order:2;margin:12px 12px 0;font-size:20px;line-height:1.2;font-weight:900;color:var(--ink)}
body:not(.miniapp) .product-card>h2{order:3;margin:4px 12px 0;font-size:14px;line-height:1.35;font-weight:600;min-height:calc(2 * 1.35em);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body:not(.miniapp) .product-card>h2 a{color:var(--ink);text-decoration:none}
body:not(.miniapp) .product-card>.vendor-caption{order:4;margin:4px 12px 0;font-size:12px;line-height:1.35;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body:not(.miniapp) .product-card>.product-reputation{order:5;margin:4px 12px 0;font-size:12px;color:var(--muted)}
body:not(.miniapp) .product-card>.variant-chips{order:5;margin:8px 12px 0}
body:not(.miniapp) .product-card [data-card-controls]{order:9;display:block;margin:auto 12px 0;padding-top:12px}
body:not(.miniapp) .product-card .add-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:40px;border:0;border-radius:12px;background:var(--orange);color:#fff;font:inherit;font-size:14px;font-weight:800;cursor:pointer;box-shadow:none}
body:not(.miniapp) .product-card .add-button svg{display:none}
body:not(.miniapp) .product-card .add-button::after{content:"В корзину"}
body:not(.miniapp) .product-card .add-button:hover{background:#C4532A!important;color:#fff!important}
body:not(.miniapp) .product-card .add-button[disabled]{background:#f3ece4;color:#9c8b81;cursor:default}
body:not(.miniapp) .product-card .add-button[disabled]:hover{background:#f3ece4!important;color:#9c8b81!important}
body:not(.miniapp) .product-card .add-button[disabled]::after{content:"Пока не продаётся"}
body:not(.miniapp) .product-card .card-counter{display:flex;align-items:center;justify-content:space-between;width:100%;height:40px;border-radius:12px;background:#fff1e8;color:var(--ink)}
body:not(.miniapp) .product-card .card-counter button{width:44px;height:40px;border:0;background:transparent;font-size:20px;font-weight:700;color:#C4532A;cursor:pointer;border-radius:12px}
body:not(.miniapp) .product-card .card-counter button:hover{background:#ffe3cf}
body:not(.miniapp) .product-card .card-counter b{font-size:15px;font-weight:800}
body:not(.miniapp) .product-card .card-counter b::after{content:" в корзине";font-weight:600;font-size:13px;color:var(--secondary)}
body:not(.miniapp) .promo-card{border-radius:16px}
@media (max-width:640px){
  body:not(.miniapp) .catalog-results .products,body:not(.miniapp) .shop-products{gap:12px 8px}
  body:not(.miniapp) .product-card .price{font-size:18px;margin:8px 8px 0}
  body:not(.miniapp) .product-card>h2{margin:4px 8px 0;font-size:13px}
  body:not(.miniapp) .product-card>.vendor-caption,body:not(.miniapp) .product-card>.product-reputation{margin:4px 8px 0;font-size:11px}
  body:not(.miniapp) .product-card>.variant-chips{margin:8px 8px 0}
  body:not(.miniapp) .product-card [data-card-controls]{margin:auto 8px 0;padding-top:8px}
  body:not(.miniapp) .product-card .card-counter b::after{content:""}
}

/* ───────── Страница товара ───────── */
body:not(.miniapp):not(.embedded) .mk-buy-price{display:flex;align-items:baseline;gap:8px;margin-bottom:16px}
body:not(.miniapp) .mk-buy-price b{font-size:32px;line-height:1;font-weight:900;color:var(--ink)}
body:not(.miniapp) .mk-buy-price span{font-size:13px;color:var(--muted)}
@media (min-width:1024px){
  body:not(.miniapp).product-page .shell{grid-template-columns:minmax(0,560px) minmax(0,1fr);gap:32px}
  body:not(.miniapp) .product-hero{height:auto;aspect-ratio:1;max-height:calc(100vh - 148px);top:108px;border-radius:20px}
  body:not(.miniapp) .product-content{display:grid;grid-template-columns:minmax(0,1fr) 372px;column-gap:32px;align-content:start}
  body:not(.miniapp) .product-content>*{grid-column:1}
  body:not(.miniapp) .product-content>.breadcrumbs{grid-column:1/-1}
  body:not(.miniapp) .product-content>.back-catalog{display:none}
  body:not(.miniapp) .product-content>h1{font-size:28px;line-height:1.2}
  body:not(.miniapp) .product-content>.product-buy{grid-column:2;grid-row:2/span 12;align-self:start;position:sticky;top:108px;background:#fff;border-radius:20px;padding:20px;box-shadow:0 8px 24px rgba(43,35,32,.08)}
  body:not(.miniapp) .product-content>.product-buy .delivery-details{background:var(--cream);box-shadow:none;border:0}
  body:not(.miniapp) .product-content>.product-buy .product-buy-bar{margin-top:16px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px}
}
@media (min-width:1024px) and (max-width:1279px){
  body:not(.miniapp).product-page .shell{grid-template-columns:minmax(0,420px) minmax(0,1fr)}
  body:not(.miniapp) .product-content{grid-template-columns:minmax(0,1fr) 320px;column-gap:24px}
}

/* ───────── Корзина и оформление: слева товары, справа итог ───────── */
@media (min-width:1024px){
  body:not(.miniapp)[data-page=cart] #screen{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:16px 24px;align-items:start}
  body:not(.miniapp)[data-page=cart] #screen>*{grid-column:1;margin:0}
  body:not(.miniapp)[data-page=cart] #screen>.bottom-action{grid-column:2;grid-row:1/span 40;position:sticky;top:108px;bottom:auto;width:auto;max-width:none;transform:none;left:auto;padding:20px;background:#fff;border:0;border-radius:20px;box-shadow:0 8px 24px rgba(43,35,32,.08)}
  body:not(.miniapp)[data-page=cart] #screen>.empty{grid-column:1/-1}
  body:not(.miniapp)[data-page=checkout] .buyer-layout{grid-template-columns:minmax(0,1fr) 380px;gap:16px 24px}
  body:not(.miniapp)[data-page=checkout] .buyer-layout>*{grid-column:1;margin:0}
  body:not(.miniapp)[data-page=checkout] .buyer-layout>.bottom-action{grid-column:2;grid-row:1/span 40;position:sticky;top:108px;bottom:auto;width:auto;max-width:none;transform:none;left:auto;padding:20px;background:#fff;border:0;border-radius:20px;box-shadow:0 8px 24px rgba(43,35,32,.08)}
}

/* ───────── Телефон: нижняя панель разделов, как в приложениях магазинов ───────── */
@media (max-width:768px){
  body:not(.miniapp):not(.embedded)[data-page=catalog] .mk-tabbar,body:not(.miniapp):not(.embedded)[data-page=vendor] .mk-tabbar,
  body:not(.miniapp):not(.embedded)[data-page=cart] .mk-tabbar,body:not(.miniapp):not(.embedded)[data-page=orders] .mk-tabbar,
  body:not(.miniapp):not(.embedded)[data-page=message] .mk-tabbar{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;left:0;right:0;bottom:0;z-index:45;background:#fff;border-top:1px solid var(--line);padding:4px 4px calc(4px + env(safe-area-inset-bottom))}
  body:not(.miniapp) .mk-tabbar a{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:52px;border-radius:12px;color:var(--muted);font-size:11px;font-weight:700;text-decoration:none}
  body:not(.miniapp) .mk-tabbar a[aria-current=page]{color:#C4532A}
  body:not(.miniapp) .mk-tabbar svg{width:24px;height:24px}
  body:not(.miniapp) .mk-tabbar [data-cart-count]{position:absolute;top:4px;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 4px;display:grid;place-items:center;border-radius:999px;background:var(--orange);color:#fff;font-size:11px;font-weight:800}
  body:not(.miniapp):not(.embedded)[data-page=catalog],body:not(.miniapp):not(.embedded)[data-page=vendor],
  body:not(.miniapp):not(.embedded)[data-page=orders],body:not(.miniapp):not(.embedded)[data-page=message]{padding-bottom:calc(64px + env(safe-area-inset-bottom))}
  body:not(.miniapp):not(.embedded)[data-page=catalog] .cart-bar,body:not(.miniapp):not(.embedded)[data-page=vendor] .cart-bar{display:none!important}
  body:not(.miniapp):not(.embedded)[data-page=cart] .bottom-action{bottom:calc(64px + env(safe-area-inset-bottom))}
  body:not(.miniapp):not(.embedded)[data-page=cart] .shell{padding-bottom:calc(190px + env(safe-area-inset-bottom))}
}
@media (min-width:769px){
  body:not(.miniapp) .desktop-header .header-cart{display:none}
}

/* Кнопка в карточке: перекрываем старые фиксированные 44×44 и тёмный фон */
body:not(.miniapp) .product-card .add-button{width:100%!important;height:40px!important;min-width:0!important;min-height:0!important;padding:0 12px!important;border-radius:12px!important;background:var(--orange)!important;border-color:var(--orange)!important;color:#fff!important}
body:not(.miniapp) .product-card .add-button:hover{background:#C4532A!important;border-color:#C4532A!important;color:#fff!important}
body:not(.miniapp) .product-card .add-button:disabled,body:not(.miniapp) .product-card .add-button:disabled:hover{background:#f3ece4!important;border-color:#f3ece4!important;color:#9c8b81!important}
/* На сайте корзина всегда в шапке или в нижней панели — плавающая плашка не нужна */
body:not(.miniapp):not(.embedded) .cart-bar{display:none!important}
@media (max-width:640px){
  body:not(.miniapp) .product-card .add-button{font-size:13px!important;padding:0 4px!important;white-space:nowrap}
}

/* Корзина и оформление: строки без промежутков (иначе пустые строки сетки растягивают страницу), отступы — у самих блоков */
@media (min-width:1024px){
  body:not(.miniapp)[data-page=cart] #screen{gap:0 24px}
  body:not(.miniapp)[data-page=cart] #screen>*{margin:0 0 16px}
  body:not(.miniapp)[data-page=cart] #screen>.bottom-action{grid-row:1/span 30;margin:0}
  body:not(.miniapp)[data-page=checkout] .buyer-layout{gap:0 24px}
  body:not(.miniapp)[data-page=checkout] .buyer-layout>*{grid-column:1!important;grid-row:auto!important;margin:0 0 16px}
  body:not(.miniapp)[data-page=checkout] .buyer-layout>.bottom-action{grid-column:2!important;grid-row:1/span 10!important;margin:0}
  body:not(.miniapp) .product-content>.product-buy .product-buy-bar{grid-template-columns:minmax(0,1fr)}
  body:not(.miniapp) .product-content>.product-buy .product-buy-bar .qty{justify-self:start}
  body:not(.miniapp) .product-content>.product-buy .product-buy-bar .button{width:100%;min-height:52px;white-space:nowrap}
}

/* ───────── Все остальные страницы сайта — в той же ширине, что и шапка ───────── */
@media (min-width:769px){
  body:not(.miniapp):not(.embedded) .shell{max-width:none;padding-left:var(--mk-side);padding-right:var(--mk-side)}
  body:not(.miniapp)[data-page=orders] .shell{max-width:none}
  /* страницы с текстом и формами: колонка читаемой ширины, выровнена по логотипу */
  body:not(.miniapp)[data-page=legal] #screen,body:not(.miniapp)[data-page=settings] #screen,
  body:not(.miniapp)[data-page=onboarding] #screen,body:not(.miniapp)[data-page=message] #screen{max-width:1040px}
  body:not(.miniapp)[data-page=add-product] #screen{max-width:1360px}
}
@media (min-width:1024px){
  /* «Мои заказы»: слева заказы, справа закреплённый блок аккаунта */
  body:not(.miniapp)[data-page=orders] #screen{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:0 24px;align-items:start}
  body:not(.miniapp)[data-page=orders] #screen>*{grid-column:1;margin:0 0 16px}
  body:not(.miniapp)[data-page=orders] #screen>.account-card{grid-column:2;grid-row:1/span 60;position:sticky;top:108px;margin:0}
  body:not(.miniapp)[data-page=orders] #screen>.buyer-login,body:not(.miniapp)[data-page=orders] #screen>.empty:only-child{grid-column:1/-1;margin-left:auto;margin-right:auto;width:100%}
}
@media (min-width:1440px){
  body:not(.miniapp)[data-page=seller] #screen,body:not(.miniapp)[data-page=clients] #screen{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* ───────── Главная: та же шапка, та же ширина и те же карточки, что в каталоге ───────── */
@media (min-width:769px){
  body.landing:not(.miniapp) #top,body.landing:not(.miniapp) section>div[style*='max-width: 1200px'],
  body.landing:not(.miniapp) section>div[style*='max-width: 860px']{max-width:none!important;padding-left:var(--mk-side)!important;padding-right:var(--mk-side)!important}
  body.landing:not(.miniapp) .closing-cta{max-width:none!important}
}
body.landing:not(.miniapp) [data-landing-products]{grid-template-columns:repeat(auto-fill,minmax(212px,1fr));gap:20px 16px;min-height:0}
body.landing:not(.miniapp) [data-landing-products] .product-card>.product-picture{height:auto;aspect-ratio:1}
body.landing:not(.miniapp) [data-landing-products] .product-card h2{font-size:14px!important;font-weight:600!important;line-height:1.35!important;margin:4px 12px 0}
body.landing:not(.miniapp) [data-landing-products] .product-card .price{display:block;font-size:20px;margin:12px 12px 0}
body.landing:not(.miniapp) [data-landing-products] .product-card .vendor-caption{margin:4px 12px 0;font-size:12px}
body:not(.miniapp) .product-card .mk-card-go{order:9;display:flex;align-items:center;justify-content:center;height:40px;margin:12px 12px 0;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font-size:14px;font-weight:800;text-decoration:none}
body:not(.miniapp) .product-card .mk-card-go:hover{border-color:var(--ink)}
body.miniapp .mk-card-go{display:none}
@media (max-width:640px){
  body.landing:not(.miniapp) [data-landing-products]{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 8px}
  body.landing:not(.miniapp) [data-landing-products] .product-card h2,body.landing:not(.miniapp) [data-landing-products] .product-card .vendor-caption{margin:4px 8px 0}
  body.landing:not(.miniapp) [data-landing-products] .product-card .price{font-size:18px;margin:8px 8px 0}
  body:not(.miniapp) .product-card .mk-card-go{margin:8px 8px 0;font-size:13px}
}
@media (min-width:769px){
  body.landing:not(.miniapp) #how>div,body.landing:not(.miniapp) #catalog>div,body.landing:not(.miniapp) #pricing>div,
  body.landing:not(.miniapp) #faq>div{max-width:none!important;padding-left:var(--mk-side)!important;padding-right:var(--mk-side)!important}
}
@media (min-width:641px){
  /* на главной — одна ровная строка товаров, без «хвоста» из одной карточки */
  body.landing:not(.miniapp) [data-landing-products]{grid-template-rows:auto;grid-auto-rows:0;row-gap:0;overflow:hidden}
}
body:not(.miniapp) .mk-topbar a svg{display:none}

/* ───────── Главная для покупателей: баннер, категории, приглашение продавцам ───────── */
.mk-home{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;background:#fff;border-radius:20px;padding:24px 28px}
.mk-home h1{margin:0 0 8px;font-size:28px;line-height:1.2;font-weight:900;max-width:none}
.mk-home p{margin:0;max-width:680px;font-size:15px;line-height:1.5;color:var(--secondary)}
.mk-home-art{display:flex;align-items:flex-end;gap:8px}
.mk-home-cats{display:grid;grid-template-columns:repeat(auto-fill,minmax(176px,1fr));gap:12px}
.mk-home-cats a{display:flex;flex-direction:column;justify-content:space-between;gap:8px;min-height:76px;padding:12px 16px;background:#fff;border:1px solid transparent;border-radius:16px;color:var(--ink);text-decoration:none}
.mk-home-cats a:hover{border-color:var(--ink)}
.mk-home-cats b{font-size:15px;font-weight:800;line-height:1.25}
.mk-home-cats small{font-size:12px;color:var(--muted)}
.mk-home-h2{margin:12px 0 0;font-size:22px;line-height:1.2;font-weight:900}
.mk-home-seller{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:8px;padding:20px 24px;background:#fff1e8;border-radius:20px;color:var(--ink);text-decoration:none}
.mk-home-seller>span:first-child{display:flex;flex-direction:column;gap:4px}
.mk-home-seller b{font-size:18px;font-weight:900}
.mk-home-seller small{font-size:14px;color:var(--secondary)}
@media (max-width:640px){
  .mk-home{grid-template-columns:minmax(0,1fr);padding:16px}
  .mk-home h1{font-size:22px}
  .mk-home-art{display:none}
  .mk-home-cats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .mk-home-cats a{min-height:64px;padding:12px}
  .mk-home-cats b{font-size:14px}
}
.mk-home-cats a.is-empty b{color:var(--secondary)}
.mk-home-cats a.is-empty{background:rgba(255,255,255,.6)}
@media (max-width:640px){
  /* на телефоне категории — одна прокручиваемая строка, чтобы товары были видны сразу */
  .mk-home-cats{display:flex;overflow-x:auto;gap:8px;margin:0 -16px;padding:0 16px 4px;scrollbar-width:none}
  .mk-home-cats::-webkit-scrollbar{display:none}
  .mk-home-cats a{flex:none;min-width:128px}
  .mk-home p{font-size:14px}
}

/* ───────── Доводка по замечаниям: меню «Каталог», фильтры, сортировка, баннер, галерея, футер ───────── */
.mk-catmenu,.mk-sort,.gallery-arrow{display:none}
body:not(.miniapp) .desktop-header .nav-catalog::before{content:"";width:16px;height:12px;flex:none;background:linear-gradient(currentColor,currentColor) 0 0/100% 2px no-repeat,linear-gradient(currentColor,currentColor) 0 5px/100% 2px no-repeat,linear-gradient(currentColor,currentColor) 0 10px/100% 2px no-repeat}
body:not(.miniapp) .mk-catmenu:not([hidden]){display:flex;flex-direction:column;position:absolute;top:calc(100% - 8px);z-index:70;min-width:264px;padding:8px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 16px 40px rgba(43,35,32,.2)}
body:not(.miniapp) .mk-catmenu a{display:flex;align-items:center;min-height:40px;padding:8px 12px;border-radius:12px;font-size:15px;font-weight:700;color:var(--ink);text-decoration:none}
body:not(.miniapp) .mk-catmenu a:hover{background:var(--cream)}
body:not(.miniapp) .mk-catmenu .mk-catmenu-all{font-weight:900}
body:not(.miniapp) .mk-catmenu-sep{height:1px;margin:8px 4px;background:var(--line)}

/* фильтры: блок едет вместе со страницей (без своей полосы прокрутки), стрелки — аккуратные галочки */
@media (min-width:1024px){
  body:not(.miniapp) .cat-side{position:static;max-height:none;overflow:visible}
}
body:not(.miniapp) .cat-side summary:after{content:"";flex:none;width:8px;height:8px;margin:0 4px 4px 0;border-right:2px solid var(--secondary);border-bottom:2px solid var(--secondary);transform:rotate(45deg);transition:transform .16s cubic-bezier(.22,1,.36,1);font-size:0}
body:not(.miniapp) .cat-side details[open]>summary:after{transform:rotate(-135deg);margin:4px 4px 0 0}

/* сортировка: своё меню вместо системного списка (на телефоне остаётся системный — он там удобнее) */
@media (min-width:769px){
  body:not(.miniapp) select[data-catalog-sort][data-mk]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
  body:not(.miniapp) .mk-sort{display:block;position:relative}
  body:not(.miniapp) .mk-sort-btn{display:flex;align-items:center;gap:8px;min-height:40px;padding:0 16px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font:inherit;font-size:14px;font-weight:800;cursor:pointer}
  body:not(.miniapp) .mk-sort-btn::after{content:"";width:7px;height:7px;margin-bottom:3px;border-right:2px solid var(--secondary);border-bottom:2px solid var(--secondary);transform:rotate(45deg)}
  body:not(.miniapp) .mk-sort-btn[aria-expanded=true]::after{transform:rotate(-135deg);margin:3px 0 0}
  body:not(.miniapp) .mk-sort-list:not([hidden]){display:block;position:absolute;right:0;top:calc(100% + 8px);z-index:30;min-width:200px;margin:0;padding:8px;list-style:none;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 16px 40px rgba(43,35,32,.2)}
  body:not(.miniapp) .mk-sort-list li{display:flex;align-items:center;min-height:40px;padding:8px 12px;border-radius:12px;font-size:14px;font-weight:700;color:var(--ink);cursor:pointer}
  body:not(.miniapp) .mk-sort-list li:hover,body:not(.miniapp) .mk-sort-list li:focus-visible{background:var(--cream);outline:0}
  body:not(.miniapp) .mk-sort-list li[aria-selected=true]{color:#C4532A}
}

/* баннер главной: крестик; сетка — единые 16px между плитками и то же скругление, что у карточек */
.mk-home{position:relative;border-radius:16px}
.mk-home[hidden]{display:none}
.mk-home-close{position:absolute;top:8px;right:8px;width:36px;height:36px;border:0;border-radius:12px;background:transparent;color:var(--muted);font-size:24px;line-height:1;cursor:pointer}
.mk-home-close:hover{background:var(--cream);color:var(--ink)}
.mk-home-art{margin-right:32px}
.mk-home-cats{gap:16px}
.mk-home-cats a{border-radius:16px}
.mk-home-seller{border-radius:16px}

/* галерея товара: стрелки и счётчик фото */
body:not(.miniapp) .gallery-arrow{display:grid;place-items:center;position:absolute;top:50%;z-index:3;width:44px;height:44px;margin-top:-22px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.94);color:var(--ink);font-size:28px;line-height:1;cursor:pointer;box-shadow:0 2px 8px rgba(43,35,32,.12)}
body:not(.miniapp) .gallery-arrow:hover{border-color:var(--ink)}
body:not(.miniapp) .gallery-prev{left:12px}
body:not(.miniapp) .gallery-next{right:12px}
body:not(.miniapp) .gallery-count{position:absolute;right:12px;bottom:12px;width:auto;height:auto;clip-path:none;overflow:visible;padding:4px 12px;border-radius:999px;background:rgba(43,35,32,.72);color:#fff;font-size:12px;font-weight:700}

/* футер: иконки у ссылок, меньше пустоты снизу */
.site-footer .footer-links a{display:inline-flex;align-items:center;gap:6px}
.site-footer .footer-links svg{width:16px;height:16px;flex:none}
@media (min-width:769px){
  body:not(.miniapp) .site-footer{padding-top:20px;padding-bottom:20px}
}
@media (max-width:768px){
  body:not(.miniapp):not(.embedded) .site-footer{padding-bottom:24px}
}
body:not(.miniapp) .desktop-header .mk-catmenu a{justify-content:flex-start;text-align:left;white-space:nowrap;min-height:40px}
/* стрелки галереи рисуем уголком, а не символом — одинаково в любом шрифте */
body:not(.miniapp) .gallery-arrow{font-size:0}
body:not(.miniapp) .gallery-arrow::before{content:"";width:10px;height:10px;border-left:2px solid var(--ink);border-bottom:2px solid var(--ink);transform:translateX(2px) rotate(45deg)}
body:not(.miniapp) .gallery-next::before{transform:translateX(-2px) rotate(-135deg)}
body:not(.miniapp) .product-hero:not(:has(.gallery-arrow)) .gallery-count{display:none}
.mk-home-seller b{color:var(--ink)}
@media (max-width:640px){.mk-home h1{padding-right:36px}}
/* меню «Каталог»: не наследовать от шапки центрирование и промежутки между ссылками */
body:not(.miniapp) .desktop-header .mk-catmenu:not([hidden]){align-items:stretch!important;gap:0!important;flex-wrap:nowrap!important;font-size:15px!important}
body:not(.miniapp) .desktop-header .mk-catmenu a{display:flex!important;justify-content:flex-start!important;width:100%;box-sizing:border-box;min-height:40px!important}
body:not(.miniapp) .desktop-header .mk-catmenu a{gap:12px}
body:not(.miniapp) .desktop-header .mk-catmenu a svg{flex:none;width:20px;height:20px;color:var(--secondary)}
body:not(.miniapp) .desktop-header .mk-catmenu a:hover svg{color:#C4532A}

/* кабинет продавца: управление товаром (действует и в мини-приложении) */
.product-manage{display:flex;flex-wrap:wrap;gap:8px;grid-column:1/-1;margin:8px 0 0}
.product-manage .button{flex:1 1 160px;min-height:44px}
.product-manage .hint{flex:1 1 100%;margin:0}

/* ───────── Лендинг продавцов на широком экране: тексты не переносятся раньше времени, правые блоки стоят у края ───────── */
@media (min-width:1024px){
  body.landing:not(.miniapp) section [style*="max-width: 640px"],body.landing:not(.miniapp) section [style*="max-width: 620px"]{max-width:960px!important}
  body.landing:not(.miniapp) .closing-cta{flex-wrap:nowrap!important}
}
@media (min-width:1024px){
  /* только блок «Вместо переписки» (текст + демо-карточка), а не сетка шагов */
  body.landing:not(.miniapp) section>div[style*="padding: 24px 5% 80px"]{grid-template-columns:minmax(0,1fr) 420px!important;gap:48px!important;align-items:start!important}
}

/* ───────── Иконки в цвет соседнего текста ───────── */
body.landing:not(.miniapp) #pricing div[style*='background: #2B2320'] .button svg,body.landing:not(.miniapp) #pricing .button svg,body.landing:not(.miniapp) #pricing div[style*='background: #2B2320'] .button svg *,body.landing:not(.miniapp) #pricing .button svg *{color:inherit!important}
body:not(.miniapp) .desktop-header .mk-catmenu a svg{color:inherit}
body:not(.miniapp) .desktop-header .mk-catmenu a:hover svg{color:inherit}
body.landing:not(.miniapp) #top svg[fill="currentColor"]{opacity:.75}

/* ───────── Лендинг: первый экран. Справа - панель: превью лавки, заказ из бота, ссылка продавца ───────── */
.hero-notes{display:none}
.hero-note{background:#fff;border-radius:20px;padding:14px 16px;display:flex;flex-direction:column;gap:6px;font-size:14px;line-height:1.35;color:var(--ink);min-width:0}
.hero-note b{font-weight:800;font-size:15px}
.hero-note-head{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--muted)}
.hero-note-time{margin-left:auto;font-weight:600}
.hero-note-text{font-size:13px;font-weight:600;color:var(--muted)}
.hero-note-pill{align-self:flex-start;margin-top:4px;background:var(--mint);color:var(--green);border-radius:999px;padding:5px 12px;font-size:12px;font-weight:800}
.hero-note-link{flex-direction:row;align-items:center;gap:12px}
.hero-note-link>svg{flex:none}
.hero-note-link>span{display:flex;flex-direction:column;gap:2px;min-width:0}
@media (min-width:861px){
  body.landing:not(.miniapp) #top{grid-template-columns:minmax(0,1fr) minmax(340px,400px)!important;gap:clamp(32px,3.4vw,48px)!important;align-items:center!important}
  body.landing:not(.miniapp) #top h1{max-width:none!important;font-size:clamp(32px,3.6vw,46px)!important}
  body.landing:not(.miniapp) #top>div>p{max-width:640px!important}
  body.landing:not(.miniapp) #top .hero-visual{background:var(--peach);border-radius:40px;padding:28px 28px 20px;min-height:0!important}
}
@media (min-width:1340px){
  body.landing:not(.miniapp) #top{grid-template-columns:minmax(0,.95fr) minmax(0,1fr)!important;gap:clamp(40px,3.6vw,72px)!important}
  body.landing:not(.miniapp) #top h1{font-size:clamp(42px,3.3vw,60px)!important}
  body.landing:not(.miniapp) #top>div>p{font-size:clamp(18px,1.15vw,21px)!important}
  body.landing:not(.miniapp) #top .hero-visual{display:grid!important;grid-template-columns:minmax(0,300px) minmax(0,1fr);grid-template-rows:auto 1fr;grid-template-areas:"shop notes" "shop pets";gap:16px 20px;padding:28px;align-items:start!important;justify-content:stretch!important}
  /* превью лавки растягивается на всю высоту панели: верх вровень с уведомлением, низ - со зверями */
  body.landing:not(.miniapp) #top .hero-shop-preview{grid-area:shop;width:auto!important;align-self:stretch}
  body.landing:not(.miniapp) #top .hero-shop-preview>div:nth-child(2){flex:1 1 auto}
  body.landing:not(.miniapp) #top .hero-shop-preview>div:nth-child(2) img{flex:1 1 84px;height:auto!important;min-height:84px}
  body.landing:not(.miniapp) #top .hero-notes{grid-area:notes;display:flex;flex-direction:column;gap:12px}
  body.landing:not(.miniapp) #top .hero-animals{grid-area:pets;align-self:end;justify-content:flex-end!important;min-height:0!important;gap:12px!important}
}
@media (min-width:1500px){
  body.landing:not(.miniapp) #top{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
  /* одна главная кнопка: на широком экране она и подписи крупнее, чтобы не терялись под заголовком */
  body.landing:not(.miniapp) #top .button.big{min-height:60px!important;font-size:18px!important;padding-left:30px!important;padding-right:30px!important}
  body.landing:not(.miniapp) #top .hero-caption{font-size:13px}
  body.landing:not(.miniapp) #top>div>div:last-child{font-size:14px!important;gap:8px 22px!important}
  body.landing:not(.miniapp) #top .hero-visual{grid-template-columns:minmax(0,340px) minmax(0,1fr);gap:16px 28px;padding:36px}
  body.landing:not(.miniapp) #top .hero-animals{gap:20px!important}
}
@media (min-width:1800px){
  body.landing:not(.miniapp) #top .hero-visual{zoom:1.12;grid-template-columns:minmax(0,320px) minmax(0,1fr)}
}

/* ───────── Лендинг: деньги и доставка - на условиях продавца ───────── */
body.landing:not(.miniapp) .lp-terms{background:#fff}
body.landing:not(.miniapp) .lp-terms-in{max-width:1200px;width:100%;margin:0 auto;box-sizing:border-box;padding:8px 5% 72px;display:flex;flex-direction:column;gap:28px}
body.landing:not(.miniapp) .lp-terms-head{display:flex;flex-direction:column;gap:10px;max-width:720px}
body.landing:not(.miniapp) .lp-terms-head h2{margin:0;font-weight:900;font-size:36px;line-height:1.12;letter-spacing:-.01em}
body.landing:not(.miniapp) .lp-terms-head p{margin:0;font-size:17px;line-height:1.5;color:#5c4f48;font-weight:500}
body.landing:not(.miniapp) .lp-terms-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
body.landing:not(.miniapp) .lp-term{background:#fff8ee;border-radius:28px;padding:28px;display:flex;flex-direction:column;gap:18px;min-width:0}
body.landing:not(.miniapp) .lp-term h3{margin:0;font-size:22px;font-weight:900;line-height:1.2;display:flex;align-items:center;gap:12px}
body.landing:not(.miniapp) .lp-term-ico{width:44px;height:44px;border-radius:14px;background:#fff;display:grid;place-items:center;color:#e8703f;flex:none}
body.landing:not(.miniapp) .lp-term ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
body.landing:not(.miniapp) .lp-term li{position:relative;padding-left:30px;font-size:15px;line-height:1.5;color:#5c4f48;font-weight:500}
body.landing:not(.miniapp) .lp-term li b{color:#2b2320;font-weight:800}
body.landing:not(.miniapp) .lp-term li::before{content:"";position:absolute;left:0;top:2px;width:20px;height:20px;border-radius:50%;background:#cfebdd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%232f7a50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 6.3 2.3 2.2 4.7-5'/%3E%3C/svg%3E") center/11px no-repeat}
body.landing:not(.miniapp) .lp-mock{margin-top:auto;background:#fff;border-radius:20px;padding:16px 18px;display:flex;flex-direction:column;gap:10px;font-size:15px;color:#2b2320}
body.landing:not(.miniapp) .lp-mock-cap{font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#7a6a61}
body.landing:not(.miniapp) .lp-mock-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-weight:700}
body.landing:not(.miniapp) .lp-mock-row span{color:#5c4f48}
body.landing:not(.miniapp) .lp-mock-row b{font-weight:800}
body.landing:not(.miniapp) .lp-sum{font-size:22px;font-weight:900!important;color:#e8703f}
body.landing:not(.miniapp) .lp-check{display:flex;align-items:center;gap:12px;font-weight:700}
body.landing:not(.miniapp) .lp-check b{font-weight:800;flex:1;min-width:0}
body.landing:not(.miniapp) .lp-check span{color:#5c4f48}
body.landing:not(.miniapp) .lp-check i{width:22px;height:22px;border-radius:7px;border:2px solid #f2e3d0;flex:none;box-sizing:border-box}
body.landing:not(.miniapp) .lp-check.on i{border-color:#e8703f;background:#e8703f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 6.3 2.3 2.2 4.7-5'/%3E%3C/svg%3E") center/12px no-repeat}
body.landing:not(.miniapp) .lp-check:not(.on) b,body.landing:not(.miniapp) .lp-check:not(.on) span{color:#7a6a61}
body.landing:not(.miniapp) .lp-terms-foot{margin:0;font-size:15px;font-weight:700;color:#5c4f48}
body.landing:not(.miniapp) .lp-terms-foot a{color:#c4532a;font-weight:800}
@media (max-width:860px){
  body.landing:not(.miniapp) .lp-terms-in{padding:0 5% 56px;gap:22px}
  body.landing:not(.miniapp) .lp-terms-grid{grid-template-columns:1fr}
  body.landing:not(.miniapp) .lp-terms-head h2{font-size:28px}
  body.landing:not(.miniapp) .lp-term{padding:22px}
  body.landing:not(.miniapp) .lp-term h3{font-size:20px}
}

/* О (18.11): реквизиты в подвале и уведомление о cookie. Только сайт: не мини-приложение и не всплывающие окна. */
body:not(.miniapp) .site-footer{flex-wrap:wrap}
body:not(.miniapp) .site-footer .footer-legal{flex-basis:100%;margin:0;font-size:12px;font-weight:600;opacity:.8}
body:not(.miniapp):not(.embedded) .cookie-note{position:fixed;z-index:55;left:12px;right:12px;bottom:12px;margin:0 auto;max-width:720px;box-sizing:border-box;display:flex;align-items:center;gap:14px;padding:12px 12px 12px 18px;border-radius:16px;background:#2b2320;color:#fff7ef;font-size:13px;line-height:1.4;font-weight:600;box-shadow:0 8px 28px rgba(43,35,32,.28)}
body:not(.miniapp):not(.embedded) .cookie-note p{margin:0;flex:1;min-width:0}
body:not(.miniapp):not(.embedded) .cookie-note a{color:#ffd9bd;text-decoration:underline}
body:not(.miniapp):not(.embedded) .cookie-note button{flex:none;border:0;border-radius:999px;padding:9px 16px;background:var(--orange,#f07a2b);color:#fff;font:inherit;font-weight:800;cursor:pointer}
