/* --- Стили --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #f8f9fa;
  color: #1a1a1a;
  padding-bottom: 90px;
}

/* --- Хэдэр --- */
.sticky-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header {
  background-color: #ffffff;
  padding: 12px 0 0 0;
  border-bottom: 1px solid #eaeaea;
  text-align: center;
  position: relative;
}

.header-container {
  max-width: 550px;
  margin: 0 auto;
  padding: 0 15px 12px 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Кнопка "Назад" */
.back-btn {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  text-decoration: none;
  color: #111111;
  font-size: 22px;
  font-weight: 700;
  padding: 4px 8px;
  line-height: 1;
}

/* Стили для логотипа */
a.logo, div.logo, .header .logo {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  gap: 10px;
}

a.logo::after, .header .logo::after {
  display: none !important;
}

.logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #111111;
  text-decoration: none;
}

/* --- кнопка языков --- */
.lang-switch {
  display: flex;
  gap: 4px;
  background: #f0f0f0;
  padding: 3px;
  border-radius: 20px;
}

.lang-btn {
  background: transparent;
  border: none;
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #666666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: #111111;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* --- Дополнительные кнопки в хэдэре (Отзывы, Контакты, Галерея) в рамочках --- */
.header-extra-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 15px;
  border-top: 1px solid #eaeaea;
  max-width: 550px;
  margin: 0 auto;
}

.header-link-btn {
  display: inline-block;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #111111;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.header-link-btn:hover {
  background: #f8f9fa;
  border-color: #b0b0b0;
}

/* --- кнопки категорий (всегда в одну линию с горизонтальной прокруткой) --- */
.categories-nav {
  display: flex;
  gap: 10px;
  padding: 12px 15px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.categories-nav::-webkit-scrollbar {
  display: none;
}

/* Исправление для альбомного режима на смартфонах */
@media (max-height: 500px) and (orientation: landscape) {
  .sticky-header-wrapper {
    position: relative;
  }
  .categories-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px 15px;
  }
}

.category-btn {
  flex: 0 0 110px;
  height: 48px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

@media (max-height: 500px) and (orientation: landscape) {
  .category-btn {
    height: 38px;
    flex: 0 0 95px;
  }
}

.category-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.category-btn span {
  position: relative;
  z-index: 2;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13px;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  padding: 0 4px;
}

.category-btn.active {
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  transform: scale(1.04);
}

/* --- КОНТЕНТ И КАРТОЧКИ--- */
.main-content, .container, .page-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 15px;
}

.text-center {
  text-align: center !important;
}

h1, .page-title, .category-title {
  text-align: center !important;
  font-size: 22px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 20px;
}

.menu-section {
  scroll-margin-top: 130px;
  margin-bottom: 25px;
}

/* --- КАРТОЧКИ БЛЮД --- */
.card-trigger {
  display: none;
}

.card {
  display: block;
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: background-color 0.2s ease, padding 0.3s ease;
  user-select: none;
}

.card-summary {
  display: flex;
  gap: 15px;
  align-items: center;
  position: relative;
}

.card-img {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  min-width: 0;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  margin-bottom: 6px;
  gap: 10px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #111;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.card-price {
  font-size: 15px;
  font-weight: 700;
  color: #111111;
  white-space: nowrap;
  margin-left: auto;
}

.card-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.card-expanded {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card-trigger:checked + .card {
  padding: 18px;
}

.card-trigger:checked + .card .card-summary {
  display: none;
}

.card-trigger:checked + .card .card-expanded {
  max-height: 1000px;
  opacity: 1;
  transition: max-height 0.4s ease-in, opacity 0.3s ease-in;
}

.card-img-large {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
}

.card-header-large {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 12px;
  gap: 10px;
}

.card-title-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.card-title-large {
  font-size: 18px;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-subtitle-large {
  font-size: 13px;
  color: #666666;
  margin-top: 4px;
  font-weight: 400;
  text-align: left;
}

.card-price-large {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

/* --- СТИЛИ БЕЙДЖЕЙ (Хит / NEW / HOT) --- */
.badges-container {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  vertical-align: middle;
}

.badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: inline-block;
  white-space: nowrap;
}

.badge-hit {
  background-color: #ffebee;
  color: #d32f2f;
  border: 1px solid #ffcdd2;
}

.badge-new {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.badge-hot {
  background-color: #fff3e0;
  color: #e65100;
  border: 1px solid #ffe0b2;
}

.card-ingredients {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  text-align: left;
  width: 100%;
  background: #f8f9fa;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.card-ingredients strong {
  color: #111;
}

.close-btn {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 16px;
  background: #eee;
  border-radius: 20px;
  margin-top: 4px;
}

/* --- СТРАНИЦА ОТЗЫВОВ (НЕ ТРОНУТЫ) --- */
.reviews-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.reviews-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 6px;
}

.reviews-header p {
  font-size: 13px;
  color: #666666;
  margin-bottom: 10px;
}

.rating-stars {
  font-size: 20px;
  letter-spacing: 2px;
}

.feedback-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-card {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 16px;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #eaeaea;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feedback-card:active {
  transform: scale(0.99);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  flex-shrink: 0;
  margin-right: 14px;
}

.chef-icon {
  font-size: 22px;
  background: #fff3e0;
}

.card-text {
  flex-grow: 1;
}

.card-text h3 {
  font-size: 15px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 2px;
}

.card-text p {
  font-size: 12px;
  color: #777777;
}

.card-arrow {
  font-size: 16px;
  color: #ccc;
  margin-left: 10px;
}

.email-note p {
  font-size: 12px;
  color: #777777;
}

.email-note a {
  color: #111111;
  font-weight: 600;
  text-decoration: underline;
}

.reviews-widget-container {
  margin-top: 10px;
}

.section-subtitle {
  font-size: 15px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 12px;
}

.reviews-widget-container iframe {
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #eaeaea;
}

/* --- СТРАНИЦА КОНТАКТОВ (НЕ ТРОНУТЫ) --- */
.contacts-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 10px 15px 30px;
}

.map-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eaeaea;
  margin-bottom: 20px;
  background: #ffffff;
}

.contacts-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 600px) {
  .contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.contacts-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #eaeaea;
}

.contacts-card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #111111;
}

.contacts-card-title.margin-top {
  margin-top: 16px;
}

.contacts-text {
  font-size: 14px;
  color: #333333;
  margin-bottom: 4px;
}

.contacts-subtext {
  font-size: 12px;
  color: #777777;
}

.phone-link {
  color: #111111;
  font-weight: 700;
  text-decoration: none;
}

.social-links-contacts {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}

.social-btn.whatsapp {
  background-color: #25D366;
}

.social-btn.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* --- НИЖНЕЕ МЕНЮ --- */
#menu-toggle {
  display: none;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 98;
}

.drawer-menu {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  background: #ffffff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -10px 25px rgba(0,0,0,0.15);
  padding: 25px 20px 80px 20px;
  transition: bottom 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
  z-index: 99;
}

.drawer-menu h3 {
  margin-bottom: 15px;
  font-size: 18px;
  text-align: center;
}

.drawer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer-menu li a {
  display: block;
  padding: 12px 0;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid #f0f0f0;
  text-align: center;
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 15px;
  z-index: 100;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 0;
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  cursor: pointer;
  gap: 8px;
}

.arrow-icon {
  transition: transform 0.3s ease;
}

#menu-toggle:checked ~ .drawer-overlay {
  opacity: 1;
  visibility: visible;
}

#menu-toggle:checked ~ .drawer-menu {
  bottom: 0;
}

#menu-toggle:checked ~ .bottom-bar .arrow-icon {
  transform: rotate(180deg);
}

/* --- FOOTER --- */
.footer {
  background-color: #ffffff;
  border-top: 1px solid #eaeaea;
  padding: 30px 20px 40px 20px;
  margin-top: 30px;
  text-align: center;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #111;
}

.footer-subtitle {
  font-size: 13px;
  color: #777;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #111111;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social-icon.whatsapp { background-color: #25D366; color: #ffffff; }
.social-icon.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: #ffffff; }

.footer-copy {
  font-size: 11px;
  color: #aaa;
  margin-top: 10px;
}