/* DINART wholesale, revision 4 */
.dw-panel, .dw-workshop, .dw-section { margin-block:clamp(28px,4.5vw,62px); }
.dw-panel, .dw-workshop { border:1px solid #e3dccd; border-radius:20px; background:#fdfbf6;
  padding:clamp(20px,3.1vw,39px); }
.dw-panel-heading { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px 24px; }
.dw-panel h2, .dw-workshop h2, .dw-section h2 { margin:0; font-size:2rem; font-size:clamp(1.55rem,3.1vw,2.6rem); line-height:1.12; }
.dw-order-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:22px 0 16px; }
.dw-order-facts > div, .dw-material-facts > div { padding:15px 16px; background:#f2ede2; border-radius:12px; }
.dw-order-facts dt, .dw-material-facts dt { font-weight:750; color:var(--ink); }
.dw-order-facts dd, .dw-material-facts dd { margin:5px 0 0; color:var(--muted); line-height:1.5; }
.dw-panel-footer { display:flex; flex-wrap:wrap; gap:8px 24px; justify-content:space-between; align-items:center; }
.dw-panel-footer > span { color:var(--muted); font-size:.9rem; }
.dw-workshop-content > p { margin:12px 0; color:var(--muted); }
.dw-material-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:16px 0; }
.dw-footer-ratings { display:flex; gap:10px;
  align-items:center; margin-bottom:24px; padding:12px; border:1px solid #56574d; border-radius:14px;
  background:#2c2d28; }
.dw-footer-ratings > div { flex:1 1 0; }
.dw-footer-ratings h2 { margin:0; color:#fffdf8; font-family:inherit; font-size:1rem; line-height:1.2; font-weight:700; }
.dw-footer-ratings p { margin:4px 0 0; color:#d2ccbf; font-size:.78rem; }
.dw-footer-ratings a { display:flex; flex:0 1 225px; align-items:center; gap:9px; min-width:0; padding:9px 10px;
  border:1px solid #56574d; border-radius:10px; color:#fffdf8; text-decoration:none; }
.dw-footer-ratings a:hover { background:#383932; border-color:#ceb788; }
.dw-footer-ratings a img { flex:none; border-radius:50%; }
.dw-footer-ratings strong { display:flex; align-items:baseline; flex-wrap:wrap; gap:1px 7px; font-size:.93rem; }
.dw-footer-ratings small { display:block; color:#e5ded0; font-size:.78rem; }
.dw-store-stars { color:#ffd377; white-space:nowrap; }
.dw-audience-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:18px; }
.dw-audience-card { display:flex; flex-direction:column; gap:10px; padding:clamp(16px,2.3vw,27px);
  border:1px solid #e0d5c4; border-radius:14px; color:var(--ink);
  background:#fcf8ee; text-decoration:none; }
.dw-audience-card:nth-child(2) { background:#f1f1e8; border-color:#d9ddce; }
.dw-audience-card:nth-child(3) { background:#f7ede8; border-color:#e4d4ca; }
.dw-audience-card:hover { border-color:var(--accent); }
.dw-audience-card h3 { margin:0; font-size:1.25rem; line-height:1.2; overflow-wrap:anywhere; }
.dw-audience-card p { margin:0; color:var(--muted); line-height:1.5; }
.dw-audience-card > span { align-self:flex-start; margin-top:auto; padding-top:6px;
  color:var(--accent); font-weight:700; text-decoration:underline; text-underline-offset:.18em; }
.dw-audience-card:focus-visible, .dw-footer-ratings a:focus-visible {
  outline:2px solid currentColor; outline-offset:3px; }

.dw-buyer { max-width:1100px; margin:0 auto clamp(40px,6vw,82px); }
.dw-buyer-heading { display:grid; align-items:center; gap:22px; margin:20px 0 0; padding:clamp(22px,4vw,46px);
  border:1px solid #e2d7c6; border-radius:19px; background:#fbf7ee; }
.dw-buyer-heading--photo { grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); }
.dw-buyer-intro h1 { margin:0; font-size:clamp(1.95rem,4.3vw,3.6rem); line-height:1.08;
  letter-spacing:-.022em; overflow-wrap:anywhere; }
.dw-buyer-intro > p { max-width:56ch; margin:15px 0 18px; color:var(--muted); line-height:1.55; }
.dw-buyer-cta { display:flex; align-items:center; flex-wrap:wrap; gap:9px 16px; }
.dw-buyer-cta small { font-size:.86rem; color:var(--muted); }
.dw-buyer-photo { margin:0; min-width:0; }
.dw-buyer-photo a { display:block; background:#e9e4d9; border-radius:13px; overflow:hidden; }
.dw-buyer-photo img { display:block; width:100%; height:clamp(240px,30vw,355px); object-fit:contain; }
.dw-buyer-photo figcaption { margin-top:7px; color:var(--muted); font-size:.83rem; line-height:1.35; }
.dw-buyer-section, .dw-buyer-details { margin-top:clamp(26px,4vw,52px); }
.dw-buyer h2 { margin:0 0 14px; font-size:clamp(1.48rem,2.6vw,2.1rem); line-height:1.12; }
.dw-model-wrap { border:1px solid #e0d8c9; border-radius:14px; overflow:hidden; background:#fffdf9; }
.dw-models { width:100%; border-collapse:collapse; line-height:1.4; }
.dw-models :is(th,td) { padding:12px 14px; text-align:left; vertical-align:top; }
.dw-models thead { background:#f0eadd; }
.dw-models tbody tr { border-top:1px solid #e0d8c9; }
.dw-models tbody th { width:34%; font-weight:650; }
.dw-models tbody th a { color:var(--accent); text-underline-offset:.17em; }
.dw-models tbody td { color:var(--muted); }
.dw-buyers-grid, .dw-buyer-details dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.dw-buyer-example { padding:clamp(16px,2.5vw,28px); border:1px solid #decfba; border-radius:14px;
  background:#f8efe0; }
.dw-buyer-example h3 { margin:0; font-size:1.18rem; line-height:1.25; }
.dw-buyer-example p { margin:8px 0; color:var(--muted); }
.dw-buyer-example strong { display:block; margin-top:12px; color:var(--accent); font-size:1.12rem; }
.dw-buyer-example small { font-size:.86rem; color:var(--muted); font-weight:400; }
.dw-buyer-details { padding:clamp(16px,3vw,28px); border:1px solid #e1d9ca; border-radius:14px; background:#fffdf9; }
.dw-buyer-details dl { margin:0 0 13px; }
.dw-buyer-details dt { font-weight:700; }
.dw-buyer-details dd { margin:4px 0 0; color:var(--muted); line-height:1.5; }
.dw-wholesale-actions { align-items:center; }
.dw-wholesale-actions .dw-catalog-pdf { white-space:normal; text-align:center; }
.dw-cart-note { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px 18px;
  padding:14px 17px; margin:14px 0 0; border:1px solid #e1d5c7; border-radius:12px; background:#f5eee3; }
.dw-cart-note strong,.dw-cart-note span { display:block; }
.dw-cart-note span { font-size:.9rem; color:var(--muted); }
.dw-cart-retail { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.dw-cart-retail a { padding:5px 9px; border:1px solid #decec1; border-radius:7px; background:#fffdf9;
  color:var(--accent); font-weight:650; text-underline-offset:.16em; }
.button.dw-catalog-pdf { margin:0; border-color:var(--accent); color:var(--accent); background:#fffcf7; }
.button.dw-catalog-pdf:hover { border-color:var(--accent); background:#f5e7dd; }
.dw-hours { margin:10px 0 0; color:var(--muted); }
.dw-quote-contact-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:12px; }
@media (min-width:1180px) {
  .header-phone { font-size:1.0625rem; font-weight:650; }
}
@media (max-width:670px) {
  .dw-material-facts, .dw-order-facts, .dw-buyer-details dl, .dw-buyer-heading--photo {
    grid-template-columns:minmax(0,1fr); }
  .dw-footer-ratings { flex-wrap:wrap; padding:10px; gap:7px; }
  .dw-footer-ratings > div { flex:0 0 100%; margin-bottom:3px; }
  .dw-footer-ratings a { flex:1 1 0; padding:7px 6px; gap:5px; }
  .dw-footer-ratings a img { width:22px; height:22px; }
  .dw-footer-ratings strong { font-size:.85rem; }
  .dw-footer-ratings small { font-size:.73rem; }
  .dw-audience-grid, .dw-buyers-grid { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:88%;
    gap:10px; overflow-x:auto; scroll-snap-type:x mandatory; padding:4px 0 10px; }
  :is(.dw-audience-card, .dw-buyer-example) { scroll-snap-align:start; scroll-snap-stop:always; }
  :is(.dw-audience-card, .dw-buyer-example):last-child { scroll-snap-align:end; }
  .dw-buyer-heading { padding:18px; gap:15px; }
  .dw-buyer-photo img { height:245px; }
  .dw-models { table-layout:fixed; font-size:.9rem; overflow-wrap:anywhere; }
  .dw-models :is(th,td) { padding:9px 7px; }
  .dw-models thead th:nth-child(1) { width:34%; }
  .dw-models thead th:nth-child(2) { width:21%; white-space:nowrap; }
  .dw-cart-note { align-items:flex-start; }
}
@media (max-width:350px) {
  .dw-models { font-size:.79rem; }
  .dw-models :is(th,td) { padding:8px 5px; }
}

/* DINART: оптовая цена в таблицах */
.dw-models .dw-model-price { width:16%; text-align:right; font-weight:700; }
.dw-models th.dw-model-price small { display:block; font-weight:inherit; }
.dw-models td.dw-model-price { white-space:nowrap; color:var(--ink); }
@media (max-width:670px) {
  .dw-models thead th:nth-child(1) { width:30%; }
  .dw-models thead th:nth-child(2) { width:20%; white-space:normal; }
  .dw-models .dw-model-price { width:23%; }
}
@media (max-width:520px) {
  .dw-models, .dw-models :is(thead,tbody) { display:block; }
  .dw-models tr { display:flex; flex-wrap:wrap; }
  .dw-models :is(th,td) { display:block; padding:8px; width:auto; }
  .dw-models thead th:nth-child(1),
  .dw-models thead th:nth-child(2),
  .dw-models tbody th,
  .dw-models .dw-model-price { width:auto; }
  .dw-models tr > :nth-child(1) { flex:1 1 0; min-width:0; }
  .dw-models tr > :nth-child(2) { flex:0 0 66px; white-space:nowrap; }
  .dw-models tr > :nth-child(3) { flex:0 0 88px; }
  .dw-models thead th:last-child { position:absolute; width:1px; height:1px;
    padding:0; overflow:hidden; clip-path:inset(50%); }
  .dw-models tbody td:last-child { flex:none; width:100%; box-sizing:border-box; padding-top:0; }
}
