:root {
  --bg: #10100f;
  --bg-soft: #1b1a18;
  --ink: #fff6ea;
  --ink-soft: #d5c9b7;
  --muted: #918575;
  --surface: rgba(255, 246, 234, 0.08);
  --surface-strong: rgba(255, 246, 234, 0.13);
  --surface-warm: rgba(255, 182, 92, 0.13);
  --line: rgba(255, 246, 234, 0.13);
  --line-strong: rgba(255, 246, 234, 0.24);
  --accent: #ff7a2f;
  --accent-dark: #ff9a50;
  --accent-soft: rgba(255, 122, 47, 0.18);
  --green: #4bc08d;
  --green-soft: rgba(75, 192, 141, 0.13);
  --gold: #ffca61;
  --cream: #fff6ea;
  --charcoal: #171615;
  --shadow-sm: 0 14px 34px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max: 1200px;
  --tg-bg: #10100f;
  --tg-text: #fff6ea;
  --tg-button: #ff7a2f;
  --tg-button-text: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Manrope, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% -8%, rgba(255, 122, 47, 0.28), transparent 33rem),
    radial-gradient(circle at 86% 8%, rgba(75, 192, 141, 0.22), transparent 30rem),
    radial-gradient(circle at 48% 48%, rgba(255, 202, 97, 0.1), transparent 28rem),
    linear-gradient(180deg, #10100f 0%, #151413 46%, #0c0c0b 100%);
  letter-spacing: 0;
}

body.drawer-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.site-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 14px 0 104px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 12px 0;
  background: rgba(16, 16, 15, 0.78);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255, 246, 234, 0.1);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark,
.footer-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #ff6f2d, #ffca61 72%);
  box-shadow: 0 12px 28px rgba(255, 122, 47, 0.28);
  font-weight: 900;
}

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

.brand strong {
  line-height: 1;
  font-size: 1.08rem;
  font-weight: 900;
}

.brand small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.topnav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topnav a {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 246, 234, 0.08);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
}

.topnav a:hover {
  color: var(--ink);
  background: rgba(255, 246, 234, 0.14);
}

.cart-button,
.button,
.add-button,
.icon-button,
.qty-control button,
.category-tabs button,
.auth-grid button {
  border: 0;
  cursor: pointer;
}

button:disabled,
.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.cart-button {
  position: relative;
  min-width: 116px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ffb24d);
  color: #fff;
  box-shadow: 0 16px 34px rgba(255, 122, 47, 0.3);
  font-weight: 900;
}

.cart-button::after {
  content: "Корзина";
}

.cart-button strong {
  min-width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.78rem;
}

.cart-icon {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  position: relative;
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 26px;
  align-items: stretch;
  margin-top: 16px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 246, 234, 0.16);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 202, 97, 0.32), transparent 20rem),
    radial-gradient(circle at 16% 22%, rgba(255, 122, 47, 0.22), transparent 24rem),
    linear-gradient(135deg, rgba(255, 246, 234, 0.14), rgba(255, 246, 234, 0.04) 46%, rgba(75, 192, 141, 0.12));
  box-shadow: var(--shadow-md);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: calc(var(--radius-lg) - 1px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 42%, rgba(255, 122, 47, 0.1));
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: 3.4rem;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

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

h3 {
  letter-spacing: 0;
}

.hero-text {
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.62;
  font-weight: 700;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 24px;
}

.hero-tags span {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--cream);
  background: rgba(255, 246, 234, 0.09);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.88rem;
  font-weight: 800;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.button:hover,
.add-button:hover,
.category-tabs button:hover {
  transform: translateY(-1px);
}

.button:active,
.add-button:active {
  transform: translateY(0);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #ffbd54);
  color: #fff;
  box-shadow: 0 16px 34px rgba(255, 122, 47, 0.3);
}

.button-primary:hover {
  background: linear-gradient(135deg, #ff8b3f, #ffd073);
}

.button-secondary {
  background: rgba(255, 246, 234, 0.1);
  color: var(--cream);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button-block {
  width: 100%;
}

.hero-visual {
  position: relative;
  z-index: 2;
  min-height: 300px;
}

.hero-badge {
  position: absolute;
  top: 14px;
  left: 10px;
  z-index: 5;
  padding: 9px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), #98f2c5);
  color: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.visual-card {
  position: absolute;
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 246, 234, 0.14);
}

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

.visual-card span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(16, 16, 15, 0.72);
  color: var(--cream);
  backdrop-filter: blur(14px);
  font-size: 0.84rem;
  font-weight: 900;
}

.visual-main {
  inset: 18px 16px 28px 16px;
  background: linear-gradient(145deg, rgba(255, 122, 47, 0.36), rgba(255, 202, 97, 0.22));
}

.visual-side {
  right: 0;
  bottom: 10px;
  width: 44%;
  height: 35%;
  background: linear-gradient(145deg, rgba(75, 192, 141, 0.3), rgba(255, 246, 234, 0.1));
}

.visual-mini {
  left: 0;
  bottom: 22px;
  width: 38%;
  height: 30%;
  background: linear-gradient(145deg, rgba(255, 202, 97, 0.34), rgba(255, 122, 47, 0.14));
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 0 30px;
}

.quick-info.is-loading,
.menu-group-grid.is-loading {
  pointer-events: none;
}

.quick-info article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 246, 234, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}

.skeleton-card,
.skeleton-menu-card {
  position: relative;
  min-height: 110px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 246, 234, 0.07);
}

.skeleton-menu-card {
  min-height: 310px;
}

.skeleton-card::after,
.skeleton-menu-card::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 246, 234, 0.13), transparent);
  animation: shimmer 1.3s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.quick-info article:nth-child(2) {
  background: var(--green-soft);
}

.quick-info article:nth-child(3) {
  background: var(--surface-warm);
}

.quick-info strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1rem;
  font-weight: 900;
}

.quick-info span,
.section-note,
.form-note,
.empty-state,
.menu-card p,
.menu-footer small,
.footer p {
  color: var(--ink-soft);
  line-height: 1.55;
}

.menu-section {
  padding: 0;
}

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

.section-note {
  max-width: 410px;
  margin-bottom: 0;
  font-weight: 700;
}

.category-tabs {
  position: sticky;
  top: 72px;
  z-index: 20;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 16px;
  margin-bottom: 18px;
  background: rgba(16, 16, 15, 0.82);
  backdrop-filter: blur(18px);
  scrollbar-width: none;
}

.category-tabs.is-loading {
  min-height: 70px;
}

.category-tabs.is-loading::before,
.category-tabs.is-loading::after {
  content: "";
  flex: 0 0 160px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 246, 234, 0.08);
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 246, 234, 0.08);
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 900;
  transition:
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.category-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ffb24d);
  box-shadow: none;
}

.menu-group-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 18px;
  min-height: 420px;
}

.menu-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-width: 0;
  border-radius: var(--radius-md);
  padding: 10px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(255, 246, 234, 0.08), rgba(255, 246, 234, 0.035));
  backdrop-filter: blur(12px);
  transition: transform 150ms ease;
}

.menu-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 246, 234, 0.16);
}

.menu-art {
  aspect-ratio: 1 / 0.78;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.32), transparent 26%),
    var(--card-accent, #ffd7bd);
  box-shadow: inset 0 0 0 1px rgba(255, 246, 234, 0.16);
}

.menu-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.menu-card:hover .menu-art img {
  transform: scale(1.04);
}

.menu-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.menu-meta strong {
  color: #98f2c5;
}

.menu-copy h3 {
  margin-bottom: 8px;
  line-height: 1.16;
  font-size: 1.08rem;
  font-weight: 900;
}

.menu-copy p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

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

.menu-footer strong,
.menu-footer small {
  display: block;
}

.menu-footer strong {
  font-size: 1.08rem;
  font-weight: 900;
}

.add-button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 122, 47, 0.18);
  color: #ffc391;
  font-weight: 900;
}

.add-button:hover {
  background: linear-gradient(135deg, var(--accent), #ffb24d);
  color: #fff;
}

.footer {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
  margin-top: 44px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 122, 47, 0.16), transparent 22rem),
    linear-gradient(135deg, #191817, #0d0d0c);
  border: 1px solid var(--line);
  color: #fff;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer strong {
  display: block;
}

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

.footer-block span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-links a {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cart-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 30;
  width: min(calc(100% - 28px), 720px);
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(18, 17, 16, 0.9);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.cart-bar span {
  color: rgba(255, 255, 255, 0.72);
}

.cart-bar.pulse {
  animation: pulse 240ms ease;
}

@keyframes pulse {
  50% {
    transform: translateX(-50%) scale(1.02);
  }
}

.cart-drawer {
  position: fixed;
  top: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  width: min(460px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 122, 47, 0.16), transparent 18rem),
    rgba(21, 20, 19, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  transform: translateX(calc(100% + 24px));
  transition: transform 180ms ease;
}

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

.cart-header,
.summary-row,
.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.cart-header {
  align-items: start;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 246, 234, 0.1);
  color: var(--cream);
  font-size: 1.3rem;
  font-weight: 900;
}

.checkout-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 14px;
}

.checkout-steps span {
  padding: 9px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  text-align: center;
  font-size: 0.86rem;
  font-weight: 900;
}

.checkout-steps span.active {
  background: linear-gradient(135deg, var(--accent), #ffb24d);
  color: #fff;
}

.cart-panel {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.cart-items {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.cart-line {
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line small {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
}

.qty-control {
  display: inline-grid;
  grid-template-columns: 34px 30px 34px;
  align-items: center;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-soft);
}

.qty-control button {
  height: 34px;
  background: transparent;
  color: var(--gold);
  font-weight: 900;
}

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

.cart-summary {
  padding-top: 14px;
}

.summary-row {
  align-items: center;
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.checkout-form {
  display: grid;
  gap: 10px;
  overflow: auto;
}

.auth-panel {
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--surface-warm);
}

.auth-panel span {
  display: block;
  margin-bottom: 10px;
  font-weight: 900;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.auth-button {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 246, 234, 0.1);
  color: var(--cream);
  font-weight: 900;
}

.auth-icon {
  width: 30px;
  height: 30px;
  display: block;
  border-radius: 999px;
  fill: currentColor;
}

.auth-telegram {
  color: #2aabee;
}

.auth-phone {
  color: var(--green);
}

.auth-vk {
  color: #0077ff;
}

.auth-google {
  color: var(--cream);
}

.auth-google .g-blue {
  fill: #4285f4;
}

.auth-google .g-green {
  fill: #34a853;
}

.auth-google .g-yellow {
  fill: #fbbc05;
}

.auth-google .g-red {
  fill: #ea4335;
}

.auth-status {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.45;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 246, 234, 0.08);
  color: var(--cream);
  padding: 0 14px;
}

.checkout-form input::placeholder,
.checkout-form textarea::placeholder {
  color: rgba(255, 246, 234, 0.5);
}

.checkout-form input:focus,
.checkout-form textarea:focus,
.checkout-form select:focus {
  outline: none;
  border-color: rgba(255, 202, 97, 0.62);
  box-shadow: 0 0 0 4px rgba(255, 202, 97, 0.12);
}

.checkout-form option {
  background: #171615;
  color: var(--cream);
}

.checkout-form textarea {
  min-height: 86px;
  padding-top: 12px;
  resize: vertical;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 246, 234, 0.07);
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state strong {
  margin-bottom: 6px;
  color: var(--cream);
  font-weight: 900;
}

.empty-state-wide {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
}

.error-state .button {
  margin-top: 10px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(7px);
}

.drawer-backdrop[hidden] {
  display: none;
}

.telegram-mode body,
body.telegram-mode {
  color: var(--tg-text);
  background:
    radial-gradient(circle at 24% -12%, rgba(255, 122, 47, 0.25), transparent 20rem),
    radial-gradient(circle at 92% 6%, rgba(75, 192, 141, 0.16), transparent 18rem),
    linear-gradient(180deg, var(--tg-bg), #0c0c0b 100%);
}

body.telegram-mode .site-shell {
  width: min(calc(100% - 18px), 640px);
  padding-top: 8px;
  padding-bottom: 128px;
}

body.telegram-mode .topbar {
  min-height: 58px;
  grid-template-columns: 1fr auto;
  border-bottom: 0;
  background: rgba(16, 16, 15, 0.56);
}

body.telegram-mode .topnav,
body.telegram-mode .footer,
body.telegram-mode .hero-actions .button-secondary,
body.telegram-mode .hero-visual {
  display: none;
}

body.telegram-mode .cart-button {
  min-width: 50px;
  width: 50px;
  padding: 0;
  background: var(--tg-button);
  color: var(--tg-button-text);
}

body.telegram-mode .cart-button::after {
  content: "";
}

body.telegram-mode .hero {
  min-height: auto;
  margin-top: 8px;
  padding: 18px;
  grid-template-columns: 1fr;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 122, 47, 0.24), rgba(75, 192, 141, 0.13)),
    rgba(255, 246, 234, 0.07);
}

body.telegram-mode h1 {
  font-size: clamp(2rem, 9vw, 3rem);
}

body.telegram-mode .hero-text,
body.telegram-mode .section-note {
  font-size: 1rem;
}

body.telegram-mode .quick-info {
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 12px 0;
}

body.telegram-mode .quick-info article {
  min-height: auto;
  padding: 14px;
}

body.telegram-mode .menu-section {
  margin-top: 16px;
}

body.telegram-mode .section-head {
  display: block;
  margin-bottom: 12px;
}

body.telegram-mode .category-tabs {
  top: 58px;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 0;
}

body.telegram-mode .category-tabs button {
  padding: 10px 12px;
}

body.telegram-mode .menu-group-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

body.telegram-mode .menu-card {
  min-height: 154px;
  grid-template-columns: 112px minmax(0, 1fr);
  padding: 12px;
  border-radius: 22px;
}

body.telegram-mode .menu-art {
  min-height: 128px;
}

body.telegram-mode .menu-copy p {
  display: none;
}

body.telegram-mode .menu-footer {
  align-items: stretch;
  flex-direction: column;
}

body.telegram-mode .add-button,
body.telegram-mode .button-primary {
  width: 100%;
  background: var(--tg-button);
  color: var(--tg-button-text);
}

body.telegram-mode .cart-bar {
  width: min(calc(100% - 18px), 640px);
  bottom: 8px;
  flex-direction: column;
  align-items: stretch;
  border-radius: 22px;
}

body.telegram-mode .cart-drawer {
  width: 100%;
  max-width: 640px;
  border-radius: 24px 24px 0 0;
  inset: auto 0 0 auto;
  max-height: 92vh;
  transform: translateY(110%);
}

body.telegram-mode .cart-drawer.open {
  transform: translateY(0);
}

body.telegram-mode .auth-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  h1 {
    font-size: 3rem;
  }

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

@media (max-width: 860px) {
  h1 {
    font-size: 2.65rem;
  }

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

  .hero-visual {
    min-height: 280px;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max));
    padding-bottom: 116px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topnav {
    display: none;
  }

  .cart-button {
    min-width: 50px;
    width: 50px;
    padding: 0;
  }

  .cart-button::after {
    content: "";
  }

  .hero,
  .section-head,
  .footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero {
    min-height: auto;
    padding: 24px;
    border-radius: 20px;
  }

  .hero-actions {
    justify-content: stretch;
  }

  .hero-actions .button {
    flex: 1;
  }

  .quick-info {
    grid-template-columns: 1fr;
  }

  .category-tabs {
    top: 68px;
  }

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

  .menu-copy p {
    display: none;
  }

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

  .add-button {
    width: 100%;
  }

  .cart-bar {
    align-items: stretch;
    border-radius: 18px;
  }

  .cart-bar .button {
    min-width: 150px;
  }

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

@media (max-width: 520px) {
  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  .brand small {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-visual {
    min-height: 230px;
  }

  .visual-main {
    inset: 20px 8px 54px 8px;
  }

  .visual-side {
    width: 48%;
  }

  .visual-mini {
    width: 46%;
  }

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

  .cart-bar {
    flex-direction: column;
    border-radius: 18px;
  }

  .cart-bar .button {
    width: 100%;
  }
}
