/* Еда в кубе — общий каркас нового стиля (шапка / футер / drawer) */
:root {
  --bg: #f5f0e6;
  --bg-warm: #efe8d8;
  --ink: #141210;
  --ink-soft: #5c564e;
  --ink-muted: #5c564e;
  --green: #243d28;
  --green-mid: #3a6142;
  --orange: #e8721c;
  --orange-lt: #f5a045;
  --cream: #faf6ee;
  --white: #fff;
  --line: rgba(20,18,16,.12);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
  --header-h: 76px;
}

.wrap { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; }

/* Mini 3D cube */
.logo-cube-mini {
  width: 48px; height: 48px;
  perspective: 130px;
  flex-shrink: 0;
  transform: translateZ(0);
  isolation: isolate;
  contain: layout style;
}
.lcm-scene {
  width: 48px; height: 48px;
  perspective: 130px;
  transform: translateZ(0);
}
.lcm-cube {
  width: 48px; height: 48px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-22deg) rotateY(30deg) translateZ(0);
  animation: none !important;
  transition: none !important;
}
.lcm-face {
  position: absolute; width: 48px; height: 48px;
  background: var(--orange);
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  backface-visibility: hidden;
  overflow: hidden;
  animation: none !important;
  transition: none !important;
}
.lcm-face.lf  { transform: translateZ(24px); }
.lcm-face.lb  { transform: rotateY(180deg) translateZ(24px); background: #c4601a; }
.lcm-face.ll  { transform: rotateY(-90deg) translateZ(24px); background: #d46618; }
.lcm-face.lr  { transform: rotateY(90deg)  translateZ(24px); background: #d46618; }
.lcm-face.lt  { transform: rotateX(90deg)  translateZ(24px); background: var(--orange-lt); }
.lcm-face.lbt { transform: rotateX(-90deg) translateZ(24px); background: #a85416; }
.cube-mark {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--serif); line-height: 1; text-align: center;
}
.cube-mark .cm-eda {
  font-weight: 900; font-size: 1.09rem; letter-spacing: -.02em;
  display: inline-flex; align-items: flex-start;
}
.cube-mark .cm-eda sup {
  font-size: .42em; font-weight: 700;
  margin-top: .06em; margin-left: .02em; line-height: 1;
}

.brand {
  display: flex; align-items: center; gap: .65rem;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}
.logo-text-block {
  display: flex; flex-direction: column; gap: .05rem;
  margin-left: .9rem;
}
.logo-brand-text {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 700;
  color: var(--green); letter-spacing: -.02em; line-height: 1.1;
}
.logo-slogan-text {
  font-size: .58rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--orange-lt); line-height: 1;
}

/* Override legacy style.css header */
.site-header {
  position: fixed !important;
  top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  display: flex !important;
  align-items: center;
  background: rgba(250,246,238,.97) !important;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
  width: 100%;
  max-width: 100%;
  padding: 0 !important;
  transform: translateZ(0);
  backface-visibility: hidden;
  color: var(--ink);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px rgba(20,18,16,.07);
  background: rgba(250,246,238,.99) !important;
}
.site-header.on-dark {
  background: rgba(250,246,238,.97) !important;
}
.site-header.on-dark .logo-brand-text { color: var(--green) !important; }
.header-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 .85rem;
  display: flex; align-items: center; gap: .65rem;
  min-width: 0;
  box-sizing: border-box;
}
.page-offset { height: var(--header-h); }

.nav {
  display: flex; align-items: center; gap: .1rem;
  margin-left: .6rem;
}
.nav a, .nav-drop > summary {
  padding: .55rem .8rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}
.nav a:hover, .nav-drop > summary:hover { background: rgba(36,61,40,.08); }
.nav-drop { position: relative; flex-shrink: 0; }
.nav-drop > summary {
  cursor: pointer; display: flex; align-items: center; gap: .35rem;
}
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::after {
  content: '';
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .5;
}
.nav-menu {
  position: absolute; top: calc(100% + .35rem); left: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .4rem;
  box-shadow: 0 16px 36px rgba(20,18,16,.12);
  display: grid; gap: .1rem;
  z-index: 60;
}
.nav-menu a {
  padding: .65rem .85rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 500;
  display: block;
}

.header-contact {
  margin-left: auto;
  display: flex; align-items: center; gap: .65rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(36,61,40,.18);
  flex-shrink: 1;
  min-width: 0;
}
.header-contact .btn { white-space: nowrap; flex-shrink: 0; }
.phone-block { text-align: right; line-height: 1.15; flex-shrink: 0; }
.phone-block a {
  display: block; font-weight: 700; font-size: .95rem; color: var(--green); white-space: nowrap;
  text-decoration: none;
}
.phone-block span { font-size: .7rem; color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s, color .25s;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-orange {
  background: var(--orange); color: #fff;
  box-shadow: 0 10px 28px rgba(232,114,28,.28);
}
.btn-orange:hover { background: var(--orange-lt); color: #fff; }
.btn-dark { background: var(--green); color: #fff; }
.btn-line {
  background: transparent; color: var(--green);
  border: 1.5px solid rgba(36,61,40,.25);
}
.btn-line:hover { border-color: var(--green); background: rgba(36,61,40,.05); }
.btn-sm { padding: .65rem 1.05rem; font-size: .88rem; }
.btn-callback {
  background: transparent;
  color: var(--green);
  border: 1.5px solid rgba(36,61,40,.28);
  padding: .55rem 1rem;
  font-size: .82rem;
  white-space: nowrap;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.btn-callback:hover {
  background: rgba(36,61,40,.06);
  border-color: var(--green);
  transform: translateY(-1px);
}

.icon-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(36,61,40,.08);
  color: var(--green);
  transition: background .2s, color .2s;
  flex-shrink: 0;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}
.icon-btn:hover { background: var(--green); color: #fff; }
.icon-btn svg { width: 20px; height: 20px; display: block; }

/* ЛК всегда как на главной — перекрываем legacy style.css (.account-btn / .on-dark) */
.site-header .icon-btn.account-btn,
.site-header .account-btn.icon-btn,
.header-contact .icon-btn.account-btn,
.header-account-wrap .icon-btn.account-btn,
.header-account-wrap .account-btn {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(36,61,40,.08) !important;
  color: var(--green) !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
.site-header .icon-btn.account-btn:hover,
.site-header .account-btn.icon-btn:hover,
.header-account-wrap .account-btn:hover,
.header-contact .icon-btn.account-btn:hover {
  background: var(--green) !important;
  color: #fff !important;
}
.site-header.on-dark .account-btn,
.site-header.on-dark .icon-btn.account-btn,
.site-header.on-dark .header-account-wrap .account-btn {
  background: rgba(36,61,40,.08) !important;
  color: var(--green) !important;
}
.site-header.on-dark .account-btn:hover,
.site-header.on-dark .icon-btn.account-btn:hover {
  background: var(--green) !important;
  color: #fff !important;
}
.site-header .icon-btn.account-btn.logged-in,
.site-header .account-btn.logged-in,
.header-account-wrap .account-btn.logged-in,
.site-header.on-dark .account-btn.logged-in {
  background: var(--orange) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .02em;
}
.account-initials { line-height: 1; color: inherit; }

.cart-chip {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  text-decoration: none;
}
.cart-chip #cartBadge,
.cart-chip .cart-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--orange); color: #fff;
  font-size: .65rem; font-weight: 700;
  display: none;
  align-items: center; justify-content: center;
  line-height: 1;
}

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  background: none;
  cursor: pointer;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); }

.drawer {
  display: none; position: fixed; inset: 0; z-index: 60;
  background: rgba(16,14,10,.45);
}
.drawer.open { display: block; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(320px, 88vw);
  background: var(--cream);
  padding: 1.15rem;
  display: flex; flex-direction: column; gap: .3rem;
  box-shadow: -12px 0 40px rgba(0,0,0,.18);
  overflow-y: auto;
}
.drawer-panel a {
  padding: .8rem .9rem; border-radius: 12px; font-weight: 600;
  text-decoration: none; color: var(--ink);
}
.drawer-panel a:hover { background: rgba(36,61,40,.08); }
.drawer-close {
  align-self: end; margin-bottom: .4rem;
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: none; cursor: pointer; font-size: 1rem;
}

/* Footer — компактный */
.site-footer {
  background: var(--green);
  color: rgba(245,240,230,.72);
  padding: 2rem 0 1.25rem;
}
.site-footer .wrap,
.site-footer .container {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  max-width: none;
  padding: 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.35fr 1.5fr 1.1fr;
  gap: 1.25rem 1.75rem;
  margin-bottom: 1.25rem;
  align-items: start;
}
.foot-brand-row {
  display: flex; align-items: center; gap: .65rem;
  margin-bottom: .55rem;
}
.site-footer .logo-brand-text { color: #fff; font-size: 1.2rem; }
.site-footer .logo-cube-mini,
.site-footer .lcm-scene,
.site-footer .lcm-cube { width: 40px; height: 40px; }
.site-footer .lcm-face { width: 40px; height: 40px; }
.site-footer .lcm-face.lf  { transform: translateZ(20px); }
.site-footer .lcm-face.lb  { transform: rotateY(180deg) translateZ(20px); }
.site-footer .lcm-face.ll  { transform: rotateY(-90deg) translateZ(20px); }
.site-footer .lcm-face.lr  { transform: rotateY(90deg)  translateZ(20px); }
.site-footer .lcm-face.lt  { transform: rotateX(90deg)  translateZ(20px); }
.site-footer .lcm-face.lbt { transform: rotateX(-90deg) translateZ(20px); }
.site-footer .cube-mark .cm-eda { font-size: .92rem; }
.foot-tagline {
  font-size: .86rem;
  line-height: 1.45;
  margin: 0;
  max-width: 28ch;
}
.foot-req {
  margin-top: .55rem;
  font-size: .72rem;
  opacity: .7;
  line-height: 1.45;
}
.foot-grid h4 {
  color: #fff; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: .55rem;
}
.foot-nav {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0 1.25rem;
  align-items: start;
}
.foot-legal {
  /* align first link with first link under «Разделы» */
  padding-top: calc(.72rem + .55rem);
}
.foot-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.foot-grid a { display: block; padding: .18rem 0; color: inherit; text-decoration: none; font-size: .88rem; }
.foot-grid a:hover { color: #fff; }
.foot-phones a { font-size: .98rem; font-weight: 700; color: #fff; }
.foot-phones span { display: block; font-size: .72rem; opacity: .7; margin-bottom: .4rem; }
.footer-socials {
  display: flex; gap: .45rem; margin-top: .75rem; flex-wrap: wrap;
}
.social-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(245,240,230,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(245,240,230,.6); transition: all .2s;
  flex-shrink: 0;
  text-decoration: none;
}
.social-btn svg { width: 15px; height: 15px; }
.social-btn:hover { background: var(--orange); color: var(--white); transform: translateY(-2px); }

.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: .85rem;
  font-size: .75rem;
  display: flex; justify-content: space-between; align-items: center; gap: .85rem; flex-wrap: wrap;
}
.foot-copy {
  margin-left: auto;
  color: rgba(245,240,230,.72);
}
.foot-made {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(245,240,230,.9);
  font-size: .75rem;
  letter-spacing: .03em;
  line-height: 1;
  flex-shrink: 0;
  white-space: nowrap;
}
.foot-made img {
  height: 1.36rem;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* Компактные зелёные шапки страниц (не как full-bleed hero главной с фото) */
.page-hero,
.doc-hero,
.cl-hero {
  padding-top: calc(var(--header-h) + 1.25rem) !important;
  padding-bottom: 1.6rem !important;
}
.page-hero h1,
.doc-hero h1,
.cl-hero h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.55rem) !important;
  line-height: 1.08 !important;
}
.page-hero .hero-lead,
.page-hero p,
.doc-hero .lead,
.cl-hero-desc {
  margin-top: .55rem !important;
  font-size: .98rem !important;
  max-width: 42ch;
}
.page-hero .breadcrumb,
.doc-hero .breadcrumb {
  margin-bottom: .7rem !important;
}

@media (max-width: 1200px) {
  .header-contact .btn-orange { display: none; }
  .nav a, .nav-drop > summary { padding: .5rem .65rem; font-size: .86rem; }
  .btn-callback { padding: .5rem .85rem; font-size: .78rem; }
}
@media (max-width: 1100px) {
  .phone-block span { display: none; }
}
@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: inline-flex; flex-shrink: 0; }
  .phone-block { display: none; }
  .btn-callback { display: none; }
  .header-contact {
    border-left: none;
    padding-left: 0;
    gap: .4rem;
    flex-shrink: 0;
  }
  .brand { min-width: 0; }
  .logo-text-block { margin-left: .35rem; min-width: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-nav { grid-template-columns: 1fr 1fr; }
  .wrap, .site-footer .wrap, .site-footer .container {
    width: min(1180px, calc(100% - 1.5rem));
  }
}
@media (max-width: 640px) {
  .foot-nav { grid-template-columns: 1fr; }
  .foot-legal { padding-top: 0; }
  .logo-slogan-text { display: none; }
  .logo-brand-text { font-size: 1.05rem; }
  .logo-cube-mini, .lcm-scene, .lcm-cube { width: 40px; height: 40px; }
  .lcm-face { width: 40px; height: 40px; }
  .lcm-face.lf  { transform: translateZ(20px); }
  .lcm-face.lb  { transform: rotateY(180deg) translateZ(20px); }
  .lcm-face.ll  { transform: rotateY(-90deg) translateZ(20px); }
  .lcm-face.lr  { transform: rotateY(90deg)  translateZ(20px); }
  .lcm-face.lt  { transform: rotateX(90deg)  translateZ(20px); }
  .lcm-face.lbt { transform: rotateX(-90deg) translateZ(20px); }
  .cube-mark .cm-eda { font-size: .92rem; }
  .header-inner { padding: 0 .65rem; gap: .4rem; }
  .icon-btn, .cart-chip, .burger { width: 38px; height: 38px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .foot-copy { margin-left: 0; }
}
