/* Cool surfaces: iOS-like greys, system-blue accent, sans-serif type */
:root {
  --ios-bg: #f2f2f7;
  --ios-bg-elevated: #ffffff;
  --ios-label: #1c1c1e;
  --ios-secondary: #636366;
  --ios-tertiary: #8e8e93;
  --ios-separator: rgba(60, 60, 67, 0.12);
  --ios-blue: #007aff;
  --ios-blue-pressed: #0062cc;
  --ios-accent-soft: rgba(0, 122, 255, 0.12);
  --ios-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ios-radius-lg: 2rem;
  --ios-radius-md: 1.25rem;
  --ios-radius-sm: 0.85rem;
  --ios-shadow: 0 10px 28px rgba(15, 40, 80, 0.08);
  --ios-shadow-hover: 0 18px 40px rgba(15, 40, 80, 0.12);
  --ios-blur: saturate(160%) blur(18px);
  --ios-font: ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ios-display: ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --z-grain: 40;
  --z-chrome: 1030;
  --z-overlay: 1080;
}

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body.ios-body {
  font-family: var(--ios-font);
  background: var(--ios-bg) !important;
  color: var(--ios-label);
  position: relative;
}

body.ios-body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: calc(var(--z-overlay) + 20);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--ios-label);
  color: var(--ios-bg);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.45s var(--ios-ease);
}
.skip-link:focus {
  top: 0.85rem;
  color: var(--ios-bg);
}

.site-chrome {
  position: sticky;
  top: 0;
  z-index: var(--z-chrome);
  padding: 0.85rem 0.75rem 1.15rem;
}

.ios-nav {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0.35rem 0.85rem;
  background: rgba(242, 242, 247, 0.78) !important;
  backdrop-filter: var(--ios-blur);
  -webkit-backdrop-filter: var(--ios-blur);
  border: 1px solid rgba(60, 60, 67, 0.08);
  border-radius: 999px;
  box-shadow: 0 10px 32px rgba(15, 40, 80, 0.08) !important;
}

.ios-nav .navbar-brand {
  font-family: var(--ios-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ios-label) !important;
}

.nav-city {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  margin: 0 0.45rem 0 0.15rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 999px;
}

.nav-city-select {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: auto;
  max-width: 8.75rem;
  min-width: 0;
  border: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233c3c43' fill-opacity='0.55' d='M1.1 1.6 6 6.4l4.9-4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 0.65rem 0.4rem;
  border-radius: 999px;
  padding: 0.28rem 1.5rem 0.28rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ios-label);
  cursor: pointer;
}

.nav-city:focus-within {
  box-shadow: 0 0 0 3px var(--ios-accent-soft);
}

.ios-nav .nav-link {
  color: var(--ios-secondary) !important;
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: 999px;
  padding: 0.4rem 0.75rem !important;
  transition: color 0.35s var(--ios-ease), background 0.35s var(--ios-ease);
}

.ios-nav .nav-link.is-active {
  color: var(--ios-label) !important;
  background: rgba(28, 28, 30, 0.06);
}

.biz {
  color: var(--ios-blue);
}

.ios-nav .nav-link:hover {
  color: var(--ios-label) !important;
  background: rgba(28, 28, 30, 0.05);
}

.ios-nav .navbar-toggler {
  border: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  padding: 0;
  position: relative;
  box-shadow: none;
}
.ios-nav .navbar-toggler:focus {
  box-shadow: 0 0 0 3px var(--ios-accent-soft);
}
.taste-burger {
  display: block;
  width: 1.1rem;
  height: 0.85rem;
  position: relative;
  margin: 0 auto;
}
.taste-burger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--ios-label);
  border-radius: 99px;
  transition: transform 0.45s var(--ios-ease), opacity 0.35s var(--ios-ease);
}
.taste-burger span:first-child { top: 0.18rem; }
.taste-burger span:last-child { bottom: 0.18rem; }
.navbar-toggler[aria-expanded="true"] .taste-burger span:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] .taste-burger span:last-child {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.ios-nav .navbar-text {
  color: var(--ios-secondary) !important;
}

.ios-nav .btn-outline-light {
  --bs-btn-color: var(--ios-blue);
  --bs-btn-border-color: rgba(0, 122, 255, 0.28);
  --bs-btn-hover-bg: var(--ios-accent-soft);
  --bs-btn-hover-border-color: var(--ios-blue);
  --bs-btn-hover-color: var(--ios-blue);
  --bs-btn-active-bg: var(--ios-accent-soft);
  --bs-btn-active-color: var(--ios-blue-pressed);
  transition: transform 0.35s var(--ios-ease), background 0.35s var(--ios-ease);
}
.ios-nav .btn-outline-light:active {
  transform: scale(0.98);
}

h1, h2, .display-5, .display-6 {
  font-family: var(--ios-display);
  letter-spacing: -0.035em;
  text-wrap: balance;
  line-height: 1.12;
}

.ios-card {
  background: var(--ios-bg-elevated);
  border-radius: var(--ios-radius-lg);
  border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), var(--ios-shadow);
}

.ios-card-hover {
  transition: transform 0.45s var(--ios-ease), box-shadow 0.45s var(--ios-ease);
}

.ios-card-hover:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), var(--ios-shadow-hover);
}

.bezel {
  padding: 0.35rem;
  border-radius: calc(var(--ios-radius-lg) + 0.35rem);
  background: rgba(60, 60, 67, 0.045);
  border: 1px solid rgba(60, 60, 67, 0.06);
}
.bezel > .ios-card,
.bezel > .auth-panel,
.bezel > .landing-aside-inner {
  border-radius: var(--ios-radius-lg);
}

.ios-input,
.ios-input:focus,
.form-control,
.form-control:focus,
.form-select,
.form-select:focus {
  border-radius: var(--ios-radius-sm);
  border: 1px solid var(--ios-separator);
  background: #fff;
  color: var(--ios-label);
  box-shadow: none;
}
.form-control:focus,
.form-select:focus,
.ios-input:focus {
  border-color: rgba(0, 122, 255, 0.45);
  box-shadow: 0 0 0 3px var(--ios-accent-soft);
}

.btn-ios-primary,
.btn-primary {
  --bs-btn-bg: var(--ios-blue);
  --bs-btn-border-color: var(--ios-blue);
  --bs-btn-hover-bg: var(--ios-blue-pressed);
  --bs-btn-hover-border-color: var(--ios-blue-pressed);
  --bs-btn-active-bg: var(--ios-blue-pressed);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  background: var(--ios-blue);
  border: none;
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.6rem 1.3rem;
  transition: transform 0.35s var(--ios-ease), background 0.35s var(--ios-ease);
}
.btn-ios-primary:hover,
.btn-primary:hover {
  background: var(--ios-blue-pressed);
  color: #fff;
}
.btn-ios-primary:active,
.btn-primary:active {
  transform: scale(0.98);
}

.btn-ios-secondary {
  background: var(--ios-accent-soft);
  color: var(--ios-blue);
  border: none;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.35s var(--ios-ease), background 0.35s var(--ios-ease);
}
.btn-ios-secondary:hover {
  background: rgba(0, 122, 255, 0.2);
  color: var(--ios-blue-pressed);
}
.btn-ios-secondary:active {
  transform: scale(0.98);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.45rem 0.45rem 1.2rem;
}
.btn-cta-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.45s var(--ios-ease);
}
.btn-ios-secondary.btn-cta .btn-cta-icon {
  background: rgba(28, 28, 30, 0.06);
}
.btn-cta:hover .btn-cta-icon {
  transform: translate(2px, -1px) scale(1.05);
}

.taste-eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(28, 28, 30, 0.06);
  color: var(--ios-secondary);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ios-hero {
  border-radius: var(--ios-radius-lg);
  background:
    radial-gradient(920px 420px at 92% -8%, rgba(0, 122, 255, 0.14), transparent 55%),
    radial-gradient(700px 280px at 8% 110%, rgba(90, 120, 180, 0.08), transparent 50%),
    #eef1f8;
  border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  color: var(--ios-label);
  overflow: hidden;
}

.ios-hero-accent {
  color: var(--ios-blue);
}

.ios-glass-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--ios-radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ios-search .form-control {
  border-radius: 999px;
  border: 1px solid var(--ios-separator);
  padding-left: 1rem;
  padding-right: 1rem;
}

.ios-search .btn {
  border-radius: 999px;
}

.catalog-cover {
  height: 11rem;
  background: radial-gradient(120% 90% at 80% 0%, rgba(0, 122, 255, 0.12), transparent 50%), #e8ecf4;
}
.catalog-cover-fallback {
  background: var(--ios-accent-soft);
}

.taste-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(28, 28, 30, 0.05);
  color: var(--ios-secondary);
  font-size: 0.78rem;
  font-weight: 500;
}

.catalog-card-offer {
  padding: 0.7rem 0.9rem;
  border-radius: var(--ios-radius-sm);
  background: var(--ios-accent-soft);
  text-align: center;
}
.catalog-card-offer-title {
  font-weight: 600;
  color: var(--ios-label);
  line-height: 1.25;
}
.catalog-card-offer-spec {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: var(--ios-secondary);
}
.catalog-card-offer-price {
  margin-top: 0.2rem;
  font-weight: 600;
  color: var(--ios-label);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.text-ios-secondary {
  color: var(--ios-secondary) !important;
}

.text-ios-tertiary {
  color: var(--ios-tertiary) !important;
}

.ios-stars {
  letter-spacing: 0.06em;
  color: #ff9f0a;
  font-size: 0.95rem;
}

.star-avg {
  position: relative;
  display: inline-block;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.06em;
  vertical-align: -0.12em;
  margin-right: 0.25rem;
}

.star-avg--sm {
  font-size: 0.9rem;
}

.star-avg-bg {
  color: #d1d1d6;
}

.star-avg-fill {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #ff9f0a;
  pointer-events: none;
}

.star-picker {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.1rem;
}

.star-picker-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.star-picker-label {
  font-size: 2rem;
  line-height: 1;
  color: #d1d1d6;
  cursor: pointer;
  transition: color 0.35s var(--ios-ease), transform 0.35s var(--ios-ease);
  user-select: none;
}

.star-picker-label:hover {
  transform: scale(1.08);
}

.star-picker-input:checked ~ .star-picker-label,
.star-picker-input:focus-visible + .star-picker-label,
.star-picker-label:hover,
.star-picker-label:hover ~ .star-picker-label {
  color: #ff9f0a;
}

.breadcrumb.ios-breadcrumb {
  --bs-breadcrumb-divider-color: var(--ios-tertiary);
}

.breadcrumb.ios-breadcrumb .breadcrumb-item a {
  color: var(--ios-blue);
  text-decoration: none;
}

#company-map {
  border-radius: var(--ios-radius-md);
  overflow: hidden;
  border: 1px solid var(--ios-separator);
  min-height: 220px;
  z-index: 0;
}

.btn-ios-primary:focus-visible,
.btn-primary:focus-visible,
.btn-ios-secondary:focus-visible,
.form-control:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--ios-accent-soft);
}

footer.ios-footer {
  background: transparent;
  border-color: transparent !important;
  color: var(--ios-secondary);
  padding-top: 2.5rem !important;
  padding-bottom: 2.75rem !important;
}
footer.ios-footer a {
  color: var(--ios-secondary);
  text-decoration: none;
}
footer.ios-footer a:hover {
  color: var(--ios-blue);
}
.legal-dl {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: 0.65rem 1.25rem;
  margin: 0;
}
.legal-dl dt {
  color: var(--ios-tertiary);
  font-weight: 500;
  font-size: 0.85rem;
}
.legal-dl dd {
  margin: 0;
}
.legal-doc p,
.legal-doc li {
  color: var(--ios-secondary);
  line-height: 1.6;
}
.legal-nav a {
  color: var(--ios-secondary);
  text-decoration: none;
}
.legal-nav a:hover,
.legal-nav a.fw-semibold {
  color: var(--ios-blue);
}

.help-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: start;
}

.help-toc {
  position: sticky;
  top: 5.5rem;
  padding: 1rem 1.1rem;
}

.help-toc-title {
  margin: 0 0 0.65rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ios-label);
}

.help-toc ol {
  margin: 0;
  padding-left: 1.15rem;
}

.help-toc li {
  margin: 0.3rem 0;
}

.help-toc a {
  color: var(--ios-secondary);
  text-decoration: none;
}

.help-toc a:hover,
.help-toc a:focus-visible {
  color: var(--ios-blue);
}

.help-doc h2 {
  scroll-margin-top: 5.75rem;
}

@media (max-width: 767.98px) {
  .help-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .help-toc {
    position: static;
  }
}
@media (max-width: 575.98px) {
  .legal-dl {
    grid-template-columns: 1fr;
    gap: 0.15rem 0;
  }
  .legal-dl dt { margin-top: 0.5rem; }
  .legal-dl dt:first-child { margin-top: 0; }
}

.nav-avatar,
.review-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

.nav-avatar:not(.img-fit),
.review-avatar:not(.img-fit) {
  object-fit: cover;
}

.review-avatar {
  width: 36px;
  height: 36px;
}

.profile-avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
}

.profile-avatar:not(.img-fit) {
  object-fit: cover;
}

.profile-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #5e7ce2 0%, #7b8ef0 100%);
  color: #fff;
  font-size: 2.75rem;
  font-weight: 700;
}

.img-fit {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.img-fit img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos-x, 50%) var(--pos-y, 50%);
}
.img-fit--circle {
  border-radius: 50%;
}
.img-fit--cover {
  border-radius: 1rem;
}

.spec-avatar-lg {
  width: 88px;
  height: 88px;
}

.staff-avatar {
  width: 48px;
  height: 48px;
}

.catalog-cover .img-fit,
.company-hero-media .img-fit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

@media (min-width: 992px) {
  .company-hero.is-photo-locked > .row {
    align-items: flex-start;
  }
  .company-hero.is-photo-locked .company-hero-media:not(.company-hero-media--cover) {
    height: var(--hero-photo-h);
    min-height: var(--hero-photo-h);
    max-height: var(--hero-photo-h);
    overflow: hidden;
  }
}

.company-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.35rem;
  align-items: flex-start;
}
.company-hero-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.company-hero-phone {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: var(--ios-label);
  text-decoration: none;
  white-space: nowrap;
}
.company-hero-phone:hover,
.company-hero-phone:focus-visible {
  color: var(--ios-blue);
  text-decoration: underline;
}
.company-hero-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.65rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s var(--ios-ease), transform 0.2s var(--ios-ease);
}
.company-hero-contact:hover,
.company-hero-contact:focus-visible {
  background: var(--ios-accent-soft);
  text-decoration: none;
  transform: translateY(-1px);
}
.company-hero-contact img {
  display: block;
  width: 1.7rem;
  height: 1.7rem;
  object-fit: contain;
}

.expandable-text {
  max-width: 52rem;
  min-width: 0;
}
.expandable-text-body {
  line-height: 1.6;
}
.expandable-text.is-collapsed .expandable-text-body {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
}
.expandable-text-toggle {
  display: inline-flex;
  margin-top: 0.4rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ios-blue);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}
.expandable-text-toggle:hover,
.expandable-text-toggle:focus-visible {
  color: var(--ios-blue-pressed);
  text-decoration: underline;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: flex-start;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.2;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  height: fit-content;
}

.status-badge--pending {
  background: rgba(255, 149, 0, 0.16);
  color: #c93400;
}

.status-badge--confirmed {
  background: rgba(52, 199, 89, 0.16);
  color: #248a3d;
}

.status-badge--neutral,
.status-badge--cancelled {
  background: rgba(60, 60, 67, 0.12);
  color: var(--ios-secondary);
}

.catalog-role-badge {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.2;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(15, 40, 80, 0.16);
}

.catalog-role-badge--specialist {
  background: rgba(0, 122, 255, 0.88);
  color: #fff;
}

.catalog-role-badge--company {
  background: rgba(28, 28, 30, 0.72);
  color: #fff;
}

.slot-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.45);
}
.slot-dialog-overlay.is-open {
  display: flex;
}
.slot-dialog {
  width: min(24rem, 100%);
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.25rem 1.35rem 1.15rem;
  box-shadow: 0 18px 50px rgba(15, 40, 80, 0.22);
}
.slot-dialog-facts {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}
.slot-dialog-facts > div {
  display: grid;
  gap: 0.15rem;
}
.slot-dialog-facts dt {
  font-size: 0.75rem;
  color: var(--ios-secondary);
  font-weight: 500;
}
.slot-dialog-facts dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ios-label);
}
.slot-dialog-full {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ff3b30;
}

/* PWA standalone: как у банка — без браузерной рамки, с учётом выреза. */
@media (display-mode: standalone) {
  html {
    height: 100%;
  }
  body.ios-body {
    min-height: 100%;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .site-chrome {
    padding-top: calc(0.85rem + env(safe-area-inset-top));
  }
}

.pwa-banner {
  position: sticky;
  bottom: 0;
  z-index: 1040;
  margin: 0 auto;
  max-width: 40rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: var(--ios-blur);
  -webkit-backdrop-filter: var(--ios-blur);
  border-top: 1px solid var(--ios-separator);
  box-shadow: 0 -8px 24px rgba(15, 40, 80, 0.08);
}
.pwa-banner[hidden] {
  display: none !important;
}
.pwa-banner-text {
  flex: 1 1 12rem;
  font-size: 0.9rem;
  color: var(--ios-label);
}
.analytics-filters .form-label {
  margin-bottom: 0.25rem;
}
.analytics-filters {
  overflow: visible;
}
.analytics-combo {
  position: relative;
}
.analytics-combo:has([aria-expanded="true"]) {
  z-index: 12;
}
.group-editor-table {
  overflow: visible;
}
.group-editor-table .analytics-combo {
  min-width: 12.5rem;
  max-width: 18rem;
}
.analytics-combo-toggle {
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.analytics-combo-toggle:disabled {
  cursor: default;
  opacity: 0.7;
}
.analytics-combo-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.3rem);
  z-index: 8;
  padding: 0.45rem;
  background: var(--ios-bg-elevated);
  border: 1px solid var(--ios-separator);
  border-radius: 12px;
  box-shadow: var(--ios-shadow);
}
.analytics-combo-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  max-height: 12.5rem;
  overflow: auto;
}
.analytics-combo-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ios-label);
  padding: 0.42rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
}
.analytics-combo-option::before {
  content: "";
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  border: 1.5px solid var(--ios-separator);
  border-radius: 5px;
  background: var(--ios-bg-elevated);
}
.analytics-combo-option:hover,
.analytics-combo-option:focus-visible,
.analytics-combo-option.is-active {
  background: var(--ios-accent-soft);
  outline: none;
}
.analytics-combo-option.is-selected {
  font-weight: 600;
}
.analytics-combo-option.is-selected::before {
  border-color: var(--ios-blue);
  background: var(--ios-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M2.4 6.2 4.8 8.6 9.6 3.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.72rem;
}
.analytics-combo-empty {
  padding: 0.45rem 0.55rem 0.15rem;
  font-size: 0.82rem;
  color: var(--ios-tertiary);
}
.analytics-kpi {
  background: rgba(242, 242, 247, 0.9);
  border-radius: 16px;
  padding: 0.85rem 0.95rem;
  min-height: 100%;
}
.analytics-kpi-value {
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0.15rem 0 0.35rem;
}
.analytics-delta {
  display: block;
  font-size: 0.72rem;
  line-height: 1.3;
}
.analytics-delta--up { color: #248a3d; }
.analytics-delta--down { color: #d70015; }
.analytics-delta--flat,
.analytics-delta--muted { color: var(--ios-tertiary); }
.analytics-chart-wrap {
  position: relative;
  height: 240px;
}
.analytics-chart-wrap--donut {
  height: 220px;
}
.analytics-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.28rem;
  width: fit-content;
  max-width: 100%;
  background: rgba(242, 242, 247, 0.95);
  border-radius: 999px;
  border: 1px solid var(--ios-separator);
}
.analytics-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  color: var(--ios-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.analytics-tab:hover {
  color: var(--ios-label);
}
.analytics-tab.is-active {
  background: #fff;
  color: var(--ios-label);
  box-shadow: 0 1px 3px rgba(15, 40, 80, 0.08);
}
.client-base-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
  align-items: flex-end;
  overflow: visible;
}
.client-base-filter {
  flex: 1 1 12rem;
  min-width: 11rem;
  overflow: visible;
}
.client-base-filter .form-control,
.client-base-filter .form-select {
  width: 100%;
}
.client-base-filter--visits {
  flex: 0 0 auto;
  min-width: 0;
  width: auto;
}
.client-base-filter--visits .form-label {
  white-space: nowrap;
}
.client-base-filter--visits .form-control {
  width: 4.6rem;
  min-width: 4.6rem;
  padding-left: 0.4rem;
  padding-right: 0.35rem;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}
.client-base-filter--visits .form-control::-webkit-outer-spin-button,
.client-base-filter--visits .form-control::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.client-base-filter--btn {
  flex: 0 0 auto;
  min-width: 0;
  width: auto;
}
.client-base-visits {
  display: flex;
  gap: 0.7rem;
  align-items: flex-end;
  flex: 1 1 100%;
  min-width: 0;
}
@media (min-width: 768px) {
  .client-base-visits {
    flex: 0 0 auto;
    width: auto;
  }
}
.client-base-scroll {
  overflow-x: auto;
  margin: 0 -0.25rem;
}
.client-base-table {
  width: 100%;
  min-width: 60rem;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}
.client-base-table th {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ios-secondary);
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--ios-separator);
  white-space: nowrap;
}
.client-base-table td {
  padding: 0.7rem;
  border-bottom: 1px solid var(--ios-separator);
  vertical-align: top;
}
.client-base-table tbody tr:last-child td {
  border-bottom: 0;
}
.client-tags-form {
  min-width: 8rem;
}
.client-tags-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  min-height: 1.4rem;
  align-items: center;
}
.client-tag-chip {
  gap: 0.2rem;
  padding-right: 0.35rem;
}
.client-tag-remove {
  border: 0;
  background: transparent;
  color: var(--ios-tertiary);
  line-height: 1;
  padding: 0 0.15rem;
  font-size: 1rem;
}
.client-tags-add {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  min-width: 12.5rem;
}
.client-base-table a.fw-semibold {
  color: var(--ios-label);
  text-decoration: none;
}
.client-base-table a.fw-semibold:hover {
  color: var(--ios-blue);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.25rem, 1fr));
  gap: 0.5rem;
}
.photo-grid--review {
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
}
.photo-grid-item {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(242, 242, 247, 0.9);
  display: block;
  position: relative;
  padding: 0;
  border: 0;
}
.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-grid-item--edit a {
  display: block;
  width: 100%;
  height: 100%;
}
.photo-grid-del {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  margin: 0;
}
.photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: zoom-out;
}
.photo-lightbox img {
  max-width: min(100%, 52rem);
  max-height: calc(100% - 3rem);
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}
.photo-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ios-label);
  font-size: 1.7rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ios-shadow);
}
.photo-lightbox-nav:disabled {
  opacity: 0.35;
}
.photo-lightbox-nav--prev { left: 0.75rem; }
.photo-lightbox-nav--next { right: 0.75rem; }
.photo-lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.photo-album {
  --album-visible: 1;
  --album-gap: 0px;
  width: 100%;
  max-width: none;
}
.photo-album-frame {
  position: relative;
  border-radius: var(--ios-radius-lg);
  overflow: hidden;
  background: transparent;
}
.photo-album-track {
  display: flex;
  gap: var(--album-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.photo-album-track::-webkit-scrollbar {
  display: none;
}
.photo-album-slide {
  flex: 0 0 calc((100% - (var(--album-visible) - 1) * var(--album-gap)) / var(--album-visible));
  scroll-snap-align: start;
  scroll-snap-stop: always;
  aspect-ratio: 4 / 3;
  display: block;
  overflow: hidden;
  border-radius: var(--ios-radius-lg);
  background: rgba(0, 0, 0, 0);
  box-shadow: var(--ios-shadow);
  
}
.photo-album-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.photo-album-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ios-label);
  font-size: 1.45rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}
.photo-album-nav:disabled {
  opacity: 0.35;
}
.photo-album-nav--prev { left: 0.7rem; }
.photo-album-nav--next { right: 0.7rem; }
.photo-album-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.7rem;
  min-height: 1.25rem;
}
.photo-album-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.photo-album-dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(60, 60, 67, 0.22);
}
.photo-album-dot.is-active {
  background: var(--ios-blue);
}
.photo-album-counter {
  font-size: 0.78rem;
  color: var(--ios-tertiary);
  white-space: nowrap;
}
@media (max-width: 575.98px) {
  .photo-album-slide { aspect-ratio: 1 / 1; }
  .photo-album-nav {
    width: 2.1rem;
    height: 2.1rem;
  }
}
@media (min-width: 768px) {
  .photo-album {
    --album-visible: 4;
    --album-gap: 0.75rem;
  }
  .photo-album--single {
    --album-visible: 1;
    --album-gap: 0px;
  }
  .photo-album:not(.photo-album--paged) .photo-album-nav {
    display: none;
  }
}
.map-pin-canvas {
  height: 260px;
  border-radius: var(--ios-radius-md);
  overflow: hidden;
  border: 1px solid var(--ios-separator);
  z-index: 0;
  background: #fff;
}

@media (max-width: 991.98px) {
  .ios-nav {
    border-radius: 1.5rem;
    padding: 0.45rem 0.75rem;
  }
  .ios-nav .navbar-collapse {
    padding: 0.65rem 0.35rem 0.85rem;
  }
  .ios-nav .navbar-nav .nav-link {
    margin: 0.12rem 0;
  }
  .nav-city {
    flex: 1 1 auto;
    width: 100%;
    margin: 0.15rem 0 0.45rem;
  }
  .nav-city-select {
    max-width: none;
    width: 100%;
    padding: 0.55rem 2rem 0.55rem 0.85rem;
    font-size: 0.95rem;
  }
}

.landing-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.75rem;
  align-items: center;
  min-height: min(70dvh, 38rem);
  padding: 2.5rem 0 3.5rem;
}
.landing-title {
  font-size: clamp(2.35rem, 5.4vw, 4.15rem);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.04;
  max-width: 14ch;
  margin-bottom: 1.15rem;
}
.landing-lead {
  max-width: 36rem;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ios-secondary);
}
.landing-aside-inner {
  background: var(--ios-bg-elevated);
  padding: 1.5rem 1.45rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), var(--ios-shadow);
}
.landing-point {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--ios-separator);
  color: var(--ios-secondary);
  line-height: 1.45;
}
.landing-point:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.landing-point:last-child {
  padding-bottom: 0;
}
.landing-point-mark {
  color: var(--ios-blue);
  font-weight: 600;
}
.landing-roles {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.15rem;
  margin: 0 0 4rem;
}
.landing-role {
  padding: 1.65rem 1.6rem 1.45rem;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.landing-role h2 {
  font-size: 1.55rem;
  margin-bottom: 0.6rem;
}
.landing-role p {
  color: var(--ios-secondary);
  line-height: 1.55;
  flex: 1;
}
.landing-role .btn-cta {
  align-self: flex-start;
  margin-top: 0.75rem;
}

.auth-shell {
  max-width: 32rem;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}
.auth-shell h1 {
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  margin-bottom: 0.5rem;
}
.auth-panel {
  background: var(--ios-bg-elevated);
  padding: 1.5rem 1.4rem 1.35rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), var(--ios-shadow);
}

.taste-reveal {
  opacity: 0;
  transform: translateY(1.35rem);
  filter: blur(6px);
  animation: taste-rise 0.9s var(--ios-ease) forwards;
}
.taste-reveal:nth-child(2) { animation-delay: 0.12s; }
@keyframes taste-rise {
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .taste-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
  .btn-cta:hover .btn-cta-icon,
  .ios-card-hover:hover {
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .landing-hero,
  .landing-roles {
    grid-template-columns: 1fr;
  }
  .landing-hero {
    min-height: 0;
    gap: 1.5rem;
    padding: 1.25rem 0 2.25rem;
  }
  .landing-title {
    max-width: none;
  }
  .site-chrome {
    padding: 0.65rem 0.55rem 1rem;
  }
}

.nav-unread {
  display: inline-flex;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.35rem;
  margin-left: 0.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ios-blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: 1px;
}

.support-page {
  max-width: 960px;
}

.support-shell {
  display: grid;
  grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
  gap: 1rem;
  min-height: calc(100dvh - 14rem);
}

.support-card,
.support-inbox {
  display: flex;
  flex-direction: column;
  min-height: 28rem;
  padding: 1rem 1.1rem 1.1rem;
}

.support-inbox {
  min-height: 0;
}

.support-thread-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  flex: 1;
}

.support-thread-link {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.8rem;
  margin: 0 -0.35rem 0.35rem;
  border-radius: var(--ios-radius-sm);
  text-decoration: none;
  color: inherit;
}

.support-thread-link:hover,
.support-thread-link.is-active {
  background: var(--ios-accent-soft);
}

.support-thread-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.support-thread-email,
.support-thread-when {
  color: var(--ios-tertiary);
  font-size: 0.78rem;
}

.support-thread-preview {
  color: var(--ios-secondary);
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-chat-head {
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--ios-separator);
}

.support-log {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 16rem;
  max-height: min(52vh, 32rem);
  padding: 0.25rem 0.15rem 0.75rem;
}

.support-empty,
.support-placeholder {
  margin: auto;
  text-align: center;
  color: var(--ios-secondary);
  padding: 2rem 1rem;
}

.support-msg {
  max-width: min(78%, 28rem);
  align-self: flex-start;
}

.support-msg.is-mine {
  align-self: flex-end;
}

.support-msg-meta {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.75rem;
  color: var(--ios-tertiary);
  margin-bottom: 0.2rem;
}

.support-msg.is-mine .support-msg-meta {
  justify-content: flex-end;
}

.support-msg-body {
  margin: 0;
  padding: 0.65rem 0.9rem;
  border-radius: 1.1rem 1.1rem 1.1rem 0.35rem;
  background: rgba(60, 60, 67, 0.08);
  color: var(--ios-label);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.support-msg.is-mine .support-msg-body {
  background: var(--ios-blue);
  color: #fff;
  border-radius: 1.1rem 1.1rem 0.35rem 1.1rem;
}

.support-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: end;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ios-separator);
}

.support-composer textarea {
  resize: none;
  min-height: 2.6rem;
  max-height: 10rem;
  margin: 0;
}

.support-back {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--ios-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

@media (max-width: 767.98px) {
  .support-shell {
    grid-template-columns: 1fr;
    min-height: calc(100dvh - 12rem);
  }
  .support-shell.has-thread .support-inbox {
    display: none;
  }
  .support-shell:not(.has-thread) .support-chat-pane {
    display: none;
  }
  .support-log {
    max-height: min(58vh, 28rem);
  }
}
