.city-page {
  min-height: calc(100vh - 140px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 12, 24, 0) 0%, rgba(8, 12, 24, 0.45) 100%),
    radial-gradient(820px 520px at 84% 12%, rgba(139, 92, 246, 0.16), transparent 68%),
    radial-gradient(720px 440px at 18% 28%, rgba(91, 140, 255, 0.12), transparent 66%);
}

.city-hero {
  position: relative;
  padding: 86px 0 92px;
}

.city-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 280px;
  pointer-events: none;
  background:
    linear-gradient(rgba(139, 92, 246, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 140, 255, 0.032) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: perspective(680px) rotateX(62deg) translateY(82px);
  transform-origin: 50% 100%;
  opacity: 0.62;
  mask-image: linear-gradient(to top, #000, transparent 82%);
}

.city-breadcrumb {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 66px;
  color: #a8b7dc;
  font-size: 14px;
}

.city-breadcrumb a {
  color: #b7c7ff;
  transition: color .18s ease;
}

.city-breadcrumb a:hover {
  color: #fff;
}

.city-hero-grid {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.city-hero-copy {
  min-width: 0;
}

.city-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #f3f7ff;
  font-size: clamp(46px, 6.1vw, 88px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

.city-hero h1 .city-brand-word {
  background: linear-gradient(90deg, #6366f1 0%, #6366f1 45%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.city-intro {
  max-width: 650px;
  margin: 34px 0 0;
  color: rgba(205, 215, 236, 0.72);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.52;
  font-weight: 600;
}

.city-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 40px;
}

.city-primary-action,
.city-secondary-action {
  min-width: 220px;
  min-height: 64px;
  border-radius: 16px !important;
  font-size: 17px;
}

.city-primary-action {
  background: var(--grad-main);
  box-shadow: 0 22px 48px rgba(91, 140, 255, 0.24);
}

.city-secondary-action {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(148, 163, 184, 0.22);
}

.city-offices-section {
  padding: 0 0 96px;
}

.city-search-panel {
  display: grid;
  grid-template-columns: minmax(260px, 560px) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 50px;
}

.city-search-input {
  width: 100%;
  height: 64px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px !important;
  background: rgba(17, 22, 35, 0.86);
  color: #f5f7ff;
  padding: 0 26px;
  outline: none;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.city-search-input::placeholder {
  color: rgba(168, 178, 205, 0.42);
}

.city-search-input:focus {
  border-color: rgba(139, 92, 246, 0.62);
  background: rgba(17, 24, 39, 0.94);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.13);
}

.city-search-count {
  justify-self: start;
  color: rgba(168, 178, 205, 0.7);
  font-size: 14px;
  font-weight: 700;
}

.city-table-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(12, 17, 30, 0.72);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.city-table-head,
.city-item {
  display: grid;
  grid-template-columns: minmax(210px, 1.15fr) minmax(120px, .55fr) minmax(220px, .95fr) minmax(120px, .5fr) 160px;
  gap: 24px;
  align-items: center;
}

.city-table-head {
  min-height: 54px;
  padding: 0 30px;
  color: rgba(168, 178, 205, 0.48);
  background: rgba(14, 20, 34, 0.78);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.city-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.city-item {
  min-height: 86px;
  padding: 20px 30px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.09);
  background: rgba(9, 14, 25, 0.28);
}

.city-item:nth-child(odd) {
  background: rgba(20, 26, 42, 0.48);
}

.city-item:last-child {
  border-bottom: 0;
}

.city-name {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  color: #f7f9ff;
  font-size: 19px;
  font-weight: 900;
}

.city-name svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-right: 16px;
  color: #7c6bf2;
}

.city-name path,
.city-name circle {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.city-format,
.city-schedule,
.city-visit {
  color: rgba(214, 222, 240, 0.78);
  font-size: 15px;
  font-weight: 700;
}

.city-schedule {
  display: grid;
  gap: 4px;
  line-height: 1.35;
}

.city-schedule-line {
  display: block;
}

.city-visit {
  color: #fff;
}

.city-choose-btn {
  min-height: 46px;
  border: 1px solid rgba(139, 92, 246, 0.42);
  border-radius: 14px !important;
  background: rgba(139, 92, 246, 0.1);
  color: #b9a7ff;
  padding: 0 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.city-choose-btn:hover,
.city-choose-btn:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, #5b8cff, #8b5cf6);
  border-color: rgba(168, 85, 247, 0.7);
  transform: translateY(-1px);
  outline: none;
}

.city-empty {
  margin: 18px 0 0;
  color: #f2bec9;
  font-size: 15px;
  font-weight: 700;
}

.city-not-found-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 26px;
  padding: 0 20px;
  border-radius: 14px;
  color: #b9a7ff;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.22);
  font-weight: 800;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.city-not-found-link:hover {
  color: #fff;
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.38);
}

@media (max-width: 980px) {
  .city-hero {
    min-height: auto;
    padding: 52px 0 70px;
  }

  .city-breadcrumb {
    margin-bottom: 44px;
  }

  .city-table-head {
    display: none;
  }

  .city-table-card {
    border-radius: 18px;
  }

  .city-item {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
    min-height: auto;
    padding: 24px;
  }

  .city-format::before,
  .city-schedule::before,
  .city-visit::before {
    display: block;
    margin-bottom: 6px;
    color: rgba(168, 178, 205, 0.48);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.24em;
    text-transform: uppercase;
  }

  .city-format::before {
    content: attr(data-label);
  }

  .city-schedule::before {
    content: attr(data-label);
  }

  .city-visit::before {
    content: attr(data-label);
  }

  .city-choose-btn {
    width: max-content;
    min-width: 150px;
  }
}

@media (max-width: 640px) {
  .city-hero {
    padding: 28px 0 46px;
  }

  .city-breadcrumb {
    margin-bottom: 34px;
  }

  .city-hero h1 {
    max-width: 420px;
    font-size: clamp(28px, 8vw, 32px);
    line-height: 1.05;
  }

  .city-intro {
    max-width: 390px;
    margin-top: 26px;
    font-size: 16px;
    line-height: 1.55;
  }

  .city-hero-actions,
  .city-search-panel {
    grid-template-columns: 1fr;
  }

  .city-hero-actions {
    gap: 12px;
    margin-top: 34px;
  }

  .city-primary-action,
  .city-secondary-action,
  .city-choose-btn {
    width: 100%;
  }

  .city-primary-action,
  .city-secondary-action {
    min-height: 56px;
    min-width: 0;
    border-radius: 14px !important;
    font-size: 16px;
  }

  .city-offices-section {
    padding-bottom: 72px;
  }

  .city-search-panel {
    gap: 10px;
    margin-bottom: 28px;
  }

  .city-search-input {
    height: 56px;
    padding: 0 18px;
  }

  .city-item {
    padding: 22px 18px;
  }

  .city-name {
    font-size: 18px;
  }

  .header-actions .btn:last-child {
    display: none;
  }
}
