:root {
  --ink: #12242b;
  --muted: #5e7078;
  --paper: #f5f8f7;
  --surface: #ffffff;
  --line: #dbe6e4;
  --accent: #0f7c8d;
  --accent-dark: #075f6c;
  --warm: #d8b26e;
  --sea: #0d6174;
  --sage: #89a9a3;
  --shadow: 0 22px 70px rgba(18, 36, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.hero {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

.hero__image {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(9, 31, 39, 0.78), rgba(9, 31, 39, 0.2) 58%, rgba(9, 31, 39, 0.5)),
    linear-gradient(0deg, rgba(18, 36, 43, 0.82), transparent 45%);
}

.nav,
.hero__content {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
}

.brand,
.nav__links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.brand__mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 18px 0 0 var(--sage), 36px 0 0 var(--warm);
}

.nav__links a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.hero__content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 104px 0 96px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #c9edf2;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 9vw, 106px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero__content p:not(.eyebrow) {
  max-width: 600px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.hero__actions,
.card-actions,
.checkin__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

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

.button--primary:hover {
  background: var(--accent-dark);
}

.button--ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

.button--link {
  color: var(--accent-dark);
  background: #e4f3f4;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 40px));
  margin: -54px auto 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--line);
}

.intro-band div {
  padding: 28px;
  background: var(--surface);
}

.intro-band span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.intro-band strong {
  font-size: 20px;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 0;
}

.section__header {
  max-width: 740px;
  margin-bottom: 34px;
}

.section__header h2,
.checkin h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.apartment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.apartment-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 42px rgba(32, 42, 39, 0.08);
}

.apartment-card__media {
  aspect-ratio: 16 / 10;
  background: #d7ded7;
}

.apartment-card__media img {
  height: 100%;
  object-fit: cover;
}

.apartment-card__body {
  padding: 28px;
}

.apartment-card__kicker {
  margin-bottom: 8px;
  color: var(--sea);
  font-weight: 900;
  text-transform: uppercase;
}

.apartment-card h3 {
  margin-bottom: 10px;
  font-size: 30px;
}

.feature-list {
  display: grid;
  gap: 8px;
  margin: 22px 0 20px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding-left: 22px;
  position: relative;
  color: var(--muted);
  font-weight: 700;
}

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

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 26px;
}

.mini-gallery img {
  aspect-ratio: 1;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.gallery-section {
  padding-top: 82px;
}

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

.photo-grid figure {
  position: relative;
  min-height: 220px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #d7ded7;
}

.photo-grid__feature {
  grid-column: span 2;
  grid-row: span 2;
}

.photo-grid img {
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.photo-grid figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.checkin {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 36px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 96px auto 0;
  padding: 46px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
}

.checkin p {
  color: rgba(255, 255, 255, 0.78);
}

.checkin__actions {
  justify-content: flex-end;
}

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

.steps article {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.steps span {
  display: block;
  margin-bottom: 28px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.steps h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.steps p,
.apartment-card p {
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 88px auto 0;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 780px;
  }

  .hero__content {
    padding-top: 84px;
  }

  .intro-band,
  .apartment-grid,
  .checkin,
  .steps,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid__feature {
    grid-column: span 1;
    grid-row: span 1;
  }

  .intro-band {
    margin-top: -34px;
  }

  .checkin {
    padding: 30px;
  }

  .checkin__actions {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
  }

  .footer {
    flex-direction: column;
  }
}
