/* Черепаха — еталонний дизайн за макетом (ресторанний напівморок + теракота + скло) */
:root {
  --bg: #0d0d0d;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(224, 83, 60, 0.5);
  --accent: #e0533c;
  --accent-dark: #c8452f;
  --accent-btn: linear-gradient(135deg, #c8452f, #a83623);
  --accent-glow: rgba(224, 83, 60, 0.3);
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --text-dim: #6e6e75;
  --r-sm: 8px;
  --r-md: 14px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1220px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  background-image: 
    radial-gradient(1000px 600px at 85% 5%, rgba(200, 69, 47, 0.09), transparent 60%),
    radial-gradient(900px 500px at 15% 40%, rgba(200, 69, 47, 0.05), transparent 55%);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Навігація (плашка-капсула як на референсі) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 24px 0;
}

.topbar-in {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 8px 20px;
  background: rgba(22, 22, 24, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.brand-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

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

.nav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999999;
  transition: color 0.2s var(--ease);
}

.nav a:hover {
  color: #ffffff;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-phone {
  background: var(--accent-btn);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 4px 14px -3px var(--accent-glow);
}

.topbar-phone:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -2px var(--accent-glow);
}

.topbar-book {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}

.topbar-book:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent-btn);
  color: #ffffff;
  box-shadow: 0 6px 22px -4px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px -2px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.78rem;
}

/* ---------- Hero 60/40 ---------- */
.hero {
  padding: 56px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 58% 42%;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 18px;
  line-height: 1.3;
}

.hero-lead {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 48ch;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-photo-box {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #141416;
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.85);
}

.hero-photo-box img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ---------- Секція Меню («Наше меню») ---------- */
.menu-section {
  padding: 40px 0 72px;
}

.menu-head {
  margin-bottom: 24px;
}

.menu-head h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.menu-subhead {
  font-size: 0.92rem;
  color: #888888;
  margin-top: 4px;
}

/* Таби-капсули як на референсі */
.menu-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.tab-pill {
  padding: 8px 20px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #a0a0a0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.tab-pill:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.tab-pill.active {
  color: #ffffff;
  border-color: rgba(200, 69, 47, 0.7);
  background: rgba(200, 69, 47, 0.16);
  box-shadow: 0 0 16px -4px var(--accent-glow);
}

/* Сітка карток 3-в-ряд */
.dishes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dish-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.dish-card:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 69, 47, 0.45);
  background: var(--bg-card-hover);
}

.dish-img-wrap {
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  background: #151517;
}

.dish-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}

.dish-card:hover .dish-img-wrap img {
  transform: scale(1.03);
}

.dish-meta {
  padding: 12px 4px 4px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dish-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 4px;
}

.dish-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.dish-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}

.dish-price {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--accent);
}

.dish-weight {
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-left: 6px;
  font-weight: 400;
}

.dish-add {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--accent-btn);
  border: none;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.dish-add:hover {
  box-shadow: 0 4px 14px var(--accent-glow);
  transform: scale(1.05);
}

.dish-add:active {
  transform: scale(0.92);
}

/* ---------- Секція Про нас ---------- */
.about-section {
  padding: 64px 0;
  border-top: 1px solid var(--border-subtle);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-copy h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.about-copy p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.about-facts {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.fact-item b {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}

.fact-item span {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.reviews-stack {
  display: grid;
  gap: 16px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 24px;
}

.review-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.review-author {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
}

.review-stars {
  color: #f7a23b;
  font-size: 0.82rem;
}

.review-body {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- Секція Доставка та Бронювання ---------- */
.delivery-section {
  padding: 64px 0;
  border-top: 1px solid var(--border-subtle);
}

.delivery-grid {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 40px;
  align-items: start;
}

.booking-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px;
}

.booking-box h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.booking-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s var(--ease);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field textarea {
  resize: vertical;
  min-height: 72px;
}

.map-card {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 380px;
  background: #141416;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: contrast(1.05) brightness(0.9);
}

/* ---------- Плашка футера (в точності як на макеті праворуч внизу) ---------- */
footer {
  padding: 32px 24px 80px;
}

.footer-plate {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  background: rgba(22, 22, 24, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 0.86rem;
  color: var(--text-muted);
  gap: 20px;
  flex-wrap: wrap;
}

.footer-addr {
  color: #ffffff;
  font-weight: 500;
}

.footer-hours {
  color: var(--text-muted);
}

.footer-phone {
  color: #ffffff;
  font-weight: 600;
  transition: color 0.2s var(--ease);
}

.footer-phone:hover {
  color: var(--accent);
}

/* ---------- Кошик ---------- */
.cartbar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 60;
  width: min(640px, calc(100% - 32px));
  animation: cartFadeUp 0.35s var(--ease);
}

@keyframes cartFadeUp {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.cartbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: rgba(20, 20, 22, 0.94);
  border: 1px solid rgba(200, 69, 47, 0.5);
  border-radius: var(--r-pill);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.85), 0 0 20px -4px var(--accent-glow);
}

.cartbar-meta {
  display: flex;
  flex-direction: column;
}

.cartbar-count {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.cartbar-sum {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.cartbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-visual {
    order: -1;
    max-width: 580px;
  }
  .dishes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid, .delivery-grid {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 12px 14px 0;
  }
  .topbar-in {
    padding: 8px 14px;
  }
  .topbar-actions {
    gap: 8px;
  }
  .topbar-phone {
    padding: 6px 14px;
    font-size: 0.74rem;
  }
  .topbar-book {
    display: none;
  }
  .hero {
    padding: 36px 0 48px;
  }
  .hero-copy h1 {
    font-size: 2.1rem;
  }
  .dishes-grid {
    grid-template-columns: 1fr;
  }
  .footer-plate {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 10px;
  }
}
