:root {
  --bg-map: #eef7f0;
  --bg-deep: #f7fbf8;
  --bg-panel: #ffffff;
  --bg-card: #f3faf4;
  --bg-card-hover: #e8f5e9;
  --accent-green: #43a047;
  --accent-green-dark: #2e7d32;
  --accent-green-bright: #66bb6a;
  --logo-green: #6aad3a;
  --accent-green-soft: #c8e6c9;
  --accent-green-pale: #e8f5e9;
  --accent-cyan: #29b6f6;
  --accent-gold: #7cb342;
  --accent-gold-bright: #558b2f;
  --accent-orange: #fb8c00;
  --text-primary: #1a2e1f;
  --text-muted: #5a7260;
  --border: rgba(46, 125, 50, 0.14);
  --border-strong: rgba(46, 125, 50, 0.28);
  --glow-green: rgba(76, 175, 80, 0.25);
  --shadow-sm: 0 1px 3px rgba(30, 60, 40, 0.06);
  --shadow-md: 0 4px 20px rgba(30, 60, 40, 0.08);
  --radius: 12px;
  --dock-w: 268px;
  --panel-w: min(calc(420px + var(--grid-cell) / 2), 38vw);
  --header-h: 56px;
  --footer-h: calc(var(--header-h) * 2);
  --panel-view-h: calc(100vh - var(--header-h) - var(--footer-h));
  --grid-cell: 48px;
  --equipment-card-h: calc(var(--panel-view-h) / 4);
  --equipment-card-icon: 91px;
  --font: 'Manrope', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
}

.app {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--dock-w) 1fr;
  grid-template-rows: 1fr;
}

/* ── Left dock: phone mockup ── */
.device-dock {
  --dock-bg-top: #122018;
  --dock-bg-bottom: #06100a;
  --dock-border: rgba(46, 204, 113, 0.12);
  --dock-text: #e8f5ec;
  --dock-text-muted: #7a9a85;
  --dock-screen: #0b1410;
  --dock-surface: rgba(255, 255, 255, 0.05);
  --dock-surface-border: rgba(255, 255, 255, 0.08);

  grid-row: 1 / -1;
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 16px 16px 20px;
  border-right: 1px solid var(--dock-border);
  background: linear-gradient(180deg, var(--dock-bg-top) 0%, var(--dock-bg-bottom) 100%);
  color: var(--dock-text);
  z-index: 10;
}

.device-phone {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}

.device-phone__frame {
  position: relative;
  width: 100%;
  max-width: 220px;
  max-height: 100%;
  aspect-ratio: 9 / 19;
  padding: 7.2px 5.8px 8.5px;
  border-radius: 26px;
  background: linear-gradient(
    155deg,
    #9aa3ad 0%,
    #8a939d 18%,
    #767f89 42%,
    #636b74 62%,
    #545b63 78%,
    #7a828b 92%,
    #959da6 100%
  );
  box-shadow:
    0 0 0 1px rgba(70, 76, 84, 0.5),
    0 0 0 2px rgba(180, 186, 194, 0.12),
    0 18px 40px rgba(15, 18, 22, 0.45),
    inset 0 1px 0 rgba(200, 206, 214, 0.4),
    inset 0 -3px 8px rgba(40, 44, 50, 0.35);
}

.device-phone__island {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  pointer-events: none;
}

.device-phone__earpiece {
  position: absolute;
  top: 3.5px;
  left: 50%;
  transform: translateX(-50%);
  width: 31px;
  height: 2px;
  border-radius: 1px;
  background: #141414;
}

.device-phone__island-pill {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 59px;
  height: 16px;
  border-radius: 999px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.device-phone__island-camera {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #3d4f63 0%, #121820 45%, #0a0e12 100%);
  box-shadow:
    inset 0 0 0 1px rgba(90, 115, 145, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}

.device-phone__screen {
  position: relative;
  height: 100%;
  border-radius: 17px;
  overflow: hidden;
  background: var(--dock-screen);
  display: flex;
  flex-direction: column;
}

.device-phone__idle {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 16px 36px;
  text-align: center;
  transition: opacity 0.25s;
}

.device-phone--live .device-phone__idle {
  display: none;
}

.device-phone__idle-icon {
  width: 48px;
  height: 48px;
  color: var(--dock-text-muted);
  opacity: 0.5;
}

.device-phone__idle p {
  font-size: 12px;
  font-weight: 600;
  color: var(--dock-text);
}

.device-phone__idle span {
  font-size: 10px;
  color: var(--dock-text-muted);
  line-height: 1.4;
}

.device-phone__home {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.28);
  z-index: 3;
}

.device-app {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px 14px 32px;
  overflow-y: auto;
  animation: app-in 0.28s ease;
}

.device-app[hidden] { display: none !important; }

.device-app--screen {
  position: absolute;
  inset: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.device-app__screen-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.device-phone--screen-mode .device-phone__island,
.device-phone--screen-mode .device-phone__home {
  display: none;
}

@keyframes app-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.device-app__header { margin-bottom: 2px; }

.device-app__tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-green-bright);
}

.device-app--thermal .device-app__tag { color: var(--accent-orange); }
.device-app--harvest .device-app__tag { color: #d4ac0d; }
.device-app--gps .device-app__tag { color: var(--accent-cyan); }

.device-app__header h2 {
  font-size: 15px;
  font-weight: 700;
  margin-top: 2px;
  line-height: 1.2;
  color: var(--dock-text);
}

.device-app__metric--hero {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.device-app__value {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--dock-text);
}

.device-app__unit {
  font-size: 14px;
  color: var(--dock-text-muted);
  font-weight: 600;
}

.device-app__hint {
  font-size: 10px;
  color: var(--dock-text-muted);
}

.device-app__chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 56px;
  padding: 8px 10px;
  background: var(--dock-surface);
  border-radius: 10px;
  border: 1px solid var(--dock-surface-border);
}

.device-app__bar {
  flex: 1;
  height: var(--h);
  background: rgba(46, 204, 113, 0.3);
  border-radius: 3px 3px 1px 1px;
}

.device-app__bar--active {
  background: linear-gradient(180deg, #66bb6a, #43a047);
}

.device-app__gauge {
  height: 8px;
  border-radius: 4px;
  background: var(--dock-surface);
  overflow: hidden;
}

.device-app__gauge-fill {
  height: 100%;
  width: var(--pct);
  background: linear-gradient(90deg, var(--accent-green-bright), var(--accent-orange));
  border-radius: 4px;
}

.device-app__donut {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 4px auto;
  border-radius: 50%;
  background: conic-gradient(#66bb6a calc(var(--pct) * 1%), var(--dock-surface) 0);
  display: grid;
  place-items: center;
}

.device-app__donut::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--dock-screen);
}

.device-app__donut span {
  position: relative;
  font-size: 14px;
  font-weight: 700;
  color: #d4ac0d;
}

.device-app__map-mini svg {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--dock-surface-border);
}

.device-app__list {
  list-style: none;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.device-app__list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: var(--dock-surface);
  border-radius: 8px;
  font-size: 10px;
  color: var(--dock-text-muted);
}

.device-app__list strong {
  color: var(--dock-text);
  font-weight: 600;
}

.brand__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand__name {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-green);
}

.brand__tagline {
  font-size: 8px;
  color: var(--text-muted);
  margin-top: 2px;
}

.scroll-hint {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.scroll-hint__arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--accent-green));
}

/* ── Site shell + header ── */
.site-shell {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  width: 100%;
  height: var(--header-h);
  padding: 0 24px;
  background: linear-gradient(180deg, #3a3f44 0%, #2a2e32 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  z-index: 20;
}

.site-header__start {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.site-header__end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-header__brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.site-header__brand:hover { opacity: 0.85; }

.site-header__brand img {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
}

.site-header__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #f2f5f3;
  line-height: 1;
}

.site-header__title-accent {
  color: var(--logo-green);
}

.site-header__nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-header__nav-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s;
}

.site-header__nav-link:hover {
  color: var(--accent-green-bright);
}

.site-header__phone {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.site-header__phone:hover {
  color: var(--accent-green-bright);
}

.site-header__cta {
  flex-shrink: 0;
  padding: 9px 18px;
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.site-header__cta--primary {
  background: var(--accent-green);
  color: #fff;
  box-shadow: 0 2px 10px var(--glow-green);
}

.site-header__cta--primary:hover {
  background: var(--accent-green-dark);
}

.site-header__cta--outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.site-header__cta--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}

.site-header__lang {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.site-header__lang-btn {
  min-width: 38px;
  padding: 6px 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.site-header__lang-btn:hover {
  color: rgba(255, 255, 255, 0.88);
}

.site-header__lang-btn.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Бургер-меню: виден только на мобильных */
.site-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  flex-shrink: 0;
}

.site-header__burger span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.85);
  transition: transform 0.25s, opacity 0.2s;
}

.site-header.is-menu-open .site-header__burger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-menu-open .site-header__burger span:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .site-header__burger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── Main page ── */
.page {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr var(--panel-w);
  min-height: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* ── Farm map (3D canvas) ── */
.farm-map {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(200, 230, 201, 0.5) 0%, transparent 65%),
    radial-gradient(ellipse 80% 60% at 50% 80%, rgba(232, 245, 233, 0.6) 0%, transparent 70%),
    var(--bg-map);
}

.farm-map__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.farm-map__grid-lines {
  position: absolute;
  inset: 0;
  opacity: 1;
  background-image:
    linear-gradient(rgba(67, 160, 71, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 160, 71, 0.16) 1px, transparent 1px);
  background-size: 48px 48px;
}

.farm-map__grid-pulses {
  position: absolute;
  inset: 0;
}

.grid-impulse {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}

.grid-impulse--h {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color) 50%, transparent 100%);
  box-shadow: 0 0 8px var(--glow), 0 0 16px var(--glow);
}

.grid-impulse--v {
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--color) 50%, transparent 100%);
  box-shadow: 0 0 8px var(--glow), 0 0 16px var(--glow);
}

@keyframes grid-impulse-h {
  0% { transform: translateX(0); opacity: 0; }
  12% { opacity: var(--peak); }
  88% { opacity: var(--peak); }
  100% { transform: translateX(var(--dx)); opacity: 0; }
}

@keyframes grid-impulse-v {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: var(--peak); }
  88% { opacity: var(--peak); }
  100% { transform: translateY(var(--dy)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .grid-impulse { display: none; }
}

.farm-map__canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  position: relative;
  z-index: 1;
}

.farm-map__canvas:active { cursor: grabbing; }

.farm-map__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.farm-status {
  position: absolute;
  top: 20px;
  left: 24px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: 80px;
  pointer-events: auto;
}

.farm-status__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  padding: 6px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  font: inherit;
  color: inherit;
  pointer-events: auto;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.farm-status__item:hover {
  border-color: var(--accent-green);
}

.farm-status__item--active {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px var(--glow-green), var(--shadow-sm);
}

.farm-status__item--alert {
  border-color: rgba(255, 193, 7, 0.45);
  background: #fffbeb;
  box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.12), var(--shadow-sm);
}

.farm-status__item--alert:hover {
  border-color: rgba(255, 193, 7, 0.65);
  background: #fff8e1;
}

.farm-status__item--alert.farm-status__item--active {
  border-color: #ffc107;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.28), var(--shadow-sm);
  background: #fff8e1;
}

.farm-status__value {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-green-dark);
  line-height: 1.1;
}

.farm-status__label {
  margin-top: 0;
  margin-bottom: 4px;
  font-size: 7px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.15;
}

.farm-status__item--hover-only {
  cursor: default;
}

.farm-status__item--hover-only:hover {
  border-color: var(--accent-green);
}

.zone-data-panels {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.zone-data-panels .zone-data-panel--multi {
  position: absolute;
  min-width: 168px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--accent-green);
  border-radius: 12px;
  box-shadow: 0 0 0 3px var(--glow-green), 0 8px 28px rgba(30, 60, 40, 0.14);
}

.zone-data-panel {
  position: absolute;
  z-index: 3;
  min-width: 168px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--accent-green);
  border-radius: 12px;
  box-shadow: 0 0 0 3px var(--glow-green), 0 8px 28px rgba(30, 60, 40, 0.14);
  pointer-events: none;
}

.zone-data-panel__title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-green-dark);
  margin-bottom: 10px;
}

.zone-data-panel__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  line-height: 1.45;
}

.zone-data-panel__row + .zone-data-panel__row {
  margin-top: 6px;
}

.zone-data-panel__row--warning {
  margin-top: 6px;
  margin-left: -4px;
  margin-right: -4px;
  padding: 5px 6px;
  border: 1px solid #ffc107;
  border-radius: 6px;
  background: #fffbeb;
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.22);
}

.zone-data-panel__row--warning + .zone-data-panel__row {
  margin-top: 6px;
}

.camera-tune {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 4;
  max-width: min(360px, calc(100% - 40px));
  padding: 12px 14px;
  background: rgba(20, 32, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #e8f5e9;
  font-size: 12px;
  line-height: 1.45;
  pointer-events: none;
}

.camera-tune__title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a5d6a7;
  margin-bottom: 6px;
}

.camera-tune__zone {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}

.camera-tune__values {
  font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
  font-size: 11px;
  color: #fff9c4;
  margin-bottom: 6px;
}

.camera-tune__hint {
  font-size: 11px;
  color: rgba(232, 245, 233, 0.72);
}

.zone-data-panel__row span {
  color: var(--text-muted);
}

.zone-data-panel__row strong {
  color: var(--text-primary);
  font-weight: 700;
  white-space: nowrap;
}

.map-preloader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg-map);
  transition: opacity 0.6s ease, visibility 0.6s;
  z-index: 20;
}

.map-preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.map-preloader__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.map-preloader__bar {
  width: 200px;
  height: 3px;
  background: var(--accent-green-pale);
  border-radius: 2px;
  overflow: hidden;
}

.map-preloader__fill {
  height: 100%;
  width: 0%;
  background: var(--accent-green);
  transition: width 0.2s ease;
}

.map-preloader__label--error { color: #c62828; }

.map-preloader__error {
  max-width: 360px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0 20px;
}

.map-preloader__error-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.map-preloader__error-hint code {
  padding: 2px 6px;
  background: var(--accent-green-pale);
  border-radius: 4px;
  font-size: 11px;
}

/* ── Equipment panel ── */
.equipment-panel {
  position: relative;
  height: 100%;
  max-height: var(--panel-view-h);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  border-left: 1px solid var(--border);
  background: var(--bg-panel);
  box-shadow: -4px 0 24px rgba(30, 60, 40, 0.04);
  scrollbar-width: thin;
  scrollbar-color: var(--accent-green-soft) transparent;
}

.equipment-panel__bg {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--panel-w);
  height: 100%;
  background: var(--bg-panel);
  z-index: -1;
}

.equipment-panel__content {
  display: flex;
  flex-direction: column;
}

/* Equipment cards */
.equipment-list {
  display: flex;
  flex-direction: column;
}

.equipment-card {
  position: relative;
  display: block;
  height: var(--equipment-card-h);
  min-height: var(--equipment-card-h);
  flex-shrink: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
  transition: transform 0.2s;
}

.equipment-card:hover,
.equipment-card.active {
  z-index: 1;
}

.equipment-card__bg {
  position: absolute;
  inset: 0;
  background: var(--bg-card-hover);
  opacity: 0;
  transition: opacity 0.25s, box-shadow 0.25s;
}

.equipment-card:hover .equipment-card__bg,
.equipment-card.active .equipment-card__bg {
  opacity: 1;
  box-shadow: inset 4px 0 0 var(--accent-green);
}

.equipment-card.active .equipment-card__bg {
  background: linear-gradient(90deg, var(--accent-green-pale) 0%, var(--bg-panel) 50%);
}

.equipment-card__body {
  position: relative;
  height: 100%;
  padding: 20px 15px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px 15px;
  align-items: center;
}

.equipment-card__content {
  min-width: 0;
  cursor: pointer;
}

.equipment-card__num {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent-green-dark);
  text-transform: uppercase;
}

.equipment-card__badge {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.equipment-card__aside .equipment-card__badge {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  border-radius: 10px;
  text-align: center;
  box-sizing: border-box;
}

.equipment-card__aside {
  display: grid;
  grid-template-columns: max-content 44px;
  grid-template-rows: auto 44px;
  gap: 8px;
  flex-shrink: 0;
  align-self: center;
}

.equipment-card__order {
  display: contents;
}

.equipment-card__qty {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: center;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.equipment-card__cart {
  grid-column: 2;
  grid-row: 2;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--accent-green-pale);
  color: var(--accent-green-dark);
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
}

.equipment-card__body > .equipment-card__badge {
  align-self: center;
}

.equipment-card__qty-btn {
  width: 30px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.equipment-card__qty-btn:hover:not(:disabled) {
  color: var(--accent-green-dark);
  background: var(--accent-green-pale);
}

.equipment-card__qty-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.equipment-card__qty-value {
  min-width: 28px;
  padding: 0 2px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
}

.equipment-card__cart svg {
  width: 22px;
  height: 22px;
}

.equipment-card:hover .equipment-card__cart,
.equipment-card.active .equipment-card__cart {
  border-color: var(--accent-green);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--glow-green);
  color: var(--accent-green-dark);
}

.equipment-card__cart:hover {
  border-color: var(--accent-green);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--glow-green);
}

.equipment-card__acronym {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 4px;
  line-height: 1.1;
  color: var(--text-primary);
}

.equipment-card__badge--order {
  background: #fff3e0;
  color: #e65100;
}

.equipment-card__badge--installed {
  background: #e3f2fd;
  color: #1565c0;
}

.equipment-card__badge--soon {
  background: #f3f4f6;
  color: #6b7280;
}

.equipment-card__badge--progress {
  background: #fff8e1;
  color: #f57f17;
}

.equipment-card__badge--available {
  background: var(--accent-green-pale);
  color: var(--accent-green-dark);
}

.equipment-card__subtitle {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  margin-top: 5px;
  color: var(--text-muted);
}

.equipment-card__desc {
  grid-column: 1;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 6px;
}

.equipment-card__icon {
  position: relative;
  flex-shrink: 0;
  width: var(--equipment-card-icon);
  height: var(--equipment-card-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.equipment-card__icon::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: rgba(26, 46, 31, 0.55);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.equipment-card__more {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.equipment-card__more-enter {
  display: inline-block;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}

.equipment-card:hover .equipment-card__icon,
.equipment-card.active .equipment-card__icon {
  border-color: var(--accent-green);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--glow-green);
}

.equipment-card:hover .equipment-card__icon::before,
.equipment-card.active .equipment-card__icon::before,
.equipment-card:hover .equipment-card__more,
.equipment-card.active .equipment-card__more {
  opacity: 1;
}

.equipment-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  transition: transform 0.22s ease;
}

.equipment-card:hover .equipment-card__icon img,
.equipment-card.active .equipment-card__icon img {
  transform: scale(1.03);
}

.equipment-card__icon--bare {
  background: transparent;
  border: none;
  border-radius: 8px;
  overflow: hidden;
}

.equipment-card:hover .equipment-card__icon--bare,
.equipment-card.active .equipment-card__icon--bare {
  border: none;
  background: transparent;
  box-shadow: none;
}

.equipment-card:hover .equipment-card__icon--bare::before,
.equipment-card.active .equipment-card__icon--bare::before,
.equipment-card:hover .equipment-card__icon--bare .equipment-card__more,
.equipment-card.active .equipment-card__icon--bare .equipment-card__more {
  opacity: 1;
}

.equipment-card__icon--bare img {
  padding: 0;
}

.equipment-card__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}

.equipment-card--drawer-open .equipment-card__close {
  display: flex;
}

.equipment-card__close:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px var(--glow-green);
}

.equipment-card--custom {
  cursor: pointer;
}

.equipment-card--custom .equipment-card__icon {
  overflow: hidden;
}

.equipment-card--custom .equipment-card__icon img {
  width: 113px;
  height: 113px;
  padding: 0;
}

.equipment-card__custom-text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
  max-width: 28ch;
}

.equipment-card__contact {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--accent-green);
  cursor: pointer;
  transition: background 0.2s;
}

.equipment-card__contact:hover {
  background: var(--accent-green-dark);
}

/* ── Equipment detail drawer ── */
.equipment-drawer {
  position: absolute;
  top: 0;
  left: 0;
  right: var(--panel-w);
  bottom: 0;
  z-index: 25;
  pointer-events: none;
  visibility: hidden;
}

.equipment-drawer--open {
  pointer-events: auto;
  visibility: visible;
}

.equipment-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 46, 31, 0.14);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.equipment-drawer--open .equipment-drawer__backdrop {
  opacity: 1;
}

.equipment-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 34vw);
  height: 100%;
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 40px rgba(30, 60, 40, 0.12);
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.equipment-drawer--open .equipment-drawer__panel {
  transform: translateX(0);
}

.equipment-drawer__head {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
}

.equipment-drawer__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 2px;
}

.equipment-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.equipment-drawer__close:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: #fff;
}

.equipment-drawer__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--accent-green-pale);
  line-height: 0;
  flex-shrink: 0;
}

.equipment-drawer__media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 10 / 7;
  object-fit: contain;
  background: #fff;
}

.equipment-drawer__desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  white-space: pre-line;
}

.equipment-drawer__actions {
  flex-shrink: 0;
  padding-top: 4px;
}

.equipment-drawer__order-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.equipment-drawer__qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.equipment-drawer__qty-btn {
  width: 42px;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-green-dark);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.equipment-drawer__qty-btn:hover:not(:disabled) {
  background: var(--accent-green-pale);
}

.equipment-drawer__qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.equipment-drawer__qty-value {
  min-width: 32px;
  padding: 0 4px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.equipment-drawer__btn--order {
  flex: 1;
}

.equipment-drawer__btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.equipment-drawer__btn--primary {
  border: none;
  background: var(--accent-green);
  color: #fff;
  box-shadow: 0 4px 14px var(--glow-green);
}

.equipment-drawer__btn--primary:hover {
  background: var(--accent-green-dark);
}

.equipment-drawer__btn--outline {
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--accent-green-dark);
}

.equipment-drawer__btn--outline:hover {
  background: var(--accent-green-pale);
}

/* ── Site footer ── */
.site-footer {
  flex-shrink: 0;
  width: 100%;
  min-height: var(--footer-h);
  background: linear-gradient(180deg, #2a2e32 0%, #22262a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: var(--footer-h);
  max-width: 100%;
  padding: 12px 24px;
}

.site-footer__legal {
  justify-self: start;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
  max-width: min(420px, 38vw);
}

.site-footer__legal-name {
  font-size: 12px;
  font-weight: 700;
  color: #f2f5f3;
  line-height: 1.35;
}

.site-footer__legal-bin {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.35;
}

.site-footer__legal-address {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.45);
}

.site-footer__address-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer__map {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.site-footer__map-caption {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.site-footer__map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.62);
  flex-shrink: 0;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.site-footer__map-link svg {
  width: 20px;
  height: 20px;
}

.site-footer__map-link:hover {
  color: var(--accent-green-bright);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.site-footer__nav {
  justify-self: center;
}

.site-footer__nav-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__nav-link:hover {
  color: var(--accent-green-bright);
}

.site-footer__end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.site-footer__social-link svg {
  width: 28px;
  height: 28px;
}

.site-footer__social-link:hover {
  color: var(--accent-green-bright);
  background: rgba(255, 255, 255, 0.06);
}

.site-footer__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.site-footer__meta a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.site-footer__meta a:hover {
  color: var(--accent-green-bright);
}

/* ── Onboarding ── */
.onboarding {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(26, 46, 31, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}

.onboarding--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.onboarding__card {
  width: min(440px, 100%);
  padding: 28px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(30, 60, 40, 0.2);
}

.onboarding__step {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-green-dark);
}

.onboarding__card h2 {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
}

.onboarding__list {
  margin: 16px 0 20px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.onboarding__list li + li { margin-top: 8px; }

.onboarding__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.onboarding__btn {
  padding: 12px 16px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.onboarding__btn--primary {
  background: var(--accent-green);
  color: #fff;
}

.onboarding__btn--ghost {
  background: transparent;
  color: var(--text-muted);
}

/* ── Order modal ── */
.order-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  visibility: hidden;
}

.order-modal--open {
  pointer-events: auto;
  visibility: visible;
}

.order-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 46, 31, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
}

.order-modal--open .order-modal__backdrop { opacity: 1; }

.order-modal__panel {
  position: relative;
  width: min(420px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(30, 60, 40, 0.2);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}

.order-modal--open .order-modal__panel {
  transform: translateY(0);
  opacity: 1;
}

.order-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  color: var(--text-muted);
}

.order-modal__title {
  font-size: 22px;
  font-weight: 700;
  padding-right: 36px;
}

.order-modal__subtitle {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.order-form__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-form__field span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.order-form__field input {
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
}

.order-form__field input:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px var(--glow-green);
}

.order-form__submit {
  margin-top: 4px;
  padding: 13px 16px;
  border: none;
  border-radius: 10px;
  background: var(--accent-green);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.order-form__submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.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;
}

.gm-form-consent {
  margin-top: 4px;
}

.gm-form-consent__label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.gm-form-consent__checkbox {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent-green);
}

.gm-form-consent__text {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

.gm-form-consent__text a {
  color: var(--accent-green-dark);
  text-decoration: underline;
}

.gm-form-consent__text a:hover {
  text-decoration: none;
}

.gm-form-consent__error {
  margin-top: 6px;
  font-size: 12px;
  color: #b3261e;
}

.gm-form-status {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.gm-form-status--success {
  background: rgba(46, 125, 50, 0.12);
  color: #1b5e20;
}

.gm-form-status--error {
  background: rgba(198, 40, 40, 0.1);
  color: #b3261e;
}

.order-success {
  text-align: center;
  padding: 12px 0;
}

.order-success__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-green-pale);
  color: var(--accent-green-dark);
  font-size: 22px;
  font-weight: 700;
}

.order-success h3 {
  font-size: 20px;
  font-weight: 700;
}

.order-success p {
  margin: 10px 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  :root { --dock-w: 0px; }

  .device-dock { display: none; }

  .site-shell { grid-column: 1; }
}

@media (max-width: 900px) {
  .site-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 8px 16px;
    height: auto;
    min-height: var(--header-h);
  }

  .site-header__start {
    flex: 1;
    min-width: 0;
    gap: 10px;
  }

  .site-header__end {
    flex-shrink: 0;
    gap: 8px;
  }

  .site-header__nav {
    order: 3;
    width: 100%;
    justify-content: center;
    display: flex;
    padding-bottom: 2px;
  }

  .site-header__title {
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .site-header__phone {
    font-size: 11px;
  }

  .site-header__cta {
    padding: 8px 10px;
    font-size: 11px;
  }

  .site-header__lang-btn {
    min-width: 34px;
    padding: 6px 6px;
    font-size: 10px;
  }

  .app {
    grid-template-columns: 1fr;
  }

  .page {
    grid-template-columns: 1fr;
    grid-template-rows: 55vh 1fr;
  }

  :root {
    --panel-view-h: calc(100vh - var(--header-h) - var(--footer-h) - 55vh);
  }

  .site-header__brand img {
    width: 34px;
    height: 34px;
  }

  .farm-status {
    top: 16px;
    left: 12px;
    right: auto;
    max-width: 72px;
  }

  .farm-status__item {
    width: 72px;
    height: 72px;
  }

  .equipment-panel {
    border-left: none;
    border-top: 1px solid var(--border);
    height: 100%;
  }

  .equipment-panel__bg { display: none; }

  .equipment-drawer {
    right: 0;
    left: 0;
  }

  .equipment-drawer__panel {
    width: 100%;
    max-width: 400px;
  }
}

/* ── Mobile (Samsung A51 / ~412px и уже) ── */
@media (max-width: 600px) {
  /* Страница — обычная прокрутка; высота только по контенту */
  html, body {
    height: auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: #22262a;
  }

  body {
    display: block;
  }

  .app {
    display: block;
    flex: none;
    min-height: 0;
    background: var(--bg-deep);
  }

  .site-shell {
    overflow: visible;
  }

  .page {
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  /* Хедер: одна компактная строка (логотип · телефон · бургер),
     навигация, кнопки и языки — в выпадающем меню */
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px 10px;
    height: auto;
    min-height: 0;
    padding: 8px 14px;
  }

  .site-header__start,
  .site-header__end {
    display: contents;
  }

  .site-header__brand {
    grid-column: 1;
    grid-row: 1;
  }

  .site-header__brand img {
    width: 32px;
    height: 32px;
  }

  .site-header__title {
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .site-header__phone {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    font-size: 12px;
  }

  .site-header__burger {
    display: flex;
    grid-column: 3;
    grid-row: 1;
  }

  /* Пункты меню скрыты, пока бургер закрыт */
  .site-header__nav,
  .site-header__lang,
  .site-header__cta--outline,
  .site-header__cta--primary {
    display: none;
  }

  .site-header.is-menu-open .site-header__nav {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-header.is-menu-open .site-header__nav-link {
    font-size: 13px;
    padding: 12px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-header.is-menu-open .site-header__cta--outline {
    display: block;
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    padding: 12px 8px;
    font-size: 13px;
  }

  .site-header.is-menu-open .site-header__cta--primary {
    display: block;
    grid-column: 1 / -1;
    grid-row: 4;
    width: 100%;
    padding: 12px 8px;
    font-size: 13px;
  }

  .site-header.is-menu-open .site-header__lang {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 5;
    justify-self: center;
    margin: 2px 0 4px;
  }

  .site-header__lang-btn {
    min-width: 34px;
    padding: 7px 6px;
    font-size: 11px;
  }

  /* Карта: фиксированная высота, остальное скроллится под ней */
  .farm-map {
    flex: none;
    height: 38vh;
    min-height: 260px;
  }

  .farm-status {
    top: 12px;
    left: 10px;
    gap: 5px;
    max-width: 64px;
  }

  .farm-status__item {
    width: 64px;
    height: 64px;
    border-radius: 7px;
  }

  .farm-status__value {
    font-size: 12px;
  }

  .farm-status__label {
    font-size: 6.5px;
  }

  /* Плашки с данными над техникой — на 30% меньше */
  .zone-data-panel,
  .zone-data-panels .zone-data-panel--multi {
    min-width: 148px;
    padding: 10px 12px;
    transform: scale(0.7);
    transform-origin: 50% 100%;
  }

  .zone-data-panel__row {
    font-size: 11px;
  }

  /* Панель оборудования: карточки естественной высоты, скроллятся вместе со страницей */
  :root {
    --equipment-card-icon: 72px;
    /* 100vh − карта 38vh − хедер ~56px, делим на 4 карточки */
    --equipment-card-h-mobile: calc((62vh - 56px) / 4);
  }

  .equipment-panel {
    max-height: none;
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
    border-top: 1px solid var(--border);
  }

  /* Карточки товаров: как на десктопе — горизонтальные ряды.
     Высота подобрана так, чтобы 01–04 занимали первый экран,
     а 05 «Разработка» выезжала при скролле. */
  .equipment-card {
    height: var(--equipment-card-h-mobile);
    min-height: 96px;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .equipment-card__body {
    padding: 10px 14px;
    gap: 8px 12px;
  }

  .equipment-card--custom .equipment-card__content {
    min-width: 0;
  }

  .equipment-card__num {
    font-size: 10px;
  }

  .equipment-card__acronym {
    font-size: 18px;
  }

  /* Описание товара — до двух строк */
  .equipment-card__subtitle {
    font-size: 11px;
    line-height: 1.4;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Бейдж наличия и счётчик смещены левее, корзина остаётся у края */
  .equipment-card__aside {
    grid-template-columns: max-content 40px;
    grid-template-rows: auto 40px;
    gap: 7px 22px;
    margin-right: 0;
    margin-left: 0;
  }

  .equipment-card__qty,
  .equipment-card__qty-btn {
    height: 40px;
  }

  .equipment-card__qty-btn {
    width: 27px;
  }

  .equipment-card__qty-value {
    min-width: 24px;
    font-size: 13px;
  }

  .equipment-card__cart {
    width: 40px;
    height: 40px;
  }

  .equipment-card__cart svg {
    width: 20px;
    height: 20px;
  }

  .equipment-card--custom .equipment-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .equipment-card__custom-text {
    font-size: 13.5px;
    max-width: none;
  }

  /* Каталог-шторка: во весь экран поверх всего */
  .equipment-drawer {
    position: fixed;
    inset: 0;
    right: 0;
    left: 0;
    z-index: 60;
  }

  .equipment-drawer__panel {
    width: 100%;
    max-width: none;
    padding: 12px 16px 16px;
  }

  .equipment-drawer__desc {
    font-size: 14px;
  }

  .site-footer__meta {
    font-size: 11px;
  }
}

/* ── Footer mobile / tablet (до 900px) ── */
@media (max-width: 900px) {
  .site-footer {
    min-height: 0;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  }

  .site-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 14px 10px;
    min-height: 0;
    padding: 18px 16px 16px;
    text-align: left;
  }

  .site-footer__legal {
    grid-column: 1 / -1;
    justify-self: stretch;
    align-items: flex-start;
    max-width: none;
  }

  .site-footer__legal-name,
  .site-footer__legal-bin {
    align-self: center;
    width: 100%;
    text-align: center;
  }

  .site-footer__address-row {
    width: 100%;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
  }

  .site-footer__legal-address {
    text-align: left;
  }

  .site-footer__end {
    display: contents;
  }

  .site-footer__social {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    gap: 10px;
  }

  .site-footer__social-link {
    width: 40px;
    height: 40px;
  }

  .site-footer__social-link svg {
    width: 24px;
    height: 24px;
  }

  .site-footer__nav {
    grid-column: 1;
    grid-row: 4;
    display: block;
    justify-self: start;
    align-self: end;
    width: auto;
    max-width: min(58%, 240px);
    margin: 0;
    padding: 0;
    text-align: left;
  }

  .site-footer__nav-link {
    display: block;
    text-align: left;
    line-height: 1.35;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
  }

  .site-footer__meta {
    display: contents;
    font-size: 11px;
  }

  .site-footer__meta span {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    text-align: left;
    width: 100%;
  }

  .site-footer__meta a {
    grid-column: 2;
    grid-row: 4;
    justify-self: end;
    align-self: end;
  }
}
