.hero-wrapper_2 {
  position: relative;
  min-height: 60vh;
  overflow: hidden;
  isolation: isolate;
}

.hero-wrapper_2::before {
  content: "";
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background: url("/static/image/menu_coffee.jpeg") center/cover no-repeat;
  transform: translate(var(--px, 0), var(--py, 0)) scale(1.08);
  will-change: transform;
  transition: transform 0.06s linear;
  z-index: -1;
}

.hero-wrapper_2::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: -1;
}

.main-hero_2 {
  position: relative;
  padding: 150px 0px 60px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  z-index: 2;
  width: 100%;
}

.hero-content_2 {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
}

.hero-logo {
  height: clamp(140px, 26vw, 320px);
  width: auto;
  margin-bottom: 20px;
}

.hero-tit {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: clamp(48px, 9vw, 120px);
  margin: 0;
  letter-spacing: .02em;
  color: rgba(190, 190, 190, .76);
}

.hero-op {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(18px, 3vw, 30px);
  color: #fff;
  opacity: 0.9;
  margin: 0;
}









.menu-section {
  padding: 60px 20px;
  background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
    url("/static/image/kkk.png") no-repeat;
  background-size: cover;
  background-position: 20% top;
}

.menu-container {
  max-width: 1200px;
  margin: 0 auto;
}

.menu-section {
  padding: 60px 320px;
  background: #473724;
  min-height: 100vh;
}

.menu-container {
  max-width: 1200px;
  margin: 0 auto;
}

.menu-category {
  margin-bottom: 60px;
}

.category-title {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 600;
  color: #d9d9d9;
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 15px;
  border-bottom: 3px solid #c4b65e;
  display: inline-block;
  width: 100%;
  text-align: center;
}

.drinks-table {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(100px, auto));
  column-gap: 30px;
  row-gap: 20px;
  margin-top: 30px;
}

.table-header {
  display: contents;
}

.table-header .col {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 600;
  color: #c4b65e;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(196, 182, 94, 0.3);
}

.table-header .name-col {
  text-align: left;
}

.table-header .size-col {
  text-align: center;
}

.table-row {
  display: contents;
}

.col {
  align-self: center;
}

.name-col {
  font-family: "Playfair Display", serif;
}

.drink-name {
  font-size: 28px;
  font-weight: 500;
  color: #e5e4c9;
  margin-bottom: 5px;
}

.drink-desc {
  font-size: 16px;
  color: #b8b5a0;
  font-weight: 300;
  line-height: 1.4;
}

.price-col {
  font-size: 24px;
  font-weight: 500;
  color: #e5e4c9;
  text-align: center;
  font-family: "Playfair Display", serif;
}

.price-col:empty::before {
  content: " ";
}

.price-col:has-text("—") {
  color: #6b6354;
}






.food-items {
  margin-top: 30px;
}

.food-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 40px;
  gap: 30px;
  border-bottom: 1px solid rgba(196, 182, 94, 0.2);
}

.food-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.food-item.reverse {
  flex-direction: row-reverse;
}

.food-item.no-photo {
  padding-left: 0;
}

.food-photo {
  flex: 0 0 280px;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid rgba(196, 182, 94, 0.3);
}

.food-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.food-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.food-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 15px;
}

.food-name {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 600;
  color: #e5e4c9;
  margin: 0;
}

.food-price {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 600;
  color: #c4b65e;
  white-space: nowrap;
}

.food-desc {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  color: #b8b5a0;
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
}








@media (max-width: 768px) {
  .hero-wrapper_2 {
    min-height: 50vh;
  }

  .hero-wrapper_2::before {
    transform: translate(0, 0) scale(1.08) !important;
    transition: none !important;
  }

  .main-hero_2 {
    padding: 150px 0px 60px 0px
  }

  .hero-logo {
    height: clamp(180px, 20vw, 200px);
    margin-bottom: 15px;
  }

  .hero-tit {
    font-size: clamp(48px, 8vw, 60px);
    letter-spacing: 0.01em;
  }

  .hero-op {
    font-size: clamp(16px, 4vw, 24px);
    padding: 0 10px;
  }

  .menu-section {
    padding: 40px 15px;
  }

  .menu-section {
    padding: 40px 15px;
  }

  .category-title {
    font-size: 32px;
    margin-bottom: 30px;
  }

  .drinks-table {
    grid-template-columns: 1.5fr repeat(3, 70px);
    column-gap: 15px;
    row-gap: 15px;
  }

  .table-header .col {
    font-size: 18px;
  }

  .drink-name {
    font-size: 20px;
  }

  .drink-desc {
    font-size: 14px;
  }

  .price-col {
    font-size: 18px;
  }
  .food-item {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
  }

  .food-item.reverse {
    flex-direction: column;
  }

  .food-photo {
    flex: 0 0 100%;
    height: 180px;
  }

  .food-info {
    width: 100%;
  }

  .food-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    width: 100%;
  }

  .food-name {
    font-size: 22px;
    flex: 1;
    min-width: 0;
    margin-right: 15px;
  }

  .food-price {
    font-size: 22px;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
  }
}







/* Адаптивность для планшетов */
@media (min-width: 768px) and (max-width: 1194px) {
    .menu-section {
        padding: 50px 40px;
    }
    
    .hero-wrapper_2::before {
      transform: translate(0, 0) scale(1.08) !important;
      transition: none !important;
  }

    .category-title {
        font-size: 36px;
        margin-bottom: 35px;
        padding-bottom: 12px;
    }

    .drinks-table {
        grid-template-columns: 1.8fr repeat(3, minmax(90px, auto));
        column-gap: 20px;
        row-gap: 18px;
    }

    .table-header .col {
        font-size: 20px;
    }

    .drink-name {
        font-size: 24px;
    }

    .drink-desc {
        font-size: 16px;
    }

    .price-col {
        font-size: 22px;
    }

    .food-item {
        gap: 25px;
        margin-bottom: 35px;
        padding-bottom: 35px;
    }

    .food-photo {
        flex: 0 0 250px;
        height: 190px;
    }

    .food-name {
        font-size: 25px;
    }

    .food-price {
        font-size: 24px;
    }

    .food-desc {
        font-size: 17px;
    }
}



/* Стили для порции и ссылки "посмотреть состав" */
.food-portion-line {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.food-portion {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: #b8b5a0;
    font-weight: 300;
    line-height: 1.5;
}

.food-separator {
    color: #e7d865;
    margin: 0 4px;
}

.food-composition-link {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: #c4b65e;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.food-composition-link:hover {
    color: #d9d9d9;
}

.composition-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.composition-popup.active {
    display: flex;
    opacity: 1;
}

.composition-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.composition-popup-content {
    position: relative;
    max-width: 650px;
    width: 90%;
    max-height: 90vh;
    margin: auto;
    background: #473724;
    border-radius: 12px;
    border: 2px solid #c4b65e;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    overflow-x: hidden;
    z-index: 10001;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.composition-popup.active .composition-popup-content {
    transform: scale(1);
}

.composition-popup-close {
    position: absolute;
    top: 15px;
    right: 17px;
    width: 35px;
    height: 35px;
    background: rgba(196, 182, 94, 0.2);
    border: 2px solid #c4b65e;
    border-radius: 50%;
    color: #c4b65e;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.composition-popup-close:hover {
    background: #c4b65e;
    color: #473724;
    transform: rotate(90deg);
}

.composition-popup-body {
    padding: 40px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
}

.composition-image-container {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
    border: 2px solid rgba(196, 182, 94, 0.3);
    display: none;
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.composition-image-container.has-image {
    display: block;
}

.composition-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.composition-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    color: #e5e4c9;
    margin: 0 0 25px 0;
    text-align: center;
}

.composition-content {
    color: #b8b5a0;
}

.composition-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 500;
    color: #c4b65e;
    margin: 0 0 20px 0;
}

.composition-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.composition-list li {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    line-height: 2;
    color: #b8b5a0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(196, 182, 94, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.composition-list li:last-child {
    border-bottom: none;
}

.composition-list li span:first-child {
    flex: 1;
    margin-right: 15px;
}

.composition-list li span:last-child {
    color: #c4b65e;
    font-weight: 500;
    white-space: nowrap;
}

/* Адаптивные стили для попапа */
@media (max-width: 768px) {
    .food-portion {
        font-size: 16px;
    }

    .food-composition-link {
        font-size: 14px;
    }

    .composition-popup-close {
        position: absolute;
        top: 10px;
        right: 7px;
        width: 30px;
        height: 30px;
    }

    .composition-popup-content {
        width: 90%;
        max-height: 80vh;
    }

    .composition-popup-body {
        padding: 30px 20px;
    }

    .composition-title {
        font-size: 26px;
    }

    .composition-subtitle {
        font-size: 18px;
    }

    .composition-list li {
        font-size: 18px;
        gap: 4px;
    }

    .composition-list li span:last-child {
        margin-left: 0;
    }

    .composition-image-container {
        height: 200px;
    }

    .composition-image-container img {
        height: 100%;
    }
}