:root {
  color-scheme: light;
  --coal: #15120f;
  --coal-soft: #25201b;
  --ember: #c94724;
  --ember-dark: #96331d;
  --cream: #fff8ed;
  --paper: #fffcf6;
  --sage: #657c4d;
  --muted: #756d62;
  --line: #eadcc8;
  --shadow: 0 20px 60px rgba(21, 18, 15, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--coal);
  background: var(--paper);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 64px);
  color: #fff;
  background: rgba(21, 18, 15, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 248, 237, 0.14);
}

.brand,
.main-nav,
.header-actions,
.hero-actions,
.hero-meta,
.delivery-list,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  background: currentColor;
  border-radius: 999px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 248, 237, 0.2);
}

.main-nav {
  justify-content: center;
  gap: clamp(14px, 2.5vw, 34px);
  font-size: 14px;
  font-weight: 600;
}

.main-nav a,
.header-phone {
  opacity: 0.88;
}

.main-nav a:hover,
.header-phone:hover,
.main-nav .is-active {
  opacity: 1;
}

.header-phone {
  font-size: 14px;
  font-weight: 700;
}

.header-actions {
  justify-content: flex-end;
  gap: 12px;
}

.cart-button,
.login-button,
.install-button,
.admin-edit-toggle,
.cart-close,
.quantity-button,
.remove-item,
.profile-logout {
  font: inherit;
  cursor: pointer;
}

.login-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #fff;
  background: var(--ember);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-weight: 800;
}

.login-button:hover {
  background: var(--ember-dark);
}

.install-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.install-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.install-button.is-installed,
.install-button:disabled {
  opacity: 0.65;
  cursor: default;
}

.admin-edit-toggle {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--coal);
  background: #ffc46b;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-weight: 900;
}

.admin-edit-toggle.is-active {
  color: #fff;
  background: var(--sage);
}

.cart-button {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  font-weight: 800;
}

.cart-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.cart-count {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  color: #fff;
  background: var(--ember);
  border-radius: 999px;
  font-size: 12px;
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  color: #fff;
  background: var(--coal);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(21, 18, 15, 0.94) 0%, rgba(21, 18, 15, 0.72) 38%, rgba(21, 18, 15, 0.22) 72%),
    linear-gradient(0deg, rgba(21, 18, 15, 0.76) 0%, rgba(21, 18, 15, 0) 38%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(720px, 100%);
  min-height: 94vh;
  padding: 116px clamp(18px, 7vw, 96px) 58px;
}

.hero-logo {
  width: clamp(104px, 13vw, 170px);
  height: clamp(104px, 13vw, 170px);
  margin-bottom: 22px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--ember);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffc46b;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-text {
  max-width: 610px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.add-to-cart {
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
  color: var(--coal);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.add-to-cart:hover {
  color: #fff;
  background: var(--ember);
  border-color: var(--ember);
}

.primary {
  color: #fff;
  background: var(--ember);
  box-shadow: 0 14px 30px rgba(201, 71, 36, 0.26);
}

.primary:hover {
  background: var(--ember-dark);
}

.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-meta {
  gap: 10px;
  flex-wrap: wrap;
}

.hero-meta span,
.delivery-list span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.section {
  padding: clamp(64px, 8vw, 112px) clamp(18px, 5vw, 78px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) 1.28fr;
  gap: clamp(34px, 6vw, 80px);
  background: var(--cream);
}

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

.intro-grid article,
.menu-card,
.booking-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.intro-grid article {
  padding: 26px;
}

.feature-icon {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--sage);
  font-weight: 900;
}

.intro p,
.menu-card p,
.delivery-band p,
.contact-info p {
  color: var(--muted);
  line-height: 1.65;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.menu-section {
  background: var(--paper);
}

.menu-hero {
  display: grid;
  grid-template-columns: minmax(280px, 760px) minmax(260px, 360px);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  padding: 140px clamp(18px, 5vw, 78px) 72px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(21, 18, 15, 0.94), rgba(21, 18, 15, 0.64)),
    url("assets/shashlik-hero.png") center / cover;
}

.menu-hero h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
}

.menu-hero p:not(.eyebrow) {
  max-width: 660px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.6;
}

.menu-hero-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(21, 18, 15, 0.72);
  backdrop-filter: blur(14px);
}

.menu-hero-panel span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.menu-hero-panel strong {
  font-size: 32px;
}

.full-menu {
  display: grid;
  gap: 56px;
  background: var(--paper);
}

.menu-category {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) 1fr;
  gap: clamp(22px, 5vw, 58px);
  align-items: start;
}

.category-heading {
  position: sticky;
  top: 96px;
}

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

.dish-row {
  display: flex;
  min-height: 158px;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 40px rgba(21, 18, 15, 0.08);
}

.dish-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: var(--coal-soft);
}

.dish-row .dish-image {
  flex: 0 0 128px;
  width: 128px;
  height: 128px;
  aspect-ratio: 1;
}

.dish-row > div:first-child {
  min-width: 0;
}

.dish-actions {
  display: flex;
  min-width: 116px;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.dish-actions .add-to-cart {
  width: auto;
  min-height: 38px;
  margin-top: 0;
  padding: 0 14px;
}

.dish-row h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.dish-row p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.sauce-select {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 800;
}

.sauce-select select {
  min-height: 40px;
  padding: 0 12px;
  color: var(--coal);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.accent-dish .sauce-select {
  color: #ffd096;
}

.dish-row strong {
  flex: 0 0 auto;
  color: var(--ember);
  font-size: 22px;
  white-space: nowrap;
}

.accent-dish {
  min-height: 174px;
  color: #fff;
  background: var(--coal-soft);
  border-color: rgba(255, 255, 255, 0.08);
}

.accent-dish p {
  color: rgba(255, 255, 255, 0.72);
}

.accent-dish .dish-image {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.compact-list .dish-row {
  min-height: 128px;
}

.menu-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 58px clamp(18px, 5vw, 78px);
  color: #fff;
  background: var(--coal-soft);
}

.menu-cta h2 {
  margin-bottom: 12px;
}

.menu-cta p:not(.section-kicker) {
  margin-bottom: 0;
  color: #ffd096;
}

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

.menu-card {
  display: flex;
  min-height: 224px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  overflow: hidden;
}

.menu-card strong {
  color: var(--ember);
  font-size: 26px;
}

.menu-card .dish-image {
  width: calc(100% + 16px);
  margin: -8px -8px 18px;
}

.delivery-band {
  display: grid;
  grid-template-columns: minmax(280px, 720px) minmax(260px, 1fr);
  gap: 30px;
  align-items: center;
  color: #fff;
  background: var(--coal-soft);
}

.delivery-band .section-kicker,
.delivery-band p {
  color: #ffd096;
}

.delivery-list {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.delivery-list span {
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 520px);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
  background: var(--cream);
}

.contact-info a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--ember);
  font-size: 24px;
  font-weight: 900;
}

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

.booking-form label,
.checkout-form label {
  display: grid;
  gap: 8px;
  color: var(--coal);
  font-size: 14px;
  font-weight: 800;
}

.booking-form input,
.checkout-form input,
.checkout-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--coal);
  background: #fff;
  font: inherit;
}

.checkout-form textarea {
  min-height: 116px;
  padding: 14px;
  resize: vertical;
}

.booking-form input:focus,
.checkout-form input:focus,
.checkout-form textarea:focus {
  border-color: var(--ember);
  outline: 3px solid rgba(201, 71, 36, 0.16);
}

.form-status,
.checkout-status {
  min-height: 24px;
  margin: 0;
  color: var(--sage);
  font-weight: 700;
}

.checkout-hero {
  padding: 140px clamp(18px, 5vw, 78px) 58px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(21, 18, 15, 0.95), rgba(21, 18, 15, 0.72)),
    url("assets/shashlik-hero.png") center / cover;
}

.checkout-hero h1 {
  max-width: 840px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
}

.checkout-hero p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.6;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 440px);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  background: var(--cream);
}

.checkout-form,
.checkout-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.checkout-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 32px);
}

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

.payment-fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.payment-fieldset legend {
  margin-bottom: 10px;
  font-weight: 900;
}

.radio-option,
.bonus-toggle {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.radio-option input,
.bonus-toggle input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--ember);
}

.radio-option span,
.bonus-toggle span {
  display: grid;
  gap: 4px;
}

.radio-option small,
.bonus-toggle small {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
}

.checkout-summary {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
  padding: 24px;
}

.summary-header h2 {
  margin-bottom: 0;
  font-size: 30px;
}

.checkout-items {
  display: grid;
  gap: 12px;
}

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

.checkout-item h3 {
  margin-bottom: 4px;
  font-size: 16px;
}

.checkout-item p,
.checkout-empty {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.checkout-item strong {
  white-space: nowrap;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
  font-size: 22px;
  font-weight: 900;
}

.checkout-menu-link {
  color: var(--coal);
  background: #fff;
  border-color: var(--line);
}

.profile-hero {
  padding: 140px clamp(18px, 5vw, 78px) 58px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(21, 18, 15, 0.95), rgba(21, 18, 15, 0.7)),
    url("assets/shashlik-hero.png") center / cover;
}

.profile-hero h1 {
  max-width: 840px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
}

.profile-hero p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.6;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  background: var(--cream);
}

.profile-card,
.orders-panel,
.login-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.profile-card {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  padding: 24px;
}

.profile-card h2 {
  margin-bottom: 0;
  font-size: 30px;
}

.profile-phone,
.profile-birthdate {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}

.bonus-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: #fff;
  background: var(--coal-soft);
  border-radius: 8px;
}

.bonus-card span {
  color: #ffd096;
  font-weight: 800;
}

.bonus-card strong {
  font-size: 48px;
  line-height: 1;
}

.profile-login {
  color: var(--coal);
  background: #fff;
  border-color: var(--line);
}

.profile-logout {
  justify-self: start;
  padding: 0;
  color: var(--ember);
  background: transparent;
  border: 0;
  font-weight: 800;
}

.orders-panel {
  padding: 24px;
}

.orders-list {
  display: grid;
  gap: 16px;
}

.admin-users-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  background: var(--cream);
}

.admin-users-summary,
.admin-users-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.admin-users-summary {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.admin-users-summary h2 {
  margin-bottom: 12px;
  font-size: 30px;
}

.admin-users-summary p:not(.section-kicker) {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-users-list {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.admin-user-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-user-card h3 {
  margin-bottom: 8px;
}

.admin-user-card p {
  margin-bottom: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.admin-user-stats {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: end;
  font-weight: 900;
}

.admin-user-stats span {
  padding: 7px 10px;
  color: var(--sage);
  background: rgba(101, 124, 77, 0.12);
  border-radius: 999px;
  white-space: nowrap;
}

.order-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.order-topline,
.order-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.order-topline h3 {
  margin-bottom: 0;
}

.order-status {
  padding: 6px 10px;
  color: var(--sage);
  background: rgba(101, 124, 77, 0.12);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.order-items {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.order-meta {
  color: var(--coal);
  font-weight: 900;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
}

.install-modal {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: none;
}

.install-modal.is-open {
  display: block;
}

.install-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 18, 15, 0.68);
  backdrop-filter: blur(8px);
}

.install-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(420px, calc(100% - 32px));
  transform: translate(-50%, -50%);
  padding: 26px;
  color: var(--coal);
  background: var(--paper);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.install-panel img {
  width: 82px;
  height: 82px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(21, 18, 15, 0.18);
}

.install-panel h2 {
  margin: 8px 0 12px;
  font-size: 30px;
}

.install-message {
  color: var(--muted);
}

.install-message ol {
  margin: 12px 0 18px;
  padding-left: 22px;
  color: var(--coal);
}

.install-message li + li {
  margin-top: 8px;
}

.install-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--coal);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 22px;
  cursor: pointer;
}

.install-page-link {
  width: 100%;
  margin-top: 10px;
}

.login-modal.is-open {
  display: block;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 18, 15, 0.58);
}

.login-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(420px, calc(100% - 32px));
  gap: 16px;
  padding: 24px;
  transform: translate(-50%, -50%);
}

.login-panel h2 {
  margin-bottom: 0;
  font-size: 30px;
}

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

.login-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

.login-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.login-form input:focus {
  border-color: var(--ember);
  outline: 3px solid rgba(201, 71, 36, 0.16);
}

.register-link {
  color: var(--coal);
  background: #fff;
  border-color: var(--line);
}

.register-hero {
  padding: 140px clamp(18px, 5vw, 78px) 58px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(21, 18, 15, 0.95), rgba(21, 18, 15, 0.7)),
    url("assets/shashlik-hero.png") center / cover;
}

.register-hero h1 {
  max-width: 840px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
}

.register-hero p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.6;
}

.register-layout {
  display: grid;
  place-items: start center;
  background: var(--cream);
}

.register-form {
  display: grid;
  width: min(520px, 100%);
  gap: 16px;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.register-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

.register-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.register-form input:focus {
  border-color: var(--ember);
  outline: 3px solid rgba(201, 71, 36, 0.16);
}

.register-status,
.login-status {
  min-height: 24px;
  margin: 0;
  color: var(--sage);
  font-weight: 700;
}

.login-status {
  color: var(--ember);
}

.login-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  color: var(--coal);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 24px;
  cursor: pointer;
}

.admin-panel {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  max-width: min(520px, calc(100% - 36px));
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: #fff;
  background: rgba(21, 18, 15, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(21, 18, 15, 0.24);
}

.admin-panel[hidden] {
  display: none;
}

.admin-panel span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.admin-reset {
  min-height: 34px;
  padding: 0 12px;
  color: #fff;
  background: var(--ember);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-mode .admin-editable {
  outline: 2px dashed rgba(255, 196, 107, 0.72);
  outline-offset: 4px;
  cursor: pointer;
}

.admin-mode .admin-editable:hover {
  outline-color: var(--ember);
  background-color: rgba(255, 196, 107, 0.12);
}

.offline-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 32px 18px;
  color: #fff;
  text-align: center;
  background: var(--coal);
}

.offline-page h1 {
  margin-bottom: 0;
  font-size: clamp(38px, 8vw, 72px);
}

.offline-page p {
  max-width: 520px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.offline-logo {
  width: 132px;
  height: 132px;
  border-radius: 8px;
  object-fit: cover;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 78px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--coal);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.cart-drawer.is-open {
  display: block;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 18, 15, 0.58);
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(440px, 100%);
  height: 100%;
  color: var(--coal);
  background: var(--paper);
  box-shadow: -24px 0 60px rgba(21, 18, 15, 0.24);
}

.cart-header,
.cart-footer {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.cart-footer {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-header h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.cart-close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--coal);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 26px;
  line-height: 1;
}

.cart-items {
  min-height: 0;
  overflow: auto;
  padding: 12px 22px;
}

.cart-empty {
  margin: 22px 0;
  color: var(--muted);
  line-height: 1.55;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.cart-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}

.cart-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.quantity-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--coal);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.remove-item {
  grid-column: 1 / -1;
  justify-self: end;
  padding: 0;
  color: var(--ember);
  background: transparent;
  border: 0;
  font-weight: 800;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 20px;
  font-weight: 900;
}

.cart-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 42px 1fr;
    gap: 10px;
  }

  .nav-toggle {
    display: grid;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px clamp(18px, 4vw, 64px) 16px;
    background: rgba(21, 18, 15, 0.96);
    border-bottom: 1px solid rgba(255, 248, 237, 0.14);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .intro,
  .delivery-band,
  .menu-hero,
  .menu-category,
  .menu-cta,
  .contact-section,
  .checkout-layout,
  .admin-users-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary,
  .admin-users-summary {
    position: static;
  }

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

  .category-heading {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 10px 14px;
  }

  .header-phone {
    font-size: 12px;
  }

  .install-button,
  .login-button {
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(21, 18, 15, 0.96), rgba(21, 18, 15, 0.58));
  }

  .hero-content {
    min-height: 92vh;
    padding: 92px 16px 36px;
  }

  h1 {
    font-size: 48px;
    line-height: 0.98;
  }

  h2 {
    font-size: 30px;
    line-height: 1.08;
  }

  .hero-text,
  .menu-hero p:not(.eyebrow),
  .checkout-hero p:not(.eyebrow),
  .profile-hero p:not(.eyebrow),
  .register-hero p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.5;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-meta span,
  .delivery-list span {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 52px 16px;
  }

  .intro-grid,
  .menu-grid,
  .dish-list {
    grid-template-columns: 1fr;
  }

  .menu-hero,
  .checkout-hero,
  .profile-hero,
  .register-hero {
    padding: 96px 16px 44px;
  }

  .menu-hero h1,
  .checkout-hero h1,
  .profile-hero h1,
  .register-hero h1 {
    font-size: 42px;
  }

  .menu-hero-panel,
  .booking-form,
  .checkout-form,
  .checkout-summary,
  .profile-card,
  .orders-panel,
  .admin-users-summary,
  .admin-users-list,
  .register-form,
  .intro-grid article,
  .menu-card,
  .dish-row {
    padding: 18px;
  }

  .form-grid,
  .checkout-item,
  .admin-user-card {
    grid-template-columns: 1fr;
  }

  .admin-user-stats {
    justify-items: start;
  }

  .dish-row {
    min-height: 0;
    flex-direction: column;
  }

  .dish-row .dish-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    flex-basis: auto;
  }

  .dish-actions {
    width: 100%;
    align-items: stretch;
  }

  .dish-actions .add-to-cart {
    width: 100%;
  }

  .menu-cta .button {
    width: 100%;
  }

  .menu-cta {
    padding: 44px 16px;
  }

  .menu-card {
    min-height: 180px;
  }

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

@media (max-width: 520px) {
  .header-actions {
    gap: 8px;
  }

  .cart-button span,
  .header-phone {
    display: none;
  }

  .cart-button {
    width: 42px;
    justify-content: center;
    padding: 0;
  }

  .cart-panel {
    width: 100%;
  }

  .cart-header,
  .cart-footer {
    padding: 18px 16px;
  }

  .cart-items {
    padding: 8px 16px;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-controls {
    justify-content: flex-start;
  }
}

@media (max-width: 380px) {
  .brand-logo,
  .nav-toggle,
  .cart-button {
    width: 38px;
    height: 38px;
  }

  .install-button,
  .login-button {
    padding: 0 8px;
    font-size: 11px;
  }

  h1 {
    font-size: 40px;
  }

  .button {
    padding: 0 16px;
  }
}

.install-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.install-hero {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
  padding: 32px 0;
}

.install-hero img {
  width: 180px;
  height: 180px;
  border-radius: 30px;
  box-shadow: 0 18px 42px rgba(27, 18, 10, 0.22);
}

.install-hero h1 {
  margin: 8px 0 12px;
  max-width: 760px;
}

.install-hero p:last-child {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

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

.install-steps article {
  background: var(--paper);
  border: 1px solid rgba(83, 54, 31, 0.12);
  border-radius: 8px;
  padding: 22px;
}

.install-steps span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--ember);
  color: #fff;
  font-weight: 800;
}

.install-steps h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.install-steps p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .install-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 20px;
  }

  .install-hero img {
    width: 132px;
    height: 132px;
    border-radius: 24px;
  }

  .install-steps {
    grid-template-columns: 1fr;
  }
}
