:root {
  --bg: #0d0716;
  --bg2: #160c25;
  --card: #1c1030;
  --card2: #24153d;
  --line: rgba(255,255,255,.08);
  --text: #f6f1ff;
  --muted: #a99bc4;
  --gold: #ffc93c;
  --gold2: #ff9f1c;
  --violet: #9b4dff;
  --pink: #ff4fd8;
  --wa: #25d366;
  --tg: #2aabee;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); background: var(--bg);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.45; padding-bottom: 96px;
  background-image:
    radial-gradient(600px 400px at 10% -5%, rgba(155,77,255,.35), transparent 70%),
    radial-gradient(500px 380px at 100% 10%, rgba(255,79,216,.18), transparent 70%);
  background-attachment: fixed;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: var(--text); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(13,7,22,.78); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: .5px; }
.brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--gold); }
.top-nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.top-nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.top-nav a:hover { color: var(--text); background: var(--card); }
.lang { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { padding: 5px 11px; border-radius: 999px; font-weight: 700; font-size: 12px; color: var(--muted); }
.lang button.on { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #1a0d00; }
@media (max-width: 720px) { .top-nav a { display: none; } }

/* Hero */
.hero { padding: 36px 0 18px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.02; margin: 0 0 10px; font-weight: 800; letter-spacing: -1px; }
.hero h1 span { background: linear-gradient(90deg, var(--gold), var(--gold2) 40%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); margin: 0 0 18px; max-width: 520px; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: center; width: 100%; }
.hero-art > img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; box-shadow: 0 0 80px rgba(155,77,255,.45), var(--shadow); }
.mosaic { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; height: 100%; }
.mosaic img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center 30%; border-radius: 18px; box-shadow: var(--shadow); }
.mosaic img:first-child { grid-row: 1 / 3; }
.hero-art .logo-pin { position: absolute; left: -14px; bottom: -14px; width: 92px; height: 92px; border-radius: 50%; border: 2px solid var(--gold); box-shadow: 0 0 40px rgba(155,77,255,.6); object-fit: cover; }
.status.open { color: #6ff0a6; border-color: rgba(43,213,118,.4); background: rgba(43,213,118,.1); }
.status.closed { color: #ff9aac; border-color: rgba(255,84,112,.35); background: rgba(255,84,112,.08); }
.field.bad input, .field.bad select { border-color: #ff5470; }
.field .hint { color: #ff7a90; font-size: 12px; margin-top: 4px; display: none; }
.field.bad .hint { display: block; }
.seo-only { display: none; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.badge { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: #e2d8f5; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 14px; font-weight: 700; text-decoration: none; color: var(--text); transition: transform .12s, filter .2s; }
.btn:active { transform: scale(.97); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #1d0f00; box-shadow: 0 6px 24px rgba(255,159,28,.35); }
.btn-ghost { background: var(--card); border: 1px solid var(--line); }
.btn-wa { background: var(--wa); color: #04210f; }
.btn-tg { background: var(--tg); color: #001826; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding-top: 22px; text-align: center; }
  .hero p { margin-inline: auto; }
  .badges, .cta { justify-content: center; }
  .hero-art { max-width: 100%; aspect-ratio: 16/10; grid-row: 1; }
  .hero-art .logo-pin { width: 64px; height: 64px; left: 50%; transform: translateX(-50%); bottom: -24px; }
  .hero h1 { margin-top: 14px; }
  .cta .btn { flex: 1; }
}

/* Branch chips */
.branches { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
.branches::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 10px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 700; color: var(--muted); white-space: nowrap; }
.chip.on { color: var(--gold); border-color: var(--gold); background: rgba(255,201,60,.1); }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); font-weight: 700; margin: 8px 0 6px; }

/* Promos */
.promos { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin-bottom: 8px; }
.promos::-webkit-scrollbar { display: none; }
.promo { flex: 0 0 auto; min-width: 150px; padding: 14px 16px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(155,77,255,.28), rgba(255,79,216,.14)); border: 1px solid rgba(155,77,255,.4); }
.promo .i { font-size: 26px; }
.promo .t { font-weight: 700; font-size: 14px; margin-top: 4px; }
.promo .v { font-weight: 800; font-size: 22px; color: var(--gold); }

/* Tabs */
.tabs { position: sticky; top: 60px; z-index: 40; background: rgba(13,7,22,.92); backdrop-filter: blur(14px); padding: 8px 0 0; margin: 14px -16px 0; padding-inline: 16px; }
.seg { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 3px; }
.seg button { flex: 1; padding: 8px; border-radius: 10px; font-weight: 800; color: var(--muted); }
.seg button.on { background: linear-gradient(135deg, var(--violet), #6b2bd9); color: #fff; box-shadow: 0 4px 18px rgba(155,77,255,.4); }
.cats { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.cats::-webkit-scrollbar { display: none; }
.cats .chip { padding: 7px 12px; font-size: 13px; }
.search { position: relative; margin-top: 14px; }
.search input { width: 100%; padding: 12px 14px 12px 40px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); outline: none; }
.search input:focus { border-color: var(--violet); }
.search::before { content: '🔍'; position: absolute; left: 13px; top: 11px; font-size: 15px; opacity: .7; }

/* Menu */
.cat-title { font-size: 22px; font-weight: 800; margin: 26px 0 12px; scroll-margin-top: 165px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.dish { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.dish .ph { aspect-ratio: 4/3; background: linear-gradient(135deg, #2a1846, #1a0f2c); display: grid; place-items: center; font-size: 40px; position: relative; overflow: hidden; cursor: zoom-in; }
.dish .ph img { width: 100%; height: 100%; object-fit: cover; }
.dish .ph .tag { position: absolute; top: 10px; left: 10px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.dish .body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.dish h3 { font-size: 15px; margin: 0 0 4px; font-weight: 800; }
.dish .d { color: var(--muted); font-size: 13px; flex: 1; margin-bottom: 10px; }
.dish .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 800; font-size: 17px; color: var(--gold); white-space: nowrap; }
.add { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #1d0f00; font-weight: 800; padding: 8px 14px; border-radius: 11px; }
.qty { display: flex; align-items: center; background: var(--card2); border-radius: 11px; }
.qty button { width: 34px; height: 34px; font-size: 18px; font-weight: 800; }
.qty span { min-width: 22px; text-align: center; font-weight: 800; }
.dish.off { opacity: .5; }
.dish.off .add { background: var(--card2); color: var(--muted); }
/* компактная строка для блюд без фото */
.dish.np .ph { display: none; }
.dish.np .body { display: grid; grid-template-columns: 1fr auto; column-gap: 14px; align-items: center; padding: 12px 14px; }
.dish.np h3 { grid-column: 1; }
.dish.np .d { grid-column: 1; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dish.np .row { grid-column: 2; grid-row: 1 / 3; gap: 10px; }
.dish.np .add { width: 38px; height: 38px; padding: 0; font-size: 0; border-radius: 12px; flex-shrink: 0; }
.dish.np .add::after { content: '+'; font-size: 24px; line-height: 38px; }
.dish.np.off .add::after { content: '—'; font-size: 16px; }
.grid.compact { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
.dish h3::first-letter { text-transform: uppercase; }
@media (max-width: 560px) {
  .grid, .grid.compact { grid-template-columns: 1fr; gap: 8px; }
  .dish.np .body { padding: 11px 12px; }
  .dish.np .d { font-size: 12.5px; }
  .dish { flex-direction: row; }
  .dish .ph { width: 112px; aspect-ratio: auto; flex-shrink: 0; font-size: 28px; }
  .dish .body { padding: 11px 12px; }
}
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Cabins */
.cabins { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.cabin { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cabin .ph { aspect-ratio: 4/5; background: #1a0f2c; cursor: zoom-in; position: relative; }
.cabin .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cabin .ph .more { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.6); padding: 4px 10px; border-radius: 999px; font-size: 12px; }
.cabin .body { padding: 12px 14px 14px; }
.cabin h3 { margin: 0 0 6px; font-size: 18px; }
.cabin .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cabin .d { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
@media (max-width: 560px) { .cabins { grid-template-columns: 1fr 1fr; gap: 10px; } .cabin h3 { font-size: 15px; } .cabin .btn { padding: 10px; font-size: 13px; } }

/* Info / footer */
.info { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 40px 0 10px; }
.info .box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.info h3 { margin: 0 0 6px; font-size: 16px; }
.info .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.info .links a { font-size: 13px; padding: 7px 12px; border-radius: 10px; background: var(--card2); color: var(--text); text-decoration: none; font-weight: 700; }
footer { color: var(--muted); font-size: 13px; text-align: center; padding: 26px 0 10px; }

/* Cart bar */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(13,7,22,.95) 30%); }
.cartbar button { max-width: 560px; margin: 0 auto; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; border-radius: 16px; background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #1d0f00; font-weight: 800; font-size: 16px; box-shadow: 0 10px 30px rgba(255,159,28,.35); }
.cartbar .cnt { background: #1d0f00; color: var(--gold); border-radius: 999px; padding: 2px 9px; margin-left: 6px; font-size: 13px; }

/* Sheets / modals */
.overlay { position: fixed; inset: 0; background: rgba(5,2,10,.7); backdrop-filter: blur(4px); z-index: 80; display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 24px 24px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); transform: translateY(30px); transition: transform .25s; }
.overlay.open .sheet { transform: none; }
@media (min-width: 720px) { .overlay { align-items: center; } .sheet { border-radius: 24px; } }
.sheet-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-h h2 { margin: 0; font-size: 20px; }
.x { width: 36px; height: 36px; border-radius: 50%; background: var(--card); font-size: 20px; }
.line-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line-item .n { flex: 1; font-weight: 600; font-size: 14px; }
.line-item .p { font-weight: 800; color: var(--gold); white-space: nowrap; }
.sum { display: flex; justify-content: space-between; padding: 6px 0; color: var(--muted); }
.sum.total { color: var(--text); font-weight: 800; font-size: 18px; }
.field { margin: 10px 0; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.send { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.note { font-size: 12.5px; color: var(--muted); background: rgba(255,201,60,.08); border: 1px solid rgba(255,201,60,.25); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 12px; }
.lightbox .x { position: absolute; top: 14px; right: 14px; }
.lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); font-size: 22px; }
.lightbox .prev { left: 10px; } .lightbox .next { right: 10px; }

.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: var(--card2); border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; z-index: 100; font-weight: 700; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
