:root {
  --color-primary: #ea580c;
  --color-on-primary: #000000;
  --color-secondary: #f97316;
  --color-accent: #2563eb;
  --color-on-accent: #ffffff;
  --color-background: #fff7ed;
  --color-foreground: #0f172a;
  --color-card: #ffffff;
  --color-card-foreground: #0f172a;
  --color-muted: #fdf4f0;
  --color-muted-foreground: #475569;
  --color-border: #fceae1;
  --color-destructive: #dc2626;
  --color-ring: #ea580c;
  --font-display: Manrope, "Segoe UI", sans-serif;
  --font-body: Karla, "Segoe UI", sans-serif;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --radius: 12px;
  --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 15px rgba(15, 23, 42, 0.1);
  --header-safe: env(safe-area-inset-top, 0px);
  --footer-safe: env(safe-area-inset-bottom, 0px);
  --motion-fast: 150ms;
  --motion-mid: 220ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

.top-row { justify-content: space-between; }
#notifications-btn { min-width: 44px; min-height: 44px; }
.hero.is-compact { padding-top: 18px; padding-bottom: 18px; }
.hero.is-compact .hero-copy { display: none; }
.hero.is-compact .search-stack { margin-top: 0; }
.hero.is-compact .hero-shapes { opacity: .45; }
.field-hint { color: var(--color-muted-foreground); font-size: 13px; line-height: 1.5; }
.budget-note { margin: 6px 0 0; }
.price-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--color-muted-foreground); font-size: 11px; line-height: 15px; height: 30px; margin-top: 2px; }
.address-help { margin: 0; }
.suggest-warning { color: var(--color-foreground); font-weight: 600; }
.budget-inputs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.budget-inputs label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.budget-inputs input { width: 100%; min-width: 0; min-height: 44px; padding: 10px; border: 1px solid var(--color-border); border-radius: 12px; font: inherit; background: var(--color-card); color: var(--color-foreground); }
.budget-inputs input:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 2px; }
.form-error { color: var(--color-destructive); font-size: 13px; }
.source-progress { display: flex; flex-wrap: nowrap; align-items: center; min-height: 30px; gap: 6px; margin: 0 0 14px; overflow-x: auto; scrollbar-width: none; }
.source-progress::-webkit-scrollbar { display: none; }
.source-progress[hidden] { display: flex; visibility: hidden; }
.field-hint[hidden], .form-error[hidden] { display: none; }
.source-state { flex: 0 0 auto; white-space: nowrap; font-size: 11px; line-height: 16px; color: var(--color-muted-foreground); padding: 5px 9px; border-radius: 20px; background: var(--color-card); border: 1px solid var(--color-border); }
.source-loading { border-color: var(--color-primary); }
.source-error, .source-partial { color: var(--color-muted-foreground); border-style: dashed; }
#notifications-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
#notifications-fields:disabled { opacity: .6; }
#notifications-sheet .filter-sheet-body { padding-bottom: 24px; }
.grid { overflow-anchor: none; }
.new-deals-btn {
  position: fixed;
  left: 50%;
  bottom: calc(20px + var(--footer-safe));
  transform: translateX(-50%);
  z-index: 4;
  min-height: 44px;
  max-width: calc(100vw - 32px);
  padding: 10px 18px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-foreground);
  color: var(--color-background);
  box-shadow: var(--shadow-lg);
  font: 700 14px var(--font-body);
  white-space: nowrap;
  cursor: pointer;
}
.new-deals-btn[hidden] { display: none; }
.new-deals-btn:focus-visible { outline: 3px solid var(--color-ring); outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .55; }

@property --hero-from {
  syntax: "<color>";
  inherits: true;
  initial-value: #ea580c;
}

@property --hero-to {
  syntax: "<color>";
  inherits: true;
  initial-value: #c2410c;
}

@property --hero-blob-a {
  syntax: "<color>";
  inherits: true;
  initial-value: #fb923c;
}

@property --hero-blob-b {
  syntax: "<color>";
  inherits: true;
  initial-value: #2563eb;
}

@property --hero-mid {
  syntax: "<color>";
  inherits: true;
  initial-value: #d9480f;
}

@property --hero-angle {
  syntax: "<angle>";
  inherits: true;
  initial-value: 155deg;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
}

body {
  padding-bottom: calc(var(--space-2xl) + var(--footer-safe));
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
a {
  font-family: inherit;
}

button,
a,
.deal,
[role="button"] {
  touch-action: manipulation;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: var(--space-md);
  top: var(--space-md);
  z-index: 20;
  background: var(--color-card);
  padding: var(--space-sm) var(--space-md);
  border-radius: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.top {
  --brand-ink: #ea580c;
  --brand-glow: #fb923c;
  padding: calc(var(--space-md) + var(--header-safe)) var(--space-lg) var(--space-sm);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.top h1 {
  margin: 0;
  color: var(--brand-ink);
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 10vw, 3.25rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: none;
  text-shadow: 0 0 28px color-mix(in srgb, var(--brand-glow) 42%, transparent);
  transition:
    color 2.2s var(--ease-out),
    text-shadow 2.2s var(--ease-out);
}

.top[data-mood="0"] {
  --brand-ink: #ea580c;
  --brand-glow: #fb923c;
}

.top[data-mood="1"] {
  --brand-ink: #ea4d55;
  --brand-glow: #fdba74;
}

.top[data-mood="2"] {
  --brand-ink: #ef4444;
  --brand-glow: #fca5a5;
}

.top[data-mood="3"] {
  --brand-ink: #d97706;
  --brand-glow: #fbbf24;
}

.top[data-mood="4"] {
  --brand-ink: #e11d48;
  --brand-glow: #fb7185;
}

.top[data-mood="5"] {
  --brand-ink: #ea6c12;
  --brand-glow: #fde68a;
}

.place {
  margin: var(--space-xs) 0 0;
  color: var(--color-muted-foreground);
  font-size: 0.95rem;
}

.place.is-swap {
  display: inline-block;
}

.icon-btn {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-card);
  color: var(--color-foreground);
  cursor: pointer;
  transition:
    background var(--motion-mid) var(--ease-out),
    border-color var(--motion-mid) var(--ease-out),
    transform var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-mid) var(--ease-out);
}

.icon-btn svg {
  transition: transform 0.28s var(--ease-spring);
}

.icon-btn:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.12);
}

.icon-btn:hover svg {
  transform: scale(1.06);
}

.icon-btn.is-busy {
  border-color: var(--color-primary);
}

.icon-btn:active,
.geo-inline:active,
.chip:active,
.btn-accent:active,
.btn-ghost:active,
.toolbar-btn:active,
.pill:active,
.sort-option:active,
.city-trigger:active,
.city-option:active,
.recent-chip:active,
.fav-btn:active {
  opacity: 0.9;
  transform: scale(0.97);
}

.icon-btn:focus-visible,
.geo-inline:focus-visible,
.chip:focus-visible,
.btn-accent:focus-visible,
.btn-ghost:focus-visible,
.toolbar-btn:focus-visible,
.pill:focus-visible,
.sort-option:focus-visible,
.city-trigger:focus-visible,
.search-field input:focus-visible,
.deal:focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 2px;
}

.hero {
  --hero-from: #ea580c;
  --hero-to: #c2410c;
  --hero-mid: #d9480f;
  --hero-blob-a: #fb923c;
  --hero-blob-b: #2563eb;
  --hero-angle: 155deg;
  position: relative;
  margin: var(--space-md) var(--space-md) var(--space-lg);
  padding: var(--space-lg);
  overflow: hidden;
  border-radius: 20px;
  background-color: var(--hero-from);
  background-image:
    radial-gradient(120% 90% at 92% 0%, color-mix(in srgb, var(--hero-blob-a) 42%, transparent) 0%, transparent 54%),
    radial-gradient(90% 80% at 4% 100%, color-mix(in srgb, var(--hero-blob-b) 34%, transparent) 0%, transparent 50%),
    linear-gradient(
      var(--hero-angle),
      var(--hero-from) 0%,
      var(--hero-mid) 48%,
      var(--hero-to) 100%
    );
  color: #fff7ed;
  transition:
    --hero-from 2.2s var(--ease-out),
    --hero-to 2.2s var(--ease-out),
    --hero-mid 2.2s var(--ease-out),
    --hero-blob-a 2.2s var(--ease-out),
    --hero-blob-b 2.2s var(--ease-out),
    --hero-angle 2.4s var(--ease-out),
    background-color 2.2s var(--ease-out);
}

.hero[data-mood="0"] {
  --hero-from: #ea580c;
  --hero-to: #c2410c;
  --hero-mid: #d9480f;
  --hero-blob-a: #fb923c;
  --hero-blob-b: #2563eb;
  --hero-angle: 152deg;
}

.hero[data-mood="1"] {
  --hero-from: #f97316;
  --hero-to: #db2777;
  --hero-mid: #ea4d55;
  --hero-blob-a: #fdba74;
  --hero-blob-b: #7c3aed;
  --hero-angle: 168deg;
}

.hero[data-mood="2"] {
  --hero-from: #ef4444;
  --hero-to: #ea580c;
  --hero-mid: #f04328;
  --hero-blob-a: #fca5a5;
  --hero-blob-b: #0ea5e9;
  --hero-angle: 142deg;
}

.hero[data-mood="3"] {
  --hero-from: #d97706;
  --hero-to: #ea580c;
  --hero-mid: #e26508;
  --hero-blob-a: #fbbf24;
  --hero-blob-b: #4f46e5;
  --hero-angle: 174deg;
}

.hero[data-mood="4"] {
  --hero-from: #e11d48;
  --hero-to: #c2410c;
  --hero-mid: #d4322a;
  --hero-blob-a: #fb7185;
  --hero-blob-b: #2563eb;
  --hero-angle: 158deg;
}

.hero[data-mood="5"] {
  --hero-from: #f59e0b;
  --hero-to: #dc2626;
  --hero-mid: #ea6c12;
  --hero-blob-a: #fde68a;
  --hero-blob-b: #6366f1;
  --hero-angle: 164deg;
}

.hero:has(.city-picker.is-open) {
  overflow: visible;
  z-index: 12;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-shapes::before,
.hero-shapes::after,
.hero-glow {
  content: "";
  position: absolute;
  border-radius: 62% 38% 48% 52%;
  filter: blur(2px);
  will-change: transform, background, border-radius;
  transition: background 2.2s var(--ease-out);
}

.hero-shapes::before {
  width: 246px;
  height: 246px;
  right: -64px;
  top: -80px;
  background: var(--hero-blob-a);
  opacity: 0.9;
}

.hero-shapes::after {
  width: 186px;
  height: 186px;
  left: -52px;
  bottom: -62px;
  background: var(--hero-blob-b);
  opacity: 0.74;
}

.hero-glow {
  width: 200px;
  height: 200px;
  right: 16%;
  bottom: -48px;
  background: color-mix(in srgb, var(--hero-blob-a) 52%, #fff7ed);
  opacity: 0.32;
  filter: blur(22px);
}

.hero-aurora {
  position: absolute;
  inset: -35%;
  background:
    radial-gradient(ellipse 48% 38% at 72% 18%, color-mix(in srgb, #fff7ed 30%, transparent), transparent 68%),
    radial-gradient(ellipse 42% 46% at 18% 82%, color-mix(in srgb, var(--hero-blob-b) 42%, transparent), transparent 66%);
  mix-blend-mode: soft-light;
  opacity: 0.8;
  pointer-events: none;
  will-change: transform;
}

.hero-shine {
  position: absolute;
  inset: -24%;
  background: linear-gradient(
    118deg,
    transparent 28%,
    color-mix(in srgb, #fff7ed 26%, transparent) 48%,
    transparent 68%
  );
  pointer-events: none;
  opacity: 0.4;
}

.hero-copy,
.hero-kicker,
.hero-title,
.search-stack,
.search {
  position: relative;
}

.search-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.city-picker {
  position: relative;
}

.city-picker.is-open {
  z-index: 20;
}

.city-trigger {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  border: 0;
  border-radius: 10px;
  background: #fff7ed;
  color: var(--color-foreground);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-out), background var(--motion-mid) ease;
}

.city-trigger svg {
  flex-shrink: 0;
  transition: transform var(--motion-mid) var(--ease-out);
}

.city-picker.is-open .city-trigger svg {
  transform: rotate(180deg);
}

.city-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 21;
  max-height: min(280px, 50vh);
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  border-radius: 10px;
  background: #fff7ed;
  color: var(--color-foreground);
  box-shadow: var(--shadow-lg);
}

.city-option {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: background var(--motion-fast) var(--ease-out), transform var(--motion-fast) var(--ease-out);
}

.city-option:hover,
.city-option.is-active {
  background: #fed7aa;
}

.city-option[aria-selected="true"] {
  font-weight: 700;
  background: #ffedd5;
}

.city-option:focus-visible {
  outline: none;
  background: #fed7aa;
}

.city-sep {
  height: 1px;
  margin: 6px 8px;
  background: var(--color-border);
}

.hero-copy {
  overflow: hidden;
  margin: 0 0 var(--space-lg);
  padding: 2px 2px 6px 0;
}

.hero-kicker {
  margin: 0 0 var(--space-sm);
  min-height: 1.2em;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.88;
}

.hero-title {
  margin: 0;
  min-height: 2.5em;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 700;
  text-shadow:
    0 1px 0 color-mix(in srgb, #0f172a 14%, transparent),
    0 14px 28px color-mix(in srgb, #0f172a 22%, transparent);
}

.hero-title-line {
  display: block;
}

.hero-word {
  display: inline-block;
  will-change: transform, opacity, filter;
}

.hero-kicker.is-leave {
  animation: hero-kicker-leave 0.46s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-kicker.is-enter {
  animation: hero-kicker-enter 0.82s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title-line.is-leave .hero-word {
  animation: hero-word-leave 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: calc(var(--i) * 55ms);
}

.hero-title-line.is-enter .hero-word {
  animation: hero-word-enter 0.88s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i) * 70ms);
}

.hero-title-line:nth-child(2).is-leave .hero-word {
  animation-delay: calc(0.06s + var(--i) * 55ms);
}

.hero-title-line:nth-child(2).is-enter .hero-word {
  animation-delay: calc(0.12s + var(--i) * 70ms);
}

.hero-title-line.is-idle .hero-word {
  animation: hero-word-idle 5.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 160ms);
}

@keyframes hero-kicker-leave {
  to {
    opacity: 0;
    letter-spacing: 0.22em;
    transform: translateY(-8px);
    filter: blur(4px);
  }
}

@keyframes hero-kicker-enter {
  from {
    opacity: 0;
    letter-spacing: 0.32em;
    transform: translateY(8px);
    filter: blur(5px);
  }
  to {
    opacity: 0.88;
    letter-spacing: 0.14em;
    transform: none;
    filter: none;
  }
}

@keyframes hero-word-leave {
  to {
    opacity: 0;
    transform: translateY(-16px) scale(0.96);
    filter: blur(6px);
  }
}

@keyframes hero-word-enter {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.92);
    filter: blur(8px);
  }
  62% {
    opacity: 1;
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes hero-word-idle {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.search-wrap {
  position: relative;
  z-index: 4;
}

.search {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: stretch;
}

.search-field {
  flex: 1 1 12rem;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 48px;
  padding: 0 10px 0 14px;
  border-radius: 10px;
  background: #fff7ed;
  color: var(--color-foreground);
  transition: box-shadow var(--motion-mid) var(--ease-out), transform var(--motion-fast) var(--ease-out);
}

.search > .btn-accent {
  flex: 0 0 auto;
  min-width: 5.5rem;
}

/* Phone / Telegram: keep «Найти» on its own row so it never clips. */
@media (max-width: 480px) {
  .search-field {
    flex: 1 1 100%;
  }

  .search > .btn-accent {
    flex: 1 1 100%;
    width: 100%;
  }

  .geo-inline-label {
    display: none;
  }
}

.suggest-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 14px;
  background: #fffefb;
  box-shadow: 0 12px 32px rgba(28, 25, 23, 0.16), 0 0 0 1px rgba(28, 25, 23, 0.06);
  max-height: min(320px, 48vh);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.suggest-list[hidden] {
  display: none;
}

.suggest-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.suggest-item:hover,
.suggest-item.is-active {
  background: rgba(234, 88, 12, 0.1);
}

.suggest-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: #a8a29e;
}

.suggest-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.suggest-title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-foreground);
}

.suggest-sub {
  font-size: 0.8rem;
  line-height: 1.3;
  color: #78716c;
}

.suggest-empty {
  padding: 12px;
  font-size: 0.88rem;
  color: #78716c;
}

.search-field:focus-within {
  box-shadow: 0 0 0 3px rgba(255, 247, 237, 0.45);
  transform: translateY(-1px);
}

.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1rem;
}

.search-field input:focus {
  outline: none;
}

.geo-inline {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 40px;
  min-height: 36px;
  margin-right: -2px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.12);
  color: #c2410c;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background var(--motion-mid) var(--ease-out),
    color var(--motion-mid) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}

.geo-inline:hover {
  background: rgba(234, 88, 12, 0.2);
}

.geo-inline.is-busy {
  background: rgba(37, 99, 235, 0.16);
  color: #1d4ed8;
}

.geo-inline-label {
  display: none;
}

@media (min-width: 481px) {
  .geo-inline-label {
    display: inline;
  }
}

.btn-accent {
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity var(--motion-mid) var(--ease-out),
    transform var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-mid) var(--ease-out);
}

.btn-accent:hover {
  opacity: 0.96;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.btn-accent:active {
  transform: scale(0.97);
}

.btn-accent.is-busy {
  pointer-events: none;
  opacity: 0.88;
}

.btn-block {
  width: 100%;
}

.controls {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: 0 0 var(--space-md);
  padding: var(--space-sm) var(--space-md) var(--space-md);
  background: var(--color-background);
}

.toolbar {
  display: flex;
  gap: var(--space-sm);
  align-items: stretch;
}

.toolbar-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 14px;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-card);
  color: var(--color-foreground);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  flex: 1;
  min-width: 0;
  transition:
    background var(--motion-mid) var(--ease-out),
    border-color var(--motion-mid) var(--ease-out),
    color var(--motion-mid) var(--ease-out),
    transform var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-mid) var(--ease-out);
}

.toolbar-btn svg {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring);
}

.toolbar-btn.is-tab {
  flex: 0 0 auto;
  max-width: 42%;
}

.toolbar-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
  flex: 1;
  text-align: left;
}

.toolbar-hint {
  color: var(--color-muted-foreground);
  font-size: 0.78rem;
  font-weight: 600;
}

.toolbar-btn[data-active="true"] {
  background: var(--color-foreground);
  border-color: var(--color-foreground);
  color: #fff7ed;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

@media (hover: hover) {
  .toolbar-btn:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--color-primary) 50%, var(--color-border));
    box-shadow: var(--shadow-md);
  }

  .toolbar-btn:hover svg {
    transform: scale(1.08) rotate(-4deg);
  }

  .toolbar-btn[data-active="true"]:hover {
    border-color: var(--color-foreground);
  }
}

.toolbar-btn[data-active="true"] .toolbar-hint {
  color: #fed7aa;
}

.count-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff7ed;
  font-size: 0.75rem;
  line-height: 22px;
  text-align: center;
  transition: transform 0.28s var(--ease-spring), background var(--motion-mid) var(--ease-out);
}

.toolbar-btn[data-active="true"] .count-badge {
  background: #fff7ed;
  color: var(--color-foreground);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.pills[hidden] {
  display: none;
}

.recents {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.recents[hidden] {
  display: none;
}

.recent-chip {
  min-height: 36px;
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.92);
  color: var(--color-foreground);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform var(--motion-fast) var(--ease-out),
    background var(--motion-mid) ease,
    box-shadow var(--motion-mid) var(--ease-out);
}

@media (hover: hover) {
  .recent-chip:hover {
    transform: translateY(-1px);
    background: #fff7ed;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  }
}

.quick-foods {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-height: 44px;
}

/* Reserve the chip row before the first source reports food categories. */
#food-chips[hidden] { display: flex; visibility: hidden; }

.quick-foods::-webkit-scrollbar {
  display: none;
}

.quick-foods .chip {
  flex: 0 0 auto;
}

.notice {
  margin: 0 0 var(--space-md);
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #ffedd5;
  color: #9a3412;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: inset 3px 0 0 #ea580c;
}

.notice[hidden] {
  display: none;
}

.soon {
  margin: var(--space-lg) 0 var(--space-md);
}

.soon-title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.fav-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.48);
  color: #fff7ed;
  cursor: pointer;
  transition:
    transform var(--motion-fast) var(--ease-out),
    background var(--motion-mid) ease,
    color var(--motion-mid) ease,
    box-shadow var(--motion-mid) var(--ease-out);
}

.fav-btn svg {
  transition: transform 0.32s var(--ease-spring);
}

.fav-btn[aria-pressed="true"] {
  background: #fff7ed;
  color: #e11d48;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.28);
}

.fav-btn[aria-pressed="true"] svg {
  transform: scale(1.08);
  fill: currentColor;
}

.deal.is-soon {
  opacity: 0.92;
}

.loading-progress {
  margin-top: 10px;
}

.loading-track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #fed7aa;
}

.loading-bar {
  height: 100%;
  width: 28%;
  border-radius: 999px;
  background: var(--color-primary);
  transition: width 420ms var(--ease-out);
}

.loading-bar.is-indeterminate {
  width: 36%;
}

.pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--color-foreground);
  color: #fff7ed;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-mid) var(--ease-out),
    filter var(--motion-mid) var(--ease-out);
}

@media (hover: hover) {
  .pill:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
  }
}

.pill span {
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.8;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.chip {
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-muted);
  color: var(--color-foreground);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--motion-mid) var(--ease-out),
    border-color var(--motion-mid) var(--ease-out),
    color var(--motion-mid) var(--ease-out),
    transform var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-mid) var(--ease-out);
}

.chip[aria-pressed="true"] {
  background: var(--color-foreground);
  border-color: var(--color-foreground);
  color: #fff7ed;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
}

.chip.is-empty,
.chip:disabled {
  opacity: 0.48;
  cursor: default;
  box-shadow: none;
}

@media (hover: hover) {
  .chip:not(:disabled):not(.is-empty):hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--color-primary) 55%, var(--color-border));
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.12);
  }
}

.chip.chip-platform-wolt {
  border-color: #009de0;
  background: #d9f1fa;
  background: color-mix(in srgb, #009de0 14%, var(--color-muted));
  color: #006ea3;
}

.chip.chip-platform-wolt[aria-pressed="true"] {
  background: #009de0;
  border-color: #009de0;
  color: #ffffff;
}

.chip.chip-platform-yandex {
  border-color: #e6b800;
  background: #fff4c2;
  background: color-mix(in srgb, #ffcc00 32%, var(--color-muted));
  color: #5c4a00;
}

.chip.chip-platform-yandex[aria-pressed="true"] {
  background: #ffcc00;
  border-color: #e6b800;
  color: #1a1a1a;
}

.chip.chip-platform-glovo {
  border-color: #e0a800;
  background: #fff0cc;
  background: color-mix(in srgb, #ffc244 28%, var(--color-muted));
  color: #00591d;
}

.chip.chip-platform-glovo[aria-pressed="true"] {
  background: #ffc244;
  border-color: #e0a800;
  color: #00591d;
}

/* Chains that deliver themselves. FARШ's orange is the accent its own site uses. */
.chip.chip-platform-okadzaki {
  border-color: #c8102e;
  background: color-mix(in srgb, #c8102e 14%, var(--color-muted));
  color: #8e0a1f;
}

.chip.chip-platform-okadzaki[aria-pressed="true"] {
  background: #c8102e;
  border-color: #c8102e;
  color: #ffffff;
}

.chip.chip-platform-farsh {
  border-color: #ec6722;
  background: color-mix(in srgb, #ec6722 16%, var(--color-muted));
  color: #97400f;
}

.chip.chip-platform-farsh[aria-pressed="true"] {
  background: #ec6722;
  border-color: #ec6722;
  color: #ffffff;
}

.chip.chip-platform-dodo {
  border-color: #ff6900;
  background: color-mix(in srgb, #ff6900 14%, var(--color-muted));
  color: #a03f00;
}

.chip.chip-platform-dodo[aria-pressed="true"] {
  background: #ff6900;
  border-color: #ff6900;
  color: #ffffff;
}

.pill.pill-platform-wolt {
  background: #009de0;
  color: #ffffff;
}

.pill.pill-platform-yandex {
  background: #ffcc00;
  color: #1a1a1a;
}

.pill.pill-platform-glovo {
  background: #ffc244;
  color: #00591d;
}

/* eMenu's published primary colour, with dark text for legibility. */
.platform-badge.platform-emenu,
.pill.pill-platform-emenu,
body.tg-dark .pill.pill-platform-emenu {
  background: #fb6e3b;
  color: #29130b;
}
.chip.chip-platform-emenu {
  background: #fff0e9;
  border-color: #f7b298;
  color: #8a2c0a;
}
.chip.chip-platform-emenu[aria-pressed="true"],
body.tg-dark .chip.chip-platform-emenu[aria-pressed="true"] {
  background: #fb6e3b;
  border-color: #fb6e3b;
  color: #29130b;
}
body.tg-dark .chip.chip-platform-emenu {
  background: #422219;
  border-color: #9f4c30;
  color: #ffb093;
}

.pill.pill-platform-okadzaki {
  background: #c8102e;
  color: #ffffff;
}

.pill.pill-platform-farsh {
  background: #ec6722;
  color: #ffffff;
}

.pill.pill-platform-dodo {
  background: #ff6900;
  color: #ffffff;
}

.btn-ghost {
  min-height: 48px;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  background: transparent;
  color: var(--color-foreground);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--motion-fast) var(--ease-out), background var(--motion-mid) ease, border-color var(--motion-mid) ease;
}

.feed {
  padding: 0 var(--space-md);
}

.status {
  margin: 0 0 var(--space-md);
  color: var(--color-muted-foreground);
  line-height: 1.4;
  min-height: 2.8em;
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.lazy-more {
  grid-column: 1 / -1;
  margin: var(--space-xs) 0 var(--space-md);
  padding: 0.85rem 1rem;
  border: 1px dashed color-mix(in srgb, var(--color-border) 80%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-card) 70%, transparent);
  color: var(--color-muted-foreground);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    color var(--motion-mid) var(--ease-out),
    border-color var(--motion-mid) var(--ease-out),
    transform var(--motion-fast) var(--ease-out),
    background var(--motion-mid) var(--ease-out),
    box-shadow var(--motion-mid) var(--ease-out);
}

.lazy-more:hover {
  color: var(--color-foreground);
  border-color: var(--color-primary);
  background: var(--color-card);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.deal {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-height: 112px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-card);
  box-shadow: var(--shadow-md);
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--motion-mid) var(--ease-out), box-shadow var(--motion-mid) var(--ease-out);
}

.deal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    112deg,
    transparent 36%,
    color-mix(in srgb, #fff7ed 34%, transparent) 50%,
    transparent 64%
  );
  transform: translateX(-130%);
  opacity: 0;
}

@media (hover: hover) {
  .deal:hover {
    /* Keep card geometry stable when streamed updates change the hovered item. */
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
  }

  .deal:hover .deal-photo img {
    transform: scale(1.07);
  }

  .deal:hover::after {
    animation: card-sheen 0.9s var(--ease-out);
  }
}

.deal:active {
  transform: scale(0.985);
  box-shadow: var(--shadow-md);
}

.deal.is-closed {
  opacity: 0.72;
}

.deal-photo {
  position: relative;
  width: 100%;
  min-height: 112px;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(160deg, #fed7aa, #fb923c 55%, #ea580c);
}

.deal-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 480ms var(--ease-out);
}

.deal-photo.is-logo {
  background: #fff7ed;
}

.deal-photo.is-logo img {
  object-fit: contain;
  object-position: center;
  padding: 16%;
}

.deal-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  justify-content: center;
}

.deal-venue {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--color-muted-foreground);
  font-size: 0.78rem;
  font-weight: 600;
}

.deal-venue-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.3;
  white-space: nowrap;
}

.platform-badge.platform-wolt {
  background: #009de0;
  color: #ffffff;
}

.platform-badge.platform-yandex {
  background: #ffcc00;
  color: #1a1a1a;
}

.platform-badge.platform-glovo {
  background: #ffc244;
  color: #00591d;
}

.platform-badge.platform-okadzaki {
  background: #c8102e;
  color: #ffffff;
}

.platform-badge.platform-farsh {
  background: #ec6722;
  color: #ffffff;
}

.platform-badge.platform-dodo {
  background: #ff6900;
  color: #ffffff;
}

.deal-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-price {
  margin: 2px 0 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.deal-price s {
  margin-left: 6px;
  color: var(--color-muted-foreground);
  font-weight: 500;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.deal-photo .badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 1;
  margin: 0;
  padding: 2px 7px;
  font-size: 0.7rem;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
}

.deal-meta {
  margin: 0;
  color: var(--color-muted-foreground);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deal-facts {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin-top: 4px;
  min-width: 0;
  overflow: hidden;
}

.deal-fact {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  --i: 0;
}

.deal-fact.is-free {
  background: #dcfce7;
  color: #166534;
}

.deal-fact.is-recent {
  background: #ffedd5;
  color: #9a3412;
}

.deal.is-closed .deal-fact {
  background: #fee2e2;
  color: var(--color-destructive);
}

.loading-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.loading-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid #fdba74;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  flex: 0 0 auto;
}

.loading-text {
  display: inline-block;
}

.skeleton-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 112px;
  border-radius: var(--radius);
  background: var(--color-card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.skeleton-photo,
.skeleton-line,
.skeleton-chips span {
  background: linear-gradient(90deg, #fed7aa 15%, #ffedd5 45%, #fed7aa 75%);
  background-size: 200% 100%;
}

.skeleton-photo {
  min-height: 112px;
  background: linear-gradient(135deg, #fdba74 0%, #ffedd5 45%, #fb923c 100%);
  background-size: 200% 100%;
}

.skeleton-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 12px;
}

.skeleton-line {
  height: 12px;
  border-radius: 999px;
}

.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-55 { width: 55%; }
.skeleton-line.w-70 { width: 70%; }

.skeleton-chips {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.skeleton-chips span {
  display: block;
  width: 52px;
  height: 18px;
  border-radius: 999px;
}

.feed.is-loading .status {
  color: var(--color-foreground);
  font-weight: 600;
}

.empty {
  padding: var(--space-xl);
  border-radius: var(--radius);
  background: var(--color-muted);
  text-align: center;
}

.empty::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--color-primary);
}

.sheet {
  width: min(100%, 480px);
  max-height: calc(100dvh - 24px);
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 20px 20px 0 0;
  background: var(--color-card);
  color: var(--color-card-foreground);
  box-shadow: var(--shadow-lg);
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(36px) scale(0.985);
  transition:
    opacity 300ms var(--ease-out),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sheet.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sheet::backdrop {
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
}

.sheet.is-open::backdrop {
  opacity: 1;
}

.sheet-grip {
  width: 42px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-border) 80%, var(--color-muted-foreground));
}

.sort-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sort-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  border: 2px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-muted);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background var(--motion-mid) var(--ease-out),
    border-color var(--motion-mid) var(--ease-out),
    color var(--motion-mid) var(--ease-out),
    transform var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-mid) var(--ease-out);
}

@media (hover: hover) {
  .sort-option:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border));
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  }
}

.sort-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sort-option-text strong {
  font-size: 1rem;
  font-weight: 700;
}

.sort-option-text small {
  color: var(--color-muted-foreground);
  font-size: 0.8rem;
  font-weight: 500;
}

.sort-option[aria-checked="true"] {
  background: var(--color-foreground);
  border-color: var(--color-foreground);
  color: #fff7ed;
}

.sort-option[aria-checked="true"] small {
  color: #fed7aa;
}

.sort-option[aria-checked="true"]::after {
  content: "";
  width: 10px;
  height: 18px;
  margin-right: 4px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  flex-shrink: 0;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-sm) 0;
}

.sheet-head #sheet-fav[aria-pressed="true"] {
  color: #e11d48;
  border-color: #fda4af;
  background: #fff1f2;
}

.sheet-head-split {
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-md) 0 var(--space-lg);
}

.sheet-head-split h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.filter-sheet[open] {
  display: flex;
  flex-direction: column;
}

.filter-sheet-body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.filter-section h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 var(--space-sm);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.filter-multi {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.85;
}

.filter-section[hidden] {
  display: none;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 48px;
  font-weight: 700;
  transition: transform var(--motion-fast) var(--ease-out);
}

.switch-row:active {
  transform: scale(0.99);
}

.switch-row input {
  width: 48px;
  height: 28px;
  margin: 0;
  accent-color: var(--color-accent);
  cursor: pointer;
  transition: transform 0.28s var(--ease-spring);
}

.switch-row input:checked {
  transform: scale(1.06);
}

.filter-sheet-foot {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg) calc(var(--space-md) + var(--footer-safe));
  border-top: 1px solid var(--color-border);
}

.sheet-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #fed7aa;
}

.sheet-image.is-logo {
  object-fit: contain;
  padding: 28px;
  background: #fff7ed;
}

.sheet-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.sheet-venue {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.85rem;
}

.sheet-venue .platform-badge {
  font-size: 0.72rem;
  padding: 3px 8px;
}

.sheet-venue[hidden],
.sheet-desc[hidden],
.sheet-price[hidden] {
  display: none;
}

.sheet-body h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.2;
  text-wrap: pretty;
}

.sheet-desc,
.sheet-meta {
  margin: 0;
  color: var(--color-muted-foreground);
}

.sheet-price {
  margin: var(--space-sm) 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.sheet-price .badge {
  margin-left: 6px;
  vertical-align: middle;
}

.sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--space-sm);
}

.sheet-actions .btn-ghost {
  text-align: center;
  text-decoration: none;
}

.sheet-actions .btn-ghost[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-shapes::before {
    animation: blob-float 16s ease-in-out infinite;
  }

  .hero-shapes::after {
    animation: blob-drift 20s ease-in-out infinite;
  }

  .hero-glow {
    animation: blob-pulse 13s ease-in-out infinite;
  }

  .hero-aurora {
    animation: hero-aurora 18s ease-in-out infinite;
  }

  .hero-shine {
    animation: hero-sheen 9s ease-in-out infinite;
  }

  .hero.is-flipping .hero-shine {
    animation: hero-sheen-once 1.15s ease-out;
  }

  .top h1 {
    animation: fade-up 0.45s var(--ease-out) both;
  }

  .hero-copy {
    animation: fade-up 0.5s var(--ease-out) 0.06s both;
  }

  .controls .toolbar {
    animation: fade-up 0.4s var(--ease-out) 0.1s both;
  }

  .controls .quick-foods {
    animation: fade-up 0.42s var(--ease-out) 0.14s both;
  }

  .skeleton-card,
  .empty,
  .notice:not([hidden]),
  .recent-chip,
  .pill,
  .quick-foods .chip {
    animation: rise-soft 0.48s var(--ease-out) both;
  }

  .skeleton-card:nth-child(1), .quick-foods .chip:nth-child(1), .recent-chip:nth-child(1), .pill:nth-child(1) { animation-delay: 0.03s; }
  .skeleton-card:nth-child(2), .quick-foods .chip:nth-child(2), .recent-chip:nth-child(2), .pill:nth-child(2) { animation-delay: 0.06s; }
  .skeleton-card:nth-child(3), .quick-foods .chip:nth-child(3), .recent-chip:nth-child(3), .pill:nth-child(3) { animation-delay: 0.09s; }
  .skeleton-card:nth-child(4), .quick-foods .chip:nth-child(4), .recent-chip:nth-child(4) { animation-delay: 0.12s; }
  .quick-foods .chip:nth-child(5) { animation-delay: 0.15s; }
  .quick-foods .chip:nth-child(6) { animation-delay: 0.18s; }
  .quick-foods .chip:nth-child(7) { animation-delay: 0.21s; }
  .quick-foods .chip:nth-child(8) { animation-delay: 0.24s; }

  .deal { animation: card-reveal 180ms ease-out; }

  .soon-title {
    animation: fade-up 0.35s var(--ease-out) both;
  }

  .city-picker.is-open .city-list {
    animation: pop-in 0.22s var(--ease-out) both;
  }

  .sheet.is-open .sheet-grip {
    animation: grip-pulse 0.7s var(--ease-out) both;
  }

  .sheet.is-open .filter-section,
  .sheet.is-open .switch-row,
  .sheet.is-open .filter-sheet-foot {
    animation: rise-soft 0.4s var(--ease-out) both;
  }

  .sheet.is-open .filter-section:nth-child(1) { animation-delay: 0.05s; }
  .sheet.is-open .filter-section:nth-child(2) { animation-delay: 0.1s; }
  .sheet.is-open .filter-section:nth-child(3) { animation-delay: 0.15s; }
  .sheet.is-open .filter-section:nth-child(4) { animation-delay: 0.2s; }
  .sheet.is-open .switch-row { animation-delay: 0.22s; }
  .sheet.is-open .filter-sheet-foot { animation-delay: 0.26s; }

  .sheet.is-open .sheet-image {
    animation: sheet-image-in 0.5s var(--ease-out) both;
  }

  .sheet.is-open #sheet-title,
  .sheet.is-open #sheet-price,
  .sheet.is-open #sheet-meta,
  .sheet.is-open .sheet-actions {
    animation: fade-up 0.4s var(--ease-out) both;
  }

  .sheet.is-open #sheet-title { animation-delay: 0.08s; }
  .sheet.is-open #sheet-price { animation-delay: 0.12s; }
  .sheet.is-open #sheet-meta { animation-delay: 0.16s; }
  .sheet.is-open .sheet-actions { animation-delay: 0.2s; }

  .deal-photo .badge {
    animation: pop 0.42s var(--ease-spring) 0.2s both;
  }

  .status.is-swap,
  .loading-text.is-tick {
    animation: fade-up 0.34s var(--ease-out) both;
  }

  .loading-spinner {
    animation: spin 0.75s linear infinite;
  }

  .loading-text {
    animation: pulse-soft 1.6s ease-in-out infinite;
  }

  .loading-bar.is-indeterminate {
    animation: bar-slide 1.15s ease-in-out infinite;
  }

  .empty::before {
    animation: pulse-soft 1.6s ease-in-out infinite;
  }

  .icon-btn.is-busy svg {
    animation: geo-ping 1.15s ease-in-out infinite;
  }

  .btn-accent.is-busy {
    animation: pulse-soft 1.1s ease-in-out infinite;
  }

  .is-pop,
  .count-badge.is-pop {
    animation: pop 0.36s var(--ease-spring);
  }

  .fav-btn.is-pop {
    animation: heart-pop 0.48s var(--ease-spring);
  }

  .chip.is-pop,
  .sort-option.is-pop {
    animation: chip-select 0.4s var(--ease-spring);
  }

  .place.is-swap {
    animation: fade-up 0.32s var(--ease-out) both;
  }

  .skeleton-photo,
  .skeleton-line,
  .skeleton-chips span {
    animation: shine 1.45s ease-in-out infinite;
  }

  .skeleton-card:nth-child(2) .skeleton-photo,
  .skeleton-card:nth-child(2) .skeleton-line,
  .skeleton-card:nth-child(2) .skeleton-chips span {
    animation-delay: 0.12s;
  }

  .skeleton-card:nth-child(3) .skeleton-photo,
  .skeleton-card:nth-child(3) .skeleton-line,
  .skeleton-card:nth-child(3) .skeleton-chips span {
    animation-delay: 0.24s;
  }

  .skeleton-card:nth-child(4) .skeleton-photo,
  .skeleton-card:nth-child(4) .skeleton-line,
  .skeleton-card:nth-child(4) .skeleton-chips span {
    animation-delay: 0.36s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes card-reveal {
  from { opacity: 0; }
}

@keyframes rise-soft {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

@keyframes heart-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.28); }
  60% { transform: scale(0.94); }
  100% { transform: scale(1); }
}

@keyframes chip-select {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes fact-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes card-sheen {
  0% {
    transform: translateX(-130%);
    opacity: 0;
  }
  35% { opacity: 0.7; }
  100% {
    transform: translateX(130%);
    opacity: 0;
  }
}

@keyframes grip-pulse {
  0% {
    opacity: 0.35;
    transform: scaleX(0.7);
  }
  55% {
    opacity: 1;
    transform: scaleX(1.08);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes sheet-image-in {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: none;
  }
}


@keyframes blob-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: 62% 38% 48% 52%;
  }
  35% {
    transform: translate(-26px, 16px) scale(1.14) rotate(10deg);
    border-radius: 42% 58% 46% 54%;
  }
  65% {
    transform: translate(12px, -12px) scale(0.92) rotate(-6deg);
    border-radius: 54% 46% 58% 42%;
  }
}

@keyframes blob-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    border-radius: 48% 52% 42% 58%;
  }
  40% {
    transform: translate(22px, -18px) scale(1.18);
    border-radius: 58% 42% 54% 46%;
  }
  70% {
    transform: translate(-10px, 14px) scale(0.88);
    border-radius: 40% 60% 48% 52%;
  }
}

@keyframes blob-pulse {
  0%,
  100% { transform: translate(0, 0) scale(1); opacity: 0.26; }
  50% { transform: translate(-18px, -14px) scale(1.32); opacity: 0.48; }
}

@keyframes hero-aurora {
  0%,
  100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  40% { transform: translate(5%, -4%) scale(1.07) rotate(8deg); }
  72% { transform: translate(-4%, 5%) scale(0.96) rotate(-7deg); }
}

@keyframes hero-sheen {
  0% { transform: translateX(-42%) rotate(8deg); opacity: 0.12; }
  48% { transform: translateX(8%) rotate(8deg); opacity: 0.42; }
  100% { transform: translateX(46%) rotate(8deg); opacity: 0.1; }
}

@keyframes hero-sheen-once {
  0% { transform: translateX(-48%) rotate(8deg); opacity: 0.08; }
  45% { transform: translateX(6%) rotate(8deg); opacity: 0.55; }
  100% { transform: translateX(50%) rotate(8deg); opacity: 0.12; }
}

@keyframes bar-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

@keyframes geo-ping {
  0%,
  100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.7; }
}

@keyframes shine {
  to {
    background-position: -200% 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-soft {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.62;
  }
}

@media (min-width: 768px) {
  body {
    max-width: 760px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .deal {
    grid-template-columns: 120px minmax(0, 1fr);
    min-height: 120px;
  }

  .deal-photo {
    min-height: 120px;
  }
}

@media (min-width: 1024px) {
  body {
    max-width: 980px;
  }
}

body.tg-dark {
  --color-background: #1c1410;
  --color-foreground: #fff7ed;
  --color-card: #2a1f19;
  --color-card-foreground: #fff7ed;
  --color-muted: #241b16;
  --color-muted-foreground: #d6c4b8;
  --color-border: #3b2c24;
}

body.tg-dark .chip[aria-pressed="true"] {
  background: #fff7ed;
  border-color: #fff7ed;
  color: #1c1410;
}

body.tg-dark .chip.chip-platform-wolt {
  color: #7ad4f5;
}

body.tg-dark .chip.chip-platform-wolt[aria-pressed="true"] {
  background: #009de0;
  border-color: #009de0;
  color: #ffffff;
}

body.tg-dark .chip.chip-platform-yandex {
  color: #ffcc00;
}

body.tg-dark .chip.chip-platform-yandex[aria-pressed="true"] {
  background: #ffcc00;
  border-color: #e6b800;
  color: #1a1a1a;
}

body.tg-dark .chip.chip-platform-glovo {
  color: #ffc244;
}

body.tg-dark .chip.chip-platform-glovo[aria-pressed="true"] {
  background: #ffc244;
  border-color: #e0a800;
  color: #00591d;
}

body.tg-dark .chip.chip-platform-okadzaki {
  color: #ff8fa0;
}

body.tg-dark .chip.chip-platform-okadzaki[aria-pressed="true"] {
  background: #c8102e;
  border-color: #c8102e;
  color: #ffffff;
}

body.tg-dark .chip.chip-platform-farsh {
  color: #ffa26b;
}

body.tg-dark .chip.chip-platform-farsh[aria-pressed="true"] {
  background: #ec6722;
  border-color: #ec6722;
  color: #ffffff;
}

body.tg-dark .chip.chip-platform-dodo {
  color: #ff9a4d;
}

body.tg-dark .chip.chip-platform-dodo[aria-pressed="true"] {
  background: #ff6900;
  border-color: #ff6900;
  color: #ffffff;
}

body.tg-dark .pill.pill-platform-wolt {
  background: #009de0;
  color: #ffffff;
}

body.tg-dark .pill.pill-platform-yandex {
  background: #ffcc00;
  color: #1a1a1a;
}

body.tg-dark .pill.pill-platform-glovo {
  background: #ffc244;
  color: #00591d;
}

body.tg-dark .pill.pill-platform-okadzaki {
  background: #c8102e;
  color: #ffffff;
}

body.tg-dark .pill.pill-platform-farsh {
  background: #ec6722;
  color: #ffffff;
}

body.tg-dark .pill.pill-platform-dodo {
  background: #ff6900;
  color: #ffffff;
}

body.tg-dark .toolbar-btn[data-active="true"],
body.tg-dark .pill {
  background: #fff7ed;
  border-color: #fff7ed;
  color: #1c1410;
}

body.tg-dark .toolbar-btn[data-active="true"] .count-badge {
  background: var(--color-primary);
  color: #fff7ed;
}

body.tg-dark .toolbar-btn[data-active="true"] .toolbar-hint {
  color: #9a3412;
}

body.tg-dark .sort-option[aria-checked="true"] {
  background: #fff7ed;
  border-color: #fff7ed;
  color: #1c1410;
}

body.tg-dark .sort-option[aria-checked="true"] small {
  color: #9a3412;
}

body.tg-dark .deal-photo.is-logo,
body.tg-dark .sheet-image.is-logo {
  background: #241b16;
}

body.tg-dark .skeleton-photo,
body.tg-dark .skeleton-line,
body.tg-dark .skeleton-chips span {
  background: linear-gradient(90deg, #3b2c24 20%, #4a372c 50%, #3b2c24 80%);
  background-size: 200% 100%;
}

body.tg-dark .loading-spinner {
  border-color: #7c2d12;
  border-top-color: #fb923c;
}

body.tg-dark .city-trigger,
body.tg-dark .city-list,
body.tg-dark .search-field,
body.tg-dark .suggest-list {
  background: #fff7ed;
  color: #1c1410;
}

body.tg-dark .suggest-list {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(28, 25, 23, 0.08);
}

body.tg-dark .suggest-item:hover,
body.tg-dark .suggest-item.is-active {
  background: rgba(234, 88, 12, 0.12);
}

body.tg-dark .city-option:hover,
body.tg-dark .city-option.is-active {
  background: #fed7aa;
}

body.tg-dark .notice {
  background: #3b2c24;
  color: #fed7aa;
}

body.tg-dark .recent-chip {
  background: #fff7ed;
  color: #1c1410;
}

body.tg-dark .loading-track {
  background: #3b2c24;
}

body.tg-dark .fav-btn[aria-pressed="true"],
body.tg-dark .sheet-head #sheet-fav[aria-pressed="true"] {
  background: #fff1f2;
  color: #e11d48;
}
