﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg: #f6efe6;
  --surface: #ede4d6;
  --surface-card: #fffcf8;
  --espresso: #2b211a;
  --espresso-soft: #6e5f53;
  --gold: #b8914a;
  --border-soft: rgba(38, 29, 23, 0.09);
  --serif: "Cormorant Garamond", Georgia, serif;
  --heading: "Manrope", "Inter", system-ui, -apple-system, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--espresso);
  font-family: var(--sans);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.app {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  outline: none;
}

button:focus {
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== ГЛАВНЫЙ ЭКРАН (HERO) ===== */
.hero {
  position: relative;
  padding: calc(36px + env(safe-area-inset-top, 0px)) 24px 68px;
  color: #fffcf8;
  overflow: hidden;
  background-color: #3a2e25;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(24, 18, 14, 0.78) 0%,
    rgba(24, 18, 14, 0.52) 55%,
    rgba(24, 18, 14, 0.25) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.st {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  background: rgba(38, 29, 23, 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 252, 248, 0.35);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 400;
  color: #fffcf8;
}

.st i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8b467;
}

.st.open i {
  background: #8fd18f;
}

.logo {
  font-family: var(--heading);
  font-weight: 700;
  font-size: clamp(56px, 15vw, 88px);
  line-height: 0.92;
  letter-spacing: 0.08em;
  margin: 38px 0 8px;
  color: #fffcf8;
  text-shadow: 0 4px 24px rgba(18, 13, 10, 0.45);
}

.tag {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: #e6cbb0;
  text-shadow: 0 2px 12px rgba(18, 13, 10, 0.5);
}

.addr {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 26px;
  font-size: 13.5px;
  font-weight: 400;
  color: #fffcf8;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  transition: opacity 0.2s;
}

.addr-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(38, 29, 23, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 252, 248, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fffcf8;
  flex-shrink: 0;
}

.addr:active {
  opacity: 0.6;
}

.in {
  animation: in 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.in.b { animation-delay: 0.1s; }
.in.c { animation-delay: 0.2s; }

@keyframes in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.sheet {
  position: relative;
  z-index: 3;
  margin-top: -26px;
  background: var(--bg);
  border-radius: 32px 32px 0 0;
  padding: 6px 20px 136px;
  width: 100%;
}

/* ===== ПАНЕЛЬ РАЗДЕЛОВ ===== */
.chips {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 15;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 -20px;
  padding: 12px 20px 14px;
  background: rgba(246, 239, 230, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-radius: 32px 32px 0 0;
}

.chip {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.25s ease, color 0.25s ease;
}

.chip:active {
  transform: scale(0.95);
}

.chip[aria-current="true"] {
  background: var(--espresso);
  color: var(--surface-card);
  border-color: var(--espresso);
  box-shadow: 0 6px 16px rgba(38, 29, 23, 0.16);
}
/* ===== КАТЕГОРИИ И РАЗДЕЛЁННЫЕ КАРТОЧКИ БЛЮД ===== */
.cat {
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.cat h2 {
  font-family: var(--heading);
  font-size: 35px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--espresso);
}

.sub {
  font-size: 14px;
  color: var(--espresso-soft);
  margin: 6px 0 0;
  width: 100%;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
  width: 100%;
}

.it {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  box-shadow: 0 8px 24px rgba(38, 29, 23, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.it[disabled] {
  cursor: default;
}

.it:not([disabled]):active {
  transform: scale(0.98);
}
/* ===== СТОП-ЛИСТ НА КАРТОЧКЕ ===== */
.it.is-stopped {
  opacity: 0.72;
  cursor: not-allowed;
}

.it.is-stopped .th img {
  filter: grayscale(85%) brightness(0.88);
}

.it.is-stopped .p {
  color: var(--espresso-soft);
  font-weight: 500;
  font-size: 13px;
}

.badge-stop {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(179, 64, 47, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fffcf8;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ===== БЕЙДЖ NEW НА КАРТОЧКЕ ===== */
.badge-new {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(179, 64, 47, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fffcf8;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Верхняя часть карточки: чистая фотография */
.th {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 25%, #f2e8dc, #dfd2c2);
  color: var(--espresso-soft);
  overflow: hidden;
  flex-shrink: 0;
}

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

/* Нижняя часть карточки: название, описание и цена снизу */
.tx {
  flex: 1;
  width: 100%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.n {
  display: block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--espresso);
}

.d {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--espresso-soft);
}

.p {
  display: block;
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--espresso);
}

/* ===== МОДАЛЬНОЕ ОКНО ТОВАРА ===== */
.item-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.item-modal[hidden] {
  display: none;
}

.item-modal.modal-open {
  opacity: 1;
  pointer-events: auto;
}

.item-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 29, 23, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.item-modal-content {
  position: relative;
  z-index: 1;
  max-width: 400px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: 26px;
  padding: 22px;
  transform: scale(0.95) translateY(16px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 60px rgba(38, 29, 23, 0.25);
}

.item-modal.modal-open .item-modal-content {
  transform: scale(1) translateY(0);
}

.item-modal-close {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 252, 248, 0.92);
  color: var(--espresso);
  border: 1px solid var(--border-soft);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease;
}

.item-modal-close:active {
  transform: scale(0.9);
}

.modal-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  background: radial-gradient(circle at 30% 25%, #f2e8dc, #dfd2c2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-name {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--espresso);
}

.modal-price {
  font-size: 17px;
  font-weight: 600;
  color: var(--gold);
}

.modal-description {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.modal-description p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--espresso-soft);
}
/* ===== БЛОК О НАС ===== */
.about {
  margin-top: 48px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 26px;
  padding: 28px 22px;
}

.about h2 {
  font-family: var(--heading);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--espresso);
  margin-bottom: 12px;
}


.about p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--espresso-soft);
  max-width: 36em;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.f {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 14px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.f b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(16px, 4.2vw, 19px);
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  color: var(--espresso);
}

.f span {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  color: var(--espresso-soft);
  margin-top: 4px;
}

/* ===== БЛОК КОНТАКТОВ ===== */
.ct {
  margin-top: 44px;
}

.ct h2 {
  font-family: var(--heading);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--espresso);
  margin-bottom: 16px;
}

.contacts-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 15px 18px;
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(38, 29, 23, 0.03);
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.cr:active {
  transform: scale(0.98);
  border-color: var(--espresso);
}

.cr-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.cr-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--espresso);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cr-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cr-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--espresso);
}

.cr-sub {
  font-size: 13px;
  color: var(--espresso-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-arrow {
  color: var(--espresso-soft);
  flex-shrink: 0;
}

.foot {
  margin-top: 36px;
  text-align: center;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--espresso-soft);
  text-transform: uppercase;
}

/* ===== ПЛАВАЮЩАЯ НИЖНЯЯ НАВИГАЦИЯ ===== */
.nav {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: rgba(255, 252, 248, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(38, 29, 23, 0.14);
}

.nb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: transparent;
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.nb:active {
  transform: scale(0.95);
}

.nb[aria-current="true"] {
  background: var(--espresso);
  color: var(--surface-card);
  font-weight: 600;
}

/* ===== КНОПКА ВОЗВРАТА НАВЕРХ ===== */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--espresso);
  color: var(--surface-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(38, 29, 23, 0.2);
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ===== УВЕДОМЛЕНИЕ (ТОСТ) ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 16px);
  z-index: 60;
  background: var(--espresso);
  color: var(--surface-card);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(38, 29, 23, 0.25);
}

.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ===== АДАПТИВ ДЛЯ ПЛАНШЕТОВ И ПК ===== */
@media (min-width: 768px) {
  body {
    background: #ebe1d3;
  }

  .app {
    max-width: 640px;
    margin: 24px auto;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    box-shadow: 0 24px 70px rgba(38, 29, 23, 0.12);
  }

  .items-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
