/* eh.css — оформление «Korean Heritage»: молочный фон, глубокий зелёный,
   приглушённое золото; много воздуха, крупные фото, минимум декора.
   Подключается после style.css и переопределяет его. */

:root {
  --eh-green: #26352e;
  --eh-green-2: #34463c;
  --eh-milk: #f5f1e8;
  --eh-paper: #fbf9f4;
  --eh-white: #ffffff;
  --eh-gold: #a78b59;
  --eh-gold-2: #8b7247;
  --eh-gold-soft: #e9dfcb;
  --eh-sage: #69756c;
  --eh-ink: #1f2723;
  --eh-line: #e2dacb;
  --eh-red: #9b3b2f;
  --eh-ok: #3d6b4f;
  --eh-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --eh-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --eh-radius: 14px;
  --eh-radius-sm: 10px;
  --eh-shadow: 0 1px 2px rgba(38, 53, 46, 0.05), 0 8px 24px rgba(38, 53, 46, 0.06);
  --eh-wrap: 1240px;
}

/* ---------- база ---------- */
body.eh {
  margin: 0;
  background: var(--eh-milk);
  color: var(--eh-ink);
  font-family: var(--eh-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.eh a { color: var(--eh-green); text-underline-offset: 3px; }
body.eh a:hover { color: var(--eh-gold-2); }
body.eh h1, body.eh h2, body.eh h3 { font-family: var(--eh-serif); font-weight: 600; color: var(--eh-green); letter-spacing: 0.005em; line-height: 1.15; }
body.eh h1 { font-size: clamp(32px, 4vw, 46px); margin: 6px 0 10px; }
body.eh h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 14px; }
body.eh h3 { font-size: 22px; margin: 0 0 8px; }
body.eh h4 { font-family: var(--eh-sans); font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--eh-sage); margin: 0 0 12px; }
body.eh img { max-width: 100%; }
body.eh input, body.eh select, body.eh textarea, body.eh button { font-family: inherit; font-size: 15px; }
body.eh input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.eh select, body.eh textarea {
  border: 1px solid var(--eh-line);
  border-radius: var(--eh-radius-sm);
  background: var(--eh-white);
  color: var(--eh-ink);
  padding: 10px 12px;
  min-height: 44px;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
body.eh input:focus, body.eh select:focus, body.eh textarea:focus { outline: none; border-color: var(--eh-gold); box-shadow: 0 0 0 3px rgba(167, 139, 89, 0.18); }
body.eh :focus-visible { outline: 2px solid var(--eh-gold); outline-offset: 2px; }
body.eh label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--eh-sage); }
body.eh table { border-collapse: collapse; }

body.eh .eh-wrap { max-width: var(--eh-wrap); margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
body.eh .eh-main { min-height: 60vh; }
body.eh .eh-muted { color: var(--eh-sage); }
body.eh .eh-small { font-size: 12.5px; color: var(--eh-sage); line-height: 1.5; }
body.eh .eh-overline { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--eh-gold-2); }
body.eh .eh-lead-text { font-size: 17px; color: #45504a; max-width: 640px; }
body.eh .eh-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.eh .eh-skip { position: absolute; left: -999px; top: 8px; background: var(--eh-green); color: #fff !important; padding: 8px 14px; border-radius: 8px; z-index: 100; }
body.eh .eh-skip:focus { left: 8px; }
body.eh .eh-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
body.eh .right { text-align: right; }
body.eh .center { text-align: center; }

/* ---------- кнопки ---------- */
body.eh button { margin-top: 0; }
body.eh .eh-btn, body.eh .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; box-sizing: border-box;
  background: var(--eh-green); color: #fff !important; border: 1px solid var(--eh-green);
  border-radius: 999px; font-weight: 600; font-size: 14.5px; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.05s;
}
body.eh .eh-btn:hover, body.eh .btn:hover { background: var(--eh-green-2); border-color: var(--eh-green-2); color: #fff !important; }
body.eh .eh-btn:active { transform: translateY(1px); }
body.eh .eh-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
body.eh .eh-btn-ghost, body.eh .btn-outline { background: transparent; color: var(--eh-green) !important; border: 1px solid rgba(38, 53, 46, 0.35); }
body.eh .eh-btn-ghost:hover, body.eh .btn-outline:hover { background: rgba(38, 53, 46, 0.06); color: var(--eh-green) !important; border-color: var(--eh-green); }
body.eh .eh-btn-gold { background: var(--eh-gold); border-color: var(--eh-gold); }
body.eh .eh-btn-gold:hover { background: var(--eh-gold-2); border-color: var(--eh-gold-2); }
body.eh .eh-btn-sm { min-height: 38px; padding: 7px 16px; font-size: 13.5px; }
body.eh .eh-btn-lg { min-height: 52px; padding: 13px 30px; font-size: 15.5px; }
body.eh .eh-btn-block { width: 100%; }
body.eh .eh-icon-btn { border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--eh-sage); cursor: pointer; width: 36px; height: 36px; border-radius: 50%; }
body.eh .eh-icon-btn:hover { background: var(--eh-milk); color: var(--eh-red); }
body.eh .eh-link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
body.eh .eh-link-arrow::after { content: " →"; }
body.eh .link-btn { color: var(--eh-sage); }

/* ---------- шапка ---------- */
body.eh .eh-adminbar { background: #1a241f; color: #cfd6d1; font-size: 12.5px; }
body.eh .eh-adminbar .eh-wrap { display: flex; gap: 18px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
body.eh .eh-adminbar a { color: #f2e7cf !important; text-decoration: none; }
body.eh .eh-topline { background: var(--eh-green); color: #dfe5e0; font-size: 12.5px; }
body.eh .eh-topline .eh-wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
body.eh .eh-topline a { color: #f2e7cf !important; text-decoration: none; font-weight: 600; }
body.eh .eh-topline-contacts { display: flex; gap: 18px; white-space: nowrap; }
body.eh .eh-header { background: rgba(251, 249, 244, 0.96); border-bottom: 1px solid var(--eh-line); position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(1.2) blur(8px); }
body.eh .eh-header-row { display: flex; align-items: center; gap: 22px; min-height: 76px; }
body.eh .eh-logo { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; flex: 0 0 auto; }
body.eh .eh-logo-note { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--eh-sage); margin-top: 2px; }
body.eh .eh-wordmark { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--eh-green); }
body.eh .eh-wordmark-top { font-family: var(--eh-sans); font-weight: 700; letter-spacing: 0.18em; font-size: 26px; position: relative; }
body.eh .eh-wordmark-top i { position: absolute; right: -14px; top: -6px; width: 12px; height: 7px; background: var(--eh-gold); border-radius: 0 100% 0 100%; transform: rotate(-20deg); }
body.eh .eh-wordmark-bottom { font-size: 11px; letter-spacing: 0.55em; margin-top: 4px; padding-left: 0.55em; font-weight: 600; }
body.eh .eh-wordmark-sm .eh-wordmark-top { font-size: 19px; }
body.eh .eh-wordmark-sm .eh-wordmark-bottom { font-size: 9px; }
body.eh .eh-nav { display: flex; gap: 4px; flex: 1 1 auto; justify-content: center; }
body.eh .eh-nav a { color: var(--eh-ink) !important; text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
body.eh .eh-nav a:hover { background: var(--eh-milk); }
body.eh .eh-nav a.is-active { color: var(--eh-green) !important; box-shadow: inset 0 -2px 0 var(--eh-gold); border-radius: 0; }
body.eh .eh-search { display: flex; align-items: center; background: var(--eh-white); border: 1px solid var(--eh-line); border-radius: 999px; padding: 0 4px 0 14px; width: 230px; }
body.eh .eh-search input { border: 0 !important; box-shadow: none !important; min-height: 40px !important; padding: 0 !important; flex: 1; background: transparent !important; min-width: 0; }
body.eh .eh-search button { border: 0; background: transparent; width: 36px; height: 36px; cursor: pointer; display: grid; place-items: center; }
body.eh .eh-search svg, body.eh .eh-icon-link svg, body.eh .eh-burger svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body.eh .eh-account { display: flex; align-items: center; gap: 6px; }
body.eh .eh-icon-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 999px; text-decoration: none; color: var(--eh-ink) !important; font-weight: 600; font-size: 14px; position: relative; }
body.eh .eh-icon-link:hover, body.eh .eh-icon-link.is-active { background: var(--eh-milk); }
body.eh .eh-count { position: absolute; top: 0; left: 22px; background: var(--eh-gold); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; box-sizing: border-box; }
body.eh .eh-userline { border-top: 1px solid var(--eh-line); background: var(--eh-paper); font-size: 12.5px; color: var(--eh-sage); }
body.eh .eh-userline .eh-wrap { display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding-top: 4px; padding-bottom: 4px; }
body.eh .eh-userline .badge { background: var(--eh-gold-soft); color: var(--eh-gold-2); border-radius: 999px; padding: 1px 9px; font-weight: 600; }
body.eh .eh-userline .link-btn { font-size: 12.5px; }
body.eh .eh-burger { display: none; position: relative; }
body.eh .eh-burger summary { list-style: none; cursor: pointer; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; }
body.eh .eh-burger summary::-webkit-details-marker { display: none; }
body.eh .eh-burger[open] summary { background: var(--eh-milk); }
body.eh .eh-mobile-nav { position: absolute; top: 50px; left: 0; width: min(86vw, 320px); background: var(--eh-white); border: 1px solid var(--eh-line); border-radius: var(--eh-radius); box-shadow: var(--eh-shadow); padding: 8px; display: flex; flex-direction: column; z-index: 50; }
body.eh .eh-mobile-nav a { padding: 12px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--eh-ink) !important; }
body.eh .eh-mobile-nav a:hover, body.eh .eh-mobile-nav a.is-active { background: var(--eh-milk); }
body.eh .eh-notices { padding-top: 16px; }
body.eh .flash { border-radius: var(--eh-radius-sm); padding: 12px 16px; margin: 0 0 12px; font-weight: 500; border: 1px solid transparent; }
body.eh .flash-success { background: #e8f0ea; border-color: #c8dccd; color: #24432f; }
body.eh .flash-error { background: #f7ebe7; border-color: #ead0c8; color: #7a2e22; }

/* ---------- страница (для обычных страниц без bare) ---------- */
body.eh .container { max-width: var(--eh-wrap); margin: 0 auto; padding: 32px 24px 56px; box-sizing: border-box; }
body.eh .container.wide { max-width: 1440px; }
body.eh .auth-card { max-width: 460px; margin: 24px auto; background: var(--eh-white); border: 1px solid var(--eh-line); border-radius: var(--eh-radius); padding: 32px; box-shadow: var(--eh-shadow); }
body.eh .card { background: var(--eh-white); border: 1px solid var(--eh-line); border-radius: var(--eh-radius); box-shadow: none; }
body.eh .eh-page-head { padding-top: 28px; padding-bottom: 8px; }
body.eh .eh-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--eh-sage); }
body.eh .eh-crumbs a { color: var(--eh-sage) !important; text-decoration: none; }
body.eh .eh-crumbs a:hover { color: var(--eh-green) !important; text-decoration: underline; }

/* ---------- первый экран ---------- */
body.eh .eh-hero { background: radial-gradient(1200px 500px at 85% 10%, #efe6d4 0%, rgba(239, 230, 212, 0) 60%), var(--eh-milk); padding: 48px 0 40px; }
body.eh .eh-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
body.eh .eh-hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; margin: 14px 0 18px; }
body.eh .eh-hero h1 em { display: block; font-style: italic; color: var(--eh-gold-2); font-weight: 500; }
body.eh .eh-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
body.eh .eh-hero-visual { position: relative; height: 470px; }
body.eh .eh-hero-arch { position: absolute; bottom: 0; background: linear-gradient(180deg, #fffdf8, #efe7d8); border: 1px solid var(--eh-line); border-radius: 999px 999px 24px 24px; display: grid; place-items: center; overflow: hidden; box-shadow: var(--eh-shadow); }
body.eh .eh-hero-arch img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.4s ease; }
body.eh .eh-hero-arch:hover img { transform: scale(1.04); }
body.eh .eh-arch-main { left: 27%; width: 46%; height: 100%; z-index: 2; background: linear-gradient(180deg, #fffefb, #ebe1cf); }
body.eh .eh-arch-left { left: 0; width: 34%; height: 72%; }
body.eh .eh-arch-right { right: 0; width: 34%; height: 62%; }
body.eh .eh-hero-seal { position: absolute; top: 18px; right: 12px; z-index: 3; width: 112px; height: 112px; border-radius: 50%; background: var(--eh-green); color: #f2e7cf; display: grid; place-items: center; text-align: center; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; box-shadow: var(--eh-shadow); }
body.eh .eh-hero-seal { display: flex; flex-direction: column; gap: 2px; align-items: center; justify-content: center; }
body.eh .eh-hero-seal b { font-family: var(--eh-serif); font-size: 34px; letter-spacing: 0.08em; font-weight: 600; line-height: 1; }
body.eh .eh-hero-seal span { font-size: 9px; }
body.eh .eh-terms { display: grid; grid-template-columns: repeat(4, 1fr); margin: 44px 0 0; background: var(--eh-white); border: 1px solid var(--eh-line); border-radius: var(--eh-radius); overflow: hidden; }
body.eh .eh-terms > div { padding: 18px 22px; border-right: 1px solid var(--eh-line); }
body.eh .eh-terms > div:last-child { border-right: 0; }
body.eh .eh-terms dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--eh-sage); font-weight: 700; }
body.eh .eh-terms dd { margin: 4px 0 2px; font-family: var(--eh-serif); font-size: 26px; font-weight: 600; color: var(--eh-green); }
body.eh .eh-terms span { font-size: 12.5px; color: var(--eh-sage); }

/* ---------- секции ---------- */
body.eh .eh-section { padding: 64px 0; }
body.eh .eh-section-tint { background: var(--eh-paper); border-top: 1px solid var(--eh-line); border-bottom: 1px solid var(--eh-line); }
body.eh .eh-section-dark { background: var(--eh-green); color: #dfe5e0; }
body.eh .eh-section-dark h2, body.eh .eh-section-dark h3 { color: #f5efe2; }
body.eh .eh-section-dark .eh-overline { color: #d2b98a; }
body.eh .eh-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 26px; }
body.eh .eh-section-head h2 { margin: 6px 0 0; }
body.eh .eh-section-head p { margin: 8px 0 0; max-width: 640px; }

body.eh .eh-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
body.eh .eh-cat { position: relative; display: grid; grid-template-rows: 170px auto auto; background: var(--eh-white); border: 1px solid var(--eh-line); border-radius: var(--eh-radius); padding: 14px 16px 16px; text-decoration: none; color: var(--eh-ink) !important; transition: transform 0.15s, box-shadow 0.15s; }
body.eh .eh-cat:hover { transform: translateY(-2px); box-shadow: var(--eh-shadow); }
body.eh .eh-cat-img { background: var(--eh-milk); border-radius: 10px; display: grid; place-items: center; overflow: hidden; }
body.eh .eh-cat-img img { max-height: 150px; object-fit: contain; mix-blend-mode: multiply; }
body.eh .eh-cat-name { font-family: var(--eh-serif); font-size: 21px; font-weight: 600; color: var(--eh-green); margin-top: 12px; line-height: 1.2; }
body.eh .eh-cat-count { font-size: 12.5px; color: var(--eh-sage); }

/* вкладки без JS */
body.eh .eh-tabs > input { position: absolute; opacity: 0; pointer-events: none; }
body.eh .eh-tabs > label { display: inline-flex; margin: 0 6px 18px 0; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--eh-line); background: var(--eh-white); color: var(--eh-ink); font-size: 14px; font-weight: 600; cursor: pointer; }
body.eh .eh-tabs > input:checked + label { background: var(--eh-green); border-color: var(--eh-green); color: #fff; }
body.eh .eh-tabs > input:focus-visible + label { outline: 2px solid var(--eh-gold); outline-offset: 2px; }
body.eh .eh-tab-panel { display: none !important; }
body.eh #tab-hits:checked ~ [data-tab="hits"], body.eh #tab-new:checked ~ [data-tab="new"], body.eh #tab-stock:checked ~ [data-tab="stock"] { display: grid !important; }

/* подборки на главной */
body.eh .eh-sets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
body.eh .eh-set { display: flex; flex-direction: column; gap: 6px; padding: 22px 18px; background: var(--eh-white); border: 1px solid var(--eh-line); border-radius: var(--eh-radius); text-decoration: none; color: var(--eh-ink) !important; transition: border-color 0.15s, transform 0.15s; min-height: 210px; }
body.eh .eh-set:hover { border-color: var(--eh-gold); transform: translateY(-2px); }
body.eh .eh-set-budget { font-family: var(--eh-serif); font-size: 30px; font-weight: 600; color: var(--eh-green); line-height: 1; }
body.eh .eh-set-title { font-weight: 700; font-size: 15px; }
body.eh .eh-set-sub { font-size: 13px; color: var(--eh-sage); flex: 1; }
body.eh .eh-set-meta { font-size: 12.5px; color: var(--eh-gold-2); font-weight: 600; border-top: 1px solid var(--eh-line); padding-top: 10px; }

body.eh .eh-advantages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.12); border-radius: var(--eh-radius); overflow: hidden; }
body.eh .eh-advantages > div { background: var(--eh-green); padding: 26px 24px; }
body.eh .eh-advantages b { font-family: var(--eh-serif); color: #d2b98a; font-size: 22px; }
body.eh .eh-advantages h3 { font-size: 22px; margin: 8px 0 6px; }
body.eh .eh-advantages p { margin: 0; font-size: 14px; color: #c9d2cc; }
body.eh .eh-support { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 28px; padding: 26px 28px; border-radius: var(--eh-radius); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); }
body.eh .eh-support h3 { margin: 0 0 4px; }
body.eh .eh-support p { margin: 0; }
body.eh .eh-partners .eh-support { background: var(--eh-white); border-color: var(--eh-line); }

body.eh .eh-about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
body.eh .eh-about h2 { font-size: clamp(34px, 4vw, 48px); letter-spacing: 0.06em; }
body.eh .eh-checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
body.eh .eh-checks li { padding-left: 28px; position: relative; }
body.eh .eh-checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--eh-gold); border-bottom: 2px solid var(--eh-gold); transform: rotate(-45deg); }

/* форма заявки */
body.eh .eh-lead { background: var(--eh-white); border: 1px solid var(--eh-line); border-radius: var(--eh-radius); padding: 28px; display: grid; gap: 14px; box-shadow: var(--eh-shadow); }
body.eh .eh-panel .eh-lead { border: 0; box-shadow: none; padding: 0; }
body.eh .eh-lead h3 { font-size: 28px; margin: 0; }
body.eh .eh-lead p { margin: 0; }
body.eh .eh-lead-grid, body.eh .eh-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body.eh .eh-lead-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
body.eh .eh-lead-actions .eh-small { flex: 1; min-width: 200px; }

/* ---------- карточка товара в сетке ---------- */
body.eh .eh-grid { display: grid; gap: 16px; }
body.eh .eh-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.eh .eh-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.eh .eh-card { display: flex; flex-direction: column; background: var(--eh-white); border: 1px solid var(--eh-line); border-radius: var(--eh-radius); overflow: hidden; transition: box-shadow 0.18s, transform 0.18s; }
body.eh .eh-card:hover { box-shadow: var(--eh-shadow); transform: translateY(-2px); }
body.eh .eh-card-media { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; background: linear-gradient(180deg, #fbf8f1, #f1ebdf); }
body.eh .eh-thumb { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; }
body.eh .eh-thumb-empty { display: grid; place-items: center; font-size: 11px; letter-spacing: 0.3em; color: var(--eh-gold); }
body.eh .eh-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
body.eh .eh-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
body.eh .eh-badge-hit { background: var(--eh-green); color: #f2e7cf; }
body.eh .eh-badge-new { background: var(--eh-gold); color: #fff; }
body.eh .eh-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 18px; flex: 1; }
body.eh .eh-card-meta { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--eh-sage); font-weight: 600; }
body.eh .eh-card-name { font-weight: 600; color: var(--eh-ink) !important; text-decoration: none; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.2em; }
body.eh .eh-card-name:hover { color: var(--eh-green) !important; text-decoration: underline; }
body.eh .eh-card-sku { font-size: 12px; color: var(--eh-sage); }
body.eh .eh-card-bottom { margin-top: auto; display: grid; gap: 8px; padding-top: 6px; }
body.eh .eh-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
body.eh .eh-price strong { font-size: 21px; color: var(--eh-green); font-weight: 700; }
body.eh .eh-price span { font-size: 12.5px; color: var(--eh-sage); }
body.eh .eh-price-guest strong { font-size: 19px; }
body.eh .eh-price-xl strong { font-size: 34px; font-family: var(--eh-serif); }
body.eh .eh-card-note { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--eh-sage); min-height: 18px; }
body.eh .eh-card-muted { font-size: 13px; color: var(--eh-sage); }
body.eh .eh-stock { font-size: 12px; font-weight: 600; }
body.eh .eh-stock-in { color: var(--eh-ok); }
body.eh .eh-stock-in::before { content: "● "; font-size: 9px; vertical-align: 2px; }
body.eh .eh-stock-out { color: #a0583f; }
body.eh .eh-card-form { display: flex; gap: 8px; align-items: center; }
body.eh .eh-card-form .eh-btn { flex: 1; }
body.eh .eh-qty { display: inline-flex; align-items: center; border: 1px solid var(--eh-line); border-radius: 999px; background: var(--eh-white); height: 38px; overflow: hidden; flex: 0 0 auto; }
body.eh .eh-qty input { width: 46px; border: 0 !important; text-align: center; min-height: 36px !important; padding: 0 !important; box-shadow: none !important; -moz-appearance: textfield; font-weight: 600; background: transparent !important; }
body.eh .eh-qty input::-webkit-outer-spin-button, body.eh .eh-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.eh .eh-qty-btn { border: 0; background: transparent; width: 30px; height: 36px; cursor: pointer; font-size: 17px; color: var(--eh-green); }
body.eh .eh-qty-btn:hover { background: var(--eh-milk); }

/* ---------- каталог ---------- */
body.eh .eh-catalog { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding-bottom: 64px; align-items: start; }
body.eh .eh-filters { position: sticky; top: 96px; max-height: calc(100vh - 110px); overflow: auto; background: var(--eh-white); border: 1px solid var(--eh-line); border-radius: var(--eh-radius); padding: 18px; }
body.eh .eh-filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
body.eh .eh-filters-head a { font-size: 13px; }
body.eh .eh-facet { border: 0; border-top: 1px solid var(--eh-line); margin: 0; padding: 14px 0 10px; }
body.eh .eh-facet legend { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--eh-sage); padding: 0; margin-bottom: 6px; float: left; width: 100%; }
body.eh .eh-facet legend + * { clear: both; }
body.eh .eh-facet-opt { flex-direction: row; align-items: center; gap: 9px; font-weight: 500; font-size: 14px; color: var(--eh-ink); padding: 5px 0; cursor: pointer; }
body.eh .eh-facet-opt input { accent-color: var(--eh-green); width: 16px; height: 16px; margin: 0; }
body.eh .eh-facet-opt em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--eh-sage); }
body.eh .eh-facet-opt.is-empty { opacity: 0.45; }
body.eh .eh-facet select { width: 100%; }
body.eh .eh-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
body.eh .eh-toolbar-search { display: flex; gap: 8px; flex: 1 1 320px; max-width: 520px; }
body.eh .eh-toolbar-search input { flex: 1; min-width: 0; }
body.eh .eh-toolbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
body.eh .eh-found { font-size: 13px; color: var(--eh-sage); }
body.eh .eh-viewswitch { display: inline-flex; border: 1px solid var(--eh-line); border-radius: 999px; overflow: hidden; background: var(--eh-white); }
body.eh .eh-viewswitch a { padding: 8px 14px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--eh-ink) !important; }
body.eh .eh-viewswitch a.is-active { background: var(--eh-green); color: #fff !important; }
body.eh .eh-filters-open { display: none !important; }
body.eh .eh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
body.eh .eh-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--eh-gold-soft); color: var(--eh-green) !important; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; text-decoration: none; }
body.eh .eh-chip span { font-size: 16px; line-height: 1; }
body.eh .eh-empty { background: var(--eh-white); border: 1px dashed var(--eh-line); border-radius: var(--eh-radius); padding: 40px; text-align: center; }
body.eh .eh-empty p { color: var(--eh-sage); max-width: 520px; margin: 8px auto 18px; }
body.eh .eh-empty .eh-hero-actions { justify-content: center; }
body.eh .eh-skubox { background: var(--eh-white); border: 1px solid var(--eh-line); border-radius: var(--eh-radius); padding: 12px 18px; margin-bottom: 14px; }
body.eh .eh-skubox summary { cursor: pointer; font-weight: 600; color: var(--eh-green); }
body.eh .eh-skubox-form { display: grid; gap: 10px; padding-top: 10px; }
body.eh .eh-skubox-form textarea { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 14px; }
body.eh .eh-skubox-form .eh-btn { justify-self: start; }

/* список быстрого заказа и таблицы */
body.eh .eh-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.eh .eh-table { width: 100%; background: var(--eh-white); }
body.eh .eh-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--eh-sage); font-weight: 700; padding: 12px 12px; border-bottom: 1px solid var(--eh-line); white-space: nowrap; }
body.eh .eh-table td { padding: 12px; border-bottom: 1px solid #efe9dd; vertical-align: middle; }
body.eh .eh-table tr:last-child td { border-bottom: 0; }
body.eh .eh-table tr.is-off td { opacity: 0.55; }
body.eh .eh-table .right { text-align: right; }
body.eh .eh-quicklist { background: var(--eh-white); border: 1px solid var(--eh-line); border-radius: var(--eh-radius); overflow: hidden; }
body.eh .eh-ql-photo { width: 56px; }
body.eh .eh-thumb-sm { width: 52px; height: 52px; object-fit: contain; background: var(--eh-milk); border-radius: 8px; mix-blend-mode: multiply; display: block; }
body.eh .eh-thumb-xs { width: 38px; height: 38px; object-fit: contain; background: var(--eh-milk); border-radius: 6px; mix-blend-mode: multiply; display: inline-block; vertical-align: middle; }
body.eh .eh-ql-name a { font-weight: 600; color: var(--eh-ink) !important; text-decoration: none; }
body.eh .eh-ql-name a:hover { text-decoration: underline; }
body.eh .eh-ql-sub { font-size: 12px; color: var(--eh-sage); }
body.eh .eh-ql-price { text-align: right; white-space: nowrap; }
body.eh .eh-ql-qty { white-space: nowrap; }
body.eh .eh-ql-sum { text-align: right; white-space: nowrap; font-weight: 600; color: var(--eh-green); }
body.eh .eh-quicklist-bar { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; background: var(--eh-paper); border-top: 1px solid var(--eh-line); flex-wrap: wrap; }

/* ---------- карточка товара ---------- */
body.eh .eh-product { padding-top: 24px; padding-bottom: 64px; }
body.eh .eh-product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 16px; align-items: start; }
body.eh .eh-product-media { background: linear-gradient(180deg, #fffdf8, #efe7d8); border: 1px solid var(--eh-line); border-radius: 28px; aspect-ratio: 1 / 1; display: grid; place-items: center; position: sticky; top: 96px; }
body.eh .eh-product-img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; }
body.eh .eh-product-info h1 { font-size: clamp(28px, 3.2vw, 40px); }
body.eh .eh-product-sub { color: var(--eh-sage); font-size: 14px; }
body.eh .eh-buybox { margin-top: 22px; background: var(--eh-white); border: 1px solid var(--eh-line); border-radius: var(--eh-radius); padding: 22px 24px; display: grid; gap: 12px; }
body.eh .eh-buy-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; color: #47524b; }
body.eh .eh-buy-form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
body.eh .eh-buy-form .eh-qty { height: 52px; }
body.eh .eh-buy-form .eh-qty input { min-height: 50px !important; width: 60px; }
body.eh .eh-buy-form .eh-qty-btn { height: 50px; width: 40px; }
body.eh .eh-buy-actions { display: flex; gap: 10px; flex-wrap: wrap; }
body.eh .eh-product-help { margin-top: 14px; font-size: 13.5px; color: var(--eh-sage); }
body.eh .eh-product-details { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; margin-top: 56px; }
body.eh .eh-product-details h3 { font-size: 19px; margin-top: 20px; }
body.eh .eh-ingredients { font-size: 13.5px; color: #4e5952; }
body.eh .eh-specs { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 0 0 18px; background: var(--eh-white); border: 1px solid var(--eh-line); border-radius: var(--eh-radius); overflow: hidden; }
body.eh .eh-specs dt, body.eh .eh-specs dd { padding: 10px 14px; border-bottom: 1px solid #efe9dd; margin: 0; font-size: 14px; }
body.eh .eh-specs dt { color: var(--eh-sage); }
body.eh .eh-specs dd { font-weight: 600; }
body.eh .eh-seller-note { background: var(--eh-paper); border: 1px solid var(--eh-line); border-radius: var(--eh-radius); padding: 18px; }
body.eh .eh-seller-note h3 { margin-top: 0 !important; }
body.eh .eh-related { margin-top: 48px; }

/* ---------- корзина ---------- */
body.eh .eh-cart { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding-bottom: 64px; align-items: start; }
body.eh .eh-cart-main { display: grid; gap: 24px; min-width: 0; }
body.eh .eh-panel { background: var(--eh-white); border: 1px solid var(--eh-line); border-radius: var(--eh-radius); padding: 22px; }
body.eh .eh-cart-form { padding: 0; overflow: hidden; }
body.eh .eh-cart-actions { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-top: 1px solid var(--eh-line); background: var(--eh-paper); flex-wrap: wrap; }
body.eh .eh-summary { position: sticky; top: 96px; display: grid; gap: 12px; }
body.eh .eh-summary h2 { margin: 0; font-size: 26px; }
body.eh .eh-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; }
body.eh .eh-summary dt { color: var(--eh-sage); }
body.eh .eh-summary dd { margin: 0; text-align: right; font-weight: 600; }
body.eh .eh-summary-total { font-size: 22px; color: var(--eh-green); font-weight: 700 !important; }
body.eh .eh-progress { height: 8px; background: var(--eh-milk); border-radius: 999px; overflow: hidden; }
body.eh .eh-progress div { height: 100%; background: linear-gradient(90deg, var(--eh-gold), var(--eh-green)); border-radius: 999px; }
body.eh .eh-warn { color: #8a3a26; font-weight: 600; font-size: 14px; margin: 0; }
body.eh .eh-warn-inline { color: #8a3a26; font-size: 12px; font-weight: 600; }
body.eh .eh-checkout h2 { margin-top: 0; }
body.eh .eh-checkout-row { display: flex; justify-content: flex-end; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
body.eh .eh-address-pick { margin: 10px 0 16px; }

/* ---------- кабинет ---------- */
body.eh .eh-cabinet { display: grid; grid-template-columns: 200px minmax(0, 1fr) 280px; gap: 24px; padding-bottom: 64px; align-items: start; }
body.eh .eh-cab-nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; }
body.eh .eh-cab-nav a { padding: 9px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--eh-ink) !important; }
body.eh .eh-cab-nav a:hover { background: var(--eh-white); }
body.eh .eh-cab-main { display: grid; gap: 28px; min-width: 0; }
body.eh .eh-cab-side { display: grid; gap: 16px; position: sticky; top: 96px; }
body.eh .eh-cab-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
body.eh .eh-cab-stats .eh-panel { display: grid; gap: 2px; padding: 16px 18px; }
body.eh .eh-cab-stats b { font-family: var(--eh-serif); font-size: 26px; color: var(--eh-green); }
body.eh .eh-cab-section { display: grid; gap: 14px; scroll-margin-top: 100px; }
body.eh .eh-cab-section h2 { margin: 0; }
body.eh .eh-cab-section .eh-section-head { margin: 0; align-items: center; }
body.eh .eh-order { background: var(--eh-white); border: 1px solid var(--eh-line); border-radius: var(--eh-radius); padding: 18px 20px; display: grid; gap: 12px; }
body.eh .eh-order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
body.eh .eh-order-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
body.eh .eh-order-grid > div { display: grid; gap: 2px; font-size: 14px; }
body.eh .eh-order-grid > div > span.eh-muted:first-child { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
body.eh .eh-order-items summary { cursor: pointer; color: var(--eh-green); font-weight: 600; font-size: 14px; }
body.eh .eh-order-items ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
body.eh .eh-order-items li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
body.eh .eh-order-items li a { flex: 1; color: var(--eh-ink) !important; }
body.eh .eh-order-items li span { white-space: nowrap; color: var(--eh-sage); }
body.eh .eh-order-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid #efe9dd; padding-top: 12px; }
body.eh .eh-steps { display: flex; gap: 0; font-size: 12px; color: var(--eh-sage); }
body.eh .eh-steps span { flex: 1; padding-top: 8px; border-top: 3px solid var(--eh-line); margin-right: 4px; }
body.eh .eh-steps span.done { border-color: var(--eh-sage); }
body.eh .eh-steps span.current { border-color: var(--eh-gold); color: var(--eh-green); font-weight: 700; }
body.eh .eh-doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
body.eh .eh-doc-list li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; border-bottom: 1px solid #efe9dd; padding-bottom: 10px; }
body.eh .eh-doc-link { font-weight: 700; }
body.eh .eh-manager { display: grid; gap: 6px; }
body.eh .eh-manager h3 { margin: 0; }
body.eh .eh-tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--eh-milk); color: var(--eh-sage); }
body.eh .eh-tag-warn { background: #f7e9df; color: #8a3a26; }
body.eh .badge-status { border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 700; }

/* ---------- подборки ---------- */
body.eh .eh-sets-page { display: grid; gap: 22px; padding-bottom: 64px; }
body.eh .eh-sets-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; position: sticky; top: 84px; z-index: 5; background: var(--eh-milk); padding: 8px 0; }
body.eh .eh-sets-nav a { display: grid; gap: 2px; padding: 10px 14px; background: var(--eh-white); border: 1px solid var(--eh-line); border-radius: 12px; text-decoration: none; color: var(--eh-sage) !important; font-size: 13px; }
body.eh .eh-sets-nav a b { font-family: var(--eh-serif); font-size: 21px; color: var(--eh-green); }
body.eh .eh-setcard { background: var(--eh-white); border: 1px solid var(--eh-line); border-radius: var(--eh-radius); padding: 26px; display: grid; gap: 16px; scroll-margin-top: 170px; }
body.eh .eh-setcard header { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
body.eh .eh-setcard h2 { margin: 6px 0 4px; }
body.eh .eh-setcard-sum { display: flex; gap: 24px; margin: 0; }
body.eh .eh-setcard-sum div { display: grid; gap: 2px; }
body.eh .eh-setcard-sum dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--eh-sage); }
body.eh .eh-setcard-sum dd { margin: 0; font-family: var(--eh-serif); font-size: 28px; font-weight: 600; color: var(--eh-green); }
body.eh .eh-setcard-list summary { cursor: pointer; font-weight: 600; color: var(--eh-green); margin-bottom: 10px; }
body.eh .eh-setcard-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- условия, контакты, партнёры ---------- */
body.eh .eh-conditions, body.eh .eh-contacts, body.eh .eh-partners { padding-bottom: 64px; }
body.eh .eh-cond-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
body.eh .eh-cond-grid h3 { margin: 8px 0 6px; font-size: 26px; }
body.eh .eh-cond-grid p { margin: 0; color: #47524b; font-size: 14.5px; }
body.eh .eh-steps-how { margin-top: 40px; background: var(--eh-white); border: 1px solid var(--eh-line); border-radius: var(--eh-radius); padding: 30px; }
body.eh .eh-steps-how ol { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
body.eh .eh-steps-how li { counter-increment: s; font-size: 14.5px; }
body.eh .eh-steps-how li::before { content: "0" counter(s); display: block; font-family: var(--eh-serif); font-size: 34px; color: var(--eh-gold); font-weight: 600; }
body.eh .eh-contacts { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
body.eh .eh-contacts-info { display: grid; gap: 22px; }
body.eh .eh-contacts-info p { margin: 4px 0 0; }
body.eh .eh-big-link { display: block; font-family: var(--eh-serif); font-size: 30px; font-weight: 600; text-decoration: none; margin-top: 4px; }
body.eh .eh-notice { margin-bottom: 20px; }
body.eh .eh-materials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
body.eh .eh-material { background: var(--eh-white); border: 1px solid var(--eh-line); border-radius: var(--eh-radius); padding: 20px; display: grid; gap: 10px; align-content: start; }
body.eh .eh-material h3 { font-size: 21px; margin: 0; }
body.eh .eh-material-body { font-size: 14px; color: #47524b; max-height: 260px; overflow: auto; }
body.eh .eh-material .eh-btn { justify-self: start; }
body.eh .eh-partners .eh-cab-section { margin-bottom: 30px; }

/* ---------- админка сайта ---------- */
body.eh .eh-admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 20px; }
body.eh .eh-admin-tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--eh-line); background: var(--eh-white); text-decoration: none; font-weight: 600; color: var(--eh-ink) !important; }
body.eh .eh-admin-tabs a.is-active { background: var(--eh-green); color: #fff !important; border-color: var(--eh-green); }
body.eh .eh-admin-form { display: grid; gap: 16px; }
body.eh .eh-admin-form .eh-btn { justify-self: start; }
body.eh .eh-admin-meta textarea { min-height: 38px !important; width: 260px; resize: vertical; }
body.eh .eh-admin-meta input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--eh-green); }
body.eh .eh-stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
body.eh .eh-stats-grid a.is-active, body.eh .eh-muted a.is-active { font-weight: 700; }

/* ---------- подвал ---------- */
body.eh .eh-footer { background: #1e2a24; color: #b9c3bd; padding: 56px 0 24px; margin-top: 0; }
body.eh .eh-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
body.eh .eh-footer .eh-wordmark { color: #f2e7cf; }
body.eh .eh-footer h4 { color: #d2b98a; }
body.eh .eh-footer a, body.eh .eh-footer span { display: block; color: #d8ded9 !important; text-decoration: none; font-size: 14px; margin-bottom: 8px; }
body.eh .eh-footer a:hover { color: #fff !important; text-decoration: underline; }
body.eh .eh-footer-brand p { color: #9eaaa3; margin-top: 14px; font-family: var(--eh-serif); font-size: 19px; font-style: italic; }
body.eh .eh-footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 32px; padding-top: 18px; }
body.eh .eh-footer-legal span { font-size: 12.5px; color: #8e9a93 !important; margin: 0; }
body.eh .cookie-banner { background: var(--eh-green); color: #e6ebe7; border-radius: var(--eh-radius); }
body.eh .footer { display: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  body.eh .eh-search { display: none; }
  body.eh .eh-cabinet { grid-template-columns: minmax(0, 1fr) 260px; }
  body.eh .eh-cab-nav { display: none; }
  body.eh .eh-sets { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  body.eh .eh-nav { display: none; }
  body.eh .eh-burger { display: block; }
  body.eh .eh-header-row { gap: 10px; min-height: 64px; }
  body.eh .eh-logo { flex: 1; align-items: center; }
  body.eh .eh-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  body.eh .eh-hero-visual { height: 340px; max-width: 560px; width: 100%; margin: 0 auto; }
  body.eh .eh-terms { grid-template-columns: repeat(2, 1fr); }
  body.eh .eh-terms > div:nth-child(2) { border-right: 0; }
  body.eh .eh-terms > div:nth-child(-n + 2) { border-bottom: 1px solid var(--eh-line); }
  body.eh .eh-cats, body.eh .eh-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.eh .eh-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.eh .eh-advantages { grid-template-columns: repeat(2, 1fr); }
  body.eh .eh-about, body.eh .eh-contacts { grid-template-columns: 1fr; gap: 28px; }
  body.eh .eh-catalog { grid-template-columns: 1fr; }
  body.eh .eh-filters { position: static; max-height: none; display: none; }
  body.eh .eh-filters:target, body.eh .eh-filters.is-open { display: block; }
  body.eh .eh-filters-open { display: inline-flex !important; }
  body.eh .eh-product-grid, body.eh .eh-product-details { grid-template-columns: 1fr; gap: 24px; }
  body.eh .eh-product-media { position: static; max-width: 520px; }
  body.eh .eh-cart { grid-template-columns: 1fr; }
  body.eh .eh-summary { position: static; order: -1; }
  body.eh .eh-cabinet { grid-template-columns: 1fr; }
  body.eh .eh-cab-side { position: static; }
  body.eh .eh-cond-grid, body.eh .eh-materials { grid-template-columns: repeat(2, 1fr); }
  body.eh .eh-steps-how ol { grid-template-columns: repeat(2, 1fr); }
  body.eh .eh-footer-grid { grid-template-columns: 1fr 1fr; }
  body.eh .eh-sets-nav { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; top: 64px; }
  body.eh .eh-stats-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body.eh { font-size: 14.5px; }
  body.eh .eh-wrap { padding: 0 16px; }
  body.eh .eh-topline .eh-wrap > span:first-child { display: none; }
  body.eh .eh-topline .eh-wrap { justify-content: center; }
  body.eh .eh-hide-mobile { display: none !important; }
  body.eh .eh-icon-link span { display: none; }
  body.eh .eh-count { left: 20px; }
  body.eh .eh-hero { padding-top: 28px; }
  body.eh .eh-hero-visual { height: 260px; }
  body.eh .eh-hero-seal { width: 84px; height: 84px; top: 6px; right: 4px; }
  body.eh .eh-hero-actions .eh-btn { flex: 1 1 auto; }
  body.eh .eh-terms { grid-template-columns: 1fr 1fr; }
  body.eh .eh-terms > div { padding: 14px; }
  body.eh .eh-terms dd { font-size: 20px; }
  body.eh .eh-section { padding: 44px 0; }
  body.eh .eh-section-head { flex-direction: column; align-items: flex-start; }
  body.eh .eh-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.eh .eh-cat { grid-template-rows: 110px auto auto; padding: 10px; }
  body.eh .eh-cat-img img { max-height: 100px; }
  body.eh .eh-cat-name { font-size: 18px; }
  body.eh .eh-grid-4, body.eh .eh-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.eh .eh-card-body { padding: 12px; }
  body.eh .eh-card-name { font-size: 13.5px; }
  body.eh .eh-price strong { font-size: 18px; }
  body.eh .eh-card-form { flex-direction: column; align-items: stretch; }
  body.eh .eh-card-form .eh-qty { justify-content: space-between; }
  body.eh .eh-card-form .eh-qty input { flex: 1; }
  body.eh .eh-sets { grid-template-columns: 1fr 1fr; }
  body.eh .eh-set { min-height: 0; }
  body.eh .eh-advantages { grid-template-columns: 1fr; }
  body.eh .eh-support { flex-direction: column; align-items: flex-start; }
  body.eh .eh-lead { padding: 20px; }
  body.eh .eh-lead-grid, body.eh .eh-form-grid { grid-template-columns: 1fr; }
  body.eh .eh-toolbar-right { width: 100%; justify-content: space-between; }
  body.eh .eh-cab-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  body.eh .eh-cab-stats b { font-size: 18px; }
  body.eh .eh-order-grid { grid-template-columns: 1fr; }
  body.eh .eh-cond-grid, body.eh .eh-materials { grid-template-columns: 1fr; }
  body.eh .eh-steps-how ol { grid-template-columns: 1fr; }
  body.eh .eh-footer-grid { grid-template-columns: 1fr; gap: 20px; }
  body.eh .eh-setcard { padding: 18px; }
  body.eh .eh-setcard-sum { gap: 16px; }
  body.eh .eh-setcard-sum dd { font-size: 22px; }
  /* таблицы быстрого заказа и корзины — карточками */
  body.eh .eh-quicklist .eh-table thead, body.eh .eh-cart-table thead { display: none; }
  body.eh .eh-quicklist .eh-table tr, body.eh .eh-cart-table tr { display: grid; grid-template-columns: 56px 1fr auto; gap: 4px 10px; padding: 12px; border-bottom: 1px solid #efe9dd; }
  body.eh .eh-quicklist .eh-table td, body.eh .eh-cart-table td { border: 0; padding: 0; }
  body.eh .eh-ql-photo { grid-row: span 3; }
  body.eh .eh-ql-name { grid-column: 2 / 4; }
  body.eh .eh-ql-stock { grid-column: 2 / 4; }
  body.eh .eh-ql-price { text-align: left; }
  body.eh .eh-ql-qty { grid-column: 2 / 3; }
  body.eh .eh-ql-sum { grid-column: 3 / 4; align-self: center; }
  body.eh .eh-ql-del { grid-column: 3; grid-row: 1; text-align: right; }
  body.eh .eh-quicklist-bar .eh-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
body.eh .eh-card .eh-btn { white-space: normal; text-align: center; line-height: 1.25; }
@media (max-width: 640px) { body.eh .eh-card .eh-btn { font-size: 12.5px; padding: 7px 10px; } }
@media (max-width: 640px) { body.eh .eh-set-budget { font-size: 24px; } }
/* сброс устаревших правил style.css для кнопок */
body.eh button:not(.eh-z) { margin-top: 0; }
body.eh .eh-qty-btn, body.eh .eh-icon-btn, body.eh .eh-search button { padding: 0; border-radius: 0; background: transparent; color: var(--eh-green); }
body.eh .eh-icon-btn { border-radius: 50%; color: var(--eh-sage); }
body.eh .link-btn, body.eh button.link-btn { background: none; border: 0; padding: 0; min-height: 0; color: var(--eh-sage); text-decoration: underline; font-size: inherit; cursor: pointer; }
body.eh .eh-count { position: static; margin-left: 2px; }
@media (min-width: 1200px) { body.eh .eh-results .eh-grid-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); } body.eh .eh-results .eh-card-form { flex-direction: column; align-items: stretch; } body.eh .eh-results .eh-card-form .eh-qty { justify-content: space-between; } body.eh .eh-results .eh-card-form .eh-qty input { flex: 1; } }
body.eh { font-variant-numeric: lining-nums; }
body.eh h1, body.eh h2, body.eh h3, body.eh .eh-set-budget, body.eh .eh-terms dd, body.eh .eh-cab-stats b, body.eh .eh-setcard-sum dd, body.eh .eh-big-link { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
body.eh .eh-price-xl strong { font-family: var(--eh-sans); font-size: 30px; }
body.eh .eh-table td.eh-ql-photo { width: 64px; min-width: 64px; }
body.eh .eh-thumb-sm { min-width: 52px; }
body.eh .eh-ql-stock .eh-stock { white-space: nowrap; }
body.eh .eh-card-form { flex-direction: column; align-items: stretch; gap: 8px; }
body.eh .eh-card-form .eh-qty { justify-content: space-between; width: 100%; }
body.eh .eh-card-form .eh-qty input { flex: 1; }
body.eh .eh-card-form .eh-qty-btn { width: 40px; }
body.eh .eh-footer .eh-wordmark span { display: inline-block; margin: 0; color: #f2e7cf !important; font-size: inherit; }
body.eh .eh-footer .eh-wordmark .eh-wordmark-top { font-size: 26px; }
body.eh .eh-footer .eh-wordmark .eh-wordmark-bottom { font-size: 11px; margin-top: 4px; }
/* фото товаров любой пропорции — вписываются в квадрат */
body.eh .eh-card-media { position: relative; overflow: hidden; display: block; }
body.eh .eh-card-media .eh-thumb { position: absolute; top: 9%; left: 9%; width: 82%; height: 82%; object-fit: contain; }
body.eh .eh-card-media .eh-badges { z-index: 2; }
body.eh .eh-product-media { overflow: hidden; }
body.eh .eh-product-media .eh-product-img { position: absolute; top: 11%; left: 11%; width: 78%; height: 78%; object-fit: contain; }
body.eh .eh-cat-img { position: relative; }
body.eh .eh-cat-img img { position: absolute; top: 8px; left: 8px; width: calc(100% - 16px); height: calc(100% - 16px); max-height: none; object-fit: contain; }

/* Битое фото не показывает подпись; заглушка занимает место картинки */
body.eh .eh-card-media img, body.eh .eh-product-media img, body.eh .eh-ql-photo img { color: transparent; font-size: 0; }
body.eh .eh-card-media .eh-thumb-empty, body.eh .eh-product-media .eh-thumb-empty { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Фото приведены к единому квадрату с полями — показываем крупнее и одинаково */
body.eh .eh-card-media .eh-thumb { top: 4%; left: 4%; width: 92%; height: 92%; }
body.eh .eh-product-media .eh-product-img { top: 6%; left: 6%; width: 88%; height: 88%; }

/* Кабинет: широкие таблицы анализа не раздвигают колонку и не залезают под правую панель */
body.eh .eh-cab-main, body.eh .eh-cab-section, body.eh .eh-cab-section > .eh-panel { grid-template-columns: minmax(0, 1fr); }
body.eh .eh-cab-main > *, body.eh .eh-cab-section > *, body.eh .eh-cab-section .eh-table-scroll { min-width: 0; }
body.eh .eh-cab-section .eh-table td, body.eh .eh-cab-section .eh-table th { white-space: normal; }
/* Шапка: на экранах до 1280px поиск прячется, чтобы «Кабинет» не обрезался */
@media (max-width: 1280px) { body.eh .eh-search { display: none; } }

/* Загрузка карточки предприятия (регистрация и кабинет) */
body.eh .eh-cardup { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 14px 16px; margin: 0 0 18px; border: 1px dashed var(--eh-gold); border-radius: 14px; background: #fbf7ee; }
body.eh .eh-cardup-text { flex: 1 1 240px; display: grid; gap: 3px; }
body.eh .eh-cardup-text b { font-weight: 700; }
body.eh label.eh-cardup-pick { display: inline-flex; cursor: pointer; margin: 0; font-weight: 600; }
body.eh .eh-cardup.is-busy { opacity: 0.65; pointer-events: none; }
body.eh label.eh-filled input { background: #fff6e0; border-color: var(--eh-gold) !important; }
body.eh .eh-req-sub { margin: 20px 0 10px; font-size: 19px; }
body.eh .eh-req-form > .eh-btn { margin-top: 16px; }
body.eh .eh-reg { max-width: 560px; }
body.eh .eh-reg .eh-reg-req { border: 1px solid var(--eh-line); border-radius: 14px; padding: 10px 16px 16px; display: grid; gap: 10px; margin: 0; min-width: 0; }
body.eh .eh-reg .eh-reg-req legend { padding: 0 6px; font-weight: 700; font-size: 15px; }
body.eh .eh-reg .eh-reg-req legend span { font-weight: 400; font-size: 13px; color: var(--eh-sage); }
body.eh .eh-reg-more { display: grid; gap: 10px; }
body.eh .eh-reg-more summary { cursor: pointer; font-weight: 600; margin: 4px 0; }
body.eh .eh-reg-more[open] summary { margin-bottom: 10px; }
body.eh .eh-admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
body.eh #req-form { scroll-margin-top: 120px; }
