.shop-open,.shop-text-button,.shop-actions button,.cookie-actions button{font:inherit;cursor:pointer}
.shop-open{white-space:nowrap;border:1px solid #dcc7b5;background:#fffaf4;color:#40342f;border-radius:30px;padding:8px 12px}
.shop-open:hover,.shop-actions button:hover{background:#f4e5d6}
.shop-text-button{border:0;padding:0;background:none;color:#734333;text-decoration:underline;text-underline-offset:3px}
.shop-menu{position:relative;margin-left:auto}
.shop-menu summary{list-style:none;cursor:pointer;white-space:nowrap;border:1px solid #dcc7b5;background:#fffaf4;color:#40342f;border-radius:30px;padding:8px 12px}
.shop-menu summary::-webkit-details-marker{display:none}
.shop-menu .shop-menu-panel{position:absolute;z-index:8;top:calc(100% + 8px);right:0;display:grid;min-width:190px;padding:8px;background:#fffaf4;border:1px solid #dcc7b5;border-radius:16px;box-shadow:0 8px 24px #3a2e2226}
.shop-menu-panel a{color:#40342f;padding:9px 10px;text-decoration:none}
.shop-menu-panel a:hover{background:#f4e5d6}
.shop-menu{display:none}
.store-header .wrap{gap:12px}
.shop-open:focus-visible,.shop-menu summary:focus-visible,.site-top summary:focus-visible,.shop-text-button:focus-visible,.shop-cart button:focus-visible,.cookie-actions button:focus-visible,.analytics-close:focus-visible{outline:2px solid #774433;outline-offset:2px}
.shop-cart{box-sizing:border-box;border:0;border-radius:22px;width:min(calc(100% - 24px),500px);max-height:calc(100dvh - 32px);padding:22px;margin:auto;color:#40342f;background:#fffaf4;overflow:auto}
.shop-cart::backdrop{background:#33271fb0}
.shop-cart header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.shop-cart h2{font-size:25px;margin:0}
.shop-cart button{font:inherit}
.shop-close,.shop-items button{cursor:pointer;border:0;background:none;color:#934328;padding:8px}
.shop-items{list-style:none;margin:0;padding:0}
.shop-items li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #ead9c8}
.shop-detail,.shop-checkout p{font-size:14px;color:#6c5c53;margin:5px 0}
.shop-total{font-weight:bold;margin-top:16px}
.shop-checkout button{padding:12px 20px;border:0;border-radius:24px;background:#a7472c;color:#fff}
.shop-checkout button:disabled{cursor:not-allowed}
.shop-checkout label{display:grid;gap:6px;margin:0 0 12px;font-size:16px}
.shop-checkout input{box-sizing:border-box;width:100%;min-width:0;min-height:48px;padding:10px 12px;border:1px solid #bca38f;border-radius:12px;background:#fff;color:#40342f;font:inherit}
.shop-checkout input:focus-visible{outline:2px solid #774433;outline-offset:2px}
.shop-checkout button[type="submit"]{width:100%;min-height:48px}
.shop-cart :is(header,.shop-items li)>:first-child{min-width:0;overflow-wrap:anywhere}
.shop-close,.shop-items button{flex-shrink:0}
@media(max-width:480px){.shop-cart{width:calc(100% - 24px);max-width:calc(100% - 24px);padding:16px}}
.shop-payment-status{position:fixed;z-index:100;bottom:24px;left:50%;transform:translateX(-50%);width:min(90%,500px);margin:0;padding:12px 16px;border:1px solid #dcc7b5;border-radius:14px;background:#fffaf4;color:#40342f;box-shadow:0 4px 20px #43221128}
.shop-payment-status[hidden]{display:none}
.shop-legal{display:flex;flex-wrap:wrap;align-items:center;gap:9px 16px;margin-block:12px;color:#604d40;font-size:14px}
.shop-legal a,.analytics-box a{color:#734333;text-underline-offset:3px}
.analytics-box{position:fixed;bottom:16px;left:16px;z-index:15;width:min(460px,calc(100% - 32px));box-sizing:border-box;background:#fffaf4;color:#40342f;border:1px solid #dfcabb;border-radius:18px;padding:16px;box-shadow:0 8px 32px #40342f30;font-size:14px;line-height:1.5}
.analytics-box h2{font-size:18px;margin:0 0 6px;padding-inline-end:44px}
.analytics-box p{margin:0}
.analytics-close{position:absolute;inset-block-start:3px;inset-inline-end:6px;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:#70402f;font:24px/1 system-ui;cursor:pointer}
.cookie-actions{display:flex;justify-content:flex-end;margin-top:10px}
.cookie-actions button{min-width:66px;min-height:44px;border:1px solid #935039;background:#fffaf4;color:#70402f;border-radius:22px;padding:8px 16px}
.analytics-close:hover,.cookie-actions button:hover{background:#f4e5d6}
.analytics-close:active,.cookie-actions button:active{background:#ead5c2}
@media(max-width:900px){
  .site-top{inset-inline:clamp(16px,4vw,60px);justify-content:space-between;align-items:center;pointer-events:none}
  .site-top > *{pointer-events:auto}
  .store-header .wrap{display:grid;grid-template-columns:1fr auto auto 1fr}
  .store-header .shop-open{grid-area:1 / 1;justify-self:start;margin-left:0}
  .store-header .back{grid-area:1 / 2}
  .store-header .wrap > img{grid-area:1 / 3}
  .store-header .shop-menu{display:block;grid-area:1 / 4;justify-self:end;margin-left:0}
}
.store-header .wrap > img{flex:none}
.store-header .shop-open{position:relative}
.store-header .back:active,.shop-open:active,.shop-menu summary:active,.site-top summary:active{background:#eddccd}
.site-top summary:hover{background:#f4e5d6}
.shop-cart [hidden],.analytics-box[hidden]{display:none}
.shop-owner{flex-basis:100%;font-size:14px;color:#604d40;line-height:1.55}
.shop-owner a,.price-gifts a{color:#734333}
.shop-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px}
.shop-actions .btn{white-space:normal;text-align:center}
.price-gifts{background:#fffaf4;border:1px solid #ead9c8;border-radius:24px;padding:22px}
.price-gifts h3{font-size:24px}
.price-gift-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:12px}
.price-gift-grid article p,.price-gift-extra p{margin:0;font-size:15px;line-height:1.5}
.price-gift-grid img,.price-gift-extra img{aspect-ratio:2/3;object-fit:contain}
.price-gift-later{margin-top:20px}
.price-gift-extra{display:grid;grid-template-columns:minmax(84px,1fr) 1fr;gap:14px;align-items:center;margin-bottom:14px}
.price-gift-extra .gift-gallery-link{margin:8px 0 0;max-width:220px}
.mari-six.mari-for-whom{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))}
.demo-invite{margin-top:38px}
.demo-invite h3{font-size:clamp(26px,4vw,42px);line-height:1.2}
.demo-invite .sub{margin-top:10px}
.grand .im.gift-gallery-link{margin:0 auto;width:100%;max-width:330px}
.cross-game{display:flex;align-items:center;gap:24px;margin-top:14px}
.cross-game > img{width:min(40%,230px);border-radius:18px}
.mobile-gift-card img{object-fit:contain}
@media(max-width:640px){
  .cross-game{display:block}
  .cross-game > img{width:100%;max-width:360px}
}
@media(max-width:480px){
  .store-header .wrap{gap:6px;padding-inline:14px}
  .store-header .back{font-size:0}
  .store-header .back::before{content:"←";display:grid;place-items:center;width:34px;height:34px;font-size:20px}
  .store-header .wrap > img{width:clamp(64px,20.5vw,80px);height:auto}
  .shop-open,.shop-menu summary{font-size:13px}
  .acc-item[id]{scroll-margin-top:67px}
}
.store-header .back::before{content:"← ";font-size:inherit}
@media(max-width:480px){.store-header .back::before{font-size:20px}}
body:has(.store-header) section[id],.acc-item[id]{scroll-margin-top:74px}
@media(min-width:901px){body:has(.store-header) section[id],.acc-item[id]{scroll-margin-top:94px}}

/* Цвета разделов магазина */
.store-header .back{color:#40342f}
.product-quest{--product-action:#61694e;--product-action-hover:#535a42;--product-action-active:#474e39}
.product-dates{--product-action:#613652;--product-action-hover:#4f2b42;--product-action-active:#422237}
.shop-cart :is(.shop-close,.shop-items button,.shop-checkout button){
  border-radius:24px;background:#a7472c;color:#fff;border:1px solid #a7472c;
}
.shop-cart button:not(:disabled):hover{background:#923a23}
.shop-cart button:not(:disabled):active{background:#78301d}
.shop-cart button:disabled{opacity:.65}
