/* Catalogue: content determines card height; details have their own dialog. */
section[id]{scroll-margin-top:100px}
.catalog-help{font-size:14px;line-height:1.65;color:#546e80;margin:0 0 24px;max-width:62ch}
.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Card: photo → info (grows) → purchase pinned to the bottom */
.catalog-card{position:relative;min-width:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #dde8ee;border-radius:22px;background:#fff;transition:border-color .2s,box-shadow .25s,transform .25s}
.catalog-card:hover{border-color:#b7d0dc;box-shadow:0 18px 40px -24px #0b355759;transform:translateY(-2px)}
.catalog-photo{display:block;position:relative;width:100%;aspect-ratio:16/11;padding:22px 30px;background:linear-gradient(150deg,#f9fbfc 0%,#eef4f7 100%);text-align:left}
.catalog-photo:focus-visible{outline:2px solid #1e7096;outline-offset:-4px;border-radius:20px}
.catalog-photo .product-pack{width:100%;height:100%;object-fit:contain;padding:0;mix-blend-mode:multiply;transition:transform .3s}
.catalog-photo>span:not(.catalog-pet){display:block;width:100%;height:100%;padding:0}
.catalog-card:hover .catalog-photo .product-pack{transform:scale(1.03)}
.catalog-pet{position:absolute;left:14px;top:14px;z-index:1;font-size:11px;font-weight:600;letter-spacing:.03em;color:#2f5b73;background:#ffffffe6;border:1px solid #dbe8ef;border-radius:30px;padding:4px 10px;backdrop-filter:blur(4px)}

.catalog-card-body{padding:18px 20px 0;display:flex;flex:1;flex-direction:column;min-width:0}
.catalog-brand{color:#327898;font-size:11px;font-weight:650;letter-spacing:.07em;text-transform:uppercase;line-height:1.5;margin:0 0 6px;overflow-wrap:anywhere}
.catalog-brand span{color:#6b8494;font-weight:450}
.catalog-card h3{font-size:17px;font-weight:700;line-height:1.35;letter-spacing:-.015em;margin:0;overflow-wrap:anywhere}
.catalog-card h3 a{color:inherit;text-decoration:none}
.catalog-card h3 button,.catalog-card h3 a{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-align:left;line-height:inherit;width:100%}
.catalog-card h3 button:hover,.catalog-card h3 a:hover{color:#227397}
.catalog-sub{font-size:13px;color:#607a8a;line-height:1.5;margin:6px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.catalog-facts-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding:14px 0 16px}
.catalog-facts{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0}
.catalog-facts div{display:flex;gap:5px;align-items:baseline;font-size:12px;line-height:1.4;background:#f1f6f9;border-radius:8px;padding:5px 9px}
.catalog-facts dt{color:#627b8b}
.catalog-facts dd{margin:0;font-weight:700;color:#0b3557}
.catalog-more{flex:none;margin-left:auto;display:inline-flex;align-items:center;gap:4px;min-height:32px;padding:0 2px;color:#2d6b89;font-size:12.5px;font-weight:600}
.catalog-more span{transition:transform .2s}
.catalog-more:hover span{transform:translateX(3px)}
.catalog-more:hover{color:#1e7096}

.catalog-buy{display:grid;gap:14px;padding:14px 20px 20px;border-top:1px solid #edf2f5}
.catalog-tags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px}
.catalog-tags span{font-size:11px;line-height:1.5;background:#edf5f7;color:#3d6376;border-radius:6px;padding:5px 8px;overflow-wrap:anywhere;max-width:100%}
.product-sizes{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.product-sizes legend{font-size:12px;color:#546e80;padding:0;margin-bottom:9px}
.product-size{display:inline-flex;align-items:center;justify-content:center;min-height:36px;min-width:52px;padding:6px 13px;border:1px solid #d5e3eb;background:#fff;color:#486274;border-radius:999px;font-size:12.5px;font-weight:600;line-height:1.3;white-space:nowrap;transition:background .15s,border-color .15s,color .15s}
.product-size:hover{border-color:#387da0;background:#eff6fa;color:#0b3557}
.product-size[aria-pressed="true"]{background:#0b3557;border-color:#0b3557;color:#fff}
.product-options{display:grid;gap:10px;min-width:0}
.product-granules{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}
.product-granules-label{font-size:12px;color:#627b8b;margin-right:2px}
.product-granules-list{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.product-granule{display:inline-flex;align-items:center;min-height:32px;padding:4px 11px;border:1px dashed #c3d7e2;border-radius:8px;background:#f7fafc;color:#486274;font-size:12px;font-weight:600;white-space:nowrap;transition:background .15s,border-color .15s,color .15s}
.product-granule:hover{border-color:#387da0;color:#0b3557}
.product-granule[aria-pressed="true"]{border-style:solid;border-color:#387da0;background:#e4f1f7;color:#0b3557}
.catalog-order{display:flex;align-items:center;justify-content:space-between;gap:12px}
.catalog-price{min-width:0;display:flex;align-items:center;line-height:1.2}
.catalog-price .mono{font-family:inherit;font-size:13px;font-weight:500;color:#5b7486}
.product-primary{display:flex;align-items:center;justify-content:center;gap:16px;background:#0b3557;color:#fff;border-radius:12px;min-height:48px;width:100%;padding:12px 16px;font-size:14px;font-weight:650;line-height:1.5;transition:background .2s}
.product-primary:hover{background:#1e7096}
.product-primary:active{background:#174760}
.product-primary-icon{display:inline-grid;place-items:center;font-size:18px;line-height:1}
.product-primary-icon svg{width:17px;height:17px}
.product-primary-text{line-height:1.2}
.product-primary.is-preorder{background:#fff;color:#8a5a0c;box-shadow:inset 0 0 0 1.5px #e0b765}
.product-primary.is-preorder:hover{background:#fff6e2}
.product-primary.is-added,.product-primary.is-added:hover{background:#1f7a5a;color:#fff;box-shadow:none}
.product-primary.is-added .product-primary-icon{font-size:0}
.product-primary.is-added .product-primary-icon svg{display:none}
.product-primary.is-added .product-primary-icon::before{content:"✓";font-size:16px}
/* наличие */
.stock{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;line-height:1.3}
.stock::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;flex:none}
.stock.is-in{color:#1f7a5a}
.stock.is-warn{color:#9a6a12}
.stock.is-out{color:#a86b0c}
.catalog-price-box{display:grid;gap:3px;min-width:0}
.stock-short{display:none}
.product-size.is-preorder{position:relative;border-style:dashed}
.product-size.is-preorder::after{content:"";position:absolute;top:4px;right:4px;width:6px;height:6px;border-radius:50%;background:#e0a53a}
.product-size.is-preorder[aria-pressed="true"]::after{background:#f3c56b}
.catalog-card .product-primary{flex:none;width:auto;min-height:44px;gap:8px;padding:10px 18px 10px 14px}
.product-link{display:flex;justify-content:center;align-items:center;gap:6px;color:#2d6b89;font-size:12px;font-weight:600;line-height:1.6;min-height:44px;text-decoration:none;text-align:center;padding:8px 0}
button.product-link{width:100%}
.product-link:hover{text-decoration:underline;text-underline-offset:4px}
.catalog-search-trigger{display:none!important}
/* кнопка фильтров в шапке — только на телефоне */
.header-filter{position:relative;display:none;place-items:center;width:42px;height:42px;margin-left:auto;border:1px solid #d6e5ec;border-radius:12px;background:#fff;color:#0b3557}
.header-filter svg{width:20px;height:20px}
.header-filter-badge{position:absolute;top:-5px;right:-5px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#e7c982;color:#0b3557;font:600 10px/1 "JetBrains Mono",monospace}
.header-filter-badge[hidden]{display:none}
.catalog-search{display:block}
.filter-bar{gap:10px;padding:10px}
#searchInput{min-height:44px}
.product-dialog{position:fixed;inset:0;margin:auto;padding:0;border:1px solid #d8e6ed;border-radius:26px;width:min(1000px,calc(100% - 48px));max-width:none;max-height:90vh;max-height:90dvh;background:#fff;color:#0b3557;overscroll-behavior:contain;box-shadow:0 30px 100px #07273c55;overflow-y:auto}
.product-dialog::backdrop{background:#092e48a6;backdrop-filter:blur(5px)}
.product-dialog-header{position:sticky;top:0;z-index:2;display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 24px;background:#ffffffed;backdrop-filter:blur(10px);border-bottom:1px solid #e1ebf0}
.product-dialog-header>span{font-size:12px;font-weight:600;letter-spacing:.03em}
.product-close{display:grid;place-items:center;width:44px;height:44px;flex:none;background:#edf4f7;border-radius:50%;font-size:18px}
.product-close:hover{background:#dfeef4}
.product-detail-photo .product-pack,.product-detail-photo>span:not(.photo-zoom-hint){object-fit:contain;width:100%;height:100%;min-height:0;padding:0;mix-blend-mode:multiply}
/* Окно товара: слева фото на всю высоту окна (прилипает при прокрутке), справа всё остальное */
.product-detail-layout{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:36px;padding:24px 32px 36px 24px;align-items:start}
.product-detail-media{position:sticky;top:92px;height:calc(90vh - 118px);height:calc(90dvh - 118px);min-height:380px}
.product-detail-photo{height:100%;border-radius:20px;padding:32px;background:linear-gradient(150deg,#f9fbfc,#eaf2f6);display:grid;place-items:center}
.product-detail-info{display:grid;gap:28px;min-width:0;padding-top:8px}
.product-detail-summary{display:grid;gap:14px}
.product-detail-summary .catalog-brand{margin:0}
.product-detail-summary h2{font-family:Onest,sans-serif;font-size:28px;font-weight:750;line-height:1.2;letter-spacing:-.025em;overflow-wrap:anywhere;margin:0}
.product-detail-summary .catalog-facts div{font-size:13px;padding:6px 11px}
.product-detail-summary .catalog-tags{margin:0}
.product-description{color:#476577;font-size:14px;line-height:1.75;margin:0}
.product-buybox{display:grid;gap:16px;padding:20px;border:1px solid #dde8ee;border-radius:18px;background:#fbfdfe}
.product-buybox .product-options{gap:12px}
.product-buybox-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.product-buybox .catalog-price .font-display{font-size:24px!important}
.product-buybox .product-primary{width:auto;flex:1 1 200px;max-width:280px;gap:10px}
.detail-status{color:#226a51;font-size:13px;min-height:0;margin:-6px 0 0}
.detail-status:empty{display:none}
.product-detail-info section{padding-top:24px;border-top:1px solid #e1ebf0;overflow-wrap:anywhere}
.product-detail-info section h3{font-size:19px;font-weight:700;letter-spacing:-.02em;margin:0 0 12px}
.product-detail-info section>p{font-size:14px;line-height:1.8;color:#476577}
button.product-detail-photo{position:relative;width:100%;cursor:zoom-in;transition:background .2s}
button.product-detail-photo:hover{background:#eaf2f6}
button.product-detail-photo:focus-visible{outline:2px solid #1e7096;outline-offset:2px}
.product-detail-photo .product-pack{transition:transform .3s}
button.product-detail-photo:hover .product-pack{transform:scale(1.03)}
.photo-zoom-hint{position:absolute;right:12px;bottom:12px;font-size:12px;font-weight:600;color:#2f5b73;background:#ffffffe6;border:1px solid #dbe8ef;border-radius:30px;padding:5px 11px;pointer-events:none}
.photo-zoom{width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;display:grid;place-items:center;cursor:zoom-out}
.photo-zoom:not([open]){display:none}
.photo-zoom::backdrop{background:#061e30e6;backdrop-filter:blur(6px)}
.photo-zoom img{max-width:min(92vw,1100px);max-height:88vh;max-height:88dvh;width:auto;height:auto;object-fit:contain;border-radius:18px;background:#fff;padding:clamp(12px,3vw,32px);box-shadow:0 30px 80px #0006}
.photo-zoom-close{position:fixed;top:max(16px,env(safe-area-inset-top));right:16px;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#ffffffe6;color:#0b3557;font-size:18px}
.photo-zoom-close:hover{background:#fff}
.product-analysis dl{background:#f4f8fa;border-radius:16px;padding:6px 18px}
.product-analysis dl>div{display:flex;justify-content:space-between;gap:16px;padding:11px 0;font-size:13px;border-bottom:1px solid #deeaef}
.product-analysis dl>div:last-child{border:0}
.product-analysis dt{color:#4d6c7c}
.product-analysis dd{font-weight:650;text-align:right}
.feeding-image{display:flex;flex-direction:column;align-items:center;gap:12px;background:#f4f8fa;border:1px solid #e0eaf0;border-radius:16px;padding:20px;margin:20px 0;color:#266582}
.feeding-image img{display:block;max-width:100%;width:auto;height:auto;max-height:600px;object-fit:contain}
.feeding-image span{font-size:12px;text-align:center}
.product-storage{margin:20px 0}
.product-feeding .product-link{justify-content:flex-start}
@media(min-width:1024px){#brandGrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.filter-bar .petBtn{padding-left:10px;padding-right:10px}}
@media(max-width:780px){
  .product-detail-layout{grid-template-columns:minmax(0,1fr);gap:22px;padding:20px 24px 32px}
  .product-detail-media{position:static;height:320px;min-height:0}
}
@media(max-width:639px){
  .header-filter{display:grid}
  .header-filter + button{margin-left:8px!important}
  /* панель фильтров не висит поверх каталога: фильтры доступны из шапки */
  .filter-sticky{position:static}
  .filter-bar{grid-template-columns:44px repeat(3,minmax(0,1fr));gap:8px;padding:10px}
  .catalog-search{display:block;grid-column:1/-1;grid-row:1;width:100%}
  .filter-bar .mobile-filter-main{grid-column:1;grid-row:2}
  .mobile-quick .chip{font-size:12px;white-space:normal}
  #activeChips{margin-bottom:12px}
  .catalog-help{font-size:13px;margin-bottom:18px}
  #top{padding-bottom:32px}
  #top h1{font-size:clamp(30px,9vw,48px)}
  #top .aspect-\[4\/3\.4\]{aspect-ratio:16/10}
  #pets,#brands,#catalog,#how{padding-top:36px;padding-bottom:36px}
  #petCards{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  #petCards .ph{height:94px}
  #petCards .block.p-4{padding:10px}
  #petCards .font-display{font-size:13px}
  #petCards .text-steel.text-\[13px\]{display:none}
  #petCards .text-\[13px\]{font-size:11px}
  #mobileBar>button{padding:12px;gap:8px;flex-wrap:wrap}
  #mobSum{font-family:inherit;font-size:12px}
  body{padding-bottom:90px}
}
@media(max-width:599px){
  .catalog-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  /* Карточка-строка: фото слева на всю высоту, справа информация и покупка */
  .catalog-card{display:grid;grid-template-columns:clamp(130px,45%,190px) minmax(0,1fr);grid-template-areas:"photo body" "photo buy";border-radius:18px}
  .catalog-card:hover{transform:none}
  .catalog-photo{grid-area:photo;align-self:stretch;aspect-ratio:auto;height:100%;min-height:200px;padding:10px 6px 32px;border-right:1px solid #e6eef2}
  .catalog-photo:focus-visible{border-radius:17px 0 0 17px}
  .catalog-pet{left:50%;top:auto;bottom:10px;transform:translateX(-50%);font-size:10px;padding:2px 8px;white-space:nowrap}
  .catalog-card-body{grid-area:body;padding:12px 12px 0}
  .catalog-brand{font-size:10px;margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .catalog-card h3{font-size:15px;line-height:1.3}
  .catalog-sub{font-size:12px;margin-top:3px}
  .catalog-facts-row{flex-wrap:wrap;gap:6px 10px;padding:8px 0 0;margin-top:0}
  .catalog-facts{gap:4px}
  .catalog-facts div{font-size:11px;padding:3px 7px}
  .catalog-more{display:none}
  .catalog-buy{grid-area:buy;align-self:end;gap:10px;padding:12px;border-top:0}
  .catalog-card .product-options{gap:8px}
  .catalog-card .product-sizes,.catalog-card .product-granules-list{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-right:-12px;padding-right:12px}
  .catalog-card .product-sizes::-webkit-scrollbar,.catalog-card .product-granules-list::-webkit-scrollbar{display:none}
  .catalog-card .product-size{flex:none;min-height:36px;min-width:0;padding:6px 11px}
  .catalog-card .product-granules{display:grid;gap:4px}
  .catalog-card .product-granules-label{font-size:11px}
  .catalog-card .product-granule{flex:none;min-height:32px;padding:4px 10px}
  .catalog-order{flex-wrap:wrap;gap:8px}
  .catalog-price-box{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 8px;width:100%}
  .catalog-price-box .catalog-price{order:-1}
  .catalog-price-box .stock{font-size:11px}
  .catalog-card .stock-long{display:none}
  .catalog-card .stock-short{display:inline}
  .catalog-card .product-primary{width:100%;min-height:42px}
  .catalog-price .mono{font-size:12.5px}
  .product-dialog{width:100%;height:100%;max-height:100vh;max-height:100dvh;border:0;border-radius:0}
  .product-dialog-header{padding:10px 16px;padding-top:max(10px,env(safe-area-inset-top))}
  .product-detail-layout{padding:16px 16px max(24px,env(safe-area-inset-bottom))}
  .product-detail-media{height:280px}
  .product-detail-photo{padding:20px}
  .product-detail-summary h2{font-size:23px}
  .product-buybox{padding:16px}
  .product-buybox .product-primary{max-width:none}
  .feeding-image{padding:12px}
}
@media(prefers-reduced-motion:reduce){
  .catalog-card,.catalog-photo .product-pack,.catalog-more span,.product-detail-photo .product-pack{transition:none}
  .catalog-card:hover,.catalog-card:hover .catalog-photo .product-pack{transform:none}
  #top .opacity-0{opacity:1!important}
}

/* ——— Корзина: шапка, прокручиваемый список и компактный низ ——— */
.cart-panel{background:#f4f8fa;color:#0b3557}
@media(min-width:640px){.cart-panel{max-width:460px}}
.cart-head{display:flex;align-items:center;gap:10px;padding:14px 16px 14px 20px;padding-top:max(14px,env(safe-area-inset-top));background:#fff;border-bottom:1px solid #e1ebf0}
.cart-head h2{font-family:Unbounded,Onest,sans-serif;font-size:19px;font-weight:800;letter-spacing:-.01em;outline:none}
.cart-head-count{font-size:13px;color:#647b88;padding-top:3px}
.cart-icon-btn{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:12px;background:#f1f7fa;color:#0b3557;transition:background .15s}
.cart-icon-btn:hover{background:#dfeef4}
.cart-icon-btn svg{width:18px;height:18px}
.cart-icon-btn[hidden]{display:none}
.cart-head .cart-icon-btn:first-child{margin-left:-6px}
.cart-body{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:16px;display:grid;align-content:start;gap:14px}
.cart-foot{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 16px;padding-bottom:max(12px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e1ebf0;box-shadow:0 -10px 24px -20px #0b355760}
.cart-foot[hidden]{display:none}
.cart-total{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.cart-total span{font-size:13px;color:#647b88}
.cart-total b{font-family:Unbounded,Onest,sans-serif;font-size:21px;font-weight:800;white-space:nowrap}
.cart-foot>.cart-total{flex-direction:column;gap:2px;align-items:flex-start}
.cart-foot>.cart-total span{font-size:12px}
.cart-next{flex:1;width:auto;min-height:52px;gap:10px}

.cart-lines{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.cart-line{position:relative;display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;padding:12px;background:#fff;border:1px solid #e1ebf0;border-radius:16px}
.cart-line-photo{width:76px;height:76px;border-radius:12px;background:#f1f7fa;display:grid;place-items:center;overflow:hidden;padding:6px}
.cart-line-photo img,.cart-line-photo svg{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.cart-line-info{display:grid;gap:4px;min-width:0;padding-right:24px}
.cart-line-name{font-size:14px;font-weight:650;line-height:1.3;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.cart-line-size{font-size:12px;color:#647b88}
.cart-line-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px}
.cart-line-price{display:grid;justify-items:end;line-height:1.2}
.cart-line-price b{font-size:15px;font-weight:750;white-space:nowrap}
.cart-line-each{font-size:11px;color:#647b88}
.cart-line-remove{position:absolute;top:8px;right:8px;display:grid;place-items:center;width:30px;height:30px;border-radius:9px;color:#8aa0ad}
.cart-line-remove:hover{background:#fdecef;color:#c85a6c}
.cart-line-remove svg{width:15px;height:15px}
.qty{display:inline-flex;align-items:center;border:1px solid #d6e5ec;border-radius:12px;background:#fff}
.qty button{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;font-size:18px;color:#0b3557}
.qty button:hover{background:#f1f7fa}
.qty button svg{width:16px;height:16px;color:#8aa0ad}
.qty span{min-width:26px;text-align:center;font-size:14px;font-weight:650}

.cart-summary{display:grid;gap:10px;padding:14px 16px;background:#fff;border:1px solid #e1ebf0;border-radius:16px;font-size:13px}
.cart-summary>div{display:flex;justify-content:space-between;gap:12px}
.cart-summary-note{justify-content:flex-start!important;color:#647b88;font-size:12px;align-items:center}
.cart-clear{justify-self:start;font-size:12px;color:#8aa0ad;padding:4px 0;text-decoration:underline;text-underline-offset:3px}
.cart-clear:hover,.cart-clear[data-confirm="1"]{color:#c85a6c}

.cart-block{display:grid;gap:12px;padding:16px;background:#fff;border:1px solid #e1ebf0;border-radius:16px}
.cart-block[hidden]{display:none}
.cart-block h3{font-size:15px;font-weight:700}
.field{display:grid;gap:6px}
.field>span{font-size:12px;font-weight:600;color:#4d6c7c}
.field em{font-style:normal;font-weight:400;color:#8aa0ad}
.field input,.field textarea{width:100%;border:1px solid #d6e5ec;border-radius:12px;background:#f7fafc;padding:12px 14px;font-size:16px;color:#0b3557;outline:none;transition:border-color .15s,background .15s;resize:vertical}
.field input:focus,.field textarea:focus{border-color:#2a94c8;background:#fff}
.cart-mini{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.cart-mini li{display:flex;justify-content:space-between;gap:12px;font-size:13px;line-height:1.35}
.cart-mini li span{min-width:0}
.cart-mini small{display:block;color:#647b88;font-size:12px;margin-top:2px}
.cart-mini b{white-space:nowrap}
.cart-block .cart-total{padding-top:10px;border-top:1px solid #e9eff2}
.cart-hint{font-size:12px;line-height:1.55;color:#647b88;padding:0 4px}
.cart-foot-label{width:100%;font-size:12px;color:#647b88;margin-bottom:-4px}
.cart-send{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
.cart-send button{min-height:50px;border-radius:12px;font-weight:650;font-size:15px;transition:background .15s}
.send-tg{background:#2a94c8;color:#fff}
.send-tg:hover{background:#126b99}
.send-max{background:#e7c982;color:#0b3557}
.send-max:hover{background:#dcb660}
.cart-send.has-wa{grid-template-columns:repeat(3,1fr)}
.send-wa{background:#25D366;color:#0b3557}
.send-wa:hover{background:#1fb457}
.cart-send-extra{display:flex;justify-content:center;gap:18px;width:100%}
.cart-send-extra button{font-size:12.5px;color:#4d6c7c;padding:4px 0;text-decoration:underline;text-underline-offset:3px}
.cart-send-extra button:hover{color:#0b3557}
.cart-empty{display:grid;justify-items:center;text-align:center;gap:8px;padding:64px 12px;color:#647b88;font-size:14px}
.cart-empty-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:18px;background:#e1f3fa;color:#2a94c8;margin-bottom:8px}
.cart-empty-icon svg{width:28px;height:28px}
.cart-empty-title{font-family:Unbounded,Onest,sans-serif;font-size:17px;font-weight:700;color:#0b3557}
.cart-empty .product-primary{width:auto;margin-top:12px;padding:12px 22px}
/* при открытой корзине уведомление поднимается наверх, чтобы не закрывать кнопки */
body:has(#cart:not(.hidden)) #toast{bottom:auto;top:max(84px,calc(env(safe-area-inset-top) + 72px))}
@media(prefers-reduced-motion:reduce){.qty button,.cart-icon-btn{transition:none}}

/* ——— баннер cookie ——— */
.cookie-bar{position:fixed;z-index:55;left:16px;right:16px;bottom:max(16px,env(safe-area-inset-bottom));margin:0 auto;max-width:720px;display:flex;align-items:center;gap:16px;padding:14px 16px 14px 20px;background:#fff;border:1px solid #d6e5ec;border-radius:18px;box-shadow:0 20px 50px -24px #0b355780;color:#0b3557}
.cookie-bar[hidden]{display:none}
.cookie-bar p{flex:1;font-size:13px;line-height:1.5;color:#476577}
.cookie-bar a{color:#126b99;text-decoration:underline;text-underline-offset:2px}
.cookie-actions{display:flex;gap:8px;flex:none}
.cookie-actions [hidden]{display:none}
.cookie-actions button{min-height:42px;padding:0 14px;border-radius:11px;border:1px solid #d6e5ec;font-size:13px;font-weight:600;color:#476577;background:#fff}
.cookie-actions button:hover{border-color:#0b3557;color:#0b3557}
.cookie-actions .cookie-accept{background:#0b3557;border-color:#0b3557;color:#fff}
.cookie-actions .cookie-accept:hover{background:#1e7096;color:#fff}
.seller-line{display:block;margin-top:4px}
.seller-line:empty{display:none}
.footer-links{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px}
.footer-links a,.footer-links button{text-decoration:underline;text-underline-offset:2px;color:inherit}
.footer-links a:hover,.footer-links button:hover{color:#0b3557}
.footer-links [hidden]{display:none}
.cart-hint a{color:#126b99;text-decoration:underline;text-underline-offset:2px}
@media(max-width:639px){
  .cookie-bar{flex-direction:column;align-items:stretch;gap:12px;padding:16px}
  .cookie-actions button{flex:1}
}

/* ——— кнопки связи и групп в контактах ——— */
.contact-label{margin:26px 0 10px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#647b88}
.contact-label span{margin-left:6px;font-weight:500;letter-spacing:0;text-transform:none;color:#8aa0ad}
.contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:440px}
.contact-btn{display:flex;align-items:center;gap:10px;min-height:50px;padding:0 16px;border-radius:14px;border:1px solid transparent;font-size:15px;font-weight:650;line-height:1.2;text-decoration:none;transition:background .15s,border-color .15s,color .15s}
.contact-btn[hidden],#groupsBox[hidden]{display:none}
.contact-btn svg{width:20px;height:20px;flex:none;fill:currentColor}
.contact-btn.is-tg{background:#2a94c8;color:#fff}
.contact-btn.is-tg:hover{background:#126b99}
.contact-btn.is-max{background:#e7c982;color:#0b3557}
.contact-btn.is-max:hover{background:#dcb660}
.contact-btn.is-wa{background:#25d366;color:#0b3557}
.contact-btn.is-wa:hover{background:#1fb457}
.contact-btn.is-call{background:#0b3557;color:#fff}
.contact-btn.is-call:hover{background:#1e7096}
.contact-btn.is-group{background:#fff;border-color:#d6e5ec;color:#0b3557}
.contact-btn.is-group:hover{border-color:#0b3557}
.contact-btn.is-group-tg svg{color:#2a94c8}
.contact-btn.is-group-max svg{color:#c9a24c}
@media(max-width:420px){.contact-btn{padding:0 12px;font-size:14px;gap:8px}}

/* ——— шапка: пункты меню не переносятся; на планшете меню не помещается — как на телефоне ——— */
header nav a{white-space:nowrap}
@media(max-width:1023px){header nav{display:none!important}}

/* ——— контакты: адрес, часы и телефон не сжимаются в три узкие колонки ——— */
@media(min-width:640px){
  #contacts dl{grid-template-columns:1fr}
  #contacts #phoneOut{white-space:nowrap}
}
@media(min-width:1024px){
  #contacts dl{grid-template-columns:1fr 1fr}
  #contacts dl>div:first-child{grid-column:1/-1}
}
