/* Оболочка: меню, футер, куки, наверх, мобильные FAB */

.header-split .header-shell {
  margin-left: auto;
  margin-right: auto;
  max-width: 72rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .header-split .header-shell {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.25rem;
  padding: 0.7rem 0;
}

.header-top .brand {
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.header-top-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.header-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.header-socials {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .header-socials {
    display: flex;
  }
}

.header-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.header-social-link:hover {
  color: var(--foreground);
  background: var(--muted);
}

.header-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--background);
  color: var(--foreground);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.header-icon-btn:hover {
  background: var(--muted);
}

.header-user-toggle {
  max-width: 11rem;
}

.header-user-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 500;
}

.header-user-menu {
  position: relative;
}

.header-user-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 50;
  min-width: 11rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.12);
}

.header-user-dropdown[hidden] {
  display: none !important;
}

.header-user-dropdown a,
.header-user-dropdown button {
  display: block;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--foreground);
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.header-user-dropdown a:hover,
.header-user-dropdown button:hover {
  background: var(--muted);
}

.header-user-dropdown a.is-destructive,
.header-user-dropdown button.is-destructive {
  color: color-mix(in oklch, var(--destructive, #c0392b) 85%, var(--foreground));
}

.header-nav-row {
  display: none;
  border-top: 1px solid var(--border);
}

@media (min-width: 900px) {
  .header-nav-row {
    display: block;
  }
}

.tabler-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabler-nav::-webkit-scrollbar {
  display: none;
}

.tabler-nav .top-nav-link {
  border-radius: 0;
  padding: 0.8rem 0.95rem;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  background: transparent;
  white-space: nowrap;
}

.tabler-nav .top-nav-link:hover {
  background: transparent;
  color: var(--foreground);
}

.tabler-nav .top-nav-link[aria-current='page'] {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: transparent;
  font-weight: 600;
}

.header-inner {
  gap: 1rem;
}

.top-nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  justify-content: center;
}

.top-nav-link {
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.top-nav-link:hover {
  color: var(--foreground);
  background: var(--muted);
}

.top-nav-link[aria-current="page"] {
  color: var(--foreground);
  background: color-mix(in oklch, var(--primary) 10%, transparent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.top-nav-toggle {
  display: inline-flex;
}

@media (min-width: 900px) {
  .top-nav {
    display: flex;
  }
  .top-nav-toggle {
    display: none !important;
  }
}

@media (max-width: 899px) {
  .header-user-label {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .hide-sm {
    display: none !important;
  }
  .brand-sub {
    display: none !important;
  }

  .header-inner {
    gap: 0.5rem;
  }

  .header-right {
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .header-right .btn-label {
    display: none !important;
  }

  .header-right .header-icon-btn {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
  }
}

/* Mobile drawer — выше tabbar (z-index 85) */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
}

.mobile-nav-drawer:not([hidden]) {
  pointer-events: auto;
}

.mobile-nav-drawer[hidden] {
  display: none !important;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: color-mix(in oklch, var(--foreground) 45%, transparent);
  backdrop-filter: blur(2px);
  animation: fade-in 0.2s ease-out;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 96;
  display: flex;
  flex-direction: column;
  width: min(20rem, 92vw);
  height: 100%;
  max-height: 100dvh;
  box-sizing: border-box;
  background: var(--background);
  color: var(--foreground);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px color-mix(in oklch, var(--foreground) 12%, transparent);
  padding: 0;
  overflow: hidden;
  animation: mobile-nav-slide 0.28s ease-out;
}

@keyframes mobile-nav-slide {
  from {
    transform: translateX(100%);
    opacity: 0.6;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.95rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--primary) 8%, var(--background));
}

.mobile-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.mobile-nav-brand .brand-mark {
  flex-shrink: 0;
}

.mobile-nav-brand-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.mobile-nav-brand-sub {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.7rem;
  color: var(--muted-foreground);
}

.mobile-nav-close {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border-radius: var(--radius-md);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 0.85rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.mobile-nav-link {
  display: block;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}

.mobile-nav-link:hover {
  background: var(--muted);
}

.mobile-nav-link[aria-current="page"] {
  background: color-mix(in oklch, var(--primary) 14%, transparent);
  color: var(--primary);
  font-weight: 600;
}

.mobile-nav-actions {
  margin-top: auto;
  padding: 1rem 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: color-mix(in oklch, var(--muted) 55%, var(--background));
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mobile-nav-actions-label {
  margin: 0 0 0.15rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.mobile-nav-cta {
  width: 100%;
  justify-content: center;
  gap: 0.45rem;
}

.mobile-nav-auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.mobile-nav-auth-row .btn,
.mobile-nav-actions .btn-ghost {
  width: 100%;
  justify-content: center;
}

.mobile-nav-cabinet {
  margin-top: 0.15rem;
}

body.nav-open {
  overflow: hidden;
}

/* Footer rich */
.footer-rich {
  margin: 0 auto;
  max-width: 72rem;
  padding: 2rem 1rem 1.25rem;
}

@media (min-width: 640px) {
  .footer-rich {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2rem;
  }
}

.footer-col-links + .footer-col-links {
  border-top: 1px solid var(--footer-border, var(--border));
}

@media (min-width: 768px) {
  .footer-col-links + .footer-col-links {
    border-top: none;
  }
}

.footer-accordion {
  margin: 0;
}

.footer-accordion summary.footer-heading {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.footer-accordion summary.footer-heading::-webkit-details-marker {
  display: none;
}

.footer-accordion summary.footer-heading::after {
  content: '';
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-accordion[open] summary.footer-heading::after {
  transform: rotate(-135deg);
  opacity: 0.85;
}

.footer-accordion .footer-menu {
  padding-bottom: 0.85rem;
}

@media (min-width: 768px) {
  .footer-accordion summary.footer-heading {
    pointer-events: none;
    cursor: default;
    padding: 0;
    margin-bottom: 0.65rem;
  }

  .footer-accordion summary.footer-heading::after {
    display: none;
  }

  .footer-accordion .footer-menu {
    padding-bottom: 0;
  }
}

@media (max-width: 767px) {
  .footer-rich {
    padding-top: 1.35rem;
    padding-bottom: 1rem;
  }

  .footer-col:first-child {
    margin-bottom: 0.35rem;
  }

  .footer-copy {
    margin-top: 0.65rem;
  }

  .footer-bottom {
    margin-top: 1rem;
    padding-top: 0.85rem;
  }
}

.footer-brand-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.footer-brand-row strong {
  display: block;
  font-size: 0.95rem;
  color: var(--footer-heading, var(--foreground));
}

.footer-brand-row p,
.footer-copy {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--footer-muted, var(--muted-foreground));
}

.footer-copy {
  margin-top: 0.85rem;
}

.footer-heading {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--footer-heading, var(--foreground));
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-menu a,
.footer-menu button,
.footer-bottom-links a {
  font-size: 0.8125rem;
  color: var(--footer-link, var(--muted-foreground));
  text-decoration: none;
}

.footer-menu button {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.footer-menu a:hover,
.footer-menu button:hover,
.footer-bottom-links a:hover {
  color: var(--footer-link-hover, var(--foreground));
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--footer-border, var(--border));
  font-size: 0.8125rem;
  color: var(--footer-muted, var(--muted-foreground));
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 75;
  max-width: 36rem;
  margin: 0 auto;
  box-sizing: border-box;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--background);
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.14);
  padding: 1rem 1.1rem;
  animation: fade-in-up 0.3s ease-out;
}

@media (min-width: 640px) {
  .cookie-banner {
    left: 1.5rem;
    right: auto;
    bottom: 1.5rem;
  }
}

.cookie-inner p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.cookie-inner a {
  color: var(--foreground);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
  justify-content: flex-end;
}

/* Back to top + contact FAB — одна колонка, без наложений */
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 66;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--background) 92%, transparent);
  backdrop-filter: blur(8px);
  color: var(--foreground);
  cursor: pointer;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.1);
}

.back-to-top[hidden] {
  display: none !important;
}

.back-to-top:hover {
  border-color: color-mix(in oklch, var(--primary) 40%, transparent);
  color: var(--primary);
}

@media (min-width: 640px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

/* Mobile contact FAB */
.contact-fab {
  --fab-size: 2.75rem;
  --fab-gap: 0.5rem;
  position: fixed;
  right: 1rem;
  /* над кнопкой «наверх»: отступ + размер кнопки + зазор */
  bottom: calc(1rem + var(--fab-size) + var(--fab-gap));
  z-index: 65;
  display: none;
  flex-direction: column-reverse;
  gap: var(--fab-gap);
}

.contact-fab a {
  width: var(--fab-size);
  height: var(--fab-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 8px 20px color-mix(in oklch, var(--primary) 35%, transparent);
  text-decoration: none;
  flex-shrink: 0;
}

.contact-fab a.secondary {
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.1);
}

@media (max-width: 900px) {
  body[data-screen^="business"] .contact-fab {
    display: flex;
  }
}

/* если «наверх» скрыта — контактные кнопки опускаем ниже */
body:has(.back-to-top[hidden]) .contact-fab {
  bottom: 1rem;
}

@media (min-width: 640px) {
  body:has(.back-to-top[hidden]) .contact-fab {
    bottom: 1.5rem;
  }
}

@media (min-width: 640px) {
  .contact-fab {
    right: 1.5rem;
    bottom: calc(1.5rem + var(--fab-size) + var(--fab-gap));
  }
}

/* Consent checkbox */
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  text-align: left;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted-foreground);
  cursor: pointer;
  user-select: none;
}

.consent-check input {
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--primary);
  width: 1rem;
  height: 1rem;
}

.consent-check a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-check a:hover {
  color: var(--primary);
}

.lead-spoiler-body .consent-check {
  margin: 0.25rem 0 0.5rem;
}

/* Clickable titles */
a.card-title-link {
  color: inherit;
  text-decoration: none;
}

a.card-title-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Business extras */
.section-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-card {
  display: block;
  border: 1px solid color-mix(in oklch, var(--border) 70%, transparent);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--card);
  color: var(--card-foreground, var(--foreground));
  font: inherit;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  animation: fade-in-up 0.4s ease-out both;
}

.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  border-color: color-mix(in oklch, var(--primary) 40%, transparent);
}

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.gallery-card-meta {
  padding: 0.85rem 1rem;
  color: var(--card-foreground, var(--foreground));
  background: color-mix(in oklch, var(--card) 88%, var(--background));
}

.gallery-card-meta strong {
  display: block;
  font-size: 0.875rem;
  color: var(--foreground);
}

.gallery-card-meta span {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.amenity-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--secondary);
  font-size: 0.8125rem;
  font-weight: 500;
}

.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.catalog-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in oklch, var(--border) 70%, transparent);
  background: var(--card);
  color: var(--card-foreground, var(--foreground));
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.catalog-item:hover {
  border-color: color-mix(in oklch, var(--primary) 40%, transparent);
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.06);
}

.catalog-item img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.catalog-item-body {
  flex: 1;
  min-width: 0;
  color: var(--card-foreground, var(--foreground));
}

.catalog-item-body strong {
  display: block;
  font-size: 0.9rem;
  color: var(--foreground);
}

.catalog-item-body span {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.catalog-price {
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  color: var(--foreground);
}

.tree-path {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  margin-bottom: 0.15rem;
}

.spoiler {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.spoiler-summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-weight: 500;
  font-size: 0.875rem;
  background: color-mix(in oklch, var(--muted) 40%, transparent);
}

.spoiler-summary::-webkit-details-marker {
  display: none;
}

.spoiler-body {
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.review-reply {
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  background: color-mix(in oklch, var(--primary) 6%, transparent);
  border: 1px solid color-mix(in oklch, var(--primary) 15%, transparent);
  font-size: 0.8125rem;
}

.review-reply strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: rgb(0 0 0 / 0.88);
  color: #fff;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
}

.lightbox-toolbar span {
  font-size: 0.875rem;
  opacity: 0.85;
}

.lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 0;
  padding: 0 3.5rem;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  object-fit: contain;
  border-radius: var(--radius-md);
  user-select: none;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgb(255 255 255 / 0.25);
  background: rgb(0 0 0 / 0.35);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav.prev {
  left: 0.75rem;
}
.lightbox-nav.next {
  right: 0.75rem;
}

.lightbox-close {
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  opacity: 0.8;
  padding: 0.35rem;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  opacity: 1;
}

.lightbox-thumbs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.75rem 1rem 1rem;
  justify-content: center;
}

.lightbox-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  opacity: 0.55;
}

.lightbox-thumbs button[aria-current="true"] {
  border-color: #fff;
  opacity: 1;
}

.lightbox-thumbs img {
  display: block;
  width: 3.25rem;
  height: 2.25rem;
  object-fit: cover;
}

/* Detail modal for service/product */
.detail-modal-media {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 0.5rem;
}

/* Mobile contact FAB — см. блок Back to top выше (единая колонка) */

/* Product category groups */
.product-groups {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-group-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0.35rem 0 1rem;
  text-align: center;
}

.product-group-head::before,
.product-group-head::after {
  content: '';
  flex: 1;
  height: 1px;
  max-width: 7rem;
  background: color-mix(in oklch, var(--border) 85%, var(--primary) 15%);
}

.product-group-head h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--foreground);
}

.product-cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.product-cat-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  scroll-margin-top: 5rem;
}

.product-cat-chip:hover {
  border-color: color-mix(in oklch, var(--primary) 40%, transparent);
  color: var(--primary);
}

.product-group {
  scroll-margin-top: 5.5rem;
}

.owner-prod-cat-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 70%, transparent);
}

.owner-prod-cat-row:last-child {
  border-bottom: none;
}

.owner-prod-cat-row strong {
  flex: 1;
  font-size: 0.9rem;
}

.owner-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.owner-inline-form .input {
  flex: 1;
  min-width: 10rem;
}

.owner-check {
  cursor: pointer;
  user-select: none;
}

.owner-check input {
  accent-color: var(--primary);
}

.owner-sub-tree {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.owner-sub-cat strong {
  font-size: 0.875rem;
}

/* Auth / cabinet layouts */
.auth-card {
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.5rem;
}

.auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.auth-card .lead {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.auth-switch {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.auth-switch a {
  color: var(--foreground);
  font-weight: 500;
}

.hub-main {
  min-width: 0;
}

.cabinet-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .cabinet-layout {
    grid-template-columns: 14rem minmax(0, 1fr);
    align-items: start;
  }
}

.cabinet-nav {
  display: flex;
  flex-direction: row;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

@media (min-width: 900px) {
  .cabinet-nav {
    flex-direction: column;
    overflow: visible;
    position: sticky;
    top: 5rem;
  }
}

.cabinet-nav button,
.cabinet-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  text-align: left;
}

.cabinet-nav button[aria-current="true"],
.cabinet-nav a[aria-current="page"],
.cabinet-nav button:hover,
.cabinet-nav a:hover {
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  color: var(--foreground);
}

.sparkline {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  height: 3rem;
  margin-top: 0.75rem;
}

.sparkline span {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: color-mix(in oklch, var(--primary) 70%, transparent);
  min-width: 0;
}

.policy-prose {
  max-width: 48rem;
  margin: 0 auto;
}

.policy-prose h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

.policy-prose h2 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.1rem;
}

.policy-prose p,
.policy-prose li {
  font-size: 0.925rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.policy-prose ul {
  padding-left: 1.2rem;
}

body.has-screens-nav,
body.has-debug-tools {
  padding-bottom: 0;
}

/* Mobile app tab bar */
.mobile-tabbar {
  display: none;
}

@media (max-width: 899px) {
  body.has-mobile-tabbar {
    padding-bottom: calc(4.35rem + env(safe-area-inset-bottom, 0px));
  }

  body.has-mobile-tabbar .mobile-tabbar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 85;
    padding: 0.4rem 0.65rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
    background: color-mix(in oklch, var(--background) 86%, transparent);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border-top: 1px solid color-mix(in oklch, var(--border) 75%, transparent);
    box-shadow: 0 -10px 40px rgb(0 0 0 / 0.08);
  }

  body.has-mobile-tabbar .header-cart-btn,
  body.has-mobile-tabbar .header-user-menu {
    display: none !important;
  }

  body.has-mobile-tabbar .footer {
    margin-bottom: 0.25rem;
  }

  body.has-mobile-tabbar .cookie-banner {
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }

  body.has-mobile-tabbar .cart-fab,
  body.has-mobile-tabbar .back-to-top {
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }

  body.has-mobile-tabbar #dish-modal-root:not([hidden]) .dialog.dialog-dish {
    bottom: calc(4.35rem + env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 5rem - env(safe-area-inset-bottom, 0px));
  }
}

.mobile-tabbar-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.2rem;
  max-width: 28rem;
  margin: 0 auto;
}

.mobile-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 3.15rem;
  padding: 0.25rem 0.15rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--muted-foreground);
  transition: color 0.15s, background 0.15s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.mobile-tab:active {
  transform: scale(0.96);
}

.mobile-tab-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-tab-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.mobile-tab-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-align: center;
}

.mobile-tab[aria-current="page"] {
  color: var(--primary);
  background: color-mix(in oklch, var(--primary) 10%, transparent);
}

.mobile-tab-cart[aria-current="page"] {
  color: var(--primary-foreground);
  background: var(--primary);
  box-shadow: 0 6px 18px color-mix(in oklch, var(--primary) 35%, transparent);
}

.mobile-tab-cart[aria-current="page"] .mobile-tab-badge {
  background: var(--background);
  color: var(--foreground);
  border-color: color-mix(in oklch, var(--primary) 25%, var(--border));
}

.mobile-tab-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.55rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  border: 1.5px solid var(--background);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-tab-badge[hidden] {
  display: none !important;
}

/* Featured tariffs */
.card-featured {
  border-width: 2px;
  border-color: color-mix(in oklch, var(--primary) 55%, transparent);
  box-shadow: 0 8px 24px color-mix(in oklch, var(--primary) 12%, transparent);
  transform: scale(1.01);
}

.card-featured-plus {
  border-color: color-mix(in oklch, var(--primary) 55%, transparent);
}

.card-featured-pro {
  border-color: oklch(0.65 0.14 55);
  box-shadow: 0 10px 28px color-mix(in oklch, oklch(0.65 0.14 55) 18%, transparent);
  background: linear-gradient(
    to bottom right,
    color-mix(in oklch, oklch(0.65 0.14 55) 6%, transparent),
    var(--card)
  );
}

.badge-featured {
  background: color-mix(in oklch, var(--primary) 14%, transparent);
  color: oklch(0.4 0.1 162);
  border: 1px solid color-mix(in oklch, var(--primary) 25%, transparent);
}

html[data-theme="ocean"] .badge-featured,
html[data-theme="ocean"] .card-featured-pro {
  /* keep readable across themes via primary already */
}

.feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.45rem;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.feature-badge-verified {
  background: color-mix(in oklch, var(--primary) 12%, transparent);
  border-color: color-mix(in oklch, var(--primary) 30%, transparent);
  color: oklch(0.38 0.08 162);
}
.feature-badge-trusted {
  background: color-mix(in oklch, oklch(0.55 0.1 250) 12%, transparent);
  border-color: color-mix(in oklch, oklch(0.55 0.1 250) 28%, transparent);
  color: oklch(0.4 0.08 250);
}
.feature-badge-best {
  background: color-mix(in oklch, oklch(0.75 0.15 85) 18%, transparent);
  border-color: color-mix(in oklch, oklch(0.75 0.15 85) 35%, transparent);
  color: oklch(0.45 0.1 70);
}
.feature-badge-partner {
  background: color-mix(in oklch, oklch(0.55 0.14 45) 12%, transparent);
  border-color: color-mix(in oklch, oklch(0.55 0.14 45) 30%, transparent);
  color: oklch(0.42 0.1 45);
}
.feature-badge-new {
  background: var(--muted);
  color: var(--muted-foreground);
}

/* Ad banner */
.ad-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-xl);
  border: 1px dashed color-mix(in oklch, var(--primary) 35%, transparent);
  background: linear-gradient(
    120deg,
    color-mix(in oklch, var(--primary) 8%, transparent),
    color-mix(in oklch, var(--accent) 35%, transparent),
    var(--background)
  );
}

.ad-banner-mark {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  background: color-mix(in oklch, var(--foreground) 8%, transparent);
  color: var(--muted-foreground);
}

.ad-banner-body {
  flex: 1;
  min-width: 12rem;
}

.ad-banner-body strong {
  display: block;
  font-size: 0.95rem;
}

.ad-banner-body p {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* Tooltips / legends */
.hint-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: help;
}

.hint-dot {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--border);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted-foreground);
  background: var(--background);
}

.hint-tip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.4rem);
  z-index: 20;
  width: max-content;
  max-width: 14rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--popover);
  color: var(--popover-foreground);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.35;
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s;
}

.hint-wrap:hover .hint-tip,
.hint-wrap:focus .hint-tip,
.hint-wrap:focus-within .hint-tip {
  opacity: 1;
  transform: translateY(0);
}

.admin-legend {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* Admin filters + pager */
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.admin-filter-search {
  flex: 1;
  min-width: 12rem;
}

.admin-filter-select {
  width: auto;
  min-width: 12rem;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.pager-meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.pager-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.badge-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Tariffs */
.tariff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .tariff-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tariff-price {
  margin: 0.5rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tariff-features {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.45;
}

.tariff-active {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.settings-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.settings-check input {
  width: 1rem;
  height: 1rem;
}

/* Business tabs (link-tabs) */
.biz-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 1.25rem;
  padding: 0.25rem;
  border-radius: var(--radius-lg);
  background: var(--muted);
  width: fit-content;
  max-width: 100%;
}

.biz-tab {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  white-space: nowrap;
}

.biz-tab:hover {
  color: var(--foreground);
}

.biz-tab.is-active {
  background: var(--background);
  color: var(--foreground);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
}

/* Album carousel */
.album-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}

.album-track-wrap {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.15rem;
}

.album-track-wrap::-webkit-scrollbar {
  display: none;
}

.album-track {
  display: flex;
  gap: 1rem;
}

.album-slide {
  /* ~3 карточки + peek следующей */
  flex: 0 0 calc((100% - 2rem) / 3.25);
  scroll-snap-align: start;
  min-width: 0;
}

.album-slide.gallery-card {
  width: 100%;
}

@media (max-width: 900px) {
  .album-slide {
    /* 1 карточка + peek следующей */
    flex-basis: 82%;
  }
}

.album-nav {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.06);
}

.album-carousel.show-nav .album-nav {
  display: inline-flex;
}

.album-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Product tiles */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-tile {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border: 1px solid color-mix(in oklch, var(--border) 70%, transparent);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--card);
  color: var(--card-foreground, var(--foreground));
  font: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.product-tile:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklch, var(--primary) 40%, transparent);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.08);
}

.product-tile img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.product-tile-body {
  padding: 0.75rem 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--card-foreground, var(--foreground));
  background: color-mix(in oklch, var(--card) 82%, var(--background));
}

.product-tile-body strong {
  font-size: 0.875rem;
  color: var(--foreground);
}

.product-tile-body .catalog-price {
  color: var(--primary);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.tag {
  font-size: 0.68rem;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.amenity-chip svg {
  flex-shrink: 0;
}

.lead-spoiler {
  margin-top: 1rem;
  background: color-mix(in oklch, var(--primary) 6%, var(--card));
  transform: none;
}

.lead-spoiler-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  padding: 1.15rem 1.25rem;
  background: transparent;
}

.lead-spoiler-title {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.lead-spoiler-hint {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted-foreground);
  max-width: 28rem;
  line-height: 1.4;
}

.lead-spoiler-body {
  text-align: center;
  background: color-mix(in oklch, var(--background) 70%, transparent);
}

.lead-spoiler-body .label {
  text-align: left;
  display: block;
}

.lead-spoiler-body .form-grid-2,
.lead-spoiler-body .space-y-1.5 {
  text-align: left;
}

.lead-spoiler-submit {
  margin-left: auto;
  margin-right: auto;
}

.lead-spoiler[open] .lead-spoiler-summary {
  border-bottom: 1px solid color-mix(in oklch, var(--primary) 20%, var(--border));
}
