/* Premium layer — LOCUS brand: champagne, gold, espresso */

:root {
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --ui: "DM Sans", "Nunito Sans", sans-serif;
  --header-h: 76px;
  --premium-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: var(--ui);
}

/* ─── Header ─── */
.header {
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
}

.header:not(.is-scrolled) {
  color: #fff;
}

.header:not(.is-scrolled) .logo,
.header:not(.is-scrolled) .nav a,
.header:not(.is-scrolled) .header__phone {
  color: #fff;
}

.header:not(.is-scrolled) .nav a::after {
  background: var(--accent);
}

.header:not(.is-scrolled) .btn-outline {
  border-color: rgba(47, 41, 34, 0.2);
  color: var(--btn-text);
  background: var(--btn-bg);
}

.header:not(.is-scrolled) .btn-outline:hover {
  background: var(--btn-bg-hover);
  border-color: var(--gold-deep);
}

.header:not(.is-scrolled) .burger {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.header.is-scrolled {
  background: rgba(238, 235, 229, 0.96);
  backdrop-filter: blur(20px);
  border-bottom-color: rgba(138, 125, 110, 0.14);
  box-shadow: 0 8px 32px rgba(47, 41, 34, 0.05);
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
}

.header .container {
  width: min(var(--container), calc(100% - 28px));
}

.header.is-scrolled .nav a::after {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}

.header.is-scrolled .logo {
  color: var(--text);
}

.header:not(.is-scrolled) .nav a::after {
  background: linear-gradient(90deg, var(--gold), rgba(255, 255, 255, 0.6));
}

.logo {
  flex-shrink: 0;
  white-space: nowrap;
  gap: 12px;
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header .logo img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.header.is-scrolled .logo img {
  filter: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(12px, 1.6vw, 28px);
  min-width: 0;
}

.nav a {
  white-space: nowrap;
  font-size: clamp(0.68rem, 0.72vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  flex-shrink: 0;
  text-transform: uppercase;
}

.nav a::after {
  height: 1px;
  bottom: -6px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}

.header__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(10px, 1.4vw, 18px);
}

.header__phone {
  white-space: nowrap;
  font-size: clamp(0.82rem, 0.95vw, 0.92rem);
  font-weight: 500;
  opacity: 0.92;
}

.header__actions .btn-outline {
  min-height: 44px;
  padding: 0 22px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.header__actions .btn-primary {
  min-height: 44px;
  padding: 0 clamp(14px, 1.4vw, 22px);
  font-size: clamp(0.62rem, 0.68vw, 0.7rem);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .nav {
    gap: 10px;
  }

  .nav a {
    font-size: 0.66rem;
    letter-spacing: 0.04em;
  }

  .header__phone {
    font-size: 0.82rem;
  }
}

@media (max-width: 900px) {
  .header .container {
    width: min(100%, calc(100% - 32px));
  }

  .header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .header .nav,
  .header .header__phone,
  .header .header__actions .btn-primary {
    display: none;
  }

  .header .burger {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    margin-left: 4px;
  }

  .header__actions {
    gap: 0;
  }

  .logo {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
  }

  .logo img {
    width: 28px;
    height: 28px;
  }

  .header.is-menu-open {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(0, 0, 0, 0.06);
    color: #111;
  }

  .header.is-menu-open .logo,
  .header.is-menu-open .burger {
    color: #111;
  }

  .header.is-menu-open .logo img {
    filter: none;
  }

  .header.is-menu-open .burger {
    border-color: rgba(0, 0, 0, 0.12);
  }
}

/* Mobile menu */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--premium-ease), visibility 0.35s var(--premium-ease);
}

.mobile-menu.is-open {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 24px 32px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}

.mobile-menu a {
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: #111;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: none;
}

.mobile-menu a:last-of-type {
  border-bottom: none;
  margin-top: 8px;
  font-family: var(--ui);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}

.mobile-menu .btn-primary {
  margin-top: 20px;
  width: 100%;
  min-height: 52px;
}

.burger span {
  transition: transform 0.3s var(--premium-ease), opacity 0.3s var(--premium-ease);
}

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

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

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

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 88vh;
  padding-top: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #c9b8a0;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 2;
  width: 1px;
  height: 52px;
  background: linear-gradient(180deg, var(--gold), transparent);
  transform: translateX(-50%);
  opacity: 0.65;
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  height: auto;
  overflow: hidden;
  z-index: 0;
}

.hero__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: none;
  filter: none;
  image-rendering: auto;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 68%, rgba(0, 0, 0, 0.38) 100%);
  pointer-events: none;
}

.hero .container.hero__content {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 28px));
  max-width: var(--container);
  margin-inline: auto;
  margin-top: 0;
  padding: calc(var(--header-h) + 32px) 0 36px;
}

.hero__main {
  max-width: 820px;
  padding: 0;
}

.hero__eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--hero-text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero__eyebrow::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--hero-text), transparent);
}

.hero__title {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.01em;
  color: var(--hero-text);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}

.hero__subtitle {
  margin: 0 0 28px;
  max-width: 480px;
  color: var(--hero-text-soft);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 300;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 0;
}

.hero__actions .btn-primary {
  min-width: 220px;
  box-shadow: 0 12px 40px rgba(184, 148, 79, 0.4);
}

.hero__actions .btn-outline {
  border-color: rgba(47, 41, 34, 0.2);
  color: var(--btn-text);
  background: var(--btn-bg);
}

.hero__actions .btn-outline:hover {
  background: var(--btn-bg-hover);
  border-color: var(--gold-deep);
  color: var(--btn-text);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 32px;
  background: rgba(20, 14, 8, 0.45);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 184, 122, 0.22);
  border-top: 2px solid rgba(212, 184, 122, 0.45);
}

.hero__stat {
  padding: 20px 24px;
  background: transparent;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat:last-child {
  border-right: none;
}

.hero__stat-value {
  display: block;
  margin-bottom: 8px;
  color: var(--hero-stats-text);
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 500;
  line-height: 1;
}

.hero__stat-label {
  display: block;
  color: var(--hero-stats-text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

/* ─── Features premium ─── */
.features-premium {
  padding: var(--section-y) 0;
  background: var(--bg-warm);
  overflow: hidden;
}

.features-premium__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: end;
  margin-bottom: 36px;
}

.features-premium__intro .section-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.05;
}

.features-premium__intro .section-lead {
  margin: 0;
  padding-bottom: 8px;
}

.features-premium__layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  align-items: stretch;
}

.features-premium__visual {
  position: relative;
  min-height: 480px;
  overflow: hidden;
}

.features-premium__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features-premium__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.25));
}

.features-premium__visual-caption {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 1;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.features-premium__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(138, 125, 110, 0.16);
}

.feature-premium {
  padding: 22px 20px;
  background: rgba(243, 241, 236, 0.92);
  transition: background 0.4s var(--premium-ease);
}

.feature-premium:hover {
  background: linear-gradient(135deg, rgba(243, 241, 236, 0.95), rgba(207, 196, 183, 0.32));
}

.feature-premium__num {
  display: block;
  margin-bottom: 12px;
  color: rgba(0, 0, 0, 0.28);
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
}

.feature-premium h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

.feature-premium p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.features-premium__about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.about-premium {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #fff;
}

.about-premium img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--premium-ease);
}

.about-premium:hover img {
  transform: scale(1.04);
}

.about-premium::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.75));
}

.about-premium__content {
  position: relative;
  z-index: 1;
}

.about-premium__label {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.about-premium h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.15;
}

.about-premium p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 420px;
}

/* ─── Reviews premium ─── */
.reviews-premium {
  position: relative;
  padding: var(--section-y) 0;
  background: var(--bg-dark);
  color: #fff;
  overflow: hidden;
}

.reviews-premium__bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
}

.reviews-premium__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reviews-premium__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #1e1812 0%, rgba(30, 24, 16, 0.9) 40%, #1e1812 100%),
    linear-gradient(0deg, rgba(184, 170, 150, 0.06), rgba(184, 170, 150, 0.06));
}

.reviews-premium .container {
  position: relative;
  z-index: 1;
}

.reviews-premium__head {
  max-width: 640px;
  margin-bottom: 32px;
}

.reviews-premium__head .section-label {
  color: var(--gold);
}

.reviews-premium__head .section-label::before {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}

.reviews-premium__head .section-title {
  color: #fff;
  font-family: var(--display);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 400;
}

.reviews-premium__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.quote-premium {
  padding: 28px 24px;
  border: 1px solid rgba(207, 196, 183, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.quote-premium__mark {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 3rem;
  line-height: 0.6;
}

.quote-premium__text {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.65;
}

.quote-premium__author {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.residents-premium {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.residents-premium__label {
  display: block;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.residents-premium__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px 32px;
}

.residents-premium__grid span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.residents-premium__grid span:hover {
  color: var(--accent);
}

.header:not(.is-scrolled) .nav a:hover,
.header:not(.is-scrolled) .nav a.is-active {
  color: var(--accent);
}

.header:not(.is-scrolled) .header__phone {
  opacity: 0.95;
}

.header {
  transition: background 0.5s var(--premium-ease), border-color 0.5s var(--premium-ease), box-shadow 0.5s var(--premium-ease), color 0.5s var(--premium-ease);
}

/* Footer — override header logo styles */
.footer .logo {
  color: #ffffff;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.14em;
}

.footer .logo img {
  filter: brightness(0) invert(1);
  opacity: 1;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.65);
}

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

.footer__copy {
  color: rgba(255, 255, 255, 0.45);
}

/* ─── Benefits premium (Сервис) ─── */
.benefits-premium {
  position: relative;
  padding: var(--section-y) 0;
  background: var(--bg-soft);
  overflow: hidden;
}

.benefits-premium::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(42%, 520px);
  height: 100%;
  z-index: 0;
  opacity: 0.35;
  background: url("../assets/images/about-locus-reception.jpg") center/cover no-repeat;
  mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
  pointer-events: none;
}

.benefits-premium > .container {
  position: relative;
  z-index: 1;
}

.benefits-premium__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.benefits-premium__title {
  margin: 0;
  max-width: 440px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.1;
  text-align: right;
}

.benefits-premium__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.benefit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 26px 22px 28px;
  background: var(--bg-card);
  border: 1px solid rgba(26, 22, 18, 0.08);
  overflow: hidden;
  transition: transform 0.5s var(--premium-ease), box-shadow 0.5s var(--premium-ease), border-color 0.5s var(--premium-ease);
}

.benefit-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--premium-ease);
}

.benefit-card:hover {
  transform: translateY(-6px);
  border-color: rgba(184, 170, 150, 0.45);
  box-shadow: var(--shadow-gold);
}

.benefit-card:hover::before {
  transform: scaleX(1);
}

.benefit-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.benefit-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(26, 22, 18, 0.1);
  background: rgba(245, 239, 230, 0.8);
  color: #1a1612;
  transition: background 0.4s var(--premium-ease), border-color 0.4s var(--premium-ease), color 0.4s var(--premium-ease);
}

.benefit-card__icon svg {
  width: 24px;
  height: 24px;
}

.benefit-card:hover .benefit-card__icon {
  background: linear-gradient(135deg, var(--gold), var(--accent));
  border-color: var(--accent-strong);
  color: #1e1812;
}

.benefit-card__num {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  color: rgba(138, 125, 110, 0.3);
  transition: color 0.4s var(--premium-ease);
}

.benefit-card:hover .benefit-card__num {
  color: rgba(184, 170, 150, 0.65);
}

.benefit-card h3 {
  margin: 0 0 12px;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
}

.benefit-card p {
  margin: 0;
  flex: 1;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.benefit-card__line {
  display: block;
  width: 32px;
  height: 1px;
  margin-top: 28px;
  background: rgba(0, 0, 0, 0.12);
  transition: width 0.5s var(--premium-ease), background 0.5s var(--premium-ease);
}

.benefit-card:hover .benefit-card__line {
  width: 56px;
  background: var(--accent);
}

/* BC cards premium touch */
.bc-section {
  padding: 48px 0 52px;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(212, 184, 122, 0.1), transparent 50%),
    var(--bg);
}

.bc-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.bc-section__title {
  margin: 0;
  max-width: 520px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 400;
  line-height: 1.1;
  text-align: right;
}

.bc-card {
  border: none;
  box-shadow: 0 12px 40px rgba(42, 34, 24, 0.08);
}

.bc-card::before {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), transparent);
}

.bc-card__body {
  padding: 24px;
}

.bc-card__title {
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--text);
}

.bc-card__list {
  border-top-color: rgba(138, 125, 110, 0.18);
}

.bc-card__list li {
  border-bottom-color: rgba(138, 125, 110, 0.12);
}

.bc-card__lead {
  margin: 8px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.bc-card__desc {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(138, 125, 110, 0.14);
}

.bc-card__desc p {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.bc-card__desc p:last-child {
  margin-bottom: 0;
}

.bc-card__desc strong {
  color: var(--text);
  font-weight: 600;
}

/* BC card video */
.bc-card__video {
  display: block;
}

/* Video modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--premium-ease), visibility 0.4s var(--premium-ease);
}

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.video-modal__frame {
  width: min(1100px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

.video-modal__frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 1;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.video-modal__close:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.55);
}

/* Gallery touch */
.gallery-item {
  border-radius: 0;
}

/* Buttons refinement */
.btn {
  letter-spacing: 0.12em;
}

.section-label::before {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}

@media (max-width: 1100px) {
  .features-premium__intro,
  .features-premium__layout,
  .features-premium__about,
  .reviews-premium__grid {
    grid-template-columns: 1fr;
  }

  .features-premium__visual {
    min-height: 420px;
  }

  .residents-premium__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .hero__stat {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero__stat:last-child {
    border-bottom: none;
  }

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

  .bc-section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .bc-section__title {
    text-align: left;
  }

  .benefits-premium__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .benefits-premium__title {
    text-align: left;
  }

  .benefits-premium__grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 640px) {
  .hero__main {
    padding-left: 0;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero::after {
    display: none;
  }

  .benefits-premium__grid {
    grid-template-columns: 1fr;
  }

  .benefits-premium::before {
    display: none;
  }
}

/* Office detail page */
.page-office .header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(0, 0, 0, 0.06);
  color: #111;
}

.page-office .logo,
.page-office .nav a,
.page-office .header__phone {
  color: #111;
}

.office-page {
  padding-top: var(--header-h);
}

.office-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 28px 0 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.office-breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.office-breadcrumb a:hover {
  color: #111;
}

.office-detail__hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: start;
  padding: 24px 0 72px;
}

.office-detail__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f3f3f3;
}

.office-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.office-detail__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 14px;
  background: var(--accent);
  color: #111;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.office-detail__title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
}

.office-detail__address {
  margin: 0 0 20px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.office-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.office-detail__price {
  margin: 0 0 20px;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
}

.office-detail__price small {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
}

.office-detail__desc {
  margin: 0 0 24px;
  color: var(--text-soft);
  line-height: 1.7;
}

.office-detail__desc p {
  margin: 0 0 16px;
}

.office-detail__desc ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.office-detail__desc li {
  margin-bottom: 6px;
}

.office-detail__features {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.office-detail__features li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--text-soft);
}

.office-detail__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 1px;
  background: var(--accent-strong);
}

.office-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.office-gallery-section {
  padding: 80px 0;
}

.gallery-more {
  margin-top: 24px;
  text-align: center;
}

/* ─── Main gallery by location rows ─── */
.gallery-locations {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.gallery-row__heading {
  margin: 0 0 14px;
}

.gallery-row__title {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.gallery-row__address {
  margin: 8px 0 0;
  color: var(--gold-deep);
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-row__label {
  margin: 0 0 10px;
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.gallery-row__grid {
  display: grid;
  gap: 10px;
}

.gallery-row__grid--akadem {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-row__grid--kommunist {
  grid-template-columns: repeat(5, 1fr);
}

.gallery-row__grid--kalinin {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-item--row {
  grid-column: span 1;
  aspect-ratio: 4 / 3;
  min-height: 0;
}

@media (max-width: 1100px) {
  .gallery-row__grid--kommunist {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-row__grid--akadem {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-row__grid--kommunist {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-row__grid--kalinin {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .gallery-row__grid--akadem,
  .gallery-row__grid--kommunist,
  .gallery-row__grid--kalinin {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-page {
  padding-top: var(--header-h);
}

.gallery-page-sections {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.gallery-page-block .gallery-row__heading {
  margin-bottom: 20px;
}

.gallery-page-block .gallery-row__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.gallery-page__section {
  padding-top: 32px;
}

.page-gallery .office-gallery-section .section-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.office-video-section {
  padding: 0 0 80px;
}

.office-video-section .section-head {
  margin-bottom: 32px;
}

.office-video {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #111;
}

.office-video video {
  display: block;
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  background: #111;
}

.office-video__fullscreen {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.92);
}

.office-gallery-section {
  padding: 72px 0 120px;
  background: var(--bg-soft);
}

.office-gallery-section .section-head {
  margin-bottom: 40px;
}

.office-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(140px, 18vw);
  gap: 12px;
}

.office-gallery .office-gallery__item {
  position: relative;
  grid-column: span 3;
  padding: 0;
  border: none;
  overflow: hidden;
  cursor: zoom-in;
  background: #e8e8e8;
}

.office-gallery .office-gallery__item--hero {
  grid-column: span 6;
  grid-row: span 2;
}

.office-gallery .office-gallery__item--wide {
  grid-column: span 6;
}

.office-gallery .office-gallery__item--tall {
  grid-row: span 2;
}

.office-gallery .office-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--premium-ease), filter 0.7s var(--premium-ease);
}

.office-gallery .office-gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.35));
  opacity: 0;
  transition: opacity 0.35s var(--premium-ease);
}

.office-gallery .office-gallery__item:hover img {
  transform: scale(1.06);
  filter: brightness(0.92);
}

.office-gallery .office-gallery__item:hover::after {
  opacity: 1;
}

.office-gallery__zoom {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--premium-ease), transform 0.35s var(--premium-ease);
}

.office-gallery .office-gallery__item:hover .office-gallery__zoom {
  opacity: 1;
  transform: translateY(0);
}

.office-not-found {
  padding: 120px 0;
  text-align: center;
}

@media (max-width: 900px) {
  .office-detail__hero {
    grid-template-columns: 1fr;
  }

  .office-gallery {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(120px, 28vw);
  }

  .office-gallery .office-gallery__item {
    grid-column: span 3;
  }

  .office-gallery .office-gallery__item--hero {
    grid-column: span 6;
    grid-row: span 2;
  }

  .office-gallery .office-gallery__item--wide {
    grid-column: span 6;
  }

  .office-gallery .office-gallery__item--tall {
    grid-row: span 2;
  }
}

@media (max-width: 640px) {
  .office-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(110px, 42vw);
    gap: 8px;
  }

  .office-gallery .office-gallery__item,
  .office-gallery .office-gallery__item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .office-gallery .office-gallery__item--hero {
    grid-column: span 2;
    grid-row: span 2;
  }

  .office-gallery .office-gallery__item--wide {
    grid-column: span 2;
    grid-row: span 1;
  }

  .office-detail__actions {
    flex-direction: column;
  }

  .office-detail__actions .btn {
    width: 100%;
  }
}
