/* Layout fixes shared by city pages. */

@media (min-width: 991px) {
  body .header__nav {
    margin-top: 85px !important;
  }

  body .header__nav > .header__menu.menu {
    margin-top: 0 !important;
  }

  body .main,
  body .main-card,
  body .city-seo.city-seo--home-design,
  body .city-practical-guide,
  body .city-local-note,
  body .city-transition,
  body .city-semantic-bridge,
  body .city-unique-note,
  body .recovery,
  body .after,
  body .work,
  body .video,
  body .master,
  body .question,
  body .three-steps,
  body .contact,
  body .services,
  body .advantages,
  body .reviews,
  body .article,
  body .blog {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 210px !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  body .main > .container,
  body .main-card > .container,
  body .city-seo.city-seo--home-design > .container,
  body .city-practical-guide > .container,
  body .city-local-note > .container,
  body .recovery > .container,
  body .after > .container,
  body .work > .container,
  body .video > .container,
  body .master > .container,
  body .question > .container,
  body .three-steps > .container,
  body .contact > .container,
  body .services > .container,
  body .advantages > .container,
  body .reviews > .container,
  body .article > .container,
  body .blog > .container {
    width: min(100% - 48px, 1200px) !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
  }

  body .city-unique-note {
    padding-left: 210px !important;
    padding-right: 0 !important;
  }

  body .city-unique-note__inner,
  body .city-transition,
  body .city-semantic-bridge {
    width: min(100% - 48px, 1120px) !important;
    max-width: 1120px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  body .city-transition,
  body .city-semantic-bridge {
    width: min(calc(100% - 258px), 1120px) !important;
    margin-left: max(225px, calc(210px + (100% - 210px - 1120px) / 2)) !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  body .service__title,
  body .akril-price__new.title,
  body .question__title.title,
  body .master__title.title {
    max-width: 980px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
}

@media (max-width: 767px) {
  body .main {
    margin-top: 61px !important;
    padding-bottom: 12px !important;
  }

  body .main__row {
    min-height: 0 !important;
  }

  body .main__title {
    padding-top: 20px !important;
    margin-bottom: 10px !important;
  }

  body .main__lable {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  body .main__button {
    margin-top: 12px !important;
    margin-bottom: 10px !important;
    padding-top: 10px !important;
    padding-bottom: 12px !important;
  }

  body .main-card {
    margin-top: 12px !important;
    padding-top: 0 !important;
    padding-bottom: 28px !important;
  }

  body .main-card__body,
  body .main-card__row {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  body .city-transition,
  body .city-semantic-bridge {
    margin-top: 14px !important;
    margin-bottom: 14px !important;
  }

  body .city-practical-guide,
  body .city-local-note,
  body .city-seo.city-seo--home-design {
    margin-top: 0 !important;
    padding-top: 24px !important;
  }
}

@media (max-width: 575px) {
  body .main-card {
    margin-top: 0 !important;
  }
}

/* Short page navigation for city pages. */
.city-short-nav {
  display: grid;
  gap: 12px;
  width: min(calc(100% - 258px), 1120px);
  max-width: 1120px;
  margin: 24px auto 34px;
  margin-left: max(225px, calc(210px + (100% - 210px - 1120px) / 2));
  padding: 20px 24px 22px;
  border: 1px solid #dceaf3;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fcff 0%, #eef7fd 100%);
  box-shadow: 0 12px 28px rgba(16, 47, 74, .06);
  box-sizing: border-box;
}

.city-short-nav__label {
  display: block;
  color: #667085;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.city-short-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.city-short-nav__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid #d6e8f5;
  border-radius: 999px;
  background: #f2fafe;
  color: #155b8c;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  transition: .18s ease;
}

.city-short-nav__links a:hover {
  background: #1d5789;
  border-color: #1d5789;
  color: #ffffff;
}

.city-short-nav--after-work {
  margin-top: 10px;
  margin-bottom: 30px;
}

.city-short-nav + .recovery--methods {
  position: relative;
  margin-top: 0;
  padding-top: 38px;
}

.city-short-nav + .recovery--methods::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(calc(100% - 258px), 1120px);
  height: 1px;
  transform: translateX(calc(-50% + 105px));
  background: linear-gradient(90deg, transparent, #b7d3e7 18%, #1d5789 50%, #b7d3e7 82%, transparent);
}

.city-short-nav + .recovery--methods .service__title {
  margin-top: 0;
  margin-bottom: 30px;
}

#prices,
#video,
#photo,
#process {
  scroll-margin-top: 90px;
}

@media (max-width: 990px) {
  .city-short-nav {
    justify-content: center;
    width: min(100% - 24px, 1120px);
    margin: 18px auto 28px;
    padding: 18px 16px 20px;
    text-align: center;
  }

  .city-short-nav + .recovery--methods {
    padding-top: 30px;
  }

  .city-short-nav + .recovery--methods::before {
    width: min(100% - 24px, 1120px);
    transform: translateX(-50%);
  }

  .city-short-nav__links {
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .city-short-nav__links {
    gap: 8px;
    justify-content: center;
  }

  .city-short-nav__links a {
    flex: 0 1 calc(50% - 8px);
    min-height: 40px;
    padding: 9px 12px;
    font-size: 14px;
  }
}

.city-unique-note {
  max-width: 1120px;
  margin: 28px auto 34px;
  padding: 0 15px;
}

.city-unique-note__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, .95fr);
  gap: 18px;
  padding: 26px 28px;
  border: 1px solid #dbe7ed;
  border-radius: 8px;
  background: #f7fbff;
  box-shadow: 0 14px 34px rgba(16, 32, 51, .07);
}

.city-unique-note__eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 12px;
  border: 1px solid #c8dceb;
  border-radius: 8px;
  background: #fff;
  color: #1d5789;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.city-unique-note h2 {
  margin: 0 0 14px;
  color: #102033;
  font-size: 27px;
  line-height: 1.25;
  font-weight: 900;
  text-transform: none;
}

.city-unique-note p {
  margin: 0 0 14px;
  color: #3b4d61;
  font-size: 17px;
  line-height: 1.66;
}

.city-unique-note p:last-child {
  margin-bottom: 0;
}

.city-unique-note__facts {
  display: grid;
  gap: 10px;
}

.city-unique-note__fact {
  padding: 14px 15px;
  border: 1px solid #d6e8f5;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 15px;
  line-height: 1.48;
}

.city-unique-note__fact strong {
  display: block;
  margin-bottom: 5px;
  color: #1d5789;
  font-size: 14px;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .city-unique-note__inner {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }
}

@media (max-width: 575px) {
  .city-unique-note {
    margin: 20px auto 24px;
  }

  .city-unique-note h2 {
    font-size: 23px;
  }
}

/* Rebuilt mobile hero for city pages. */
body.city-page .city-mobile-hero {
  display: none;
}

@media (max-width: 767px) {
  body.city-page .main {
    display: none !important;
  }

  body.city-page .city-mobile-hero {
    display: grid !important;
    grid-template-columns: 52% 48%;
    align-items: start;
    gap: 0;
    margin: 61px 0 0;
    padding: 10px 0 16px;
    background: #ffffff;
    color: #1d5789;
    overflow: hidden;
  }

  body.city-page .city-mobile-hero__title {
    grid-column: 1 / -1;
    margin: 0 10px 8px;
    color: #1d5789;
    font-family: "Fira Sans", Arial, sans-serif;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0;
  }

  body.city-page .city-mobile-hero__text {
    padding: 0 0 0 8px;
    min-width: 0;
  }

  body.city-page .city-mobile-hero__label {
    color: #2b7795;
    font-family: "Fira Sans", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.12;
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
  }

  body.city-page .city-mobile-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin: 24px auto 0;
    padding: 0 18px;
    border-radius: 6px;
    background: #316f9d;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(29, 87, 137, .28);
    font-size: 14px;
    line-height: 1.1;
    font-weight: 700;
    text-align: center;
  }

  body.city-page .city-mobile-hero__media {
    display: block;
    align-self: start;
    padding: 0;
    overflow: hidden;
  }

  body.city-page .city-mobile-hero__media img {
    display: block;
    width: 100%;
    max-width: 210px;
    height: auto;
    margin: 0 0 0 auto;
  }

  body.city-page .main-card {
    margin-top: 0 !important;
  }
}

@media (max-width: 420px) {
  body.city-page .city-mobile-hero {
    grid-template-columns: 51% 49%;
    padding-top: 8px;
  }

  body.city-page .city-mobile-hero__title {
    margin-bottom: 6px;
    font-size: 23px;
  }

  body.city-page .city-mobile-hero__label {
    font-size: 17px;
  }

  body.city-page .city-mobile-hero__btn {
    margin-top: 22px;
  }
}

/* GEO answer block for AI/search readability */
.city-ai-answer {
  margin: 38px auto 34px;
  padding: 0 16px;
}
.city-ai-answer__inner {
  display: grid;
  grid-template-columns: 38% minmax(0, 1fr);
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid #d7e4ee;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(24, 74, 116, 0.08);
}
.city-ai-answer__heading {
  padding: 24px 26px;
  background: #eef6fb;
  border-right: 1px solid #d7e4ee;
}
.city-ai-answer__label {
  display: inline-block;
  margin-bottom: 8px;
  color: #1f5d8f;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
}
.city-ai-answer h2 {
  margin: 0;
  color: #164a76;
  font-size: 26px;
  line-height: 1.25;
}
.city-ai-answer__body {
  padding: 24px 28px;
}
.city-ai-answer p {
  margin: 0;
  color: #1b2838;
  font-size: 17px;
  line-height: 1.65;
}
.city-ai-answer__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.city-ai-answer__summary span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #c8ddeb;
  background: #f7fbfe;
  color: #164a76;
  font-size: 14px;
  font-weight: 700;
}
@media (max-width: 767px) {
  .city-ai-answer {
    margin: 28px auto 26px;
    padding: 0 12px;
  }
  .city-ai-answer__inner {
    grid-template-columns: 1fr;
  }
  .city-ai-answer__heading {
    padding: 18px 16px;
    border-right: 0;
    border-bottom: 1px solid #d7e4ee;
  }
  .city-ai-answer__body {
    padding: 18px 16px;
  }
  .city-ai-answer h2 {
    font-size: 21px;
  }
  .city-ai-answer p {
    font-size: 15px;
    line-height: 1.55;
  }
}
