
:root {
  --sh-bg:        #f5f2eb;
  --sh-fg:        #0d0d0b;
  --sh-accent:    #3e5e44;
  --sh-accent-lt: #7ab87e;
  --sh-border:    rgba(13, 13, 11, 0.18);
  --sh-muted:     rgba(13, 13, 11, 0.65);
  --sh-font-head: 'Unbounded', sans-serif;
  --sh-font-body: 'Space Grotesk', sans-serif;
  --sh-h:         80px;
  --sh-bot-h:     36px;
}

/* ══════════════════════════════════════════
   SITE HEADER — обёртка
══════════════════════════════════════════ */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--sh-bg);
  border-bottom: none;
  padding-right: 0.5rem;
}

/* ══════════════════════════════════════════
   ВЕРХНЯЯ СТРОКА — логотип + навигация
══════════════════════════════════════════ */
.sh-top {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1fr;
  height: var(--sh-h);
  border-bottom: 0.5px solid var(--sh-border);
}

.sh-logo-cell {
  display: flex;
  align-items: center;
  padding: 16px 28px;
  border-right: 0.5px solid var(--sh-border);
}

.sh-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
  gap: 5px;
}

.sh-logo-wordmark { font-family: var(--sh-font-head); font-size: var(--text-lg); font-weight: 700; color: var(--sh-fg); letter-spacing: -.01em; }
.sh-logo-accent   { color: var(--sh-accent); }
.sh-logo-sub      { font-family: var(--sh-font-body); font-size: var(--text-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--sh-muted); }
.sh-logo-img      { height: 48px; width: auto; display: block; }

/* ── Навигация ── */
.sh-nav-cell { display: flex; align-items: stretch; }
.sh-nav      { display: flex; align-items: stretch; flex: 1; }

.sh-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 4px;
  text-align: center;
  text-decoration: none;
  color: var(--sh-fg);
  border-right: 0.5px solid var(--sh-border);
  transition: background .15s, color .15s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.sh-nav-item:last-child  { border-right: none; }
.sh-nav-item:hover       { background: rgba(62, 94, 68, 0.07); }
.sh-nav-item.is-active   { background: var(--sh-accent); color: var(--sh-bg); }
.sh-nav-item.mega-open      { background: var(--sh-accent); color: var(--sh-bg); }
.sh-nav-item.mega-open::before { display: none; }

.sh-nav-ru { font-family: var(--sh-font-body); font-size: var(--text-sm); font-weight: 400; letter-spacing: .03em; line-height: 1.2; }

/* Линия-акцент сверху при hover */
.sh-nav-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--sh-accent-lt);
  transform: scaleX(0);
  transition: transform .2s;
}
.sh-nav-item:hover::before   { transform: scaleX(1); }
.sh-nav-item.is-active::before { display: none; }

/* Пункт с мега-меню */
.sh-nav-item--drop {
  flex-direction: row;
  gap: 5px;
  overflow: visible;
}

.sh-drop-arrow { transition: transform 0.2s; flex-shrink: 0; }

/* ══════════════════════════════════════════
   НИЖНЯЯ СТРОКА — адрес + действия (sticky)
══════════════════════════════════════════ */
.sh-bottom {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--sh-bot-h);
  padding: 0 28px;
  gap: 16px;
  background: var(--sh-bg);
  border-bottom: 0.5px solid var(--sh-border);
}

.sh-addr { font-family: var(--sh-font-body); font-size: var(--text-sm); color: var(--sh-muted); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sh-actions { display: flex; align-items: stretch; flex-shrink: 0; height: 100%; }

.sh-action-item {
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-family: var(--sh-font-body);
  font-size: var(--text-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sh-accent);
  text-decoration: none;
  border-left: 0.5px solid var(--sh-border);
  transition: background .15s, color .15s;
  cursor: pointer;
  white-space: nowrap;
}

.sh-action-item:first-child        { background: var(--sh-accent); color: var(--sh-bg); font-weight: 500; }
.sh-action-item:first-child:hover  { background: #2d4a32; }
.sh-action-item:not(:first-child)  { color: rgba(13, 13, 11, 0.7); font-weight: 600; }
.sh-action-item:not(:first-child):hover { background: rgba(62, 94, 68, 0.07); }

/* ══════════════════════════════════════════
   БУРГЕР-КНОПКА
══════════════════════════════════════════ */
.sh-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 48px;
  height: var(--sh-h);
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0 14px;
  border-left: 0.5px solid var(--sh-border);
  flex-shrink: 0;
}

.sh-burger-bar { display: block; width: 22px; height: 1.5px; background: var(--sh-fg); transition: transform .2s, opacity .2s; transform-origin: center; }
.sh-burger.is-open .sh-burger-bar:first-child { transform: translateY(3.75px) rotate(45deg); }
.sh-burger.is-open .sh-burger-bar:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

/* ══════════════════════════════════════════
   МОБИЛЬНОЕ МЕНЮ
══════════════════════════════════════════ */
.sh-mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--sh-bg);
  border-top: 0.5px solid var(--sh-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.sh-mobile-nav.is-open { max-height: 600px; }

.sh-mob-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  font-family: var(--sh-font-body);
  font-size: var(--text-body);
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--sh-fg);
  text-decoration: none;
  border-bottom: 0.5px solid var(--sh-border);
  transition: background .15s;
}

.sh-mob-link::after  { content: '→'; font-size: var(--text-sm); color: var(--sh-muted); }
.sh-mob-link:hover   { background: rgba(62, 94, 68, 0.06); }
.sh-mob-link.is-active         { color: var(--sh-accent); font-weight: 500; }
.sh-mob-link.is-active::after  { color: var(--sh-accent); }

.sh-mob-footer { display: flex; align-items: center; border-top: 0.5px solid var(--sh-border); }

.sh-mob-phone {
  flex: 1;
  padding: 16px 24px;
  font-family: 'Courier New', monospace;
  font-size: var(--text-sm);
  color: var(--sh-muted);
  text-decoration: none;
  border-right: 0.5px solid var(--sh-border);
}

.sh-mob-cta {
  padding: 16px 28px;
  font-family: var(--sh-font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sh-bg);
  background: var(--sh-accent);
  text-decoration: none;
  transition: background .15s;
}
.sh-mob-cta:hover { background: #2d4a32; }

/* Блокировка скролла при открытом мобильном меню */
body.menu-open { overflow: hidden; }

/* ══════════════════════════════════════════
   МЕГА-МЕНЮ
══════════════════════════════════════════ */
.mega-menu {
  position: sticky;
  top: var(--sh-bot-h);
  z-index: 101;
  margin-top: calc(-1 * var(--sh-bot-h));
  width: 100%;
  background: var(--sh-bg);
  border-bottom: 0.5px solid var(--sh-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding-top: 0;
}

.mega-menu.is-open {
  max-height: 500px;
  padding-top: var(--sh-bot-h);
}

.mega-menu__inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px;
  gap: 0;
}

.mega-menu__col {
  padding: 0 24px 0 0;
  margin-right: 24px;
  border-right: 0.5px solid var(--sh-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mega-menu__col:last-child { border-right: none; margin-right: 0; padding-right: 0; }

.mega-menu__cat {
  font-family: var(--sh-font-head);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sh-accent);
  text-decoration: none;
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--sh-border);
  margin-bottom: 4px;
  transition: color .15s;
}
.mega-menu__cat:hover { color: #2d4a32; }

.mega-menu__articles { list-style: none; display: flex; flex-direction: column; flex: 1; }

.mega-menu__article {
  display: block;
  font-family: var(--sh-font-body);
  font-size: var(--text-sm);
  color: var(--sh-muted);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 0.5px solid rgba(13, 13, 11, 0.06);
  transition: color .15s, padding-left .15s;
  line-height: 1.4;
}
.mega-menu__article:hover { color: var(--sh-fg); padding-left: 4px; }

.mega-menu__all {
  display: inline-block;
  font-family: var(--sh-font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sh-accent);
  text-decoration: none;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 0.5px solid var(--sh-border);
  transition: color .15s;
}
.mega-menu__all:hover { color: #2d4a32; }

/* ══════════════════════════════════════════
   АДАПТИВ
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .sh-nav-ru { font-size: var(--text-xs); }
  .sh-top    { grid-template-columns: minmax(240px, 1fr) 1fr; }
  .sh-addr   { display: none; }
}

@media (max-width: 640px) {
  .sh-top           { grid-template-columns: 1fr auto; height: 60px; }
  .sh-logo-cell     { border-right: none; padding: 0 20px; }
  .sh-logo-wordmark { font-size: var(--text-base); }
  .sh-nav           { display: none; }
  .sh-burger        { display: flex; height: 60px; }
  .sh-mobile-nav    { display: flex; }
  .sh-bottom        { padding: 0; height: auto; }
  .sh-addr          { display: none; }
  .sh-actions       { width: 100%; height: 40px; }
  .sh-action-item   { flex: 1; justify-content: center; font-size: var(--text-xs); border-left: none; border-top: 0.5px solid var(--sh-border); }
  .sh-action-item:not(:first-child) { border-left: 0.5px solid var(--sh-border); }
  .mega-menu        { display: none; }
}