:root {
  --cream: #FFFBF5;
  --beige: #F7EFE5;
  --warm-brown: #D8C4B6;
  --dark-brown: #4F4A45;
  --accent: #C58940;
  --text-dark: #3C3C3C;
  --text-light: #666;
  --shadow: rgba(120, 100, 80, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  background: url('images/main.jpg') center/cover no-repeat fixed;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.header_primary {
  /* background: rgba(255, 251, 245, 0.9); */
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  /* border-bottom: 1px solid rgba(216, 196, 182, 0.3); */
}

.logo_link {
  display: flex;
  justify-content: center;
}

.header_logo {
  height: 60px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Menu Sections */
.menu-section {
  background: rgba(255, 251, 245, 0.95);
  margin: 25px 0;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 30px var(--shadow);
  border: 1px solid var(--warm-brown);
}

.menu-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--warm-brown);
  text-align: center;
}

/* Шапка таблицы - ОПТИМИЗИРОВАНА ДЛЯ МОБИЛЬНЫХ */
.dish-header {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr;
  gap: 15px;
  padding: 12px 0 8px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  font-weight: 600;
  font-size: 15px;
  color: var(--dark-brown);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.dish-header .header-name {
  text-align: left;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dish-header .header-weight,
.dish-header .header-price {
  text-align: center;
  white-space: nowrap;
}

/* Dish Grid - ОПТИМИЗИРОВАН ДЛЯ МОБИЛЬНЫХ */
.dish-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr;
  /* gap: 12px; */
  align-items: start;
  /* padding: 12px 0; */
  border-bottom: 1px dashed var(--warm-brown);
  cursor: pointer;
  position: relative;
  /* min-height: 44px; */
}

.dish-grid:last-child {
  border-bottom: none;
}

.dish-name {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-dark);
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  min-width: 0;
}

.dish-weight, .dish-price {
  font-weight: 400;
  font-size: 14px;
  color: var(--text-light);
  white-space: nowrap;
  text-align: center;
  padding-top: 2px;
}

.dish-price {
  color: var(--accent);
  font-weight: 600;
}

.dish-desc {
  grid-column: 1 / -1;
  color: var(--text-light);
  font-size: 13.5px;
  line-height: 1.4;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  font-style: italic;
}

.dish-grid.active .dish-desc {
  max-height: 300px;
  opacity: 1;
  /* padding-top: 10px; */
  margin-top: 5px;
  border-top: 1px dotted var(--warm-brown);
}

/* Стрелочка */
.dish-grid::after {
  content: '▼';
  position: absolute;
  right: 5px;
  top: 15px;
  font-size: 9px;
  color: var(--accent);
  transition: transform 0.3s ease;
  opacity: 0.6;
}

.dish-grid.active::after {
  transform: rotate(180deg);
}

/* Sauces Section */
.sauces-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 15px 0 5px;
}

.sauce-tag {
  background: var(--beige);
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 13px;
  color: var(--dark-brown);
  border: 1px solid var(--warm-brown);
  transition: all 0.3s;
}

.sauce-tag:hover {
  background: var(--accent);
  color: white;
}

/* Footer */
.footer_primary {
  background: var(--dark-brown);
  color: var(--beige);
  padding: 25px 20px;
  margin-top: 30px;
  border-radius: 16px 16px 0 0;
}

.footer_inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer_title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 8px;
}

.footer_text {
  font-size: 14px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.footer_copy {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 15px;
}

/* ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 400px) */
@media (max-width: 400px) {
  .container {
    padding: 10px;
  }
  
  .menu-section {
    padding: 15px 12px;
    margin: 15px 0;
  }
  
  .menu-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
  }
  
  /* УМЕНЬШАЕМ ШРИФТ ДО 12px, НО СОХРАНЯЕМ СТРОКУ */
  .dish-header {
    grid-template-columns: 1.5fr 0.7fr 0.7fr;
    gap: 8px;
    font-size: 12px;
    padding: 8px 0 6px;
  }
  
  .dish-grid {
    grid-template-columns: 1.5fr 0.7fr 0.7fr;
    /* gap: 8px;
    padding: 10px 0; */
    font-size: 12px;
  }
  
  .dish-name {
    font-size: 12px;
    line-height: 1.3;
  }
  
  .dish-weight, .dish-price {
    font-size: 11px;
  }
  
  .dish-price {
    font-size: 12px;
  }
  
  .dish-desc {
    font-size: 11px;
  }
  
  .header_logo {
    height: 50px;
  }
  
  .sauce-tag {
    padding: 5px 10px;
    font-size: 11px;
  }
  
  .footer_title {
    font-size: 22px;
  }
}

/* СРЕДНИЕ ЭКРАНЫ (400-600px) */
@media (min-width: 401px) and (max-width: 600px) {
  .container {
    padding: 12px;
  }
  
  .menu-section {
    padding: 18px 15px;
    margin: 18px 0;
  }
  
  .menu-section h2 {
    font-size: 26px;
  }
  
  .dish-header {
    grid-template-columns: 1.5fr 0.7fr 0.7fr;
    gap: 10px;
    font-size: 13px;
  }
  
  .dish-grid {
    grid-template-columns: 1.5fr 0.7fr 0.7fr;
    /* gap: 10px;
    padding: 11px 0; */
  }
  
  .dish-name {
    font-size: 13px;
  }
  
  .dish-weight, .dish-price {
    font-size: 12px;
  }
  
  .dish-price {
    font-size: 13px;
  }
}

/* ПЛАНШЕТЫ (601-768px) */
@media (min-width: 601px) and (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  .menu-section {
    padding: 20px 18px;
    margin: 20px 0;
  }
  
  .menu-section h2 {
    font-size: 28px;
  }
  
  .dish-header {
    grid-template-columns: 1.5fr 0.7fr 0.7fr;
    gap: 12px;
    font-size: 14px;
  }
  
  .dish-grid {
    grid-template-columns: 1.5fr 0.7fr 0.7fr;
    /* gap: 12px; */
  }
  
  .dish-name {
    font-size: 14px;
  }
}

/* НАСТОЛЬНЫЕ КОМПЬЮТЕРЫ (769px+) */
@media (min-width: 769px) {
  .dish-header {
    gap: 20px;
  }
  
  .dish-grid {
    /* gap: 20px; */
  }
}

/* ЭКСТРЕМАЛЬНО МАЛЕНЬКИЕ ЭКРАНЫ (до 320px) */
@media (max-width: 320px) {
  .dish-header {
    font-size: 11px;
    gap: 6px;
  }
  
  .dish-grid {
    font-size: 11px;
    /* gap: 6px; */
  }
  
  .dish-name {
    font-size: 11px;
  }
  
  .dish-weight, .dish-price {
    font-size: 10px;
  }
  
  .dish-price {
    font-size: 11px;
  }
  
  .menu-section h2 {
    font-size: 22px;
  }
  
  .sauce-tag {
    padding: 4px 8px;
    font-size: 10px;
  }
}

/* Обеспечиваем хороший тач на мобильных */
@media (hover: none) and (pointer: coarse) {
  .dish-grid {
    padding: 14px 0;
    min-height: 48px;
  }
  
  .sauce-tag {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* АДАПТИВНЫЕ ПРОБЕЛЫ - уменьшаем отступы на маленьких экранах */
@media (max-width: 600px) {
  .menu-section {
    margin: 15px 0;
  }
  
  .footer_primary {
    margin-top: 20px;
    padding: 20px 15px;
  }
}
/* ===================================================
   COOKIE CONSENT BANNER — общий для всех страниц
   =================================================== */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(13, 13, 13, 0.97);
  border-top: 1px solid rgba(232, 177, 93, 0.4);
  backdrop-filter: blur(20px);
  padding: 20px 24px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease;
  box-shadow: 0 -4px 40px rgba(0,0,0,0.5);
}

#cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 260px;
}

.cookie-text strong {
  display: block;
  color: #f5f5f5;
  font-size: 15px;
  margin-bottom: 6px;
}

.cookie-text p {
  color: #aaa;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.cookie-text a {
  color: #e8b15d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 24px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}

.cookie-btn--accept {
  background: #e8b15d;
  color: #000;
}

.cookie-btn--accept:hover {
  box-shadow: 0 0 18px rgba(232, 177, 93, 0.5);
  background: #f0bf6e;
}

.cookie-btn--decline {
  background: transparent;
  color: #888;
  border: 1px solid rgba(255,255,255,0.2);
}

.cookie-btn--decline:hover {
  color: #ccc;
  border-color: rgba(255,255,255,0.35);
}

@media (max-width: 600px) {
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cookie-actions {
    width: 100%;
  }
  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}
