:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --paper: #f7f7f0;
  --white: #fff;
  --ink: #202b24;
  --muted: #496054;
  --forest: #174235;
  --line: #d6ded4;
  --accent: #dceaa8;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid #6d872b; outline-offset: 4px; }
.hero :focus-visible { outline-color: #fff; }
section[id] { scroll-margin-top: 24px; }

.shell { width: min(1168px, calc(100% - 96px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 1;
  padding: 12px;
  background: var(--white);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header { background: var(--paper); }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 730;
  letter-spacing: -.035em;
  text-decoration: none;
}
.brand-mark {
  position: relative;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 5px;
  background: var(--forest);
}
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  bottom: 8px;
  width: 7px;
  border: 1.5px solid var(--accent);
}
.brand-mark::before { height: 11px; left: 8px; }
.brand-mark::after { height: 17px; left: 17px; }
.header-nav { display: flex; gap: 28px; font-size: 14px; font-weight: 620; }
.header-nav a, .footer-inner a { text-decoration: none; }
.header-nav a:hover, .footer-inner a:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero {
  background-color: var(--forest);
  background-image: linear-gradient(90deg, #174235 20%, transparent),
    repeating-linear-gradient(90deg, transparent 0 55px, #ffffff0d 55px 56px),
    repeating-linear-gradient(0deg, transparent 0 55px, #ffffff0d 55px 56px);
  color: #f9faf0;
}
.hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-block: 57px 64px;
}
h1 { font-size: clamp(39px, 5.3vw, 77px); font-weight: 710; line-height: 1.02; letter-spacing: -.062em; }
.hero-offer { margin-top: 24px; color: var(--accent); font-size: 21px; font-weight: 670; }
.hero-description {
  max-width: 530px;
  margin-top: 10px;
  color: #e0e9df;
  font-size: 17px;
  line-height: 1.6;
}
.hero-actions { display: grid; gap: 14px; justify-items: stretch; justify-content: start; }
.catalog-link { justify-self: start; color: #e0e9df; font-size: 14px; font-weight: 600; text-underline-offset: 4px; }
.catalog-link span { margin-left: 4px; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 17px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
}
.button-accent { background: var(--accent); color: #233222; }
.button-accent:hover { background: #e9f2c5; }
.button span { font-size: 20px; line-height: 1; }

.catalog { padding-block: 59px 0; }
.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
h2 { font-size: clamp(29px, 4vw, 42px); line-height: 1.1; letter-spacing: -.05em; }
.catalog-description { margin-top: 10px; color: var(--muted); line-height: 1.5; }
.count { color: var(--muted); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .49fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf1e8;
  margin-bottom: 32px;
}
.field { display: grid; min-width: 0; gap: 7px; font-size: 13px; font-weight: 650; }
.field input, .field select {
  width: 100%;
  min-height: 47px;
  padding: 9px 12px;
  border: 1px solid #a8b9aa;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
}
.field select { text-overflow: ellipsis; }
.field input::placeholder { color: #526759; }

.region-group + .region-group { margin-top: 18px; }
.region-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}
.group-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 15px 19px;
  border-bottom: 1px solid var(--line);
  background: #e6eee1;
}
.group-title h3 { font-size: 18px; font-weight: 700; letter-spacing: -.022em; }
.group-count { flex: none; font-size: 13px; color: var(--muted); }
.object-list { list-style: none; margin: 0; padding: 0; }
.object-link {
  display: grid;
  text-decoration: none;
  grid-template-columns: minmax(140px, .9fr) minmax(0, 2fr) minmax(120px, auto);
  align-items: baseline;
  gap: 12px 20px;
  padding: 14px 19px;
  font-size: 14px;
  line-height: 1.45;
}
.object + .object { border-top: 1px solid #e5ebe4; }
.object-link:hover { background: #f2f6ec; }
.object-link:hover .price { text-decoration: underline; text-underline-offset: 3px; }
.object-link:focus-visible { outline-offset: -3px; }
.object-name { font-weight: 670; }
.object-address { color: var(--muted); }
.price { justify-self: end; color: var(--forest); font-weight: 650; }
.same-address { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.empty-state {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 30px 20px;
  background: var(--white);
  text-align: center;
}
.text-button {
  cursor: pointer;
  min-height: 40px;
  margin-top: 4px;
  border: 0;
  background: none;
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contacts { padding-block: 42px; }
.contact-card {
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #e6eee1;
}
.contact-card h2 { font-size: clamp(26px, 3.2vw, 36px); }
.contact-card p { margin-top: 10px; color: var(--muted); line-height: 1.5; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.contact-links .button { background: var(--forest); color: var(--white); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-inner { min-height: 68px; }

@media (max-width: 860px) {
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .wide-only { display: none; }
  h1 { max-width: 650px; }
}

@media (max-width: 650px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 66px; }
  .brand { font-size: 16px; gap: 8px; }
  .header-nav { gap: 13px; font-size: 13px; }
  .hero-inner { padding-block: 38px 43px; }
  .hero-offer { margin-top: 19px; font-size: 19px; }
  .hero-description { font-size: 16px; }
  .catalog { padding-top: 38px; }
  .catalog-heading { display: grid; gap: 11px; margin-bottom: 18px; }
  .filters { grid-template-columns: minmax(0, 1fr); margin-bottom: 22px; gap: 13px; padding: 13px; }
  .group-title { padding-inline: 13px; }
  .group-title h3 { font-size: 16px; }
  .group-count { font-size: 12px; }
  .object-link { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 13px; }
  .price { justify-self: start; margin-top: 3px; }
  .contacts { padding-block: 28px; }
  .footer-inner { flex-wrap: wrap; gap: 8px 16px; padding-block: 15px; }
}
