.city-nav-item {
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.city-selector-toggle {
  display: inline-flex;
  min-height: 44px;
  max-width: 170px;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font: inherit;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.city-selector-toggle:hover,
.city-selector-toggle:focus-visible {
  border-color: #498cff;
  background: rgba(73, 140, 255, 0.13);
  color: #ffffff;
  outline: none;
}

.city-selector-toggle:focus-visible {
  box-shadow: 0 0 0 3px rgba(73, 140, 255, 0.32);
}

.city-selector-toggle svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.city-selector-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.city-confirm {
  position: fixed;
  top: 86px;
  right: 24px;
  z-index: 10020;
  width: min(370px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid rgba(73, 140, 255, 0.5);
  border-radius: 16px;
  background: #17191e;
  color: #ffffff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.48);
}

.city-confirm[hidden] {
  display: none;
}

.city-confirm-title {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
}

.city-confirm-text {
  margin: 0 0 16px;
  color: #b8bcc5;
  font-size: 14px;
  line-height: 1.5;
}

.city-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.city-confirm-button {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  background: transparent;
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}

.city-confirm-button--primary {
  border-color: #498cff;
  background: #498cff;
}

.city-confirm-button:hover,
.city-confirm-button:focus-visible {
  border-color: #78a9ff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(73, 140, 255, 0.28);
}

.city-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(720px, calc(100dvh - 32px));
  padding: 0;
  border: 1px solid rgba(73, 140, 255, 0.42);
  border-radius: 18px;
  background: #17191e;
  color: #ffffff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65);
}

.city-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(3px);
}

.city-dialog-inner {
  padding: 24px;
}

.city-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.city-dialog-title {
  margin: 0 0 5px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
}

.city-dialog-description {
  margin: 0;
  color: #a8adb7;
  font-size: 14px;
}

.city-dialog-close {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: transparent;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
}

.city-dialog-close:hover,
.city-dialog-close:focus-visible {
  border-color: #498cff;
  outline: none;
}

.city-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.city-list-button {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: #20232a;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.city-list-button:hover,
.city-list-button:focus-visible,
.city-list-button[aria-current="true"] {
  border-color: #498cff;
  background: rgba(73, 140, 255, 0.16);
  outline: none;
}

.city-service-location {
  margin: 0 0 18px;
  color: #aeb4bf;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.city-service-intro {
  padding: 72px 0 30px;
  background: #191919;
}

.city-service-intro-card {
  padding: 32px;
  border: 1px solid rgba(73, 140, 255, 0.25);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(73, 140, 255, 0.1), rgba(25, 25, 25, 0.8));
}

.city-service-intro h2 {
  margin-bottom: 14px;
  color: #ffffff;
}

.city-service-intro p {
  max-width: 850px;
  margin-bottom: 0;
  color: #b8bcc5;
  font-size: 17px;
  line-height: 1.65;
}

.city-landing {
  padding-bottom: 86px;
}

.city-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: #8f96a3;
  font-size: 14px;
}

.city-breadcrumbs a {
  color: #b8cfff;
}

.city-breadcrumbs a:hover,
.city-breadcrumbs a:focus-visible {
  color: #ffffff;
}

.city-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.city-segments li {
  padding: 8px 12px;
  border: 1px solid rgba(73, 140, 255, 0.3);
  border-radius: 999px;
  background: rgba(73, 140, 255, 0.08);
  color: #dce7ff;
  font-size: 14px;
}

.city-landing-heading {
  margin: 76px 0 30px;
}

.city-landing-heading h2,
.city-workflow h2,
.city-faq > h2,
.city-related h2 {
  max-width: 920px;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 45px);
  line-height: 1.15;
}

.city-landing-heading > p:last-child {
  max-width: 980px;
}

.city-eyebrow {
  margin-bottom: 10px !important;
  color: #78a9ff !important;
  font-size: 13px !important;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.city-seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.city-seo-card {
  min-width: 0;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: #202228;
  scroll-margin-top: 110px;
}

.city-seo-card:hover {
  border-color: rgba(73, 140, 255, 0.48);
}

.city-seo-card .city-card-number {
  margin-bottom: 18px;
  color: #78a9ff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.city-seo-card h2 {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: clamp(23px, 2.3vw, 31px);
  line-height: 1.25;
}

.city-seo-card p {
  font-size: 16px;
}

.city-seo-card ul {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  color: #e5e7eb;
  list-style: none;
}

.city-seo-card li {
  position: relative;
  padding-left: 20px;
}

.city-seo-card li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #498cff;
  content: "";
}

.city-workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px 54px;
  margin-top: 76px;
  padding: 36px;
  border: 1px solid rgba(73, 140, 255, 0.28);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(73, 140, 255, 0.11), rgba(24, 25, 29, 0.92));
}

.city-workflow ol {
  display: grid;
  gap: 16px;
  margin: 0;
  padding-left: 22px;
  color: #c8ccd4;
}

.city-workflow strong {
  color: #ffffff;
}

.city-workflow .city-trust-note {
  grid-column: 1 / -1;
  max-width: none;
  padding: 17px 19px;
  border-left: 3px solid #498cff;
  background: rgba(0, 0, 0, 0.16);
  font-size: 14px;
}

.city-workflow .btn {
  grid-column: 1 / -1;
  width: fit-content;
}

.city-faq {
  margin-top: 80px;
}

.city-faq-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.city-faq details {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: #202228;
}

.city-faq summary {
  padding: 19px 22px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.city-faq details p {
  max-width: 980px;
  padding: 0 22px 22px;
  font-size: 15px;
}

.city-related {
  margin-top: 72px;
}

.city-related h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.city-related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.city-related a {
  display: block;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #e9eef9;
  background: #202228;
}

.city-related a:hover,
.city-related a:focus-visible {
  border-color: #498cff;
  color: #ffffff;
}

@media (max-width: 1199.98px) {
  .city-nav-item {
    margin: 10px 0 0;
  }

  .city-selector-toggle {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .hero-3 .display-2 {
    font-size: clamp(30px, 8.6vw, 40px);
  }

  body[data-city-slug="sankt-peterburg"] .hero-3 .display-2 {
    font-size: clamp(25px, 7.2vw, 34px);
  }

  .city-confirm {
    top: 76px;
    right: 16px;
  }

  .city-dialog-inner {
    padding: 20px;
  }

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

  .city-service-intro {
    padding: 46px 0 18px;
  }

  .city-service-intro-card {
    padding: 22px;
  }

  .city-landing {
    padding-bottom: 56px;
  }

  .city-landing-heading,
  .city-workflow,
  .city-faq,
  .city-related {
    margin-top: 52px;
  }

  .city-seo-grid,
  .city-workflow {
    grid-template-columns: 1fr;
  }

  .city-seo-card,
  .city-workflow {
    padding: 23px;
  }
}

@media (max-width: 420px) {
  .city-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .city-selector-toggle,
  .city-list-button {
    transition: none;
  }
}
