:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --text: #1c1c1c;
  --muted: #666156;
  --line: #e7e0d4;
  --accent: #8d5f3a;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-glass: 0 8px 32px rgba(31, 38, 135, 0.15);
  --shadow-hover: 0 12px 40px rgba(141, 95, 58, 0.2);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", "Noto Sans Kyrgyz", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

/* Kyrgyz language specific styling */
[lang="ky"] {
  font-family: "Noto Sans Kyrgyz", "Inter", sans-serif;
}

[lang="ky"] h1,
[lang="ky"] h2,
[lang="ky"] h3 {
  font-family: "Noto Sans Kyrgyz", "Playfair Display", serif;
}

[data-theme="dark"] {
  --bg: #0f1115;
  --surface: #161a22;
  --text: #f2f4f8;
  --muted: #aab0bf;
  --line: #2a2f3a;
  --accent: #c79a6a;
  --glass-bg: rgba(22, 26, 34, 0.85);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 40px rgba(199, 154, 106, 0.3);
}

.theme-chip,
.lang-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 6px;
}

.theme-chip {
  cursor: pointer;
  min-width: 42px;
  text-align: center;
}

.lang-chip {
  cursor: pointer;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.section { padding: 72px 0; }
.section-xl { padding: 104px 0; }

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  line-height: 1.2;
  margin: 0 0 14px;
}
h1 { font-size: clamp(2.1rem, 4vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.7rem); }
p { margin: 0 0 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 239, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

[data-theme="dark"] .site-header {
  background: rgba(15, 17, 21, 0.78);
}

.header-row {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.4rem;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  font-weight: 600;
}

.btn:hover { opacity: 0.92; }
.btn-ghost {
  color: var(--accent);
  background: transparent;
}
.btn-small { padding: 8px 14px;}


.hero-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: start;
}

.label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

.lead {
  max-width: 60ch;
  color: #4f4b42;
  font-size: 1.08rem;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-panel,
.card,
.info-panel,
.menu-table-wrap,
.booking-box,
.contact-box {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-glass);
  transition: all 0.3s ease;
}

.hero-panel:hover,
.card:hover,
.info-panel:hover,
.booking-box:hover,
.contact-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.hero-panel hr { border: none; border-top: 1px solid var(--line); margin: 20px 0; }
.meta { color: var(--muted); font-size: 0.92rem; }

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.page-head {
  padding: 52px 0 18px;
}

.section-title {
  margin-bottom: 18px;
}

.menu-group {
  margin-bottom: 26px;
}

.menu-table-wrap { padding: 0; overflow: hidden; }

.menu-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

.menu-table th,
.menu-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.dish-name-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dish-thumb {
  width: 68px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.menu-cards-root {
  display: grid;
  gap: 30px;
}

.menu-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.menu-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  display: grid;
  grid-template-rows: 160px auto;
}

.menu-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.menu-card-body {
  padding: 14px;
}

.menu-card-title {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-family: "Inter", sans-serif;
  font-weight: 700;
}

.menu-card-desc {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.menu-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.menu-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.menu-add-btn {
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
}

.menu-add-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.menu-price {
  font-weight: 700;
}

.menu-more-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.menu-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
  padding: 20px;
}

.menu-modal.open {
  display: flex;
}

.menu-modal-card {
  width: min(640px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.menu-modal-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* Smooth scroll animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations */
.scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Enhanced button animations */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Floating animation for hero elements */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* Pulse animation for CTA elements */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Glass morphism enhancements */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow-glass);
  transition: all 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Gradient backgrounds for visual appeal */
.gradient-bg {
  background: linear-gradient(135deg, var(--bg) 0%, color-mix(in srgb, var(--accent) 10%, var(--bg)) 100%);
}

/* Enhanced form inputs */
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
  transition: all 0.3s ease;
}

.menu-modal-body {
  padding: 16px;
}

.menu-modal-actions {
  margin: 14px 0 10px;
}

.menu-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.menu-close-btn {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text);
}

.menu-table th {
  background: color-mix(in srgb, var(--surface) 92%, var(--bg));
  font-size: 0.92rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.menu-table tr:last-child td { border-bottom: none; }
.price { white-space: nowrap; font-weight: 600; }

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 36px;
}

.footer-row {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer a { color: var(--accent); text-decoration: none; }

input, textarea {
  width: 100%;
  border: 1px solid #d9d2c5;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  background: var(--surface);
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 85%, var(--surface));
}

form { display: grid; gap: 10px; }
.note { color: var(--muted); font-size: 0.92rem; }

@media (max-width: 960px) {
  .hero-layout,
  .two-cols,
  .cards-3 {
    grid-template-columns: 1fr;
  }

  .menu-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 84px;
    right: 4%;
    width: min(320px, 92vw);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
  }
  .main-nav.open { display: flex; }

  .header-tools {
    margin-left: 0;
  }

  .dish-thumb {
    width: 56px;
    height: 44px;
  }

  .menu-card-grid {
    grid-template-columns: 1fr;
  }

  .menu-modal-img {
    height: 210px;
  }
}

/* Корзина (меню) */
.cart-header-btn {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.cart-fab {
  position: fixed;
  bottom: 22px;
  right: 18px;
  z-index: 74;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-glass);
  cursor: pointer;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  text-align: center;
  display: none;
}

.cart-badge--visible {
  display: inline-block;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 75;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 94vw);
  max-width: 100%;
  background: var(--surface);
  border-left: 1px solid var(--line);
  z-index: 76;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.cart-drawer-close {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
}

.cart-drawer-body {
  flex: 1;
  overflow: auto;
  padding: 12px 18px;
}

.cart-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cart-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-line {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--bg);
}

.cart-line-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.cart-line-name {
  font-weight: 600;
  font-size: 0.98rem;
}

.cart-line-sub {
  font-size: 0.88rem;
  color: var(--muted);
}

.cart-line-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-btn,
.cart-remove-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.cart-remove-btn {
  margin-left: auto;
  color: #b91c1c;
  border-color: color-mix(in srgb, #b91c1c 35%, var(--line));
}

.cart-qty-val {
  min-width: 22px;
  text-align: center;
  font-weight: 600;
}

.cart-drawer-foot {
  padding: 16px 18px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
}
