:root {
  /* iOS StudioDesign graphite / lime */
  --wgb-bg: #0B0E11;
  --wgb-card: rgba(8, 9, 11, 0.82);
  --wgb-card-solid: #12151b;
  --wgb-border: rgba(194, 232, 56, 0.22);
  --wgb-text: #f6f6f3;
  --wgb-muted: rgba(246, 246, 243, 0.62);
  /* iOS accent Color(red: 0.76, green: 0.91, blue: 0.22) */
  --wgb-accent: #c2e838;
  --wgb-accent-strong: #b4d92e;
  --wgb-accent-dim: rgba(194, 232, 56, 0.14);
  --wgb-danger: #e57373;
  --wgb-danger-dim: rgba(229, 115, 115, 0.12);
  --wgb-gold: #e8c36a;
  --wgb-radius: 22px;
  --wgb-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --wgb-heading: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  --wgb-ink: #0a0a0a;
  --wgb-btn-gradient: linear-gradient(180deg, #d4f45a 0%, #c2e838 100%);
  --wgb-shell: #0B0E11;
  --wgb-surface-strong: rgba(255, 255, 255, 0.085);
  --wgb-input-bg: rgba(255, 255, 255, 0.05);
  --wgb-input-bg-strong: rgba(4, 5, 7, 0.78);
  --wgb-book-cta-h: 52px;
  --wgb-tabbar-bg: rgba(11, 14, 17, 0.78);
  --wgb-sheet-bg: linear-gradient(180deg, rgba(22, 26, 35, 0.98) 0%, rgba(14, 16, 23, 0.98) 100%);
  --wgb-accent-border-soft: rgba(194, 232, 56, 0.28);
  --wgb-accent-border-strong: rgba(194, 232, 56, 0.48);
  --wgb-page-glow:
    radial-gradient(ellipse 42% 36% at 88% 6%, rgba(194, 232, 56, 0.13) 0%, transparent 68%),
    linear-gradient(180deg, #0B0E11 0%, #0B0E11 100%);
  --wgb-tabbar-shadow:
    0 12px 26px rgba(0, 0, 0, 0.58),
    0 0 0 0.5px rgba(255, 255, 255, 0.04);
  /* Floating pill: icon row + side/bottom margins (labels hidden) */
  --wgb-tabbar-row: 52px;
  --wgb-tabbar-edge-pad: env(safe-area-inset-bottom, 0px);
  --wgb-tabbar-top-shim: 0.35rem;
  --wgb-tabbar-side: 0.85rem;
  --wgb-tabbar-bottom: 0.75rem;
  --wgb-tabbar-footprint: calc(
    var(--wgb-tabbar-top-shim) + var(--wgb-tabbar-row) + var(--wgb-tabbar-bottom) + var(--wgb-tabbar-edge-pad)
  );
  --wgb-safe-t: env(safe-area-inset-top, 0px);
  --wgb-safe-b: env(safe-area-inset-bottom, 0px);
  --wgb-safe-l: env(safe-area-inset-left, 0px);
  --wgb-safe-r: env(safe-area-inset-right, 0px);
  /* Верхний внутренний отступ + вырез / статус-бар */
  --wgb-pad-top: calc(1rem + var(--wgb-safe-t));
  --wgb-tabbar-badge-bg: #c2e838;
  --wgb-tabbar-badge-fg: #0a0a0a;
  --wgb-tabbar-badge-ring: rgba(11, 14, 17, 0.92);
}

:root[data-wgb-theme='light'] {
  font-size: 108%;
  --wgb-bg: #f4f7fc;
  --wgb-card: rgba(255, 255, 255, 0.94);
  --wgb-card-solid: #ffffff;
  --wgb-border: rgba(15, 23, 42, 0.12);
  --wgb-text: #0b1324;
  --wgb-muted: #3d4a5c;
  --wgb-accent: #c2e838;
  --wgb-accent-strong: #b4d92e;
  --wgb-accent-dim: rgba(194, 232, 56, 0.2);
  --wgb-shell: #e8eef8;
  --wgb-surface-strong: #ffffff;
  --wgb-input-bg: rgba(255, 255, 255, 0.98);
  --wgb-input-bg-strong: #f4f7fb;
  --wgb-tabbar-bg: rgba(255, 255, 255, 0.92);
  --wgb-sheet-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.98) 100%);
  --wgb-accent-border-soft: rgba(194, 232, 56, 0.45);
  --wgb-accent-border-strong: rgba(180, 217, 46, 0.65);
  --wgb-ink: #0a0a0a;
  --wgb-btn-gradient: linear-gradient(180deg, #d4f45a 0%, #c2e838 100%);
  --wgb-page-glow:
    radial-gradient(ellipse 42% 36% at 88% 6%, rgba(194, 232, 56, 0.18) 0%, transparent 68%),
    linear-gradient(180deg, #f4f7fc 0%, #eef2f8 100%);
  --wgb-tabbar-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
  --wgb-tabbar-badge-ring: #ffffff;
}

:root[data-wgb-theme='light'] body {
  line-height: 1.52;
}

:root[data-wgb-theme='light'] .wgb-tabbar__btn {
  font-size: 0.72rem;
  color: var(--wgb-muted);
}
:root[data-wgb-theme='light'] .wgb-tabbar__btn > span {
  font-size: 0.68rem;
  font-weight: 600;
}
:root[data-wgb-theme='light'] .wgb-tabbar__btn.is-active {
  color: var(--wgb-text);
}

:root[data-wgb-theme='light'] .wgb-theme-panel__sub {
  font-size: 0.86rem;
  color: var(--wgb-muted);
}
:root[data-wgb-theme='light'] .wgb-theme-card__title {
  font-size: 0.92rem;
}
:root[data-wgb-theme='light'] .wgb-theme-card__sub {
  font-size: 0.78rem;
}

* { box-sizing: border-box; }

html {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  height: var(--wgb-app-h, 100%);
  max-height: var(--wgb-app-h, 100dvh);
  /* Never let min-height exceed the visible frame — fill-available in DevTools
     device mode can be taller than the emulated phone and clip the tabbar. */
  min-height: 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
  overscroll-behavior-x: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  height: var(--wgb-app-h, 100%);
  max-height: var(--wgb-app-h, 100%);
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  touch-action: manipulation;
  overscroll-behavior-x: none;
  font-family: var(--wgb-font);
  background: var(--wgb-shell);
  color: var(--wgb-text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.wgb {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--wgb-pad-top) max(1rem, var(--wgb-safe-l)) 0 max(1rem, var(--wgb-safe-r));
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  isolation: isolate;
  background: var(--wgb-page-glow);
}
/* Скролл в #wgb-main-inner; таббар — fixed-подвал */
#wgb-error {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  max-width: 100%;
  overflow-x: hidden;
  touch-action: pan-y;
  padding-bottom: 0;
}
.wgb-main-shell {
  position: relative;
  z-index: 1;
  flex: 1 1 0%;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wgb-pull-indicator {
  flex: 0 0 auto;
  overflow: hidden;
  height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2px;
  transition: height 0.12s ease-out;
  pointer-events: none;
}
.wgb-pull-indicator.hidden {
  visibility: hidden;
}
.wgb-pull-indicator__spinner {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--wgb-accent) 38%, transparent);
  border-top-color: var(--wgb-accent);
  opacity: 0.65;
  transform: rotate(0deg);
}
.wgb-pull-indicator--ready .wgb-pull-indicator__spinner {
  opacity: 1;
}
.wgb-pull-indicator--loading .wgb-pull-indicator__spinner {
  opacity: 1;
  animation: wgb-ptr-spin 0.65s linear infinite;
}
@keyframes wgb-ptr-spin {
  to {
    transform: rotate(360deg);
  }
}

#wgb-main-inner {
  position: relative;
  z-index: 1;
  flex: 1 1 0%;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
  padding-bottom: 0.75rem;
}
#wgb-main-inner::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.wgb:has(#wgb-tabbar.hidden) #wgb-main-inner {
  padding-bottom: calc(1rem + var(--wgb-safe-b));
}
/* Экран загрузки */
.wgb-loading {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(1.5rem + var(--wgb-safe-t)) max(1.5rem, var(--wgb-safe-l)) 1.5rem max(1.5rem, var(--wgb-safe-r));
  background: radial-gradient(ellipse 85% 55% at 50% 42%, rgba(84, 148, 255, 0.12) 0%, transparent 55%),
    rgba(6, 8, 13, 0.46);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.38s ease, visibility 0.38s ease;
}
.wgb-loading.wgb-loading--leave {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.wgb-loading.hidden {
  display: none !important;
}
.wgb-loading__inner {
  text-align: center;
  max-width: 18rem;
}
.wgb-loading__orbit {
  position: relative;
  width: 6.25rem;
  height: 6.25rem;
  margin: 0 auto 1.15rem;
}
.wgb-loading__ring {
  display: none;
}
.wgb-loading__cap {
  margin: 0;
  font-size: 0.9rem;
  color: var(--wgb-muted);
  letter-spacing: 0.06em;
  font-weight: 500;
  position: relative;
  display: inline-block;
}
.wgb-loading__cap-text {
  color: #e8eadf;
  background: none;
}
@keyframes wgb-load-shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: -100% 50%;
  }
}
.wgb-loading__progress {
  width: min(12rem, 72vw);
  height: 3px;
  margin: 0.85rem auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.wgb-loading__progress-bar {
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--wgb-accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--wgb-accent) 45%, transparent);
  animation: wgb-load-progress 1.15s ease-in-out infinite;
}
@keyframes wgb-load-progress {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
@media (prefers-reduced-motion: reduce) {
  .wgb-loading {
    transition: none;
  }
  .wgb-loading__ring--spin,
  .wgb-loading__ring--glow,
  .wgb-loading__cap-text,
  .wgb-loading__progress-bar {
    animation: none !important;
  }
  .wgb-loading__cap-text {
    color: var(--wgb-muted);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
}

/* ── Error strip ── */
.wgb-error {
  background: var(--wgb-danger-dim);
  border: 1px solid rgba(255, 82, 82, 0.35);
  color: #ff8a80;
  padding: 0.75rem 1rem;
  border-radius: var(--wgb-radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.wgb-error.wgb-error--ok {
  background: rgba(129, 199, 132, 0.12);
  border: 1px solid rgba(129, 199, 132, 0.45);
  color: #a5d6a7;
}
.wgb-error.hidden, .hidden { display: none !important; }

/* ── Typography ── */
.wgb h1 { font-size: 1.35rem; font-weight: 700; margin: 0 0 0.35rem; letter-spacing: -0.02em; }
.wgb .wgb-sub { color: var(--wgb-muted); font-size: 0.85rem; margin: 0 0 1rem; }

/* Экраны входа / регистрации: свечение, анимация карточки */
.wgb:has(#wgb-main .wgb-auth) {
  padding-bottom: calc(1.25rem + var(--wgb-safe-b));
}
.wgb-auth {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(72dvh, 560px);
  padding: 0.5rem 0 1rem;
  overflow: visible;
  pointer-events: auto;
}
.wgb-auth .wgb-input,
.wgb-auth .wgb-btn,
.wgb-auth .wgb-link-btn {
  pointer-events: auto;
}
.wgb-auth__ambient {
  position: absolute;
  left: 50%;
  top: 32%;
  width: 120%;
  height: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(194, 232, 56, 0.14) 0%, transparent 68%);
  pointer-events: none;
  animation: wgb-auth-glow 5s ease-in-out infinite;
}
@keyframes wgb-auth-glow {
  0%,
  100% {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }
}
.wgb-auth__card {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 1.15rem 1.1rem 1.2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: color-mix(in srgb, var(--wgb-card-solid) 65%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(240, 184, 87, 0.08) inset;
  animation: wgb-auth-card-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes wgb-auth-card-in {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.wgb-auth__invite {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--wgb-accent);
}
.wgb-auth__title {
  margin: 0 0 0.25rem;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: left;
}
.wgb-auth__subtitle {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: var(--wgb-muted);
  text-align: left;
  line-height: 1.35;
}
.wgb-auth__subtitle--left {
  text-align: left;
  font-size: 0.84rem;
  line-height: 1.45;
  margin-bottom: 1.1rem;
}
.wgb-auth .wgb-field {
  margin-bottom: 0.65rem;
}
.wgb-auth .wgb-btn {
  margin-top: 0.15rem;
}
.wgb-auth .wgb-btn + .wgb-btn {
  margin-top: 0.45rem;
}

.wgb-auth__legal {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--wgb-border);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--wgb-muted);
}
.wgb-auth__operator {
  margin: 0 0 0.5rem;
  color: var(--wgb-text);
  font-weight: 500;
}
.wgb-auth__legal-links {
  margin: 0 0 0.65rem;
}
.wgb-auth__legal-link {
  color: var(--wgb-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wgb-auth__legal-sep {
  color: var(--wgb-muted);
  text-decoration: none;
}
.wgb-auth__consent {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0 0 0.35rem;
  cursor: pointer;
  color: var(--wgb-muted);
}
.wgb-auth__consent input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--wgb-accent-strong);
}
.wgb-auth__consent span {
  flex: 1;
  min-width: 0;
}
.wgb-auth__consent a {
  color: var(--wgb-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Tab bar: floating glass pill (iOS StudioDesign) ── */
.wgb-tabbar {
  position: relative;
  flex: 0 0 auto;
  width: calc(100% - (var(--wgb-tabbar-side) * 2));
  max-width: 560px;
  margin: auto auto calc(var(--wgb-tabbar-bottom) + var(--wgb-tabbar-edge-pad)) auto;
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.08rem;
  column-gap: 0.08rem;
  background: rgba(0, 0, 0, 0.76);
  background: color-mix(in srgb, var(--wgb-tabbar-bg) 88%, transparent);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 0.8px solid rgba(255, 255, 255, 0.17);
  border-radius: 30px;
  box-shadow: var(--wgb-tabbar-shadow);
  min-height: var(--wgb-tabbar-row);
  height: auto;
  padding: 0.42rem 0.4rem;
  z-index: 60;
  overflow: visible;
  flex-shrink: 0;
  margin-top: auto;
}
.wgb-tabbar::after {
  display: none;
}
.wgb-tabbar__btn {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  gap: 0;
  border: none;
  background: transparent;
  color: var(--wgb-muted);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    'SF Pro Text',
    'Segoe UI',
    system-ui,
    sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  padding: 0.35rem 0.1rem;
  border-radius: 18px;
  transition: color 0.2s ease, transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
  min-height: 44px;
}
.wgb-tabbar__btn::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.6rem;
  height: 2.6rem;
  margin: -1.3rem 0 0 -1.3rem;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(194, 232, 56, 0.42) 0%, rgba(194, 232, 56, 0.1) 48%, transparent 72%);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}
.wgb-tabbar__btn:active {
  transform: scale(0.96);
}
/* Labels hidden — aria-label remains on the button */
.wgb-tabbar__btn > span:not(.wgb-tabbar__badge) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.wgb-tabbar__icon-wrap {
  position: relative;
  z-index: 1;
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}
.wgb-tabbar__icon-wrap .wgb-tabbar__icon {
  width: 24px;
  height: 24px;
  display: block;
  transition: transform 0.22s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.2s ease;
}
.wgb-tabbar__btn.is-active::before {
  opacity: 1;
  transform: scale(1);
}
.wgb-tabbar__btn.is-active .wgb-tabbar__icon-wrap .wgb-tabbar__icon {
  transform: scale(1.04);
}
.wgb-tabbar__btn.is-active { color: #fff; }

/* Смена вкладки: лёгкий вход контента */
#wgb-main-inner.wgb-main--nav-enter {
  animation: wgb-main-nav-enter 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes wgb-main-nav-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  #wgb-main-inner.wgb-main--nav-enter {
    animation: none !important;
  }
}
.wgb-tabbar__badge {
  position: absolute;
  top: -2px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--wgb-tabbar-badge-bg);
  color: var(--wgb-tabbar-badge-fg, #0a0a0a);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    'SF Pro Text',
    'Segoe UI',
    system-ui,
    sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid var(--wgb-tabbar-badge-ring);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.38),
    0 0 0 0.5px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  z-index: 2;
}
.wgb-tabbar__badge.wgb-tabbar__badge--wide {
  min-width: 23px;
  padding: 0 5px;
  font-size: 10px;
}

/* ── Category tabs ── */
.wgb-tabs {
  display: flex; gap: 0.35rem; margin-bottom: 1rem; padding: 0.2rem;
  background: var(--wgb-card); border-radius: var(--wgb-radius); border: 1px solid var(--wgb-border);
}
.wgb-tab {
  flex: 1; border: none; background: transparent; color: var(--wgb-muted); font-family: inherit;
  font-size: 0.88rem; font-weight: 600; padding: 0.55rem 0.5rem; border-radius: 10px;
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.wgb-tab:hover { color: var(--wgb-text); }
.wgb-tab.is-active { background: rgba(255, 255, 255, 0.08); color: var(--wgb-text); box-shadow: 0 1px 3px rgba(0,0,0,0.2); }

/* ── Service cards ── */
.wgb-services { display: flex; flex-direction: column; gap: 0.5rem; }
.wgb-svc-card {
  border-radius: var(--wgb-radius);
  border: 1px solid var(--wgb-border);
  background: var(--wgb-card);
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
  box-shadow: none;
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wgb-svc-card:hover {
  border-color: rgba(200,245,66,.28);
  box-shadow: none;
}
.wgb-svc-card .wgb-svc {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}
.wgb-svc-card .wgb-svc:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}
.wgb-svc {
  display: block; width: 100%; text-align: left; padding: 0.85rem 1rem;
  border-radius: var(--wgb-radius); border: 1px solid var(--wgb-border);
  background: var(--wgb-card); color: var(--wgb-text); font-family: inherit;
  cursor: pointer; transition: all 0.2s ease;
}
.wgb-svc:hover { border-color: var(--wgb-accent); box-shadow: 0 0 0 1px var(--wgb-accent-dim); transform: translateY(-1px); }
.wgb-svc--has-img { display: flex; gap: 0.75rem; align-items: flex-start; }
.wgb-svc-img {
  width: 72px; height: 72px; min-width: 72px; border-radius: 10px; overflow: hidden;
  background: var(--wgb-surface-strong);
}
.wgb-svc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wgb-svc-body { flex: 1; min-width: 0; }
.wgb-svc-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
  column-gap: 0.65rem;
  row-gap: 0.35rem;
  width: 100%;
}
.wgb-svc-head__main {
  min-width: 0;
  max-width: 100%;
}
.wgb-svc-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.wgb-svc-meta { font-size: 0.8rem; color: var(--wgb-muted); }
.wgb-svc-duration { display: inline-flex; align-items: center; }
.wgb-svc-price {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 2.5rem;
  min-width: 4.5rem;
  max-width: 100%;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 184, 87, 0.5);
  background: linear-gradient(135deg, rgba(240, 184, 87, 0.15) 0%, rgba(240, 184, 87, 0.05) 100%);
  color: var(--wgb-gold);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--wgb-gold) 15%, transparent);
  pointer-events: none;
  white-space: nowrap;
}
.wgb-svc-price__value {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.wgb-svc-price__from {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.9;
}
.wgb-svc-price__cur {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.wgb-svc-head__badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
  justify-self: end;
  max-width: 100%;
}
.wgb-svc-card--has-img .wgb-svc-head {
  /* Thumb + narrow body: keep title column from painting under the price pill */
  grid-template-columns: minmax(0, 1fr) auto;
}
.wgb-svc-loyalty {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--wgb-accent);
}
.wgb-svc-bonus-hint {
  display: inline-flex;
  align-items: center;
  margin-left: 0.25rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #1a1a1a;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  white-space: nowrap;
}
.wgb-bonus-redeem {
  margin-top: 0.55rem;
}
.wgb-bonus-redeem__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--wgb-accent-border-soft);
  background: color-mix(in srgb, var(--wgb-accent) 10%, var(--wgb-card-solid, var(--wgb-card)));
  color: var(--wgb-text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.wgb-bonus-redeem__toggle:hover,
.wgb-bonus-redeem__toggle:focus-visible {
  border-color: var(--wgb-accent-border-strong);
  outline: none;
}
.wgb-bonus-redeem.is-open .wgb-bonus-redeem__toggle,
.wgb-bonus-redeem.is-applied .wgb-bonus-redeem__toggle {
  border-color: var(--wgb-accent-border-strong);
  background: var(--wgb-accent-dim);
}
.wgb-bonus-redeem__toggle-label {
  flex: 1 1 auto;
  min-width: 0;
}
.wgb-bonus-redeem__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 1.55rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: #111;
  background: var(--wgb-accent);
}
.wgb-bonus-redeem.is-applied .wgb-bonus-redeem__badge {
  background: var(--wgb-accent-strong);
}
.wgb-bonus-redeem__menu {
  margin-top: 0.45rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--wgb-radius);
  border: 1px solid var(--wgb-accent-border-soft);
  background: color-mix(in srgb, var(--wgb-accent) 8%, var(--wgb-card-solid, var(--wgb-card)));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}
.wgb-bonus-redeem__menu[hidden] {
  display: none !important;
}
.wgb-bonus-redeem__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.wgb-bonus-redeem__label {
  font-size: 0.86rem;
  font-weight: 700;
}
.wgb-bonus-redeem__max {
  border: 0;
  background: var(--wgb-accent);
  color: #111;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  min-height: 32px;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
}
.wgb-bonus-redeem__max:hover,
.wgb-bonus-redeem__max:focus-visible {
  filter: brightness(1.05);
  outline: none;
}
.wgb-bonus-redeem__row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.wgb-bonus-redeem__input {
  width: 7.5rem;
  max-width: 40%;
  font-variant-numeric: tabular-nums;
}
.wgb-bonus-redeem__unit {
  font-size: 0.82rem;
  color: var(--wgb-muted);
}
.wgb-bonus-redeem__hint,
.wgb-bonus-redeem__due {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--wgb-muted);
}
.wgb-bonus-redeem__due {
  color: var(--wgb-text);
  font-weight: 600;
}
.wgb-bonus-redeem__due strong {
  font-weight: 800;
  color: var(--wgb-accent);
}
.wgb-bonus-redeem__done {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--wgb-accent-border-strong);
  background: var(--wgb-accent);
  color: #111;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}
.wgb-bonus-redeem__done:hover,
.wgb-bonus-redeem__done:focus-visible {
  filter: brightness(1.04);
  outline: none;
}
.wgb-svc-desc {
  padding: 0 1rem 0.85rem;
  margin-top: -0.15rem;
}
.wgb-svc-card:not(.wgb-svc-card--has-desc) .wgb-svc-desc {
  display: none;
}
.wgb-svc-desc__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--wgb-muted);
  white-space: pre-wrap;
  word-break: break-word;
}
.wgb-svc-desc__text--collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wgb-svc-desc__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--wgb-accent);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wgb-svc-desc__toggle:hover,
.wgb-svc-desc__toggle:focus-visible {
  opacity: 0.88;
  outline: none;
  text-decoration: underline;
}
.wgb-svc-desc__chev {
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}
.wgb-svc-desc__toggle.is-expanded .wgb-svc-desc__chev {
  transform: rotate(-90deg);
}

.wgb-booking-hero {
  margin: 0 0 0.85rem;
  border-radius: var(--wgb-radius);
  overflow: hidden;
  border: 1px solid var(--wgb-border);
  background: var(--wgb-surface-strong);
}
.wgb-booking-hero img,
.wgb-booking-hero video,
.wgb-booking-hero__img,
.wgb-booking-hero__video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  vertical-align: middle;
}
.wgb-booking-hero--detail {
  margin-bottom: 1rem;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}
.wgb-booking-hero--detail img,
.wgb-booking-hero--detail video,
.wgb-booking-hero--detail .wgb-booking-hero__img,
.wgb-booking-hero--detail .wgb-booking-hero__video {
  max-height: min(42vw, 260px);
}
/* Keep ~335×176 framing while video metadata/poster loads */
.wgb-booking-hero--detail.wgb-booking-hero--video {
  aspect-ratio: 335 / 176;
  max-height: min(42vw, 260px);
}
.wgb-booking-hero--detail.wgb-booking-hero--video .wgb-booking-hero__media {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wgb-booking-hero--detail.wgb-booking-hero--video img,
.wgb-booking-hero--detail.wgb-booking-hero--video video,
.wgb-booking-hero--detail.wgb-booking-hero--video .wgb-booking-hero__img,
.wgb-booking-hero--detail.wgb-booking-hero--video .wgb-booking-hero__video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  pointer-events: none;
}

.wgb-svc-detail {
  margin-bottom: 1.25rem;
  padding: 1rem 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--wgb-border);
  background: var(--wgb-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.wgb-svc-detail__body {
  margin-top: 0.15rem;
}
.wgb-svc-detail__title {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
  line-height: 1.25;
}
.wgb-svc-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.85rem;
}
.wgb-svc-detail__desc {
  margin-top: 0.15rem;
}
.wgb-svc-detail__desc .wgb-svc-desc__text {
  margin: 0;
  line-height: 1.55;
  color: var(--wgb-text);
  white-space: pre-wrap;
}
.wgb-svc-detail__empty-desc {
  margin: 0;
  line-height: 1.45;
}

.wgb-consult-section {
  margin-top: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--wgb-border);
}
.wgb-consult-section__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

/* ── Back button ── */
.wgb-back {
  border: none; background: transparent; color: var(--wgb-muted); font-family: inherit;
  font-size: 0.85rem; cursor: pointer; margin-bottom: 0.75rem; padding: 0;
}
.wgb-back:hover { color: var(--wgb-accent); }

/* ── Fields ── */
.wgb-field { margin-bottom: 0.75rem; }
.wgb-field label { display: block; font-size: 0.78rem; color: var(--wgb-muted); margin-bottom: 0.35rem; }
.wgb-field input, .wgb-field select, .wgb-field textarea {
  width: 100%; padding: 0.55rem 0.65rem; border-radius: 10px; border: 1px solid var(--wgb-border);
  background: var(--wgb-input-bg); color: var(--wgb-text); font-family: inherit; font-size: 0.9rem; resize: vertical;
}
.wgb-field input:focus, .wgb-field select:focus, .wgb-field textarea:focus {
  outline: none; border-color: rgba(200,245,66,.45);
}

/* ── Slots (iOS Clock/Timer drum picker) ── */
.wgb-slots { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.45rem; }
.wgb-slots:has(.wgb-slot-wheel),
.wgb-slots:has(.wgb-slots-skel--wheel),
.wgb-slots--wheel {
  display: block;
  flex-wrap: unset;
  gap: 0;
}
.wgb-slot-wheel {
  --wgb-slot-row: 2.75rem;
  --wgb-slot-visible: 5;
  --wgb-slot-wheel-h: calc(var(--wgb-slot-row) * var(--wgb-slot-visible));
  --wgb-slot-drum-r: 6.4rem;
  position: relative;
  margin-top: 0.15rem;
  height: var(--wgb-slot-wheel-h);
  border-radius: 16px;
  border: 1px solid var(--wgb-border);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.28) 100%),
    color-mix(in srgb, var(--wgb-card) 90%, transparent);
  overflow: hidden;
  perspective: 1100px;
  -webkit-perspective: 1100px;
  isolation: isolate;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
  user-select: none;
  -webkit-user-select: none;
}
.wgb-slot-wheel__lens {
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  top: 50%;
  height: var(--wgb-slot-row);
  transform: translateY(-50%);
  border-radius: 11px;
  border: 1px solid rgba(200, 245, 66, 0.42);
  background: linear-gradient(
    180deg,
    rgba(200, 245, 66, 0.14) 0%,
    rgba(200, 245, 66, 0.08) 50%,
    rgba(200, 245, 66, 0.14) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(200, 245, 66, 0.06);
  pointer-events: none;
  z-index: 3;
}
.wgb-slot-wheel__viewport {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}
.wgb-slot-wheel.is-dragging .wgb-slot-wheel__viewport {
  cursor: grabbing;
}
.wgb-slot-wheel__scroller {
  position: relative;
  display: block;
  width: 100%;
  padding-block: calc((var(--wgb-slot-wheel-h) - var(--wgb-slot-row)) / 2);
  will-change: transform;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  outline: none;
  /* driven by JS translate3d — no native overflow scroll */
}
.wgb-slot-wheel__scroller:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(200, 245, 66, 0.35);
}
.wgb-slot {
  font-family: ui-monospace, monospace;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--wgb-border);
  background: var(--wgb-card);
  color: var(--wgb-text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  min-height: 44px;
}
.wgb-slot-wheel .wgb-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--wgb-slot-row);
  height: var(--wgb-slot-row);
  margin: 0;
  padding: 0 0.85rem;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform-origin: center center;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity, filter;
  transition: none;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--wgb-muted);
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.wgb-slot-wheel .wgb-slot.is-picked {
  color: var(--wgb-text);
  font-weight: 700;
  background: transparent;
  border: none;
  box-shadow: none;
}
.wgb-slot-wheel .wgb-slot:hover:not(:disabled),
.wgb-slot-wheel .wgb-slot:active:not(:disabled) {
  background: transparent;
  border: none;
  box-shadow: none;
}
.wgb-slot:hover:not(:disabled) {
  border-color: rgba(200,245,66,.35);
  background: rgba(255,255,255,0.04);
}
.wgb-slot:active:not(:disabled) {
  transform: none;
}
.wgb-slot:disabled {
  opacity: .35;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.06);
  background: transparent;
  color: var(--wgb-muted);
}
.wgb-slot-wheel .wgb-slot:disabled {
  opacity: 1;
  color: color-mix(in srgb, var(--wgb-muted) 50%, transparent);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  cursor: default;
}
.wgb-slot.is-picked {
  box-shadow: none;
  border-color: rgba(200,245,66,.55);
  color: var(--wgb-text);
  background: rgba(200,245,66,0.12);
  transform: none;
}

:root[data-wgb-theme='light'] .wgb-slot:not(:disabled) {
  border: 1px solid color-mix(in srgb, var(--wgb-accent-strong) 38%, var(--wgb-border));
  background: color-mix(in srgb, var(--wgb-accent) 12%, var(--wgb-card-solid));
  color: var(--wgb-text);
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
:root[data-wgb-theme='light'] .wgb-slot:not(:disabled):hover {
  background: color-mix(in srgb, var(--wgb-accent) 20%, var(--wgb-card-solid));
  border-color: color-mix(in srgb, var(--wgb-accent-strong) 55%, var(--wgb-border));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--wgb-accent) 20%, transparent);
}
:root[data-wgb-theme='light'] .wgb-slot.is-picked:not(:disabled) {
  box-shadow: 0 0 0 2px var(--wgb-accent-strong), 0 4px 15px color-mix(in srgb, var(--wgb-accent) 30%, transparent);
  background: color-mix(in srgb, var(--wgb-accent) 22%, #fff);
  color: var(--wgb-text);
  transform: translateY(-2px);
}
:root[data-wgb-theme='light'] .wgb-slot:active:not(:disabled) {
  transform: scale(0.96);
}
:root[data-wgb-theme='light'] .wgb-slot:disabled {
  opacity: 0.55;
  border-color: var(--wgb-border);
  background: color-mix(in srgb, var(--wgb-muted) 8%, var(--wgb-card-solid));
  color: var(--wgb-muted);
}
:root[data-wgb-theme='light'] .wgb-slot-wheel {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.06) 100%),
    color-mix(in srgb, var(--wgb-card-solid) 92%, #fff);
  border-color: color-mix(in srgb, var(--wgb-accent-strong) 22%, var(--wgb-border));
}
:root[data-wgb-theme='light'] .wgb-slot-wheel__lens {
  border-color: color-mix(in srgb, var(--wgb-accent-strong) 55%, var(--wgb-border));
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--wgb-accent) 22%, #fff) 0%,
    color-mix(in srgb, var(--wgb-accent) 12%, #fff) 50%,
    color-mix(in srgb, var(--wgb-accent) 22%, #fff) 100%
  );
}
:root[data-wgb-theme='light'] .wgb-slot-wheel .wgb-slot,
:root[data-wgb-theme='light'] .wgb-slot-wheel .wgb-slot:not(:disabled),
:root[data-wgb-theme='light'] .wgb-slot-wheel .wgb-slot:not(:disabled):hover,
:root[data-wgb-theme='light'] .wgb-slot-wheel .wgb-slot.is-picked:not(:disabled),
:root[data-wgb-theme='light'] .wgb-slot-wheel .wgb-slot:active:not(:disabled) {
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
:root[data-wgb-theme='light'] .wgb-slot-wheel .wgb-slot:not(:disabled) {
  color: var(--wgb-muted);
}
:root[data-wgb-theme='light'] .wgb-slot-wheel .wgb-slot.is-picked:not(:disabled) {
  color: var(--wgb-text);
}
:root[data-wgb-theme='light'] .wgb-slot-wheel .wgb-slot:disabled {
  background: transparent;
  opacity: 1;
  color: color-mix(in srgb, var(--wgb-muted) 60%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .wgb-slot-wheel {
    perspective: none;
    -webkit-perspective: none;
  }
  .wgb-slot-wheel .wgb-slot {
    will-change: opacity;
    filter: none !important;
  }
}

/* ── Buttons ── */
.wgb-btn {
  width: 100%; margin-top: 0.5rem; padding: 0.85rem 1rem; border: 1px solid transparent;
  border-radius: var(--wgb-radius); background: var(--wgb-btn-gradient); color: var(--wgb-ink);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--wgb-accent) 28%, transparent);
  font-family: inherit; font-weight: 800; font-size: 0.95rem; cursor: pointer;
  letter-spacing: -0.02em;
  min-height: 48px;
  transition-property: transform, box-shadow, background-color, border-color, color;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(.2,.8,.2,1);
}
.wgb-btn:active { transform: scale(0.97); box-shadow: 0 2px 8px color-mix(in srgb, var(--wgb-accent) 15%, transparent); }
.wgb-btn:disabled { opacity: .45; cursor: not-allowed; }
.wgb-btn--ghost { margin-top: 0.5rem; background: transparent; color: var(--wgb-muted); border: 1px solid var(--wgb-border); }
.wgb-btn--ghost:hover { color: var(--wgb-text); border-color: var(--wgb-muted); }
.wgb-btn--danger { background: var(--wgb-danger-dim); color: var(--wgb-danger); border: 1px solid rgba(255,82,82,.3); }
.wgb-btn--accent { background: var(--wgb-accent-dim); color: var(--wgb-accent); border: 1px solid color-mix(in srgb, var(--wgb-accent) 35%, transparent); }
.wgb-btn--sm { width: auto; padding: 0.45rem 0.75rem; font-size: 0.82rem; margin-top: 0; }

.wgb-tg-notify__icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--wgb-accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--wgb-accent) 28%, transparent);
  color: var(--wgb-accent);
}
.wgb-tg-notify__svg {
  display: block;
}

/* ── Success ── */
.wgb-success { text-align: center; padding: 2rem 1rem; }
.wgb-success h2 { color: var(--wgb-accent); font-size: 1.2rem; margin-bottom: 0.5rem; }

/* ── Toolbar ── */
.wgb-toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.wgb-toolbar--split { justify-content: space-between; }

/* ── Link button ── */
.wgb-link-btn { background: none; border: none; color: var(--wgb-muted); font-family: inherit; font-size: 0.8rem; cursor: pointer; text-decoration: underline; padding: 0.25rem 0; }
.wgb-link-btn:hover { color: var(--wgb-text); }

/* ── Input (standalone) ── */
.wgb-input {
  width: 100%; padding: 0.65rem 0.75rem; border-radius: var(--wgb-radius);
  border: 1px solid var(--wgb-border); background: var(--wgb-card); color: var(--wgb-text);
  font-family: inherit; font-size: 1rem;
}
.wgb-input:focus { outline: none; border-color: var(--wgb-accent); }

.wgb-forgot { margin: -0.15rem 0 0.5rem; text-align: right; }

/* ── Booking card (Мои записи) ── */
.wgb-bcard {
  padding: 0.85rem 1rem; border-radius: var(--wgb-radius); border: 1px solid var(--wgb-border);
  background: var(--wgb-card); margin-bottom: 0.5rem; position: relative;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.wgb-bcard__title { font-weight: 600; font-size: 0.95rem; margin: 0 0 0.25rem; }
.wgb-bcard__meta { font-size: 0.82rem; color: var(--wgb-muted); margin: 0 0 0.15rem; }
.wgb-bcard__status {
  display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.5rem;
  border-radius: 6px; margin-top: 0.35rem;
}
.wgb-bcard__status--pending { background: rgba(255,193,7,.12); color: #ffc107; }
.wgb-bcard__status--confirmed { background: var(--wgb-accent-dim); color: var(--wgb-accent); }
.wgb-bcard__status--in_progress { background: rgba(33,150,243,.12); color: #42a5f5; }
.wgb-bcard__status--completed { background: rgba(76,175,80,.12); color: #66bb6a; }
.wgb-bcard__status--cancelled { background: var(--wgb-danger-dim); color: var(--wgb-danger); }
.wgb-bcard__meta--points { color: #81c784; }
.wgb-bcard__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.wgb-bcard__actions--stack { flex-direction: column; align-items: stretch; gap: 0.5rem; }
.wgb-bcard__actions--stack .wgb-btn--sm { width: 100%; max-width: none; text-align: center; }
.wgb-bcard__act {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.9rem;
  border-radius: var(--wgb-radius);
  border: 1px solid rgba(84, 148, 255, 0.35);
  background: var(--wgb-accent-dim);
  color: var(--wgb-accent);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.wgb-bcard__act:hover,
.wgb-bcard__act:focus-visible {
  border-color: rgba(84, 148, 255, 0.55);
  background: rgba(84, 148, 255, 0.22);
  outline: none;
}
.wgb-bcard__act:active { opacity: 0.92; }

/* ── Notification row ── */
.wgb-notif {
  padding: 0.75rem 1rem; border-radius: var(--wgb-radius); border: 1px solid var(--wgb-border);
  background: var(--wgb-card); margin-bottom: 0.5rem; cursor: pointer;
  transition: background 0.15s;
}
.wgb-notif:hover { background: rgba(255, 255, 255, 0.04); }
.wgb-notif:hover { background: color-mix(in srgb, var(--wgb-card-solid) 88%, transparent); }
.wgb-notif--unread { border-left: 3px solid var(--wgb-accent); }
/* iOS StudioHero — home chrome */
.wgb-studio-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.35rem;
  padding: 24px;
  margin: 0 0 1.15rem;
  border-radius: 32px;
  background: rgba(0, 0, 0, 0.36);
  border: none;
  overflow: hidden;
  isolation: isolate;
}
.wgb-studio-hero::before {
  content: '✦';
  position: absolute;
  top: 1.4rem;
  right: -0.4rem;
  font-size: 10.5rem;
  font-weight: 100;
  line-height: 1;
  color: rgba(194, 232, 56, 0.055);
  transform: rotate(15deg);
  pointer-events: none;
  z-index: 0;
}
.wgb-studio-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.23), rgba(255, 255, 255, 0.03));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
.wgb-studio-hero > * {
  position: relative;
  z-index: 1;
}
.wgb-studio-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.wgb-studio-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wgb-accent);
}
.wgb-studio-hero__brand-icon {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}
.wgb-studio-hero__title {
  margin: 0;
  font-family: var(--wgb-heading);
  font-size: clamp(1.85rem, 7.2vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  white-space: pre-line;
}
.wgb-studio-hero__sub {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  line-height: 1.4;
}
.wgb-studio-hero__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}
.wgb-studio-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.wgb-studio-hero__chip-icon {
  width: 0.85rem;
  height: 0.85rem;
  opacity: 0.9;
}
.wgb-studio-hero__dot {
  color: rgba(255, 255, 255, 0.3);
}
.wgb-studio-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}
.wgb-studio-hero__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 1.05rem 1.15rem;
  min-height: 56px;
  border: none;
  border-radius: 20px;
  background: var(--wgb-btn-gradient);
  color: var(--wgb-ink);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--wgb-accent) 28%, transparent);
  transition: transform 0.18s ease, opacity 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.wgb-studio-hero__cta:active {
  transform: scale(0.97);
  opacity: 0.85;
}
.wgb-studio-hero__cta-arrow {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}
.wgb-studio-hero__tg {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  margin: 0;
  padding: 0.85rem 1.05rem;
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(42, 171, 238, 0.38);
  background:
    linear-gradient(145deg, rgba(42, 171, 238, 0.18) 0%, rgba(42, 171, 238, 0.06) 42%, rgba(0, 0, 0, 0.28) 100%);
  color: var(--wgb-text);
  font-family: inherit;
  text-align: left;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
button.wgb-studio-hero__tg {
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
button.wgb-studio-hero__tg:hover,
button.wgb-studio-hero__tg:focus-visible {
  border-color: rgba(42, 171, 238, 0.62);
  outline: none;
  box-shadow: 0 6px 20px rgba(42, 171, 238, 0.18);
}
button.wgb-studio-hero__tg:active {
  transform: scale(0.985);
}
.wgb-studio-hero__tg--on {
  border-color: var(--wgb-accent-border-soft);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--wgb-accent) 16%, transparent) 0%, color-mix(in srgb, var(--wgb-accent) 5%, transparent) 45%, rgba(0, 0, 0, 0.28) 100%);
  color: var(--wgb-accent);
}
.wgb-studio-hero__tg .wgb-tg-notify__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(42, 171, 238, 0.2);
  border-color: rgba(42, 171, 238, 0.4);
  color: #7fd4ff;
}
.wgb-studio-hero__tg--on .wgb-tg-notify__icon {
  background: color-mix(in srgb, var(--wgb-accent) 20%, transparent);
  border-color: color-mix(in srgb, var(--wgb-accent) 38%, transparent);
  color: var(--wgb-accent);
}
.wgb-studio-hero__tg-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.wgb-studio-hero__tg-title {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--wgb-text);
}
.wgb-studio-hero__tg--on .wgb-studio-hero__tg-title {
  color: var(--wgb-accent);
}
.wgb-studio-hero__tg-status {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(127, 212, 255, 0.92);
  line-height: 1.3;
}
.wgb-studio-hero__tg--on .wgb-studio-hero__tg-status {
  color: color-mix(in srgb, var(--wgb-accent) 78%, var(--wgb-muted));
}
.wgb-studio-hero__tg-chev,
.wgb-studio-hero__tg-badge {
  flex: 0 0 auto;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  color: #7fd4ff;
  opacity: 0.85;
}
.wgb-studio-hero__tg--on .wgb-studio-hero__tg-badge {
  color: var(--wgb-accent);
}
.wgb-news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 0.85rem;
}
.wgb-news-head__title {
  margin: 0;
  font-size: clamp(1.55rem, 5.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.wgb-news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.wgb-news-card {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.13);
  -webkit-tap-highlight-color: transparent;
}
.wgb-news-card:active {
  transform: scale(0.985);
  opacity: 0.92;
}
.wgb-news-card__media {
  width: 100%;
  max-height: min(42vh, 300px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}
.wgb-news-card__media--compact {
  max-height: 218px;
}
.wgb-news-card__media img,
.wgb-news-card__media video {
  display: block;
  width: 100%;
  height: 218px;
  object-fit: cover;
  background: #0a0a0a;
}
.wgb-news-detail .wgb-news-card__media img,
.wgb-news-detail .wgb-news-card__media video {
  height: min(42vh, 300px);
  border-radius: 22px;
}
.wgb-news-card__body {
  padding: 1rem 1.05rem 1.05rem;
}
.wgb-news-card__title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.wgb-news-card__title {
  margin: 0;
  flex: 1;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}
.wgb-news-card__dot {
  width: 9px;
  height: 9px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--wgb-accent);
  flex-shrink: 0;
}
.wgb-news-card__text {
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
}
.wgb-news-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.wgb-news-card__time {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.42);
}
.wgb-news-card__open {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--wgb-accent);
}
.wgb-news-detail__title {
  margin: 0.85rem 0 0.55rem;
  font-size: clamp(1.55rem, 5.5vw, 1.85rem);
  font-weight: 900;
}
.wgb-news-detail__body {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
  white-space: pre-wrap;
}
.wgb-news-detail__time {
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.85rem;
}
.wgb-news-cta {
  margin: 0.55rem 0 0.45rem;
}
.wgb-docs-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.wgb-doc-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
  padding: 0.95rem 1rem;
  text-align: left;
  color: inherit;
  font: inherit;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.wgb-doc-card__icon {
  font-size: 1.35rem;
  line-height: 1;
  margin-top: 0.1rem;
}
.wgb-doc-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.wgb-doc-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.wgb-doc-card__title {
  font-weight: 700;
  font-size: 0.98rem;
}
.wgb-doc-card__meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--wgb-muted);
}
.wgb-doc-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.wgb-doc-card__actions .wgb-btn {
  margin-top: 0;
  min-height: 44px;
  flex: 1 1 auto;
}
.wgb-doc-card__actions .wgb-btn--ghost {
  margin-top: 0;
}
.wgb-auth__brand-sub {
  margin: 0 0 1rem;
  text-align: left;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  font-weight: 500;
}
.wgb-auth__hint {
  margin: 0.65rem 0 0;
  text-align: left;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.78rem;
}
.wgb-section-head {
  margin: 0.35rem 0 0.85rem;
}
.wgb-section-head__title {
  margin: 0;
  font-size: clamp(1.85rem, 6vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.wgb-section-head__sub {
  margin: 0.35rem 0 0;
  color: var(--wgb-muted);
  font-size: 0.92rem;
}
.wgb-notif__title { font-weight: 600; font-size: 0.9rem; margin: 0 0 0.15rem; }
.wgb-notif__body { font-size: 0.82rem; color: var(--wgb-muted); margin: 0 0 0.15rem; }
.wgb-notif__time { font-size: 0.72rem; color: var(--wgb-muted); margin: 0; }

/* ── Profile ── */
.wgb-profile-card {
  background: var(--wgb-card); border-radius: var(--wgb-radius); border: 1px solid var(--wgb-border);
  padding: 1.25rem 1rem; text-align: center; margin-bottom: 1rem;
}
.wgb-profile-page {
  min-height: max-content;
  padding-bottom: calc(0.25rem + var(--wgb-safe-b));
  touch-action: pan-y;
  overscroll-behavior-y: contain;
  -webkit-user-select: none;
  user-select: none;
}
.wgb-profile-page input,
.wgb-profile-page textarea {
  -webkit-user-select: text;
  user-select: text;
}
.wgb-profile-avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 0.65rem;
  background: var(--wgb-accent-dim); display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--wgb-accent); overflow: hidden;
}
.wgb-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wgb-profile-name { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.15rem; }
.wgb-profile-phone { font-size: 0.85rem; color: var(--wgb-muted); margin: 0 0 0.5rem; }
.wgb-profile-points {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--wgb-accent-dim); color: var(--wgb-accent);
  padding: 0.35rem 0.75rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600;
}

.wgb-profile-section { margin-bottom: 0.75rem; }
.wgb-profile-section h3 { font-size: 0.9rem; font-weight: 600; margin: 0 0 0.5rem; color: var(--wgb-text); }

/* Единое меню действий: одинаковая ширина, как список настроек */
.wgb-profile-menu-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wgb-muted);
  margin: 0 0 0.5rem 0.15rem;
}
.wgb-profile-menu {
  width: 100%;
  margin: 0 0 1.25rem;
  border-radius: var(--wgb-radius);
  border: 1px solid var(--wgb-border);
  background: var(--wgb-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.wgb-profile-menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.9rem 1rem 0.9rem 1.05rem;
  border: none;
  border-bottom: 1px solid var(--wgb-border);
  background: transparent;
  color: var(--wgb-text);
  font-family: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.wgb-profile-menu__item:last-child {
  border-bottom: none;
}
.wgb-profile-menu__item:has(+ .wgb-profile-menu__item--logout) {
  border-bottom: none;
}
.wgb-profile-menu__item:hover,
.wgb-profile-menu__item:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}
.wgb-profile-menu__item:active {
  background: rgba(255, 255, 255, 0.08);
}
.wgb-profile-menu__text {
  flex: 1;
  min-width: 0;
}
.wgb-profile-menu__chev {
  flex: 0 0 auto;
  color: var(--wgb-muted);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1;
  opacity: 0.75;
  transform: translateY(-0.5px);
}
.wgb-profile-menu__item--logout {
  color: var(--wgb-danger);
  font-weight: 700;
  margin-top: 0.25rem;
  border-top: 1px solid var(--wgb-border);
  border-bottom: none;
  padding-top: 1rem;
  padding-bottom: 1rem;
  justify-content: center;
  gap: 0;
}
.wgb-profile-menu__item--logout .wgb-profile-menu__text {
  flex: 0 1 auto;
  text-align: center;
}
.wgb-profile-menu__item--logout:hover,
.wgb-profile-menu__item--logout:focus-visible {
  background: var(--wgb-danger-dim);
  color: #ff6e6e;
}
.wgb-profile-menu__item--logout:active {
  background: rgba(255, 82, 82, 0.16);
}

/* Карточка «кто вы» + контакты */
.wgb-profile-page-title {
  margin-bottom: 0.75rem;
}
.wgb-profile-identity {
  border-radius: var(--wgb-radius);
  border: 1px solid var(--wgb-border);
  background: linear-gradient(165deg, rgba(84, 148, 255, 0.08) 0%, var(--wgb-card) 42%);
  padding: 1.1rem 1rem 0.85rem;
  margin-bottom: 1rem;
}
.wgb-profile-identity__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.wgb-profile-identity__avatar-block {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  max-width: 7.5rem;
}
.wgb-profile-identity__avatar {
  flex: 0 0 auto;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--wgb-accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.35rem;
  font-weight: 600;
  color: var(--wgb-accent);
  overflow: hidden;
  border: 2px solid rgba(84, 148, 255, 0.25);
  padding: 0;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  line-height: 1;
  position: relative;
}
.wgb-profile-identity__avatar:focus-visible {
  outline: 2px solid var(--wgb-accent);
  outline-offset: 3px;
}
.wgb-profile-identity__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wgb-profile-identity__avatar-hint {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--wgb-accent);
  text-align: center;
  cursor: pointer;
  line-height: 1.25;
}
.wgb-profile-identity__avatar-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 720px) {
  .wgb-profile-identity__avatar {
    width: 96px;
    height: 96px;
    font-size: 2.1rem;
  }
}
.wgb-profile-identity__head-text {
  flex: 1;
  min-width: 0;
}
.wgb-profile-identity__name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.wgb-profile-identity__subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--wgb-muted);
}
.wgb-profile-contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--wgb-border);
}
.wgb-profile-contact {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--wgb-border);
  font-size: 0.88rem;
}
.wgb-profile-contact:last-child {
  border-bottom: none;
}
.wgb-profile-contact__label {
  flex: 0 0 auto;
  color: var(--wgb-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-top: 0.12rem;
}
.wgb-profile-contact__value {
  text-align: right;
  font-weight: 600;
  color: var(--wgb-text);
  word-break: break-word;
}

/* Кнопка-блок «баллы» на профиле */
.wgb-profile-loyalty-cta {
  width: 100%;
  margin: 0 0 1.1rem;
  padding: 1rem 1.1rem 1.05rem;
  border-radius: var(--wgb-radius);
  border: 1px solid rgba(240, 184, 87, 0.35);
  background: linear-gradient(135deg, rgba(240, 184, 87, 0.15) 0%, rgba(240, 184, 87, 0.05) 50%, var(--wgb-card) 100%);
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.wgb-profile-cert-cta {
  border-color: rgba(214, 255, 74, 0.32);
  background: linear-gradient(135deg, rgba(214, 255, 74, 0.14) 0%, rgba(214, 255, 74, 0.04) 50%, var(--wgb-card) 100%);
}
.wgb-profile-cert-cta:hover,
.wgb-profile-cert-cta:focus-visible {
  border-color: rgba(214, 255, 74, 0.55);
}
.wgb-cert-card {
  margin: 0 0 0.85rem;
  padding: 1.05rem 1.1rem 1rem;
  border-radius: var(--wgb-radius);
  border: 1px solid rgba(214, 255, 74, 0.22);
  background: var(--wgb-card);
}
.wgb-cert-card__kicker {
  margin: 0 0 0.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 600;
  color: #c8e85a;
}
.wgb-cert-card__amount {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.wgb-cert-card__meta,
.wgb-cert-card__hint {
  margin: 0.3rem 0 0;
  color: var(--wgb-muted);
  font-size: 0.9rem;
  text-wrap: pretty;
}
.wgb-profile-loyalty-cta--vip {
  border-color: rgba(251, 191, 36, 0.55);
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.32) 0%, rgba(251, 191, 36, 0.08) 45%, var(--wgb-card) 100%);
  box-shadow: 0 6px 18px rgba(180, 120, 20, 0.18);
}
.wgb-profile-loyalty-cta:hover,
.wgb-profile-loyalty-cta:focus-visible {
  border-color: rgba(240, 184, 87, 0.55);
  outline: none;
}
.wgb-profile-loyalty-cta--vip:hover,
.wgb-profile-loyalty-cta--vip:focus-visible {
  border-color: rgba(251, 191, 36, 0.75);
}
.wgb-profile-loyalty-cta__unit {
  font-size: 0.55em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--wgb-muted);
  margin-left: 0.15rem;
}
.wgb-loyalty-vip-badge--cta {
  margin-left: 0;
  font-size: 0.78rem;
  padding: 0.18rem 0.55rem;
}
.wgb-profile-loyalty-cta:active {
  transform: scale(0.992);
}
.wgb-profile-loyalty-cta__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}
.wgb-profile-loyalty-cta__kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--wgb-muted);
}
.wgb-profile-loyalty-cta__open {
  font-size: 1.25rem;
  color: var(--wgb-accent);
  opacity: 0.85;
  line-height: 1;
}
.wgb-profile-loyalty-cta__points {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--wgb-accent);
}
.wgb-profile-loyalty-cta__star {
  display: inline-block;
  margin-right: 0.2rem;
  font-size: 0.9em;
  opacity: 0.9;
  vertical-align: 0.05em;
}
.wgb-profile-loyalty-cta__tier {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wgb-text);
}
.wgb-profile-loyalty-cta__hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--wgb-muted);
  line-height: 1.35;
}

.wgb-theme-panel {
  position: relative;
  overflow: hidden;
  margin: 0 0 1rem;
  padding: 1rem;
  border-radius: calc(var(--wgb-radius) + 6px);
  border: 1px solid var(--wgb-border);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--wgb-gold) 15%, transparent) 0%, transparent 38%),
    linear-gradient(145deg, color-mix(in srgb, var(--wgb-card-solid) 92%, transparent) 0%, var(--wgb-card) 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.wgb-theme-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.wgb-theme-panel__title {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
  font-weight: 700;
}
.wgb-theme-panel__sub {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--wgb-muted);
}
.wgb-theme-panel__glow {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.12) 18%, transparent 36%),
    linear-gradient(135deg, color-mix(in srgb, var(--wgb-accent) 88%, #fff) 0%, color-mix(in srgb, var(--wgb-accent-strong) 75%, #0c1322) 100%);
  box-shadow: 0 14px 28px color-mix(in srgb, var(--wgb-accent-strong) 22%, transparent);
}
.wgb-theme-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}
.wgb-theme-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 0.85rem 0.8rem;
  border: 1px solid var(--wgb-border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--wgb-card-solid) 86%, transparent);
  color: var(--wgb-text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.wgb-theme-card:hover,
.wgb-theme-card:focus-visible {
  transform: translateY(-1px);
  border-color: var(--wgb-accent-border-soft);
  outline: none;
}
.wgb-theme-card.is-active {
  border-color: var(--wgb-accent-border-strong);
  background: linear-gradient(180deg, color-mix(in srgb, var(--wgb-accent) 18%, transparent) 0%, color-mix(in srgb, var(--wgb-card-solid) 88%, transparent) 100%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--wgb-accent) 24%, transparent), 0 12px 24px rgba(0, 0, 0, 0.08);
}
.wgb-theme-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--wgb-accent) 16%, transparent);
  color: var(--wgb-accent);
  font-size: 1.1rem;
}
.wgb-theme-card__title {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}
.wgb-theme-card__sub {
  font-size: 0.7rem;
  line-height: 1.35;
  color: var(--wgb-muted);
}

/* Экран «Система лояльности» */
.wgb-loyalty-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.wgb-loyalty-toolbar {
  margin: 0 0 1rem;
  text-align: right;
}
.wgb-loyalty-hero {
  margin: 0 0 1.1rem;
  padding: 1.05rem 1.15rem 1.1rem;
  border-radius: var(--wgb-radius);
  border: 1px solid var(--wgb-border);
  background: var(--wgb-card);
}
.wgb-loyalty-hero--vip {
  border-color: rgba(251, 191, 36, 0.55);
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.28) 0%, var(--wgb-card) 70%);
  box-shadow: 0 8px 22px rgba(180, 120, 20, 0.14);
}
.wgb-loyalty-vip-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #111;
  background: #fbbf24;
  vertical-align: middle;
}
.wgb-loyalty-hero__kicker .wgb-loyalty-vip-badge {
  margin-left: 0;
  margin-right: 0.35rem;
  font-size: 0.85rem;
  padding: 0.2rem 0.55rem;
}
.wgb-loyalty-hero__vip-label {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #b45309;
  text-transform: none;
  font-size: 0.92rem;
}
.wgb-loyalty-hero__balance-label {
  margin: 0.55rem 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--wgb-muted);
}
.wgb-loyalty-hero__unit {
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--wgb-muted);
  margin-left: 0.2rem;
  vertical-align: 0.15em;
}
.wgb-loyalty-hero__facts {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.28rem;
  font-size: 0.88rem;
  color: var(--wgb-text);
}
.wgb-loyalty-hero__facts strong {
  font-weight: 700;
}
.wgb-loyalty-hero__avail {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  color: var(--wgb-text);
}
.wgb-loyalty-progress--vip .wgb-loyalty-progress__head {
  color: #b45309;
}
.wgb-loyalty-hero__kicker {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  color: var(--wgb-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.wgb-loyalty-hero__big {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--wgb-accent);
}
.wgb-loyalty-hero__tier {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--wgb-text);
}
.wgb-loyalty-hero__icon {
  flex: 0 0 auto;
  font-size: 3.25rem;
  line-height: 1;
  color: var(--wgb-accent);
  opacity: 0.2;
  -webkit-user-select: none;
  user-select: none;
}
.wgb-loyalty-progress {
  margin: 0 0 1.1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--wgb-radius);
  border: 1px solid var(--wgb-border);
  background: var(--wgb-card);
}
.wgb-loyalty-progress__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.wgb-loyalty-progress__need {
  color: var(--wgb-muted);
  font-size: 0.78rem;
  font-weight: 500;
}
.wgb-loyalty-progress__bar {
  position: relative;
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.wgb-loyalty-progress__fill {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: var(--wgb-accent);
  transition: width 0.25s ease;
}
.wgb-loyalty-progress__cap {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  color: var(--wgb-muted);
}
.wgb-loyalty-reward-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin: 0 0 1.1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--wgb-border);
  border-radius: var(--wgb-radius);
  background: var(--wgb-card);
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.wgb-loyalty-reward-link:hover,
.wgb-loyalty-reward-link:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}
.wgb-loyalty-reward-link__em {
  font-size: 1.5rem;
  line-height: 1;
}
.wgb-loyalty-reward-link__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.wgb-loyalty-reward-link__t {
  font-size: 0.95rem;
  font-weight: 700;
}
.wgb-loyalty-reward-link__s {
  font-size: 0.75rem;
  color: var(--wgb-muted);
  line-height: 1.3;
}
.wgb-loyalty-reward-link__chev {
  color: var(--wgb-muted);
  font-size: 1.1rem;
}
.wgb-loyalty-card {
  margin: 0 0 0.9rem;
  padding: 1rem;
  border-radius: var(--wgb-radius);
  border: 1px solid var(--wgb-border);
  background: var(--wgb-card);
}
.wgb-loyalty-card--prose {
  margin-bottom: 1rem;
}
.wgb-loyalty-card__h {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
}
.wgb-loyalty-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.wgb-loyalty-card__head .wgb-loyalty-card__h {
  margin: 0;
}
.wgb-loyalty-card__meta {
  margin-top: 0.55rem;
}
.wgb-loyalty-card__p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--wgb-muted);
  line-height: 1.5;
}
.wgb-loyalty-bullets {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: var(--wgb-muted);
  line-height: 1.55;
}
.wgb-loyalty-section {
  margin: 0 0 1.1rem;
}
.wgb-loyalty-section__h {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 700;
}
.wgb-loyalty-section__intro {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--wgb-muted);
  line-height: 1.45;
}
.wgb-loyalty-rules {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.wgb-loyalty-rule {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  width: 100%;
  margin: 0;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--wgb-border);
  border-radius: var(--wgb-radius);
  background: var(--wgb-card);
  text-align: left;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.wgb-loyalty-rule:hover,
.wgb-loyalty-rule:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}
.wgb-loyalty-rule__icon {
  flex: 0 0 auto;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
}
.wgb-loyalty-rule--review .wgb-loyalty-rule__icon {
  background: rgba(100, 160, 255, 0.16);
}
.wgb-loyalty-rule--story .wgb-loyalty-rule__icon {
  background: rgba(255, 120, 180, 0.14);
}
.wgb-loyalty-rule__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.wgb-loyalty-rule__title {
  font-size: 0.88rem;
  font-weight: 700;
}
.wgb-loyalty-rule__desc {
  font-size: 0.75rem;
  color: var(--wgb-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wgb-loyalty-rule__pts {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--wgb-accent);
  margin-top: 0.15rem;
}
.wgb-loyalty-rule__edit {
  flex: 0 0 auto;
  color: var(--wgb-muted);
  font-size: 0.9rem;
}
.wgb-loyalty-hist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.wgb-loyalty-hist-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--wgb-border);
  font-size: 0.84rem;
}
.wgb-loyalty-hist-row:last-child {
  border-bottom: none;
}
.wgb-loyalty-hist-row__d {
  flex: 0 0 3.5rem;
  font-weight: 800;
  font-feature-settings: 'tnum' 1;
  font-variant-numeric: tabular-nums;
}
.wgb-loyalty-hist-row__d--plus {
  color: #81c784;
}
.wgb-loyalty-hist-row__d--minus {
  color: #e57373;
}
.wgb-loyalty-hist-row__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.wgb-loyalty-hist-row__note {
  color: var(--wgb-text);
}
.wgb-loyalty-hist-row__date {
  font-size: 0.72rem;
  color: var(--wgb-muted);
}
.wgb-loyalty-empty {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
  color: var(--wgb-muted);
  line-height: 1.4;
}
.wgb-loyalty-balance {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--wgb-muted);
}
.wgb-loyalty-balance strong {
  color: var(--wgb-accent);
  font-size: 1.05em;
}
.wgb-loyalty-rw-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.wgb-loyalty-rw {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--wgb-border);
  border-radius: var(--wgb-radius);
  background: var(--wgb-card);
}
@media (min-width: 360px) {
  .wgb-loyalty-rw {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.wgb-loyalty-rw--dim {
  opacity: 0.6;
}
.wgb-loyalty-rw__body {
  flex: 1;
  min-width: 0;
}
.wgb-loyalty-rw__name {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  font-weight: 700;
}
.wgb-loyalty-rw__desc {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: var(--wgb-muted);
  line-height: 1.35;
}
.wgb-loyalty-rw__cost {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--wgb-accent);
}
.wgb-loyalty-rw .wgb-btn--sm {
  width: 100%;
  max-width: 9rem;
  margin: 0;
  align-self: flex-end;
}
.wgb-loyalty-modal__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
}
.wgb-loyalty-modal__ruletitle {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--wgb-text);
  line-height: 1.3;
}
.wgb-loyalty-modal__desc {
  margin-top: 0.15rem;
  margin-bottom: 0.4rem;
}
.wgb-loyalty-modal__meta {
  font-size: 0.8rem;
  color: var(--wgb-muted);
  margin: 0 0 0.5rem;
}
.wgb-loyalty-modal__hint {
  font-size: 0.78rem;
  color: var(--wgb-muted);
  line-height: 1.4;
  margin: 0 0 0.75rem;
}
.wgb-loyalty-modal__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.2rem;
}
.wgb-loyalty-modal__actions .wgb-btn {
  flex: 1 1 auto;
  min-width: 0;
}
.wgb-loyalty-modal__sheet {
  max-height: min(92dvh, var(--wgb-app-h, 92dvh));
}
.wgb-modal__body--wide {
  max-width: 100%;
}

.wgb-profile-row {
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--wgb-border);
}
.wgb-profile-row:last-child { border-bottom: none; }
.wgb-profile-row__label { font-size: 0.82rem; color: var(--wgb-muted); }
.wgb-profile-row__val { font-size: 0.88rem; text-align: right; word-break: break-all; }

.wgb-profile-car-hint { margin: 0 0 0.65rem; line-height: 1.45; }
.wgb-profile-car-hint-after-hero {
  text-align: center;
  margin: 0.4rem 0.75rem 0;
  font-size: 0.82rem;
  color: var(--wgb-muted);
}

.wgb-profile-photo-pick {
  margin-bottom: 1rem;
}
.wgb-profile-photo-pick h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}
.wgb-car-photo-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.65rem;
}
.wgb-car-photo-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 2px solid transparent;
  border-radius: 12px;
  background: color-mix(in srgb, var(--wgb-card-solid) 88%, transparent);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wgb-car-photo-stage:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--wgb-accent) 45%, transparent);
}
.wgb-car-photo-stage.is-picked {
  border-color: var(--wgb-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--wgb-accent) 35%, transparent);
}
.wgb-car-photo-stage:disabled {
  opacity: 0.55;
  cursor: wait;
}
.wgb-car-photo-stage__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: color-mix(in srgb, var(--wgb-shell) 90%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wgb-car-photo-stage__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.wgb-car-photo-stage__label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--wgb-muted);
  line-height: 1.2;
  text-align: center;
}

/* Полная ширина экрана телефона (выход из padding .wgb) */
.wgb-profile-car-bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  margin-bottom: 1rem;
  text-align: center;
}

.wgb-profile-car-hero-wrap {
  position: relative;
  width: 100%;
}

/* Целиком авто + слегка скруглённые углы (~15%) */
.wgb-profile-car-visual {
  width: 100%;
  min-height: 36vh;
  max-height: min(56vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--wgb-card-solid) 90%, transparent) 0%, color-mix(in srgb, var(--wgb-shell) 92%, transparent) 100%);
  border-radius: 15%;
  overflow: hidden;
  padding: clamp(0.5rem, 2vw, 1rem);
  box-sizing: border-box;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.wgb-profile-car-visual img {
  max-width: 100%;
  max-height: min(50vh, 500px);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  pointer-events: none;
}
.wgb-profile-car-visual--default {
  cursor: default;
}
.wgb-profile-car-visual--empty {
  color: var(--wgb-muted);
}
.wgb-profile-car-visual--empty span {
  font-size: clamp(2.5rem, 12vmin, 4rem);
  line-height: 1;
  opacity: 0.4;
}
.wgb-profile-car-caption {
  margin: 0.55rem 1rem 0.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--wgb-text);
}

.wgb-profile-card--no-avatar {
  padding-top: 1.1rem;
}

/* ── Rating stars ── */
.wgb-stars { display: flex; gap: 0.25rem; }
.wgb-star {
  border: none; background: none; cursor: pointer; font-size: 1.5rem; color: var(--wgb-muted);
  padding: 0; line-height: 1; transition: color 0.1s;
}
.wgb-star.is-on { color: #ffc107; }

/* ── Modal ── */
.wgb-modal {
  position: fixed; inset: 0; z-index: 95; display: flex; align-items: flex-end; justify-content: center;
  padding: 0 max(0.35rem, var(--wgb-safe-l)) 0 max(0.35rem, var(--wgb-safe-r));
  background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: wgb-fade-in .2s ease;
}
.wgb-modal__body {
  width: 100%;
  max-width: 42rem;
  max-height: min(85dvh, calc(var(--wgb-app-h, 100dvh) - 0.5rem), 760px);
  overflow-y: auto;
  overflow-x: hidden;
  touch-action: pan-y;
  overscroll-behavior: contain;
  background: var(--wgb-sheet-bg);
  border-radius: 28px 28px 0 0;
  border: 1px solid var(--wgb-border);
  border-bottom: none;
  box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.18);
  padding: 0.85rem 1rem calc(1.15rem + var(--wgb-safe-b));
  animation: wgb-slide-up .25s ease;
}
.wgb-sheet-handle {
  width: 2.9rem;
  height: 0.34rem;
  margin: 0 auto 0.9rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--wgb-muted) 48%, transparent);
}
.wgb-modal__actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.wgb-modal__actions .wgb-btn {
  flex: 1 1 0;
  margin-top: 0;
}
@keyframes wgb-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes wgb-slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* Акт выполненных работ — полноэкранный просмотр */
.wgb-modal--act {
  align-items: stretch;
  padding: 0 max(0.35rem, var(--wgb-safe-l)) max(0, var(--wgb-safe-b)) max(0.35rem, var(--wgb-safe-r));
}
.wgb-modal__body--act {
  max-width: none;
  width: 100%;
  max-height: min(92dvh, calc(var(--wgb-app-h, 100dvh) - 0.25rem), 900px);
  display: flex;
  flex-direction: column;
  padding-top: 0.55rem;
}
.wgb-act-modal__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.wgb-act-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex: 1 1 auto;
  min-width: 0;
}
.wgb-act-modal__toolbar-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.wgb-act-modal__frame {
  flex: 1 1 auto;
  min-height: min(62dvh, 28rem);
  width: 100%;
  border: 1px solid var(--wgb-border);
  border-radius: 12px;
  background: #fff;
}
iframe.wgb-act-modal__frame {
  border: 0;
  display: block;
}

/* Компактная оценка визита (5 звёзд) */
.wgb-modal--rate {
  align-items: flex-end;
}
.wgb-modal__body--rate {
  max-width: 22rem;
  width: 100%;
  padding-top: 0.65rem;
  padding-bottom: calc(1rem + var(--wgb-safe-b));
}
.wgb-rate-modal__title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}
.wgb-rate-modal__hint {
  margin: 0 0 0.85rem;
  text-align: center;
  font-size: 0.82rem;
}
.wgb-stars--rate {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.wgb-stars--rate .wgb-star {
  font-size: 2rem;
  padding: 0.15rem;
}
.wgb-rate-branch {
  margin-top: 0.65rem;
}
.wgb-rate-branch__field {
  margin-bottom: 0.75rem;
}
.wgb-rate-2gis-hint {
  margin: 0 0 0.75rem;
  text-align: center;
  line-height: 1.45;
}
.wgb-2gis-review {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
}
.wgb-2gis-review.card {
  background: var(--wgb-card-solid);
  border-radius: var(--wgb-radius, 16px);
  border: 1px solid color-mix(in srgb, var(--wgb-text) 8%, transparent);
}
.wgb-2gis-review--inline {
  margin: 0.5rem 0 0.75rem;
  padding: 0;
  background: transparent;
  border: 0;
}
.wgb-2gis-review__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}
.wgb-2gis-review__hint {
  margin: 0 0 0.75rem;
  line-height: 1.45;
}
.wgb-2gis-review__embed {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  margin: 0.25rem 0 0.65rem;
  overflow: hidden;
  border-radius: 12px;
  background: color-mix(in srgb, var(--wgb-shell) 88%, transparent);
}
.wgb-2gis-review__frame {
  width: 100%;
  max-width: 320px;
  height: 52px;
  border: 0;
  display: block;
  background: transparent;
}
.wgb-2gis-review__link {
  display: inline-block;
  font-size: 0.82rem;
}
.wgb-rate-branch__submit {
  width: 100%;
  margin-top: 0;
}
.wgb-rate-modal__cancel {
  width: 100%;
  margin-top: 0.65rem;
}

/* ── Welcome overlay ── */
.wgb-welcome {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  padding: calc(1.5rem + var(--wgb-safe-t)) max(1.5rem, var(--wgb-safe-l)) 1.5rem max(1.5rem, var(--wgb-safe-r));
  background: rgba(8,8,8,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  overflow-x: hidden;
  touch-action: pan-y;
  opacity: 0; transition: opacity .45s ease; pointer-events: none;
}
.wgb-welcome.is-visible { opacity: 1; pointer-events: auto; }
.wgb-welcome.is-leaving { opacity: 0; transition: opacity .35s ease; }
.wgb-welcome__glow {
  position: absolute; width: min(90vw,320px); height: min(90vw,320px); border-radius: 50%;
  background: radial-gradient(circle, rgba(200,245,66,.22) 0%, transparent 68%);
  filter: blur(2px); animation: wgb-welcome-pulse 2.2s ease-in-out infinite;
}
.wgb-welcome--new .wgb-welcome__glow {
  background: radial-gradient(circle, rgba(200,245,66,.32) 0%, rgba(200,245,66,.08) 45%, transparent 70%);
  animation-duration: 1.6s;
}
@keyframes wgb-welcome-pulse { 0%,100% { transform: scale(.92); opacity: .75; } 50% { transform: scale(1.05); opacity: 1; } }
.wgb-welcome__card { position: relative; text-align: center; max-width: 20rem; animation: wgb-welcome-pop .65s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes wgb-welcome-pop { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
.wgb-welcome__title { margin: 0 0 .35rem; font-size: 1.45rem; font-weight: 700; letter-spacing: -.03em; color: var(--wgb-text); }
.wgb-welcome--new .wgb-welcome__title { color: var(--wgb-accent); }
.wgb-welcome__name { margin: 0; min-height: 1.35em; font-size: 1rem; color: var(--wgb-muted); transition: color .3s ease; }
.wgb-welcome.is-visible .wgb-welcome__name:not(:empty) { color: var(--wgb-text); }

/* ── Post chips (выбор поста) ── */
.wgb-post-chips {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.wgb-post-chip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.85rem 0.5rem;
  border-radius: var(--wgb-radius);
  border: 2px solid var(--wgb-border);
  background: var(--wgb-card);
  color: var(--wgb-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, color 0.2s;
}

.wgb-post-chip:hover {
  border-color: rgba(84, 148, 255, 0.45);
  transform: translateY(-1px);
}

.wgb-post-chip.is-active {
  border-color: var(--wgb-accent);
  color: var(--wgb-accent);
  box-shadow: 0 0 0 3px var(--wgb-accent-dim), 0 4px 14px rgba(84, 148, 255, 0.15);
  background: rgba(84, 148, 255, 0.08);
}

.wgb-post-chip__icon {
  font-size: 1.6rem;
  line-height: 1;
}

.wgb-post-chip__name {
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.wgb-post-chip--anim {
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  animation: wgb-post-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes wgb-post-pop {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wgb-post-chip.is-active .wgb-post-chip__icon {
  animation: wgb-post-bounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes wgb-post-bounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.wgb-pay-field .wgb-pay-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.wgb-pay-opt {
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--wgb-border);
  background: var(--wgb-surface-strong);
  color: var(--wgb-text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.wgb-pay-opt.is-active {
  border-color: var(--wgb-accent);
  background: var(--wgb-accent-dim);
}
.wgb-pay-hint { margin: 0.45rem 0 0; font-size: 0.82rem; line-height: 1.35; }

.wgb-modal--pay { align-items: flex-end; }
.wgb-modal__body--pay {
  width: min(100%, 24rem);
  border-radius: 1rem 1rem 0 0;
  padding: 1.1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
}
.wgb-pay-modal__title { margin: 0 0 0.35rem; font-size: 1.05rem; }
.wgb-pay-modal__amount { margin: 0 0 0.25rem; font-size: 1.35rem; font-weight: 700; }
.wgb-pay-modal__service { margin: 0 0 0.35rem; }
.wgb-pay-modal__hint { margin: 0 0 0.85rem; line-height: 1.4; font-size: 0.84rem; }
.wgb-pay-modal__actions { display: grid; gap: 0.5rem; }

/* ── Детейлинг: действия и модальные окна ── */
.wgb-consult-lead {
  margin: 0 0 0.65rem;
  line-height: 1.45;
}
.wgb-consult-empty {
  margin: 0;
}
.wgb-consult-contacts-wrap {
  display: grid;
  gap: 0.7rem;
}
.wgb-consult-contacts-group {
  display: grid;
  gap: 0.28rem;
}
.wgb-consult-contacts__group-title {
  margin: 0;
  padding-left: 0.1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--wgb-muted);
  line-height: 1.2;
}
.wgb-consult-contacts {
  display: grid;
  gap: 0.35rem;
}
.wgb-consult-contact {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.45rem 0.65rem;
  border-radius: 12px;
  border: 1px solid var(--wgb-border);
  background: color-mix(in srgb, var(--wgb-card-solid) 92%, transparent);
  color: var(--wgb-text);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.15s ease;
}
.wgb-consult-contact:hover {
  border-color: var(--wgb-accent-border-soft);
  background: color-mix(in srgb, var(--wgb-accent) 8%, var(--wgb-card-solid));
  transform: translateY(-1px);
}
.wgb-consult-contact:active {
  transform: scale(0.99);
}
.wgb-consult-contact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--wgb-accent-dim);
  color: var(--wgb-accent);
  border: 1px solid var(--wgb-accent-border-soft);
}
.wgb-consult-contact__svg {
  display: block;
  width: 15px;
  height: 15px;
}
.wgb-consult-contact__body {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
  flex: 1;
}
.wgb-consult-contact__label {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.wgb-consult-contact__value {
  font-size: 0.74rem;
  line-height: 1.25;
  color: var(--wgb-muted);
  word-break: break-word;
}
html.wgb-mobile .wgb-consult-contact {
  min-height: 44px;
  padding: 0.48rem 0.7rem;
}
.wgb-consult-section--form {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--wgb-border);
}
.wgb-consult-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.5rem;
}
.wgb-consult-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--wgb-border);
  background: var(--wgb-card);
  color: var(--wgb-text);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.wgb-consult-action:hover {
  border-color: rgba(240, 184, 87, 0.45);
  transform: translateY(-1px);
}
.wgb-consult-action__icon {
  font-size: 1.45rem;
  line-height: 1;
}
.wgb-consult-action__label {
  font-size: 0.95rem;
  font-weight: 600;
}
.wgb-consult-action--contacts {
  margin-top: 0.5rem;
}
.wgb-consult-action--contacts .wgb-consult-contact__icon {
  width: 34px;
  height: 34px;
}
.wgb-consult-action__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 0.12rem;
}
.wgb-consult-action__sub {
  color: var(--wgb-muted);
  font-size: 0.78rem;
  font-weight: 500;
}
.wgb-modal--consult {
  z-index: 60;
}
.wgb-modal__body--consult {
  max-width: 26rem;
}
.wgb-consult-modal__title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}
.wgb-consult-modal__hint {
  margin: 0 0 0.85rem;
  line-height: 1.45;
}
.wgb-consult-modal__links {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.wgb-consult-modal__group > p {
  margin: 0 0 0.4rem;
  padding-left: 0.1rem;
  color: var(--wgb-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.wgb-consult-modal__link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--wgb-border);
  background: var(--wgb-card);
  color: var(--wgb-text);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.wgb-consult-modal__link:hover {
  border-color: var(--wgb-gold);
  transform: translateY(-1px);
}
.wgb-consult-modal__link span {
  font-size: 0.82rem;
  color: var(--wgb-muted);
  word-break: break-all;
}
.wgb-consult-modal__link--static {
  cursor: default;
}
.wgb-textarea {
  width: 100%;
  min-height: 4.5rem;
  resize: vertical;
  font-family: inherit;
}

/* ── Empty state ── */
.wgb-empty { text-align: center; padding: 3rem 1rem; }
.wgb-empty__icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.wgb-empty__text { color: var(--wgb-muted); font-size: 0.9rem; }

/* ── Мойка: три кадра авто (консоль → профиль → виджет) ── */
.wgb-wash-visual {
  margin: 0.75rem 0 1.25rem;
  padding: 1rem;
  border-radius: var(--wgb-radius);
  border: 1px solid var(--wgb-border);
  background: var(--wgb-card);
}
.wgb-wash-visual--hint {
  border-style: dashed;
}
.wgb-wash-visual__title {
  font-size: 0.8rem;
  color: var(--wgb-muted);
  margin: 0 0 0.35rem;
}
.wgb-wash-visual__cap {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.35;
}
.wgb-wash-visual__hint {
  color: var(--wgb-muted);
  font-weight: 400;
}
.wgb-wash-visual__imgwrap {
  border-radius: 10px;
  overflow: hidden;
  background: var(--wgb-surface-strong);
  aspect-ratio: 16 / 10;
}
.wgb-wash-visual__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.35s ease;
}
.wgb-wash-visual__dots {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 0.65rem;
}
.wgb-wash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}
.wgb-wash-dot.is-on {
  background: var(--wgb-accent);
  box-shadow: 0 0 0 3px var(--wgb-accent-dim);
}
.wgb-wash-visual__story {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
}

.wgb-wash-success-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 1rem 0 0.35rem;
  flex-wrap: wrap;
}
.wgb-wash-success-strip img {
  width: 28%;
  max-width: 110px;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--wgb-border);
  animation: wgb-strip-in 0.6s ease both;
}
.wgb-wash-success-strip img:nth-child(1) { animation-delay: 0.05s; }
.wgb-wash-success-strip img:nth-child(3) { animation-delay: 0.15s; }
.wgb-wash-success-strip img:nth-child(5) { animation-delay: 0.25s; }
.wgb-wash-success-strip__arrow {
  color: var(--wgb-muted);
  font-size: 0.85rem;
}
@keyframes wgb-strip-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.wgb-wash-success-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--wgb-muted);
  margin: 0 0 0.5rem;
}

.wgb-bcard__wash-strip {
  display: flex;
  gap: 4px;
  margin: 0 0 0.5rem;
}
.wgb-bcard__wash-strip img {
  flex: 1;
  min-width: 0;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--wgb-border);
}

@media (max-width: 380px) {
  .wgb-theme-card-grid {
    grid-template-columns: 1fr;
  }
  .wgb-tabbar__btn > span {
    font-size: 0.6rem;
  }
  .wgb-svc-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }
  .wgb-svc-head__badges {
    justify-self: start;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .wgb-svc-price {
    min-height: 2.35rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.92rem;
  }
}

/* PWA / «Добавить на экран Домой» — корень на visualViewport, таббар вплотную к низу */
html.wgb-standalone:not(.wgb-desktop),
html.wgb-standalone:not(.wgb-desktop) body,
html.wgb-standalone:not(.wgb-desktop) .wgb {
  min-height: 0;
  height: var(--wgb-app-h, 100dvh);
  max-height: var(--wgb-app-h, 100dvh);
}
@media (display-mode: standalone), (display-mode: fullscreen) {
  html:not(.wgb-desktop),
  html:not(.wgb-desktop) body,
  html:not(.wgb-desktop) .wgb {
    min-height: 0;
    height: var(--wgb-app-h, 100dvh);
    max-height: var(--wgb-app-h, 100dvh);
  }
  .wgb-tabbar {
    margin-top: auto;
    margin-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    padding: 0.42rem 0.4rem;
  }
}

.wgb-profile-push {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
}
.wgb-profile-push__hint {
  margin: 0 0 0.85rem;
  line-height: 1.45;
}
.wgb-profile-push__btn {
  width: 100%;
}
.wgb-profile-push__btn:disabled {
  opacity: 0.72;
}

.wgb-profile-push--compact {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
}
.wgb-profile-push--compact .wgb-profile-push__hint {
  margin-bottom: 0.65rem;
}

.wgb-push-banner {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--wgb-accent) 14%, var(--wgb-card-solid));
  border: 1px solid color-mix(in srgb, var(--wgb-accent) 28%, transparent);
}
.wgb-push-banner__text {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--wgb-text);
}
.wgb-push-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.wgb-btn--sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  min-height: auto;
}

.wgb-car-photo-stages--compact {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 1rem 0.65rem;
  margin-top: -0.25rem;
}
.wgb-car-photo-stages--compact .wgb-car-photo-stage {
  flex: 0 0 calc(25% - 0.35rem);
  max-width: 4.5rem;
  padding: 0.25rem;
}
.wgb-car-photo-stages--compact .wgb-car-photo-stage__img {
  aspect-ratio: 1;
}

/* ── Certificate scene shell (video background) ── */
html, body {
  background: #0B0E11;
  font-family: var(--wgb-font);
}
h1, h2, h3, .wgb-auth__title, .wgb-welcome__title, .wgb-svc-detail__title {
  font-family: var(--wgb-heading, var(--wgb-font));
  text-wrap: balance;
}
.wgb > :not(.wgb-scene) { position: relative; z-index: 1; }
.wgb-loading {
  background:
    radial-gradient(ellipse 80% 50% at 50% 40%, rgba(194, 232, 56, 0.12), transparent 55%),
    rgba(11, 14, 17, 0.46);
}
.wgb-loading__ring--glow {
  box-shadow: 0 0 28px rgba(194, 232, 56, 0.28);
}
.wgb-loading__ring--spin {
  border-top-color: var(--wgb-accent) !important;
}
.wgb-auth__ambient {
  background: radial-gradient(ellipse at center, rgba(194, 232, 56, 0.16) 0%, transparent 70%);
}
.wgb-auth__card {
  padding: 1.35rem 1.15rem 1.3rem;
  border-radius: 22px;
  border: 1px solid rgba(214, 255, 74, 0.22);
  background: rgba(8, 9, 11, 0.88);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}
.wgb-auth__title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-align: left;
}
.wgb-auth__back-catalog {
  display: block;
  min-height: 44px;
  margin: 0.45rem auto 0;
  padding: 0.65rem 0.9rem;
  color: var(--wgb-muted);
}
.wgb-guest-intro {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 0 0 1rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(214, 255, 74, 0.28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(214, 255, 74, 0.14), rgba(8, 9, 11, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 10px 28px rgba(0, 0, 0, 0.28);
  opacity: 1;
  animation: none;
}
.wgb-guest-intro > div {
  min-width: 0;
}
.wgb-guest-intro strong,
.wgb-guest-intro span {
  display: block;
  text-wrap: pretty;
}
.wgb-guest-intro strong {
  margin-bottom: 0.18rem;
  font-size: 0.82rem;
}
.wgb-guest-intro span {
  color: var(--wgb-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}
.wgb-guest-intro__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
}
.wgb-guest-intro__login {
  flex: 0 0 auto;
  min-width: 4.75rem;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(214, 255, 74, 0.3);
  border-radius: 12px;
  color: var(--wgb-accent);
  background: rgba(214, 255, 74, 0.07);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 750;
  cursor: pointer;
  transition-property: background-color, border-color, transform;
  transition-duration: 150ms;
}
.wgb-guest-intro__login:active {
  transform: scale(0.96);
}
.wgb-guest-intro__dismiss {
  flex: 0 0 auto;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--wgb-muted);
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.wgb-guest-intro__dismiss:active {
  transform: scale(0.96);
}

/* Compact contrast backing for copy placed directly over the moving scene. */
html.wgb-atelier #wgb-main-inner > h1,
html.wgb-atelier #wgb-main-inner > .wgb-back,
html.wgb-atelier #wgb-main-inner > .wgb-sub,
html.wgb-atelier #wgb-main-inner > .wgb-field > label {
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f6f6f3;
  background: rgba(5, 6, 7, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 4px 14px rgba(0, 0, 0, 0.16);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
html.wgb-atelier #wgb-main-inner > h1 {
  padding: 0.12em 0.36em 0.16em;
  border-radius: 9px;
}
html.wgb-atelier #wgb-main-inner > .wgb-back {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.42rem 0.58rem;
  border-radius: 10px;
}
html.wgb-atelier #wgb-main-inner > .wgb-sub {
  padding: 0.24rem 0.44rem;
  border-radius: 8px;
  line-height: 1.4;
}
html.wgb-atelier #wgb-main-inner > .wgb-field > label {
  display: inline-block;
  padding: 0.16rem 0.4rem;
  border-radius: 7px;
}
html.wgb-atelier #wgb-main-inner > .wgb-field .vmm-field__label {
  align-self: flex-start;
  padding: 0.14rem 0.36rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  color: #f6f6f3;
  background: rgba(5, 6, 7, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.wgb-tabbar__btn.is-locked:not(.is-active) .wgb-tabbar__icon-wrap {
  opacity: 0.72;
}
.wgb-tabbar__btn.is-locked:not(.is-active) .wgb-tabbar__icon-wrap::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--wgb-shell);
  border-radius: 50%;
  background: var(--wgb-accent);
  content: "";
}
.wgb-btn:active { transform: scale(0.96); }
.wgb-btn--ghost {
  background: transparent;
  color: var(--wgb-text);
  border-color: var(--wgb-border);
  box-shadow: none;
}
.wgb-input:focus {
  outline: none;
  border-color: var(--wgb-accent);
  box-shadow: 0 0 0 4px var(--wgb-accent-dim);
}
html.wgb-atelier .wgb-tabbar,
html.wgb-scene .wgb-tabbar {
  max-width: min(560px, calc(100% - 1.75rem));
  width: calc(100% - 1.75rem);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  padding: 0.42rem 0.4rem;
  border-radius: 30px;
  border: 0.8px solid rgba(255, 255, 255, 0.17);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  background: rgba(0, 0, 0, 0.76) !important;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.58),
    0 0 0 0.5px rgba(255, 255, 255, 0.04);
}
.wgb-tabbar::after {
  display: none;
}
.wgb-tabbar__btn.is-active {
  color: #fff;
}
.wgb-tabbar__btn.is-active::before {
  opacity: 1;
  transform: scale(1);
  background: radial-gradient(circle at center, rgba(194, 232, 56, 0.42) 0%, rgba(194, 232, 56, 0.1) 48%, transparent 72%);
}
.wgb-tabbar__icon-wrap {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  transition-property: background-color, border-color, box-shadow, transform;
  transition-duration: 160ms;
}
.wgb-tabbar__btn.is-active .wgb-tabbar__icon-wrap {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #fff;
}
.wgb-svc-card {
  border-radius: 22px;
  border-color: rgba(194, 232, 56, 0.22);
  animation: wgb-card-in 0.48s cubic-bezier(.2,.8,.2,1) both;
}
.wgb-svc-card,
.wgb-svc {
  background: rgba(8, 9, 11, 0.82);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
.wgb-svc-card:nth-child(1) { animation-delay: 40ms; }
.wgb-svc-card:nth-child(2) { animation-delay: 80ms; }
.wgb-svc-card:nth-child(3) { animation-delay: 120ms; }
.wgb-svc-card:nth-child(4) { animation-delay: 160ms; }
.wgb-svc-card:nth-child(5) { animation-delay: 200ms; }
.wgb-svc-card:nth-child(6) { animation-delay: 240ms; }
.wgb-svc-img {
  border-radius: 14px;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
}
.wgb-svc-price {
  font-variant-numeric: tabular-nums;
  color: var(--wgb-accent);
  font-weight: 800;
}
.wgb-bcard {
  border-radius: 20px;
  animation: wgb-card-in 0.42s cubic-bezier(.2,.8,.2,1) both;
}
.wgb-tabs {
  padding: 0.28rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}
.wgb-tab.is-active {
  background: rgba(214, 255, 82, 0.14);
  color: var(--wgb-accent);
}
#wgb-main-inner.wgb-main--nav-enter {
  animation: wgb-main-nav-enter 0.46s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes wgb-main-nav-enter {
  from { opacity: 0; transform: translateY(16px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes wgb-card-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes wgb-ring-spin { to { transform: rotate(360deg); } }
.wgb-welcome {
  background: rgba(5, 6, 8, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.wgb-welcome__glow {
  background: radial-gradient(circle at 50% 40%, rgba(214, 255, 82, 0.28), transparent 55%);
}
.wgb-welcome__emblem {
  position: relative;
  width: 6rem;
  height: 6rem;
  margin: 0 auto 0.75rem;
}
.wgb-welcome__emblem img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.wgb-welcome__ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, transparent 50%, var(--wgb-accent), #fff);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: wgb-ring-spin 2.4s linear infinite;
}
.wgb-welcome__brand {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--wgb-muted);
}
.wgb-welcome__bar {
  width: min(10rem, 70%);
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.wgb-welcome__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(214,255,82,0.2), var(--wgb-accent));
}
.wgb-welcome.is-visible .wgb-welcome__bar i {
  animation: wgb-welcome-bar 1.5s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes wgb-welcome-bar { to { width: 100%; } }
.wgb-modal__body {
  border-radius: 24px;
  border-color: rgba(214, 255, 82, 0.16);
}
:root[data-wgb-theme='light'] .wgb-tabbar {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
}
:root[data-wgb-theme='light'] .wgb-tabbar__btn.is-active {
  color: var(--wgb-text);
}
:root[data-wgb-theme='light'] .wgb-tabbar__btn.is-active .wgb-tabbar__icon-wrap {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--wgb-text);
}
:root[data-wgb-theme='light'] .wgb-tabbar__btn.is-active::before {
  background: radial-gradient(circle at center, rgba(194, 232, 56, 0.55) 0%, rgba(194, 232, 56, 0.12) 50%, transparent 72%);
}
@media (prefers-reduced-motion: reduce) {
  .wgb-welcome__ring,
  .wgb-svc-card,
  .wgb-bcard,
  .wgb-welcome__bar i {
    animation: none !important;
  }
}

/* ── UX overhaul: services + wash booking ── */
.wgb-tabs--primary {
  margin-top: 0.15rem;
}
.wgb-tabs--primary .wgb-tab {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  min-height: 44px;
}
.wgb-tabs--primary .wgb-tab.is-active {
  /* Solid brand fill — no alpha so the scene cannot show through */
  background: var(--wgb-accent);
  color: var(--wgb-ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.wgb-svc-card__desc {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--wgb-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.wgb-svc-card__cta {
  display: inline-flex;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--wgb-accent);
}
.wgb-svc-card--detailing .wgb-svc-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.wgb-book-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  line-height: 1.2;
}
.wgb-book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--wgb-muted);
  font-size: 0.86rem;
}
.wgb-book-head {
  margin-bottom: 0.35rem;
}
.wgb-modal--svc-video {
  align-items: center;
  z-index: 200;
  pointer-events: auto;
  padding: max(0.75rem, var(--wgb-safe-t)) max(0.5rem, var(--wgb-safe-r)) max(0.75rem, var(--wgb-safe-b)) max(0.5rem, var(--wgb-safe-l));
}
.wgb-modal__body--svc-video {
  position: relative;
  width: min(calc(100vw - 2rem), 34rem);
  max-height: min(88dvh, calc(var(--wgb-app-h, 100dvh) - 1rem));
  margin: 0;
  padding: 0.55rem;
  border-radius: 18px;
  border: 1px solid var(--wgb-border);
  background: #050607;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  animation: wgb-fade-in 0.2s ease;
  overflow: hidden;
  pointer-events: auto;
}
.wgb-svc-video-close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.wgb-svc-video-player {
  display: block;
  width: 100%;
  max-height: min(78dvh, calc(var(--wgb-app-h, 100dvh) - 3rem));
  border-radius: 12px;
  background: #000;
  outline: none;
}
:root[data-wgb-theme='light'] .wgb-modal__body--svc-video {
  background: #12151a;
}
.wgb-date-strip-field {
  margin-bottom: 0.85rem;
}
.wgb-date-strip-field__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.35rem;
}
.wgb-includes-open {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0.15rem 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--wgb-accent);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wgb-includes-open:hover,
.wgb-includes-open:focus-visible {
  color: var(--wgb-text);
  outline: none;
}
.wgb-includes-open:focus-visible {
  text-decoration: underline;
}
/* #app.wgb sets `position:relative; z-index:1` on direct children via
   `.wgb > :not(.wgb-scene)` — that would demote fixed modals and steal taps. */
.wgb > .wgb-modal {
  position: fixed !important;
  inset: 0;
  z-index: 200;
  pointer-events: auto;
}
.wgb-modal--includes {
  align-items: flex-end;
  z-index: 200;
  pointer-events: auto;
}
.wgb-includes-sheet {
  display: flex;
  flex-direction: column;
  max-height: min(88dvh, 720px);
  overflow: hidden;
  pointer-events: auto;
}
.wgb-includes-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.wgb-includes-actions {
  flex: 0 0 auto;
  margin-top: 0.75rem;
  padding-top: 0.15rem;
}
.wgb-includes-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex: 0 0 auto;
}
.wgb-modal--includes .wgb-garage-close,
.wgb-modal--includes .wgb-btn {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  touch-action: manipulation;
}
.wgb-includes-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.wgb-includes-svc {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--wgb-muted);
}
.wgb-includes-section {
  margin-bottom: 0.95rem;
}
.wgb-includes-section__title {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--wgb-muted);
}
.wgb-includes-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  white-space: pre-wrap;
  color: var(--wgb-text);
}
.wgb-includes-list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  display: grid;
  gap: 0.4rem;
}
.wgb-includes-list__item {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--wgb-text);
}
.wgb-includes-empty {
  margin: 0.25rem 0 0.5rem;
}
.wgb-date-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.15rem 0 0.35rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}
.wgb-date-strip::-webkit-scrollbar {
  display: none;
}
.wgb-date-chip {
  flex: 0 0 auto;
  min-width: 3.1rem;
  min-height: 3.5rem;
  padding: 0.4rem 0.45rem;
  border-radius: 12px;
  border: 1px solid var(--wgb-border);
  background: var(--wgb-card);
  color: var(--wgb-text);
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
.wgb-date-chip:disabled {
  opacity: 0.58;
  color: var(--wgb-muted);
  cursor: not-allowed;
}
.wgb-date-chip__wd {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--wgb-muted);
  letter-spacing: 0.04em;
}
.wgb-date-chip__day {
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.wgb-date-chip.is-picked {
  border-color: rgba(200, 245, 66, 0.55);
  background: rgba(200, 245, 66, 0.12);
}
.wgb-date-chip--alt {
  min-height: 44px;
  min-width: auto;
  padding: 0.45rem 0.7rem;
  flex-direction: row;
  font-size: 0.82rem;
  font-weight: 600;
}
.wgb-date-native {
  display: none !important;
}
.wgb-slots-empty {
  margin: 0;
  display: block;
}
.wgb-slots-skel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.wgb-slots-skel--wheel {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  height: calc(2.75rem * 5);
  padding: 0.55rem 0.65rem;
  border-radius: 14px;
  border: 1px solid var(--wgb-border);
  gap: 0.35rem;
  justify-content: center;
}
.wgb-slots-skel span {
  width: 5.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  animation: wgb-skel-pulse 1.1s ease-in-out infinite;
}
.wgb-slots-skel--wheel span {
  width: 100%;
  height: 2.1rem;
  border-radius: 8px;
}
@keyframes wgb-skel-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}
.wgb-slot-alts { width: 100%; min-width: 0; }
.wgb-slot-alts__row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.2rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.wgb-slot-alts__row::-webkit-scrollbar { display: none; }
.wgb-slot-alts .wgb-date-chip--alt { flex: 0 0 auto; white-space: nowrap; }
.wgb-book-summary {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.82rem;
  color: var(--wgb-muted);
  line-height: 1.35;
}
.wgb-book-gallery {
  margin: 0.5rem 0 1rem;
  border: 1px solid var(--wgb-border);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  background: var(--wgb-card);
}
.wgb-book-gallery > summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--wgb-muted);
  list-style: none;
}
.wgb-book-gallery > summary::-webkit-details-marker {
  display: none;
}
.wgb-book-gallery[open] > summary {
  margin-bottom: 0.55rem;
  color: var(--wgb-text);
}
.wgb-book {
  height: auto;
  min-height: auto;
  overflow: visible;
}
.wgb-book-cta-spacer {
  display: none;
  height: 0;
  flex-shrink: 0;
  pointer-events: none;
}
.wgb:has(#wgb-tabbar.hidden) .wgb-book-cta-spacer {
  height: calc(var(--wgb-book-cta-h) + 0.85rem + env(safe-area-inset-bottom, 0px));
}
.wgb-book-cta.sticky {
  position: static;
  left: auto;
  right: auto;
  bottom: 0;
  z-index: 8;
  margin-top: 0.35rem;
  padding: 0.55rem 0;
  background: transparent;
  pointer-events: none;
  transform: none;
}
.wgb:has(#wgb-tabbar.hidden) .wgb-book-cta.sticky {
  padding-bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px));
}
.wgb-book-cta.sticky .wgb-btn {
  pointer-events: auto;
  width: 100%;
  min-height: var(--wgb-book-cta-h);
}
html.wgb-desktop .wgb-book-cta.sticky {
  left: auto;
  right: auto;
  width: min(520px, 100%);
  margin: 0 auto;
  position: sticky;
  bottom: 0.75rem;
  padding: 0.75rem 0 0;
  background: transparent;
}
html.wgb-desktop .wgb-book-cta-spacer {
  height: 1rem;
}
:root[data-wgb-theme='light'] .wgb-book-cta.sticky {
  background: transparent;
}
.wgb-bookings-hint {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.35;
}
.wgb-bcard__rating {
  margin: 0;
  font-size: 0.78rem;
}
.wgb-pay-field {
  margin-bottom: 0.55rem;
}
.wgb-bonus-redeem__menu {
  padding: 0.7rem 0.75rem;
}
html.wgb-2gis .wgb-book-cta.sticky {
  bottom: 0;
}

/* Клиентский гараж: собственные авто и миниатюры */
.wgb-car-select-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 0.5rem;
}
.wgb-car-add-btn,
.wgb-car-add-link,
.wgb-garage-close {
  border: 0;
  font: inherit;
  cursor: pointer;
  color: var(--wgb-accent);
}
.wgb-car-add-btn {
  min-height: 52px;
  border: 1px solid color-mix(in srgb, var(--wgb-accent) 45%, var(--wgb-border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--wgb-accent) 10%, var(--wgb-card-solid));
  font-size: 1.5rem;
}
.wgb-car-add-link {
  display: inline-flex;
  margin-top: 0.45rem;
  padding: 0.25rem 0;
  background: none;
  font-size: 0.82rem;
  font-weight: 650;
}
.wgb-garage-sheet { max-height: min(88dvh, 720px); overflow-y: auto; }
.wgb-garage-modal {
  z-index: 240 !important;
  pointer-events: auto;
}
html.wgb-garage-open .wgb-tabbar {
  /* модалка гаража поверх tabbar — tabbar остаётся в DOM, но не перехватывает клики */
  pointer-events: none;
}
.wgb-garage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.wgb-garage-head h2 { margin: 0; }
.wgb-garage-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--wgb-card);
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.wgb-garage-list {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.7rem 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.wgb-garage-list::-webkit-scrollbar { display: none; }
.wgb-garage-card {
  flex: 0 0 112px;
  padding: 0.4rem;
  border: 1px solid var(--wgb-border);
  border-radius: 14px;
  background: var(--wgb-card);
  color: var(--wgb-text);
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.wgb-garage-card.is-picked {
  border-color: var(--wgb-accent);
  background: color-mix(in srgb, var(--wgb-accent) 10%, var(--wgb-card));
}
.wgb-garage-card__photo {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--wgb-card-solid);
  font-size: 2rem;
}
.wgb-garage-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.wgb-garage-card__name {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wgb-garage-photo-pick {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: center;
  border: 1px dashed color-mix(in srgb, var(--wgb-accent) 45%, var(--wgb-border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--wgb-accent) 6%, var(--wgb-card));
  color: var(--wgb-accent);
  font-weight: 650;
  cursor: pointer;
}
.wgb-garage-photo-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.wgb-garage-primary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.7rem 0;
  font-size: 0.86rem;
}
.wgb-own-garage { margin-top: 0.8rem; }

/* ── Mobile booking: inputs, date strip, auth, 2GIS contrast ── */
html.wgb-2gis {
  --wgb-input-bg-strong: rgba(2, 3, 4, 0.88);
}
html.wgb-mobile:not(.wgb-desktop) .wgb-auth,
html.wgb-embedded:not(.wgb-desktop) .wgb-auth,
html.wgb-2gis:not(.wgb-desktop) .wgb-auth {
  min-height: 0;
  overflow: visible;
  align-items: stretch;
  justify-content: flex-start;
}
html.wgb-mobile:not(.wgb-desktop) .wgb-field > label,
html.wgb-embedded:not(.wgb-desktop) .wgb-field > label,
html.wgb-2gis:not(.wgb-desktop) .wgb-field > label,
html.wgb-mobile:not(.wgb-desktop) .vmm-field__label,
html.wgb-embedded:not(.wgb-desktop) .vmm-field__label,
html.wgb-2gis:not(.wgb-desktop) .vmm-field__label {
  font-size: 0.8125rem;
}
html.wgb-mobile:not(.wgb-desktop) .wgb-field input,
html.wgb-embedded:not(.wgb-desktop) .wgb-field input,
html.wgb-2gis:not(.wgb-desktop) .wgb-field input,
html.wgb-mobile:not(.wgb-desktop) .wgb-field select,
html.wgb-embedded:not(.wgb-desktop) .wgb-field select,
html.wgb-2gis:not(.wgb-desktop) .wgb-field select,
html.wgb-mobile:not(.wgb-desktop) .wgb-field textarea,
html.wgb-embedded:not(.wgb-desktop) .wgb-field textarea,
html.wgb-2gis:not(.wgb-desktop) .wgb-field textarea,
html.wgb-mobile:not(.wgb-desktop) .wgb-input,
html.wgb-embedded:not(.wgb-desktop) .wgb-input,
html.wgb-2gis:not(.wgb-desktop) .wgb-input,
html.wgb-mobile:not(.wgb-desktop) .vmm-combo__input,
html.wgb-embedded:not(.wgb-desktop) .vmm-combo__input,
html.wgb-2gis:not(.wgb-desktop) .vmm-combo__input {
  min-height: 52px;
  font-size: 16px;
  line-height: 1.3;
  background: var(--wgb-input-bg-strong);
  border-width: 1px;
  border-style: solid;
  border-color: color-mix(in srgb, var(--wgb-border) 70%, var(--wgb-text));
}
html.wgb-mobile:not(.wgb-desktop) .wgb-field input::placeholder,
html.wgb-embedded:not(.wgb-desktop) .wgb-field input::placeholder,
html.wgb-2gis:not(.wgb-desktop) .wgb-field input::placeholder,
html.wgb-mobile:not(.wgb-desktop) .wgb-input::placeholder,
html.wgb-embedded:not(.wgb-desktop) .wgb-input::placeholder,
html.wgb-2gis:not(.wgb-desktop) .wgb-input::placeholder,
html.wgb-mobile:not(.wgb-desktop) .vmm-combo__input::placeholder,
html.wgb-embedded:not(.wgb-desktop) .vmm-combo__input::placeholder,
html.wgb-2gis:not(.wgb-desktop) .vmm-combo__input::placeholder {
  color: color-mix(in srgb, var(--wgb-muted) 88%, var(--wgb-text));
  opacity: 1;
}
html.wgb-mobile:not(.wgb-desktop) .wgb-field input:focus,
html.wgb-embedded:not(.wgb-desktop) .wgb-field input:focus,
html.wgb-2gis:not(.wgb-desktop) .wgb-field input:focus,
html.wgb-mobile:not(.wgb-desktop) .wgb-input:focus,
html.wgb-embedded:not(.wgb-desktop) .wgb-input:focus,
html.wgb-2gis:not(.wgb-desktop) .wgb-input:focus,
html.wgb-mobile:not(.wgb-desktop) .vmm-combo__input:focus,
html.wgb-embedded:not(.wgb-desktop) .vmm-combo__input:focus,
html.wgb-2gis:not(.wgb-desktop) .vmm-combo__input:focus {
  outline: none;
  border-width: 1px;
  border-color: var(--wgb-accent);
  box-shadow: 0 0 0 3px var(--wgb-accent-dim);
}
html.wgb-mobile:not(.wgb-desktop) .wgb-date-chip,
html.wgb-embedded:not(.wgb-desktop) .wgb-date-chip,
html.wgb-2gis:not(.wgb-desktop) .wgb-date-chip {
  min-width: 4.25rem;
  width: 4.25rem;
  min-height: 68px;
  height: 68px;
  padding: 0.4rem 0.3rem;
}
html.wgb-mobile:not(.wgb-desktop) .wgb-date-chip.is-picked,
html.wgb-embedded:not(.wgb-desktop) .wgb-date-chip.is-picked,
html.wgb-2gis:not(.wgb-desktop) .wgb-date-chip.is-picked {
  min-height: 68px;
  height: 68px;
  transform: none;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--wgb-accent) 45%, transparent);
  background: color-mix(in srgb, var(--wgb-accent) 16%, var(--wgb-card-solid));
  border-color: color-mix(in srgb, var(--wgb-accent) 55%, var(--wgb-border));
}
html.wgb-mobile:not(.wgb-desktop) .wgb-date-chip--alt,
html.wgb-embedded:not(.wgb-desktop) .wgb-date-chip--alt,
html.wgb-2gis:not(.wgb-desktop) .wgb-date-chip--alt {
  width: auto;
  min-width: auto;
  min-height: 44px;
  height: auto;
  padding: 0.45rem 0.7rem;
}
html.wgb-mobile:not(.wgb-desktop) .wgb-date-chip__wd,
html.wgb-embedded:not(.wgb-desktop) .wgb-date-chip__wd,
html.wgb-2gis:not(.wgb-desktop) .wgb-date-chip__wd {
  font-size: 0.72rem;
}
html.wgb-mobile:not(.wgb-desktop) .wgb-date-chip.is-today .wgb-date-chip__wd,
html.wgb-embedded:not(.wgb-desktop) .wgb-date-chip.is-today .wgb-date-chip__wd,
html.wgb-2gis:not(.wgb-desktop) .wgb-date-chip.is-today .wgb-date-chip__wd {
  letter-spacing: 0.02em;
}
html.wgb-mobile:not(.wgb-desktop) .wgb-slot,
html.wgb-embedded:not(.wgb-desktop) .wgb-slot,
html.wgb-2gis:not(.wgb-desktop) .wgb-slot {
  min-height: 44px;
}
html.wgb-mobile:not(.wgb-desktop) .wgb-book-gallery[open],
html.wgb-embedded:not(.wgb-desktop) .wgb-book-gallery[open],
html.wgb-2gis:not(.wgb-desktop) .wgb-book-gallery[open] {
  position: relative;
  z-index: 1;
}
html.wgb-mobile:not(.wgb-desktop) .vmm-combo__list,
html.wgb-embedded:not(.wgb-desktop) .vmm-combo__list,
html.wgb-2gis:not(.wgb-desktop) .vmm-combo__list {
  z-index: 6;
  max-height: min(11rem, 36dvh);
}
