:root {
  --ink: #0d0d0d;
  --muted: #777;
  --line: #e5dfd7;
  --soft: #fbf1e4;
  --soft-2: #fff8ef;
  --accent: #ff6b32;
  --bg: #fffdfb;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  padding: 26px 0 58px;
}

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

.logo {
  flex: 0 0 auto;
  font-size: 30px;
  font-weight: 800;
  line-height: .9;
}

.logo span {
  display: block;
  color: var(--accent);
  font-size: 26px;
}

.nav {
  display: flex;
  min-height: 50px;
  overflow: hidden;
  background: var(--soft);
  border-radius: 999px;
}

.nav a {
  display: grid;
  place-items: center;
  min-width: 118px;
  padding: 0 20px;
  border-right: 1px solid rgba(0, 0, 0, .07);
  font-size: 15px;
  font-weight: 700;
}

.nav a:last-child {
  border-right: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: transparent;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #242424;
}

.hero {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  border-radius: 6px;
  background: #222;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .68), rgba(0, 0, 0, .2) 48%, rgba(0, 0, 0, .5));
}

.hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-content {
  min-height: 370px;
  display: grid;
  grid-template-columns: 1fr 280px auto;
  align-items: end;
  gap: 44px;
  padding: 56px 48px;
  color: #fff;
}

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

h1 {
  max-width: 650px;
  margin-bottom: 0;
  font-size: clamp(40px, 5.2vw, 66px);
  line-height: 1.05;
  font-weight: 500;
}

.hero p {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
}

.round-link {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 2px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 28px;
  transition: transform .18s ease, background .18s ease;
}

.round-link:hover {
  transform: translateX(4px);
  background: #ff7945;
}

.section {
  margin-top: 118px;
}

.section + .section {
  margin-top: 128px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-head-row {
  max-width: none;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.08;
  font-weight: 500;
}

.section-head p,
.about-copy p,
.promo p {
  max-width: 620px;
  color: #4d4d4d;
  font-size: 17px;
  line-height: 1.5;
}

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

.property-card {
  display: block;
  transition: transform .18s ease;
}

.property-card:hover {
  transform: translateY(-4px);
}

.property-photo {
  position: relative;
  aspect-ratio: 1.42 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: #ddd;
}

.property-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0));
}

.property-photo img {
  transition: transform .32s ease;
}

.property-card:hover img,
.location-card:hover img {
  transform: scale(1.04);
}

.property-photo span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.property-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.property-meta strong {
  flex: 0 0 auto;
  color: var(--ink);
}

.property-card h3 {
  margin: 10px 0 0;
  font-size: 17px;
  line-height: 1.35;
}

.promo {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 58px;
  align-items: center;
  padding: 48px 46px;
  border-radius: 6px;
  background: var(--soft);
}

.promo p {
  margin-bottom: 34px;
}

.promo-image {
  aspect-ratio: 1.36 / 1;
  overflow: hidden;
  border-radius: 4px;
}

.about {
  padding: 52px 0 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-copy {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 70px;
  margin-bottom: 58px;
}

.about h2 {
  max-width: 680px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.18;
}

.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.numbers strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1;
  font-weight: 400;
}

.numbers span {
  display: block;
  max-width: 190px;
  font-size: 15px;
  line-height: 1.38;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.location-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(27, 20, 14, .04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.location-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 107, 50, .45);
  box-shadow: 0 18px 42px rgba(27, 20, 14, .1);
}

.location-photo {
  aspect-ratio: 1.18 / 1;
  overflow: hidden;
  background: #ddd;
}

.location-photo img {
  transition: transform .32s ease;
}

.location-content {
  padding: 20px 20px 22px;
}

.location-content h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.location-content p {
  margin-bottom: 16px;
  color: #4d4d4d;
  font-size: 14px;
  line-height: 1.45;
}

.location-content ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #2d2d2d;
  font-size: 13px;
  line-height: 1.3;
}

.location-content li {
  position: relative;
  padding-left: 16px;
}

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

.advantages {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 58px;
  padding: 58px 48px;
  border-radius: 6px;
  background: var(--soft);
}

.adv-list {
  display: grid;
  gap: 30px;
}

.adv-item {
  display: grid;
  grid-template-columns: 1fr 74px;
  gap: 26px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.adv-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.adv-item h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.adv-item p {
  margin-bottom: 0;
  color: #333;
  line-height: 1.48;
}

.icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  justify-self: end;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 28px;
}

.collections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.collection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  gap: 20px;
  padding: 24px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.collection:nth-child(2n) {
  border-right: 0;
}

.collection:nth-last-child(-n+2) {
  border-bottom: 0;
}

.collection strong {
  display: block;
  margin-bottom: 8px;
}

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

.collection b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
  font-size: 13px;
}

.collection-btn {
  margin-top: 28px;
}

.footer {
  margin-top: 126px;
  padding: 58px 0 64px;
  background: #101010;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.2fr;
  gap: 42px;
}

.footer strong {
  display: block;
  margin-bottom: 18px;
}

.footer a,
.footer p {
  display: block;
  margin: 0 0 13px;
  color: rgba(255, 255, 255, .82);
  line-height: 1.35;
}

.copyright {
  color: rgba(255, 255, 255, .42);
}

@media (max-width: 980px) {
  .topbar {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 38px 30px;
  }

  .hero p,
  .round-link {
    margin-bottom: 0;
  }

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

  .promo,
  .about-copy,
  .advantages {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .wrap {
    width: min(var(--max), calc(100% - 24px));
  }

  .site-header {
    padding: 18px 0 34px;
  }

  .nav a {
    min-width: 104px;
    font-size: 14px;
  }

  .topbar > .btn {
    width: 100%;
  }

  .hero,
  .hero-content {
    min-height: 430px;
  }

  .section,
  .section + .section {
    margin-top: 82px;
  }

  .property-grid,
  .location-grid,
  .numbers,
  .collections {
    grid-template-columns: 1fr;
  }

  .promo,
  .advantages {
    padding: 32px 22px;
  }

  .collection,
  .collection:nth-child(2n),
  .collection:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .collection:last-child {
    border-bottom: 0;
  }

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