:root {
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-booking: Georgia, "Times New Roman", serif;
  --font-delivery: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-appointment: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.18);
}

body[data-theme="dark"] {
  --bg: #09131d;
  --bg-soft: #101b28;
  --surface: rgba(14, 23, 35, 0.88);
  --surface-strong: rgba(10, 18, 29, 0.95);
  --surface-soft: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f4f7fb;
  --text-soft: #aab8c8;
  --brand: #7fd8ff;
  --brand-2: #8ef0c4;
}

body[data-theme="light"] {
  --bg: #eef3f7;
  --bg-soft: #f8fbfd;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --surface-soft: rgba(6, 26, 46, 0.04);
  --border: rgba(9, 31, 54, 0.11);
  --text: #16212d;
  --text-soft: #5c7287;
  --brand: #1576a9;
  --brand-2: #299b73;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--text);
  background:
    radial-gradient(circle at 0 0, rgba(126, 216, 255, 0.18), transparent 32%),
    radial-gradient(circle at 100% 10%, rgba(142, 240, 196, 0.16), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

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

button {
  border: 0;
  cursor: pointer;
}

.page-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.page-glow-a {
  width: 220px;
  height: 220px;
  top: -80px;
  left: -50px;
  background: rgba(127, 216, 255, 0.25);
}

.page-glow-b {
  width: 260px;
  height: 260px;
  right: -100px;
  bottom: 10%;
  background: rgba(142, 240, 196, 0.22);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 28px));
  margin: 0 auto;
  padding: 20px 0 36px;
}

.panel,
.list-card,
.product-card,
.empty-card,
.home-panel,
.sticky-panel,
.promo-card {
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.brand-button,
.primary-button,
.secondary-button,
.back-link,
.chip-button,
.slot-button,
.nav-item {
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.brand-button:hover,
.primary-button:hover,
.secondary-button:hover,
.back-link:hover,
.chip-button:hover,
.slot-button:hover,
.nav-item:hover {
  transform: translateY(-1px);
}

.secondary-button,
.chip-button,
.back-link {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--border);
}

.chip-button {
  background: transparent;
  color: var(--text-soft);
  border-color: transparent;
}

.primary-button {
  padding: 10px 16px;
  border-radius: 999px;
  color: #071017;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 800;
}

.wide-button {
  width: 100%;
}

.app-greeting {
  margin: 0 0 2px;
  padding: 0 4px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.35;
}

.app-greeting strong {
  color: var(--text);
  font-weight: 800;
}

.app-root {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-banner-shell {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  animation: offer-banner-reveal 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.offer-banner {
  position: relative;
  width: 100%;
  border-top: 1px solid rgba(141, 126, 255, 0.24);
  border-bottom: 1px solid rgba(141, 126, 255, 0.24);
  background:
    radial-gradient(circle at 100% 0, rgba(27, 191, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(90, 72, 228, 0.18), rgba(34, 186, 255, 0.18)),
    linear-gradient(135deg, rgba(15, 9, 33, 0.98), rgba(27, 16, 57, 0.98));
  box-shadow: 0 18px 44px rgba(23, 10, 47, 0.2);
  overflow: hidden;
}

.offer-banner-inner {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 28px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 22px;
  padding: 22px 42px 22px 0;
}

.offer-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 40%),
    radial-gradient(circle at 0 100%, rgba(123, 100, 255, 0.14), transparent 30%);
  pointer-events: none;
}

.offer-banner-inner,
.offer-banner-copy,
.offer-banner-actions,
.offer-banner-close {
  position: relative;
  z-index: 1;
}

.offer-banner-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.offer-banner-kicker,
.offer-banner-text,
.offer-banner-note {
  margin: 0;
}

.offer-banner-kicker {
  font-size: 1.18rem;
  line-height: 1.15;
  font-weight: 900;
  color: #f7f3ff;
}

.offer-banner-text {
  max-width: 620px;
  color: rgba(230, 221, 255, 0.86);
  line-height: 1.45;
}

.offer-banner-note {
  color: #ffffff;
  font-size: 0.92rem;
}

.offer-banner-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.offer-banner-button,
.offer-banner-link {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.offer-banner-button:hover,
.offer-banner-link:hover {
  transform: translateY(-1px);
}

.offer-banner-button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #8d7eff, #28b8ff);
  box-shadow: 0 12px 30px rgba(85, 118, 255, 0.32);
}

.offer-banner-link {
  color: rgba(245, 239, 255, 0.94);
  border: 1px solid rgba(141, 126, 255, 0.42);
  background: rgba(255, 255, 255, 0.04);
}

.offer-banner-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(141, 126, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(239, 232, 255, 0.9);
  font-size: 1.25rem;
  line-height: 1;
}

body[data-theme="light"] .offer-banner {
  border-top-color: rgba(126, 111, 245, 0.18);
  border-bottom-color: rgba(126, 111, 245, 0.18);
  background:
    radial-gradient(circle at 100% 0, rgba(65, 183, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(132, 109, 255, 0.16), rgba(39, 184, 255, 0.12)),
    linear-gradient(135deg, rgba(247, 243, 255, 0.98), rgba(239, 249, 255, 0.98));
  box-shadow: 0 16px 40px rgba(50, 74, 112, 0.12);
}

body[data-theme="light"] .offer-banner-kicker {
  color: #1e2442;
}

body[data-theme="light"] .offer-banner-text {
  color: #596783;
}

body[data-theme="light"] .offer-banner-note {
  color: #26314d;
}

body[data-theme="light"] .offer-banner-link {
  color: #3b3f73;
  border-color: rgba(126, 111, 245, 0.24);
  background: rgba(255, 255, 255, 0.58);
}

body[data-theme="light"] .offer-banner-close {
  border-color: rgba(126, 111, 245, 0.2);
  background: rgba(255, 255, 255, 0.62);
  color: #55627e;
}

@keyframes offer-banner-reveal {
  0% {
    max-height: 0;
    opacity: 0;
    transform: translateY(-14px);
  }

  100% {
    max-height: 340px;
    opacity: 1;
    transform: translateY(0);
  }
}

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

.home-panel {
  width: min(720px, 100%);
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  isolation: isolate;
}

.home-head {
  display: grid;
  gap: 10px;
  align-content: start;
}

.home-caption {
  margin: 0;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
}

.home-title {
  margin: 0;
  font-size: clamp(1.8rem, 6.4vw, 3rem);
  line-height: 0.96;
  white-space: nowrap;
}

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

.home-tile {
  appearance: none;
  -webkit-appearance: none;
  min-height: 136px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: #ffffff;
  text-align: left;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background: transparent;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  isolation: isolate;
}

.home-tile-media {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.01);
}

.home-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(7, 15, 22, 0.08), rgba(7, 15, 22, 0.74));
  pointer-events: none;
}

.home-tile-title {
  position: relative;
  z-index: 2;
  font-size: 1.05rem;
  font-weight: 800;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

body[data-theme="light"][data-demo="home"] .page-glow {
  display: none;
}

body[data-theme="light"][data-demo="home"] .home-panel {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: none;
}

body[data-theme="light"][data-demo="home"] .home-tile {
  border: 0;
  box-shadow: 0 14px 28px rgba(15, 34, 54, 0.12);
}

body[data-theme="dark"] .home-tile {
  border: 0;
  box-shadow: none;
  backface-visibility: hidden;
  transform: translateZ(0);
}

body[data-theme="dark"] .home-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(7, 15, 22, 0.45);
  pointer-events: none;
}

.app-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 88px;
}

.booking-style {
  --brand: #f3c77b;
  --brand-2: #f7dcc1;
}

.delivery-style {
  --brand: #ff8c4f;
  --brand-2: #ffd166;
}

.appointment-style {
  --brand: #54d0cb;
  --brand-2: #87b7ff;
}

.app-hero,
.detail-cover,
.media-block,
.product-media,
.gallery-tile {
  background-color: var(--surface-soft);
  background-size: cover;
  background-position: center;
}

.app-hero {
  min-height: 170px;
  padding: 18px;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.4)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.booking-hero {
  background-image:
    linear-gradient(180deg, rgba(49, 30, 12, 0.18), rgba(25, 17, 11, 0.72)),
    url("assets/booking/booking-hero.jpg");
}

.delivery-hero {
  background-image:
    linear-gradient(180deg, rgba(67, 24, 12, 0.12), rgba(28, 18, 14, 0.8)),
    url("assets/delivery/delivery-hero.jpg");
}

.appointment-hero {
  background-image:
    linear-gradient(180deg, rgba(8, 46, 62, 0.12), rgba(7, 23, 39, 0.8)),
    url("assets/appointment/appointment-hero.jpg");
}

.compact-hero {
  min-height: 120px;
  align-items: center;
}

.compact-hero > div {
  width: 100%;
}

.app-userline {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
}

.app-title,
.detail-title {
  margin: 0;
  line-height: 0.96;
}

.booking-style .app-title,
.booking-style .detail-title {
  font-family: var(--font-booking);
}

.delivery-style .app-title,
.delivery-style .detail-title {
  font-family: var(--font-delivery);
}

.appointment-style .app-title,
.appointment-style .detail-title {
  font-family: var(--font-appointment);
}

.app-title {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
}

.detail-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.06;
  margin-bottom: 6px;
}

.app-subtitle,
.detail-text,
.card-text,
.empty-card p {
  color: var(--text-soft);
  line-height: 1.5;
  font-size: 0.95rem;
}

.app-hero .app-title,
.app-hero .app-subtitle {
  color: #ffffff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.app-hero .app-subtitle {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.9);
}

.panel,
.empty-card,
.product-card,
.list-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.panel,
.empty-card {
  padding: 16px;
}

.filters-panel {
  overflow: hidden;
}

.filters-grid,
.field-grid,
.detail-layout,
.card-grid,
.catalog-grid,
.gallery-grid {
  display: grid;
  gap: 12px;
}

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

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

.field,
.textarea-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field span {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  outline: none;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field-note {
  padding: 12px 14px;
  min-height: 46px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 700;
}

.chips-row,
.meta-row,
.action-row,
.slots-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chips-row {
  overflow-x: auto;
  padding-bottom: 4px;
  flex-wrap: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chips-row::-webkit-scrollbar {
  display: none;
}

.chip-button.active,
.slot-button.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-strip {
  gap: 4px;
  padding-bottom: 0;
  scroll-padding-inline: 16px;
}

.filter-strip .chip-button {
  flex: 0 0 auto;
  padding: 9px 14px;
  color: var(--text-soft);
}

.filter-strip .chip-button.active {
  background: var(--surface-soft);
  color: var(--text);
  border-color: rgba(255, 197, 92, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 197, 92, 0.55);
}

.filter-strip .chip-button:not(.active) {
  border-color: transparent;
  background: transparent;
}

.chip,
.soft-chip,
.promo-code,
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.chip,
.soft-chip {
  padding: 6px 10px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
}

.chip {
  background: rgba(255, 255, 255, 0.05);
}

.soft-chip {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
}

.list-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-card,
.product-card {
  overflow: hidden;
}

.hotel-card,
.booking-row {
  display: grid;
  gap: 0;
}

.hotel-card {
  grid-template-columns: 220px minmax(0, 1fr);
}

.hotel-card-compact {
  display: flex;
  flex-direction: column;
}

.hotel-cover-button,
.hotel-title-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-align: left;
}

.hotel-cover-button {
  display: block;
}

.hotel-card-media {
  min-height: 172px;
  border-bottom: 1px solid var(--border);
}

.hotel-card-main {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px 13px 13px;
  min-width: 0;
}

.hotel-card-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.16;
}

.hotel-title-button {
  display: block;
  width: 100%;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.hotel-title-button:hover {
  color: var(--brand);
}

.hotel-location-line {
  font-size: 0.86rem;
  line-height: 1.3;
}

.hotel-card-main > .meta-row:first-child {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
}

.hotel-rating-line {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.hotel-rating-line strong {
  font-size: 1.15rem;
  line-height: 1;
  color: var(--text);
}

.hotel-summary-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.hotel-tags-row {
  gap: 6px;
  padding-top: 2px;
}

.hotel-tags-row .soft-chip {
  padding: 5px 9px;
  font-size: 0.76rem;
}

.hotel-bottom-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
}

.hotel-price-block {
  min-width: 0;
}

.hotel-price-note {
  font-size: 0.82rem;
}

.hotel-actions-row {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.hotel-actions-row .secondary-button,
.hotel-actions-row .primary-button {
  padding: 9px 12px;
  font-size: 0.84rem;
}

.media-block,
.product-media,
.detail-cover {
  min-height: 160px;
}

.card-main,
.product-body {
  padding: 14px;
}

.card-head,
.card-foot,
.review-head,
.summary-line,
.detail-headline,
.detail-header,
.booking-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.detail-header {
  align-items: center;
  flex-wrap: nowrap;
}

.detail-header .back-link,
.detail-header .secondary-button {
  white-space: nowrap;
}

.card-title {
  margin: 6px 0;
  font-size: 1.08rem;
}

.card-subtitle {
  margin: 0;
  color: var(--text-soft);
}

.rating-box {
  min-width: 68px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.rating-box strong {
  display: block;
  font-size: 1.05rem;
}

.price-main,
.price-row strong {
  font-size: 1.05rem;
}

.price-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.old-price {
  color: var(--text-soft);
  text-decoration: line-through;
}

.detail-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.detail-copy-chips,
.detail-amenities-row,
.detail-badges-row {
  gap: 8px;
}

.detail-copy-subtitle {
  line-height: 1.35;
}

.detail-rating-line {
  margin-top: 2px;
}

.detail-panel-dish {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-dish-title {
  margin: 0;
}

.detail-dish-text {
  margin: 0;
}

.detail-dish-meta {
  margin-top: -2px;
}

.detail-dish-tags {
  padding-top: 2px;
}

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

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

.product-card {
  display: flex;
  flex-direction: column;
}

.delivery-grid {
  align-items: start;
}

.delivery-card {
  min-height: 100%;
}

.delivery-cover-button,
.delivery-title-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-align: left;
}

.delivery-cover-button {
  display: block;
}

.delivery-card-media {
  min-height: 136px;
  border-bottom: 1px solid var(--border);
}

.delivery-card-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 11px 11px 12px;
  min-width: 0;
}

.delivery-card-tags {
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
}

.delivery-card-tags .chip {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 5px 9px;
  font-size: 0.74rem;
}

.delivery-card-title {
  margin: 0;
  min-height: 2.45em;
}

.delivery-title-button {
  display: block;
  width: 100%;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.delivery-title-button:hover {
  color: var(--brand);
}

.delivery-card-text {
  margin: 0;
  min-height: 2.5em;
  line-height: 1.34;
}

.delivery-card-meta {
  font-size: 0.8rem;
}

.delivery-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 1px;
}

.delivery-card-actions {
  width: 100%;
  margin-top: auto;
  flex-wrap: nowrap;
}

.delivery-card-actions .secondary-button,
.delivery-card-actions .primary-button {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 10px;
  font-size: 0.8rem;
}

.product-media {
  min-height: 132px;
}

.product-card .card-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .card-subtitle {
  font-size: 0.82rem;
}

.product-card .action-row {
  width: 100%;
}

.product-card .action-row .secondary-button,
.product-card .action-row .primary-button {
  flex: 1 1 0;
  min-width: 0;
  padding: 9px 10px;
  font-size: 0.82rem;
}

.detail-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: start;
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.detail-main > .panel {
  overflow: hidden;
}

.media-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.media-slider::-webkit-scrollbar {
  height: 6px;
}

.media-slider::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.media-slide {
  flex: 0 0 min(100%, 620px);
  min-height: 310px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--surface-soft);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.detail-cover {
  min-height: 280px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

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

.gallery-tile {
  min-height: 140px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.detail-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sticky-panel {
  position: sticky;
  top: 14px;
}

.review-card {
  padding: 12px 0;
}

.review-card:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.review-card p {
  margin: 10px 0 0;
  color: var(--text-soft);
}

.section-head h2,
.empty-card h2,
.sticky-panel h2 {
  margin: 0 0 12px;
}

.summary-line {
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.summary-line:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.summary-total {
  font-size: 1.08rem;
}

.specialist-list {
  gap: 10px;
}

.specialist-card-compact {
  display: flex;
  flex-direction: column;
}

.specialist-card-tags-row {
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 12px 12px 0;
  min-width: 0;
}

.specialist-card-top {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 12px 0;
}

.specialist-cover-button,
.specialist-title-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-align: left;
}

.specialist-cover-button {
  display: block;
  align-self: start;
}

.specialist-card-media {
  min-height: 104px;
  border-radius: 18px;
}

.specialist-card-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.specialist-card-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px 0;
}

.specialist-card-title {
  margin: 0;
  font-size: 1rem;
}

.specialist-title-button {
  display: block;
  width: 100%;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.specialist-title-button:hover {
  color: var(--brand);
}

.specialist-card-role {
  font-size: 0.84rem;
  line-height: 1.3;
}

.specialist-rating-line {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-soft);
}

.specialist-rating-line strong {
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text);
}

.specialist-card-about {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.specialist-badges-row {
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 2px 0;
}

.specialist-badges-row .soft-chip {
  padding: 5px 9px;
  font-size: 0.74rem;
}

.specialist-service-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 12px;
}

.specialist-service-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.specialist-service-info strong,
.specialist-service-info span {
  display: block;
}

.specialist-service-info strong {
  font-size: 0.92rem;
}

.specialist-service-info span {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.specialist-service-more {
  color: var(--brand);
}

.specialist-card-action {
  flex: 0 0 auto;
  min-width: 112px;
  padding: 9px 14px;
}

.promo-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.promo-card .card-head {
  align-items: flex-start;
}

.promo-card .card-head > div {
  min-width: 0;
}

.promo-card .card-title {
  margin-top: 0;
}

.promo-code {
  white-space: nowrap;
}

.promo-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
}

.promo-apply-button {
  min-width: 0;
  width: 100%;
}

.promo-code-soft {
  min-width: 0;
  width: 100%;
  padding: 11px 14px;
  background: rgba(128, 149, 179, 0.12);
  color: var(--text);
  border: 1px dashed rgba(149, 170, 201, 0.45);
  box-shadow: none;
}

body[data-theme="light"] .promo-code-soft {
  background: rgba(46, 91, 139, 0.08);
  border-color: rgba(46, 91, 139, 0.28);
}

.promo-actions > * {
  min-height: 46px;
  justify-content: center;
}

.specialist-card-tags-row .chip {
  padding: 5px 9px;
  font-size: 0.74rem;
}

.detail-badges-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.detail-badges-row::-webkit-scrollbar {
  display: none;
}

.detail-badges-row .soft-chip {
  flex: 0 0 auto;
  white-space: nowrap;
}

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

.slot-button {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
}

.slot-button.active {
  background: rgba(255, 197, 92, 0.14);
  color: var(--text);
  border-color: rgba(255, 197, 92, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 197, 92, 0.55);
}

.promo-code {
  min-width: 92px;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #091017;
  font-weight: 800;
}

.booking-row {
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.booking-row-main {
  min-width: 0;
  flex: 1 1 auto;
}

.booking-row-main .card-title {
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.booking-row-main .card-subtitle {
  line-height: 1.32;
}

.toolbar-panel {
  padding: 12px 14px;
}

.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.toolbar-button {
  padding: 10px 14px;
}

.toolbar-summary {
  color: var(--text-soft);
  font-size: 0.9rem;
  white-space: nowrap;
}

.booking-row-side {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.booking-row-price {
  white-space: nowrap;
}

.booking-row-side .secondary-button,
.booking-row-side .soft-chip {
  white-space: nowrap;
}

.sticky-panel > * + * {
  margin-top: 12px;
}

.panel > .field-grid + .textarea-field,
.panel > .textarea-field + .form-actions {
  margin-top: 12px;
}

.form-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.form-actions .secondary-button,
.form-actions .primary-button {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  font-size: 0.84rem;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(var(--nav-count, 4), minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  z-index: 9;
}

.nav-item {
  min-height: 62px;
  border-radius: 18px;
  background: transparent;
  color: var(--text-soft);
  border: 1px solid transparent;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 4px;
  text-align: center;
}

.nav-item.active {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--border);
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: block;
  line-height: 0;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
}

.nav-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
  font-size: 0.76rem;
  line-height: 1;
}

.nav-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #091017;
  font-size: 0.68rem;
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%) translateY(16px);
  padding: 12px 18px;
  width: max-content;
  max-width: calc(100vw - 24px);
  border-radius: 999px;
  background: rgba(8, 14, 22, 0.94);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 20;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body[data-theme="light"] .app-userline {
  color: rgba(255, 255, 255, 0.95);
}

body[data-theme="light"] .toast {
  background: rgba(22, 33, 45, 0.95);
}

@media (max-width: 1080px) {
  .card-grid,
  .filters-grid-booking,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hotel-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 16px, 100%);
    padding-top: 16px;
  }

  .offer-banner-inner {
    width: min(100%, calc(100% - 16px));
    grid-template-columns: 1fr;
    align-items: start;
    padding: 18px 42px 18px 0;
  }

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

  .home-panel,
  .panel,
  .empty-card,
  .card-main,
  .product-body {
    padding: 14px;
  }

  .home-panel {
    gap: 14px;
  }

  .home-head {
    gap: 8px;
  }

  .home-title {
    font-size: clamp(1.9rem, 7vw, 2.35rem);
  }

  .home-grid,
  .field-grid,
  .gallery-grid,
  .slots-grid {
    grid-template-columns: 1fr;
  }

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

  .product-body {
    padding: 12px;
  }

  .product-media {
    min-height: 108px;
  }

  .specialist-card-top {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 10px 0;
  }

  .specialist-card-media {
    min-height: 92px;
  }

  .specialist-service-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px;
  }

  .specialist-card-action {
    width: 100%;
    min-width: 0;
  }

  .card-title {
    font-size: 0.98rem;
  }

  .card-text {
    font-size: 0.85rem;
    line-height: 1.38;
  }

  .app-hero {
    min-height: 134px;
    padding: 14px;
  }

  .app-title {
    font-size: 1.7rem;
  }

  .app-userline,
  .app-subtitle {
    font-size: 0.86rem;
  }

  .detail-cover,
  .gallery-tile {
    min-height: 180px;
  }

  .media-slider {
    gap: 10px;
  }

  .media-slide {
    flex-basis: calc(100% - 28px);
    min-height: 220px;
  }

  .bottom-nav {
    width: min(760px, calc(100% - 12px));
    gap: 6px;
    padding: 6px;
  }

  .nav-item {
    min-height: 58px;
    border-radius: 16px;
    gap: 4px;
    padding: 8px 2px;
  }

  .nav-label {
    font-size: 0.7rem;
  }

  .booking-row,
  .card-head,
  .card-foot,
  .detail-headline {
    flex-direction: column;
  }

  .detail-header {
    flex-direction: row;
    align-items: center;
  }

  .hotel-card-title,
  .specialist-card-title {
    font-size: 0.96rem;
  }

  .delivery-card-title {
    min-height: 2.34em;
  }

  .booking-row {
    align-items: stretch;
    gap: 10px;
  }

  .booking-row-side {
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .booking-row-side > * {
    flex: 0 0 auto;
  }

  .promo-actions {
    width: 100%;
  }

  .promo-apply-button,
  .promo-code-soft {
    min-width: 0;
    flex: 1 1 0;
    justify-content: center;
  }

  .specialist-card-tags-row {
    padding: 10px 10px 0;
  }

  .specialist-card-main {
    padding: 10px 10px 0;
  }

  .toolbar-row {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-summary {
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .form-actions {
    grid-template-columns: 1fr;
  }
}
