:root {
  --ink: #123024;
  --muted: #3f6b56;
  --paper: #f3faf6;
  --paper-2: #e3f2e9;
  --white: #ffffff;
  --navy: #0e7a45;
  --navy-deep: #0a5c34;
  --brass: #ffffff;
  --brass-deep: #0a5c34;
  --line: #cfe3d7;
  --good: #0e7a45;
  --good-bg: #e5f6ec;
  --bad: #8d2e2e;
  --bad-bg: #f8e6e2;
  --warn: #0a5c34;
  --warn-bg: #e5f6ec;
  --info: #0e7a45;
  --info-bg: #e5f6ec;
  --shadow: 0 18px 40px rgba(14, 92, 52, 0.08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
img, video, canvas, svg { max-width: 100%; height: auto; display: block; }
.nav-canvas { height: 100%; max-width: none; }
a { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 0.4em; overflow-wrap: anywhere; }
p { margin: 0 0 0.8em; overflow-wrap: anywhere; }
.label-short { display: none; }

.newsbar {
  position: relative;
  z-index: 70;
  background: var(--navy-deep);
  color: #ffffff;
}
.newsbar-track {
  overflow: hidden;
  display: flex;
}
.newsbar-run {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 42px;
  padding: 8px 42px 8px 0;
  animation: news-pass 32s linear infinite;
}
.newsbar-track.is-paused .newsbar-run { animation-play-state: paused; }
.news-hit {
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  padding: 0;
}
.news-hit:hover,
.news-hit:focus-visible { color: #d7f3e4; }
.newsbar-open {
  padding: 14px max(16px, 6vw) 16px;
  background: #084c2b;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.newsbar-open[hidden] { display: none; }
.newsbar-kicker {
  margin: 0 0 4px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d7f3e4;
}
.newsbar-title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  color: #ffffff;
}
.newsbar-body { margin: 0 0 10px; max-width: 68ch; }
.newsbar-source { margin: 0; }
.newsbar-source a { color: #ffffff; font-weight: 700; }
@keyframes news-pass {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  isolation: isolate;
  border-bottom: 1px solid rgba(14, 122, 69, 0.22);
  background: rgba(243, 250, 246, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(10, 92, 52, 0.06);
}
.nav-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
  overflow: hidden;
}
.nav-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(243, 250, 246, 0.88) 0%, rgba(243, 250, 246, 0.55) 42%, rgba(227, 242, 233, 0.42) 100%),
    radial-gradient(120% 140% at 88% 10%, rgba(14, 122, 69, 0.12), transparent 55%);
}
.nav-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand actions";
  align-items: center;
  gap: 10px 18px;
  padding: 14px max(16px, 6vw);
  min-height: 76px;
}
.nav-cluster {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  position: relative;
}
.nav-cluster:not(.end) { align-items: center; }
.nav-cluster.end {
  grid-area: actions;
  justify-self: end;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: max-content;
  min-width: 12.5rem;
  max-width: 16.5rem;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.nav-toggle:checked + .nav-cluster > .nav-links { display: flex; }
.nav-links a,
.nav-link-item {
  display: block;
  text-decoration: none;
  color: var(--ink) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.01em;
  padding: 10px 14px !important;
  min-height: 0 !important;
  line-height: 1.2 !important;
  background: transparent;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-link-item:hover,
.nav-link-item:focus-visible {
  color: var(--navy-deep) !important;
  background: var(--paper-2);
}
.nav-links a.is-active,
.nav-link-item.is-active {
  color: var(--navy-deep) !important;
  background: var(--paper-2);
  box-shadow: inset 2px 0 0 var(--navy);
}
.nav-bar .brand {
  position: relative;
  gap: 4px;
  padding: 0;
  transition: transform .3s ease;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.brand-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-name {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.brand-copy small { display: block; color: var(--muted); font-size: 0.75rem; }
.nav-bar .brand:hover,
.nav-bar .brand:focus-visible {
  transform: translateY(-1px);
}
.nav-bar .mark {
  box-shadow: 0 8px 18px rgba(14, 122, 69, 0.22);
  transition: transform .35s ease, box-shadow .35s ease;
}
.brand-word {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  font-family: var(--serif);
  font-size: 0.56rem;
  font-weight: 620;
  letter-spacing: 0.08em;
  color: var(--navy-deep);
  line-height: 1.05;
}
.brand-word em {
  font-style: normal;
  font-weight: 500;
  font-size: 0.72em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.logo {
  display: block;
  height: 86px;
  width: auto;
}
.nav-bar .logo { height: 92px; }
.logo-footer { height: 108px; }
.logo-side { height: 72px; max-width: 196px; }
.logo-plate {
  display: inline-block;
  background: #ffffff;
  line-height: 0;
  padding: 6px 8px;
}
.auth-logo { margin: 0; }
.side .brand-invert {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.home-dock {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  width: 62px;
  height: 58px;
  display: block;
  text-decoration: none;
  background: none;
  animation: home-float 2.8s ease-in-out infinite;
}
.home-dock svg {
  width: 62px;
  height: 58px;
  display: block;
  filter: drop-shadow(0 8px 5px rgba(10, 92, 52, 0.28));
  transition: transform .25s ease;
}
.home-dock:hover,
.home-dock:focus-visible { animation-play-state: paused; }
.home-dock:hover svg,
.home-dock:focus-visible svg { transform: translateY(-3px) scale(1.06); }
@keyframes home-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}
.brand, .brand-invert {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.brand strong, .brand-invert strong { display: block; font-size: 1rem; }
.brand small, .brand-invert small { display: block; color: var(--muted); font-size: 0.75rem; }
.mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #ffffff;
  font-family: var(--serif);
  font-size: 1.05rem;
}
.nav-user {
  font-weight: 700;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.account-links a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 7px 12px;
  border: 1px solid var(--navy);
  color: var(--navy);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.72);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.account-links a:hover,
.account-links a:focus-visible {
  transform: translateY(-1px);
  background: #ffffff;
}
.account-links a.account-primary { background: var(--navy); color: #ffffff; }
.account-links a.account-primary:hover,
.account-links a.account-primary:focus-visible {
  background: var(--navy-deep);
}
.nav-toggle, .side-toggle, .cart-pop-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.nav-inner > .nav-toggle {
  top: 0;
  left: 0;
}
.nav-burger {
  display: inline-flex;
  align-self: center;
  width: 28px;
  height: auto;
  margin: 0 0 0 36px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy-deep);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle:checked + .nav-cluster .nav-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle:checked + .nav-cluster .nav-burger span:nth-child(2) {
  opacity: 0;
}
.nav-toggle:checked + .nav-cluster .nav-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.side-open { display: none; }
.trolley { position: relative; }
.trolley-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 6px;
  background: var(--navy);
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.75rem;
  transition: transform .2s ease, background .2s ease;
}
.trolley-btn:hover,
.trolley-btn:focus-visible {
  transform: translateY(-1px);
  background: var(--navy-deep);
}
.trolley-btn svg { width: 15px; height: 15px; }
.trolley-btn em {
  min-width: 1rem;
  height: 1rem;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--navy);
  font-style: normal;
  font-size: 0.65rem;
}
.cart-pop {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(360px, calc(100vw - 32px));
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 14px;
  z-index: 30;
}
.cart-pop-toggle:checked ~ .cart-pop { display: block; }
.cart-pop-toggle:checked ~ .trolley-btn { outline: 2px solid var(--brass); }
.cart-pop-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cart-pop-head label { cursor: pointer; font-size: 0.8rem; color: var(--muted); }
.cart-pop-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.cart-pop-item img { width: 54px; height: 54px; object-fit: cover; background: var(--paper-2); }
.cart-pop-item p { margin: 0; }
.cart-pop-item button { border: 0; background: transparent; font-size: 1.3rem; cursor: pointer; color: var(--muted); }
.cart-pop-total { display: flex; justify-content: space-between; margin: 12px 0; }
.cart-pop .btn { width: 100%; }

main {
  padding: 34px max(16px, 6vw) 88px;
  min-height: 60vh;
  width: 100%;
  max-width: 100%;
}

.hero {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: clamp(2rem, 7vw, 5rem); margin-bottom: 12px; }
.lede { font-size: clamp(1rem, 2.4vw, 1.15rem); max-width: 38rem; color: var(--muted); }
.num { font-family: var(--serif); color: var(--brass-deep); }

.desk-head { margin-bottom: 18px; }
.desk-head h1 { margin-bottom: 0; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.desk-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.desk-stats a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}
.desk-stats a:hover { border-color: var(--navy); }
.desk-stats span {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--navy-deep);
}
.desk-stats small {
  display: block;
  margin-top: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.desk-board { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.desk-card { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.desk-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f7fcf9;
  border-bottom: 1px solid var(--line);
}
.desk-card-head h2 { margin: 0; font-size: 1.2rem; }
.desk-card-head a { color: var(--navy); font-weight: 700; font-size: 0.85rem; }
.desk-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.desk-row p { margin: 0; }
.desk-empty { margin: 0; padding: 16px; color: var(--muted); }
.section { margin-top: 48px; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brass-deep);
  margin-bottom: 6px;
}
.steps-3, .band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.band { grid-template-columns: 1.1fr 0.9fr; }
.panel, .card, .empty {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.panel, .empty, .bank-card { padding: 18px; }
.card { display: flex; flex-direction: column; }
.card-body, .pad { padding: 14px 14px 16px; }
.card h2 { font-size: 1.35rem; }
.card h2 a { text-decoration: none; color: inherit; }
.card-media { background: var(--paper-2); aspect-ratio: 4 / 3; overflow: hidden; }
.stock-line {
  margin: 8px 14px 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--navy-deep);
}
.stock-line.is-out { color: var(--bad); }
.split > div > .stock-line { margin: 8px 0 0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.product-grid, .kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.shop-toggle { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.shop-toggle a {
  text-decoration: none;
  font-weight: 700;
  padding: 8px 16px;
  border: 1px solid var(--navy);
  color: var(--navy);
  background: #ffffff;
}
.shop-toggle a.is-on { background: var(--navy); color: #ffffff; }
.home-shop .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(168px, 100%), 1fr));
  justify-content: start;
}
.home-shop .card-media { aspect-ratio: auto; height: 110px; }
.home-shop .card h2 { font-size: 1.15rem; }
.home-shop .price { font-size: 1.15rem; }
.kpi { background: var(--navy); color: #ffffff; padding: 16px; }
.kpi span { display: block; font-family: var(--serif); font-size: 1.8rem; }
.kpi small { color: #d7f3e4; }
.price { font-family: var(--serif); font-size: 1.45rem; margin: 8px 0; }
.fine, .muted { color: var(--muted); font-size: 0.92rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: 22px; align-items: start; }
.form-grid, .line, .add-form { display: grid; gap: 10px; min-width: 0; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
label { font-size: 0.85rem; font-weight: 700; display: grid; gap: 6px; min-width: 0; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
label.check input { width: auto; }
input, select, textarea {
  width: 100%;
  max-width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 0;
  min-height: 44px;
}
textarea { min-height: 110px; resize: vertical; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  padding: 11px 16px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  background: var(--navy);
  color: #ffffff;
  min-height: 44px;
}
.btn-brass { background: #ffffff; color: var(--navy); border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-danger { background: var(--bad); color: white; }
.btn-small { padding: 7px 10px; font-size: 0.82rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-delete { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.row-delete input { width: 118px; min-height: 36px; padding: 6px 8px; }
.row-delete .btn { min-height: 36px; }
.qty-label { display: flex; align-items: center; gap: 8px; }
.qty-label input { width: 76px; }

.flash { padding: 12px 14px; margin-bottom: 14px; border: 1px solid transparent; }
.flash-ok { background: var(--good-bg); color: var(--good); }
.flash-bad { background: var(--bad-bg); color: var(--bad); }
.flash ul { margin: 0; padding-left: 18px; }
.pill { display: inline-block; padding: 3px 8px; font-size: 0.75rem; font-weight: 700; background: var(--paper-2); }
.pill-ok { background: var(--good-bg); color: var(--good); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-info { background: var(--info-bg); color: var(--info); }

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  border: 1px solid var(--line);
  max-width: 100%;
}
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.bank-card { background: var(--navy); color: #ffffff; border: 0; }
.bank-card p,
.bank-card strong { color: #ffffff; }
.bank-card .kicker, .bank-card .fine, .bank-card .bank-label { color: #d7f3e4; }
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin: 8px 0 14px;
}
.shot-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #ffffff;
}
.shot-file {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  background: #ffffff;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  padding: 12px;
  text-align: center;
}
.is-off { display: none; }
.bank-number {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  overflow-wrap: anywhere;
}
.steps {
  --step: 0;
  position: relative;
  display: flex;
  list-style: none;
  margin: 8px 0 18px;
  padding: 0;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 12.5%;
  height: 3px;
  border-radius: 2px;
}
.steps::before { width: 75%; background: var(--line); }
.steps::after { width: calc(75% * var(--step) / 3); background: var(--navy); }
.steps li {
  position: relative;
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: clamp(0.62rem, 2.2vw, 0.75rem);
  line-height: 1.25;
  color: var(--muted);
  padding: 24px 2px 0;
}
.steps li span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 15px;
  height: 15px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #c5ddd0;
  z-index: 1;
}
.steps li.done,
.steps li.current { color: var(--ink); }
.steps li.done span::before,
.steps li.current span::before { background: var(--navy); border-color: var(--navy); }
.steps li.current { font-weight: 700; }
.steps li.current span::before { box-shadow: 0 0 0 4px rgba(14, 122, 69, 0.22); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 18px; margin: 0 0 12px; }
.facts div { margin: 0; }
.facts dt { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; }
.code-line { font-size: 1.05rem; }
.search { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.search input { max-width: 360px; flex: 1 1 180px; }
.site-footer {
  background: var(--navy-deep);
  color: #ffffff;
  padding: 36px max(16px, 6vw) calc(88px + env(safe-area-inset-bottom));
}
.site-footer .kicker { color: #d7f3e4; }
.site-footer a { color: #ffffff; display: block; text-decoration: none; margin: 4px 0; }
.site-footer a.contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
.contact-line svg { width: 20px; height: 20px; flex: 0 0 20px; fill: currentColor; }
.contact-line span { overflow-wrap: anywhere; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.hp { position: absolute; left: -9999px; }

.app-body { background: var(--paper); }
.side-backdrop { display: none; }
.side {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(240px, 86vw);
  background: var(--navy-deep);
  color: #ffffff;
  padding: 18px 14px calc(28px + env(safe-area-inset-bottom));
  overflow: auto;
  z-index: 60;
}
.side a { color: #ffffff; text-decoration: none; display: block; padding: 10px; }
.side a.side-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side a.is-active { background: #149154; }
.nav-count {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 6px;
  border-radius: 99px;
  background: #ffffff;
  color: var(--navy-deep);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}
.brand-invert small { color: #d7f3e4; }
.group { margin: 18px 10px 6px; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: #d7f3e4; }
.shell-main { margin-left: 240px; padding: 22px max(16px, 28px) 60px; min-width: 0; }
.shell-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.shell-top h1 { font-size: clamp(1.45rem, 4vw, 2rem); }
.who { margin-top: -6px; color: var(--muted); }
.line { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.5fr) minmax(0, 0.5fr) minmax(0, 1fr) auto; align-items: end; margin-bottom: 8px; }
.auth-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(160deg, var(--navy-deep), #149154 80%);
}
.auth-card { width: min(460px, 100%); background: #ffffff; padding: clamp(16px, 4vw, 22px); }
.auth-card h1 { font-size: clamp(1.7rem, 6vw, 2.2rem); }
.notice { background: var(--warn-bg); color: var(--warn); padding: 12px 14px; margin-bottom: 14px; }

@media (prefers-reduced-motion: reduce) {
  .home-dock { animation: none; transform: translateX(-50%); }
  .newsbar-run { animation: none; }
  .nav-links a,
  .nav-bar .brand,
  .nav-bar .mark,
  .account-links a,
  .trolley-btn,
  .nav-burger span {
    transition: none;
  }
  .nav-canvas { display: none; }
}

/* Large tablets / small laptops */
@media (max-width: 1100px) {
  .product-grid,
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
  .band { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}

/* Tablets and below: denser public nav + app drawer */
@media (max-width: 900px) {
  .news-hit {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }
  .brand small,
  .brand-copy small { display: none; }
  .nav-inner {
    gap: 10px 12px;
    min-height: 0;
    padding: 10px max(12px, 4vw);
  }
  .account-links a {
    padding: 7px 9px;
    font-size: 0.74rem;
  }
  .desk-board { grid-template-columns: 1fr; }
  .cart-pop {
    position: fixed;
    top: max(96px, env(safe-area-inset-top));
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }
  .side-open { display: inline-flex; }
  .side {
    display: block;
    transform: translateX(-105%);
    transition: transform .28s ease;
    box-shadow: 0 0 0 transparent;
  }
  .side-toggle:checked ~ .side {
    transform: translateX(0);
    box-shadow: 18px 0 40px rgba(10, 92, 52, 0.28);
  }
  .side-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(10, 40, 24, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
  }
  .side-toggle:checked ~ .side-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .shell-main { margin-left: 0; padding: 16px max(12px, 4vw) 48px; }
  .form-row,
  .line,
  .facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}

/* Phones */
@media (max-width: 640px) {
  main { padding: 22px 16px 96px; }
  .hero h1 { font-size: clamp(1.8rem, 10vw, 2.6rem); }
  .lede { font-size: 1rem; }
  .section { margin-top: 32px; }
  .product-grid,
  .kpi-grid,
  .steps-3,
  .footer-grid { grid-template-columns: 1fr; }
  .desk-stats { grid-template-columns: 1fr 1fr; }
  .desk-row { grid-template-columns: 1fr; align-items: start; }
  .home-shop .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .home-shop .card-media { height: 96px; }
  .home-shop .card h2 { font-size: 1rem; }
  .home-shop .price { font-size: 1.05rem; }
  .label-full { display: none; }
  .label-short { display: inline; }
  .nav-user { max-width: 5.5rem; }
  .nav-links {
    left: auto;
    right: 0;
    min-width: 12rem;
    max-width: 16rem;
    padding: 8px;
  }
  .nav-links a,
  .nav-link-item {
    padding: 10px 14px !important;
    font-size: 0.95rem !important;
  }
  .account-links { gap: 4px; }
  .account-links a {
    padding: 5px 7px;
    min-height: 0;
    font-size: 0.68rem;
    align-items: center;
    display: inline-flex;
  }
  .nav-inner {
    min-height: 0;
    padding: 8px 12px;
    gap: 8px;
  }
  .nav-cluster { gap: 8px; }
  .nav-burger {
    width: 28px;
    height: auto;
  }
  .nav-bar .logo { height: 72px; }
  .brand-word { font-size: 0.5rem; letter-spacing: 0.05em; }
  .logo { height: 64px; }
  .logo-footer { height: 84px; }
  .brand strong { font-size: 0.92rem; }
  .search { flex-direction: column; }
  .search input { max-width: none; width: 100%; }
  .search .btn { width: 100%; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 auto; }
  .qty-label { width: 100%; }
  .qty-label input { width: 100%; max-width: 120px; }
  .panel, .empty, .bank-card { padding: 14px; }
  .card-body, .pad { padding: 12px; }
  .shop-toggle a { flex: 1 1 auto; text-align: center; }
  .steps {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .steps li { min-width: 4.5rem; }
  table { min-width: 460px; }
  th, td { padding: 10px 8px; font-size: 0.92rem; }
  .auth-card { padding: 16px; }
  .home-dock {
    width: 54px;
    height: 50px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .home-dock svg { width: 54px; height: 50px; }
}

/* Very small phones */
@media (max-width: 380px) {
  .home-shop .product-grid { grid-template-columns: 1fr; }
  .nav-cluster.end { gap: 6px; }
  .account-links a { padding: 7px 8px; font-size: 0.7rem; }
}
