/* =========================================================================
   130.com.ua — new design (test): shared product card + home page (as in the mockup)
   ========================================================================= */
.nd .nd-h2 { margin: 0; font: 800 26px/1.2 var(--nd-font-h); color: var(--nd-text); }
.nd .nd-h3 { margin: 0 0 12px; font: 800 20px/1.25 var(--nd-font-h); }
.nd .nd-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.nd .nd-more { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; font-weight: 600; color: var(--nd-navy); }
.nd .nd-more::after { content: "→"; }

/* ---------- product card (lists) ---------- */
.nd .nd-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.nd .nd-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px; background: #fff; border: 1px solid var(--nd-line); border-radius: var(--nd-r-lg); transition: box-shadow .2s, border-color .2s; min-width: 0; }
.nd .nd-card:hover { border-color: var(--nd-green-sign); box-shadow: 0 16px 28px rgba(16, 34, 58, .14); }
.nd .nd-card__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: var(--nd-r); background: #fff; overflow: hidden; }
.nd .nd-card__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nd .nd-card .nd-badge { position: absolute; left: 22px; top: 22px; }
.nd .nd-card__name { color: var(--nd-text); font-size: 14px; line-height: 1.4; font-weight: 500; min-height: calc(2 * 1.4em); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-decoration: none; }
.nd .nd-card__name:hover { color: var(--nd-navy); text-decoration: underline; }
.nd .nd-rate { display: inline-flex; align-items: center; gap: 4px; min-height: 20px; color: var(--nd-text-2); font-size: 13px; text-decoration: none; }
.nd .nd-rate b { color: var(--nd-text); font-weight: 600; }
.nd .nd-stock { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--nd-font); color: #1a7034; }
.nd .nd-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--nd-green); }
.nd .nd-card__buy { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.nd .nd-price { display: flex; flex-direction: column; min-width: 0; }
.nd .nd-price s { font-size: 13px; color: var(--nd-text-2); }
.nd .nd-price__now { font: 800 21px/1.15 var(--nd-font-h); color: var(--nd-text); white-space: nowrap; }
.nd .nd-price__now--sale { color: var(--nd-red); }
.nd .nd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--nd-r); font: 600 15px var(--nd-font); text-decoration: none !important; cursor: pointer; white-space: nowrap; }
.nd .nd-btn--buy { background: var(--nd-green); color: #fff !important; }
.nd .nd-btn--buy:hover { background: #18692f; }
.nd .nd-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; font: 700 12px var(--nd-font); white-space: nowrap; }
.nd .nd-badge--sale { min-width: 44px; height: 26px; justify-content: center; border-radius: 13px; background: var(--nd-sale); color: #fff; font: 800 14px var(--nd-font-h); }

/* ---------- home ---------- */
.nd .nd-home { display: flex; flex-direction: column; gap: 40px; }

/* top: side menu + hero */
.nd .nd-home__top { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.nd .nd-home__cats { position: relative; z-index: 20; }
.nd .nd-home__cats .nd-menu { display: block; position: static; max-height: none; overflow: visible; background: #fff; border: 1px solid var(--nd-line); border-radius: var(--nd-r-lg); box-shadow: none; }
.nd .nd-home__cats .nd-menu__bar { display: none !important; }
.nd .nd-home__cats .nd-l1 { padding: 8px; border: 0; overflow: visible; }
.nd .nd-home__cats .nd-l1__a { min-height: 40px; }
.nd .nd-home__cats .nd-l2wrap, .nd .nd-home__cats .nd-l3 { display: none; }
.nd .nd-home__cats.is-open .nd-menu { border-radius: var(--nd-r-lg) 0 0 var(--nd-r-lg); }
.nd .nd-home__cats.is-open .nd-l2wrap { display: block; position: absolute; left: 100%; top: 0; bottom: 0; width: 540px; padding: 22px 24px; background: #fff; border: 1px solid var(--nd-line); border-left: 0; box-shadow: 18px 18px 40px rgba(16, 34, 58, .18); overflow: auto; }
.nd .nd-home__cats.is-open .nd-l3:not([hidden]) { display: block; position: absolute; left: calc(100% + 540px); top: 0; bottom: 0; width: 360px; padding: 22px; background: #f7f9fb; border: 1px solid var(--nd-line); border-radius: 0 var(--nd-r-lg) var(--nd-r-lg) 0; box-shadow: 18px 18px 40px rgba(16, 34, 58, .18); overflow: auto; }
.nd .nd-home__hero { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.nd .nd-home__slider { border-radius: 20px; overflow: hidden; background: var(--nd-navy); }
.nd .nd-home__slider .slider { margin: 0 !important; max-width: none !important; }
.nd .nd-home__slider .slider__item { height: auto !important; width: 100% !important; background: none !important; }
.nd .nd-home__slider .slider__item img { width: 100%; height: auto; display: block; aspect-ratio: 1200 / 630; object-fit: cover; }
.nd .nd-home__slider .slider__control { width: 44px !important; height: 44px !important; border-radius: 50%; background-color: rgba(255,255,255,.9) !important; }
.nd .nd-home__slider .slider__indicators li { width: 8px !important; height: 8px !important; min-height: 0 !important; padding: 0 !important; margin: 0 3px !important; border-radius: 4px; background-clip: content-box !important; }
.nd .nd-home__slider .slider__indicators li.active { width: 24px !important; background: none !important; background-color: #fff !important; }
.nd .nd-trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nd .nd-trust li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--nd-line); border-radius: 14px; font-size: 14px; line-height: 1.4; }
.nd .nd-trust b { display: block; }
.nd .nd-trust .nd-ico { width: 40px; height: 40px; border-radius: var(--nd-r-sm); }

/* popular categories: photo tiles */
.nd .nd-ptiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.nd .nd-ptiles a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 14px; box-sizing: border-box; background: #fff; border: 1px solid var(--nd-line); border-radius: var(--nd-r-lg); color: var(--nd-text); text-decoration: none; }
.nd .nd-ptiles a:hover { border-color: var(--nd-green-sign); box-shadow: 0 12px 24px rgba(16, 34, 58, .12); }
.nd .nd-ptile__img { display: flex; align-items: center; justify-content: center; height: 120px; margin-bottom: 4px; border-radius: var(--nd-r); background: #fff; overflow: hidden; }
.nd .nd-ptile__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.nd .nd-ptiles b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.nd .nd-ptiles span:last-child { font-size: 13px; color: var(--nd-text-2); }

/* hits: tabs built from the admin product lists */
.nd .nd-tabs { display: flex; gap: 6px; margin: 0 0 16px; overflow-x: auto; scrollbar-width: none; }
.nd .nd-tab { flex: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--nd-line); border-radius: var(--nd-r-sm); background: #fff; color: var(--nd-text); font: 500 14px var(--nd-font); }
.nd .nd-tab::first-letter { text-transform: uppercase; }
.nd .nd-tab[aria-selected="true"] { background: var(--nd-navy); border-color: var(--nd-navy); color: #fff; font-weight: 600; }
.nd .nd-home__lists .mp_subcat_pdr_block { margin: 0 0 32px; padding: 0; background: none; border: 0; }
.nd .nd-home__lists.is-tabs .mp_subcat_pdr_block { margin: 0; }
.nd .nd-home__lists .mp_subcat_title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 0; background: none; }
.nd .nd-home__lists .mp_subcat_title h2 { margin: 0; padding: 0 !important; font: 800 22px/1.2 var(--nd-font-h) !important; color: var(--nd-text) !important; background: none !important; border: 0 !important; text-align: left !important; width: auto !important; }
.nd .nd-home__lists .mp_subcat_title h2::first-letter { text-transform: uppercase; }
.nd .nd-home__lists.is-tabs .mp_subcat_title { justify-content: flex-end; margin: 0 0 12px; }
.nd .nd-home__lists.is-tabs .mp_subcat_title h2 { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip: rect(0 0 0 0); }
.nd .nd-home__lists .mp_subcat_btn { display: inline-block !important; position: static !important; width: auto !important; height: auto !important; padding: 0 !important; background: none !important; border: 0 !important; color: var(--nd-navy) !important; font: 600 15px var(--nd-font) !important; white-space: nowrap; text-decoration: none; }
.nd .nd-home__lists .mp_subcat_btn::after { content: " →"; }
.nd .nd-home__lists .nd-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* brands */
.nd .nd-home h2.mp-title { color: var(--nd-text) !important; font: 800 26px/1.2 var(--nd-font-h) !important; text-align: left !important; margin: 0 0 16px !important; padding: 0 !important; background: none !important; border: 0 !important; text-transform: none !important; }
.nd .nd-home__brands .mp_brands { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0 !important; }
.nd .nd-home__brands .brand_item { margin: 0; padding: 0; border: 0; background: none; width: auto !important; height: auto !important; box-shadow: none !important; }
.nd .nd-home__brands .brand_item a { display: flex; align-items: center; justify-content: center; height: 72px; padding: 10px 14px; box-sizing: border-box; background: #fff; border: 1px solid var(--nd-line); border-radius: 14px; width: auto !important; box-shadow: none !important; }
.nd .nd-home__brands .brand_item a:hover { border-color: var(--nd-green-sign); }
.nd .nd-home__brands .brand_item img { width: auto !important; height: auto !important; max-width: 100% !important; max-height: 44px !important; border: 0 !important; box-shadow: none !important; background: none !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.nd .nd-home__brands .brand_item a:hover img { filter: none; opacity: 1; }

/* about + articles (bottom white panel) */
.nd .nd-home__about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; padding: 32px; background: #fff; border: 1px solid var(--nd-line); border-radius: 20px; }
.nd .nd-home__intro { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.nd .nd-home__h1 { margin: 0; font: 800 26px/1.25 var(--nd-font-h); color: var(--nd-text); }
.nd .nd-home__why h2.mp-title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nd .nd-home__why .mp-footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 0; padding: 0; background: none; }
.nd .nd-home__why .mp-footer-block { display: contents; }
.nd .nd-home__why .mp-footer-block > div { display: flex !important; flex-direction: row !important; align-items: center; gap: 12px; margin: 0; padding: 0; width: auto !important; height: auto !important; background: none; border: 0; text-align: left; }
.nd .nd-home__why .mp-footer-block > div > a { flex: none; }
.nd .nd-home__why .mp-footer-block img { width: 36px; height: 36px; object-fit: contain; }
.nd .nd-home__why .mp-footer-block p { margin: 0; font-size: 15px; color: #3b4654; }
.nd .nd-home__why .mp-footer-block p a { color: #3b4654; }
.nd .nd-home__why .txt-img span { flex: none; width: 36px; height: 36px; border-radius: var(--nd-r-sm); background: var(--nd-green-sign); color: #fff; font: 800 17px var(--nd-font-h); display: flex; align-items: center; justify-content: center; }
.nd .nd-home__articles { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.nd .nd-home__articles h2.mp-title { font-size: 20px !important; margin-bottom: 12px !important; }
.nd .nd-home__news .mp-news-block, .nd .nd-home__useful .related-materials-new { display: flex !important; flex-direction: column; flex-wrap: nowrap !important; gap: 12px; margin: 0; padding: 0; max-width: none !important; }
.nd .nd-home__useful .articles { margin: 0; padding: 0; max-width: none !important; background: none; border: 0; }
.nd .nd-home__news .mp-news-item, .nd .nd-home__useful .related-materials-item { display: grid !important; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: center; margin: 0; width: auto !important; max-width: none !important; height: auto !important; background: none; border: 0; box-shadow: none; cursor: pointer; }
.nd .nd-home__news .mp-news-top { display: contents; }
.nd .nd-home__news .mp-news-item img, .nd .nd-home__useful .related-materials-img img { width: 88px !important; height: 60px !important; aspect-ratio: auto !important; object-fit: cover; border-radius: var(--nd-r-sm); display: block; }
.nd .nd-home__news .mp-news-item h4 { grid-column: 2; margin: 0; padding: 0; font: 600 15px/1.35 var(--nd-font); }
.nd .nd-home__news .mp-news-item h4 a, .nd .nd-home__useful .related-title { color: var(--nd-navy); font: 600 15px/1.35 var(--nd-font); }
.nd .nd-home__news .mp-news-item p, .nd .nd-home__useful .related-materials-title p, .nd .nd-home__useful .related-materials-btn { display: none !important; }
.nd .nd-home__useful .related-materials-img { width: 88px !important; height: auto; margin: 0; }
.nd .nd-home__useful .related-materials-text { padding: 0; width: auto !important; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .nd .nd-home__cats.is-open .nd-l2wrap { width: 460px; }
  .nd .nd-home__cats.is-open .nd-l3:not([hidden]) { left: calc(100% + 460px); width: 320px; }
  .nd .nd-home__brands .mp_brands { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .nd .nd-home { gap: 28px; }
  .nd .nd-home__top { grid-template-columns: 1fr; }
  .nd .nd-home__cats { order: 2; z-index: auto; }
  .nd .nd-home__cats .nd-menu { display: block !important; height: auto !important; background: none; border: 0; }
  .nd .nd-home__cats .nd-l1 { padding: 0 !important; flex: none !important; }
  .nd .nd-home__cats .nd-l1 ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .nd .nd-home__cats .nd-l1__a { flex-direction: column; justify-content: flex-start; text-align: center; min-height: 96px; padding: 10px 8px; background: #fff; border: 1px solid var(--nd-line); border-radius: var(--nd-r); font-size: 13px; overflow-wrap: break-word; hyphens: auto; }
  .nd .nd-home__cats .nd-l1__a .nd-chev { display: none; }
  .nd .nd-home__cats .nd-l1__n { flex: none; }
  .nd .nd-home__cats .nd-l2wrap, .nd .nd-home__cats .nd-l3 { display: none !important; }
  .nd .nd-trust { grid-template-columns: 1fr; gap: 8px; }
  .nd .nd-trust li { padding: 8px 12px; font-size: 13px; }
  .nd .nd-trust .nd-ico { width: 32px; height: 32px; }
  .nd .nd-home__slider { border-radius: 14px; }
  .nd .nd-h2, .nd .nd-home h2.mp-title { font-size: 20px !important; }
  .nd .nd-ptiles { display: flex; overflow-x: auto; gap: 10px; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; }
  .nd .nd-ptiles li { flex: none; width: 150px; scroll-snap-align: start; }
  .nd .nd-ptile__img { height: 90px; }
  .nd .nd-tabs { margin: 0 -16px 14px; padding: 0 16px; }
  .nd .nd-home__brands .mp_brands { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .nd .nd-home__brands .brand_item a { height: 60px; }
  .nd .nd-home__about { grid-template-columns: 1fr; padding: 18px; gap: 24px; }
  .nd .nd-home__h1 { font-size: 21px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .nd .nd-home__lists .nd-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nd .nd-home__cats .nd-l1 ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .nd .nd-home__lists .nd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nd .nd-home__why .mp-footer { grid-template-columns: 1fr; }
  .nd .nd-card { padding: 10px; gap: 6px; border-radius: 14px; }
  .nd .nd-card__name { font-size: 13px; min-height: calc(3 * 1.4em); -webkit-line-clamp: 3; }
  .nd .nd-card .nd-badge { left: 16px; top: 16px; }
  .nd .nd-card__buy { flex-direction: column; align-items: stretch; }
  .nd .nd-price__now { font-size: 18px; }
  .nd .nd-home__brands .mp_brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* brand logos are 150×150 squares with white space around the mark */
.nd .nd-home__brands .brand_item a { height: 88px; padding: 4px 10px; }
.nd .nd-home__brands .brand_item img { max-height: 80px !important; }
/* compact article rows: hide "read more" rows and excerpts */
.nd .nd-home__news .mp-news-item > :not(.mp-news-top) { display: none !important; }
@media (max-width: 1023px) { .nd .nd-home__brands .brand_item a { height: 72px; } .nd .nd-home__brands .brand_item img { max-height: 64px !important; } }
.nd .nd-home__useful .related-materials-title, .nd .nd-home__useful .related-materials-title a { margin: 0 !important; padding: 0 !important; }
.nd .nd-home__useful .related-materials-text { min-height: 0 !important; height: auto !important; }
.nd .nd-ptiles, .nd .nd-tabs { scrollbar-width: none; }
.nd .nd-ptiles::-webkit-scrollbar, .nd .nd-tabs::-webkit-scrollbar { display: none; height: 0; }
/* hits: one row, horizontal scroll with arrows */
.nd .nd-home__lists .mp_subcat_pdr_block { position: relative; }
.nd .nd-home__lists .nd-cards { display: grid !important; grid-auto-flow: column; grid-template-columns: none !important; grid-auto-columns: calc((100% - 3 * 16px) / 4); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 2px; }
.nd .nd-home__lists .nd-cards::-webkit-scrollbar { display: none; height: 0; }
.nd .nd-home__lists .nd-card { scroll-snap-align: start; }
.nd .nd-row-nav { position: absolute; top: calc(50% + 14px); z-index: 2; width: 44px; height: 44px; border: 1px solid var(--nd-line); border-radius: 50%; background: #fff; color: var(--nd-text); box-shadow: 0 6px 16px rgba(16, 34, 58, .16); display: flex; align-items: center; justify-content: center; }
.nd .nd-row-nav[disabled] { opacity: 0; pointer-events: none; }
.nd .nd-row-nav--prev { left: -18px; }
.nd .nd-row-nav--next { right: -18px; }
@media (max-width: 1023px) {
  .nd .nd-home__lists .nd-cards { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
  .nd .nd-row-nav { display: none; }
}
@media (max-width: 639px) {
  .nd .nd-home__lists .nd-cards { grid-auto-columns: 46%; gap: 10px; margin: 0 -16px; padding: 0 16px 2px; scroll-padding: 0 16px; }
}
/* popular categories: two equal rows (the plugin outputs an even number of tiles) */
@media (min-width: 1024px) { .nd .nd-ptiles { grid-template-columns: repeat(var(--nd-cols, 6), minmax(0, 1fr)); } }
/* ---- review fixes (home v2) ---- */
.nd .nd-home__cats .nd-l2wrap, .nd .nd-home__cats .nd-l3 { box-sizing: border-box; }
.nd .nd-home__cats.is-open .nd-l2wrap { bottom: auto; min-height: 100%; }
.nd .nd-home__cats.is-open .nd-l3:not([hidden]) { bottom: auto; min-height: 100%; }
@media (max-width: 1199px) {
  .nd .nd-home__cats.is-open .nd-l2wrap { width: min(540px, calc(100vw - 372px)); }
  .nd .nd-home__cats.is-open .nd-l3 { display: none !important; }
}
.nd .nd-home__slider .slider__indicators li.active { background: #fff content-box !important; }
@media (min-width: 1024px) { .nd .nd-tabs { flex-wrap: wrap; overflow: visible; } }
@media (max-width: 1023px) {
  .nd .nd-home__cats > h2.nd-vh { position: static !important; width: auto !important; height: auto !important; clip: auto !important; overflow: visible !important; margin: 0 0 12px; font: 800 20px/1.2 var(--nd-font-h); color: var(--nd-text); }
  .nd .nd-home__cats .nd-l1__a { min-height: 88px; }
  .nd .nd-home__cats .nd-l1__n { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 639px) {
  .nd .nd-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .nd .nd-trust li { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px; font-size: 12px; line-height: 1.3; }
  .nd .nd-trust .nd-ico { display: none; }
}
/* bottom panel v3: H1 + "why 130" across the full width, two article lists side by side */
.nd .nd-home__about { grid-template-columns: 1fr; gap: 28px; }
.nd .nd-home__intro { gap: 18px; }
.nd .nd-home__intro .nd-home__why { width: 100%; }
.nd .nd-home__why .mp-footer { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 24px; }
.nd .nd-home__about .nd-more { margin-top: -4px; }
.nd .nd-home__articles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding-top: 24px; border-top: 1px solid var(--nd-line); }
.nd .nd-home__news .mp-news-block, .nd .nd-home__useful .related-materials-new { gap: 10px; }
.nd .nd-home__news .mp-news-item, .nd .nd-home__useful .related-materials-item { min-height: 0 !important; padding: 0 !important; }
.nd .nd-home__useful .related-materials-item > * { margin: 0 !important; }
.nd .nd-home__useful .related-materials-img { height: 60px !important; overflow: hidden; }
@media (max-width: 1180px) { .nd .nd-home__why .mp-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .nd .nd-home__articles { grid-template-columns: 1fr; gap: 22px; } }
@media (max-width: 639px) { .nd .nd-home__why .mp-footer { grid-template-columns: 1fr; } }
/* popular categories inside the hero column: compact tiles, picture left */
.nd .nd-home__hero .nd-home__pop { margin-top: 6px; }
.nd .nd-home__hero .nd-home__pop .nd-sec-head { margin-bottom: 12px; }
.nd .nd-home__hero .nd-home__pop .nd-h2 { font-size: 22px; }
@media (min-width: 1024px) {
  .nd .nd-home__hero .nd-ptiles { gap: 10px; }
  .nd .nd-home__hero .nd-ptiles a { flex-direction: row; align-items: center; gap: 10px; padding: 10px; flex-wrap: wrap; align-content: center; min-height: 92px; }
  .nd .nd-home__hero .nd-ptile__img { flex: none; width: 64px; height: 64px; margin: 0; }
  .nd .nd-home__hero .nd-ptiles a > b, .nd .nd-home__hero .nd-ptiles a > span:last-child { flex: 1 1 calc(100% - 74px); }
  .nd .nd-home__hero .nd-ptiles a { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px; }
  .nd .nd-home__hero .nd-ptile__img { grid-row: 1 / span 2; }
  .nd .nd-home__hero .nd-ptiles b { font-size: 14px; align-self: end; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .nd .nd-home__hero .nd-ptiles span:last-child { align-self: start; font-size: 12px; }
  .nd .nd-home__cats .nd-l1__a { min-height: 38px; padding-top: 4px; padding-bottom: 4px; }
}
/* "why 130": one even row, icon above the text */
.nd .nd-home__why .mp-footer { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 16px !important; }
.nd .nd-home__why .mp-footer-block > div { flex: 1 1 0 !important; min-width: 140px; flex-direction: column !important; align-items: center !important; text-align: center !important; gap: 10px !important; }
.nd .nd-home__why .mp-footer-block > div p { font-size: 14px; line-height: 1.35; }
.nd .nd-home__why .mp-footer-block img, .nd .nd-home__why .txt-img span { width: 44px !important; height: 44px !important; }
@media (max-width: 1180px) { .nd .nd-home__why .mp-footer-block > div { flex: 0 1 calc(25% - 12px) !important; } }
@media (max-width: 639px) { .nd .nd-home__why .mp-footer-block > div { flex: 0 1 calc(50% - 8px) !important; min-width: 0; } }
/* side menu as tall as the right column; items spread evenly */
@media (min-width: 1024px) {
  .nd .nd-home__top { align-items: stretch; }
  .nd .nd-home__cats .nd-menu { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; }
  .nd .nd-home__cats .nd-l1 { flex: 1; display: flex; }
  .nd .nd-home__cats .nd-l1 > ul { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
}
.nd .nd-home__why .mp-footer { align-items: flex-start !important; }
.nd .nd-home__why .mp-footer-block > div { justify-content: flex-start !important; padding-top: 0 !important; margin-top: 0 !important; }
.nd .nd-home__why .txt-img span { margin: 0 !important; }
.nd .nd-home__why .mp-footer-block > div { align-self: flex-start !important; }
/* phones/tablets: no section tiles on the home page (the catalogue is in the menu); trust items with icons */
@media (max-width: 1023px) { .nd .nd-home__cats { display: none !important; } }
@media (max-width: 639px) {
  .nd .nd-trust .nd-ico { display: flex !important; width: 30px; height: 30px; border-radius: 8px; }
  .nd .nd-trust .nd-ico svg { width: 18px; height: 18px; }
  .nd .nd-trust li { gap: 6px; padding: 10px 8px; }
  .nd .nd-trust b { font-size: 12px; }
}
/* "why 130" on phones: two compact columns, icon left of the text */
@media (max-width: 639px) {
  .nd .nd-home .nd-home__why .mp-footer { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px 12px !important; }
  .nd .nd-home .nd-home__why .mp-footer-block > div { flex: none !important; min-width: 0 !important; width: auto !important; flex-direction: row !important; align-items: center !important; text-align: left !important; gap: 8px !important; }
  .nd .nd-home .nd-home__why .mp-footer-block img, .nd .nd-home .nd-home__why .txt-img span { width: 30px !important; height: 30px !important; font-size: 14px !important; }
  .nd .nd-home .nd-home__why .mp-footer-block > div p { font-size: 13px; line-height: 1.3; }
}

/* wide screens (site 1600px since 2026-11-18): the slider keeps a sensible height — the three service cards go to its right,
   popular categories under both; the catalogue list on the left is more compact */
@media (min-width: 1180px) {
  .nd .nd-home__hero { display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 17vw, 280px); gap: 16px; align-items: stretch; }
  .nd .nd-home__slider { grid-column: 1; align-self: start; }
  .nd .nd-home__hero > .nd-trust { grid-column: 2; grid-row: 1; grid-template-columns: 1fr; grid-auto-rows: 1fr; gap: 12px; }
  .nd .nd-home__hero > .nd-trust li { align-items: center; }
  .nd .nd-home__pop { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .nd .nd-home__cats .nd-l1 { padding: 6px; }
  .nd .nd-home__cats .nd-l1__a { min-height: 36px; padding: 4px 8px; font-size: 14px; line-height: 1.25; }
  .nd .nd-home__cats .nd-l1__a .nd-ico { width: 30px; height: 30px; }
}
/* uniform pass (2026-11-18): "hits" fill the wide row like the category grid; phone slider without arrows over the text */
@media (min-width: 1024px) { .nd .nd-home__lists .nd-cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } }
@media (max-width: 639px) { .nd .nd-home__slider .slider__control { display: none !important; } }
/* owner 2026-11-18: home "hits" cards the same size as in the catalogue (they were ~315px wide, 4 in a row) */
@media (min-width: 1024px) {
  .nd .nd-home__lists ul.nd-cards { flex: 1 1 auto; width: 100%; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important; }
}
@media (min-width: 1440px) {
  .nd .nd-home__lists ul.nd-cards { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
}
/* 1024–1439: the hero column is narrow — picture above the name, the name gets the whole tile (names were cut to 57px;
   audit 2026-11-18) */
@media (min-width: 1024px) and (max-width: 1439px) {
  .nd .nd-home__hero .nd-ptiles a { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; justify-items: center; text-align: center; row-gap: 6px; }
  .nd .nd-home__hero .nd-ptile__img { grid-row: auto; width: 48px; height: 48px; }
  .nd .nd-home__hero .nd-ptiles b { align-self: start; font-size: 13px; overflow-wrap: anywhere; hyphens: auto; -webkit-line-clamp: 3; }
}
/* ---- 02.12: home catalogue flyout stays inside the menu frame ----
   L2 and L3 panels take exactly the height of the category list; a long
   column scrolls inside its panel (thin scrollbar + top shadow), and
   the "all goods" button stays pinned at the bottom of L3. */
@media (min-width: 1024px) {
  .nd .nd-home__cats.is-open .nd-l2wrap,
  .nd .nd-home__cats.is-open .nd-l3:not([hidden]) { top: 0; bottom: 0; min-height: 0; max-height: none; height: auto; overflow-y: auto; scrollbar-width: thin; }
  .nd .nd-home__cats.is-open .nd-l3:not([hidden]) {
    padding-bottom: 0;
    background:
      linear-gradient(#f7f9fb 30%, rgba(247,249,251,0)) center top / 100% 36px no-repeat local,
      radial-gradient(farthest-side at 50% 0, rgba(16,34,58,.16), rgba(16,34,58,0)) center top / 100% 10px no-repeat scroll,
      #f7f9fb;
  }
  .nd .nd-home__cats.is-open .nd-l3__more { position: sticky; bottom: 14px; z-index: 1; margin: 14px 0; box-shadow: 0 0 0 14px #f7f9fb; }
}
/* home page: buying guides and articles (2026-12-03), plugin function.nd_home_reads.php */
.nd .nd-reads .nd-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: nowrap; }
.nd .nd-reads .nd-more { white-space: nowrap; }
.nd .nd-reads__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 14px 0 0; padding: 0; list-style: none; }
.nd .nd-reads__list li { display: flex; margin: 0; padding: 0; }
.nd .nd-reads__a { display: flex; flex-direction: column; width: 100%; overflow: hidden; background: #fff; border: 1px solid var(--nd-line); border-radius: var(--nd-r-lg); color: var(--nd-text); text-decoration: none; }
.nd .nd-reads__a img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #eef2f5; }
.nd .nd-reads__a span { padding: 14px 16px 18px; font: 600 16px/1.35 var(--nd-font); text-wrap: pretty; }
.nd .nd-reads__a:hover span { color: var(--nd-navy); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1023px) {
  .nd .nd-reads__list { display: flex; overflow-x: auto; scroll-snap-type: x proximity; gap: 12px; margin-right: calc(-1 * var(--nd-gut, 16px)); padding: 0 16px 6px 0; }
  .nd .nd-reads__list li { flex: 0 0 min(260px, 70vw); scroll-snap-align: start; }
  .nd .nd-reads__a span { font-size: 15px; padding: 12px 14px 14px; }
}
