@font-face {
  font-family: "Circe";
  src: local("Circe"), local("Circe Regular");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Circe";
  src: local("Circe Light"), local("Circe-Light");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Circe";
  src: local("Circe Bold"), local("Circe-Bold");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #e6e2da;
  --bg-soft: #e2ded3;
  --bg-gray: #d8d3cb;
  --bg-beige: #ddd8cf;
  --bg-beige-light: #eeebe5;
  --bg-warm: #ebe8e2;
  --bg-dark: #1e1812;
  --bg-dark-warm: #2f2820;
  --bg-elevated: #ded9d1;
  --bg-card: #f3f1ec;
  --bg-card-hover: #e9e5dd;
  --text: #2f2922;
  --text-soft: rgba(47, 41, 34, 0.76);
  --text-muted: rgba(47, 41, 34, 0.54);
  --text-on-dark: #f0ece6;
  --ink: #2f2922;
  --accent: #b8aa96;
  --accent-light: #cfc4b7;
  --accent-soft: rgba(184, 170, 150, 0.34);
  --accent-line: rgba(138, 125, 110, 0.22);
  --accent-strong: #968874;
  --gold: #cfc4b7;
  --gold-deep: #8a7d6e;
  --btn-bg: #ddd8cf;
  --btn-bg-hover: color-mix(in srgb, var(--btn-bg) 88%, #1e1812 12%);
  --btn-text: #1e1812;
  --hero-text: #ffffff;
  --hero-text-soft: color-mix(in srgb, var(--hero-text) 82%, transparent);
  --hero-text-muted: color-mix(in srgb, var(--hero-text) 65%, transparent);
  --hero-stats-text: #ffffff;
  --hero-stats-text-muted: color-mix(in srgb, var(--hero-stats-text) 65%, transparent);
  --line: rgba(47, 41, 34, 0.08);
  --shadow: 0 20px 50px rgba(47, 41, 34, 0.07);
  --shadow-soft: 0 8px 30px rgba(47, 41, 34, 0.05);
  --shadow-gold: 0 8px 28px rgba(138, 125, 110, 0.18);
  --radius: 0;
  --radius-lg: 0;
  --header-h: 76px;
  --container: 1400px;
  --section-y: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Circe", "Nunito Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(207, 196, 183, 0.16), transparent 55%),
    linear-gradient(180deg, #eeebe5 0%, var(--bg) 45%, #e2ded3 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(184, 170, 150, 0.3);
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

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

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section {
  position: relative;
  padding: var(--section-y) 0;
}

.section--beige {
  background: var(--bg-beige);
  color: var(--text);
}

.section--gray {
  background: var(--bg-gray);
  color: var(--text);
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section--dark .section-label,
.section--dark .section-title,
.section--dark .section-lead,
.section--dark h3,
.section--dark p {
  color: var(--text-on-dark);
}

.section--dark .section-label {
  color: var(--accent);
}

.section--dark .section-lead {
  color: rgba(255, 255, 255, 0.72);
}

.section--soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: end;
}

.section-head--split .section-title {
  margin-bottom: 0;
}

.section-head--split .section-lead {
  margin: 0;
  padding-bottom: 2px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

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

.section-title {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.section-lead {
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 300;
  line-height: 1.55;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 34px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: var(--btn-bg-hover);
  box-shadow: 0 10px 32px rgba(184, 148, 79, 0.38);
}

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

.btn-outline:hover {
  background: var(--btn-bg-hover);
  border-color: var(--accent-strong);
  color: var(--btn-text);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--btn-text);
  background: var(--btn-bg);
}

.btn-ghost:hover {
  background: var(--btn-bg-hover);
  border-color: var(--accent-line);
  color: var(--btn-text);
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg-beige);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav a {
  position: relative;
  color: #000000;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  transition: color 0.3s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  background: #000000;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: #000000;
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

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

.header__phone {
  color: #000000;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  padding: 32px 24px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mobile-menu a {
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Hero */
.hero {
  position: relative;
  padding-top: var(--header-h);
  background: #ffffff;
}

.hero__bg {
  position: relative;
  height: min(72vh, 760px);
  overflow: hidden;
}

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

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.55) 72%, #ffffff 100%);
}

.hero__bg-glow {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: block;
  max-width: none;
  min-height: auto;
  padding: 56px 0 0;
  margin-top: -120px;
}

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

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: #000000;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: none;
}

.hero__eyebrow::before {
  display: none;
}

.hero__title {
  margin: 0 0 24px;
  color: #000000;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero__title span {
  display: inline;
  color: #000000;
  font-weight: 600;
}

.hero__subtitle {
  margin: 0 0 36px;
  max-width: 620px;
  color: rgba(0, 0, 0, 0.72);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 300;
  line-height: 1.5;
}

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

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 48px;
  background: #ffffff;
  border-top: 4px solid #000000;
}

.hero__stat {
  padding: 28px 24px;
  background: #ffffff;
  border-right: 1px solid var(--line);
}

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

.hero__stat-value {
  display: block;
  margin-bottom: 8px;
  color: var(--hero-stats-text);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1;
}

.hero__stat-label {
  display: block;
  color: var(--hero-stats-text-muted);
  font-size: 15px;
  line-height: 1.45;
}

.hero__brand {
  display: none;
}

.hero__scroll {
  display: none;
}

/* BC cards */
.benefits-section {
  padding: 0 0 72px;
}

.benefits-section .benefits-strip {
  border-top: none;
}

.bc-section {
  padding: 48px 0 52px;
  background: var(--bg);
}

.bc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.bc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.bc-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.bc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(138, 125, 110, 0.25);
  box-shadow: var(--shadow-gold);
}

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

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

.bc-card__media img,
.bc-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.bc-card:hover .bc-card__media img,
.bc-card:hover .bc-card__media video {
  transform: scale(1.06);
}

.bc-card__media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.18) 100%);
}

.bc-card__play {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: none;
  background: none;
  color: #ffffff;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.bc-card__play:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.bc-card__play-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
}

.bc-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px 28px 32px;
}

.bc-card__label {
  margin: 0 0 10px;
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.bc-card__title {
  margin: 0 0 8px;
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.1;
}

.bc-card__address {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 15px;
}

.bc-card__list {
  margin: 0 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.bc-card__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 15px;
}

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

.benefits-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 0;
  background: var(--bg-beige);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.benefit-item {
  padding: 36px 28px;
  background: var(--bg-beige);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.35s var(--ease);
}

.benefit-item:last-child {
  border-right: none;
}

.benefit-item:hover {
  background: #ebe0d2;
}

.benefit-item__num {
  display: block;
  margin-bottom: 18px;
  color: rgba(0, 0, 0, 0.45);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.benefit-item h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.benefit-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Features */
.features {
  background: #ffffff;
}

.features-carousel {
  position: relative;
}

.features-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 8px 2px 18px;
}

.features-track::-webkit-scrollbar {
  display: none;
}

.feature-card {
  scroll-snap-align: start;
  min-height: 280px;
  padding: 30px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.feature-card:hover {
  border-color: rgba(0, 0, 0, 0.18);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border: 1px solid #000000;
  color: #000000;
  background: var(--bg-beige);
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.features-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.icon-btn {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.35s var(--ease);
}

.icon-btn:hover {
  border-color: #000000;
  color: #000000;
  background: var(--bg-beige);
}

.features-grid {
  display: grid;
  gap: 22px;
  margin-top: 72px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: stretch;
}

.feature-row:nth-child(even) .feature-row__media {
  order: 2;
}

.feature-row__media {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.feature-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-row__media::after {
  display: none;
}

.feature-row__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  border: 1px solid var(--line);
  background: #f8f8f8;
}

.feature-row__content h3 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.15;
}

.feature-row__content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 180px;
  gap: 12px;
}

.gallery-item {
  position: relative;
  grid-column: span 3;
  border: 1px solid rgba(138, 125, 110, 0.12);
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-gray);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

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

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(30, 22, 14, 0.35));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.gallery-item:hover {
  border-color: rgba(184, 170, 150, 0.55);
  box-shadow: var(--shadow-gold);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.94) sepia(0.08);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item--wide { grid-column: span 6; }
.gallery-item--tall { grid-row: span 2; }
.gallery-item--hero { grid-column: span 6; grid-row: span 2; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(8px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1180px, 100%);
  max-height: 90vh;
  border: 1px solid var(--line);
}

.lightbox__close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Offices */
.offices {
  background: var(--bg-warm);
}

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

.filter-btn {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}

.filter-btn.is-active,
.filter-btn:hover {
  border-color: var(--gold-deep);
  color: var(--btn-text);
  background: var(--btn-bg-hover);
}

.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.office-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(138, 125, 110, 0.14);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.office-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  z-index: 2;
}

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

.office-card:hover {
  transform: translateY(-4px);
  border-color: rgba(138, 125, 110, 0.28);
  box-shadow: var(--shadow-gold);
}

.office-card.is-hidden {
  display: none;
}

.office-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.office-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.office-card:hover .office-card__image img {
  transform: scale(1.05);
}

.office-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 12px;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  color: #1e1812;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(184, 148, 79, 0.35);
}

.office-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.office-card__title {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
}

.office-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tag {
  padding: 6px 10px;
  border: 1px solid rgba(138, 125, 110, 0.22);
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(252, 248, 242, 0.9);
}

.office-card__price {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
}

.office-card__price small {
  display: block;
  margin-top: 4px;
  color: var(--gold-deep);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.office-card .btn {
  margin-top: auto;
  width: 100%;
}

.office-card__link {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.office-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 24px 24px;
}

.office-card__actions .btn {
  margin-top: 0;
  min-height: 48px;
  padding-inline: 12px;
  font-size: 11px;
}

.offices-cta {
  margin-top: 32px;
  padding: 36px 28px;
  border: 1px solid rgba(138, 125, 110, 0.22);
  background: linear-gradient(135deg, rgba(232, 212, 176, 0.55), rgba(207, 196, 183, 0.35));
  text-align: center;
}

.offices-cta h3 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
}

.offices-cta p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Reviews */
.reviews {
  background: var(--bg-gray);
}

.reviews-slider {
  position: relative;
}

.reviews-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(340px, 1fr);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.reviews-track::-webkit-scrollbar {
  display: none;
}

.review-card {
  scroll-snap-align: start;
  min-height: 260px;
  padding: 34px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.review-card__quote {
  margin-bottom: 24px;
  color: #000000;
  font-size: 3rem;
  line-height: 1;
}

.review-card__text {
  margin: 0 0 28px;
  color: #000000;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.7;
}

.review-card__author {
  color: rgba(0, 0, 0, 0.62);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.residents {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
}

.resident {
  padding: 10px 16px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.35s var(--ease);
}

.resident:hover {
  border-color: #000000;
  color: #000000;
  background: var(--bg-beige);
}

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
}

.contact-card,
.contact-form {
  padding: 28px 32px;
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.contact-card h3,
.contact-form h3 {
  margin: 0 0 8px;
  font-size: 1.8rem;
  font-weight: 600;
}

.contact-card__lead {
  margin: 0 0 20px;
  color: var(--text-muted);
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list strong {
  display: block;
  margin-bottom: 8px;
  color: #000000;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-list a,
.contact-list span {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 400;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(138, 125, 110, 0.2);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 170, 150, 0.15);
}

.form-group textarea {
  min-height: 132px;
  resize: vertical;
}

.form-note {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--bg-beige);
  color: #000000;
  font-size: 14px;
}

.form-success.is-visible {
  display: block;
}

.form-error {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(154, 59, 50, 0.25);
  background: #f8ecea;
  color: #7a2e26;
  font-size: 14px;
}

.form-error.is-visible {
  display: block;
}

/* Footer */
.footer {
  padding: 44px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, #2a2218 0%, var(--bg-dark) 100%);
  color: var(--text-on-dark);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), var(--gold), var(--gold-deep), transparent);
}

.footer .logo,
.footer__links a,
.footer__copy {
  color: var(--text-on-dark);
}

.footer .logo {
  color: #ffffff;
}

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

.footer__links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}

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

.footer__copy {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.socials {
  display: flex;
  gap: 12px;
  justify-self: end;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  transition: all 0.35s var(--ease);
}

.footer .socials a {
  border-color: rgba(255, 255, 255, 0.18);
}

.footer .socials a:hover {
  border-color: var(--accent);
  background: rgba(223, 205, 186, 0.12);
}

.footer .socials img {
  filter: invert(1);
}

.socials img {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(138, 125, 110, 0.3);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--gold-deep);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease), transform 0.35s var(--ease);
}

.back-to-top:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--gold), var(--accent));
  color: #1e1812;
  box-shadow: var(--shadow-gold);
}

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

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

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

.modal__dialog {
  position: relative;
  width: min(540px, 100%);
  padding: 40px;
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}

.modal__title {
  margin: 0 0 10px;
  font-size: 1.8rem;
  font-weight: 600;
}

.modal__lead {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Cookie */
.cookie {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.cookie.is-hidden {
  display: none;
}

.cookie p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero__content,
  .contacts-grid,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .hero__brand {
    display: none;
  }

  .bc-grid,
  .offices-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .gallery-item,
  .gallery-item--wide,
  .gallery-item--hero {
    grid-column: span 3;
  }
}

@media (max-width: 900px) {
  .section-head--split {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .burger {
    display: block;
  }

  .bc-grid,
  .offices-grid,
  .benefits-strip {
    grid-template-columns: 1fr;
  }

  .feature-row:nth-child(even) .feature-row__media {
    order: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .gallery-item,
  .gallery-item--wide,
  .gallery-item--hero,
  .gallery-item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .section {
    padding: 88px 0;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__copy {
    justify-self: center;
  }

  .socials {
    justify-content: center;
  }
}

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

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn,
  .offices-cta .btn {
    width: 100%;
  }

  .offices-cta {
    padding: 36px 24px;
  }

  .office-card__actions {
    grid-template-columns: 1fr;
  }

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