/* ═══════════════════════════════════════════════════════════
   Архыз Инвест — Alpine Editorial Design System
   ═══════════════════════════════════════════════════════════ */

:root {
  --ax-primary: #3f5073;
  --ax-primary-dark: #2a3549;
  --ax-primary-light: #5a6d94;
  --ax-gold: #b89a5b;
  --ax-gold-light: #d4bc82;
  --ax-cream: #f6f3ec;
  --ax-cream-dark: #ebe6db;
  --ax-ink: #141c28;
  --ax-muted: #6b7689;
  --ax-line: rgba(20, 28, 40, 0.1);
  --ax-white: #ffffff;
  --ax-font: "DM Sans", system-ui, sans-serif;
  --ax-display: "Cormorant Garamond", Georgia, serif;
  --ax-max: 1320px;
  --ax-pad: clamp(20px, 4vw, 48px);
  --ax-header-h: 76px;
  --ax-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ax-safe-top: env(safe-area-inset-top, 0px);
  --ax-safe-bottom: env(safe-area-inset-bottom, 0px);
  --ax-safe-left: env(safe-area-inset-left, 0px);
  --ax-safe-right: env(safe-area-inset-right, 0px);
}

html.ax-drawer-open,
html.ax-drawer-open body {
  overflow: hidden;
}

html.ax-site {
  scroll-padding-top: calc(var(--ax-header-h) + var(--ax-safe-top));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.ax-site {
  font-family: var(--ax-font);
  color: var(--ax-ink);
  background: var(--ax-cream);
  font-size: 16px;
  line-height: 1.6;
}

.ax-site .container,
.ax-site .container-inner {
  max-width: var(--ax-max);
  padding-left: var(--ax-pad);
  padding-right: var(--ax-pad);
}

/* ─── Header ─── */
.ax-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--ax-header-h);
  background: rgba(246, 243, 236, 0.92);
  border-bottom: 1px solid var(--ax-line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: background 0.4s var(--ax-ease), box-shadow 0.4s var(--ax-ease);
}

.ax-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 32px rgba(42, 53, 73, 0.08);
}

.ax-header__inner {
  max-width: calc(var(--ax-max) + var(--ax-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--ax-pad);
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.ax-header__logo img {
  height: 38px;
  width: auto;
  display: block;
}

.ax-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 40px);
}

.ax-nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ax-muted);
  text-decoration: none;
  transition: color 0.25s;
  position: relative;
}

.ax-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--ax-gold);
  transition: width 0.3s var(--ax-ease);
}

.ax-nav a:hover {
  color: var(--ax-primary);
}

.ax-nav a:hover::after {
  width: 100%;
}

.ax-header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ax-header__phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--ax-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.ax-header__phone:hover {
  color: var(--ax-primary);
}

.ax-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--ax-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.15s, box-shadow 0.25s;
}

.ax-btn:active {
  transform: scale(0.98);
}

.ax-btn--gold {
  background: var(--ax-gold);
  color: var(--ax-white);
}

.ax-btn--gold:hover {
  background: var(--ax-gold-light);
  box-shadow: 0 8px 24px rgba(184, 154, 91, 0.35);
}

.ax-btn--primary {
  background: var(--ax-primary);
  color: var(--ax-white);
}

.ax-btn--primary:hover {
  background: var(--ax-primary-dark);
  box-shadow: 0 8px 28px rgba(63, 80, 115, 0.3);
}

.ax-btn--outline {
  background: transparent;
  color: var(--ax-primary);
  border: 1.5px solid var(--ax-primary);
}

.ax-btn--outline:hover {
  background: var(--ax-primary);
  color: var(--ax-white);
}

.ax-btn--ghost {
  background: transparent;
  color: var(--ax-ink);
  padding-left: 0;
  padding-right: 0;
  letter-spacing: 0.06em;
}

.ax-btn--ghost:hover {
  color: var(--ax-gold);
}

.ax-btn--light {
  background: var(--ax-white);
  color: var(--ax-primary);
}

.ax-btn--light:hover {
  background: var(--ax-cream);
}

.ax-header__burger,
.ax-header__call-mobile,
.ax-drawer__close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border: 1px solid var(--ax-line);
  background: var(--ax-white);
  color: var(--ax-ink);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s var(--ax-ease), color 0.2s var(--ax-ease), border-color 0.2s var(--ax-ease);
}

.ax-header__burger {
  flex-direction: column;
  gap: 5px;
}

.ax-header__call-mobile {
  color: var(--ax-primary);
}

.ax-header__call-mobile:hover,
.ax-header__burger:hover,
.ax-drawer__close:hover {
  background: var(--ax-primary);
  border-color: var(--ax-primary);
  color: var(--ax-white);
}

.ax-header__call-mobile svg,
.ax-drawer__close svg {
  display: block;
}

.ax-header__burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ax-ink);
  transition: transform 0.3s, opacity 0.2s;
}

.ax-header__burger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.ax-header__burger.is-open span:nth-child(2) {
  opacity: 0;
}

.ax-header__burger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile drawer */
.ax-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  visibility: hidden;
}

.ax-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.ax-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 40, 0.6);
  opacity: 0;
  transition: opacity 0.4s;
}

.ax-drawer.is-open .ax-drawer__backdrop {
  opacity: 1;
}

.ax-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  background: var(--ax-cream);
  padding: 32px var(--ax-pad);
  transform: translateX(100%);
  transition: transform 0.45s var(--ax-ease);
  display: flex;
  flex-direction: column;
}

.ax-drawer.is-open .ax-drawer__panel {
  transform: translateX(0);
}

.ax-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.ax-drawer__close {
  display: inline-flex;
}

.ax-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ax-drawer__nav a {
  font-family: var(--ax-display);
  font-size: clamp(28px, 6vw, 36px);
  font-weight: 500;
  color: var(--ax-ink);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--ax-line);
  transition: color 0.2s, padding-left 0.3s;
}

.ax-drawer__nav a:hover {
  color: var(--ax-primary);
  padding-left: 12px;
}

.ax-drawer__footer {
  margin-top: auto;
  padding-top: 32px;
}

/* ─── Hero split ─── */
.ax-hero {
  --ax-hero-autoplay: 8s;
  min-height: 100vh;
  padding-top: var(--ax-header-h);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  background: var(--ax-cream);
}

.ax-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 80px) clamp(32px, 5vw, 64px);
  position: relative;
  border-right: 1px solid var(--ax-line);
}

.ax-hero__counter {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ax-gold);
  margin-bottom: 32px;
}

.ax-hero__counter-sep {
  margin: 0 6px;
  opacity: 0.5;
}

.ax-hero__copy {
  display: none;
  animation: axFadeUp 0.7s var(--ax-ease) both;
}

.ax-hero__copy.is-active {
  display: block;
}

@keyframes axFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ax-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 28px;
}

.ax-hero__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ax-muted);
}

.ax-hero__tag::before {
  content: "—";
  margin-right: 8px;
  color: var(--ax-gold);
}

.ax-hero__title {
  font-family: var(--ax-display);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ax-ink);
  margin: 0 0 24px;
}

.ax-hero__subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ax-muted);
  max-width: 420px;
  margin: 0 0 40px;
}

.ax-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
}

.ax-hero__thumbs {
  margin-top: auto;
  padding-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ax-hero__thumb {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border: none;
  border-top: 1px solid var(--ax-line);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--ax-font);
  transition: padding-left 0.3s var(--ax-ease);
}

.ax-hero__thumb:last-child {
  border-bottom: 1px solid var(--ax-line);
}

.ax-hero__thumb-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ax-gold);
  min-width: 24px;
}

.ax-hero__thumb-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ax-muted);
  transition: color 0.2s;
}

.ax-hero__thumb.is-active .ax-hero__thumb-label,
.ax-hero__thumb:hover .ax-hero__thumb-label {
  color: var(--ax-ink);
}

.ax-hero__thumb.is-active {
  padding-left: 8px;
}

.ax-hero__thumb-bar {
  flex: 1;
  height: 2px;
  background: var(--ax-line);
  position: relative;
  overflow: hidden;
  max-width: 80px;
  margin-left: auto;
}

.ax-hero__thumb-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--ax-gold);
  transition: width 0.1s linear;
}

.ax-hero__media {
  position: relative;
  overflow: hidden;
  min-height: 50vh;
}

.ax-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: opacity 0.9s var(--ax-ease), visibility 0.9s;
}

.ax-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.ax-hero__slide img,
.ax-hero__slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ax-hero__slide img {
  transform: scale(1);
  will-change: transform;
}

.ax-hero__slide.is-active img {
  animation: ax-hero-slide-zoom var(--ax-hero-autoplay, 8s) ease-out forwards;
}

.ax-hero__slide:not(.is-active) img {
  animation: none;
  transform: scale(1);
}

@keyframes ax-hero-slide-zoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ax-hero__slide.is-active img {
    animation: none;
  }
}

.ax-hero__slide-bg {
  background:
    linear-gradient(160deg, rgba(42, 53, 73, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, #4a5f82 0%, #3f5073 40%, #2a3549 100%);
}

/* ─── Stats strip ─── */
.ax-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ax-line);
  background: var(--ax-white);
}

.ax-stats__item {
  padding: clamp(28px, 4vw, 40px) var(--ax-pad);
  border-right: 1px solid var(--ax-line);
  text-align: center;
}

.ax-stats__item:last-child {
  border-right: none;
}

.ax-stats__value {
  font-family: var(--ax-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  color: var(--ax-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.ax-stats__label {
  font-size: 13px;
  color: var(--ax-muted);
  max-width: 200px;
  margin: 0 auto;
  line-height: 1.45;
}

/* ─── Section common ─── */
.ax-section {
  padding: clamp(64px, 10vw, 120px) 0;
}

.ax-section--dark {
  background: var(--ax-primary-dark);
  color: var(--ax-white);
}

.ax-section--white {
  background: var(--ax-white);
}

.ax-section-tone--cream {
  background: var(--ax-cream);
}

.ax-section-tone--white {
  background: var(--ax-white);
}

.ax-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 64px);
  flex-wrap: wrap;
}

.ax-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ax-gold);
  margin-bottom: 12px;
}

.ax-section--dark .ax-label {
  color: var(--ax-gold-light);
}

.ax-heading {
  font-family: var(--ax-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
}

.ax-heading em {
  font-style: italic;
  color: var(--ax-gold);
}

.ax-section--dark .ax-heading em {
  color: var(--ax-gold-light);
}

/* ─── Offers (mortgage) ─── */
.ax-offers {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.ax-offers__lead {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 20px;
  max-width: 360px;
}

.ax-offers__list {
  display: flex;
  flex-direction: column;
}

.ax-offer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px 16px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ax-offer:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ax-offer__num {
  font-family: var(--ax-display);
  font-size: 48px;
  font-weight: 400;
  color: var(--ax-gold-light);
  line-height: 1;
  opacity: 0.6;
}

.ax-offer__accent {
  font-family: var(--ax-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  color: var(--ax-white);
  margin: 0 0 6px;
  line-height: 1.1;
}

.ax-offer__accent strong {
  color: var(--ax-gold-light);
}

.ax-offer__text {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.ax-offer__action {
  flex-shrink: 0;
}

.ax-offer__action .ax-btn--outline {
  min-width: 168px;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--ax-white);
  white-space: nowrap;
}

.ax-offer__action .ax-btn--outline:hover {
  background: var(--ax-white);
  color: var(--ax-primary-dark);
  border-color: var(--ax-white);
}

.ax-offer--featured {
  background: rgba(255, 255, 255, 0.06);
  margin: 0 -16px;
  padding: 28px 16px;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* ─── Projects scroll ─── */
.ax-projects__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ax-projects__track::-webkit-scrollbar {
  display: none;
}

@media (max-width: 1024px) {
  #projects > .container,
  #projects > .container > .container-inner {
    padding-right: 0;
    max-width: none;
  }

  .ax-projects__track {
    gap: 12px;
    scroll-padding-inline-end: 0;
    align-items: stretch;
  }

  .ax-projects__track > .ax-project {
    flex: 0 0 calc(100vw - var(--ax-pad) * 2 - 28px);
    max-width: none;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
  }

  .ax-projects__track > .ax-project:last-child {
    flex: 0 0 calc(100vw - var(--ax-pad) * 2 - 28px);
    scroll-snap-align: end;
  }

  .ax-projects__track > .ax-project .ax-project__visual {
    flex: 1 1 auto;
    width: 100%;
    height: clamp(400px, 62vw, 480px);
    aspect-ratio: auto;
    min-height: 400px;
  }

  .ax-projects__track::after {
    content: none;
  }
}

/* ─── Project card ─── */
.ax-project {
  flex: 0 0 clamp(280px, 38vw, 420px);
  scroll-snap-align: start;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
}

.ax-project__visual {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ax-primary-dark);
}

.ax-project__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ax-ease);
}

.ax-project:hover .ax-project__visual img {
  transform: scale(1.06);
}

.ax-project__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 28, 40, 0.85) 0%, transparent 55%);
  pointer-events: none;
}

.ax-project__badges {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 2;
}

.ax-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: var(--ax-white);
  color: var(--ax-ink);
}

.ax-badge--gold {
  background: var(--ax-gold);
  color: var(--ax-white);
}

.ax-project__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  z-index: 2;
  color: var(--ax-white);
}

.ax-project__class {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ax-gold-light);
  margin-bottom: 8px;
}

.ax-project__title {
  font-family: var(--ax-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.15;
}

.ax-project__meta {
  font-size: 13px;
  opacity: 0.75;
  margin-bottom: 16px;
}

.ax-project__prices {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.ax-project__price {
  font-size: 18px;
  font-weight: 700;
}

.ax-project__price-month {
  font-size: 13px;
  opacity: 0.7;
}

.ax-project__arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  color: var(--ax-white);
  z-index: 2;
  transition: background 0.3s, border-color 0.3s;
}

.ax-project:hover .ax-project__arrow {
  background: var(--ax-gold);
  border-color: var(--ax-gold);
}

/* ─── Map block ─── */
.ax-map-block {
  position: relative;
  overflow: hidden;
  background: var(--ax-primary-dark);
  padding: clamp(72px, 9vw, 112px) 0;
}

.ax-map-block__map {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ax-map-block__embed {
  width: 100%;
  height: 100%;
  min-height: 100%;
  pointer-events: none;
}

.ax-map-block__embed > div,
.ax-map-block__embed iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  border: 0;
  pointer-events: none;
}

.ax-map-block__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(26, 34, 53, 0.94) 0%, rgba(26, 34, 53, 0.78) 38%, rgba(26, 34, 53, 0.42) 62%, rgba(26, 34, 53, 0.18) 100%),
    linear-gradient(to top, rgba(26, 34, 53, 0.55) 0%, transparent 42%);
  pointer-events: none;
}

.ax-map-block__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  transition: opacity 0.35s var(--ax-ease), visibility 0.35s var(--ax-ease);
}

.ax-map-block__intro {
  max-width: 560px;
}

.ax-map-block__title {
  color: var(--ax-white);
}

.ax-map-block__intro .ax-label {
  color: var(--ax-gold-light);
}

.ax-map-block__lead {
  margin: 20px 0 0;
  max-width: 460px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.ax-map-block__open {
  margin-top: 24px;
}

.ax-map-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ax-ease), visibility 0.3s var(--ax-ease);
}

.ax-map-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.ax-map-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 40, 0.72);
}

.ax-map-modal__dialog {
  position: absolute;
  inset: clamp(12px, 2.5vw, 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ax-white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
}

.ax-map-modal__close {
  position: absolute;
  top: clamp(12px, 2vw, 16px);
  right: clamp(12px, 2vw, 16px);
  z-index: 2;
  border: 0;
  padding: 12px 20px;
  background: var(--ax-white);
  color: var(--ax-primary);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.ax-map-modal__close:hover {
  background: var(--ax-cream);
}

.ax-map-modal__embed {
  flex: 1;
  width: 100%;
  min-height: 0;
  height: 100%;
}

.ax-map-modal__embed > div,
.ax-map-modal__embed iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  border: 0;
}

body.ax-map-modal-open {
  overflow: hidden;
}

.ax-map-block__shade {
  transition: opacity 0.35s var(--ax-ease);
}

.ax-map-block__list {
  background: var(--ax-white);
  border-radius: 0;
  padding: 0;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.24);
}

.ax-map-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  border-radius: 0;
  border-bottom: 1px solid var(--ax-line);
  transition: background 0.2s var(--ax-ease);
}

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

.ax-map-item + .ax-map-item {
  margin-top: 0;
}

.ax-map-item:hover {
  background: var(--ax-cream);
  transform: none;
}

.ax-map-item__thumb {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 0;
  background-size: cover;
  background-position: center;
}

.ax-map-item__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.ax-map-item__title {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--ax-ink);
}

.ax-map-item__addr {
  display: block;
  font-size: 0.82rem;
  color: var(--ax-muted);
  margin-bottom: 8px;
  line-height: 1.45;
}

.ax-map-item__price {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ax-primary);
}

/* ─── Features grid ─── */
.ax-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--ax-line);
}

.ax-feature {
  padding: clamp(32px, 4vw, 48px);
  border-right: 1px solid var(--ax-line);
  position: relative;
}

.ax-feature:last-child {
  border-right: none;
}

.ax-feature__num {
  font-family: var(--ax-display);
  font-size: 64px;
  font-weight: 400;
  color: var(--ax-cream-dark);
  line-height: 1;
  margin-bottom: 20px;
}

.ax-feature__visual {
  aspect-ratio: 16 / 10;
  background: var(--ax-cream-dark);
  margin-bottom: 24px;
  background-size: cover;
  background-position: center;
}

.ax-feature__title {
  font-family: var(--ax-display);
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 12px;
}

.ax-feature__text {
  margin: 0;
  font-size: 14px;
  color: var(--ax-muted);
  line-height: 1.65;
}

/* ─── Comfort slider ─── */
.ax-comfort__head {
  align-items: center;
}

.ax-comfort__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ax-comfort__nav.is-hidden {
  display: none;
}

.ax-comfort__nav-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--ax-line);
  background: var(--ax-white);
  color: var(--ax-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s var(--ax-ease), color 0.2s var(--ax-ease), border-color 0.2s var(--ax-ease), opacity 0.2s var(--ax-ease);
}

.ax-comfort__nav-btn:hover:not(:disabled) {
  background: var(--ax-primary);
  border-color: var(--ax-primary);
  color: var(--ax-white);
}

.ax-comfort__nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.ax-comfort-slider__viewport {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border: 1px solid var(--ax-line);
}

.ax-comfort-slider__viewport::-webkit-scrollbar {
  display: none;
}

.ax-comfort-slider__viewport:focus-visible {
  outline: 2px solid rgb(51 65 92 / 35%);
  outline-offset: 4px;
}

.ax-comfort-slider__item {
  flex: 0 0 calc(100% / 3);
  max-width: calc(100% / 3);
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
}

.ax-comfort-slider__item:last-child {
  border-right: none;
}

@media (max-width: 1024px) {
  .ax-comfort-slider__item {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .ax-comfort__head {
    align-items: flex-start;
    gap: 16px;
  }

  .ax-comfort__nav {
    margin-left: auto;
  }
}

/* ─── About split ─── */
.ax-about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.ax-about__quote {
  font-family: var(--ax-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 24px;
}

.ax-about__quote strong {
  color: var(--ax-primary);
  font-weight: 600;
}

.ax-about__text {
  font-size: 16px;
  color: var(--ax-muted);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 520px;
}

.ax-about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ax-line);
  border: 1px solid var(--ax-line);
}

.ax-about__stat {
  background: var(--ax-white);
  padding: 24px 28px;
}

.ax-about__stat-value {
  font-family: var(--ax-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--ax-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.ax-about__stat-label {
  font-size: 13px;
  color: var(--ax-muted);
  line-height: 1.4;
}

.ax-about__visual {
  position: relative;
}

.ax-about__frame {
  aspect-ratio: 4 / 5;
  background: var(--ax-primary-dark);
  background-size: cover;
  background-position: center;
  position: relative;
}

.ax-photo-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ax-photo-gallery__item {
  background-size: cover;
  background-position: center;
  background-color: var(--ax-cream-dark);
  min-height: 0;
}

/* 1 — крупное сверху, 2–3 — пара, 4+ — на всю ширину снизу */
.ax-photo-gallery--mosaic .ax-photo-gallery__item:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

.ax-photo-gallery--mosaic .ax-photo-gallery__item:nth-child(2),
.ax-photo-gallery--mosaic .ax-photo-gallery__item:nth-child(3),
.ax-photo-gallery--mosaic .ax-photo-gallery__item:nth-child(4),
.ax-photo-gallery--mosaic .ax-photo-gallery__item:nth-child(5) {
  aspect-ratio: 16 / 9;
}

.ax-about__visual .ax-photo-gallery--mosaic {
  position: relative;
  z-index: 1;
}

.ax-about__photo-single {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-color: var(--ax-cream-dark);
  position: relative;
  z-index: 1;
}

.ax-project-feature__media--gallery {
  display: block;
  background: transparent;
}

.ax-photo-slider {
  width: 100%;
}

.ax-photo-slider__viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ax-primary-dark);
}

.ax-photo-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ax-ease), visibility 0.45s var(--ax-ease);
}

.ax-photo-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

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

.ax-photo-slider__next {
  position: absolute;
  top: 50%;
  right: 16px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 92%);
  color: var(--ax-primary);
  cursor: pointer;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  box-shadow: 0 4px 20px rgb(0 0 0 / 18%);
  transition: background 0.2s var(--ax-ease), color 0.2s var(--ax-ease), transform 0.2s var(--ax-ease);
}

.ax-photo-slider__next:hover {
  background: var(--ax-primary);
  color: var(--ax-white);
  transform: translateY(-50%) scale(1.04);
}

.ax-photo-gallery-frame {
  position: relative;
}

.ax-photo-gallery-frame::before {
  content: "";
  position: absolute;
  top: -14px;
  right: -14px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--ax-gold);
  z-index: 0;
}

.ax-photo-gallery-frame .ax-photo-gallery {
  position: relative;
  z-index: 1;
}

.ax-about__frame-deco {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--ax-gold);
  z-index: -1;
}

.ax-about__highlights {
  position: absolute;
  bottom: -32px;
  left: -32px;
  background: rgba(184, 154, 91, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--ax-white);
  padding: 28px 32px;
  max-width: 260px;
  z-index: 2;
}

.ax-about__highlight-value {
  font-family: var(--ax-display);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 8px;
}

.ax-about__highlight-text {
  font-size: 13px;
  opacity: 0.92;
  line-height: 1.45;
}

/* ─── Footer ─── */
.ax-footer {
  background: var(--ax-ink);
  color: rgba(255, 255, 255, 0.75);
  padding: clamp(56px, 8vw, 80px) 0 32px;
}

.ax-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px 32px;
  margin-bottom: 56px;
}

.ax-footer__brand img {
  height: 36px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.ax-footer__desc {
  font-size: 14px;
  line-height: 1.65;
  max-width: 280px;
  margin: 0 0 24px;
}

.ax-footer__social {
  display: flex;
  gap: 10px;
}

.ax-footer__social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.ax-footer__social a:hover {
  background: var(--ax-gold);
  border-color: var(--ax-gold);
  color: var(--ax-white);
}

.ax-footer__col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ax-gold-light);
  margin-bottom: 20px;
}

.ax-footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ax-footer__links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.ax-footer__links a:hover {
  color: var(--ax-white);
}

.ax-footer__contact-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ax-white);
  text-decoration: none;
  display: block;
  margin-bottom: 16px;
}

.ax-footer__contact-value:hover {
  color: var(--ax-gold-light);
}

.ax-footer__address {
  font-size: 14px;
  line-height: 1.55;
}

.ax-footer__bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.ax-footer__legal {
  display: flex;
  gap: 20px;
}

.ax-footer__legal a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

.ax-footer__legal a:hover {
  color: var(--ax-gold-light);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .ax-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .ax-hero__media {
    order: -1;
    width: 100%;
    min-height: clamp(240px, 46vh, 420px);
    height: clamp(240px, 46vh, 420px);
    flex-shrink: 0;
  }

  .ax-hero__content {
    border-right: none;
    border-bottom: none;
    min-height: auto;
    flex: 1;
    padding: clamp(24px, 5vw, 40px) var(--ax-pad);
  }

  .ax-hero__thumbs {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--ax-line);
  }

  .ax-offers {
    grid-template-columns: 1fr;
  }

  .ax-about {
    grid-template-columns: 1fr;
  }

  .ax-about__highlights {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 24px;
  }

  .ax-map-block__layout {
    grid-template-columns: 1fr;
  }

  .ax-map-block__intro {
    max-width: none;
  }

  .ax-map-block__shade {
    background:
      linear-gradient(to bottom, rgba(26, 34, 53, 0.92) 0%, rgba(26, 34, 53, 0.72) 55%, rgba(26, 34, 53, 0.35) 100%);
  }

  .ax-features {
    grid-template-columns: 1fr;
  }

  .ax-feature {
    border-right: none;
    border-bottom: 1px solid var(--ax-line);
  }

  .ax-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .ax-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-right: max(var(--ax-safe-right), 12px);
  }

  .ax-nav,
  .ax-header__phone,
  .ax-header__actions .ax-btn--gold {
    display: none;
  }

  .ax-header__burger,
  .ax-header__call-mobile {
    display: inline-flex;
  }

  .ax-header__actions {
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
  }

  .ax-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .ax-stats__item:nth-child(2n) {
    border-right: none;
  }

  .ax-stats__item {
    border-right: none;
    border-bottom: 1px solid var(--ax-line);
  }

  .ax-offer {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ax-offer__num {
    font-size: 32px;
  }

  .ax-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Hide legacy chrome on ax-site pages */
.ax-site .header,
.ax-site .footer,
.ax-site .mobile-drawer {
  display: none !important;
}

/* Callback drawer — restyle */
.ax-site .callback-drawer {
  z-index: 600;
}

.ax-site .callback-drawer__panel {
  border-radius: 0;
}

.ax-site .callback-drawer__submit {
  background: var(--ax-primary);
  border-radius: 0;
}

/* Cookie banner tweak */
.ax-site .cookie-banner {
  border-radius: 0;
  border: 1px solid var(--ax-line);
}

.ax-site .cookie-banner__accept {
  background: var(--ax-primary);
  border-radius: 0;
}

/* ─── Inner pages wrapper ─── */
.ax-page {
  padding-top: calc(var(--ax-header-h) + 48px);
  padding-bottom: 80px;
  min-height: 60vh;
}

.ax-page .section-title,
.ax-page h1 {
  font-family: var(--ax-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}

.ax-page .btn--primary,
.ax-page .callback-drawer__submit {
  background: var(--ax-primary) !important;
  border-radius: 0 !important;
  font-family: var(--ax-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.ax-page .projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.ax-page .projects__grid .ax-project {
  flex: none;
  width: 100%;
}

/* ─── Project page ─── */
.ax-project-page {
  padding-top: var(--ax-header-h);
}

.ax-project-hero {
  position: relative;
  min-height: min(85vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.ax-project-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ax-project-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ax-ease), visibility 0.7s;
}

.ax-project-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.ax-project-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ax-project-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 28, 40, 0.88) 0%, rgba(20, 28, 40, 0.35) 45%, rgba(20, 28, 40, 0.2) 100%);
  z-index: 2;
  pointer-events: none;
}

.ax-project-hero__content {
  position: relative;
  z-index: 3;
  padding: 48px var(--ax-pad) 100px;
}

.ax-project-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.ax-project-hero__title {
  font-family: var(--ax-display);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 16px;
  max-width: 800px;
}

.ax-project-hero__subtitle {
  font-size: 17px;
  line-height: 1.65;
  opacity: 0.88;
  max-width: 560px;
  margin: 0 0 28px;
}

.ax-project-hero .ax-btn--hero-construction {
  color: #fff;
}

.ax-project-hero .ax-btn--hero-construction:hover {
  color: var(--ax-gold);
}

.ax-project-hero__nav {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  z-index: 4;
}

.ax-project-hero__nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.ax-project-hero__arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.ax-project-hero__arrow:hover {
  background: var(--ax-gold);
  border-color: var(--ax-gold);
  color: var(--ax-ink);
}

.ax-project-hero__counter {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.8);
  min-width: 64px;
  text-align: center;
}

.ax-stats--project {
  grid-template-columns: repeat(4, 1fr);
}

.ax-stats--project .ax-stats__value {
  font-size: clamp(18px, 2.5vw, 28px);
}

.ax-project-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.ax-project-intro__visual {
  align-self: start;
}

.ax-project-intro__lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ax-muted);
  margin: 20px 0 24px;
}

.ax-project-intro__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.ax-project-intro__list li {
  padding-left: 20px;
  position: relative;
  font-size: 15px;
  color: var(--ax-ink);
}

.ax-project-intro__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 1px;
  background: var(--ax-gold);
}

.ax-project-feature {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--ax-cream);
  border-top: 1px solid var(--ax-line);
}

.ax-project-feature--reverse {
  background: var(--ax-white);
}

.ax-project-feature__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.ax-project-feature--reverse .ax-project-feature__grid {
  direction: rtl;
}

.ax-project-feature--reverse .ax-project-feature__grid > * {
  direction: ltr;
}

.ax-project-feature__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ax-primary-dark);
}

.ax-about-page .ax-project-feature__grid {
  align-items: start;
}

.ax-about-page .ax-project-feature__media.ax-project-feature__media--slider {
  aspect-ratio: auto;
  height: auto;
  overflow: visible;
  align-self: start;
  background: transparent;
}

.ax-project-feature__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.ax-project-feature__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.ax-project-feature__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ax-project-feature__pag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: var(--ax-display);
  font-size: 48px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1;
  z-index: 2;
  pointer-events: none;
}

.ax-project-feature__text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ax-muted);
  margin: 20px 0 0;
}

.ax-project-mortgage-wrap {
  border-top: 1px solid var(--ax-line);
}

.ax-project-mortgage-wrap .ax-mortgage {
  background: transparent;
}

/* ─── Mortgage block ─── */
.ax-mortgage {
  padding: clamp(64px, 10vw, 100px) 0;
  background: var(--ax-cream);
}

.ax-mortgage-page .ax-mortgage {
  padding-top: calc(var(--ax-header-h) + 48px);
}

.ax-mortgage__head {
  margin-bottom: clamp(36px, 5vw, 56px);
  max-width: 640px;
}

.ax-mortgage__lead {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ax-muted);
}

.ax-mortgage__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.ax-mortgage__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.ax-mortgage__panel {
  background: var(--ax-white);
  border: 1px solid var(--ax-line);
  padding: clamp(24px, 3vw, 32px);
}

.ax-mortgage__panel--calc {
  flex: 1;
}

.ax-mortgage__panel--info {
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.ax-mortgage__panel-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ax-gold);
  margin-bottom: 24px;
}

.ax-mortgage__field {
  margin-bottom: 22px;
}

.ax-mortgage__field:last-child {
  margin-bottom: 0;
}

.ax-mortgage__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ax-muted);
  margin-bottom: 10px;
}

.ax-mortgage__value {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: var(--ax-cream);
  border: 1px solid var(--ax-line);
  font-size: 18px;
  font-weight: 700;
  color: var(--ax-ink);
  font-variant-numeric: tabular-nums;
}

.ax-mortgage__input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  background: var(--ax-cream);
  border: 1px solid var(--ax-line);
  font-family: var(--ax-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--ax-ink);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s var(--ax-ease), box-shadow 0.2s var(--ax-ease);
}

.ax-mortgage__input:focus {
  outline: none;
  border-color: var(--ax-primary);
  box-shadow: 0 0 0 3px rgba(63, 80, 115, 0.12);
  background: var(--ax-white);
}

.ax-mortgage__value-row .ax-mortgage__input {
  flex: 1;
}

.ax-mortgage__percent.ax-mortgage__input {
  flex: 0 0 auto;
  width: 72px;
  min-width: 72px;
  padding: 0 10px;
  text-align: right;
  font-size: 14px;
}

.ax-mortgage__value-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ax-mortgage__value-row .ax-mortgage__value {
  flex: 1;
}

.ax-mortgage__value-row .ax-mortgage__percent:not(.ax-mortgage__input) {
  font-size: 14px;
  font-weight: 700;
  color: var(--ax-primary);
  min-width: 52px;
  text-align: right;
}

.ax-mortgage__percent {
  font-size: 14px;
  font-weight: 700;
  color: var(--ax-primary);
  min-width: 52px;
  text-align: right;
}

.ax-mortgage__range {
  width: 100%;
  margin-top: 12px;
  height: 28px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.ax-mortgage__range:focus {
  outline: none;
}

.ax-mortgage__range::-webkit-slider-runnable-track {
  height: 3px;
  background: var(--ax-cream-dark);
  border-radius: 2px;
}

.ax-mortgage__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ax-primary);
  margin-top: -7px;
  border: 2px solid var(--ax-white);
  box-shadow: 0 2px 8px rgba(63, 80, 115, 0.35);
}

.ax-mortgage__range::-moz-range-track {
  height: 3px;
  background: var(--ax-cream-dark);
  border-radius: 2px;
}

.ax-mortgage__range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ax-primary);
  border: 2px solid var(--ax-white);
  box-shadow: 0 2px 8px rgba(63, 80, 115, 0.35);
}

.ax-mortgage__summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ax-line);
}

.ax-mortgage__summary-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ax-muted);
  margin-bottom: 6px;
}

.ax-mortgage__summary-val {
  font-size: 17px;
  font-weight: 700;
  color: var(--ax-primary);
  font-variant-numeric: tabular-nums;
}

.ax-mortgage__payment {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ax-mortgage__payment-label {
  font-size: 14px;
  color: var(--ax-muted);
}

.ax-mortgage__payment-val {
  font-family: var(--ax-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  color: var(--ax-ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ax-mortgage__legal {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--ax-muted);
  line-height: 1.45;
}

.ax-mortgage__programs-copy {
  flex: 1;
  position: relative;
  min-height: 280px;
}

.ax-mortgage__program {
  display: none;
  animation: axFadeUp 0.45s var(--ax-ease) both;
}

.ax-mortgage__program.is-active {
  display: block;
}

.ax-mortgage__program-title {
  font-family: var(--ax-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  margin: 0 0 12px;
  line-height: 1.15;
  color: var(--ax-ink);
}

.ax-mortgage__program-lead {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ax-muted);
}

.ax-mortgage__program-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.ax-mortgage__program-list li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ax-ink);
  padding-left: 4px;
}

.ax-mortgage__program-list li::marker {
  color: var(--ax-gold);
  font-weight: 700;
}

.ax-mortgage__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 20px 24px;
  background: var(--ax-primary-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ax-mortgage__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
  flex: 1;
  min-width: 0;
}

.ax-mortgage__tab {
  padding: 12px 18px;
  border: none;
  background: transparent;
  font-family: var(--ax-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.ax-mortgage__tab:hover {
  color: rgba(255, 255, 255, 0.9);
}

.ax-mortgage__tab.is-active {
  color: var(--ax-ink);
  background: var(--ax-gold);
}

.ax-mortgage__cta {
  flex-shrink: 0;
  white-space: nowrap;
}

.ax-mortgage__cta--block {
  width: 100%;
  margin-top: 20px;
  justify-content: center;
}

/* Apartment mortgage modal */
html.mortgage-modal-open,
html.mortgage-modal-open body {
  overflow: hidden;
}

.ax-mortgage-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--ax-ease), visibility 0.3s;
}

.ax-mortgage-modal.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.ax-mortgage-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 40, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ax-mortgage-modal__panel {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  background: var(--ax-cream);
  border: 1px solid var(--ax-line);
  box-shadow: 0 24px 80px rgba(20, 28, 40, 0.22);
  transform: translateY(12px);
  transition: transform 0.35s var(--ax-ease);
}

.ax-mortgage-modal.is-open .ax-mortgage-modal__panel {
  transform: translateY(0);
}

.ax-mortgage-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--ax-line);
  background: var(--ax-white);
}

.ax-mortgage-modal__intro {
  min-width: 0;
  padding-right: 8px;
}

.ax-mortgage-modal__title {
  margin: 0;
  font-family: var(--ax-display);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ax-ink);
}

.ax-mortgage-modal__meta {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ax-muted);
}

.ax-mortgage-modal__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ax-line);
  background: var(--ax-white);
  color: var(--ax-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.ax-mortgage-modal__close:hover {
  color: var(--ax-primary);
  border-color: var(--ax-primary);
}

.ax-mortgage-modal__body {
  padding: 20px 24px 24px;
  overflow: auto;
}

.ax-mortgage__split--apartment {
  align-items: stretch;
}

.ax-mortgage__col--results {
  gap: 14px;
}

.ax-mortgage__panel--programs {
  padding: 16px;
}

.ax-mortgage__tabs--light {
  gap: 8px;
}

.ax-mortgage__tabs--light .ax-mortgage__tab {
  padding: 10px 14px;
  border: 1px solid var(--ax-line);
  background: var(--ax-cream);
  color: var(--ax-muted);
  border-radius: 0;
}

.ax-mortgage__tabs--light .ax-mortgage__tab:hover {
  color: var(--ax-primary);
  border-color: rgba(63, 80, 115, 0.35);
}

.ax-mortgage__tabs--light .ax-mortgage__tab.is-active {
  color: var(--ax-white);
  background: var(--ax-gold);
  border-color: var(--ax-gold);
}

/* Hide legacy mortgage chrome */
.ax-site .mortgage:not(.ax-mortgage),
.ax-site .mortgage-widget:not(.ax-mortgage__widget),
.ax-site .mortgage-page {
  display: none !important;
}

@media (max-width: 960px) {
  .ax-mortgage__split {
    grid-template-columns: 1fr;
  }

  .ax-mortgage__split--apartment {
    grid-template-columns: 1fr;
  }

  .ax-mortgage-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .ax-mortgage-modal__panel {
    max-height: 94vh;
  }

  .ax-mortgage-modal__body {
    padding: 16px;
  }

  .ax-mortgage__programs-copy {
    min-height: 0;
  }

  .ax-mortgage__summary-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ax-mortgage__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .ax-mortgage__tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .ax-mortgage__tabs::-webkit-scrollbar {
    display: none;
  }

  .ax-mortgage__cta {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .ax-stats--project {
    grid-template-columns: 1fr 1fr;
  }

  .ax-project-intro,
  .ax-project-feature__grid {
    grid-template-columns: 1fr;
  }

  .ax-project-feature--reverse .ax-project-feature__grid {
    direction: ltr;
  }
}

@media (max-width: 600px) {
  .ax-stats--project {
    grid-template-columns: 1fr;
  }

  .ax-project-intro__visual {
    order: -1;
  }
}

/* ─── Apartments catalog & detail ─── */
.ax-apartments-page .ax-section {
  padding-top: calc(var(--ax-header-h) + 40px);
  padding-bottom: 80px;
}

.ax-lots__title {
  margin: 0 0 28px;
  font-family: var(--ax-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  color: var(--ax-ink);
}

.ax-lots__filters {
  width: 100%;
  margin-bottom: 36px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.ax-lots__filters-row--primary {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}

.ax-lots__filters-row--ranges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--ax-line);
}

.ax-lots__cell {
  min-width: 0;
}

.ax-lots__cell--hot {
  padding-bottom: 2px;
}

.ax-lots__label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ax-muted);
}

.ax-lots__select {
  width: 100%;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 0 44px 0 18px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ax-ink);
  background-color: var(--ax-cream);
  appearance: none;
  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='%233f5073' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  transition: border-color 0.2s var(--ax-ease), box-shadow 0.2s var(--ax-ease);
}

.ax-lots__select:focus {
  outline: none;
  border-color: rgba(63, 80, 115, 0.22);
  box-shadow: 0 0 0 4px rgba(63, 80, 115, 0.08);
}

.ax-lots__rooms {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 5px;
  background: var(--ax-cream);
  border-radius: 16px;
}

.ax-lots__room {
  border: 0;
  border-radius: 12px;
  background: transparent;
  padding: 12px 10px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ax-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--ax-ease);
}

.ax-lots__room.is-active {
  background: var(--ax-white);
  color: var(--ax-primary);
  box-shadow: 0 4px 14px rgba(42, 53, 73, 0.08);
}

.ax-lots__room:hover:not(.is-active) {
  color: var(--ax-ink);
}

.ax-lots__range-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.ax-lots__range-head .ax-lots__label {
  margin-bottom: 0;
}

.ax-lots__range-values {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ax-ink);
  white-space: nowrap;
}

.ax-lots__range-dash {
  color: var(--ax-muted);
  font-weight: 500;
}

.ax-lots__dual-range {
  position: relative;
  height: 32px;
}

.ax-lots__dual-range::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  background: #ebe6db;
  border-radius: 999px;
}

.ax-lots__dual-range__track {
  position: absolute;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--ax-primary), #556789);
  border-radius: 999px;
  pointer-events: none;
}

.ax-lots__dual-range input[type="range"] {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  pointer-events: none;
  appearance: none;
  background: transparent;
}

.ax-lots__dual-range input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ax-white);
  border: 3px solid var(--ax-primary);
  box-shadow: 0 4px 12px rgba(63, 80, 115, 0.22);
  cursor: grab;
}

.ax-lots__dual-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ax-white);
  border: 3px solid var(--ax-primary);
  box-shadow: 0 4px 12px rgba(63, 80, 115, 0.22);
  cursor: grab;
}

.ax-lots__toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  background: var(--ax-cream);
  cursor: pointer;
  transition: background 0.2s var(--ax-ease);
}

.ax-lots__toggle:hover {
  background: #f0ece4;
}

.ax-lots__toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ax-lots__toggle-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ax-ink);
  white-space: nowrap;
}

.ax-lots__toggle-ui {
  flex-shrink: 0;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #ddd7cb;
  position: relative;
  transition: background 0.2s var(--ax-ease);
}

.ax-lots__toggle-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s var(--ax-ease);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.ax-lots__toggle input:checked + .ax-lots__toggle-ui {
  background: var(--ax-gold);
}

.ax-lots__toggle input:checked + .ax-lots__toggle-ui::after {
  transform: translateX(20px);
}

.ax-lots__filters-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--ax-line);
}

.ax-lots__count {
  margin: 0;
  font-size: 1rem;
  color: var(--ax-muted);
}

.ax-lots__count strong {
  color: var(--ax-primary);
  font-weight: 700;
}

.ax-lots__reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  color: var(--ax-primary);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.ax-lots__state {
  padding: 56px 24px;
  text-align: center;
  color: var(--ax-muted);
  border: 1px dashed var(--ax-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
}

.ax-lots__state[hidden] {
  display: none !important;
}

.ax-lots__spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  border: 3px solid rgba(63, 80, 115, 0.15);
  border-top-color: var(--ax-primary);
  border-radius: 50%;
  animation: ax-apt-spin 0.8s linear infinite;
}

@keyframes ax-apt-spin {
  to { transform: rotate(360deg); }
}

.ax-lots__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ax-lot-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 20px 20px 18px;
  border: 1px solid var(--ax-line);
  border-radius: 22px;
  background: var(--ax-white);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s var(--ax-ease), box-shadow 0.25s var(--ax-ease), border-color 0.25s var(--ax-ease);
}

.ax-lot-card:hover {
  transform: translateY(-4px);
  border-color: rgba(63, 80, 115, 0.22);
  box-shadow: 0 20px 44px rgba(42, 53, 73, 0.1);
}

.ax-lot-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ax-lot-card__project {
  margin: 0;
  font-family: var(--ax-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
}

.ax-lot-card__location {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--ax-muted);
}

.ax-lot-card__building {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--ax-muted);
  white-space: nowrap;
}

.ax-lot-card__hot {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(184, 154, 91, 0.16);
  color: #8a6d2f;
  font-size: 0.75rem;
  font-weight: 700;
}

.ax-lot-card__spec {
  margin: 12px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ax-ink);
}

.ax-lot-card__plan {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 200px;
  margin: 16px 0;
  padding: 12px;
  background: #f8f6f1;
  border-radius: 16px;
}

.ax-lot-card__plan img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.ax-lot-card__foot {
  margin-top: auto;
}

.ax-lot-card__price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ax-ink);
}

.ax-lot-card__finance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ax-line);
}

.ax-lot-card__finance span {
  display: block;
  font-size: 0.78rem;
  color: var(--ax-muted);
  margin-bottom: 4px;
}

.ax-lot-card__finance strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ax-ink);
}

/* Apartment detail page */
.ax-apt-page {
  padding: calc(var(--ax-header-h) + 24px) 0 80px;
  background: var(--ax-white);
}

.ax-apt-page__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.ax-apt-page__back,
.ax-apt-page__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ax-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s var(--ax-ease);
}

.ax-apt-page__back:hover,
.ax-apt-page__link:hover {
  color: var(--ax-primary);
}

.ax-apt-page__top-actions {
  display: flex;
  gap: 20px;
}

.ax-apt-page__layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

.ax-apt-page__visual {
  position: sticky;
  top: calc(var(--ax-header-h) + 24px);
  align-self: start;
  background: var(--ax-white);
  border: 1px solid var(--ax-line);
  border-radius: 28px;
  padding: 24px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.ax-apt-page__media {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #f8f6f1;
  border-radius: 20px;
  min-height: 400px;
}

.ax-apt-page__media img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.ax-apt-page__tabs {
  display: inline-flex;
  align-self: center;
  gap: 4px;
  margin-top: 20px;
  padding: 4px;
  background: #f0ece4;
  border-radius: 999px;
}

.ax-apt-page__tab {
  border: 0;
  background: transparent;
  padding: 10px 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ax-muted);
  cursor: pointer;
  transition: all 0.2s var(--ax-ease);
}

.ax-apt-page__tab.is-active {
  background: var(--ax-white);
  color: var(--ax-ink);
  box-shadow: 0 4px 14px rgba(42, 53, 73, 0.08);
}

.ax-apt-page__info {
  padding-top: 8px;
}

.ax-apt-page__status {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ax-apt-page__status--free {
  background: rgba(46, 125, 78, 0.12);
  color: #2e7d4e;
}

.ax-apt-page__status--booked,
.ax-apt-page__status--reserved {
  background: rgba(184, 154, 91, 0.16);
  color: #8a6d2f;
}

.ax-apt-page__title {
  margin: 0;
  font-family: var(--ax-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
}

.ax-apt-page__meta {
  margin: 10px 0 0;
  color: var(--ax-muted);
  font-size: 1rem;
}

.ax-apt-page__price-block {
  margin-top: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--ax-line);
  border-bottom: 1px solid var(--ax-line);
}

.ax-apt-page__price {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--ax-ink);
}

.ax-apt-page__price-old {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ax-muted);
  text-decoration: line-through;
}

.ax-apt-page__finance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.ax-apt-page__finance span {
  display: block;
  font-size: 0.85rem;
  color: var(--ax-muted);
  margin-bottom: 4px;
}

.ax-apt-page__finance strong {
  font-size: 1.05rem;
}

.ax-apt-page__calc-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--ax-gold);
  font-weight: 600;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  text-align: left;
  padding: 0;
}

.ax-apt-page__calc-link:hover {
  color: var(--ax-primary);
}

.ax-apt-page__actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.ax-apt-page__cta,
.ax-apt-page__cta-secondary {
  width: 100%;
  justify-content: center;
}

.ax-apt-page__details {
  margin: 32px 0 0;
  display: grid;
  gap: 14px;
}

.ax-apt-page__details div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ax-line);
  font-size: 0.95rem;
}

.ax-apt-page__details dt {
  color: var(--ax-muted);
}

.ax-apt-page__details dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.ax-apt-page__project-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--ax-primary);
  font-weight: 600;
  text-decoration: none;
}

.ax-apt-similar {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--ax-line);
}

.ax-apt-similar__head {
  margin-bottom: 32px;
}

.ax-apt-similar__title {
  margin: 10px 0 8px;
  font-family: var(--ax-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  color: var(--ax-ink);
}

.ax-apt-similar__lead {
  margin: 0;
  color: var(--ax-muted);
  font-size: 1rem;
}

.ax-apt-similar__grid {
  margin-bottom: 28px;
}

.ax-apt-similar__foot {
  display: flex;
  justify-content: flex-start;
}

.ax-apt-similar__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ax-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ax-ease);
}

.ax-apt-similar__all:hover {
  color: var(--ax-gold);
}

.ax-apt-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.ax-apt-cta__title {
  color: #fff;
  margin: 8px 0 12px;
}

.ax-apt-cta__text {
  margin: 0;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

/* ─── Project page apartments slider ─── */
.ax-project-apts {
  border-top: 1px solid var(--ax-line);
}

.ax-project-apts__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.ax-project-apts__head-text {
  max-width: 640px;
}

.ax-project-apts__text {
  margin: 12px 0 0;
  max-width: 520px;
  color: var(--ax-muted);
  line-height: 1.65;
}

.ax-project-apts__head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ax-project-apts__nav {
  display: flex;
  gap: 10px;
}

.ax-project-apts__nav.is-hidden {
  display: none;
}

.ax-project-apts__arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ax-line);
  background: var(--ax-white);
  color: var(--ax-primary);
  cursor: pointer;
  transition: background 0.2s var(--ax-ease), border-color 0.2s var(--ax-ease), color 0.2s var(--ax-ease), box-shadow 0.2s var(--ax-ease);
}

.ax-project-apts__arrow:hover:not(:disabled) {
  background: var(--ax-primary);
  border-color: var(--ax-primary);
  color: var(--ax-white);
  box-shadow: 0 8px 24px rgba(63, 80, 115, 0.18);
}

.ax-project-apts__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.ax-project-apts__all--head {
  display: none;
}

.ax-project-apts__track-wrap {
  position: relative;
  overflow: visible;
}

.ax-project-apts__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  padding: 8px 8px 16px;
  margin: 0 -8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ax-project-apts__track::-webkit-scrollbar {
  display: none;
}

.ax-project-apts__track .ax-lot-card {
  flex: 0 0 clamp(280px, 32vw, 340px);
  scroll-snap-align: start;
}

.ax-project-apts__foot {
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
}

@media (min-width: 901px) {
  .ax-project-apts__all--head {
    display: inline-flex;
  }

  .ax-project-apts__foot {
    display: none;
  }
}

@media (max-width: 900px) {
  .ax-project-apts__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .ax-project-apts__head-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 1100px) {
  .ax-lots__filters-row--primary {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ax-lots__cell--hot {
    justify-self: start;
  }

  .ax-lots__filters-row--ranges {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .ax-lots__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ax-apt-page__layout {
    grid-template-columns: 1fr;
  }

  .ax-apt-page__visual {
    position: static;
    top: auto;
  }

  .ax-apt-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .ax-lots__rooms {
    grid-template-columns: repeat(5, minmax(72px, 1fr));
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ax-lots__rooms::-webkit-scrollbar {
    display: none;
  }

  .ax-lots__room {
    font-size: 0.82rem;
    padding: 11px 8px;
  }

  .ax-lots__range-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .ax-lots__grid {
    grid-template-columns: 1fr;
  }

  .ax-lot-card__finance {
    grid-template-columns: 1fr;
  }

  .ax-apt-page__finance {
    grid-template-columns: 1fr;
  }
}

/* ─── About page ─── */
.ax-about-page {
  padding-top: var(--ax-header-h);
}

.ax-about-page__hero {
  padding: clamp(64px, 10vw, 112px) 0 clamp(48px, 6vw, 72px);
  background: var(--ax-cream);
  border-bottom: 1px solid var(--ax-line);
}

.ax-about-page__hero-inner {
  max-width: 860px;
}

.ax-about-page__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.ax-about-page__hero-visual {
  position: relative;
}

.ax-about-page__lead {
  margin: 24px 0 0;
  max-width: 680px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
  color: var(--ax-muted);
}

.ax-about-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.ax-stats--about {
  border-top: 0;
}

.ax-about-page .ax-project-feature__media--gallery .ax-photo-gallery__item {
  width: 100%;
  display: block;
}

.ax-about-page__rich {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ax-muted);
}

.ax-about-page__rich p {
  margin: 0 0 16px;
}

.ax-about-page__rich p:last-child {
  margin-bottom: 0;
}

.ax-about-page__principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ax-about-page__principle {
  background: rgba(255, 255, 255, 0.04);
  padding: clamp(28px, 4vw, 40px);
}

.ax-about-page__principle-num {
  font-family: var(--ax-display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  color: rgba(255, 255, 255, 0.18);
  margin-bottom: 20px;
}

.ax-about-page__principle-title {
  margin: 0 0 12px;
  font-family: var(--ax-display);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 500;
  color: var(--ax-white);
}

.ax-about-page__principle-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.ax-about-page__projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.ax-about-page__projects .ax-project {
  flex: none;
  width: 100%;
}

@media (max-width: 900px) {
  .ax-about-page__principles {
    grid-template-columns: 1fr;
  }

  .ax-about-page__hero-grid {
    grid-template-columns: 1fr;
  }

  .ax-about-page__hero-visual {
    order: -1;
  }

  .ax-about-page__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ax-about-page__actions .ax-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ─── Contacts page ─── */
.ax-contacts-page {
  padding-top: var(--ax-header-h);
}

.ax-contacts-page__hero {
  padding: clamp(64px, 10vw, 112px) 0 clamp(48px, 6vw, 72px);
  background: var(--ax-cream);
  border-bottom: 1px solid var(--ax-line);
}

.ax-contacts-page__hero-inner {
  max-width: 760px;
}

.ax-contacts-page__lead {
  margin: 24px 0 0;
  max-width: 620px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
  color: var(--ax-muted);
}

.ax-contacts-page__layout {
  display: grid;
  gap: 28px;
}

.ax-contacts-page__phone-block {
  max-width: 420px;
}

.ax-contacts-page__panels {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: stretch;
}

.ax-contacts-page__phone {
  display: inline-block;
  font-family: var(--ax-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ax-primary);
  text-decoration: none;
  transition: color 0.2s var(--ax-ease);
}

.ax-contacts-page__phone:hover {
  color: var(--ax-gold);
}

.ax-contacts-page__phone-note {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ax-muted);
}

.ax-contacts-page__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--ax-line);
  background: var(--ax-cream);
  padding: clamp(24px, 4vw, 32px);
}

.ax-contacts-page__card-head {
  margin-bottom: 24px;
}

.ax-contacts-page__card-title {
  margin: 8px 0 0;
  font-family: var(--ax-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.15;
}

.ax-contacts-page__row {
  display: flex;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--ax-line);
}

.ax-contacts-page__row + .ax-contacts-page__row {
  margin-top: 20px;
}

.ax-contacts-page__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--ax-white);
  border: 1px solid var(--ax-line);
  color: var(--ax-primary);
}

.ax-contacts-page__row-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ax-gold);
  margin-bottom: 8px;
}

.ax-contacts-page__address {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ax-ink);
}

.ax-contacts-page__schedule {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.ax-contacts-page__schedule li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  color: var(--ax-ink);
}

.ax-contacts-page__schedule li span:last-child {
  color: var(--ax-muted);
  text-align: right;
}

.ax-contacts-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 28px;
}

.ax-contacts-page__map-wrap {
  height: 100%;
  min-height: 320px;
  border: 1px solid var(--ax-line);
  background: var(--ax-cream-dark);
  overflow: hidden;
}

.ax-contacts-page__map {
  width: 100%;
  height: 100%;
}

.ax-contacts-page__map > div,
.ax-contacts-page__map iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  border: 0;
}

@media (max-width: 900px) {
  .ax-contacts-page__panels {
    grid-template-columns: 1fr;
  }

  .ax-contacts-page__phone-block {
    max-width: none;
  }

  .ax-contacts-page__map-wrap {
    min-height: 360px;
  }

  .ax-contacts-page__actions {
    flex-direction: column;
  }

  .ax-contacts-page__actions .ax-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ─── Projects page ─── */
.ax-projects-page {
  padding-top: var(--ax-header-h);
}

.ax-projects-page__hero {
  padding: clamp(64px, 10vw, 112px) 0 clamp(48px, 6vw, 72px);
  background: var(--ax-cream);
  border-bottom: 1px solid var(--ax-line);
}

.ax-projects-page__hero-inner {
  max-width: 760px;
}

.ax-projects-page__lead {
  margin: 24px 0 0;
  max-width: 620px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
  color: var(--ax-muted);
}

.ax-projects-page__toolbar {
  margin-bottom: clamp(32px, 5vw, 48px);
}

.ax-projects-page__filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--ax-line);
  background: var(--ax-white);
}

.ax-projects-page__filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  text-decoration: none;
  color: var(--ax-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-right: 1px solid var(--ax-line);
  transition: background 0.2s var(--ax-ease), color 0.2s var(--ax-ease);
}

.ax-projects-page__filter:last-child {
  border-right: 0;
}

.ax-projects-page__filter:hover {
  color: var(--ax-primary);
  background: var(--ax-cream);
}

.ax-projects-page__filter.is-active {
  background: var(--ax-primary);
  color: var(--ax-white);
}

.ax-projects-page__filter-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  background: rgba(255, 255, 255, 0.16);
}

.ax-projects-page__filter.is-active .ax-projects-page__filter-count {
  background: rgba(255, 255, 255, 0.18);
}

.ax-projects-page__filter:not(.is-active) .ax-projects-page__filter-count {
  background: var(--ax-cream);
  color: var(--ax-primary);
}

.ax-projects-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.ax-projects-page__grid .ax-project {
  flex: none;
  width: 100%;
}

.ax-projects-page__empty {
  padding: clamp(48px, 8vw, 80px) 0;
  text-align: center;
  color: var(--ax-muted);
  font-size: 17px;
  line-height: 1.7;
  border: 1px solid var(--ax-line);
  background: var(--ax-cream);
}

.ax-project--completed .ax-project__overlay {
  background: linear-gradient(to top, rgba(20, 28, 40, 0.92) 0%, rgba(20, 28, 40, 0.2) 58%, rgba(20, 28, 40, 0.08) 100%);
}

@media (max-width: 640px) {
  .ax-projects-page__filters {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .ax-projects-page__filter {
    border-right: 0;
    border-bottom: 1px solid var(--ax-line);
    justify-content: center;
  }

  .ax-projects-page__filter:last-child {
    border-bottom: 0;
  }

  .ax-projects-page__grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Construction progress ─── */
.ax-construction {
  border-top: 1px solid var(--ax-line);
}

.ax-construction__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.ax-construction__nav {
  display: flex;
  gap: 10px;
}

.ax-construction__nav.is-hidden {
  display: none;
}

.ax-construction__arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ax-line);
  background: var(--ax-white);
  color: var(--ax-primary);
  cursor: pointer;
  transition: background 0.2s var(--ax-ease), border-color 0.2s var(--ax-ease), color 0.2s var(--ax-ease), box-shadow 0.2s var(--ax-ease);
}

.ax-construction__arrow:hover:not(:disabled) {
  background: var(--ax-primary);
  border-color: var(--ax-primary);
  color: var(--ax-white);
  box-shadow: 0 8px 24px rgba(63, 80, 115, 0.18);
}

.ax-construction__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.ax-construction__track-wrap {
  position: relative;
  overflow: visible;
}

.ax-construction__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  padding: 14px 16px 18px 8px;
  margin: 0 -8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ax-construction__track::-webkit-scrollbar {
  display: none;
}

.ax-construction__card {
  position: relative;
  flex: 0 0 clamp(272px, 30vw, 320px);
  scroll-snap-align: start;
  border: none;
  padding: 12px 12px 4px 0;
  background: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: transform 0.3s var(--ax-ease);
  overflow: visible;
}

.ax-construction__card:hover {
  transform: translateY(-4px);
}

.ax-construction__card-frame {
  position: relative;
  display: block;
  overflow: visible;
}

.ax-construction__card-frame::before {
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--ax-gold);
  z-index: 0;
  opacity: 0.55;
  transition: opacity 0.3s var(--ax-ease), transform 0.3s var(--ax-ease);
}

.ax-construction__card:hover .ax-construction__card-frame::before {
  opacity: 1;
  transform: translate(2px, 2px);
}

.ax-construction__card-media {
  position: relative;
  z-index: 1;
  display: block;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border: 1px solid var(--ax-line);
  background: var(--ax-primary-dark);
  box-shadow: 0 12px 36px rgba(20, 28, 40, 0.1);
}

.ax-construction__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ax-ease);
}

.ax-construction__card:hover .ax-construction__card-media img {
  transform: scale(1.06);
}

.ax-construction__card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 28, 40, 0.82) 0%, rgba(20, 28, 40, 0.15) 48%, transparent 100%);
  pointer-events: none;
}

.ax-construction__card-date {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--ax-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ax-white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.ax-construction__card-count {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ax-ink);
  background: var(--ax-gold);
}

.ax-construction__card-open {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--ax-white);
  background: rgba(20, 28, 40, 0.45);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s var(--ax-ease), transform 0.25s var(--ax-ease), background 0.25s var(--ax-ease);
}

.ax-construction__card:hover .ax-construction__card-open {
  opacity: 1;
  transform: translateY(0);
}

html.construction-modal-open,
html.construction-modal-open body {
  overflow: hidden;
}

.ax-construction-modal {
  position: fixed;
  inset: 0;
  z-index: 550;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--ax-ease), visibility 0.3s;
}

.ax-construction-modal.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.ax-construction-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 40, 0.68);
  backdrop-filter: blur(6px);
}

.ax-construction-modal__panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(90vh, 820px);
  display: flex;
  flex-direction: column;
  background: var(--ax-white);
  border: 1px solid var(--ax-line);
  box-shadow: 0 28px 90px rgba(20, 28, 40, 0.28);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.35s var(--ax-ease);
  overflow: hidden;
}

.ax-construction-modal.is-open .ax-construction-modal__panel {
  transform: translateY(0) scale(1);
}

.ax-construction-modal__head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ax-line);
  background: var(--ax-cream);
  flex-shrink: 0;
}

.ax-construction-modal__head-text .ax-label {
  display: block;
  margin-bottom: 4px;
}

.ax-construction-modal__title {
  margin: 0;
  font-family: var(--ax-display);
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ax-ink);
}

.ax-construction-modal__counter {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ax-primary);
  background: var(--ax-white);
  border: 1px solid var(--ax-line);
  white-space: nowrap;
}

.ax-construction-modal__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ax-line);
  background: var(--ax-white);
  color: var(--ax-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.ax-construction-modal__close:hover {
  color: var(--ax-primary);
  border-color: var(--ax-primary);
}

.ax-construction-modal__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 16px 20px 20px;
  gap: 14px;
  overflow: hidden;
}

.ax-construction-modal__stage {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.ax-construction-modal__viewport {
  position: relative;
  height: min(52vh, 480px);
  max-height: 480px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(63, 80, 115, 0.18) 0%, transparent 55%),
    var(--ax-primary-dark);
  border: 1px solid var(--ax-line);
  overflow: hidden;
}

.ax-construction-modal__viewport img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.ax-construction-modal__arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ax-line);
  background: var(--ax-white);
  color: var(--ax-primary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s var(--ax-ease), border-color 0.2s var(--ax-ease), color 0.2s var(--ax-ease);
}

.ax-construction-modal__arrow:hover:not(:disabled) {
  background: var(--ax-gold);
  border-color: var(--ax-gold);
  color: var(--ax-white);
}

.ax-construction-modal__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.ax-construction-modal__thumbs-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 12px 14px;
  background: var(--ax-cream);
  border: 1px solid var(--ax-line);
}

.ax-construction-modal__thumbs-bar[hidden] {
  display: none;
}

.ax-construction-modal__thumbs-arrow {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ax-line);
  background: var(--ax-white);
  color: var(--ax-primary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}

.ax-construction-modal__thumbs-arrow:hover:not(:disabled) {
  background: var(--ax-primary);
  border-color: var(--ax-primary);
  color: var(--ax-white);
}

.ax-construction-modal__thumbs-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.ax-construction-modal__thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 2px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ax-construction-modal__thumbs::-webkit-scrollbar {
  display: none;
}

.ax-construction-modal__thumb {
  flex: 0 0 108px;
  width: 108px;
  height: 76px;
  padding: 0;
  border: 2px solid transparent;
  background: var(--ax-white);
  cursor: pointer;
  overflow: hidden;
  scroll-snap-align: center;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.ax-construction-modal__thumb:hover {
  opacity: 0.92;
}

.ax-construction-modal__thumb.is-active {
  border-color: var(--ax-gold);
  opacity: 1;
  box-shadow: 0 6px 18px rgba(184, 154, 91, 0.28);
  transform: translateY(-2px);
}

.ax-construction-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .ax-construction__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .ax-construction-modal {
    padding: 0;
    align-items: stretch;
  }

  .ax-construction-modal__panel {
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    border: none;
    border-radius: 0;
  }

  .ax-construction-modal__head {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "title close"
      "counter close";
  }

  .ax-construction-modal__head-text {
    grid-area: title;
  }

  .ax-construction-modal__counter {
    grid-area: counter;
    justify-self: start;
  }

  .ax-construction-modal__close {
    grid-area: close;
  }

  .ax-construction-modal__stage {
    grid-template-columns: 1fr;
  }

  .ax-construction-modal__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 16px rgba(20, 28, 40, 0.15);
  }

  .ax-construction-modal__arrow--prev {
    left: 8px;
  }

  .ax-construction-modal__arrow--next {
    right: 8px;
  }

  .ax-construction-modal__viewport {
    height: min(42vh, 360px);
    max-height: 360px;
  }

  .ax-construction-modal__thumb {
    flex-basis: 92px;
    width: 92px;
    height: 64px;
  }
}

/* ─── Installment 0% ─── */
.ax-installment {
  padding: clamp(64px, 10vw, 100px) 0;
  background: var(--ax-cream);
}

.ax-installment-page .ax-installment {
  padding-top: calc(var(--ax-header-h) + 48px);
}

.ax-installment__head {
  margin-bottom: clamp(36px, 5vw, 56px);
  max-width: 720px;
}

.ax-installment__lead {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ax-muted);
}

.ax-installment__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ax-installment__badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid rgba(184, 154, 91, 0.35);
  background: rgba(184, 154, 91, 0.12);
  color: #8a6d2f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ax-installment__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.ax-installment__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.ax-installment__panel {
  background: var(--ax-white);
  border: 1px solid var(--ax-line);
  padding: clamp(24px, 3vw, 32px);
}

.ax-installment__panel--calc {
  flex: 1;
}

.ax-installment__panel--info {
  height: 100%;
}

.ax-installment__panel-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ax-gold);
  margin-bottom: 24px;
}

.ax-installment__field {
  margin-bottom: 22px;
}

.ax-installment__field:last-child {
  margin-bottom: 0;
}

.ax-installment__field--readonly .ax-installment__readonly {
  min-height: 48px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 16px;
  background: var(--ax-cream);
  border: 1px solid var(--ax-line);
}

.ax-installment__field--readonly .ax-installment__readonly strong {
  font-size: 28px;
  font-weight: 700;
  color: var(--ax-primary);
  font-variant-numeric: tabular-nums;
}

.ax-installment__field--readonly .ax-installment__readonly span {
  font-size: 16px;
  color: var(--ax-muted);
}

.ax-installment__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ax-muted);
  margin-bottom: 10px;
}

.ax-installment__input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  background: var(--ax-cream);
  border: 1px solid var(--ax-line);
  font-family: var(--ax-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--ax-ink);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s var(--ax-ease), box-shadow 0.2s var(--ax-ease);
}

.ax-installment__input:focus {
  outline: none;
  border-color: var(--ax-primary);
  box-shadow: 0 0 0 3px rgba(63, 80, 115, 0.12);
  background: var(--ax-white);
}

.ax-installment__value-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ax-installment__value-row .ax-installment__input {
  flex: 1;
}

.ax-installment__percent.ax-installment__input {
  flex: 0 0 auto;
  width: 72px;
  min-width: 72px;
  padding: 0 10px;
  text-align: right;
  font-size: 14px;
}

.ax-installment__range {
  width: 100%;
  margin-top: 12px;
  height: 28px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.ax-installment__range:focus {
  outline: none;
}

.ax-installment__range::-webkit-slider-runnable-track {
  height: 3px;
  background: var(--ax-cream-dark);
  border-radius: 2px;
}

.ax-installment__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ax-primary);
  margin-top: -7px;
  border: 2px solid var(--ax-white);
  box-shadow: 0 2px 8px rgba(63, 80, 115, 0.35);
}

.ax-installment__range::-moz-range-track {
  height: 3px;
  background: var(--ax-cream-dark);
  border-radius: 2px;
}

.ax-installment__range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ax-primary);
  border: 2px solid var(--ax-white);
  box-shadow: 0 2px 8px rgba(63, 80, 115, 0.35);
}

.ax-installment__hint {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ax-muted);
}

.ax-installment__summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ax-line);
}

.ax-installment__summary-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ax-muted);
  margin-bottom: 6px;
}

.ax-installment__summary-val {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--ax-primary);
  font-variant-numeric: tabular-nums;
}

.ax-installment__summary-note {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--ax-muted);
}

.ax-installment__payment {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ax-installment__payment-label {
  font-size: 14px;
  color: var(--ax-muted);
}

.ax-installment__payment-val {
  font-family: var(--ax-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  color: var(--ax-ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ax-installment__legal {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--ax-muted);
  line-height: 1.45;
}

.ax-installment__conditions {
  margin: 0 0 28px;
  padding-left: 20px;
  color: var(--ax-muted);
  line-height: 1.7;
}

.ax-installment__conditions li + li {
  margin-top: 10px;
}

.ax-installment__tiers {
  display: grid;
  gap: 12px;
}

.ax-installment__tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--ax-cream);
  border: 1px solid var(--ax-line);
}

.ax-installment__tier-label {
  font-size: 13px;
  color: var(--ax-muted);
}

.ax-installment__tier strong {
  font-size: 15px;
  color: var(--ax-primary);
  white-space: nowrap;
}

@media (max-width: 960px) {
  .ax-installment__split {
    grid-template-columns: 1fr;
  }

  .ax-installment__summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .ax-installment__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .ax-installment__cta {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════
   Mobile app experience (≤768px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --ax-pad: clamp(16px, 4.5vw, 24px);
    --ax-header-h: 64px;
  }

  .ax-header {
    height: calc(var(--ax-header-h) + var(--ax-safe-top));
    padding-top: var(--ax-safe-top);
  }

  .ax-header__logo img {
    height: 32px;
  }

  .ax-drawer__panel {
    padding-top: calc(24px + var(--ax-safe-top));
    padding-bottom: calc(24px + var(--ax-safe-bottom));
    width: min(100%, 420px);
  }

  .ax-section {
    padding: clamp(48px, 12vw, 72px) 0;
  }

  .ax-section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: clamp(28px, 6vw, 40px);
  }

  .ax-heading {
    font-size: clamp(32px, 8vw, 44px);
  }

  .ax-label {
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .ax-btn {
    min-height: 48px;
    padding: 14px 22px;
  }

  .ax-hero {
    padding-top: calc(var(--ax-header-h) + var(--ax-safe-top));
  }

  .ax-hero__content {
    padding-top: 20px;
    padding-bottom: 24px;
  }

  .ax-hero__title {
    font-size: clamp(36px, 10vw, 48px);
    margin-bottom: 16px;
  }

  .ax-hero__subtitle {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .ax-hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .ax-hero__actions .ax-btn {
    width: 100%;
    justify-content: center;
  }

  .ax-hero__media {
    min-height: clamp(220px, 42vh, 380px);
    height: clamp(220px, 42vh, 380px);
    max-height: none;
  }

  .ax-hero__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 0;
    overflow: visible;
    margin: 20px 0 0;
    padding: 0;
    border-top: 1px solid var(--ax-line);
  }

  .ax-hero__thumb {
    flex: initial;
    min-width: 0;
    width: auto;
    scroll-snap-align: none;
    border: none;
    border-right: 1px solid var(--ax-line);
    border-top: none;
    padding: 14px 10px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
  }

  .ax-hero__thumb:last-child {
    border-bottom: none;
    border-right: none;
  }

  .ax-hero__thumb-label {
    font-size: 11px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .ax-hero__thumb-bar {
    display: none;
  }

  .ax-hero__thumb.is-active {
    background: var(--ax-white);
    padding-left: 10px;
  }

  .ax-stats__value {
    font-size: clamp(28px, 7vw, 36px);
  }

  .ax-stats__item {
    padding: clamp(20px, 5vw, 28px) var(--ax-pad);
  }

  .ax-comfort__head {
    flex-wrap: wrap;
  }

  .ax-comfort-slider .ax-feature {
    padding: 24px var(--ax-pad);
    border-right: none;
    border-bottom: none;
  }

  .ax-comfort-slider .ax-feature__num {
    font-size: 48px;
    margin-bottom: 16px;
  }

  .ax-comfort-slider .ax-feature__title {
    font-size: 20px;
  }

  .ax-project-hero {
    min-height: min(72vh, 620px);
    padding-top: calc(var(--ax-header-h) + var(--ax-safe-top));
  }

  .ax-project-hero__content {
    padding-bottom: 72px;
  }

  .ax-project-hero__title {
    font-size: clamp(34px, 9vw, 48px);
  }

  .ax-project-hero__subtitle {
    font-size: 15px;
  }

  .ax-hero__actions.ax-project-hero__actions,
  .ax-project-hero__content .ax-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ax-project-hero__nav {
    position: relative;
    bottom: auto;
    margin-top: -48px;
    padding-bottom: 16px;
  }

  .ax-project-hero__nav-inner {
    justify-content: center;
  }

  .ax-projects-page__filters {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .ax-projects-page__filter {
    border-right: 0;
    border-bottom: 1px solid var(--ax-line);
    justify-content: center;
    min-height: 52px;
  }

  .ax-projects-page__filter:last-child {
    border-bottom: 0;
  }

  .ax-projects-page__grid {
    grid-template-columns: 1fr;
  }

  .ax-apt-page__visual {
    min-height: 0;
  }

  .ax-apt-page__media {
    min-height: 280px;
  }

  .ax-apt-page__tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0;
    -webkit-overflow-scrolling: touch;
  }

  .ax-apt-page__tabs::-webkit-scrollbar {
    display: none;
  }

  .ax-apt-page__tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .ax-lots__filters-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .ax-lots__filters-foot .ax-btn {
    width: 100%;
  }

  .ax-mortgage-modal {
    padding: 0;
    align-items: flex-end;
  }

  .ax-mortgage-modal__panel {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - var(--ax-safe-top));
    border-radius: 20px 20px 0 0;
    padding-bottom: var(--ax-safe-bottom);
  }

  .ax-mortgage__input,
  .ax-installment__input {
    font-size: 16px;
  }

  .ax-footer {
    padding-bottom: calc(24px + var(--ax-safe-bottom));
  }

  .ax-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .ax-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .ax-site .callback-drawer__input,
  .ax-site .callback-drawer__submit {
    font-size: 16px;
  }

  .ax-site .callback-drawer__consent {
    align-items: flex-start;
    gap: 12px;
  }

  .ax-site .callback-drawer__consent-input {
    width: 22px;
    height: 22px;
    margin-top: 2px;
  }
}
