:root {
  --ink: #15233b;
  --muted: #637087;
  --blue: #1769e0;
  --blue-dark: #0e4fac;
  --blue-soft: #eaf3ff;
  --orange: #f58a2c;
  --green: #23875d;
  --line: #dfe5ec;
  --surface: #ffffff;
  --bg: #f4f7fa;
  --shadow: 0 12px 34px rgba(21, 35, 59, .09);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 15px/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea { -webkit-appearance: none; appearance: none; }
input[type="radio"], input[type="checkbox"] { -webkit-appearance: auto; appearance: auto; }
.container { width: calc(100% - 32px); max-width: 1180px; margin-left: auto; margin-right: auto; }
.topline { background: #0e1f38; color: #dbe7f8; font-size: 13px; }
.topline .container { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topline-lead a:hover, .topline-lead a:focus-visible { text-decoration: underline; }
.top-links { display: flex; gap: 20px; }
.header { background: var(--surface); border-bottom: 1px solid var(--line); position: -webkit-sticky; position: sticky; top: 0; z-index: 10; }
.header-main { min-height: 82px; display: grid; grid-template-columns: 260px 1fr auto; align-items: center; gap: 24px; }
.header-main > * { min-width: 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { display: block; width: 100%; max-width: 245px; height: auto; }
.brand-mark { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 25px; background: linear-gradient(145deg, var(--blue), #68a5ff); box-shadow: 0 8px 20px rgba(23,105,224,.25); }
.brand strong { display: block; font-size: 21px; letter-spacing: -.4px; }
.brand small { color: var(--muted); display: block; margin-top: 1px; }
.search { height: 48px; display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 16px; }
.search button { align-self: stretch; border: 0; background: var(--blue); color: #fff; padding: 0 24px; cursor: pointer; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { min-width: 46px; height: 46px; padding: 0 13px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.icon-btn.primary { background: var(--blue-soft); color: var(--blue-dark); border-color: #cfe2fb; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 20px; color: #fff; background: var(--orange); font-size: 11px; font-weight: 800; }
.nav { background: var(--surface); border-bottom: 1px solid var(--line); }
.nav .container { min-height: 50px; display: flex; align-items: center; gap: 28px; }
.nav a { font-weight: 650; white-space: nowrap; }
.nav a:hover { color: var(--blue); }
.catalog-link { align-self: stretch; display: flex; align-items: center; gap: 10px; background: var(--blue); color: #fff !important; padding: 0 22px; margin-right: 8px; }
.burger { display: inline-block; width: 17px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.burger::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; margin: 22px 0 16px; }
.breadcrumbs span::before { content: "/"; margin-right: 8px; color: #a4afbd; }
h1 { font-size: 34px; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -.8px; margin: 0 0 22px; }
h2 { font-size: 26px; letter-spacing: -.4px; margin: 0 0 18px; }
h3 { margin: 0 0 8px; font-size: 17px; }
.hero { margin-top: 26px; display: grid; grid-template-columns: 1.65fr 1fr; gap: 18px; }
.hero-main { min-height: 338px; padding: 42px; border-radius: 22px; color: #fff; background: linear-gradient(115deg,#0e4fac 0%,#1769e0 58%,#6aabff 100%); position: relative; overflow: hidden; box-shadow: var(--shadow); }
.hero-main::after { content: ""; width: 330px; height: 330px; position: absolute; right: -80px; top: -80px; border-radius: 50%; border: 62px solid rgba(255,255,255,.12); }
.eyebrow { display: inline-flex; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; background: rgba(255,255,255,.16); }
.hero h1 { max-width: 600px; font-size: 44px; font-size: clamp(35px, 4vw, 52px); margin: 20px 0 14px; }
.hero p { max-width: 540px; color: #e6f0ff; font-size: 17px; }
.hero-actions { margin-top: 28px; display: flex; gap: 12px; }
.btn { border: 0; border-radius: 11px; padding: 12px 18px; font-weight: 750; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-light { background: #fff; color: var(--blue-dark); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-outline { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.hero-side { display: grid; gap: 18px; }
.promo { padding: 26px; border-radius: 20px; background: #fff; min-height: 160px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.promo.orange { background: #fff3e6; }
.promo.blue { background: #eaf3ff; }
.promo strong { display: block; font-size: 22px; max-width: 260px; }
.promo p { color: var(--muted); margin: 8px 0 0; }
.promo .art { position: absolute; right: 22px; bottom: 13px; font-size: 62px; opacity: .22; }
.section { margin: 42px auto; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.link { color: var(--blue); font-weight: 700; }
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.category-card { min-height: 138px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: .2s ease; }
.category-card:hover { border-color: #a9caef; transform: translateY(-2px); box-shadow: var(--shadow); }
.category-card .cat-icon { font-size: 30px; margin-bottom: 18px; }
.category-card strong { display: block; }
.category-card small { display: block; color: var(--muted); margin-top: 5px; }
.category-image { width: 100%; height: 88px; object-fit: contain; display: block; margin-bottom: 14px; }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; min-width: 0; }
.product-image { position: relative; display: grid; place-items: center; height: 190px; border-radius: 12px; background: #f7f9fb; overflow: hidden; }
.product-image img { max-width: 88%; max-height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.label { position: absolute; left: 10px; top: 10px; padding: 5px 8px; border-radius: 7px; font-size: 11px; font-weight: 800; background: #dff4e9; color: var(--green); }
.product-name { margin: 14px 0 10px; line-height: 1.36; min-height: 61px; }
.sku { color: var(--muted); font-size: 12px; }
.stock { color: var(--green); font-size: 13px; font-weight: 650; margin-top: 9px; }
.product-bottom { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-size: 21px; font-weight: 850; letter-spacing: -.3px; }
.buy { width: 42px; height: 40px; border: 0; border-radius: 10px; color: #fff; background: var(--blue); cursor: pointer; }
.product-card > form { margin-top: 14px; }
.three-prices { display: grid; grid-template-columns: repeat(3,minmax(86px,1fr)); gap: 8px; margin-top: 12px; }
.three-prices span { padding: 8px 10px; border-radius: 9px; background: #f5f7fa; }
.three-prices small { display: block; color: var(--muted); font-size: 11px; }
.three-prices b { display: block; margin-top: 2px; white-space: nowrap; }
.three-prices.large { margin: 22px 0 7px; }
.three-prices.large span { padding: 13px; }
.three-prices.large b { font-size: 20px; }
.three-prices .client-price { color: #0e4fac; background: var(--blue-soft); border: 1px solid #9fc7f4; box-shadow: inset 0 0 0 1px rgba(23,105,224,.08); }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.benefit { padding: 24px; display: flex; gap: 14px; align-items: flex-start; background: #fff; }
.benefit b { display: block; }
.benefit small { color: var(--muted); }
.benefit-icon { font-size: 25px; }
.footer { margin-top: 56px; padding: 42px 0; background: #0e1f38; color: #dbe7f8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 36px; }
.footer h3 { color: #fff; }
.footer a { display: block; margin: 7px 0; color: #bccbe0; }
.footer p { color: #bccbe0; }
.layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
.sidebar, .panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.sidebar { padding: 20px; position: -webkit-sticky; position: sticky; top: 156px; }
.filter { padding: 18px 0; border-bottom: 1px solid var(--line); }
.filter:first-child { padding-top: 0; }
.filter:last-child { border: 0; padding-bottom: 0; }
.check { display: flex; align-items: center; gap: 9px; margin: 9px 0; color: #3c485c; }
.check input { accent-color: var(--blue); }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range input { width: 100%; padding: 9px; border: 1px solid var(--line); border-radius: 8px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.toolbar .muted { color: var(--muted); }
.select { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 10px 12px; }
.category-products { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.catalog-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.catalog-row { display: grid; grid-template-columns: 105px minmax(220px,1fr) 330px 160px; gap: 18px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.catalog-row:last-child { border-bottom: 0; }
.row-image { height: 92px; display: grid; place-items: center; border-radius: 10px; background: #f7f9fb; }
.row-image img { max-width: 88px; max-height: 82px; object-fit: contain; mix-blend-mode: multiply; }
.row-main { display: grid; gap: 6px; }
.row-name { font-weight: 720; line-height: 1.35; }
.row-name:hover { color: var(--blue); }
.row-buy { display: grid; grid-template-columns: 58px 1fr; gap: 8px; }
.bulk-qty { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.bulk-submit { position: -webkit-sticky; position: sticky; bottom: 12px; display: flex; justify-content: flex-end; padding: 16px; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.view-switch { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.view-switch a { padding: 9px 13px; font-weight: 650; }
.view-switch a.active { background: var(--blue); color: #fff; }
.subcategory-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.subcategory-links a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.subcategory-links a:hover,.subcategory-links a.active { border-color: var(--blue); color: var(--blue); }
.category-choice { display: block; padding: 8px 0; color: #3c485c; border-bottom: 1px solid #edf0f4; }
.category-choice:last-child { border-bottom: 0; }
.category-choice:hover,.category-choice.active { color: var(--blue); }
.catalog-home { padding-bottom: 30px; }
.catalog-home-head { display: grid; grid-template-columns: 1fr minmax(360px,540px); gap: 28px; align-items: end; margin-bottom: 24px; }
.catalog-home-head h1 { margin-bottom: 7px; }
.catalog-home-head p { margin: 0; color: var(--muted); }
.catalog-home-search { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.catalog-map { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.catalog-map-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; min-width: 0; }
.catalog-map-title { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; margin-bottom: 15px; }
.catalog-map-title img { width: 88px; height: 72px; object-fit: contain; }
.catalog-map-title strong { display: block; font-size: 20px; line-height: 1.2; }
.catalog-map-title small { display: block; color: var(--blue); margin-top: 5px; }
.catalog-map-links { display: flex; flex-wrap: wrap; gap: 7px; }
.catalog-map-links a,.catalog-choices a { padding: 7px 10px; border-radius: 8px; background: #f1f5f9; color: #3c485c; font-size: 13px; }
.catalog-map-links a:hover,.catalog-choices a:hover,.catalog-choices a.active { background: var(--blue-soft); color: var(--blue-dark); }
.catalog-map-links .more { color: var(--blue); font-weight: 700; }
.catalog-choices { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 18px; }
.catalog-controls { display: grid; grid-template-columns: minmax(260px,1fr) auto auto; gap: 14px; align-items: center; padding: 14px; margin-bottom: 16px; }
.home-specials { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.home-lines { overflow: hidden; }
.home-product-line { display: flex; justify-content: space-between; gap: 20px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.home-product-line:last-child { border-bottom: 0; }
.home-product-line > span { min-width: 0; }
.home-product-line small { display: block; color: var(--green); margin-top: 3px; }
.home-product-line b { white-space: nowrap; }
.map-box { min-height: 400px; margin-top: 18px; border-radius: 14px; overflow: hidden; background: #eef2f6; }
.schedule-content { padding: 20px 24px; }
.schedule-content > :first-child { margin-top: 0; }
.schedule-content > :last-child { margin-bottom: 0; }
.product-detail { display: grid; grid-template-columns: 1fr 1.08fr; gap: 40px; padding: 30px; }
.gallery-main { height: 455px; display: grid; place-items: center; background: #f7f9fb; border-radius: 14px; }
.gallery-main img { max-width: 82%; max-height: 82%; object-fit: contain; mix-blend-mode: multiply; }
.detail-meta { color: var(--muted); font-size: 13px; display: flex; gap: 16px; }
.detail-price { margin: 25px 0 4px; font-size: 34px; font-weight: 900; }
.detail-note { color: var(--muted); }
.detail-buy { display: grid; grid-template-columns: 110px 1fr; gap: 10px; margin: 22px 0; }
.qty { border: 1px solid var(--line); border-radius: 11px; padding: 12px; width: 100%; }
.delivery-box { margin-top: 20px; padding: 18px; background: var(--blue-soft); border-radius: 12px; display: grid; gap: 10px; }
.tabs { margin-top: 20px; }
.tab-head { display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.tab-head b { padding: 15px 0; border-bottom: 3px solid var(--blue); }
.spec { width: 100%; border-collapse: collapse; margin-top: 12px; }
.spec td { padding: 11px 6px; border-bottom: 1px solid var(--line); }
.spec td:first-child { color: var(--muted); width: 45%; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart-list { overflow: hidden; }
.cart-row { padding: 18px; display: grid; grid-template-columns: 92px 1fr 110px 110px 32px; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border: 0; }
.cart-thumb { height: 82px; display: grid; place-items: center; border-radius: 10px; background: #f7f9fb; }
.cart-thumb img { max-width: 74px; max-height: 70px; mix-blend-mode: multiply; }
.summary { padding: 22px; position: -webkit-sticky; position: sticky; top: 156px; }
.summary-line { display: flex; justify-content: space-between; gap: 20px; margin: 12px 0; }
.summary-line.total { border-top: 1px solid var(--line); padding-top: 17px; font-size: 21px; font-weight: 850; }
.summary .btn { width: 100%; margin-top: 12px; }
.notice { padding: 14px 16px; border-radius: 11px; background: #fff5df; color: #765014; margin: 18px 0; }
.mobile-menu { display: none; }
@media (max-width: 980px) {
  .header-main { grid-template-columns: 210px 1fr auto; gap: 14px; }
  .icon-btn .action-label { display: none; }
  .nav .container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .category-products { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .catalog-row { grid-template-columns: 90px 1fr; }
  .catalog-row .three-prices,.catalog-row .row-buy,.catalog-row .bulk-qty { grid-column: 2; }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 22px); max-width: 1180px; }
  .topline { display: none; }
  .header-main { min-height: 68px; grid-template-columns: 1fr auto; }
  .brand-mark { width: 42px; height: 42px; font-size: 21px; }
  .brand strong { font-size: 18px; }
  .brand small { display: none; }
  .brand-logo { max-width: 220px; }
  .header-main > .search { grid-column: 1 / -1; grid-row: 2; margin-bottom: 10px; height: 43px; }
  .search button { padding: 0 16px; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; margin-top: 14px; }
  .hero-main { padding: 27px 23px; min-height: 320px; }
  .hero-side { grid-template-columns: 1fr 1fr; }
  .promo { padding: 20px; min-height: 150px; }
  .promo strong { font-size: 18px; }
  .promo .art { font-size: 42px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .products, .category-products { grid-template-columns: 1fr 1fr; }
  .product-card { padding: 12px; }
  .product-image { height: 145px; }
  .product-name { min-height: 0; font-size: 14px; }
  .benefits, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 20px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: block; position: static; }
  .product-detail { grid-template-columns: 1fr; padding: 18px; gap: 24px; }
  .gallery-main { height: 320px; }
  .cart-row { grid-template-columns: 70px 1fr 30px; }
  .cart-row .qty, .cart-row .row-price { grid-column: 2; }
  .cart-thumb { grid-row: 1 / 4; }
  .mobile-menu { display: inline-flex; }
  .hide-mobile { display: none; }
  .home-specials { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .catalog-row { grid-template-columns: 72px 1fr; gap: 12px; padding: 12px; }
  .row-image { height: 72px; }
  .row-image img { max-width: 64px; max-height: 62px; }
  .catalog-row .three-prices { grid-column: 1 / -1; }
  .catalog-row .row-buy,.catalog-row .bulk-qty { grid-column: 2; }
}
@media (max-width: 460px) {
  .hero-side, .products, .category-products { grid-template-columns: 1fr; }
  .category-card { min-height: 120px; }
  .product-image { height: 210px; }
  .header-actions .icon-btn:first-child { display: none; }
}

.page { padding-top: 32px; padding-bottom: 50px; }
.flashes { margin-top: 16px; display: grid; gap: 8px; }
.flash { padding: 13px 16px; border-radius: 11px; font-weight: 650; }
.flash.success { background: #dff4e9; color: #176b49; }
.flash.error { background: #fde7e4; color: #9a2f25; }
.hero-outline { color: #fff; background: transparent; border: 1px solid #a9cbff; }
.field { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); }
.full { width: 100%; }
.empty { padding: 48px 28px; text-align: center; }
.empty p { color: var(--muted); margin: 10px auto 24px; max-width: 600px; }
.pager { display: flex; justify-content: center; gap: 7px; margin: 28px 0; }
.pager a { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 9px; background: #fff; border: 1px solid var(--line); }
.pager a.current { color: #fff; background: var(--blue); border-color: var(--blue); }
.cart-actions { padding: 16px 18px; text-align: right; }
.cart-delivery-note { margin-top: 20px; padding: 20px 24px; color: #3c485c; }
.cart-delivery-note p { margin: 0 0 9px; }
.cart-delivery-note p:last-child { margin-bottom: 0; }
.remove { width: 30px; height: 30px; border: 1px solid var(--line); background: #fff; border-radius: 50%; cursor: pointer; }
.auth { width: 100%; max-width: 520px; margin: 0 auto; padding: 30px; }
.auth form, .form-panel form { display: grid; gap: 17px; }
.auth label, .form-panel label { display: grid; gap: 7px; font-weight: 650; }
.auth-switch { color: var(--muted); text-align: center; }
.auth-switch a { color: var(--blue); font-weight: 700; }
.account-page { display: grid; grid-template-columns: minmax(360px, .85fr) minmax(0, 1.35fr); gap: 24px; align-items: start; }
.account { max-width: none; padding: 30px; }
.account-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.account-form { display: grid; gap: 16px; }
.account-form label { display: grid; gap: 7px; font-weight: 650; }
.account-form label small { color: var(--muted); font-weight: 400; }
.readonly-data { display: grid; gap: 8px; padding: 14px; border-radius: 11px; background: #f5f7fa; }
.readonly-data span { display: grid; gap: 2px; }
.readonly-data small,.order-head small { color: var(--muted); }
.order-history { min-width: 0; }
.order-card,.order-detail { padding: 22px; margin-bottom: 14px; }
.order-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.order-head b,.order-head small { display: block; }
.order-head strong { font-size: 20px; white-space: nowrap; }
.order-lines { margin: 15px 0; border-top: 1px solid var(--line); }
.order-lines > div { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.order-lines span { color: var(--muted); white-space: nowrap; }
.ledger { padding: 22px; margin-bottom: 25px; overflow: hidden; }
.ledger-table > div { display: grid; grid-template-columns: minmax(0,1fr) 120px 120px; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.ledger-table > div:last-child { border-bottom: 0; }
.ledger-table span small { display: block; color: var(--muted); }
.ledger-table b { text-align: right; white-space: nowrap; }
.ledger-head { color: var(--muted); font-size: 12px; font-weight: 700; }
.ledger-head span:not(:first-child) { text-align: right; }
.credit-note { margin-top: 0; }
.account dl { display: grid; grid-template-columns: 180px 1fr; gap: 0; margin: 24px 0; }
.account dt,.account dd { margin: 0; padding: 12px 5px; border-bottom: 1px solid var(--line); }
.account dt { color: var(--muted); }
.checkout-grid { display: grid; grid-template-columns: 1fr 390px; gap: 24px; align-items: start; }
.form-panel { padding: 30px; }
.checkout-client { margin-bottom: 25px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.checkout-client dl { display: grid; grid-template-columns: 150px 1fr; margin: 0 0 12px; }
.checkout-client dt,.checkout-client dd { margin: 0; padding: 6px 0; }
.checkout-client dt { color: var(--muted); }
.delivery-fields { display: grid; gap: 17px; padding: 18px; border-radius: 12px; background: #f5f7fa; }
.delivery-fields[hidden] { display: none; }
.muted,.summary-note { color: var(--muted); }
.delivery-fields p { margin: 0; }
.checkout-edit { display: inline-block; margin-top: 10px; }
.summary-note { font-size: 13px; margin: 18px 0 0; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 10px; }
legend { padding: 0 7px; font-weight: 800; }
.radio { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 9px !important; font-weight: 500 !important; }
.content { padding: 34px; max-width: 860px; }
.content h2 { margin-top: 28px; }
.content a { color: var(--blue); }
.content li { margin: 7px 0; }
.feedback form { display: grid; gap: 17px; }
.feedback label { display: grid; gap: 7px; font-weight: 650; }
.feedback-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.captcha-field { max-width: 150px; }
.success-icon { margin: 0 auto 15px; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: #dff4e9; color: var(--green); font-size: 38px; font-weight: 900; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .account-page { grid-template-columns: 1fr; } .catalog-home-head { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .catalog-map { grid-template-columns: 1fr; } .catalog-controls { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .account dl,.checkout-client dl { grid-template-columns: 1fr; } .account dt,.checkout-client dt { border: 0; padding-bottom: 0; } .auth,.form-panel,.content,.account { padding: 21px; } .feedback-grid { grid-template-columns: 1fr; } .catalog-map-title { grid-template-columns: 64px 1fr; } .catalog-map-title img { width: 64px; height: 58px; } .order-lines > div { grid-template-columns: 1fr; gap: 3px; } .ledger-table > div { grid-template-columns: 1fr 1fr; } .ledger-table > div > :first-child { grid-column: 1 / -1; } .ledger-head { display: none !important; } }

/* Supply finder */
.supply-finder {
  margin: 30px auto 42px;
  padding: 30px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
  gap: 36px;
  align-items: center;
  border: 1px solid #d7e5fa;
  border-radius: 20px;
  background: linear-gradient(135deg, #eef5ff 0%, #ffffff 100%);
}
.supply-finder h2 { margin: 8px 0 10px; font-size: 30px; line-height: 1.15; }
.supply-finder p { margin: 0; max-width: 620px; color: var(--muted); }
.supply-finder-form { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(220px, 1.3fr); gap: 12px; align-items: end; }
.supply-finder-form label { display: grid; gap: 7px; font-weight: 700; }
.supply-finder-form small { grid-column: 1 / -1; color: var(--muted); }
.supply-finder-form .btn { grid-column: 1 / -1; justify-self: start; min-height: 43px; width: 100%; max-width: 320px; white-space: normal; }
.supplies-intro { padding: 30px; }
.supplies-intro > p { color: var(--muted); }
.supply-finder-form.inline { margin-top: 22px; }
.supplies-results-head { margin-top: 34px; }
.supply-help { margin-top: 22px; padding: 24px; }
.empty-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .supply-finder { grid-template-columns: 1fr; }
  .supply-finder-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .supply-finder { margin-top: 18px; padding: 22px; }
  .supply-finder h2 { font-size: 25px; }
  .supply-finder-form { grid-template-columns: 1fr; }
  .supply-finder-form .btn { grid-column: 1 / -1; max-width: none; }
}

/* SEO landing pages and expanded product page */
.landing-hero { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(260px,.65fr); gap: 42px; align-items: center; padding: 38px; background: linear-gradient(135deg,#eef5ff,#fff); }
.landing-hero h1 { margin: 10px 0 14px; font-size: clamp(30px,4vw,46px); line-height: 1.1; }
.landing-hero p { max-width: 760px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.landing-hero ul { margin: 0; padding: 24px; list-style: none; display: grid; gap: 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.landing-hero li { position: relative; padding-left: 28px; font-weight: 700; }
.landing-hero li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); }
.landing-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.landing-info { margin: 34px 0 10px; padding: 30px; }
.landing-info > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.landing-info p { margin: 0; color: var(--muted); line-height: 1.55; }
.product-page { padding-bottom: 30px; }
.product-description { margin: 10px 0 18px; color: var(--muted); line-height: 1.55; }
.product-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; overflow: hidden; margin: 18px 0; padding: 1px; border-radius: 12px; background: var(--line); }
.product-facts > div { padding: 12px 14px; background: #fff; }
.product-facts dt { margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.product-facts dd { margin: 0; font-weight: 700; }
.related-products { margin-top: 34px; }

@media (max-width: 820px) {
  .landing-hero { grid-template-columns: 1fr; padding: 26px; gap: 24px; }
  .landing-info > div { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .product-facts { grid-template-columns: 1fr; }
}

/* Long product names and legacy HTML descriptions */
.product-detail { grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); }
.product-detail > div { min-width: 0; }
.product-detail h1,
.row-name,
.product-name,
.product-description,
.product-facts dd { overflow-wrap: anywhere; word-break: break-word; }
.product-detail h1 { max-width: 100%; }
.gallery-main { min-width: 0; }
.product-description { white-space: normal; }
.product-description br { display: block; content: ''; margin-top: 7px; }

@media (max-width: 760px) {
  .product-detail { grid-template-columns: 1fr; }
}

/* Cart rows with long product names */
.cart-layout { grid-template-columns: minmax(0, 1fr) 340px; }
.cart-list { min-width: 0; }
.cart-row { grid-template-columns: 92px minmax(0, 1fr) 110px 120px 32px; }
.cart-row > div:nth-child(2) { min-width: 0; }
.cart-row > div:nth-child(2) a,
.cart-row > div:nth-child(2) b { display: block; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.cart-row .row-price { white-space: nowrap; }
.cart-row .remove { justify-self: end; }

@media (max-width: 720px) {
  .cart-row { grid-template-columns: 70px minmax(0, 1fr) 30px; }
}
@media (max-width: 980px) {
  .cart-layout { grid-template-columns: 1fr; }
}

/* Checkout summary with long product names */
.summary-line { align-items: flex-start; }
.summary-line > :first-child { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.summary-line > :last-child { flex: 0 0 auto; white-space: nowrap; }

/* Brand system and purchase paths */
.brand-mark { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.brand-mark img { width: 58px; height: 58px; object-fit: contain; display: block; }
.footer .brand-mark img { filter: drop-shadow(0 7px 14px rgba(0,0,0,.18)); }
.footer-brand .brand-logo { max-width: 245px; }
.category-card { overflow: hidden; }
.category-image { height: 94px; transition: transform .2s ease; }
.category-card:hover .category-image { transform: translateY(-3px) scale(1.03); }
.purchase-paths { padding: 34px; border-radius: 22px; color: #fff; background: #0e1f38; box-shadow: var(--shadow); }
.purchase-paths .section-head { align-items: flex-start; }
.purchase-paths .section-head h2 { margin-top: 10px; }
.purchase-path-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.purchase-path-grid a { min-width: 0; min-height: 170px; padding: 22px; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.07); transition: .2s ease; }
.purchase-path-grid a:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.11); }
.purchase-path-grid span { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 12px; color: #0e1f38; background: #ff9a35; font-weight: 900; }
.purchase-path-grid a:nth-child(2) span { background: #55cfe0; }
.purchase-path-grid a:nth-child(3) span { background: #ffd35b; }
.purchase-path-grid a:nth-child(4) span { background: #88a9ff; }
.purchase-path-grid b { display: block; font-size: 17px; line-height: 1.25; }
.purchase-path-grid small { display: block; margin-top: 8px; color: #bac9de; line-height: 1.45; }

@media (max-width: 900px) {
  .purchase-path-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .purchase-paths { padding: 24px; }
  .purchase-path-grid { grid-template-columns: 1fr; }
  .purchase-path-grid a { min-height: 0; }
}
@media (max-width: 720px) {
  .brand-mark img { width: 46px; height: 46px; }
}

/* Long category names from the legacy catalog */
.category-card { min-width: 0; }
.category-card strong { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; line-height: 1.3; }
.catalog-map-title span,
.catalog-map-title strong { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
