:root {
  --bg: #f2efe8;
  --surface: #fff;
  --surface-alt: #f7f4ee;
  --hover: #fbf9f4;
  --ink: #221f1c;
  --ink-2: #4a443c;
  --muted: #6f685f;
  --muted-2: #9c9488;
  --line: #e4dfd2;
  --line-2: #e8e2d6;
  --accent: #a86b16;
  --accent-on-dark: #e2b56b;
  --on-dark: #f4f1ea;
  --on-dark-muted: #a9a29a;
  --ok: #2f7d4f;
  --warn: #9a6f16;
  --shell: 1320px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Golos Text", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main:focus { outline: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.shell { width: min(var(--shell), calc(100% - 56px)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 1000; transform: translateY(-160%);
  background: var(--surface); padding: 10px 14px; border-radius: 6px;
}
.skip-link:focus { transform: none; }

.service-bar, .brand-bar { background: var(--ink); color: var(--on-dark); }
.service-bar { border-bottom: 1px solid #332d26; font-size: 12px; color: var(--on-dark-muted); }
.service-bar__inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; }
.service-bar nav { display: flex; gap: 22px; }
.service-bar a:hover, .service-bar a:focus-visible { color: var(--on-dark); }
.service-bar__accent { color: var(--accent-on-dark); }
.brand-bar__inner { min-height: 86px; display: flex; align-items: center; gap: 26px; padding-block: 15px 20px; }
.logo { display: inline-flex; flex-direction: column; flex: 0 0 auto; line-height: 1; }
.logo strong { color: var(--on-dark); font-size: 26px; letter-spacing: -.04em; }
.logo span { margin-top: 7px; color: var(--accent-on-dark); font-size: 9px; letter-spacing: .2em; }
.search { flex: 1; max-width: 620px; margin-inline: auto; display: flex; background: white; border-radius: 8px; overflow: hidden; }
.search:focus-within { outline: 2px solid var(--accent-on-dark); outline-offset: 2px; }
.search input { min-width: 0; flex: 1; padding: 13px 16px; border: 0; outline: 0; color: var(--ink); }
.search button { border: 0; background: var(--accent); color: white; font-weight: 600; padding-inline: 24px; }
.phone { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.phone strong { font: 600 14px var(--mono); }
.phone span { color: var(--on-dark-muted); font-size: 10px; }
.header-actions { display: flex; align-items: center; gap: 5px; }
.header-actions a { position: relative; min-height: 46px; padding: 7px 10px; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--on-dark-muted); font-size: 10px; }
.header-actions a:hover, .header-actions a:focus-visible { background: #2b2621; color: var(--accent-on-dark); }
.header-actions b { position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; padding-inline: 4px; display: grid; place-items: center; border-radius: 999px; background: var(--accent); color: white; font: 600 9px var(--mono); }
.heart-icon { font-size: 24px; line-height: .8; }
.account-icon { position: relative; width: 22px; height: 22px; display: block; border: 1.5px solid currentColor; border-radius: 50%; }
.account-icon::before { content: ""; position: absolute; left: 50%; top: 4px; width: 5px; height: 5px; border: 1.5px solid currentColor; border-radius: 50%; transform: translateX(-50%); }
.account-icon::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 10px; height: 5px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 8px 8px 0 0; transform: translateX(-50%); }
.cart-action { color: var(--accent-on-dark) !important; }

.catalog-nav { position: sticky; top: 0; z-index: 40; display: flex; justify-content: center; gap: 2px; min-height: 48px; padding-inline: 28px; overflow-x: auto; background: var(--surface); border-bottom: 1px solid var(--line); }
.catalog-nav a { display: flex; align-items: center; padding: 0 15px; white-space: nowrap; border-bottom: 2px solid transparent; font-size: 14px; }
.catalog-nav a:hover, .catalog-nav a:focus-visible { color: var(--accent); border-color: var(--accent); }
.catalog-nav a[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }
.mega-menu-host { position: fixed; z-index: 55; left: 0; right: 0; display: none; max-height: calc(100vh - 48px); overflow-y: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: 0 22px 42px -28px rgba(34,31,28,.48); }
.mega-menu-host.is-open { display: block; }
.mega-menu-panel { padding-block: 21px 18px; }
.mega-menu-heading { margin-bottom: 16px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.mega-menu-heading h2 { margin: 4px 0 0; font-size: 25px; letter-spacing: -.025em; }
.mega-menu-heading > a { color: var(--accent); font-size: 12px; }
.mega-menu-heading > a b { font: 600 10px var(--mono); }
.mega-label { color: var(--muted); font: 500 9px var(--mono); letter-spacing: .1em; }
.mega-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.mega-columns--tree { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega-columns--1 { grid-template-columns: minmax(0, 430px); }
.mega-columns--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-column { min-width: 0; display: flex; flex-direction: column; }
.mega-column > .mega-label { margin-bottom: 9px; }
.mega-column > a { min-height: 34px; padding: 7px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #efeae0; font-size: 12px; }
.mega-column > a:hover, .mega-column > a:focus-visible { color: var(--accent); }
.mega-column > a b { color: var(--muted-2); font: 500 9px var(--mono); }
.mega-column > a.is-empty { opacity: .4; cursor: default; }
.mega-column__title { min-height: 39px !important; margin-bottom: 2px; font-size: 14px !important; font-weight: 600; border-bottom-color: var(--line) !important; }
.mega-column__title::after { content: "→"; margin-left: -9px; color: var(--accent); }
.mega-product-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.mega-product-list > a { min-height: 58px; padding: 7px 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 11px; align-items: center; border-bottom: 1px solid #efeae0; }
.mega-product-list img { width: 44px; height: 44px; object-fit: contain; border-radius: 5px; background: var(--surface-alt); }
.mega-product-list span { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mega-product-list strong { overflow: hidden; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.mega-product-list small { color: var(--muted-2); font: 500 9px var(--mono); }
.mega-product-list > a > b { font: 600 12px var(--mono); }
.mega-popular { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.mega-popular > div { margin-top: 9px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.mega-popular a { min-height: 62px; padding: 8px; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-alt); }
.mega-popular a:hover { border-color: var(--accent); }
.mega-popular img { width: 48px; height: 48px; object-fit: contain; }
.mega-popular a > span { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.mega-popular strong { overflow: hidden; font-size: 10.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.mega-popular b { font: 600 11px var(--mono); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; padding-block: 28px 18px; }
.hero__main { min-height: 390px; padding: 44px; border-radius: 8px; display: flex; flex-direction: column; justify-content: center; color: var(--on-dark); background: radial-gradient(circle at 85% 10%, rgba(168,107,22,.28), transparent 34%), var(--ink); }
.eyebrow { margin: 0 0 15px; color: var(--accent-on-dark); font: 600 10px var(--mono); letter-spacing: .18em; }
.eyebrow--dark { color: var(--accent); }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(38px, 5vw, 70px); line-height: .98; letter-spacing: -.045em; }
.hero__main > p:not(.eyebrow) { max-width: 620px; margin: 22px 0 0; color: var(--on-dark-muted); font-size: 16px; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button { min-height: 44px; padding: 11px 20px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; transition: 120ms ease; }
.button--accent { background: var(--accent); color: white; }
.button--accent:hover, .button--accent:focus-visible { background: #bd7b20; }
.button--outline { color: var(--on-dark); border: 1px solid #443c32; }
.button--outline:hover, .button--outline:focus-visible { border-color: var(--accent-on-dark); }
.hero__meta { margin-top: 34px; display: flex; align-items: center; gap: 9px; color: var(--on-dark-muted); font-size: 11px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #70c28c; box-shadow: 0 0 0 4px rgba(112,194,140,.12); }
.live-dot--stale { background: var(--warn); box-shadow: 0 0 0 4px rgba(154,111,22,.14); }
.hero__links { display: grid; gap: 10px; }
.hero-category { min-height: 120px; padding: 19px; display: grid; grid-template-columns: 58px minmax(0,1fr); align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); transition: 120ms ease; }
.hero-category:hover, .hero-category:focus-visible { border-color: var(--accent); }
.hero-category__image { width: 58px; aspect-ratio: 1; border-radius: 6px; object-fit: cover; background: var(--surface-alt); }
.hero-category strong { display: block; margin-bottom: 5px; font-size: 16px; }
.hero-category span { color: var(--muted); font-size: 12px; }

.benefits { background: var(--surface); border-block: 1px solid var(--line); }
.benefits__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.benefits article { padding: 21px 28px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); }
.benefits article:first-child { padding-left: 0; }
.benefits article:last-child { border: 0; }
.benefits strong { font-size: 13px; }
.benefits span { color: var(--muted); font-size: 12px; }

.section { padding-block: 42px 8px; }
.section-heading { margin-bottom: 18px; display: flex; justify-content: space-between; align-items: end; gap: 18px; }
.section-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.025em; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading > a { color: var(--accent); font-size: 13px; }
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.category-card { min-height: 148px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.category-card:hover, .category-card:focus-visible { border-color: var(--accent); }
.category-card img { width: 50px; height: 50px; border-radius: 6px; object-fit: cover; }
.category-card strong { font-size: 14px; }
.category-card span { color: var(--muted); font: 500 10px var(--mono); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.product-card { min-width: 0; padding: 12px; display: flex; flex-direction: column; gap: 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); transition: border-color 120ms ease; }
.product-card:hover { border-color: var(--accent); }
.product-card__image-wrap { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--surface-alt); }
.product-card__image { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-card__badge { position: absolute; left: 8px; top: 8px; padding: 5px 8px; border-radius: 100px; background: rgba(255,255,255,.93); color: var(--ink-2); font: 600 9px var(--mono); }
.product-card__favorite { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.93); color: var(--ink); font-size: 18px; }
.product-card__favorite[aria-pressed="true"] { color: #a83a2c; }
.product-card__name { min-height: 37px; font-size: 13.5px; line-height: 1.36; }
.product-card__status { color: var(--ok); font-size: 12px; }
.product-card__price-row { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.product-card__price { font: 700 17px var(--mono); letter-spacing: -.03em; }
.product-card__old-price, .product-old-price { color: var(--muted-2); font: 500 12px var(--mono); text-decoration: line-through; }
.product-card__buy { min-height: 39px; border: 0; border-radius: 6px; background: var(--ink); color: white; font-weight: 600; font-size: 13px; }
.product-card__buy:hover, .product-card__buy:focus-visible { background: var(--accent); }
.loading-state { grid-column: 1 / -1; min-height: 200px; display: grid; place-items: center; color: var(--muted); }

.site-footer { margin-top: 54px; padding-block: 48px; background: var(--ink); color: var(--on-dark); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; }
.site-footer p { max-width: 460px; color: var(--on-dark-muted); font-size: 13px; line-height: 1.5; }
.site-footer__grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.footer-label { color: var(--accent-on-dark); font: 600 10px var(--mono); letter-spacing: .12em; }
.toast-region { position: fixed; z-index: 100; right: 18px; bottom: 18px; max-width: 340px; padding: 12px 15px; border-radius: 8px; background: var(--ink); color: white; box-shadow: 0 18px 34px -16px rgba(34,31,28,.55); font-size: 13px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: 160ms ease; }
.toast-region.is-visible { opacity: 1; transform: none; }
.mobile-only { display: none; }

@media (max-width: 1040px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: inline-flex; }
  .service-bar { display: none; }
  .brand-bar { position: sticky; top: 0; z-index: 50; }
  .brand-bar__inner { min-height: auto; padding-block: 12px; gap: 13px; flex-wrap: wrap; }
  .icon-button { width: 38px; height: 38px; padding: 0; align-items: center; justify-content: center; border: 0; background: transparent; color: white; }
  .burger, .burger::before, .burger::after { width: 20px; height: 2px; background: currentColor; content: ""; display: block; }
  .burger { position: relative; }
  .burger::before { position: absolute; top: -6px; }
  .burger::after { position: absolute; top: 6px; }
  .brand-bar .logo { margin-right: auto; }
  .brand-bar .logo strong { font-size: 21px; }
  .brand-bar .logo span { display: none; }
  .header-actions a { min-height: 38px; padding: 5px 8px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .search input { padding-block: 10px; font-size: 13px; }
  .search button { padding-inline: 16px; }
  .catalog-nav { position: static; justify-content: flex-start; min-height: 46px; padding-inline: 16px; }
  .catalog-nav a { padding-inline: 12px; font-size: 13px; border: 1px solid var(--line); border-radius: 100px; margin-block: 8px; }
  .hero { grid-template-columns: 1fr; }
  .hero__links { grid-template-columns: repeat(3, 1fr); }
  .hero-category { min-height: 110px; grid-template-columns: 1fr; }
  .hero-category__image { width: 44px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 32px, var(--shell)); }
  .hero { padding-top: 16px; }
  .hero__main { min-height: 390px; padding: 28px 24px; }
  .hero h1 { font-size: 43px; }
  .hero__main > p:not(.eyebrow) { font-size: 14px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__links { grid-template-columns: 1fr; }
  .hero-category { min-height: 92px; grid-template-columns: 52px 1fr; }
  .benefits__grid { grid-template-columns: 1fr; }
  .benefits article, .benefits article:first-child { padding: 17px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .section { padding-top: 32px; }
  .section-heading h2 { font-size: 20px; }
  .section-heading > a { display: none; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card { padding: 9px; }
  .product-card__name { font-size: 12.5px; }
  .product-card__price { font-size: 15px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Полноценные экраны каталога, карточки, корзины и оформления. */
.product-card__visual { position: relative; }
.product-image { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-card__body { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 8px; }
.product-card__status--warn { color: var(--warn); }
.dealer-price-line { padding: 7px 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-radius: 6px; background: #f8efdd; color: var(--accent); }
.dealer-price-line span { font-size: 11px; }
.dealer-price-line strong { font: 700 13px var(--mono); }
.product-card__sku { color: var(--muted-2); font: 500 9px var(--mono); letter-spacing: .05em; }
.product-card__actions { display: flex; gap: 7px; }
.product-card__buy { flex: 1; display: inline-flex; align-items: center; justify-content: center; }
.product-card__buy--link { background: var(--surface-alt); color: var(--ink); border: 1px solid var(--line); }
.compare-button { width: 39px; min-width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); }
.compare-button[aria-pressed="true"] { background: #f8efdd; color: var(--accent); border-color: var(--accent); }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 16px; color: var(--muted-2); font-size: 12px; }
.breadcrumbs a:hover { color: var(--accent); }
.catalog-page, .cart-page, .checkout-page, .product-page, .text-page { padding-bottom: 40px; }
.catalog-intro, .page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.catalog-intro h1, .page-heading h1, .text-page h1 { margin: 0; font-size: clamp(32px, 4vw, 46px); letter-spacing: -.035em; }
.catalog-intro p { max-width: 75ch; margin: 9px 0 0; color: var(--muted); line-height: 1.5; }
.result-count, .page-heading > span { color: var(--muted); font: 500 12px var(--mono); white-space: nowrap; }
.quick-tags { display: flex; gap: 8px; padding-bottom: 14px; overflow-x: auto; }
.quick-tag { padding: 7px 12px; border: 1px solid var(--line); border-radius: 100px; background: var(--surface); white-space: nowrap; font-size: 12px; }
.quick-tag span { color: var(--muted-2); font: 500 10px var(--mono); }
.quick-tag:hover, .quick-tag.is-active { color: var(--accent); border-color: var(--accent); }
.catalog-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 14px; align-items: start; }
.filters-panel { position: sticky; top: 60px; padding: 16px 17px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.filters-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.filters-panel__head strong { font-size: 14px; }
.filters-panel__head a { color: var(--accent); font-size: 12px; }
.filter-group { margin-top: 13px; padding-top: 13px; display: flex; flex-direction: column; gap: 7px; border-top: 1px solid #efeae0; }
.micro-label { margin-bottom: 3px; color: var(--muted); font: 500 10px var(--mono); letter-spacing: .08em; }
.filter-row { min-height: 27px; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 8px; color: var(--ink-2); font-size: 12px; }
.filter-row b { color: var(--muted-2); font: 500 10px var(--mono); }
.filter-row:hover { color: var(--accent); }
.fake-check { width: 16px; height: 16px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 3px; color: transparent; font-size: 10px; }
.filter-row.is-active .fake-check { background: var(--ink); border-color: var(--ink); color: white; }
.filter-row.is-active { color: var(--ink); font-weight: 500; }
.price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.price-fields input { width: 100%; padding: 8px 9px; border: 1px solid #ded8c9; border-radius: 4px; outline: none; font: 500 11px var(--mono); }
.price-fields input:focus { border-color: var(--accent); }
.small-button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-alt); color: var(--ink); font-size: 11px; }
.catalog-toolbar { position: relative; min-height: 50px; padding: 9px 12px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; border-radius: 8px; background: var(--surface); }
.custom-select { position: relative; margin-right: auto; }
.custom-select > button, .filter-mobile-button { padding: 8px 10px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-2); font-size: 12px; }
.custom-select__menu { position: absolute; z-index: 20; left: 0; top: calc(100% + 8px); min-width: 210px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 18px 34px -16px rgba(34,31,28,.35); }
.custom-select__menu a { padding: 9px 10px; display: flex; justify-content: space-between; border-radius: 5px; font-size: 12px; }
.custom-select__menu a:hover, .custom-select__menu a.is-active { background: var(--surface-alt); }
.toolbar-group { display: flex; padding: 2px; border: 1px solid var(--line); border-radius: 5px; }
.toolbar-group button { min-width: 31px; height: 28px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font: 500 11px var(--mono); }
.toolbar-group button.is-active { background: var(--ink); color: white; }
.filter-mobile-button { display: none; }
.active-chips { padding-block: 10px; display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip { padding: 7px 11px; border-radius: 100px; background: var(--ink); color: var(--on-dark); font-size: 11px; }
.filter-chip span { margin-left: 5px; color: #7a7369; }
.product-grid--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-grid--list { grid-template-columns: 1fr; }
.product-card--list { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.product-card--list .product-card__name { min-height: 0; font-size: 15px; font-weight: 500; }
.product-card__details { margin: 2px 0; color: var(--muted); font-size: 12px; }
.load-more { min-height: 48px; margin-top: 16px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-weight: 600; font-size: 13px; }
.load-more:hover { border-color: var(--accent); color: var(--accent); }
.empty-state { min-height: 360px; padding: 48px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-state h1, .empty-state h2 { margin: 0; }
.empty-state p { max-width: 480px; color: var(--muted); line-height: 1.5; }
.button--dark { background: var(--ink); color: white; }
.nav-count { margin-left: 5px; color: var(--muted-2); font: 500 10px var(--mono); }

.product-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); gap: 36px; align-items: start; }
.gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
.gallery__thumbs { max-height: min(650px, 72vh); display: flex; flex-direction: column; gap: 8px; overflow-y: auto; scrollbar-width: thin; }
.gallery__thumb { flex: 0 0 auto; width: 100%; aspect-ratio: 1; padding: 5px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.gallery__thumb:hover, .gallery__thumb:focus-visible, .gallery__thumb.is-active { border-color: var(--ink); }
.gallery__thumb .product-image { pointer-events: none; }
.gallery__main { position: relative; aspect-ratio: 1; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.gallery__main > span { position: absolute; left: 14px; top: 14px; padding: 6px 9px; border-radius: 100px; background: var(--surface-alt); font: 500 9px var(--mono); }
.gallery__main > b { position: absolute; right: 14px; bottom: 14px; padding: 6px 9px; border-radius: 100px; background: var(--ink); color: white; font: 500 9px var(--mono); }
.product-info h1 { margin: 0; font-size: clamp(28px, 3.4vw, 43px); line-height: 1.08; letter-spacing: -.035em; text-wrap: pretty; }
.product-meta { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 12px; }
.product-meta span:first-child { font-family: var(--mono); }
.product-meta button { padding: 0; border: 0; background: none; color: var(--accent); }
.price-panel { margin-top: 24px; padding: 18px; display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.product-price-line { display: flex; align-items: baseline; gap: 12px; }
.product-price-line > strong { font: 700 clamp(29px, 4vw, 39px) var(--mono); letter-spacing: -.04em; }
.price-panel > span { align-self: center; font-size: 12px; }
.stock-ok { color: var(--ok); }
.stock-warn { color: var(--warn); }
.price-panel p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.dealer-price-detail { grid-column: 1 / -1; padding: 12px 13px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; border-radius: 6px; background: #f8efdd; color: var(--accent); }
.dealer-price-detail span { font-size: 12px; }
.dealer-price-detail strong { font: 700 20px var(--mono); }
.dealer-price-detail small { color: var(--muted); }
.product-buy-row { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr 48px; gap: 9px; }
.button--wide { min-height: 50px; }
.favorite-detail { width: 48px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 23px; }
.favorite-detail[aria-pressed="true"] { color: #a83a2c; }
.trust-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trust-grid article { padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-alt); }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { margin-bottom: 4px; font-size: 11px; }
.trust-grid span { color: var(--muted); font-size: 10px; line-height: 1.35; }
.specs-section { margin-top: 42px; }
.specs-panel { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 42px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.specs-panel > div { min-height: 37px; display: grid; grid-template-columns: auto minmax(30px, 1fr) auto; align-items: center; gap: 8px; font-size: 12px; }
.specs-panel span { color: var(--muted); }
.specs-panel i { height: 1px; border-bottom: 1px dotted #ded8c9; }
.specs-panel strong { font: 500 11px var(--mono); text-align: right; }

.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: 10px; }
.cart-line { position: relative; min-height: 130px; padding: 13px; display: grid; grid-template-columns: 104px minmax(0, 1fr) auto 130px 28px; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.cart-line__image { width: 104px; height: 104px; border-radius: 6px; background: var(--surface-alt); }
.cart-line__info { display: flex; flex-direction: column; gap: 7px; }
.cart-line__info > a:first-child { font-size: 14px; font-weight: 500; line-height: 1.35; }
.cart-line__info span { color: var(--muted-2); font: 500 9px var(--mono); }
.cart-line__info > a:last-child { color: var(--accent); font-size: 11px; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.qty-control button { width: 34px; height: 34px; border: 0; background: var(--surface-alt); }
.qty-control span { min-width: 32px; text-align: center; font: 500 11px var(--mono); }
.cart-line__price { display: flex; flex-direction: column; gap: 5px; text-align: right; }
.cart-line__price strong { font: 700 16px var(--mono); }
.cart-line__price span { color: var(--muted); font: 500 9px var(--mono); }
.remove-button { width: 28px; height: 28px; border: 0; background: transparent; color: var(--muted-2); font-size: 20px; }
.remove-button:hover { color: #a83a2c; }
.cart-summary { position: sticky; top: 60px; padding: 20px; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.cart-summary > span { color: var(--muted); font-size: 12px; }
.cart-summary > strong { font: 700 28px var(--mono); letter-spacing: -.04em; }
.cart-summary p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.cart-summary > a:last-child { color: var(--accent); text-align: center; font-size: 12px; }
.checkout-main { display: flex; flex-direction: column; gap: 10px; }
.checkout-note { padding: 22px; border-radius: 8px; background: var(--ink); color: var(--on-dark); }
.checkout-note strong { font-size: 18px; }
.checkout-note p { margin: 8px 0 0; color: var(--on-dark-muted); font-size: 13px; line-height: 1.5; }
.checkout-line { min-height: 88px; padding: 10px 12px; display: grid; grid-template-columns: 24px 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.checkout-line > span { color: var(--muted-2); font: 500 10px var(--mono); }
.checkout-line img { width: 64px; height: 64px; object-fit: contain; }
.checkout-line div { display: flex; flex-direction: column; gap: 5px; }
.checkout-line strong { font-size: 12px; }
.checkout-line small { color: var(--muted); font: 500 10px var(--mono); }
.checkout-line .button { min-height: 38px; font-size: 11px; }
.help-panel { margin-top: 8px; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 8px; background: #f8efdd; }
.help-panel p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.text-page { min-height: 500px; padding-top: 20px; }
.text-page p { max-width: 760px; margin: 20px 0 28px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.image-unavailable { display: grid !important; place-items: center; }
.image-unavailable__text { padding: 15px; color: var(--muted); text-align: center; font-size: 11px; }

.mobile-drawer { position: fixed; z-index: 100; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) min(88vw, 390px); }
.drawer-backdrop { border: 0; background: rgba(20,18,16,.55); }
.drawer-panel { padding: 18px; overflow-y: auto; background: var(--surface); box-shadow: -20px 0 50px rgba(0,0,0,.18); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.drawer-head .logo strong { color: var(--ink); }
.drawer-head .logo span { color: var(--accent); }
.drawer-head button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 22px; }
.drawer-panel nav { display: flex; flex-direction: column; padding-block: 12px; }
.drawer-panel nav a { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.drawer-panel nav strong { font-size: 14px; }
.drawer-panel nav span { color: var(--muted-2); font: 500 10px var(--mono); }
.drawer-catalog-section { padding: 8px 0 10px; border-bottom: 1px solid var(--line); }
.drawer-panel nav .drawer-root-link { border: 0; }
.drawer-catalog-section > div { padding: 0 0 3px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.drawer-catalog-section > div > a, .drawer-branch > a { min-height: 30px; border: 0; color: var(--ink-2); font-size: 11px; }
.drawer-branch { min-width: 0; display: flex; flex-direction: column; }
.drawer-branch > a:first-child { color: var(--accent); font-weight: 600; }
.drawer-branch > a:not(:first-child) { padding-left: 9px; }
.drawer-phone { margin-top: 16px; padding: 15px; display: flex; flex-direction: column; gap: 4px; border-radius: 8px; background: var(--ink); color: var(--on-dark); font: 600 14px var(--mono); }
.drawer-phone span { color: var(--on-dark-muted); font: 400 10px "Golos Text"; }
.menu-open { overflow: hidden; }

/* Кабинет дилера из нового handoff: только авторизованные реальные данные. */
.account-page { min-height: 560px; padding-block: 28px 48px; }
.account-login-page { min-height: 610px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 16px; align-items: stretch; }
.account-login-copy { min-height: 500px; padding: clamp(30px, 5vw, 66px); display: flex; flex-direction: column; justify-content: center; border-radius: 8px; background: radial-gradient(circle at 88% 10%, rgba(168,107,22,.3), transparent 38%), var(--ink); color: var(--on-dark); }
.account-login-copy h1 { max-width: 720px; margin: 0; font-size: clamp(40px, 5.2vw, 70px); line-height: .98; letter-spacing: -.045em; }
.account-login-copy > p:not(.eyebrow) { max-width: 700px; margin: 24px 0 0; color: var(--on-dark-muted); font-size: 15px; line-height: 1.6; }
.account-login-points { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.account-login-points span { padding: 8px 11px; border: 1px solid #443c32; border-radius: 100px; color: var(--accent-on-dark); font-size: 12px; }
.account-login-card { padding: clamp(26px, 4vw, 46px); display: flex; flex-direction: column; justify-content: center; gap: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.account-login-card h2 { margin: 6px 0 10px; font-size: 34px; letter-spacing: -.035em; }
.account-login-card label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.account-login-card input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #ded8c9; border-radius: 6px; outline: 0; }
.account-login-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(168,107,22,.1); }
.account-login-card > p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.account-login-card > p:last-child a { color: var(--accent); }
.form-error { min-height: 18px; margin: -4px 0 0; color: #a83a2c; font-size: 12px; }
.account-unavailable { min-height: 500px; padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.account-unavailable h1 { margin: 0; font-size: 38px; }
.account-unavailable > p:not(.eyebrow) { max-width: 560px; color: var(--muted); }
.account-hero { position: relative; padding: 24px; display: flex; align-items: flex-start; gap: 20px; border-radius: 8px; background: var(--ink); color: var(--on-dark); }
.account-hero > div:first-child { flex: 1; min-width: 240px; }
.account-hero > div:first-child > p { margin: 0 0 9px; color: var(--accent-on-dark); font: 500 10px var(--mono); letter-spacing: .1em; }
.account-hero h1 { margin: 0; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.035em; }
.account-hero > div:first-child > span { margin-top: 9px; display: block; color: var(--on-dark-muted); font-size: 12px; }
.account-manager { padding: 11px 13px; display: flex; align-items: center; gap: 11px; border: 1px solid #332d26; border-radius: 6px; background: #2b2621; }
.account-manager__icon { position: relative; width: 38px; height: 38px; border-radius: 50%; background: #423b34; }
.account-manager__icon::before, .account-manager__icon::after { content: ""; position: absolute; left: 50%; border: 1.5px solid var(--on-dark-muted); transform: translateX(-50%); }
.account-manager__icon::before { top: 8px; width: 8px; height: 8px; border-radius: 50%; }
.account-manager__icon::after { bottom: 7px; width: 18px; height: 9px; border-radius: 12px 12px 0 0; border-bottom: 0; }
.account-manager div { display: flex; flex-direction: column; gap: 3px; }
.account-manager small { color: #7a7369; font-size: 10px; }
.account-manager strong { font-size: 13px; }
.account-manager a { color: var(--accent-on-dark); font: 500 11px var(--mono); }
.account-logout { padding: 8px 10px; border: 1px solid #443c32; border-radius: 5px; background: transparent; color: var(--on-dark-muted); font-size: 11px; }
.account-logout:hover { color: white; border-color: var(--accent-on-dark); }
.account-tabs { margin: 14px 0; display: flex; flex-wrap: wrap; gap: 5px; }
.account-tabs a { padding: 9px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 13px; }
.account-tabs a:hover { border-color: var(--accent); color: var(--accent); }
.account-tabs a.is-active { border-color: var(--ink); background: var(--ink); color: white; }
.account-metrics { margin-bottom: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.account-metrics article { padding: 15px 16px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.account-metrics span { color: var(--muted); font: 500 10px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.account-metrics strong { margin-top: 9px; font: 700 21px var(--mono); letter-spacing: -.035em; }
.account-metrics small { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.account-panel { margin-bottom: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.account-panel h2 { margin: 0; font-size: 16px; }
.account-panel > p, .account-panel__heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.account-panel__heading { margin-bottom: 13px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.button--outline-light { min-height: 38px; padding: 8px 13px; border: 1px solid var(--line); background: white; color: var(--ink); font-size: 12px; }
.button--outline-light:hover { border-color: var(--accent); color: var(--accent); }
.due-list article { min-height: 66px; padding: 10px 0; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 110px auto; gap: 13px; align-items: center; border-bottom: 1px solid #efeae0; }
.due-list img { width: 46px; height: 46px; border-radius: 6px; object-fit: contain; background: var(--surface-alt); }
.due-list div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.due-list div strong { font-size: 13px; }
.due-list div span, .due-list em { color: var(--muted); font-size: 11px; font-style: normal; }
.due-list b { font: 600 13px var(--mono); text-align: right; }
.due-list button, .account-table__row button, .price-downloads button { padding: 7px 11px; border: 1px solid var(--ink); border-radius: 5px; background: white; font-size: 11px; font-weight: 600; }
.due-list button:hover, .account-table__row button:hover, .price-downloads button:hover { background: var(--ink); color: white; }
.account-quick-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.account-quick-tools .account-panel { display: flex; flex-direction: column; gap: 9px; }
.account-quick-tools textarea { width: 100%; min-height: 96px; padding: 10px 11px; resize: vertical; border: 1px solid #ded8c9; border-radius: 6px; outline: 0; font: 500 12px var(--mono); }
.account-quick-tools textarea:focus { border-color: var(--accent); }
.account-file-button { min-height: 96px; display: grid; place-items: center; border: 1px dashed #ded8c9; border-radius: 6px; color: var(--muted); font-size: 12px; cursor: pointer; }
.account-file-button:hover { border-color: var(--accent); color: var(--accent); }
.account-file-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.text-button { width: fit-content; padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 12px; }
.account-table-wrap { overflow-x: auto; }
.account-table { min-width: 850px; }
.account-table__head, .account-table__row { display: grid; gap: 12px; align-items: center; }
.account-table--quick .account-table__head, .account-table--quick .account-table__row { grid-template-columns: 90px minmax(210px, 2fr) 105px 70px 112px 78px 110px; }
.account-table--orders { min-width: 900px; }
.account-table--orders .account-table__head, .account-table--orders .account-table__row { grid-template-columns: 85px 92px minmax(260px, 1fr) 145px 110px 115px; }
.account-table__head { padding: 0 0 9px; border-bottom: 1px solid var(--line-2); color: var(--muted); font: 500 9px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.account-table__row { min-height: 54px; padding: 10px 0; border-bottom: 1px solid #efeae0; font-size: 12px; }
.account-table__row:hover { background: var(--hover); }
.account-table__row strong { font: 600 12px var(--mono); }
.account-table__row small { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.status-chip { width: fit-content; padding: 4px 8px; display: inline-flex; border-radius: 100px; background: var(--surface-alt); color: var(--ink-2); font-size: 10px; font-style: normal; }
.account-sticky-total { position: sticky; bottom: 12px; margin-top: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 15px; border-radius: 6px; background: var(--ink); color: white; }
.account-sticky-total > span { font-size: 12px; }
.account-sticky-total > strong { font: 700 17px var(--mono); }
.account-sticky-total .button { margin-left: auto; min-height: 38px; }
.account-finance { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
.transaction-list > div { min-height: 50px; display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 13px; align-items: center; border-bottom: 1px solid #efeae0; }
.transaction-list span { color: var(--muted); font-size: 11px; }
.transaction-list p { margin: 0; font-size: 12px; }
.transaction-list strong { font: 600 12px var(--mono); }
.amount-positive { color: var(--ok); }
.amount-negative { color: #a83a2c; }
.account-balance { padding: 20px; display: flex; flex-direction: column; border-radius: 8px; background: var(--ink); color: white; }
.account-balance > span { color: var(--on-dark-muted); font: 500 10px var(--mono); letter-spacing: .08em; }
.account-balance > strong { margin-top: 10px; font: 700 27px var(--mono); }
.account-balance p { color: var(--on-dark-muted); font-size: 11px; line-height: 1.5; }
.account-balance .button { margin-top: 8px; }
.account-price { min-height: 300px; }
.account-price > p { max-width: 760px; margin-top: 8px; }
.price-downloads { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.price-downloads button { min-width: 84px; padding: 10px 17px; font-family: var(--mono); }
.price-note { max-width: 760px; margin-top: 20px; padding-top: 15px; border-top: 1px solid #efeae0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.account-empty-inline { min-height: 90px; display: grid; place-items: center; color: var(--muted); text-align: center; font-size: 12px; }
.account-source { margin: 18px 0 0; color: var(--muted-2); font-size: 10px; line-height: 1.5; }

@media (max-width: 1040px) {
  .mega-menu-host { display: none !important; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters-panel { display: none; position: static; }
  .filters-panel.is-mobile-open { display: block; }
  .filter-mobile-button { display: inline-flex; }
  .product-detail { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .account-login-page { grid-template-columns: 1fr; }
  .account-login-copy { min-height: 420px; }
  .account-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-finance { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .product-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card--list { grid-template-columns: 110px minmax(0, 1fr); }
  .catalog-intro, .page-heading { align-items: start; flex-direction: column; }
  .catalog-intro h1, .page-heading h1, .text-page h1 { font-size: 32px; }
  .catalog-toolbar { justify-content: space-between; }
  .custom-select { margin: 0; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__thumbs { grid-row: 2; max-height: none; flex-direction: row; overflow-x: auto; overflow-y: hidden; }
  .gallery__thumb { width: 62px; }
  .gallery__main { padding: 18px; }
  .product-info h1 { font-size: 28px; }
  .product-buy-row { grid-template-columns: 1fr 48px; }
  .product-buy-row .button--dark { grid-column: 1 / -1; grid-row: 2; }
  .trust-grid { grid-template-columns: 1fr; }
  .specs-panel { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 76px minmax(0, 1fr) 24px; gap: 10px; }
  .cart-line__image { width: 76px; height: 76px; }
  .qty-control { grid-column: 2; width: fit-content; }
  .cart-line__price { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; align-items: center; }
  .remove-button { grid-column: 3; grid-row: 1; }
  .checkout-line { grid-template-columns: 20px 54px minmax(0, 1fr); }
  .checkout-line img { width: 54px; height: 54px; }
  .checkout-line .button { grid-column: 2 / -1; }
  .help-panel { align-items: stretch; flex-direction: column; }
  .account-page { padding-top: 16px; }
  .account-login-page { min-height: 0; }
  .account-login-copy { min-height: 390px; padding: 28px 24px; }
  .account-login-copy h1 { font-size: 42px; }
  .account-login-card { padding: 25px 20px; }
  .account-hero { flex-direction: column; }
  .account-manager { width: 100%; }
  .account-logout { position: absolute; top: 14px; right: 14px; }
  .account-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .account-tabs a { flex: 0 0 auto; }
  .account-metrics { grid-template-columns: 1fr; }
  .account-panel { padding: 16px; }
  .account-panel__heading { align-items: flex-start; flex-direction: column; }
  .due-list article { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .due-list img { width: 42px; height: 42px; }
  .due-list em { grid-column: 2; }
  .due-list b { grid-column: 3; grid-row: 1; }
  .due-list button { grid-column: 3; grid-row: 2; }
  .account-quick-tools { grid-template-columns: 1fr; }
  .account-sticky-total { align-items: flex-start; flex-wrap: wrap; }
  .account-sticky-total .button { flex-basis: 100%; margin-left: 0; }
  .transaction-list > div { grid-template-columns: 78px minmax(0, 1fr); }
  .transaction-list strong { grid-column: 2; }
}
