:root {
  --graphite: #15181d;
  --graphite-mid: #1e252f;
  --blue-deep: #0d3a5c;
  --blue-accent: #1a5a8a;
  --blue-bright: #2d7ab8;
  --white: #ffffff;
  --grey-text: #6b7280;
  --green-bullet: #22a06b;
  --border-soft: #e5e7eb;
  --page-bg: #eef3f9;
  --projects-bg-top: #e9f2fa;
  --projects-bg-mid: #dceaf6;
  --projects-bg-bottom: #d0e3f2;
  --logo-orange: #f97316;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", system-ui, sans-serif;
  color: #111;
  background: var(--page-bg);
  min-height: 100vh;
}

body:has(.hero) {
  background: linear-gradient(180deg, #f2f6fb 0%, var(--page-bg) 28%, #e4edf7 100%);
}

body.no-scroll {
  overflow: hidden;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}

html.js .site-header {
  animation: headerSlide 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Контент всегда виден: Safari иногда не доигрывает анимации с opacity */
html.js .site-header,
html.js .hero__title,
html.js .hero__subtitle,
html.js .info-bar,
html.js .info-bar .stat,
html.js .property-card {
  opacity: 1;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #111;
}

.logo__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background-color: var(--logo-orange);
  -webkit-mask-image: url("images/logo-nahimova.png");
  mask-image: url("images/logo-nahimova.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: background-color 0.25s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.logo:hover .logo__mark {
  background-color: var(--blue-deep);
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(13, 58, 92, 0.2);
}

.logo__text {
  font-weight: 800;
  font-size: clamp(0.78rem, 2.1vw, 1rem);
  letter-spacing: 0.02em;
  line-height: 1.2;
  max-width: 11.5rem;
}

.site-nav {
  display: none;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }
}

.site-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #111;
  background: var(--white);
  border: 1.5px solid #111;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.site-nav__link:hover,
.site-nav__item--dropdown:hover > .site-nav__link,
.site-nav__item--dropdown:focus-within > .site-nav__link,
.site-nav__item--dropdown.is-open > .site-nav__link {
  color: var(--white);
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(13, 58, 92, 0.2);
}

.site-nav__link:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 3px;
}

.site-nav__item--dropdown > .site-nav__link::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.55;
  margin-top: 2px;
}

.site-nav__item {
  position: relative;
}

.site-nav__item--dropdown .site-nav__dropdown {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  padding-top: 0.35rem;
  min-width: 17rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 60;
}

.site-nav__item--dropdown .site-nav__dropdown-panel {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transform: translateY(-6px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .site-nav__item--dropdown:hover .site-nav__dropdown,
  .site-nav__item--dropdown:focus-within .site-nav__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav__item--dropdown:hover .site-nav__dropdown-panel,
  .site-nav__item--dropdown:focus-within .site-nav__dropdown-panel {
    transform: translateY(0);
  }
}

@media (hover: none) {
  .site-nav__item--dropdown.is-open .site-nav__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav__item--dropdown.is-open .site-nav__dropdown-panel {
    transform: translateY(0);
  }
}

.site-nav__dropdown-list {
  list-style: none;
}

.site-nav__dropdown-list a {
  display: block;
  padding: 0.65rem 1rem 0.65rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1f2937;
  border-left: 3px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-nav__dropdown-list a:hover,
.site-nav__dropdown-list a:focus-visible {
  background: rgba(13, 58, 92, 0.06);
  border-left-color: var(--blue-bright);
  color: var(--blue-deep);
}

.site-header__drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 18, 24, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 0.75rem;
  align-items: flex-start;
  justify-content: flex-end;
}

.site-header__drawer.is-open {
  display: flex;
}

.site-header__drawer-panel {
  width: min(20rem, 100%);
  max-height: calc(100vh - 1.5rem);
  overflow-y: auto;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  padding: 1rem 0;
}

.site-header__drawer-title {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-text);
  padding: 0.35rem 1.25rem 0.5rem;
}

.site-header__drawer a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  color: #111;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.site-header__drawer a:hover,
.site-header__drawer a:focus-visible {
  background: rgba(13, 58, 92, 0.06);
  border-left-color: var(--blue-bright);
  color: var(--blue-deep);
}

.site-header__drawer-phone {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-header__drawer-email {
  font-size: 0.78rem;
  font-weight: 700;
  word-break: break-all;
}

.site-header__drawer-address {
  margin: 0;
  padding: 0 1.25rem 0.85rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.4;
}

.site-header__drawer-close {
  display: none;
}

.site-header__drawer-body {
  min-height: 0;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.header__contacts {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  line-height: 1.25;
}

.header__contact-link {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--blue-deep);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header__contact-link:hover {
  color: var(--blue-bright);
}

@media (min-width: 1100px) {
  .header__contacts {
    display: flex;
  }
}

@media (min-width: 1100px) and (max-width: 1280px) {
  .header__contact-link {
    font-size: 0.62rem;
  }
}

.header__spaces-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.05rem;
  border: 1.5px solid var(--blue-deep);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--blue-deep);
  background: var(--white);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.header__spaces-btn:hover {
  background: var(--blue-deep);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(13, 58, 92, 0.2);
}

.header__spaces-btn:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 3px;
}

.callback-trigger.header__callback {
  color: var(--blue-deep);
  background: var(--white);
  border: 1.5px solid var(--blue-deep);
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.callback-trigger.header__callback:hover {
  background: var(--blue-deep);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(13, 58, 92, 0.2);
  filter: none;
}

.callback-trigger.header__callback:hover::after {
  color: var(--white);
}

.btn-menu {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1.5px solid #111;
  border-radius: 999px;
  background: var(--white);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-menu:hover {
  background: var(--blue-deep);
  color: var(--white);
  border-color: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(13, 58, 92, 0.2);
}

.btn-menu:hover .btn-menu__bars span {
  background: var(--white);
}

.btn-menu.is-open .btn-menu__bars span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.btn-menu.is-open .btn-menu__bars span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.btn-menu__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-menu__bars span {
  display: block;
  width: 16px;
  height: 2px;
  background: #111;
  border-radius: 1px;
  transition: transform 0.3s ease, background 0.2s ease;
}

@media (min-width: 1024px) {
  .btn-menu {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(420px, 62vh, 640px);
  overflow: hidden;
  background: linear-gradient(
    125deg,
    var(--graphite) 0%,
    var(--graphite-mid) 35%,
    var(--blue-deep) 72%,
    #0a2844 100%
  );
  background-size: 200% 200%;
}

html.js .hero {
  animation: heroGradient 14s ease-in-out infinite alternate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 85% 45%, rgba(45, 122, 184, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(26, 90, 138, 0.2) 0%, transparent 50%);
  pointer-events: none;
  animation: heroGlowPulse 8s ease-in-out infinite alternate;
}

.hero__decor {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  pointer-events: none;
  opacity: 0.45;
}

.hero__decor svg {
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  animation: decorDrift 22s ease-in-out infinite alternate;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 7rem;
  min-height: inherit;
  display: flex;
  align-items: center;
}

.hero__text {
  max-width: 36rem;
}

.hero__title {
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero__subtitle {
  margin-top: 1rem;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

html.js .hero.is-ready .hero__title {
  animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

html.js .hero.is-ready .hero__subtitle {
  animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}

/* ---------- Info bar ---------- */
.info-wrap {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: -4rem auto 0;
  padding: 0 1rem;
}

.info-bar {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(45, 122, 184, 0.1);
  box-shadow: 0 12px 40px rgba(13, 58, 92, 0.1), 0 2px 8px rgba(13, 58, 92, 0.04);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

html.js .info-bar.is-inview {
  animation: infoBarIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.info-bar__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  flex: 1;
  min-width: 0;
}

.stat {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

html.js .info-bar.is-inview .stat {
  animation: statIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

html.js .info-bar.is-inview .stat:nth-child(1) {
  animation-delay: 0.08s;
}

html.js .info-bar.is-inview .stat:nth-child(2) {
  animation-delay: 0.16s;
}

html.js .info-bar.is-inview .stat:nth-child(3) {
  animation-delay: 0.24s;
}

html.js .info-bar.is-inview .stat:nth-child(4) {
  animation-delay: 0.32s;
}

.stat__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-bullet);
  flex-shrink: 0;
  margin-top: 0.35rem;
  animation: dotPulse 2.4s ease-in-out infinite;
}

.stat:nth-child(2) .stat__dot {
  animation-delay: 0.3s;
}

.stat:nth-child(3) .stat__dot {
  animation-delay: 0.6s;
}

.stat:nth-child(4) .stat__dot {
  animation-delay: 0.9s;
}

.stat__line1 {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.stat__line2 {
  font-size: 0.65rem;
  color: var(--grey-text);
  margin-top: 0.2rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

/* ---------- Projects / property cards ---------- */
.section-projects {
  scroll-margin-top: 1rem;
  background: linear-gradient(
    168deg,
    var(--projects-bg-top) 0%,
    var(--projects-bg-mid) 45%,
    var(--projects-bg-bottom) 100%
  );
  color: #111;
  padding: 2.5rem 1rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.section-projects::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 122, 184, 0.28), transparent);
}

.section-projects::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 55% at 0% 15%, rgba(45, 122, 184, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 100% 85%, rgba(13, 58, 92, 0.08) 0%, transparent 50%);
}

.section-projects__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.section-projects__heading {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 0.65rem;
}

.section-projects__sub {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.55;
  color: #4a6278;
  max-width: 52rem;
  margin-bottom: 1.75rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.projects-grid > .property-card:only-child {
  grid-column: 1 / -1;
}

.property-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(165deg, #1e2633 0%, #151a22 55%, #12161c 100%);
  border: 1px solid rgba(45, 122, 184, 0.22);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.35s ease;
}

.property-card:hover {
  transform: translateY(-6px);
  border-color: rgba(45, 122, 184, 0.5);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(45, 122, 184, 0.12);
}

.property-card:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 4px;
}

.property-card__arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  pointer-events: none;
  transition: color 0.3s ease;
}

.property-card__arrow svg {
  width: 1.75rem;
  height: 1.75rem;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.property-card:hover .property-card__arrow {
  color: var(--white);
}

.property-card:hover .property-card__arrow svg {
  transform: translate(4px, -4px);
}

.property-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.property-card__media-bg {
  position: absolute;
  inset: 0;
  background-size: 200% 200%;
  transition: transform 0.6s ease;
}

.property-card--a .property-card__media-bg {
  background: linear-gradient(135deg, #1a2838 0%, var(--blue-deep) 45%, #0a1f32 100%);
}

.property-card--b .property-card__media-bg {
  background: linear-gradient(125deg, #16202c 0%, #12324a 50%, #0d2034 100%);
}

.property-card--c .property-card__media-bg {
  background: linear-gradient(145deg, #1e1f26 0%, var(--graphite-mid) 40%, #0d3a5c 100%);
}

/* Земельные участки */
.property-card--land {
  background: #173528;
  border-color: rgba(82, 138, 108, 0.32);
}

.property-card--land:hover {
  border-color: rgba(102, 168, 128, 0.5);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(82, 138, 108, 0.12);
}

.property-card--land .property-card__media-bg {
  background: linear-gradient(135deg, #2f5242 0%, #247052 45%, #1f3d32 100%);
}

.property-card--land .property-card__body {
  background: linear-gradient(165deg, #1f4538 0%, #183a2e 50%, #152e25 100%);
}

.property-card--land .property-card__tagline {
  color: rgba(196, 224, 204, 0.82);
}

.property-card--land .property-card__media-icon {
  display: none;
}

.property-card__media picture {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

.property-card__photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.property-card__media:has(.property-card__photo) .property-card__media-icon {
  display: none;
}

.property-card:hover .property-card__photo {
  transform: scale(1.04);
}

.property-card:hover .property-card__media-bg {
  transform: scale(1.04);
}

.property-card__media-icon {
  position: absolute;
  right: 8%;
  bottom: 10%;
  width: 42%;
  height: auto;
  opacity: 0.85;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.property-card__body {
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.property-card__title {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.property-card__tagline {
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

html.js .property-card.is-inview {
  animation: cardReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

html.js .projects-grid .property-card.is-inview:nth-child(1) {
  animation-delay: 0.05s;
}

html.js .projects-grid .property-card.is-inview:nth-child(2) {
  animation-delay: 0.14s;
}

html.js .projects-grid .property-card.is-inview:nth-child(3) {
  animation-delay: 0.23s;
}

html.js .projects-grid .property-card.is-inview:nth-child(4) {
  animation-delay: 0.32s;
}

html.js .projects-grid .property-card.is-inview:nth-child(5) {
  animation-delay: 0.41s;
}

html.js .projects-grid .property-card.is-inview:nth-child(6) {
  animation-delay: 0.5s;
}

html.js .projects-grid .property-card.is-inview:nth-child(7) {
  animation-delay: 0.59s;
}

html.js .projects-grid .property-card.is-inview:nth-child(8) {
  animation-delay: 0.68s;
}

html.js .projects-grid .property-card.is-inview:nth-child(9) {
  animation-delay: 0.77s;
}

html.js .projects-grid .property-card.is-inview:nth-child(10) {
  animation-delay: 0.86s;
}

/* ---------- Keyframes ---------- */
@keyframes headerSlide {
  from {
    transform: translateY(-12px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes heroGradient {
  0% {
    background-position: 0% 40%;
  }
  100% {
    background-position: 100% 60%;
  }
}

@keyframes heroGlowPulse {
  0% {
    opacity: 0.85;
  }
  100% {
    opacity: 1;
  }
}

@keyframes decorDrift {
  0% {
    transform: rotate(-2deg) scale(1);
  }
  100% {
    transform: rotate(4deg) scale(1.03);
  }
}

@keyframes fadeUp {
  from {
    transform: translateY(22px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes infoBarIn {
  from {
    transform: translateY(28px) scale(0.98);
  }
  to {
    transform: translateY(0) scale(1);
  }
}

@keyframes statIn {
  from {
    transform: translateY(14px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes dotPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.85;
  }
}

@keyframes cardReveal {
  from {
    transform: translateY(28px);
  }
  to {
    transform: translateY(0);
  }
}

/* Safari / WebKit: отключаем входные анимации — надёжнее, чем ждать IntersectionObserver */
html.is-safari .site-header,
html.is-safari .hero,
html.is-safari .hero__title,
html.is-safari .hero__subtitle,
html.is-safari .info-bar,
html.is-safari .info-bar .stat,
html.is-safari .property-card {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html.js .site-header,
  html.js .hero,
  html.js .hero__title,
  html.js .hero__subtitle,
  html.js .info-bar,
  html.js .info-bar.is-inview .stat,
  .hero::before,
  .hero__decor svg,
  .stat__dot,
  html.js .property-card,
  html.js .property-card.is-inview {
    animation: none !important;
  }

  html.js .property-card {
    opacity: 1 !important;
    transform: none !important;
  }

  .property-card,
  .property-card__media-bg,
  .property-card__arrow svg {
    transition: none !important;
  }

  html.js .hero__title,
  html.js .hero__subtitle,
  html.js .info-bar,
  html.js .stat {
    opacity: 1 !important;
    transform: none !important;
  }

  .logo__mark {
    transition: none;
  }
}

@media (max-width: 1023px) {
  .site-header {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
  }

  .logo {
    min-width: 0;
    flex: 1 1 auto;
    gap: 0.5rem;
  }

  .logo__mark {
    width: 34px;
    height: 34px;
  }

  .logo__text {
    font-size: 0.72rem;
    max-width: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header__right {
    width: auto;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    margin-left: auto;
    gap: 0.35rem;
  }

  .header__spaces-btn {
    display: none;
  }

  .callback-trigger.header__callback {
    font-size: 0;
    line-height: 0;
    padding: 0.48rem 0.8rem;
  }

  .callback-trigger.header__callback::after {
    content: "Заявка";
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    color: var(--blue-deep);
    text-transform: uppercase;
  }

  .btn-menu {
    font-size: 0;
    gap: 0;
    padding: 0.48rem 0.62rem;
  }

  .site-header__drawer {
    padding: 0;
    background: var(--white);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    align-items: stretch;
    justify-content: stretch;
  }

  .site-header__drawer-panel {
    position: relative;
    width: 100%;
    max-height: none;
    height: 100%;
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .site-header__drawer-close {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    align-self: flex-end;
    margin: 0.85rem 0.85rem 0;
    width: 2.75rem;
    height: 2.75rem;
    border: 1.5px solid var(--border-soft);
    border-radius: 50%;
    background: var(--white);
    color: #111;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  .site-header__drawer-close svg {
    width: 1.15rem;
    height: 1.15rem;
    stroke: currentColor;
    stroke-width: 2;
  }

  .site-header__drawer-close:hover,
  .site-header__drawer-close:focus-visible {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--blue-deep);
    outline: none;
  }

  .site-header__drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.35rem 0 1.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .site-header__drawer a {
    padding: 0.85rem 1.35rem;
    font-size: 0.88rem;
  }

  .site-header__drawer-title {
    padding: 0.5rem 1.35rem 0.65rem;
    font-size: 0.68rem;
  }

  .site-header__drawer-phone,
  .site-header__drawer-email,
  .site-header__drawer-address {
    display: none;
  }
}

@media (max-width: 992px) {
  .info-bar__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero__decor {
    opacity: 0.25;
    right: -20%;
  }

  .info-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .info-bar__stats {
    grid-template-columns: 1fr;
  }

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

/* ---------- Inner pages (объект, разделы) ---------- */
.inner-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.inner-page__main {
  flex: 1;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.inner-page__back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blue-deep);
  transition: color 0.2s ease;
}

.inner-page__back:hover {
  color: var(--blue-bright);
}

.inner-page__link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(13, 58, 92, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.inner-page__link:hover {
  color: var(--blue-bright);
  border-bottom-color: var(--blue-bright);
}

.inner-page__list {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--grey-text);
}

.inner-page__list li + li {
  margin-top: 0.35rem;
}

.inner-page__label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-text);
  margin-bottom: 0.35rem;
}

.inner-page__h1 {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.inner-page__address {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 1.25rem;
}

.inner-page__text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #374151;
  margin-bottom: 1.5rem;
}

.inner-page__phone {
  display: inline-block;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--white);
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue-accent), var(--blue-deep));
  transition: filter 0.2s ease, transform 0.2s ease;
}

.inner-page__phone:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* ---------- Модальное окно «Оставить заявку» ---------- */
.callback-trigger {
  position: static;
  padding: 0.55rem 1.05rem;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--white);
  cursor: pointer;
  background: linear-gradient(165deg, #1a5a8a 0%, #0d3a5c 100%);
  box-shadow: 0 4px 18px rgba(13, 58, 92, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.callback-trigger:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 58, 92, 0.38);
}

@media (max-width: 420px) {
  .site-header {
    padding: 0.45rem 0.65rem;
    gap: 0.35rem;
  }

  .logo__mark {
    width: 30px;
    height: 30px;
  }

  .logo__text {
    font-size: 0.65rem;
  }

  .header__right {
    gap: 0.28rem;
  }

  .callback-trigger.header__callback {
    padding: 0.42rem 0.65rem;
  }

  .callback-trigger.header__callback::after {
    font-size: 0.55rem;
    letter-spacing: 0.04em;
  }

  .btn-menu {
    padding: 0.42rem 0.55rem;
  }
}

.callback-trigger:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 3px;
}

.callback-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.callback-modal.is-open {
  display: flex;
}

.callback-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 24, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.callback-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  max-height: min(90vh, 36rem);
  overflow-y: auto;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  animation: callbackPanelIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes callbackPanelIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.callback-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.callback-modal__close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.callback-modal__title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0f172a;
  margin-bottom: 0.45rem;
  padding-right: 2rem;
}

.callback-modal__lead {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 1.35rem;
}

.callback-form__field {
  margin-bottom: 1rem;
}

.callback-form__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 0.35rem;
}

.callback-form__optional {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #94a3b8;
}

.callback-form__input,
.callback-form__textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  color: #0f172a;
  background: #fafbfc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.callback-form__input:focus,
.callback-form__textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(45, 122, 184, 0.15);
}

.callback-form__textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.callback-form__submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  cursor: pointer;
  background: linear-gradient(180deg, var(--blue-accent), var(--blue-deep));
  box-shadow: 0 6px 20px rgba(13, 58, 92, 0.3);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.callback-form__submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.callback-form__submit:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.callback-form__error {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.45;
}

.callback-modal__success {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}

.callback-modal__success-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-deep);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.callback-modal__success-btn {
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: var(--white);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.callback-modal__success-btn:hover {
  background: #f8fafc;
  border-color: var(--blue-bright);
}

@media (prefers-reduced-motion: reduce) {
  .callback-modal__panel {
    animation: none;
  }

  .callback-trigger {
    transition: none;
  }
}

/* ---------- Страница объекта (галерея + описание) ---------- */
.object-page {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3.5rem;
}

.object-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blue-deep);
  transition: color 0.2s ease, transform 0.2s ease;
}

.object-page__back:hover {
  color: var(--blue-bright);
  transform: translateX(-3px);
}

.object-page__intro {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.object-page__label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-text);
  margin-bottom: 0.4rem;
}

.object-page__title {
  font-size: clamp(1.5rem, 4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.object-carousel {
  margin-bottom: 1.75rem;
}

.object-carousel__frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.object-carousel__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(45, 122, 184, 0.15);
}

.object-carousel__viewport {
  margin: 0;
}

.object-carousel__viewport picture {
  display: block;
}

.object-carousel__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  vertical-align: middle;
}

.object-carousel__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.2s ease, transform 0.2s ease;
}

.object-carousel__nav svg {
  width: 2.25rem;
  height: 2.25rem;
}

.object-carousel__nav--prev {
  left: 0.85rem;
}

.object-carousel__nav--next {
  right: 0.85rem;
}

.object-carousel__nav:hover {
  color: var(--blue-bright);
  transform: translateY(-50%) scale(1.08);
}

.object-carousel__nav:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 2px;
}

.object-carousel__nav[hidden] {
  display: none;
}

.object-carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.object-carousel__dots[hidden] {
  display: none;
}

.object-carousel__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.object-carousel__dot.is-active {
  background: var(--blue-bright);
  transform: scale(1.2);
}

.object-carousel__dot:hover:not(.is-active) {
  background: #94a3b8;
}

.object-carousel__dot:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 2px;
}

.object-page__actions {
  display: none;
}

.object-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: linear-gradient(165deg, var(--blue-accent) 0%, var(--blue-deep) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 22px rgba(13, 58, 92, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.object-download-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(13, 58, 92, 0.4);
}

.object-download-btn svg {
  flex-shrink: 0;
  opacity: 0.95;
}

.object-page__spaces-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--blue-deep);
  background: var(--white);
  border: 1.5px solid var(--blue-deep);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.object-page__spaces-btn:hover {
  background: var(--blue-deep);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(13, 58, 92, 0.2);
}

.object-page__cta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.75rem;
  margin-bottom: 0;
}

.object-page__cta .object-download-btn,
.object-page__cta .object-page__spaces-btn {
  width: 100%;
  justify-content: center;
}

.object-page__cta .object-page__spaces-btn {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.object-page__phone-inline {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

.object-page__phone-inline:hover {
  color: var(--blue-bright);
}

.object-map {
  margin-top: 2rem;
}

.object-map__title {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.object-map__frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  aspect-ratio: 16 / 9;
  min-height: 280px;
}

.object-map__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.object-map__link {
  display: inline-flex;
  margin-top: 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-deep);
}

.object-map__link:hover {
  color: var(--blue-bright);
}

.object-spec {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(13, 58, 92, 0.06);
}

.object-spec__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-accent) 55%, var(--blue-bright) 100%);
}

.object-spec__head-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.object-spec__head-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.object-spec__head-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.3;
}

.object-spec__section {
  padding: 1.15rem 1.25rem 0;
}

.object-spec__section + .object-spec__purpose,
.object-spec__purpose + .object-spec__section {
  margin-top: 0;
}

.object-spec__section-label,
.object-spec__purpose-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}

.object-spec__section-label::before,
.object-spec__purpose-label::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-bright);
}

.object-spec--land .object-spec__section-label::before,
.object-spec--land .object-spec__purpose-label::before {
  background: var(--green-bullet);
}

.object-spec__lead {
  margin: 0 0 1.15rem;
  padding: 0 0 1.15rem;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.65;
  color: #1e293b;
  border-bottom: 1px solid #eef2f6;
}

.object-spec__lead a {
  color: var(--blue-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.object-spec__lead a:hover {
  color: var(--blue-deep);
}

.object-spec__purpose {
  margin: 0 1.25rem 1.15rem;
  padding: 0.9rem 1rem;
  background: rgba(45, 122, 184, 0.08);
  border-left: 3px solid var(--blue-bright);
  border-radius: 0 10px 10px 0;
}

.object-spec--land .object-spec__purpose {
  background: rgba(34, 160, 107, 0.08);
  border-left-color: var(--green-bullet);
}

.object-spec__purpose-text {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.55;
  color: #0f172a;
}

.object-spec__section:has(.object-spec__grid) {
  padding-bottom: 1.15rem;
  border-top: 1px solid #eef2f6;
  padding-top: 1.15rem;
}

.object-spec__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.object-spec-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 0.95rem;
  background: #f8fafc;
  border: 1px solid #e8eef4;
  border-radius: 12px;
  min-height: 5.5rem;
}

.object-spec-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.object-spec-card__label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1.35;
}

.object-spec-card__badge {
  flex-shrink: 0;
  padding: 0.15rem 0.45rem;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  line-height: 1.4;
}

.object-spec-card__badge--green {
  background: rgba(34, 160, 107, 0.15);
  color: #15803d;
}

.object-spec-card__badge--blue {
  background: rgba(45, 122, 184, 0.15);
  color: var(--blue-accent);
}

.object-spec-card__badge--orange {
  background: rgba(245, 158, 11, 0.18);
  color: #b45309;
}

.object-spec-card__badge--muted {
  background: #e2e8f0;
  color: #64748b;
}

.object-spec-card__value {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
}

.object-spec-card__sub {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
  color: #94a3b8;
}

.object-spec__price {
  margin: 0;
  padding: 1rem 1.25rem 1.15rem;
  border-top: 1px solid #e2e8f0;
  background: linear-gradient(180deg, rgba(45, 122, 184, 0.04) 0%, transparent 100%);
}

.object-spec__price-text {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  font-style: normal;
  color: var(--blue-deep);
  line-height: 1.55;
  text-align: left;
}

.object-spec--land .object-spec__head {
  background: linear-gradient(135deg, #14532d 0%, var(--green-bullet) 55%, #4ade80 100%);
}

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

@media (max-width: 560px) {
  .object-spec__grid {
    grid-template-columns: 1fr;
  }

  .object-spec__head {
    padding: 0.9rem 1rem;
  }

  .object-spec__section,
  .object-spec__purpose {
    margin-left: 0;
    margin-right: 0;
  }

  .object-spec__purpose {
    margin: 0 1rem 1rem;
  }

  .object-spec__section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 1023px) {
  .object-map {
    margin-top: 1.25rem;
  }
}

@media (max-width: 640px) {
  .object-carousel__nav svg {
    width: 1.85rem;
    height: 1.85rem;
  }

  .object-carousel__nav--prev {
    left: 0.55rem;
  }

  .object-carousel__nav--next {
    right: 0.55rem;
  }

}

/* ---------- Свободные площади: карточка предложения ---------- */
.inner-page__main--spaces {
  max-width: 58rem;
}

.spaces-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin: 0 0 2.25rem;
}

.space-card {
  display: block;
  background: var(--white);
  border-radius: 18px;
  border: 1px solid rgba(13, 58, 92, 0.1);
  box-shadow:
    0 4px 6px rgba(13, 58, 92, 0.04),
    0 18px 48px rgba(13, 58, 92, 0.1);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.space-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 12px rgba(13, 58, 92, 0.06),
    0 24px 56px rgba(13, 58, 92, 0.14);
}

.space-card__gallery {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem;
  background: linear-gradient(165deg, #e8f1fa 0%, #dceaf6 55%, #d4e4f4 100%);
  border-right: 1px solid rgba(13, 58, 92, 0.08);
}

.space-card__shot {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(13, 58, 92, 0.18);
}

.space-card__shot--plan {
  flex: 1;
}

.space-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  color: #64748b;
  background: repeating-linear-gradient(
    -45deg,
    #f1f5f9,
    #f1f5f9 8px,
    #e8eef4 8px,
    #e8eef4 16px
  );
  border: 1px dashed rgba(13, 58, 92, 0.22);
}

.space-card__shot--plan .space-card__placeholder {
  aspect-ratio: 5 / 3;
}

.space-card__panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.15rem 1.35rem 1.25rem;
  min-width: 0;
}

.space-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.space-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(145deg, var(--blue-bright), var(--blue-deep));
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(13, 58, 92, 0.25);
}

.space-card__status {
  padding: 0.2rem 0.55rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #15803d;
  background: rgba(34, 160, 107, 0.14);
  border-radius: 999px;
}

.space-card__object {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(13, 58, 92, 0.25);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.space-card__object:hover {
  color: var(--blue-bright);
  border-bottom-color: var(--blue-bright);
}

.space-card__title {
  margin: 0;
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #0f172a;
}

.space-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.space-card__tag {
  padding: 0.28rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--blue-deep);
  background: rgba(45, 122, 184, 0.1);
  border: 1px solid rgba(45, 122, 184, 0.18);
  border-radius: 999px;
}

.space-card__tag--area {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-accent), var(--blue-deep));
  border-color: transparent;
}

.space-card__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.space-card__perks li {
  padding: 0.3rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  color: #166534;
  background: rgba(34, 160, 107, 0.12);
  border-radius: 8px;
}

.space-card__perks li::before {
  content: "✓ ";
  font-weight: 800;
}

.space-card__desc {
  padding: 0.75rem 0.9rem;
  background: #f8fafc;
  border: 1px solid #e8eef4;
  border-radius: 12px;
  border-left: 3px solid var(--blue-bright);
}

.space-card__desc-label {
  margin: 0 0 0.35rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

.space-card__desc-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #475569;
}

.space-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid #e8eef4;
}

.space-card__price-block {
  flex: 1;
  min-width: 12rem;
}

.space-card__price-label {
  margin: 0 0 0.15rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

.space-card__price {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--blue-deep);
  letter-spacing: -0.02em;
}

.space-card__price span {
  font-size: 0.72em;
  font-weight: 700;
  color: var(--blue-accent);
}

.space-card__price-vat {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

.space-card__utilities {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
}

.space-card__cta {
  flex-shrink: 0;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(180deg, var(--blue-accent), var(--blue-deep));
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 20px rgba(13, 58, 92, 0.28);
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.space-card__cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(13, 58, 92, 0.34);
}

.space-card__cta:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .space-card__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .space-card__cta {
    width: 100%;
    text-align: center;
  }

  .space-card__object {
    margin-left: 0;
  }
}

/* ---------- Контакты отдела аренды (главная) ---------- */
.section-contact {
  scroll-margin-top: 1rem;
  padding: 2.75rem 1rem 3.5rem;
  background: var(--white);
  border-top: 1px solid var(--border-soft);
}

.section-contact__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "heading map-title"
    "main map";
  gap: 1.35rem 3rem;
  align-items: stretch;
}

.section-contact__heading {
  grid-area: heading;
}

.section-contact__map-title {
  grid-area: map-title;
}

.section-contact__main {
  grid-area: main;
}

.section-contact__map-col {
  grid-area: map;
}

.section-contact__main {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-width: 0;
}

.section-contact__map-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 0;
}

.section-contact__heading,
.section-contact__map-title {
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
  line-height: 1.2;
}

.section-contact__map-frame {
  flex: 1 1 auto;
  min-height: 320px;
  height: 100%;
  aspect-ratio: auto;
}

.section-contact__map-link {
  margin-top: auto;
  flex-shrink: 0;
}

.object-map__frame.section-contact__map-frame {
  aspect-ratio: auto;
}

.section-contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  width: 100%;
}

.section-contact__row dt {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-text);
  margin-bottom: 0.3rem;
}

.section-contact__row dd {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
  color: #1e293b;
}

.section-contact__phone {
  display: inline-block;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--blue-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

.section-contact__phone:hover {
  color: var(--blue-bright);
}

.section-contact__form-block {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: 16px;
  background: linear-gradient(168deg, #f8fbff 0%, #eef4fb 100%);
  border: 1px solid rgba(45, 122, 184, 0.14);
  box-shadow: 0 12px 40px rgba(13, 58, 92, 0.06);
}

.section-contact__form-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 0.4rem;
}

.section-contact__form-lead {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #64748b;
  margin-bottom: 1.25rem;
}

.section-contact__form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section-contact__form .callback-form__field:last-of-type {
  flex: 1;
}

.section-contact__form .callback-form__submit {
  width: auto;
  min-width: 12rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  margin-top: auto;
}

.section-contact__success {
  padding: 1rem 0 0.25rem;
}

.section-contact__success-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-deep);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .section-contact__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "heading"
      "main"
      "map-title"
      "map";
    gap: 1.35rem;
  }

  .section-contact__form-block {
    flex: none;
  }

  .section-contact__form {
    flex: none;
    display: block;
  }

  .section-contact__form .callback-form__field:last-of-type {
    flex: none;
  }

  .section-contact__map-frame {
    flex: none;
    min-height: 280px;
    aspect-ratio: 16 / 9;
  }

  .section-contact__form .callback-form__submit {
    width: 100%;
    margin-top: 0.25rem;
  }
}

/* ---------- Site footer ---------- */
.site-footer {
  margin-top: auto;
  background: linear-gradient(180deg, var(--graphite-mid) 0%, var(--graphite) 100%);
  color: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2.75rem;
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 2rem 3rem;
  align-items: start;
}

.site-footer__title {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--white);
}

.site-footer__details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 2rem;
}

.site-footer__row dt {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.35rem;
}

.site-footer__row dd {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.site-footer__phone {
  display: inline-block;
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__phone:hover {
  color: #7ec8ff;
}

.site-footer__email {
  display: inline-block;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-footer__email:hover {
  color: #7ec8ff;
}

@media (max-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .site-footer__details {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
}
