/* Общая статичная шапка сайта и адаптивные правки меню */
.site-header,
.site-header * { box-sizing: border-box; }
.site-header {
  position: relative !important;
  top: auto !important;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid #eadfd5;
  background: #fff;
  color: #2f251e;
  box-shadow: 0 5px 20px rgba(45,31,20,.045);
  backdrop-filter: none !important;
}
.site-header__inner {
  width: min(100% - 40px, 1240px);
  min-height: 86px;
  height: auto !important;
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-logo {
  display: flex;
  width: 148px;
  flex: 0 0 148px;
  align-items: center;
  text-decoration: none;
}
.site-logo img {
  display: block;
  width: 100%;
  height: 64px;
  object-fit: contain;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
}
.site-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border-radius: 11px;
  color: #4e443c;
  font: 650 15px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  text-decoration: none;
  transition: background-color .18s ease,color .18s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: #f5e9df;
  color: #783713;
}
.site-phone {
  display: flex;
  min-height: 50px;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 13px;
  background: #231912;
  color: #fff !important;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 7px 18px rgba(35,25,18,.16);
}
.site-phone span {
  color: #dac8bb;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.site-phone strong {
  margin-top: 2px;
  color: #fff;
  font-size: 16px;
  line-height: 1.15;
}
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: #f5e9df;
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: #33271f;
  transition: transform .2s ease,opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

/* Подменю разделов не прилипает к экрану */
.category-bar {
  position: relative !important;
  top: auto !important;
  z-index: 1 !important;
  background: #f5f2ed !important;
  backdrop-filter: none !important;
}
.category-nav {
  flex-wrap: wrap;
  overflow: visible !important;
}
.menu-section { scroll-margin-top: 24px !important; }

/* Фотографии в карточках показываются полностью, без обрезания */
.dish-card {
  grid-template-columns: minmax(230px, 44%) minmax(0, 1fr) !important;
  min-height: 270px !important;
}
.dish-card__image-wrap {
  display: flex;
  min-height: 270px;
  align-items: center;
  justify-content: center;
  padding: 9px;
  background: #faf7f3 !important;
}
.dish-card__image {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 300px;
  object-fit: contain !important;
  object-position: center !important;
}
.dish-card:hover .dish-card__image { transform: none !important; }

@media (max-width: 1080px) {
  .site-header__inner { width: min(100% - 32px, 1240px); gap: 14px; }
  .site-nav a { padding: 0 10px; font-size: 14px; }
  .site-phone { padding-right: 12px; padding-left: 12px; }
  .dish-card { grid-template-columns: minmax(270px, 38%) minmax(0, 1fr) !important; }
}
@media (max-width: 800px) {
  .site-header__inner { min-height: 74px; padding: 7px 0; }
  .site-logo { width: 122px; flex-basis: 122px; }
  .site-logo img { height: 58px; }
  .menu-toggle { display: block; }
  .site-phone { display: none !important; }
  .site-nav {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 16px !important;
    left: 16px !important;
    z-index: 200;
    display: none;
    margin: 0;
    padding: 9px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid #e5ddd4;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(45,31,20,.16);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { min-height: 46px; padding: 0 14px; font-size: 15px; }
  .category-nav {
    flex-wrap: nowrap;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .dish-card { grid-template-columns: minmax(245px, 42%) minmax(0, 1fr) !important; }
}
@media (max-width: 620px) {
  .site-header__inner { width: calc(100% - 24px); }
  .dish-card {
    display: flex !important;
    min-height: 0 !important;
    flex-direction: column !important;
  }
  .dish-card__image-wrap {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3 !important;
    padding: 8px;
  }
  .dish-card__image {
    width: 100% !important;
    height: 100% !important;
    max-height: none;
    object-fit: contain !important;
  }
}
