:root {
  --paper: #f7f5ef;
  --surface: #ffffff;
  --surface-2: #ebe7dc;
  --ink: #232522;
  --muted: #656b63;
  --line: #d7d1c5;
  --forest: #315c45;
  --forest-2: #153b2b;
  --clay: #9f5140;
  --gold: #c59a4b;
  --sky: #dceaf1;
  --shadow: 0 18px 48px rgba(31, 35, 29, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

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

button,
input {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-pad {
  padding: 72px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px max(16px, calc((100vw - 1180px) / 2));
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid rgba(215, 209, 197, 0.78);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 44%, rgba(255, 255, 255, 0.55) 45% 55%, transparent 56%),
    linear-gradient(135deg, var(--forest), var(--clay));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: #4c514b;
  font-size: 14px;
}

.nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  border-bottom-color: var(--clay);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  flex-wrap: wrap;
  cursor: pointer;
}

.header-action {
  background: var(--forest);
  color: #fff;
  font-size: 14px;
}

.hero {
  padding-top: 56px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  font-weight: 500;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 500;
}

h3 {
  font-size: 20px;
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: #444941;
  font-size: 20px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  max-width: 780px;
  margin-top: 28px;
}

.hero-facts span {
  min-height: 76px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
}

.hero-facts b {
  display: block;
  color: var(--ink);
  font-size: 19px;
}

.deal-panel,
.legal-panel,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.deal-panel {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.panel-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.price {
  display: block;
  margin-top: 4px;
  font-size: 34px;
  line-height: 1;
}

.deal-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.deal-list div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.deal-list dt {
  color: var(--muted);
  font-size: 13px;
}

.deal-list dd {
  margin: 0;
  font-weight: 700;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.button.primary {
  background: var(--forest);
  color: #fff;
}

.button.secondary {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest-2);
}

.button.telegram {
  background: #2481cc;
  color: #fff;
}

.hero-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 0.65fr));
  grid-template-rows: 210px 210px;
  gap: 10px;
  margin-top: 38px;
}

.hero-media-grid figure {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #d8d2c4;
}

.hero-media-grid .media-large {
  grid-row: span 2;
}

.hero-media-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media-grid figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  background: rgba(20, 24, 21, 0.72);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
}

.summary-strip {
  background: var(--forest-2);
  color: #fff;
}

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

.strip-grid div {
  min-height: 116px;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.06);
}

.strip-grid b,
.strip-grid span {
  display: block;
}

.strip-grid span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
}

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

.head-note {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.filter-button.is-active {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.12 / 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: #ddd5ca;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.gallery-item span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 6px 8px;
  background: rgba(20, 24, 21, 0.72);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  text-align: left;
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.section-tint {
  background: var(--surface-2);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 48px;
  align-items: start;
}

.section-copy p {
  margin: 18px 0 0;
  color: #4f544d;
  font-size: 17px;
}

.spec-table {
  display: grid;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec-table div {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) 1fr;
  gap: 16px;
  min-height: 62px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.spec-table div:last-child {
  border-bottom: 0;
}

.spec-table span {
  color: var(--muted);
}

.floor-grid,
.systems-grid {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.floor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.floor-grid article,
.systems-grid article {
  min-height: 210px;
  padding: 24px;
  border-radius: var(--radius);
}

.floor-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
}

.floor-grid span,
.systems-grid span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.floor-grid p,
.systems-grid p {
  margin: 12px 0 0;
  color: var(--muted);
}

.media-section figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.media-section img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.chip-list span {
  padding: 8px 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #454b43;
  font-size: 14px;
}

.section-dark {
  background: var(--forest-2);
  color: #fff;
}

.section-dark .eyebrow {
  color: var(--gold);
}

.section-dark h2 {
  max-width: 720px;
}

.systems-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.systems-grid article {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.systems-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.leisure-layout,
.location-layout,
.deal-layout,
.contact-layout {
  display: grid;
  gap: 44px;
  align-items: center;
}

.leisure-layout {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.leisure-media {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

.leisure-media img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
}

.leisure-media img:nth-child(2) {
  height: 360px;
  align-self: end;
}

.location-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.location-map {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sky);
}

.location-map img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.map-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  max-width: calc(100% - 40px);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-badge strong,
.map-badge span {
  display: block;
}

.map-badge span {
  color: var(--muted);
}

.plain-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  padding-left: 22px;
  color: #4f544d;
}

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

.deal-layout {
  grid-template-columns: minmax(0, 1fr) 390px;
}

.legal-panel {
  padding: 26px;
}

.legal-panel h3 {
  margin-top: 6px;
  font-size: 28px;
}

.legal-panel ul {
  display: grid;
  gap: 11px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.legal-panel li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.contact-section {
  padding: 72px 0;
  background: #22241f;
  color: #fff;
}

.contact-layout {
  grid-template-columns: minmax(0, 1fr) 390px;
}

.contact-layout p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.74);
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: #fff;
  color: var(--ink);
}

.lead-form {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.lead-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: 2px solid rgba(49, 92, 69, 0.22);
  border-color: var(--forest);
}

.contact-note {
  color: var(--muted);
  font-size: 13px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(12, 14, 12, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  width: min(1120px, 100%);
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: #111;
}

.lightbox figcaption {
  margin-top: 12px;
  color: #fff;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #161815;
  cursor: pointer;
}

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 28px;
}

.lightbox-nav {
  top: 50%;
  width: 48px;
  height: 64px;
  font-size: 38px;
  transform: translateY(-50%);
}

.lightbox-nav.prev {
  left: 18px;
}

.lightbox-nav.next {
  right: 18px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero-layout,
  .two-col,
  .leisure-layout,
  .location-layout,
  .deal-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-facts,
  .strip-grid,
  .floor-grid,
  .systems-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-media-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 320px 180px 180px;
  }

  .hero-media-grid .media-large {
    grid-column: span 2;
    grid-row: span 1;
  }

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

  .leisure-media img,
  .leisure-media img:nth-child(2),
  .media-section img {
    height: 360px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .section-pad {
    padding: 52px 0;
  }

  .site-header {
    min-height: 64px;
    padding-inline: 12px;
  }

  .brand {
    min-width: 0;
  }

  .header-action {
    min-height: 40px;
    padding: 9px 12px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-layout {
    gap: 24px;
  }

  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero-facts,
  .strip-grid,
  .floor-grid,
  .systems-grid,
  .gallery-grid,
  .leisure-media {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-media-grid {
    order: -1;
    grid-template-columns: 1fr;
    grid-template-rows: 270px;
    margin-top: 0;
    margin-bottom: 26px;
  }

  .hero-media-grid .media-large {
    grid-column: auto;
  }

  .hero-media-grid figure:not(.media-large) {
    display: none;
  }

  .deal-list div,
  .spec-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .location-map,
  .location-map img {
    min-height: 320px;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }
}
