.publication-catalog .product-copy{display:flex;flex-direction:column;flex:1}
.publication-catalog .product{display:flex;flex-direction:column;min-width:0}
.publication-catalog .product-art img{object-fit:contain}
.publication-description{font-size:.92rem;line-height:1.45;color:#475453;margin:0 0 .85rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.publication-catalog .product-bottom{margin-top:auto;flex-wrap:wrap;gap:.55rem}
.publication-catalog .add-button{width:auto;min-height:40px;padding:0 13px;border-radius:999px;gap:5px;font:inherit;font-size:.86rem;white-space:nowrap}
.publication-catalog .add-button svg{width:15px;height:15px}

.product-art{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.product-art img{min-width:0;min-height:0}

/* start screen title is not a second h1 */
.jd-start-title{font-size:20px;font-weight:700;margin:0 0 20px}
/* mobile menu */
body .nav-toggle{display:none}
@media(max-width:600px){
body .nav-toggle{display:inline-flex}
header.nav-open>nav{display:flex!important;flex-direction:column;align-items:stretch;position:absolute;left:0;right:0;top:100%;gap:0;padding:6px var(--space) 14px;background:#f8f7f3;border-bottom:1px solid var(--line);box-shadow:0 18px 30px #202a1c14}
header.nav-open>nav a{display:flex;align-items:center;min-height:48px;padding:0 2px;border-bottom:1px solid var(--line);font-size:16px!important}
header.nav-open>nav a:last-child{border-bottom:0}
}
/* 404 */
.not-found{max-width:640px;margin:0 auto;padding:96px var(--space) 120px;display:flex;flex-direction:column;align-items:flex-start;gap:18px}
.not-found h1{font-size:clamp(34px,6vw,56px);line-height:1.08;margin:0}
.not-found p{margin:0;color:var(--muted)}
.not-found .button{margin-top:10px}
/* buttons: one size scale, no tiny targets, no empty blocks */
body:not(.distributor) #modal .close{width:44px;min-width:44px;height:44px;min-height:44px;top:10px;right:10px}
body .publication-catalog .add-button{min-height:44px}
.notice:empty{display:none}
body #modal-content .row-actions{display:flex;align-items:center;gap:10px}
body #modal-content .row-actions input[type=number]{width:76px;height:var(--control-size);min-height:var(--control-size);box-sizing:border-box;text-align:center;padding:0 8px}
body #modal-content .row-actions [data-remove]{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--control-size);height:var(--control-size);padding:0;border:1px solid var(--line);border-radius:var(--control-radius);background:transparent;color:var(--ink);font-size:22px;line-height:1;cursor:pointer}
body #modal-content .row-actions [data-remove]:hover{background:#53614e10;border-color:var(--accent)}
body #modal-content .connection-actions{align-items:stretch}
body #modal-content input[type=checkbox]{width:22px;height:22px;flex:none}
body button,body a.button{cursor:pointer}
body button:disabled,body a.button[aria-disabled=true]{cursor:not-allowed}
body .button.dark:hover{background:#3f493b}
body .button.dark:active,body .add-button:active,body .header-button:active{transform:translateY(1px)}
/* tap targets in footers and legal navigation */
footer .footer-contact>a,footer .footer-links>a,footer details a{display:inline-flex;align-items:center;min-height:40px}
footer .footer-contact,footer .footer-links{gap:0}
footer .footer-links summary,footer details>summary{display:flex;align-items:center;min-height:40px;cursor:pointer}
body>header>a:not(.logo),.legal-footer a{display:inline-flex;align-items:center;min-height:40px}
.legal-footer{align-items:center}
.footer-links summary{min-height:40px}
/* narrow phones: three header buttons fit next to the logo */
@media(max-width:430px){body .header-actions{gap:8px}body .header-button{width:44px;min-width:44px;height:44px;min-height:44px}}
@media(max-width:380px){header .logo small{display:none}}
/* hover: dark text on the pale hover background (was white-on-white) */
body .add-button:hover,body .add-button:focus-visible{color:var(--ink)}
@media(max-width:430px){body #cart-button.basket{width:44px;min-width:44px;height:44px;min-height:44px;padding:0}}
/* 404: footer at the bottom of the window */
body:has(.not-found){min-height:100vh;display:flex;flex-direction:column}
body:has(.not-found) .not-found{flex:1;width:100%;box-sizing:border-box}
/* contrast on the pale "about" block */
.service-notes span{color:#596352}
.service-notes p{color:#555e4f}
/* logo (JD BIO Russia) */
.logo{display:inline-flex;align-items:center;line-height:0;flex:none}
.logo img{display:block;height:54px;width:auto;max-width:none}
footer .logo img{height:72px}
.jd-start-brand img{display:block;height:40px;width:auto}
@media(max-width:800px){.logo img{height:46px}}
@media(max-width:600px){.logo img{height:42px}footer .logo img{height:58px}}
@media(max-width:380px){.logo img{height:36px}}

/* Keep one loading surface from first paint through account and interface selection. */
#jd-mini-boot{display:none!important}
html.jd-shop-opening body{overflow:hidden}
html.jd-shop-opening body>:not(#jd-mini-boot){visibility:hidden!important;pointer-events:none!important}
html.jd-shop-opening #jd-mini-boot{
 display:grid!important;position:fixed;inset:0;z-index:2147483646;place-items:center;
 overflow:auto;overscroll-behavior:contain;box-sizing:border-box;padding:24px;
 padding-block:max(24px,var(--safe-top,0px)) max(24px,var(--safe-bottom,0px));
 background:var(--tg-theme-bg-color,#f6f8f5);color:var(--tg-theme-text-color,#183229);
 font:16px/1.45 system-ui,-apple-system,sans-serif
}
#jd-mini-boot:empty::after{
 content:"";width:25px;height:25px;box-sizing:border-box;border:2px solid #98ada5;
 border-top-color:var(--tg-theme-button-color,#216451);border-radius:50%;
 animation:jd-shop-opening-spin .8s linear infinite
}
@keyframes jd-shop-opening-spin{to{transform:rotate(1turn)}}
@media(prefers-reduced-motion:reduce){#jd-mini-boot:empty::after{animation:none}}
#jd-mini-boot .jd-launch-message{max-width:350px;text-align:center}
#jd-mini-boot h2{font:650 21px/1.2 system-ui;margin:0 0 8px}
#jd-mini-boot p{margin:0 0 16px}
#jd-mini-boot button{min-height:44px;max-width:100%;padding:8px 16px;border:0;border-radius:10px;background:var(--tg-theme-button-color,#216451);color:var(--tg-theme-button-text-color,#fff);font:inherit;cursor:pointer}
