:root {
  --ink: #f6f0e8;
  --ink-soft: #c7bdb1;
  --paper: #100f0e;
  --panel: #1b1917;
  --panel-soft: #24211e;
  --panel-raised: #2d2925;
  --line: #3c352f;
  --coal: #0d0c0b;
  --tomato: #d55343;
  --tomato-dark: #b94335;
  --sage: #65a685;
  --blue: #76a8c9;
  --gold: #d3a04e;
  --sand: #ceb37d;
  --shadow: 0 18px 52px rgba(0, 0, 0, 0.38);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(213, 83, 67, 0.16), transparent 28%),
    linear-gradient(180deg, #080706 0%, var(--paper) 42%, #0c0b0a 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

body::selection {
  background: rgba(185, 66, 53, 0.22);
}

body[data-theme="light"] {
  --ink: #1a1714;
  --ink-soft: #625850;
  --paper: #f5efe6;
  --panel: #fffaf2;
  --panel-soft: #f3eadf;
  --panel-raised: #eadfce;
  --line: #d5c7b4;
  --coal: #fffdf8;
  --sand: #7c6034;
  --shadow: 0 18px 44px rgba(79, 61, 45, 0.18);
  background:
    radial-gradient(circle at 12% 8%, rgba(213, 83, 67, 0.12), transparent 28%),
    linear-gradient(180deg, #fff8ef 0%, var(--paper) 48%, #efe4d5 100%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

img {
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(150px, auto);
  align-items: center;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 8, 7, 0.88);
  color: #fff;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-logo {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-actions {
  display: inline-flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
}

.language-toggle {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
}

.theme-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.theme-icon-sun,
.theme-toggle.is-light .theme-icon-moon {
  display: none;
}

.theme-toggle.is-light .theme-icon-sun {
  display: block;
}

.language-button,
.admin-open {
  min-height: 34px;
  border: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

.language-button {
  min-width: 38px;
  border-radius: 999px;
  background: transparent;
  font-size: 0.8rem;
}

.language-button.is-active {
  background: var(--ink);
  color: var(--coal);
}

.admin-open {
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.admin-open:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.topnav a,
.phone-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
}

.topnav a {
  padding: 0 14px;
}

.topnav a:hover,
.phone-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.phone-link {
  justify-self: end;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body[data-theme="light"] .topbar {
  border-bottom-color: rgba(42, 34, 27, 0.14);
  background: rgba(255, 248, 239, 0.92);
  color: var(--ink);
}

body[data-theme="light"] .brand small,
body[data-theme="light"] .topnav a,
body[data-theme="light"] .phone-link,
body[data-theme="light"] .language-button,
body[data-theme="light"] .theme-toggle {
  color: rgba(26, 23, 20, 0.74);
}

body[data-theme="light"] .language-toggle,
body[data-theme="light"] .phone-link,
body[data-theme="light"] .theme-toggle {
  border-color: rgba(42, 34, 27, 0.16);
}

body[data-theme="light"] .language-button.is-active {
  background: var(--ink);
  color: #fff;
}

body[data-theme="light"] .topnav a:hover,
body[data-theme="light"] .phone-link:hover,
body[data-theme="light"] .theme-toggle:hover {
  background: rgba(42, 34, 27, 0.08);
  color: var(--ink);
}

main {
  width: min(1440px, 100%);
  margin: 0 auto;
  background-image: url("assets/friendship-logo-pattern-grid-rotated-left.png");
  background-position: center calc(clamp(540px, 74vh, 760px) + 34px);
  background-repeat: repeat-y;
  background-size: 100% auto;
}

.hero {
  display: grid;
  position: relative;
  min-height: clamp(540px, 74vh, 760px);
  grid-template-columns: minmax(0, 680px);
  align-items: end;
  overflow: hidden;
  padding: clamp(72px, 12vh, 128px) clamp(18px, 4vw, 54px) clamp(28px, 7vh, 68px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(7, 6, 5, 0.92) 0%, rgba(9, 8, 7, 0.76) 42%, rgba(9, 8, 7, 0.26) 76%),
    linear-gradient(180deg, rgba(7, 6, 5, 0.2) 0%, rgba(7, 6, 5, 0.28) 52%, rgba(7, 6, 5, 0.9) 100%),
    url("assets/hero-shashlik.jpg") center / cover no-repeat;
}

body[data-theme="light"] .hero {
  border-bottom-color: rgba(42, 34, 27, 0.12);
  background:
    linear-gradient(90deg, rgba(255, 246, 234, 0.92) 0%, rgba(255, 246, 234, 0.72) 42%, rgba(255, 246, 234, 0.22) 76%),
    linear-gradient(180deg, rgba(255, 246, 234, 0.08) 0%, rgba(255, 246, 234, 0.22) 52%, rgba(255, 246, 234, 0.9) 100%),
    url("assets/hero-shashlik.jpg") center / cover no-repeat;
  color: var(--ink);
}

.hero-copy {
  display: flex;
  position: relative;
  z-index: 1;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  color: #fff;
}

body[data-theme="light"] .hero-copy {
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--tomato);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #f2b27b;
}

body[data-theme="light"] .hero-copy .eyebrow {
  color: var(--tomato-dark);
}

h1,
h2,
h3,
p,
dl {
  margin-top: 0;
}

h1 {
  max-width: 16ch;
  margin-bottom: 12px;
  font-size: clamp(2.55rem, 5vw, 5.2rem);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.55);
}

h2 {
  margin-bottom: 0;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.hero-text {
  max-width: 58ch;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.42);
}

body[data-theme="light"] h1,
body[data-theme="light"] .hero-text {
  color: var(--ink);
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.76);
}

body[data-theme="light"] .service-strip div {
  border-color: rgba(42, 34, 27, 0.14);
  background: rgba(255, 250, 242, 0.7);
}

body[data-theme="light"] .service-strip dt {
  color: rgba(26, 23, 20, 0.58);
}

body[data-theme="light"] .service-strip dd {
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.primary-button,
.secondary-button,
.checkout-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 800;
}

.primary-button,
.checkout-button {
  background: var(--tomato);
  color: #fff;
}

.primary-button:hover,
.checkout-button:hover {
  background: var(--tomato-dark);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(10px);
}

body[data-theme="light"] .secondary-button {
  border-color: rgba(42, 34, 27, 0.24);
  background: rgba(255, 250, 242, 0.72);
  color: var(--ink);
}

.primary-button,
.secondary-button {
  padding: 0 18px;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

.service-strip div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(10, 9, 8, 0.56);
  backdrop-filter: blur(10px);
}

.service-strip dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
}

.service-strip dd {
  margin: 3px 0 0;
  font-weight: 800;
}

.hero-media {
  display: none;
}

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

.menu-shell {
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 22px;
  align-items: start;
  padding: 0 clamp(18px, 4vw, 54px) clamp(28px, 5vw, 62px);
}

.menu-main,
.order-panel,
.sets-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.25);
}

.menu-main {
  padding: clamp(14px, 2vw, 20px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.section-head.compact {
  margin-bottom: 16px;
}

.search {
  position: relative;
  width: min(330px, 100%);
}

.search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.search input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--coal);
  color: var(--ink);
  outline: none;
}

.search input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(63, 116, 95, 0.16);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tab-button,
.mode-button,
.clear-button,
.quantity-button,
.add-button {
  cursor: pointer;
  border: 0;
}

.tab-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--ink-soft);
  font-weight: 800;
}

.tab-button.is-active {
  border-color: var(--tomato);
  background: var(--tomato);
  color: #fff;
}

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

.menu-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.menu-card:hover {
  border-color: rgba(185, 66, 53, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
}

.menu-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.menu-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.menu-card-image {
  height: 178px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--coal);
}

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

.menu-card-image video {
  background: var(--coal);
}

.price {
  flex: 0 0 auto;
  color: #ff826f;
  font-size: 1.2rem;
  font-weight: 900;
}

body[data-theme="light"] .price,
body[data-theme="light"] .set-card strong {
  color: #b83e31;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(101, 166, 133, 0.15);
  color: #8fd0ad;
  font-size: 0.76rem;
  font-weight: 800;
}

body[data-theme="light"] .tag {
  background: rgba(63, 116, 95, 0.15);
  color: #2f6b52;
}

body[data-theme="light"] .tag.hot {
  background: rgba(185, 66, 53, 0.14);
  color: #a43a2f;
}

body[data-theme="light"] .tag.blue {
  background: rgba(54, 109, 145, 0.14);
  color: #315f7d;
}

.tag.hot {
  background: rgba(213, 83, 67, 0.16);
  color: #ff9384;
}

.tag.blue {
  background: rgba(118, 168, 201, 0.16);
  color: #9dcdea;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  align-self: end;
}

.card-footer-no-weight {
  justify-content: flex-end;
}

.weight {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.add-button {
  min-height: 40px;
  padding: 0 13px;
  border-radius: var(--radius);
  background: var(--sage);
  color: #fff;
  font-weight: 900;
}

.add-button:hover {
  background: #2f5c4b;
}

.empty-state {
  margin: 20px 0 0;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
}

.order-panel {
  position: sticky;
  top: 84px;
  padding: 18px;
}

.order-panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.clear-button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: var(--radius);
  background: var(--panel-raised);
  color: var(--ink-soft);
  font-weight: 800;
}

.clear-button:hover {
  background: #37322d;
}

body[data-theme="light"] .clear-button:hover {
  background: #d8c7b4;
  color: var(--ink);
}

.mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: var(--radius);
  background: var(--coal);
}

.mode-button {
  min-height: 38px;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 900;
}

.mode-button.is-active {
  background: var(--panel-raised);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.26);
}

.order-list {
  display: grid;
  gap: 10px;
  min-height: 72px;
}

.order-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.order-item strong,
.order-item small {
  display: block;
}

.order-item small,
.muted,
.order-note {
  color: var(--ink-soft);
}

.quantity {
  display: inline-grid;
  grid-template-columns: 30px 32px 30px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quantity-button {
  height: 30px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 900;
}

.quantity span {
  text-align: center;
  font-weight: 900;
}

.totals {
  display: grid;
  gap: 9px;
  margin: 18px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.totals div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.grand-total {
  font-size: 1.2rem;
}

.checkout-button {
  width: 100%;
}

.order-note {
  margin: 12px 0 0;
  font-size: 0.84rem;
}

.sets-band {
  margin: 0 clamp(18px, 4vw, 54px) clamp(28px, 5vw, 62px);
  padding: clamp(16px, 3vw, 26px);
}

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

.set-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.set-card.accent {
  border-color: rgba(185, 66, 53, 0.44);
  background: rgba(213, 83, 67, 0.08);
}

.set-card span {
  color: var(--sage);
  font-size: 0.8rem;
  font-weight: 900;
}

.set-card p {
  color: var(--ink-soft);
}

.set-card strong {
  color: #ff826f;
  font-size: 1.2rem;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 54px);
  background: #0a0908;
  color: #fff;
}

.footer p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.staff-login-button {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.28);
}

.staff-login-button:hover,
.staff-login-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.68);
  outline: none;
}

.staff-login-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.admin-dialog {
  width: min(1120px, calc(100vw - 28px));
  max-height: min(880px, calc(100vh - 28px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
}

.order-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: min(840px, calc(100vh - 28px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
}

.admin-dialog::backdrop {
  background: rgba(25, 24, 23, 0.58);
  backdrop-filter: blur(4px);
}

.order-dialog::backdrop {
  background: rgba(25, 24, 23, 0.58);
  backdrop-filter: blur(4px);
}

.admin-modal-content {
  position: relative;
  max-height: min(880px, calc(100vh - 28px));
  overflow: auto;
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.order-modal-content {
  display: grid;
  gap: 14px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-soft);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
}

.admin-login-form,
.admin-form,
.order-form {
  display: grid;
  gap: 14px;
}

.admin-login-form {
  max-width: 420px;
}

.admin-login-form label,
.admin-form label,
.order-form label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 800;
}

.admin-login-form input,
.admin-form input,
.admin-form select,
.admin-form textarea,
.order-form input,
.order-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--coal);
  color: var(--ink);
  outline: none;
}

.admin-form textarea,
.order-form textarea {
  min-height: 90px;
  resize: vertical;
}

.admin-login-form input:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.order-form input:focus,
.order-form textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(63, 116, 95, 0.16);
}

.form-button {
  border: 0;
  padding: 0 18px;
}

.form-button:disabled,
.checkout-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

body[data-theme="light"] .form-button:disabled,
body[data-theme="light"] .checkout-button:disabled {
  background: #dac7b5;
  color: #5d4f43;
  opacity: 1;
}

.order-form-summary {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.order-form-summary h3 {
  margin-bottom: 10px;
}

.order-summary-lines,
.admin-order-lines {
  display: grid;
  gap: 8px;
}

.order-summary-lines div,
.admin-order-lines div,
.admin-order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.order-call-button {
  color: var(--ink);
}

.form-error,
.form-status {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-weight: 800;
}

.form-error {
  background: rgba(185, 66, 53, 0.1);
  color: #ff9384;
}

.form-status {
  background: rgba(63, 116, 95, 0.1);
  color: #8fd0ad;
}

.form-status.is-error {
  background: rgba(185, 66, 53, 0.1);
  color: #ff9384;
}

.admin-import-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.admin-import-panel strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.admin-import-panel p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.admin-import-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.file-button input {
  display: none;
}

.template-download-link {
  display: inline-flex;
  width: fit-content;
  margin: -4px 0 14px;
  color: #8fd0ad;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body[data-theme="light"] .template-download-link {
  color: #2f6b52;
}

body[data-theme="light"] .form-status.is-error {
  background: rgba(185, 66, 53, 0.14);
  color: #a43a2f;
}

.admin-editor-head,
.admin-head-actions,
.admin-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-head-actions,
.admin-form-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.admin-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(206, 179, 125, 0.26);
  border-radius: var(--radius);
  background: rgba(206, 179, 125, 0.08);
  color: var(--sand);
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-subhead {
  margin-bottom: 12px;
}

.admin-subhead h3,
.admin-orders-panel h3 {
  margin: 3px 0 0;
}

.admin-orders-panel {
  display: grid;
  gap: 10px;
}

.admin-orders-panel,
.admin-users-panel,
.admin-access-note {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.admin-orders-panel p,
.admin-access-note {
  color: var(--ink-soft);
  font-weight: 700;
}

.admin-orders-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.admin-order-card {
  display: grid;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.admin-order-head,
.admin-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.admin-order-head {
  align-items: center;
  justify-content: space-between;
}

.admin-order-head span,
.admin-order-meta dt,
.admin-order-comment {
  color: var(--ink-soft);
}

.admin-order-meta {
  margin: 0;
}

.admin-order-meta div {
  min-width: min(180px, 100%);
}

.admin-order-meta dt {
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-order-meta dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.admin-order-total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 1.08rem;
}

.admin-users-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.admin-user-list,
.admin-user-form {
  display: grid;
  gap: 10px;
}

.admin-user-form label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 800;
}

.admin-user-form input,
.admin-user-form select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--coal);
  color: var(--ink);
  outline: none;
}

.admin-user-form input:focus,
.admin-user-form select:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(63, 116, 95, 0.16);
}

.admin-user-grid {
  grid-template-columns: 1fr 1fr 0.8fr auto;
}

.admin-user-card {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  color: var(--ink);
  text-align: left;
}

.admin-user-card.is-active {
  border-color: var(--sage);
  background: rgba(63, 116, 95, 0.16);
  color: #fff;
}

.admin-user-card span {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-editor-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-list {
  display: grid;
  gap: 8px;
}

.admin-list-item {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  color: var(--ink);
  text-align: left;
}

.admin-list-item.is-active {
  border-color: var(--tomato);
  background: rgba(213, 83, 67, 0.16);
  color: #fff;
}

.admin-list-item span {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-list-item.is-active span {
  color: rgba(255, 255, 255, 0.72);
}

.form-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr auto;
  gap: 12px;
  align-items: end;
}

.checkbox-label {
  min-height: 42px;
  grid-template-columns: auto 1fr;
  align-items: center;
  align-self: end;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.language-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.language-edit-grid fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.language-edit-grid legend {
  padding: 0 6px;
  color: #ff826f;
  font-weight: 900;
}

.image-editor {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.admin-image-preview {
  height: 150px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--coal);
}

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

.admin-image-preview video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.image-fields {
  display: grid;
  gap: 12px;
}

.danger-button {
  color: #ff9384;
}

.clear-button:disabled,
.danger-button:disabled {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.36);
}

body[data-theme="light"] .danger-button {
  color: #a43a2f;
}

body[data-theme="light"] .clear-button:disabled,
body[data-theme="light"] .danger-button:disabled {
  background: #e7dacb;
  color: #8a6d61;
  opacity: 1;
}

body[data-theme="light"] .admin-user-card.is-active {
  border-color: #6c9c80;
  background: #dfeade;
  color: var(--ink);
}

body[data-theme="light"] .admin-user-card.is-active span {
  color: #5d6b5e;
}

.admin-page-main {
  width: min(1500px, 100%);
  min-height: calc(100vh - 93px);
  padding: clamp(16px, 3vw, 34px);
  background-image: none;
}

.admin-login-screen {
  display: grid;
  min-height: calc(100vh - 150px);
  place-items: center;
}

.admin-login-card {
  width: min(460px, 100%);
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.admin-login-card h1,
.admin-page-head h1 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.05;
  text-shadow: none;
}

.admin-cabinet {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-sidebar,
.admin-workspace,
.admin-content-section {
  min-width: 0;
}

.admin-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.admin-user-chip {
  padding: 12px;
  border: 1px solid rgba(206, 179, 125, 0.26);
  border-radius: var(--radius);
  background: rgba(206, 179, 125, 0.08);
  color: var(--sand);
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-side-nav {
  display: grid;
  gap: 8px;
}

.admin-nav-button {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  color: var(--ink-soft);
  font-weight: 900;
  text-align: left;
}

.admin-nav-button.is-active {
  border-color: var(--tomato);
  background: rgba(213, 83, 67, 0.16);
  color: var(--ink);
}

.admin-logout-button {
  width: 100%;
}

.admin-workspace {
  display: grid;
  gap: 16px;
}

.admin-content-section {
  padding: clamp(16px, 2.5vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-content-section .admin-orders-list {
  margin-top: 0;
}

.admin-content-section .admin-order-card {
  background: var(--panel-soft);
}

@media (max-width: 1040px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topnav {
    display: none;
  }

  .hero,
  .menu-shell {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-media {
    min-height: 320px;
  }

  .order-panel {
    position: static;
  }

  .admin-editor-layout {
    grid-template-columns: 1fr;
  }

  .admin-users-layout,
  .admin-user-grid {
    grid-template-columns: 1fr;
  }

  .admin-cabinet {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-side-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-nav-button {
    text-align: center;
  }

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

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 14px;
  }

  .top-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .phone-link {
    display: none;
  }

  .hero {
    gap: 14px;
    padding: 14px;
  }

  .hero-copy {
    min-height: auto;
    padding: 22px;
  }

  .hero-media {
    min-height: 260px;
  }

  h1 {
    max-width: 14ch;
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .service-strip,
  .menu-grid,
  .sets-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .menu-shell,
  .sets-band {
    padding-left: 14px;
    padding-right: 14px;
  }

  .sets-band {
    margin-left: 14px;
    margin-right: 14px;
  }

  .menu-card {
    min-height: auto;
  }

  .menu-card-image {
    height: 210px;
  }

  .admin-dialog {
    width: 100vw;
    max-height: 100vh;
  }

  .admin-modal-content {
    min-height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .admin-editor-head,
  .admin-subhead,
  .admin-orders-panel,
  .form-grid,
  .language-edit-grid,
  .image-editor {
    grid-template-columns: 1fr;
  }

  .admin-editor-head {
    display: grid;
    padding-right: 42px;
  }

  .admin-subhead,
  .admin-orders-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-list {
    grid-template-columns: 1fr;
    max-height: 260px;
    overflow: auto;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .admin-page-main {
    padding: 12px;
  }

  .admin-page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-import-panel,
  .admin-import-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-import-actions .clear-button,
  .admin-import-actions .file-button {
    width: 100%;
  }

  .admin-side-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-actions {
    display: grid;
  }

  h1 {
    max-width: none;
    font-size: 2.08rem;
  }

  .hero-text {
    font-size: 0.98rem;
  }

  .service-strip {
    gap: 8px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .menu-card-top,
  .card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .add-button {
    width: 100%;
  }

  .menu-card-image {
    height: 186px;
  }
}

body[data-theme="light"] .hero .hero-copy,
body[data-theme="light"] .hero .service-strip,
body[data-theme="light"] .hero .service-strip dd {
  color: var(--ink);
}

body[data-theme="light"] .hero .service-strip div {
  border-color: rgba(42, 34, 27, 0.22);
  background: rgba(255, 250, 242, 0.88);
  box-shadow: 0 10px 28px rgba(79, 61, 45, 0.16);
}

body[data-theme="light"] .hero .service-strip dt {
  color: rgba(26, 23, 20, 0.66);
}
