/* — общая шапка и мобильное меню «Тепло» (index.html, photo-menu.html) — */

/* статус «открыто сейчас» */
.open-now { display: inline-flex; align-items: center; gap: 7px; font-size: 13px !important;
  letter-spacing: 0.04em; font-feature-settings: "tnum" 1; padding: 5px 10px; text-decoration: none;
  border: 1px solid var(--color-divider); border-radius: 999px; white-space: nowrap;
  color: color-mix(in srgb, var(--color-text) 80%, transparent) !important; }
.open-now .dot { width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: color-mix(in srgb, var(--color-text) 35%, transparent); }
.open-now.is-open .dot { background: #5a8f4e; box-shadow: 0 0 0 3px color-mix(in srgb, #5a8f4e 20%, transparent); }

/* переключатель языка */
.lang-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 30px; padding: 0 8px;
  box-sizing: border-box; font-size: 12px !important; letter-spacing: .1em; text-decoration: none;
  border: 1px solid var(--color-divider); border-radius: 999px; color: inherit; }
.lang-switch:hover { border-color: var(--color-accent); color: var(--color-accent-700); }
.lang-switch:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
body.over-hero .nav .lang-switch { border-color: rgba(246,241,232,.35); }

/* кнопка-бургер */
.burger { display: none; width: 44px; height: 44px; padding: 0; flex: none; cursor: pointer;
  align-items: center; justify-content: center; background: transparent;
  border: 1px solid color-mix(in srgb, var(--color-accent) 55%, transparent); border-radius: 50%;
  transition: border-color .25s, background .25s; }
.burger:hover { border-color: var(--color-accent); }
.burger:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.burger .bars { position: relative; width: 18px; height: 12px; display: block; }
.burger .bars i { position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px;
  background: var(--color-text); transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .2s, top .35s cubic-bezier(.16,1,.3,1); }
.burger .bars i:nth-child(1) { top: 0; }
.burger .bars i:nth-child(2) { top: 5.25px; }
.burger .bars i:nth-child(3) { top: 10.5px; left: 6px; }
.burger.is-x .bars i:nth-child(1) { top: 5.25px; transform: rotate(45deg); }
.burger.is-x .bars i:nth-child(2) { opacity: 0; }
.burger.is-x .bars i:nth-child(3) { top: 5.25px; left: 0; transform: rotate(-45deg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .nav .nav-link, .nav .nav-cta { display: none; }
  body .nav { gap: 10px; }
  .nav .lang-switch { margin-left: auto; }
}
@media (max-width: 400px) { body .nav { gap: 8px; } .nav .open-now { padding: 4px 8px; font-size: 12px !important; } }
@media (max-width: 350px) { .nav .open-now .t { display: none; } }

/* полноэкранное меню */
.mm { position: fixed; inset: 0; z-index: 50; background: var(--color-bg);
  display: flex; flex-direction: column; overflow-y: auto;
  padding: 0 var(--edge) calc(20px + env(safe-area-inset-bottom));
  visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility .35s; }
.mm.open { visibility: visible; opacity: 1; }
.mm-top { display: flex; align-items: center; justify-content: space-between; min-height: 64px;
  border-bottom: 1px solid var(--color-divider); }
.mm-top .brand { text-decoration: none; color: inherit; }
.mm-list { display: flex; flex-direction: column; padding: 12px 0; flex: 1; justify-content: center; }
.mm-link { display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 4px 10px;
  padding: 14px 0; text-decoration: none; color: var(--color-text) !important;
  border-bottom: 1px solid var(--color-divider);
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease, transform .6s cubic-bezier(.16,1,.3,1), color .2s; transition-delay: var(--d, 0s); }
.mm.open .mm-link { opacity: 1; transform: none; }
.mm-link:hover, .mm-link[aria-current] { color: var(--color-accent-700) !important; }
.mm-link:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.mm-n { font-size: 12px; letter-spacing: 0.06em; color: var(--color-accent-700); font-feature-settings: "tnum" 1; }
.mm-t { font-family: var(--font-heading); font-weight: 400; font-size: clamp(30px, 8.6vw, 44px); line-height: 1.1; }
.mm-s { grid-column: 2; font-size: 13px; line-height: 18px; color: color-mix(in srgb, var(--color-text) 58%, transparent); }
.mm-arrow { grid-row: 1; grid-column: 3; font-size: 18px; color: var(--color-accent); transition: transform .25s; }
.mm-link:hover .mm-arrow { transform: translateX(4px); }
.mm-bottom { display: grid; gap: 12px; padding-top: 16px;
  opacity: 0; transition: opacity .5s ease .3s; }
.mm.open .mm-bottom { opacity: 1; }
.mm-bottom .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mm-addr { margin: 0; font-size: 14px; line-height: 20px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.mm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mm-actions .btn { justify-content: center; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .mm, .mm-link, .mm-bottom, .burger .bars i { transition: none; }
}
