/* Shared header for the local Super Gladiolus copy.
   v82: exact two-line collection copy in a full-Cyrillic sans stack.
   The orange mark and all other header geometry remain unchanged.
   v74: desktop actions are right-anchored at the same 4.7% outer inset as
   the brand capsule; the handwritten note sits immediately to their left.
   v73: desktop-only bottom fade of the floral band — the background layer
   .sg-wreath-full gets a mask-image (linear gradient to transparent at the
   very bottom edge); the live children (.sg-nav, brand, MAX chip, actions,
   menu) stay fully opaque on top, nav/menu do NOT fade. <=1199 keeps the
   current white capsule without the desktop background and without any
   mask side effects (mask applied only inside @media >=1200px).
   v72: search trigger is a real button (profile action removed, .sg-actions
   = 2 buttons); accessible product search dialog styles; slogan switched
   to a readable sans stack. Band/geometry unchanged from v71:
   single generated floral band sg-header-bg-v76.jpg (1672x244,
   natural aspect, rendered center / cover — no stretch, no resize);
   the separate v70 left/right decor overlays are disabled (flowers are
   already part of the unified band). Desktop >=1200 reproduces the
   reference: brand capsule (3 lines incl. slogan) at x≈4.7% / y≈12%,
   centered blue MAX chip with a paper-plane icon, white action
   circles at the far right and a
   full-width white menu plate with the current page as an orange pill
   (#ff6b00). Wreath height clamp(170px, 14.55vw, 210px) ≈186 @1280 /
   ≈210 @1440; the 34px topbar strip is desktop-only hidden (>=1200).
   <=1199: v70 responsive band, MAX/actions/slogan/decor hidden;
   <=767: white capsule + burger (unchanged). Hero v25 untouched. */


html.sg-home,
html.sg-copy-page {
  /* v76: unified ImageGen floral band (1672x244), center / cover. */
  --sg-cream: #fef5e7;
  --sg-reference: url("sg-header-bg-v84.jpg?v=84");
}

html.sg-home,
html.sg-home body,
html.sg-copy-page,
html.sg-copy-page body {
  background: var(--sg-cream) !important;
}

html.sg-home #sg-chrome,
html.sg-copy-page #sg-chrome {
  position: relative;
  width: 100%;
  max-width: none;
  overflow: visible;
}

html.sg-home #sg-chrome > .sg-wrap:empty,
html.sg-copy-page #sg-chrome > .sg-wrap:empty {
  display: none;
}

/* v58: regenerated realistic flowers keep their natural proportions.
   v70: the calm-field photo renders center / cover (aspect preserved,
   crop instead of stretch); height clamp() unchanged (140px @1280). */
html.sg-home .sg-wreath,
html.sg-copy-page .sg-wreath {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  height: clamp(112px, 10.9375vw, 160px);
  overflow: visible;
  background: transparent;
}

html.sg-home .sg-wreath-full,
html.sg-copy-page .sg-wreath-full {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  /* v70: center / cover — natural proportions, crops the overflow. */
  background: var(--sg-reference) center / cover no-repeat;
}

/* v70: separate side decor overlays — DISABLED in v71: the flowers are
   already baked into the unified band sg-header-bg-v71.jpg. */
html.sg-home .sg-wreath-left,
html.sg-copy-page .sg-wreath-left,
html.sg-home .sg-wreath-right,
html.sg-copy-page .sg-wreath-right {
  display: none !important;
}

html.sg-home .sg-wreath-top,
html.sg-copy-page .sg-wreath-top,
html.sg-home .sg-wreath-bot,
html.sg-copy-page .sg-wreath-bot {
  display: none !important;
}

/* ---- v67 top row: spans the whole scene, transparent, one line ---- */
html.sg-home .sg-nav,
html.sg-copy-page .sg-nav {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: clamp(8px, 1.2vw, 18px);
  margin: 0;
  padding: clamp(6px, 1vw, 14px) clamp(12px, 2.6vw, 38px) 0;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

html.sg-home .sg-nav.is-open,
html.sg-copy-page .sg-nav.is-open {
  z-index: 20;
}

/* v67 root fix: brand must NOT stretch over the row (was width:100% and
   pushed the toggle off-screen on phones). */
html.sg-home .sg-brand,
html.sg-copy-page .sg-brand {
  position: relative;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 0 auto;
  width: auto;
  padding-right: 0;
  padding: 7px 13px 7px 9px;
  border-radius: 999px;
  border: 1px solid rgba(35, 79, 56, 0.1);
  background: rgba(255, 255, 252, 0.94);
  box-shadow: 0 8px 24px rgba(31, 62, 45, 0.1);
  text-decoration: none !important;
  color: #252525 !important;
}

html.sg-home .sg-brand-mark,
html.sg-copy-page .sg-brand-mark {
  width: clamp(34px, 3.4vw, 48px) !important;
  height: clamp(34px, 3.4vw, 48px) !important;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ff6b00;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 14px rgba(255, 107, 0, 0.22);
}

html.sg-home .sg-brand-mark svg,
html.sg-copy-page .sg-brand-mark svg {
  display: block;
}

html.sg-home .sg-brand-name,
html.sg-copy-page .sg-brand-name {
  font-family: "Avenir Next", Avenir, Montserrat, "Segoe UI", Arial, sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(16px, 1.6vw, 21px) !important;
  line-height: 1.05;
  letter-spacing: -0.015em;
  white-space: nowrap;
  color: #174b36;
}

html.sg-home .sg-brand-tag,
html.sg-copy-page .sg-brand-tag {
  margin-top: 4px;
  font-family: "Avenir Next", Avenir, Montserrat, "Segoe UI", Arial, sans-serif;
  font-size: clamp(10.5px, 0.86vw, 12.5px) !important;
  font-weight: 600;
  line-height: 1.1;
  color: #4b6b5a;
  letter-spacing: 0;
  white-space: nowrap;
}

/* v80: concise two-line wordmark (name / descriptor). */
html.sg-home .sg-brand-text,
html.sg-copy-page .sg-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
}

html.sg-home .sg-slogan,
html.sg-copy-page .sg-slogan {
  /* Long collection line stays inside the existing brand capsule. */
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-style: normal;
  font-weight: 600;
  max-width: 32ch;
  font-size: 11px;
  line-height: 1.15;
  letter-spacing: normal;
  color: #2e7d32;
}

html.sg-home .sg-slogan .sg-slogan-heart,
html.sg-copy-page .sg-slogan .sg-slogan-heart {
  color: #ff6b00;
}


/* v72: .sg-actions is now two round buttons (search + cart) after the
   profile action was removed — keep the group compact. */
html.sg-home .sg-actions,
html.sg-copy-page .sg-actions {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.7vw, 10px);
  margin-left: auto;
  flex: 0 0 auto;
}

html.sg-home .sg-actions .sg-act,
html.sg-copy-page .sg-actions .sg-act {
  margin: 0;
}

/* ---- v72: accessible product search dialog. ---- */
html.sg-home .sg-search-trigger,
html.sg-copy-page .sg-search-trigger {
  font: inherit;
  border: 0;
  padding: 0;
  cursor: pointer;
}

html.sg-home .sg-search-modal,
html.sg-copy-page .sg-search-modal {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(40px, 9vh, 96px) 16px 16px;
  background: rgba(30, 24, 18, 0.55);
}

html.sg-home .sg-search-modal[hidden],
html.sg-copy-page .sg-search-modal[hidden] {
  display: none;
}

html.sg-home .sg-search-backdrop,
html.sg-copy-page .sg-search-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

html.sg-home .sg-search-dialog,
html.sg-copy-page .sg-search-dialog {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(560px, 100%);
  max-height: min(640px, 84vh);
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(30, 24, 18, 0.35);
  font-family: "Open Sans", Arial, sans-serif;
}

html.sg-home .sg-search-title,
html.sg-copy-page .sg-search-title {
  margin: 0 28px 10px 0;
  font-size: 18px;
  font-weight: 700;
  color: #2c2c2c;
}

html.sg-home .sg-search-close,
html.sg-copy-page .sg-search-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #f3ede4;
  color: #4a4a4a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

html.sg-home .sg-search-close:hover,
html.sg-copy-page .sg-search-close:hover {
  background: #ffe3cc;
  color: #ff6b00;
}

html.sg-home .sg-search-label,
html.sg-copy-page .sg-search-label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #6b6257;
}

html.sg-home .sg-search-input,
html.sg-copy-page .sg-search-input {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 2px solid #e4d9c9;
  border-radius: 12px;
  background: #fffdf9;
  font-size: 16px;
  color: #2c2c2c;
  outline: none;
}

html.sg-home .sg-search-input:focus,
html.sg-copy-page .sg-search-input:focus {
  border-color: #468c5d;
  box-shadow: 0 0 0 3px rgba(70, 140, 93, 0.18);
}

html.sg-home .sg-search-status,
html.sg-copy-page .sg-search-status {
  min-height: 20px;
  margin: 8px 0 0;
  font-size: 13px;
  color: #6b6257;
}

html.sg-home .sg-search-results,
html.sg-copy-page .sg-search-results {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
}

html.sg-home .sg-search-item,
html.sg-copy-page .sg-search-item {
  border-radius: 10px;
}

html.sg-home .sg-search-item:hover,
html.sg-copy-page .sg-search-item:hover {
  background: #f6f0ea;
}

html.sg-home .sg-search-link,
html.sg-copy-page .sg-search-link {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: #2c2c2c !important;
  font-size: 15px;
  text-decoration: none !important;
}

html.sg-home .sg-search-item:hover .sg-search-link,
html.sg-copy-page .sg-search-item:hover .sg-search-link {
  color: #ff6b00 !important;
}

html.sg-home button:focus-visible,
html.sg-copy-page button:focus-visible,
html.sg-home .sg-search-link:focus-visible,
html.sg-copy-page .sg-search-link:focus-visible,
html.sg-home .sg-search-input:focus-visible,
html.sg-copy-page .sg-search-input:focus-visible {
  outline: 2px solid #ff6b00;
  outline-offset: 2px;
}

html.sg-home .sg-search-link:focus,
html.sg-copy-page .sg-search-link:focus {
  outline: 2px solid #ff6b00;
  outline-offset: 2px;
}


html.sg-home .sg-act,
html.sg-copy-page .sg-act {
  position: relative;
  z-index: 7;
  box-sizing: border-box;
  width: clamp(34px, 3vw, 42px);
  height: clamp(34px, 3vw, 42px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #4a4a4a !important;
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(37, 37, 37, 0.16);
}

html.sg-home .sg-act svg,
html.sg-copy-page .sg-act svg {
  display: block;
  width: 55%;
  height: 55%;
}

html.sg-home .sg-act:hover,
html.sg-copy-page .sg-act:hover {
  color: #ff6b00 !important;
}

html.sg-home .sg-cart-badge,
html.sg-copy-page .sg-cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 2;
  box-sizing: border-box;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ff6b00;
  color: #fff !important;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* v70: MAX chip keeps the v69 size/emphasis but is absolutely centered
   horizontally over the top row; height stays centered on the top strip. */
html.sg-home .sg-max-chip,
html.sg-copy-page .sg-max-chip {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: clamp(8px, 1.2vw, 16px);
  transform: translateX(-50%);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-left: 0;
  /* v69: stronger MAX chip emphasis (unchanged). */
  padding: clamp(6px, 0.65vw, 9px) clamp(12px, 1.4vw, 18px);
  border-radius: 999px;
  background: linear-gradient(135deg, #6a4dff 0%, #2f6bff 60%, #1f5bff 100%);
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 0 0 2px #fff, 0 6px 16px rgba(36, 86, 255, 0.5);
}

html.sg-home .sg-max-chip-copy,
html.sg-copy-page .sg-max-chip-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

html.sg-home .sg-max-chip-title,
html.sg-copy-page .sg-max-chip-title {
  /* v69: slightly larger, letter-spaced. */
  font-size: clamp(13.5px, 1.2vw, 16px);
  letter-spacing: 0.02em;
  font-weight: 700;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}

html.sg-home .sg-max-chip-note,
html.sg-copy-page .sg-max-chip-note {
  /* v69: slightly larger. */
  font-size: clamp(9.5px, 0.85vw, 11.5px);
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  opacity: 0.92;
}

html.sg-home .sg-max-chip:hover,
html.sg-copy-page .sg-max-chip:hover {
  filter: brightness(1.07);
}

html.sg-home .sg-nav-toggle,
html.sg-copy-page .sg-nav-toggle {
  position: relative;
  z-index: 7;
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  background: #f6f4f0;
  border-radius: 12px;
  cursor: pointer;
  padding: 10px 11px;
}

html.sg-home .sg-nav-toggle span,
html.sg-copy-page .sg-nav-toggle span {
  display: block;
  height: 2px;
  background: #252525;
  border-radius: 2px;
  margin: 5px 0;
}

/* ---- v67: separate white nav plate with the 7 menu items (desktop).
   v68: px-anchored to the bottom of the band — scales with the wreath
   height (1280: bottom 34px of the 140px band => 32px plate). ---- */
html.sg-home .sg-menu,
html.sg-copy-page .sg-menu {
  position: absolute;
  z-index: 7;
  left: 16.5%;
  right: 18.5%;
  top: auto;
  bottom: 10px;
  height: clamp(28px, 2.5vw, 34px);
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0 clamp(16px, 2vw, 28px);
  list-style: none;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(37, 37, 37, 0.14);
}

html.sg-home .sg-menu a,
html.sg-copy-page .sg-menu a {
  display: inline-block;
  padding: 3px 2px !important;
  color: #2c2c2c !important;
  background: transparent !important;
  font-size: clamp(13.5px, 1.2vw, 16.5px) !important;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 8px;
  position: relative;
}

html.sg-home .sg-menu a.is-current::after,
html.sg-copy-page .sg-menu a.is-current::after,
html.sg-home .sg-menu a[aria-current="page"]::after,
html.sg-copy-page .sg-menu a[aria-current="page"]::after {
  left: 2px;
  right: 2px;
  bottom: 1px;
  height: 3px;
  background: #ff6b00;
  box-shadow: 0 1px 0 rgba(255, 107, 0, 0.35);
}

html.sg-home .sg-menu a:hover,
html.sg-copy-page .sg-menu a:hover {
  color: #ff6b00 !important;
  background: rgba(246, 240, 234, 0.9) !important;
}

/* v66 guards: no duplicated baked UI from the scene; the live layers are the
   only nav surfaces; scene is never stretched below natural height. */
html.sg-home .sg-wreath-full,
html.sg-copy-page .sg-wreath-full {
  background-repeat: no-repeat;
}

html.sg-home .sg-nav,
html.sg-copy-page .sg-nav {
  background-image: none !important;
}

html.sg-home .sg-wreath::before,
html.sg-home .sg-wreath::after,
html.sg-copy-page .sg-wreath::before,
html.sg-copy-page .sg-wreath::after {
  content: none !important;
  display: none !important;
}

/* v68: the wreath height is fixed by clamp(); no min-height floor. */

/* Instagram/cart remain in the opaque strip below the floral source. */
html.sg-home .sg-topbar,
html.sg-copy-page .sg-topbar {
  position: relative;
  z-index: 8;
  box-sizing: border-box;
  width: 100%;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  overflow: hidden;
  background: var(--sg-cream);
}

html.sg-home .sg-topbar .sg-topbar-inner,
html.sg-copy-page .sg-topbar .sg-topbar-inner {
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  max-height: 34px;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
}

html.sg-home .sg-topbar-ig,
html.sg-home .sg-topbar-cart,
html.sg-copy-page .sg-topbar-ig,
html.sg-copy-page .sg-topbar-cart {
  position: relative;
  z-index: 9;
  flex: 0 0 auto;
}

/* v68: pull the hero/panel right up to the header — no empty band. */
html.sg-home .sg-hero { margin-top: 4px; }
html.sg-copy-page .sg-page-panel,
html.sg-copy-page #shop { margin-top: 4px; }
html.sg-copy-page .sg-page-panel #shop { margin-top: 0; }

/* ---- v71 desktop >=1200: reference layout (unified floral band). ---- */
@media (min-width: 1200px) {
  /* The Instagram/cart strip stays only below 1200 (reference has none). */
  html.sg-home .sg-topbar,
  html.sg-copy-page .sg-topbar { display: none; }

  /* v71: taller reference band — ≈186px @1280, ≈210px @1440. */
  html.sg-home .sg-wreath,
  html.sg-copy-page .sg-wreath {
    height: clamp(170px, 14.55vw, 210px);
  }

  /* v73: smooth bottom fade of the floral photo only. The mask lives on the
     dedicated absolute layer .sg-wreath-full, so every live child (.sg-nav
     z3, .sg-brand, .sg-max-chip, .sg-actions z7, .sg-menu z7) stays fully
     opaque and above it; the white menu plate and its links never fade.
     Mask (both prefixes) only inside >=1200 — <=1199 has no desktop
     background at all, so nothing else is affected. */
  html.sg-home .sg-wreath-full,
  html.sg-copy-page .sg-wreath-full {
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 72%,
      transparent 98%
    );
    mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 72%,
      transparent 98%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }

  html.sg-home .sg-nav,
  html.sg-copy-page .sg-nav {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
  }

  /* v82: retain the capsule position while accommodating the exact copy. */
  html.sg-home .sg-brand,
  html.sg-copy-page .sg-brand {
    position: absolute;
    left: 4.7%;
    top: 12%;
    width: clamp(330px, 25vw, 360px);
    height: auto;
    min-height: clamp(72px, 5.6vw, 80px);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: clamp(11px, 1vw, 15px);
    padding: 7px clamp(15px, 1.35vw, 20px) 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 252, 0.96);
    box-shadow: 0 10px 28px rgba(31, 62, 45, 0.13);
  }

  html.sg-home .sg-brand-mark,
  html.sg-copy-page .sg-brand-mark {
    width: 55px !important;
    height: 55px !important;
  }

  /* Full-Cyrillic system typography avoids the old one-word font subset. */
  html.sg-home .sg-brand-name,
  html.sg-copy-page .sg-brand-name {
    font-family: "Avenir Next", Avenir, Montserrat, "Segoe UI", Arial, sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: clamp(19px, 1.55vw, 22px) !important;
    line-height: 1.05;
  }

  html.sg-home .sg-brand-tag,
  html.sg-copy-page .sg-brand-tag {
    font-size: clamp(11px, 0.9vw, 13px) !important;
  }

  html.sg-home .sg-slogan,
  html.sg-copy-page .sg-slogan {
    font-size: clamp(10px, 0.85vw, 12px);
    white-space: normal;
  }

  /* MAX chip: center 52.5%, y≈18%, w≈22.3% (~285px @1280), h≈56,
     blue pill with white ring + live paper-plane icon. */
  html.sg-home .sg-max-chip,
  html.sg-copy-page .sg-max-chip {
    left: 52.5%;
    top: 18%;
    transform: translateX(-50%);
    height: 56px;
    width: 22.3%;
    box-sizing: border-box;
    justify-content: flex-start;
    gap: 10px;
    padding: 6px 18px;
    border-radius: 999px;
  }

  html.sg-home .sg-max-chip-plane,
  html.sg-copy-page .sg-max-chip-plane {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
  }

  html.sg-home .sg-max-chip-title,
  html.sg-copy-page .sg-max-chip-title {
    font-size: 16px;
  }

  html.sg-home .sg-max-chip-note,
  html.sg-copy-page .sg-max-chip-note {
    font-size: 11px;
  }

  /* Desktop actions: mirror the brand capsule's 4.7% outer inset. */
  html.sg-home .sg-actions,
  html.sg-copy-page .sg-actions {
    position: absolute;
    left: auto;
    right: 4.7%;
    top: 20%;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: 0;
  }

  html.sg-home .sg-act,
  html.sg-copy-page .sg-act {
    width: 48px;
    height: 48px;
  }


  /* White menu plate: x 4.5% / right 4.5%, bottom 9–14px, h≈47,
     7 items evenly distributed; current page = green filled pill. */
  html.sg-home .sg-menu,
  html.sg-copy-page .sg-menu {
    left: 4.5%;
    right: 4.5%;
    bottom: clamp(14px, 1.15vw, 17px);
    height: 47px;
    padding: 0 12px;
  }

  html.sg-home .sg-menu a,
  html.sg-copy-page .sg-menu a {
    padding: 7px 20px !important;
    border-radius: 999px;
    color: #2c2c2c !important;
    background: transparent !important;
    font-size: clamp(14px, 1.15vw, 16px) !important;
  }

  html.sg-home .sg-menu a.is-current,
  html.sg-copy-page .sg-menu a.is-current,
  html.sg-home .sg-menu a[aria-current="page"],
  html.sg-copy-page .sg-menu a[aria-current="page"] {
    padding-left: 26px !important;
    padding-right: 26px !important;
    background: #ff6b00 !important;
    color: #fff !important;
  }

  /* v71: no orange underline under the current page (green pill instead). */
  html.sg-home .sg-menu a.is-current::after,
  html.sg-copy-page .sg-menu a.is-current::after,
  html.sg-home .sg-menu a[aria-current="page"]::after,
  html.sg-copy-page .sg-menu a[aria-current="page"]::after {
    content: none !important;
    display: none !important;
  }

  html.sg-home .sg-menu a:hover,
  html.sg-copy-page .sg-menu a:hover {
    background: #f3ede4 !important;
    color: #ff6b00 !important;
  }

  html.sg-home .sg-menu a.is-current:hover,
  html.sg-copy-page .sg-menu a.is-current:hover,
  html.sg-home .sg-menu a[aria-current="page"]:hover,
  html.sg-copy-page .sg-menu a[aria-current="page"]:hover {
    background: #ff6b00 !important;
    color: #fff !important;
  }
}

/* ---- <=1199: burger band over the scene — decor/MAX/slogan/actions hidden. */
@media (max-width: 1199px) {
  html.sg-home .sg-wreath,
  html.sg-copy-page .sg-wreath { overflow: visible; }

  /* v70: side decor overlays and the centered MAX chip are desktop-only. */
  html.sg-home .sg-wreath-left,
  html.sg-copy-page .sg-wreath-left,
  html.sg-home .sg-wreath-right,
  html.sg-copy-page .sg-wreath-right,
  html.sg-home .sg-max-chip,
  html.sg-copy-page .sg-max-chip,
  html.sg-home .sg-slogan,
  html.sg-copy-page .sg-slogan,
  html.sg-home .sg-actions,
  html.sg-copy-page .sg-actions {
    display: none !important;
  }

  html.sg-home .sg-brand,
  html.sg-copy-page .sg-brand {
    width: auto;
    flex: 0 0 auto;
  }

  html.sg-home .sg-brand-mark,
  html.sg-copy-page .sg-brand-mark {
    width: 40px !important;
    height: 40px !important;
  }

  html.sg-home .sg-nav-toggle,
  html.sg-copy-page .sg-nav-toggle {
    display: block;
    margin-left: auto;
    flex: 0 0 auto;
  }

  html.sg-home .sg-menu,
  html.sg-copy-page .sg-menu {
    display: none;
    position: absolute;
    z-index: 30;
    left: 12px;
    right: 12px;
    /* v67: start below the 34px Instagram/cart strip (it keeps v66 z-index 8
       in DOM order after the header; dropdown must not overlap it). */
    top: calc(100% + 48px);
    bottom: auto;
    height: auto;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 8px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(37, 37, 37, 0.12);
  }

  html.sg-home .sg-nav.is-open .sg-menu,
  html.sg-copy-page .sg-nav.is-open .sg-menu { display: flex; }

  html.sg-home .sg-menu a,
  html.sg-copy-page .sg-menu a {
    padding: 12px 14px !important;
    font-size: 15px !important;
    white-space: normal;
  }

  html.sg-home .sg-menu a.is-current,
  html.sg-copy-page .sg-menu a.is-current,
  html.sg-home .sg-menu a[aria-current="page"],
  html.sg-copy-page .sg-menu a[aria-current="page"],
  html.sg-home .sg-menu a.is-current:hover,
  html.sg-copy-page .sg-menu a.is-current:hover,
  html.sg-home .sg-menu a[aria-current="page"]:hover,
  html.sg-copy-page .sg-menu a[aria-current="page"]:hover {
    background: #ff6b00 !important;
    color: #fff !important;
    border-radius: 10px;
  }

  html.sg-home .sg-menu a.is-current::after,
  html.sg-copy-page .sg-menu a.is-current::after,
  html.sg-home .sg-menu a[aria-current="page"]::after,
  html.sg-copy-page .sg-menu a[aria-current="page"]::after {
    content: none !important;
    display: none !important;
  }
}

/* ---- <=767: white capsule with brand + burger only. ---- */
@media (max-width: 767px) {
  /* Keep the pre-v28 mobile cream exactly as before. */
  html.sg-home,
  html.sg-copy-page {
    --sg-cream: #f6f0ea;
  }

  /* The desktop scene stays desktop-only; phones keep the white capsule. */
  html.sg-home .sg-wreath,
  html.sg-copy-page .sg-wreath {
    height: auto;
    aspect-ratio: auto;
    width: 100%;
    padding: 12px 10px 14px;
    overflow: visible;
    background: transparent;
  }

  html.sg-home .sg-wreath-full,
  html.sg-home .sg-wreath-left,
  html.sg-home .sg-wreath-right,
  html.sg-home .sg-wreath-top,
  html.sg-home .sg-wreath-bot,
  html.sg-copy-page .sg-wreath-full,
  html.sg-copy-page .sg-wreath-left,
  html.sg-copy-page .sg-wreath-right,
  html.sg-copy-page .sg-wreath-top,
  html.sg-copy-page .sg-wreath-bot { display: none; }

  html.sg-home .sg-nav,
  html.sg-copy-page .sg-nav {
    position: relative;
    z-index: 5;
    left: auto;
    right: auto;
    top: auto;
    height: auto;
    min-height: 56px;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(37, 37, 37, 0.08);
  }

  /* v67 root fix: brand never takes the whole row, toggle stays inside. */
  html.sg-home .sg-brand,
  html.sg-copy-page .sg-brand {
    width: auto;
    max-width: calc(100% - 50px);
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  html.sg-home .sg-brand-name,
  html.sg-copy-page .sg-brand-name {
    font-size: 17px !important;
  }

  html.sg-home .sg-brand-tag,
  html.sg-copy-page .sg-brand-tag {
    margin-top: 3px;
    font-size: 10.5px !important;
    letter-spacing: 0;
  }

  html.sg-home .sg-slogan,
  html.sg-copy-page .sg-slogan,
  html.sg-home .sg-actions,
  html.sg-copy-page .sg-actions {
    display: none !important;
  }

  html.sg-home .sg-brand-mark,
  html.sg-copy-page .sg-brand-mark {
    width: 40px !important;
    height: 40px !important;
  }

  html.sg-home .sg-nav-toggle,
  html.sg-copy-page .sg-nav-toggle {
    display: block;
    margin-left: auto;
    flex: 0 0 auto;
    position: static;
  }

  html.sg-home .sg-hero { margin-top: 6px; }
  html.sg-copy-page .sg-page-panel,
  html.sg-copy-page #shop { margin-top: 12px; }
}

/* v51: убрали системную рамку при нажатии на ссылки/кнопки (шапка, меню,
   карточки, товары). Тап-подсветку на телефонах тоже гасим. */
html.sg-home a,
html.sg-copy-page a,
html.sg-home button,
html.sg-copy-page button {
  -webkit-tap-highlight-color: transparent;
}

html.sg-home a:focus,
html.sg-copy-page a:focus,
html.sg-home button:focus,
html.sg-copy-page button:focus,
html.sg-home a:focus-visible,
html.sg-copy-page a:focus-visible,
html.sg-home button:focus-visible,
html.sg-copy-page button:focus-visible {
  outline: none;
}

/* v87: equal-size top row vertically centered above the menu. */
@media (min-width: 1200px) {
  html.sg-home .sg-nav, html.sg-copy-page .sg-nav { padding-top: clamp(18px, 1.45vw, 22px); }
  html.sg-home .sg-brand, html.sg-copy-page .sg-brand { position:absolute; left:calc(clamp(42px,5.2vw,76px) + 32px); top:calc((100% - 116px)/2); width:290px; min-width:290px; min-height:58px; height:58px; padding:6px 20px 6px 11px; box-sizing:border-box; }
  html.sg-home .sg-brand-mark, html.sg-copy-page .sg-brand-mark { width:46px !important; height:46px !important; }
  html.sg-home .sg-brand-name, html.sg-copy-page .sg-brand-name { font-size:16px !important; }
  html.sg-home .sg-brand-tag, html.sg-copy-page .sg-brand-tag { font-size:12px !important; }
  html.sg-home .sg-max-chip, html.sg-copy-page .sg-max-chip { left:51%; top:calc((100% - 116px)/2); width:360px; min-width:360px; height:58px; justify-content:center; padding:10px 20px; box-shadow:0 0 0 2px #fff,0 7px 18px rgba(36,86,255,.38); }
  html.sg-home .sg-max-chip-title, html.sg-copy-page .sg-max-chip-title { font-size:14px; white-space:nowrap; }
  html.sg-home .sg-delivery-chip, html.sg-copy-page .sg-delivery-chip { position:absolute; z-index:7; top:calc((100% - 116px)/2); right:calc(clamp(92px,8.2vw,118px) + 32px); width:290px; min-width:290px; height:58px; box-sizing:border-box; display:flex; align-items:center; gap:11px; padding:6px 18px 6px 12px; border-radius:999px; background:rgba(255,255,255,.96); color:#ef6b16 !important; text-decoration:none !important; box-shadow:0 8px 22px rgba(37,37,37,.16); }
  html.sg-home .sg-delivery-chip-icon, html.sg-copy-page .sg-delivery-chip-icon { width:38px; height:38px; flex:0 0 38px; display:grid; place-items:center; border-radius:50%; background:#ff6b00; color:#fff; }
  html.sg-home .sg-delivery-chip-icon svg, html.sg-copy-page .sg-delivery-chip-icon svg { width:27px; height:27px; }
  html.sg-home .sg-delivery-chip-copy, html.sg-copy-page .sg-delivery-chip-copy { display:flex; flex-direction:column; min-width:0; }
  html.sg-home .sg-delivery-chip-copy strong, html.sg-copy-page .sg-delivery-chip-copy strong { color:#174b36; font-size:13px; line-height:1.15; white-space:nowrap; }
  html.sg-home .sg-delivery-chip-copy small, html.sg-copy-page .sg-delivery-chip-copy small { color:#708073; font-size:11px; line-height:1.2; margin-top:3px; }
  html.sg-home .sg-actions, html.sg-copy-page .sg-actions { position:absolute; top:calc((100% - 116px)/2); right:clamp(18px,2.7vw,40px); margin:0; gap:8px; }
  html.sg-home .sg-act, html.sg-copy-page .sg-act { width:42px; height:42px; }
  html.sg-home .sg-menu, html.sg-copy-page .sg-menu { left:5.2%; right:5.2%; bottom:15px; height:43px; padding:0 10px; background:rgba(255,255,255,.96); box-shadow:0 8px 20px rgba(37,37,37,.15); }
  html.sg-home .sg-menu a, html.sg-copy-page .sg-menu a { font-size:13px !important; padding:7px 18px !important; }
}
/* v89: delivery remains a first-class navigation target on phones/tablets.
   It moves into the responsive header instead of disappearing behind the burger. */
@media (max-width:1199px) {
  html.sg-home .sg-nav, html.sg-copy-page .sg-nav {
    padding-bottom: 72px;
  }
  html.sg-home .sg-delivery-chip, html.sg-copy-page .sg-delivery-chip {
    position: absolute;
    z-index: 8;
    /* v89: widened insets — the old 12px insets left only 0.8px clearance to
       the capsule's 999px pill curve at 390px, so the chip corners visually
       stuck out of the nav capsule. 18px sides / 16px bottom give ~8px. */
    left: 18px;
    right: 18px;
    bottom: 16px;
    width: auto;
    min-width: 0;
    height: 44px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 14px 5px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    color: #ef6b16 !important;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(37,37,37,.14);
  }
  html.sg-home .sg-delivery-chip-icon, html.sg-copy-page .sg-delivery-chip-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ff6b00;
    color: #fff;
  }
  html.sg-home .sg-delivery-chip-icon svg, html.sg-copy-page .sg-delivery-chip-icon svg {
    width: 21px;
    height: 21px;
  }
  html.sg-home .sg-delivery-chip-copy, html.sg-copy-page .sg-delivery-chip-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  html.sg-home .sg-delivery-chip-copy strong, html.sg-copy-page .sg-delivery-chip-copy strong {
    color: #174b36;
    font-size: 12px;
    line-height: 1.15;
    white-space: nowrap;
  }
  html.sg-home .sg-delivery-chip-copy small, html.sg-copy-page .sg-delivery-chip-copy small {
    color: #708073;
    font-size: 10px;
    line-height: 1.15;
    margin-top: 2px;
  }
}

