.site-header {
  position: relative;
  z-index: 40;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.desktop-nav .nav-trigger {
  gap: 5px;
}

.desktop-nav .nav-trigger svg {
  width: 15px;
  height: 15px;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% - 18px);
  left: -18px;
  z-index: 120;
  width: 246px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 22px 48px oklch(0.2 0.01 175 / 14%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.desktop-nav .nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav .nav-dropdown a:hover {
  background: var(--accent);
  color: var(--primary-text);
}

.nav-dropdown svg {
  width: 14px;
  height: 14px;
  color: var(--muted-foreground);
}

@media (max-width: 850px) {
  .site-header .mobile-nav:not([hidden]) {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 6px 20px 18px;
    border-top: 1px solid var(--border);
    background: #fff;
  }

  .site-header .mobile-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
  }

  .site-header .mobile-nav a[aria-current="page"] {
    color: var(--primary-text);
  }

  .site-header .mobile-nav .mobile-sub {
    border-bottom: 1px solid var(--border);
  }

  .site-header .mobile-nav .mobile-sub summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    list-style: none;
    cursor: pointer;
  }

  .site-header .mobile-nav .mobile-sub summary::-webkit-details-marker,
  .site-header .mobile-nav .mobile-sub summary::marker {
    display: none;
    content: "";
  }

  .site-header .mobile-nav .mobile-sub summary.is-current {
    color: var(--primary-text);
  }

  .site-header .mobile-nav .mobile-sub summary svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }

  .site-header .mobile-nav .mobile-sub[open] summary svg {
    transform: rotate(180deg);
  }

  .site-header .mobile-nav .mobile-sub:not([open]) .mobile-sub-links {
    display: none;
  }

  .site-header .mobile-nav .mobile-sub[open] .mobile-sub-links {
    display: flex;
    flex-direction: column;
    padding: 0 0 6px 16px;
  }

  .site-header .mobile-nav .mobile-sub-links a {
    padding: 9px 0;
    border-bottom: 0;
    color: var(--muted-foreground);
    font-size: 14px;
    font-weight: 600;
  }

  .site-header .mobile-nav .mobile-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    margin-top: 15px;
    border: 0;
  }
}

button.home-search-tab {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background: #f3f1ea;
  color: #8a8478;
  font-weight: 700;
}

.photo-grid.is-empty {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.photo-grid.is-empty .main-photo {
  grid-column: 1;
  grid-row: 1;
}

.result-photo > .photo-placeholder,
.similar-photo > .photo-placeholder,
.photo-grid .photo-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f4f1ea;
  transform: none;
}

.result-card:hover .photo-placeholder,
.similar-card:hover .photo-placeholder {
  transform: none;
}

.results-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 8px;
}

.results-pages .page-current {
  min-width: 42px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #1f6b4a;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.results-empty {
  padding: 48px 0 24px;
  text-align: center;
}

.results-empty h2 {
  margin: 12px 0 8px;
}

.results-filter-panel.adv-panel {
  display: block;
  background: transparent;
  border: 0;
  padding: 0;
}

.search-band.results-filter-panel.adv-panel {
  background: var(--muted);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 18px 0;
}

.search-band.adv-panel .adv-launch {
  min-height: 62px;
  background: #fff;
}

.adv-launch {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.adv-launch > svg {
  color: var(--primary);
  flex: none;
}

.adv-launch > span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  min-width: 0;
  flex: 1;
  font-size: 14px;
}

.adv-launch strong {
  margin-right: 6px;
  color: var(--muted-foreground);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.adv-launch em {
  font-style: normal;
  font-weight: 700;
}

.adv-launch b {
  flex: none;
  color: var(--primary-text);
  font-size: 14px;
}

.dialog.search-dialog {
  width: min(720px, 100%);
  max-height: min(88vh, 820px);
  padding: 18px 18px 0;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dialog.search-dialog .btn {
  width: auto;
  margin-top: 0;
}

.search-deals {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 16px;
}

.search-deal,
.search-step,
.pick-chip,
.loc-toggle,
.search-all,
.search-clear,
.search-next {
  font: inherit;
  cursor: pointer;
}

.search-deal {
  height: 36px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #f3f1ea;
  color: inherit;
  font-weight: 700;
}

.search-deal.is-active {
  background: var(--primary);
  color: #fff;
}

.search-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.search-step {
  min-height: 58px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: center;
}

.search-step small {
  display: block;
  margin-top: 3px;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-step.is-active {
  background: var(--primary-soft);
}

.search-panes {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 8px 2px 12px;
}

.search-pane[hidden],
.loc-children[hidden],
.loc-child[hidden],
.loc-group[hidden] {
  display: none !important;
}

.pane-label {
  margin: 14px 0 10px;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.loc-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.loc-search svg {
  color: var(--primary);
  flex: none;
}

.loc-search input {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
}

.loc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.loc-group {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.loc-row,
.loc-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.loc-row {
  padding: 12px 14px;
}

.loc-row label,
.loc-child {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
}

.loc-row label {
  flex: 1;
}

.loc-copy {
  display: contents;
}

.loc-name {
  min-width: 0;
}

.loc-meta,
.loc-child em {
  margin-left: auto;
  color: var(--muted-foreground);
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}

.loc-toggle,
.search-all,
.search-clear {
  border: 0;
  background: transparent;
  color: var(--primary-text);
  font-size: 13px;
  font-weight: 700;
}

.loc-children {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px 10px 36px;
}

.loc-child {
  padding: 7px 8px;
  border-radius: 8px;
}

.loc-row input,
.loc-child input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--primary);
  flex: none;
}

.search-all {
  margin-top: 12px;
}

.type-block + .type-block {
  margin-top: 16px;
}

.type-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.type-head h3 {
  margin: 0;
  font-size: 15px;
}

.type-head button {
  border: 0;
  background: transparent;
  color: var(--primary-text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.type-chips,
.budget-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pick-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
}

.pick-chip.is-on,
.pick-chip:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.pick-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.budget-presets {
  margin-top: 4px;
}

.budget-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.budget-range label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 700;
}

.budget-range input {
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-weight: 600;
}

.more-range {
  margin: 8px 0 16px;
}

.search-dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: none;
  position: relative;
  z-index: 2;
  margin: 0 -18px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.search-dialog-foot-actions {
  display: flex;
  gap: 8px;
}

.search-next {
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #1c1c1c;
  color: #fff;
  font-weight: 700;
}

.search-view {
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
}

@media (max-width: 700px) {
  .adv-launch {
    align-items: flex-start;
  }

  .adv-launch b {
    display: none;
  }

  .dialog-backdrop:has(.search-dialog) {
    padding: 8px;
    align-items: stretch;
  }

  .search-steps {
    grid-template-columns: 1fr 1fr;
  }

  .dialog.search-dialog {
    width: 100%;
    max-height: calc(100dvh - 16px);
    border-radius: 16px;
    padding: 14px 14px 0;
  }

  .loc-row {
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
  }

  .loc-row label {
    align-items: flex-start;
  }

  .loc-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .loc-name {
    line-height: 1.25;
  }

  .loc-meta {
    margin-left: 0;
    white-space: normal;
    line-height: 1.3;
  }

  .loc-toggle {
    flex: none;
    padding-top: 2px;
    white-space: nowrap;
  }

  .loc-child span {
    min-width: 0;
    line-height: 1.3;
  }

  .search-dialog-foot {
    flex-wrap: wrap;
    align-items: stretch;
    margin: 0 -14px;
    padding: 12px 14px;
  }

  .search-clear {
    flex: 1 0 100%;
    text-align: left;
  }

  .search-dialog-foot-actions {
    flex: 1 1 100%;
    width: auto;
  }

  .search-view,
  .search-next {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (min-width: 641px) {
  .contact-sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
    z-index: 2;
  }
}

.dialog-backdrop.gallery-open .lightbox-pan {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dialog-backdrop.gallery-open .lightbox-pan > img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.dialog-backdrop.gallery-open .lightbox-image > .lightbox-pan > img,
.dialog-backdrop.gallery-open .lightbox-image > img {
  cursor: zoom-in;
  -webkit-user-drag: none;
  user-select: none;
}

.dialog-backdrop.gallery-open .gallery-zoom,
.dialog-backdrop.gallery-open .gallery-prev,
.dialog-backdrop.gallery-open .gallery-next {
  z-index: 3;
}

.dialog-backdrop.gallery-open .gallery-zoom {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 44px;
  height: 44px;
  margin: 0;
}

.dialog-backdrop.gallery-open .lightbox-image.is-zoomed .lightbox-pan {
  overflow: auto;
  align-items: flex-start;
  justify-content: flex-start;
  cursor: grab;
  touch-action: none;
}

.dialog-backdrop.gallery-open .lightbox-image.is-zoomed.is-panning .lightbox-pan {
  cursor: grabbing;
}

.header-saved {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 41px;
  height: 41px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  flex: none;
}

.header-saved svg {
  width: 18px;
  height: 18px;
}

.header-saved:hover,
.header-saved.is-current {
  border-color: var(--foreground);
}

.header-saved-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #9f2d2d;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.header-saved-count[hidden] {
  display: none;
}

button[data-offer][aria-pressed="true"] svg {
  fill: #9f2d2d;
  color: #9f2d2d;
}

.cms-page {
  padding-top: 28px;
  padding-bottom: 64px;
}

.cms-page h1 {
  max-width: 28ch;
  margin-top: 12px;
}

.cms-article {
  max-width: 1040px;
}

.cms-article.has-illustration {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 66ch) minmax(280px, 1fr);
  column-gap: 56px;
  align-items: start;
}

.cms-illustration {
  grid-column: 2;
  grid-row: 1 / span 4;
  margin: 4px 0 0;
}

.cms-illustration img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
}

.cms-illustration figcaption {
  margin-top: 8px;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.45;
}

.cms-lead,
.cms-content,
.cms-gallery {
  grid-column: 1;
}

.cms-lead {
  max-width: 68ch;
  margin: 0 0 22px;
  color: var(--muted-foreground);
  font-size: 18px;
  line-height: 1.7;
}

.cms-content {
  max-width: 72ch;
}

.cms-content > p:empty {
  display: none;
}

.cms-content p,
.cms-content li {
  color: var(--muted-foreground);
  font-size: 16px;
  line-height: 1.8;
  text-align: start !important;
}

.cms-content > p:first-of-type:not(:has(strong)) {
  color: var(--foreground);
  font-size: 18px;
  line-height: 1.75;
}

.cms-content strong {
  display: block;
  margin: 1.65em 0 0.35em;
  color: var(--foreground);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.cms-content strong + br {
  display: none;
}

.cms-content p {
  margin: 0 0 14px;
}

.cms-content h2,
.cms-content h3 {
  margin: 28px 0 12px;
  color: var(--foreground);
}

.cms-content a {
  color: var(--primary-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cms-content ul,
.cms-content ol {
  margin: 4px 0 18px;
  padding: 0;
  list-style: none;
}

.cms-content li {
  position: relative;
  margin: 0 0 9px;
  padding-left: 18px;
}

.cms-content li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.cms-content img {
  max-width: 100%;
  height: auto;
}

.cms-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.cms-gallery img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.project-section-links {
  margin: 6px 0 22px;
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.5;
}

.project-section-links a {
  color: var(--primary-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}

.project-photo {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f1ea;
}

.project-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-photo .photo-placeholder {
  object-fit: contain;
}

.project-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 22px;
}

.project-copy strong {
  font-size: 18px;
  line-height: 1.4;
}

.project-copy span {
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.6;
}

.cms-empty {
  margin-top: 8px;
  color: var(--muted-foreground);
}

.cms-subpages {
  margin-top: 42px;
  max-width: 860px;
}

.cms-subpages h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.cms-subpages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cms-subpages-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--foreground);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cms-subpages-grid a:hover {
  border-color: oklch(0.72 0.171 61 / 55%);
  transform: translateY(-2px);
}

.cms-subpages-grid strong {
  display: block;
  font-size: 16px;
  line-height: 1.35;
}

.cms-subpages-grid em {
  display: block;
  margin-top: 4px;
  color: var(--muted-foreground);
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.45;
}

.cms-subpages-grid svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--muted-foreground);
}

@media (max-width: 900px) {
  .cms-article.has-illustration {
    grid-template-columns: 1fr;
  }

  .cms-illustration {
    grid-column: 1;
    grid-row: auto;
    max-width: 420px;
    margin-bottom: 22px;
  }

  .cms-gallery,
  .project-grid,
  .cms-subpages-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .cms-page h1 {
    max-width: none;
  }

  .cms-gallery,
  .project-grid,
  .cms-subpages-grid {
    grid-template-columns: 1fr;
  }
}

.header-phones {
  position: relative;
}

.header-phones summary {
  list-style: none;
  cursor: pointer;
}

.header-phones summary::-webkit-details-marker {
  display: none;
}

.header-phones summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.header-phones[open] summary::after {
  transform: translateY(1px) rotate(225deg);
}

.header-phone-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  min-width: 176px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 36px oklch(0.2 0.02 175 / 16%);
}

.header-phone-menu a {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.header-phone-menu a:hover,
.header-phone-menu a:focus-visible {
  background: var(--primary-soft);
}

@media (max-width: 850px) {
  .header-phones {
    margin-left: auto;
  }

  .header-phone {
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .page-container {
    padding-right: 14px;
    padding-left: 14px;
  }

  .header-inner {
    gap: 6px;
  }

  .brand {
    width: 78px;
  }

  .mobile-menu {
    flex: none;
    width: 36px;
    height: 36px;
  }

  .header-phone {
    gap: 6px;
    font-size: 13px;
  }

  .header-saved {
    width: 36px;
    height: 36px;
  }
}

.contacts-intro {
  padding-top: 28px;
}

.contacts-page .home-offices {
  padding-top: 36px;
  padding-bottom: 28px;
}

.contacts-page h1 {
  margin: 10px 0 14px;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.15;
}

.contacts-lead {
  max-width: 62ch;
  margin: 0;
  color: var(--muted-foreground);
  font-size: 16px;
  line-height: 1.7;
}

.contacts-write {
  padding: 8px 0 86px;
}

.contacts-form-card {
  padding: 28px 28px 26px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.contacts-form-card > section {
  padding: 0;
}

.contacts-form-card h5 {
  margin: 0 0 18px;
  color: var(--foreground);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.2;
}

.contacts-page .frm_contacts .row {
  display: grid;
  gap: 14px;
  margin: 0 0 14px;
}

.contacts-page .frm_contacts > .row:first-of-type {
  grid-template-columns: 1fr 1fr;
}

.contacts-page .frm_contacts [class*="col-"] {
  width: auto;
  max-width: none;
  padding: 0;
}

.contacts-page .frm_contacts .form-floating {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.contacts-page .frm_contacts .form-floating > label {
  order: 1;
}

.contacts-page .frm_contacts .form-floating > .form-control {
  order: 2;
}

.contacts-page .frm_contacts .form-floating > label {
  position: static;
  transform: none;
  height: auto;
  margin: 0;
  padding: 0;
  opacity: 1;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.contacts-page .frm_contacts .form-control {
  width: 100%;
  height: auto;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--foreground);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  padding: 11px 12px;
  box-shadow: none;
}

.contacts-page .frm_contacts textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.contacts-page .frm_contacts .form-control:focus {
  border-color: var(--primary);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.contacts-page .frm_contacts .form-check {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 16px;
}

.contacts-page .frm_contacts .form-check .formError {
  flex-basis: 100%;
  margin-left: 26px !important;
}

.contacts-page .frm_contacts .form-check-input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--primary);
}

.contacts-page .frm_contacts .form-check-label,
.contacts-page .frm_contacts .form-check-label small {
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.contacts-page .frm_contacts button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
}

.contacts-page .frm_contacts button[type="submit"] .fa,
.contacts-page .frm_contacts button[type="submit"] .far,
.contacts-page .frm_contacts button[type="submit"] .fas {
  display: none;
}

.contacts-page .formError {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  opacity: 1 !important;
  order: 3;
}

.contacts-page .formError .formErrorArrow {
  display: none;
}

.contacts-page .formError .formErrorContent {
  position: static;
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #9f2d2d;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

#centralModalSuccess {
  display: none;
}

#centralModalSuccess.show {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.45);
}

#centralModalSuccess .modal-dialog {
  width: min(420px, 100%);
  margin: 0;
}

#centralModalSuccess .modal-content {
  padding: 22px;
  border-radius: 12px;
  background: var(--card);
  color: var(--foreground);
}

#centralModalSuccess .modal-header,
#centralModalSuccess .modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#centralModalSuccess .heading {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

#centralModalSuccess .btn-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: var(--muted);
  cursor: pointer;
}

#centralModalSuccess .modal-footer .btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 700px) {
  .contacts-form-card {
    padding: 20px 16px 18px;
  }

  .contacts-page .frm_contacts > .row:first-of-type {
    grid-template-columns: 1fr;
  }
}

.property-price.is-ask {
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1.3;
}

.result-price strong.is-ask,
.similar-price strong.is-ask {
  font-size: 18px;
  font-weight: 700;
  white-space: normal;
}

.dialog-backdrop.gallery-open .lightbox-image.is-zoomed .lightbox-pan > img {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  flex: none;
  cursor: grab;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 8px 22px oklch(0.45 0.08 55 / 28%);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top svg {
  width: 20px;
  height: 20px;
}

.to-top:hover {
  filter: brightness(0.97);
}

.to-top:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 3px;
}

.contacts-page .to-top {
  bottom: 84px;
}

@media (max-width: 700px) {
  .to-top {
    right: 14px;
    bottom: 14px;
  }

  .contacts-page .to-top {
    bottom: 72px;
  }
}
