.usadba-hero-title {
  font-size: clamp(64px, 6.4vw, 108px);
  line-height: .96;
}

.usadba-hero-note {
  max-width: 420px;
  padding-left: 0;
  border-left: 0;
  gap: 12px;
  line-height: 1.5;
}

.usadba-hero-note > span {
  padding-left: 25px;
  border-left: 1px solid rgba(255,255,255,.4);
}

.usadba-hero-note__mobile { display: none; }

@media (width > 900px) {
  .usadba-hero .offer__label { font-size: 14px; }
  .usadba-hero .offer__text { font-size: clamp(20px, 1.6vw, 24px); }
  .usadba-hero .call-button {
    padding-inline: 16px;
    font-size: 14px;
    white-space: nowrap;
  }
  .usadba-hero .telegram-button { font-size: 16px; }
}

@media (max-width: 900px) {
  .usadba-hero {
    --usadba-hero-header-height: 56px;
    --usadba-hero-photo-ratio: 10 / 9;
    --usadba-hero-photo-extension: 24px;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100svh;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .usadba-hero .header {
    position: relative;
    height: var(--usadba-hero-header-height);
    border-bottom: 0;
    background: var(--forest);
  }

  .usadba-hero .hero__image {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: var(--usadba-hero-photo-ratio);
    box-sizing: content-box;
    padding-bottom: var(--usadba-hero-photo-extension);
    background-position: center;
    background-size: cover;
  }

  .usadba-hero .hero__shade {
    inset: var(--usadba-hero-header-height) 0 auto;
    aspect-ratio: var(--usadba-hero-photo-ratio);
    box-sizing: content-box;
    padding-bottom: var(--usadba-hero-photo-extension);
    background: linear-gradient(180deg,
      var(--forest),
      rgba(16, 35, 29, .42) 13%,
      transparent 30%,
      transparent 43%,
      rgba(16, 35, 29, .6) 67%,
      var(--forest) 100%);
  }

  .usadba-hero .offer {
    position: relative;
    inset: auto;
    margin-top: calc(101px - clamp(88px, 26vw, 154px));
    padding: 0 20px;
    transform: none;
  }

  .usadba-hero .offer__label { margin-bottom: 12px; }
  .usadba-hero .offer__text { margin-block: 16px 18px; }

  .usadba-hero-title {
    font-size: clamp(33px, 9.5vw, 68px);
  }

  .usadba-hero-note {
    position: relative;
    inset: auto;
    max-width: none;
    margin: auto 14px 0;
    padding-top: 12px;
  }

  .usadba-hero-note > span:not(.usadba-hero-note__mobile) { display: none; }

  .usadba-hero-note > .usadba-hero-note__mobile {
    display: block;
    padding-left: 0;
    border-left: 0;
    color: #8c9589;
    font-size: clamp(8px, 2.4vw, 10px);
    line-height: 1.3;
    letter-spacing: normal;
    text-transform: none;
  }
}

.usadba-estate {
  border-top: 1px solid #e6ddd1;
  background: radial-gradient(ellipse at 38% 30%, #fcfaf6, #f3eee7 90%);
}

.usadba-estate__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
  gap: clamp(24px, 3vw, 48px);
}

.usadba-estate__heading {
  margin-bottom: 0;
  font-size: clamp(35px, 4.4vw, 72px);
  text-wrap: balance;
}

.usadba-estate__amenities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 460px;
  margin: clamp(16px, 2vw, 28px) 0 0;
  padding: 18px 0 0;
  list-style: none;
}

.usadba-estate__amenities li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid #dcd0bb;
  border-radius: 14px;
  background: #f0e8da;
  color: #3a392d;
  box-shadow: inset 0 1px 0 #fffcf5;
  font: 400 clamp(16px, 1.35vw, 21px) / 1.2 var(--serif);
}

.usadba-estate__amenity--wide { grid-column: 1 / -1; }

.usadba-estate__amenities li:not(.usadba-estate__amenity--court)::before {
  flex: 0 0 5px;
  height: 5px;
  background: #a28755;
  transform: rotate(45deg);
  content: "";
}

.usadba-estate__amenity--court {
  margin-top: 5px;
}

.usadba-estate__amenity--court svg {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: #8a6c3e;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.usadba-estate__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.48;
  border-radius: 30px;
  object-fit: cover;
  box-shadow: 0 18px 36px #30210f15;
}

.usadba-estate__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 0;
  padding-inline: 12px;
}

.usadba-estate__fact {
  --fact-icon-width: clamp(34px, 4vw, 60px);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: var(--fact-icon-width) minmax(0, 1fr);
  align-content: center;
  column-gap: clamp(10px, 1.2vw, 19px);
  row-gap: 5px;
  min-height: 148px;
  padding: 22px clamp(15px, 2vw, 32px);
}

.usadba-estate__fact::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid #e5d6be;
  border-radius: 26px;
  background: linear-gradient(145deg, #fffdfa, #f4ede3);
  box-shadow: 0 7px 16px #39250e12;
  transform: skewX(-13deg);
  content: "";
}

.usadba-estate__fact svg {
  grid-row: span 2;
  align-self: stretch;
  width: 100%;
  min-height: 55px;
  padding-right: 10px;
  border-right: 1px solid var(--gold);
  color: #88571e;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.usadba-estate__fact dt {
  font: 400 clamp(22px, 3vw, 48px) / 1 var(--serif);
  letter-spacing: -.04em;
}

.usadba-estate__fact dd {
  margin: 0;
  color: #44504a;
  font: 400 clamp(16px, 1.5vw, 22px) / 1.2 var(--serif);
}

.usadba-estate__fact--land {
  color: var(--cream);
}

.usadba-estate__fact--land::before {
  border-color: #e7c56e;
  background: linear-gradient(155deg, #344d3e, #10271e 74%);
  box-shadow: 0 12px 24px #17291d38;
}

.usadba-estate__fact--land svg {
  color: #e7c56e;
}

.usadba-estate__fact--land dd { color: inherit; }

@media (max-width: 1100px) {
  .usadba-estate__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 901px) {
  .usadba-estate__photo { align-self: stretch; }
}

@media (max-width: 900px) {
  .usadba-estate__layout { grid-template-columns: 1fr; }
  .usadba-estate__heading { text-wrap: wrap; }
  .usadba-estate__photo { border-radius: 20px; }
}

@media (max-width: 700px) {
  .usadba-estate {
    --estate-gutter: 20px;
    padding-inline: var(--estate-gutter);
  }

  .usadba-estate__layout { grid-template-columns: minmax(0, 1fr); }

  .usadba-estate__photo {
    width: calc(100% + 2 * var(--estate-gutter));
    margin-inline: calc(-1 * var(--estate-gutter));
    border-radius: 0;
  }
}

@media (max-width: 540px) {
  .usadba-estate__facts {
    grid-template-columns: 1fr;
    padding-inline: 6px;
  }

  .usadba-estate__fact { min-height: 100px; }
  .usadba-estate__fact::before { border-radius: 18px; transform: skewX(-6deg); }
}

.usadba-surroundings { background: #f9f6f1; }
.usadba-surroundings > .section__inner { max-width: 1350px; }
.usadba-surroundings .demand-context__cards { gap: 14px; }

.usadba-surroundings .demand-context__card {
  display: grid;
  min-height: clamp(365px, 30vw, 450px);
  border-radius: 9px;
}

.usadba-surroundings .demand-context__content {
  position: relative;
}

.usadba-surroundings__metric--long { font-size: clamp(28px, 2.45vw, 38px); }
.usadba-surroundings__dots { display: none; }

.usadba-surroundings__nearby {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
  padding-block: 14px;
  border: 1px solid #e5ddd1;
  border-radius: 10px;
}

.usadba-surroundings__place {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 1.75vw, 26px);
  padding: clamp(12px, 1.5vw, 22px);
}

.usadba-surroundings__place + .usadba-surroundings__place { border-left: 1px solid #e5ddd1; }

.usadba-surroundings__place .demand-context__park-icon {
  width: clamp(52px, 5.2vw, 82px);
  height: clamp(52px, 5.2vw, 82px);
  background: #efe5d7;
}

.usadba-surroundings__place .demand-context__park-icon svg {
  width: 62%;
  height: 62%;
}

.usadba-surroundings__place .demand-context__park-title { font-size: clamp(21px, 2vw, 30px); }
.usadba-surroundings__place .demand-context__park-description { margin-top: 7px; }

@media (max-width: 900px) {
  .usadba-surroundings__nearby { grid-template-columns: 1fr; padding: 0 16px; }
  .usadba-surroundings__place { padding: 16px 0; }
  .usadba-surroundings__place + .usadba-surroundings__place {
    border-left: 0;
    border-top: 1px solid #e5ddd1;
  }
}

@media (max-width: 700px) {
  .usadba-surroundings .usadba-surroundings__slides {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    overscroll-behavior-x: none;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .usadba-surroundings__slides::-webkit-scrollbar { display: none; }

  .usadba-surroundings .demand-context__card {
    min-height: clamp(365px, 112vw, 450px);
    scroll-snap-align: start;
  }

  .usadba-surroundings__dots {
    --dot-hit-size: 44px;
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 6px;
  }

  .usadba-surroundings__dots a {
    display: grid;
    place-items: center;
    width: var(--dot-hit-size);
    height: var(--dot-hit-size);
    border-radius: 50%;
  }

  .usadba-surroundings__dots a::before {
    width: 8px;
    height: 8px;
    border: 1px solid #8a6c3e;
    border-radius: 50%;
    background: #d3bb94;
    content: "";
  }

  .usadba-surroundings__dots a:focus-visible { outline: 2px solid #8a6c3e; }

  .usadba-surroundings__nearby { margin-top: 10px; }
}

@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  .usadba-surroundings__slides { scroll-behavior: smooth; }
}

@media (max-width: 700px) {
  @supports (timeline-scope: --usadba-slides) and (animation-timeline: scroll()) {
    .usadba-surroundings { timeline-scope: --usadba-slides; }
    .usadba-surroundings__slides { scroll-timeline: --usadba-slides x; }

    .usadba-surroundings__dots::after {
      position: absolute;
      top: calc(50% - 5px);
      left: calc(50% - 1.5 * var(--dot-hit-size) - 5px);
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--forest);
      pointer-events: none;
      content: "";
      animation: usadba-current-dot auto steps(1, end) both;
      animation-timeline: --usadba-slides;
    }

    @keyframes usadba-current-dot {
      0% { translate: 0; }
      16.6667% { translate: var(--dot-hit-size); }
      50% { translate: calc(2 * var(--dot-hit-size)); }
      83.3333%, 100% { translate: calc(3 * var(--dot-hit-size)); }
    }
  }

  @supports not ((timeline-scope: --usadba-slides) and (animation-timeline: scroll())) {
    .usadba-surroundings:not(:has(.demand-context__card:target)) a[href="#usadba-slide-park"]::before,
    .usadba-surroundings:has(#usadba-slide-park:target) a[href="#usadba-slide-park"]::before,
    .usadba-surroundings:has(#usadba-slide-peredelkino:target) a[href="#usadba-slide-peredelkino"]::before,
    .usadba-surroundings:has(#usadba-slide-moscow:target) a[href="#usadba-slide-moscow"]::before,
    .usadba-surroundings:has(#usadba-slide-train:target) a[href="#usadba-slide-train"]::before {
      background: var(--forest);
    }
  }
}
