.home-page {
  padding-top: 28px;
  padding-bottom: 48px;
}

.home-eyebrow {
  margin: 0 0 10px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: stretch;
  padding: 34px;
  background: linear-gradient(135deg, var(--color-surface), var(--color-soft));
  border: 1px solid var(--color-border);
  border-radius: 24px;
}

.home-hero h1 {
  max-width: 760px;
  margin: 0;
}

.home-hero__lead {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: 17px;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.home-btn--primary {
  background: var(--color-primary);
  color: var(--color-text-light);
}

.home-btn--secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.home-hero__panel {
  display: grid;
  gap: 12px;
}

.home-stat {
  padding: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
}

.home-stat b {
  display: block;
  color: var(--color-primary);
  font-size: 24px;
  line-height: 1.15;
}

.home-stat span {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 13px;
}

.home-section {
  margin-top: 34px;
}

.home-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.home-section__head h2 {
  margin: 0;
}

.home-link {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
}

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

.home-project-card,
.home-flat-card,
.home-benefits__grid article,
.home-feature-teaser__grid article {
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
}

.home-project-card {
  display: flex;
  flex-direction: column;
}

.home-project-card__media,
.home-flat-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  background: var(--color-soft);
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
}

.home-project-card__media {
  position: relative;
  overflow: hidden;
  align-items: stretch;
  justify-content: stretch;
}


.home-project-card__placeholder {
  display: block;
  max-width: 100%;
  padding: 18px;
  text-align: center;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.home-project-card__media img,
.home-flat-card__media img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.home-project-card__media img {
  transition: transform .35s ease, filter .35s ease;
  will-change: transform;
}

.home-project-card__media:hover img,
.home-project-card__media:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.03);
}

.home-project-card__body,
.home-flat-card__body {
  padding: 18px;
}

.home-project-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.home-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.home-tags span {
  padding: 5px 9px;
  background: var(--color-soft);
  border-radius: 999px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 600;
}

.home-project-card h3,
.home-flat-card h3,
.home-benefits h3 {
  margin: 0;
  font-size: 18px;
}


.home-project-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-project-card__district {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(168, 130, 76, .14);
  border-radius: 999px;
  background: rgba(244, 239, 232, .88);
  color: rgba(20, 20, 20, .92);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.1;
  white-space: nowrap;
}



.home-project-card__overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.home-project-card__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 106px;
  min-height: 28px;
  padding: 4px 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      rgba(192, 154, 103, .82) 0%,
      rgba(168, 130, 76, .86) 48%,
      rgba(147, 113, 67, .90) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -1px 0 rgba(0, 0, 0, .10),
    0 6px 14px rgba(34, 34, 34, .08);
  color: rgba(255, 255, 255, .98);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-project-card h3 a,
.home-flat-card h3 a {
  color: var(--color-primary);
  text-decoration: none;
}

.home-project-card p,
.home-flat-card p,
.home-benefits p {
  color: var(--color-muted);
}

.home-project-card__meta,
.home-flat-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.home-project-card__meta span,
.home-flat-card__meta span,
.home-flat-card__meta b {
  padding: 7px 10px;
  background: var(--color-soft);
  border-radius: 10px;
  font-size: 13px;
}

.home-project-card__description {
  display: -webkit-box;
  margin: 12px 0 0;
  overflow: hidden;
  color: var(--color-muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.home-project-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
}

.home-project-card__actions a {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
}

.home-project-card__actions a:last-child {
  text-align: right;
}

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

.home-flat-card__media {
  min-height: 160px;
}

.home-flat-card__media img {
  min-height: 160px;
}

.home-benefits__grid,
.home-feature-teaser__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-benefits__grid article,
.home-feature-teaser__grid article {
  padding: 20px;
}

.home-lead .lead-widget {
  border-radius: 22px;
}

@media (max-width: 980px) {
  .home-hero,
  .home-projects,
  .home-flats,
  .home-benefits__grid,
  .home-feature-teaser__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-hero {
    padding: 22px;
  }

  .home-section__head {
    align-items: flex-start;
    flex-direction: column;
  }
}


.home-flat-room-groups {
  display: grid;
  gap: 26px;
}

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

.home-feature-teaser__grid article {
  background: var(--color-soft);
}

.home-feature-teaser__grid h3 {
  margin: 0;
  font-size: 18px;
}

.home-feature-teaser__grid p {
  margin: 10px 0 0;
  color: var(--color-muted);
}

.home-flat-room-group__description {
  max-width: 720px;
}

.home-flat-room-group__price {
  color: var(--color-primary) !important;
}

.home-flat-room-group {
  padding: 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 22px;
}

.home-flat-room-group__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.home-flat-room-group__head h3 {
  margin: 0;
  font-size: 24px;
}

.home-flat-room-group__head h3 a {
  color: var(--color-primary);
  text-decoration: none;
}

.home-flat-room-group__head p {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-weight: 600;
}

.home-flat-room-group__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  text-align: right;
}

.home-flat-room-group__meta span {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
}

.home-flat-room-group__meta a {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
}

.home-flat-room-group__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-flat-card--room-group {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.home-flat-card--room-group .home-flat-card__media {
  min-height: 150px;
}

.home-flat-card--room-group .home-flat-card__media img {
  min-height: 150px;
}

.home-flat-card--room-group .home-flat-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.home-flat-card--room-group h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.home-flat-card--room-group h4 a {
  color: var(--color-primary);
  text-decoration: none;
}

.home-flat-card--room-group .home-flat-card__meta {
  margin-top: auto;
  padding-top: 12px;
}

@media (max-width: 1180px) {
  .home-feature-teaser__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-flat-room-group__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-feature-teaser__grid {
    grid-template-columns: 1fr;
  }

  .home-flat-room-group {
    padding: 16px;
  }

  .home-flat-room-group__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-flat-room-group__meta {
    justify-content: flex-start;
    text-align: center;
  }

  .home-flat-room-group__grid {
    grid-template-columns: 1fr;
  }
}

.home-feature-teaser__grid h3 a {
  color: var(--color-primary);
  text-decoration: none;
}

.home-feature-teaser__link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
}

/* Home lead form polished block */
.home-lead {
  padding: 0;
}

.home-lead .lead-widget {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 28px;
  align-items: center;
  padding: 30px;
  background: linear-gradient(135deg, var(--color-primary), #2c2c2c);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
  color: var(--color-text-light);
  box-shadow: 0 18px 44px rgba(31, 31, 31, .14);
}

.home-lead .lead-widget__head {
  max-width: 520px;
}

.home-lead .lead-widget__title {
  margin: 0;
  color: var(--color-text-light);
  font-size: 30px;
  line-height: 1.18;
}

.home-lead .lead-widget__text {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 16px;
  line-height: 1.6;
}

.home-lead .lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  color: var(--color-text);
}

.home-lead .lead-form__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.home-lead .lead-form__field,
.home-lead .lead-form__actions,
.home-lead .lead-form__policy {
  min-width: 0;
}

.home-lead .lead-form__label {
  display: block;
  margin: 0 0 7px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
}

.home-lead .lead-form__control {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.home-lead .lead-form__control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(168, 130, 76, .14);
}

.home-lead .lead-form__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  grid-column: 1 / -1;
  margin-top: 2px;
}

.home-lead .lead-form__submit {
  min-height: 48px;
  padding: 0 22px;
  background: var(--color-accent);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.home-lead .lead-form__submit:hover {
  background: #937143;
  transform: translateY(-1px);
}

.home-lead .lead-form__note {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.45;
}

.home-lead .lead-form__policy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 2px;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.45;
}

.home-lead .lead-form__policy a {
  color: var(--color-muted);
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 3px;
}

.home-lead .lead-form__policy a:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

@media (max-width: 980px) {
  .home-lead .lead-widget {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-lead .lead-widget {
    padding: 22px;
  }

  .home-lead .lead-widget__title {
    font-size: 25px;
  }

  .home-lead .lead-form {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .home-lead .lead-form__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-lead .lead-form__submit {
    width: 100%;
  }
}

/* Home hero live panorama draft */
.home-hero--live {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  align-items: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(168, 130, 76, .16), transparent 32%),
    linear-gradient(135deg, var(--color-surface), var(--color-soft));
}

.home-hero--live .home-hero__lead {
  max-width: 640px;
}

.home-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin-top: 22px;
}

.home-hero-fact {
  padding: 14px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--color-border);
  border-radius: 16px;
}

.home-hero-fact b {
  display: block;
  color: var(--color-primary);
  font-size: 22px;
  line-height: 1.1;
}

.home-hero-fact span {
  display: block;
  margin-top: 5px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.home-hero__rooms {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.home-hero__rooms a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}

.home-hero__rooms a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

.home-hero-panorama {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 4px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.home-hero-panorama__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: homeHeroPanorama 42s linear infinite;
  will-change: transform;
}

.home-hero-panorama:hover .home-hero-panorama__track {
  animation-play-state: paused;
}

.home-hero-project {
  display: flex;
  flex-direction: column;
  width: 238px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 22px;
  color: var(--color-primary);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(31, 31, 31, .08);
}

.home-hero-project:nth-child(2n) {
  margin-top: 34px;
}

.home-hero-project:nth-child(3n) {
  margin-top: 72px;
}

.home-hero-project__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 172px;
  background: var(--color-soft);
  color: var(--color-accent);
  font-weight: 700;
}

.home-hero-project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-project__body {
  display: block;
  padding: 14px;
}

.home-hero-project__body b,
.home-hero-project__body small {
  display: block;
}

.home-hero-project__body b {
  font-size: 15px;
  line-height: 1.25;
}

.home-hero-project__body small {
  min-height: 18px;
  margin-top: 5px;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.35;
}

@keyframes homeHeroPanorama {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-panorama__track {
    animation: none;
  }
}

@media (max-width: 980px) {
  .home-hero--live {
    grid-template-columns: 1fr;
  }

  .home-hero-panorama {
    min-height: 260px;
    margin-top: 2px;
  }

  .home-hero-project {
    width: 220px;
  }

  .home-hero-project:nth-child(3n) {
    margin-top: 38px;
  }
}

@media (max-width: 640px) {
  .home-hero--live {
    gap: 20px;
    padding: 20px;
  }

  .home-hero--live h1 {
    font-size: 29px;
  }

  .home-hero__lead {
    font-size: 15px;
  }

  .home-hero__facts {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-hero-fact {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 13px;
  }

  .home-hero-fact b {
    font-size: 20px;
    white-space: nowrap;
  }

  .home-hero-fact span {
    margin-top: 0;
    text-align: right;
  }

  .home-hero__rooms {
    flex-wrap: nowrap;
    margin-right: -20px;
    margin-left: -20px;
    padding: 0 20px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .home-hero__rooms::-webkit-scrollbar {
    display: none;
  }

  .home-hero__rooms a {
    flex: 0 0 auto;
  }

  .home-hero-panorama {
    overflow: visible;
    min-height: 0;
    mask-image: none;
  }

  .home-hero-panorama__track {
    width: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    animation: none;
  }

  .home-hero-project {
    width: auto;
    border-radius: 18px;
  }

  .home-hero-project:nth-child(n+5) {
    display: none;
  }

  .home-hero-project:nth-child(2n),
  .home-hero-project:nth-child(3n) {
    margin-top: 0;
  }

  .home-hero-project__media {
    height: 116px;
  }

  .home-hero-project__body {
    padding: 11px;
  }

  .home-hero-project__body b {
    font-size: 13px;
  }

  .home-hero-project__body small {
    display: none;
  }
}


/* HomeHeroModule v0.2: static admin-managed Hero */
.home-hero--static {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 520px;
  overflow: hidden;
  padding: 0;
  isolation: isolate;
  background: linear-gradient(135deg, var(--color-primary), #3a3128);
}

.home-hero--static .home-hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  margin: 0;
}

.home-hero--static .home-hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero--static .home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 20, 20, .78), rgba(20, 20, 20, .42) 52%, rgba(20, 20, 20, .14)),
    linear-gradient(0deg, rgba(20, 20, 20, .30), rgba(20, 20, 20, .12));
}

.home-hero--static.home-hero--without-image .home-hero__overlay {
  background:
    radial-gradient(circle at 72% 18%, rgba(168, 130, 76, .32), transparent 34%),
    linear-gradient(135deg, #1f1f1f, #3b332a);
}

.home-hero--static .home-hero__content {
  width: min(760px, 100%);
  padding: 56px;
  align-self: end;
}

.home-hero--static .home-eyebrow {
  color: var(--color-accent-soft);
}

.home-hero--static h1 {
  color: #ffffff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.home-hero--static .home-hero__lead {
  max-width: 620px;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
}

.home-hero--static .home-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 640px;
  margin-top: 28px;
}

.home-hero--static .home-hero-fact {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .20);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  border-radius: 16px;
}

.home-hero--static .home-hero-fact b {
  color: #ffffff;
}

.home-hero--static .home-hero-fact span {
  color: rgba(255, 255, 255, .78);
}

.home-hero--static .home-btn--primary {
  background: #ffffff;
  color: var(--color-primary);
}

.home-hero--static .home-btn--secondary {
  background: rgba(255, 255, 255, .10);
  color: #ffffff;
  border-color: rgba(255, 255, 255, .28);
}

@media (max-width: 760px) {
  .home-hero--static {
    min-height: 640px;
  }

  .home-hero--static .home-hero__overlay {
    background:
      linear-gradient(0deg, rgba(20, 20, 20, .78), rgba(20, 20, 20, .48) 58%, rgba(20, 20, 20, .18)),
      linear-gradient(90deg, rgba(20, 20, 20, .35), rgba(20, 20, 20, .10));
  }

  .home-hero--static .home-hero__content {
    padding: 34px 22px;
    align-self: end;
  }

  .home-hero--static .home-hero__lead {
    font-size: 15px;
  }

  .home-hero--static .home-hero__facts {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 22px;
  }

  .home-hero--static .home-hero-fact {
    padding: 12px;
  }

  .home-hero--static .home-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* HomeModule patch 39.4: reuse CatalogModule flat card component */
.home-flat-room-group__grid.catalog-page--ux-final {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-flat-room-group__grid.catalog-page--ux-final .catalog-card--premium {
  min-width: 0;
  box-shadow: none;
}

.home-flat-room-group__grid.catalog-page--ux-final .catalog-card--premium .catalog-card-visual {
  height: 206px;
}

.home-flat-room-group__grid.catalog-page--ux-final .catalog-card--premium .catalog-card-body {
  padding: 18px;
}

.home-flat-room-group__grid.catalog-page--ux-final .catalog-card__project {
  font-size: 17px;
}

.home-flat-room-group__grid.catalog-page--ux-final .catalog-card__price {
  font-size: 22px;
}

@media (max-width: 1180px) {
  .home-flat-room-group__grid.catalog-page--ux-final {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-flat-room-group__grid.catalog-page--ux-final {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-left: -16px;
    margin-right: -16px;
    padding: 2px 16px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .home-flat-room-group__grid.catalog-page--ux-final .catalog-card--premium {
    flex: 0 0 82%;
    max-width: 340px;
    scroll-snap-align: start;
  }

  .home-flat-room-group__grid.catalog-page--ux-final .catalog-card--premium .catalog-card-visual {
    height: 178px;
  }

  .home-flat-room-group__grid.catalog-page--ux-final .catalog-card--premium .catalog-card-body {
    padding: 16px;
  }
}

/* Home mobile flat slider */
.home-flat-room-group__slider {
  position: relative;
}

.home-flat-room-group__slider-btn {
  display: none;
}

@media (max-width: 640px) {
  .home-flat-room-group__slider {
    margin-top: 2px;
  }

  .home-flat-room-group__grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 14px;
    overflow: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .home-flat-room-group__grid::-webkit-scrollbar {
    display: none;
  }

  .home-flat-room-group__grid > .catalog-card {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: start;
  }

  .home-flat-room-group__slider-btn {
    position: absolute;
    z-index: 3;
    top: 42%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-accent);
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(31, 31, 31, .12);
    cursor: pointer;
    transform: translateY(-50%);
  }

  .home-flat-room-group__slider-btn--prev {
    left: 8px;
  }

  .home-flat-room-group__slider-btn--next {
    right: 8px;
  }

  .home-flat-room-group__slider-btn:disabled {
    opacity: .38;
    cursor: default;
  }
}


/* Patch 39.6: one catalog card per mobile slider viewport */
@media (max-width: 640px) {
  .home-flat-room-group__slider {
    overflow: hidden;
  }

  .home-flat-room-group__grid.catalog-page--ux-final {
    gap: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 2px 0 12px;
  }

  .home-flat-room-group__grid.catalog-page--ux-final .catalog-card--premium,
  .home-flat-room-group__grid.catalog-page--ux-final > .catalog-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    scroll-snap-align: start;
  }

  .home-flat-room-group__slider-btn--prev {
    left: 14px;
  }

  .home-flat-room-group__slider-btn--next {
    right: 14px;
  }
}


/* HomeModule patch 40.1: premium bottom redesign for dynamic location features and service block */
.home-section__head--stacked {
  align-items: flex-start;
}

.home-section__subtitle {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.65;
}

.home-feature-teaser--premium {
  position: relative;
  margin-top: 42px;
}

.home-feature-teaser--premium .home-feature-teaser__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-feature-card {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(168, 130, 76, .16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(250, 248, 245, .92));
  box-shadow:
    0 14px 34px rgba(31, 31, 31, .045),
    inset 0 1px 0 rgba(255, 255, 255, .92);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.home-feature-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background:
    linear-gradient(
      180deg,
      rgba(199, 165, 114, .28),
      rgba(168, 130, 76, .88),
      rgba(147, 113, 67, .22)
    );
}

.home-feature-card::after {
  content: '';
  position: absolute;
  right: -42px;
  bottom: -46px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 130, 76, .10), rgba(168, 130, 76, 0) 68%);
  pointer-events: none;
}

.home-feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 130, 76, .28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(246, 241, 234, .96));
  box-shadow:
    0 20px 46px rgba(31, 31, 31, .075),
    inset 0 1px 0 rgba(255, 255, 255, .96);
}

.home-feature-card__icon {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid rgba(168, 130, 76, .18);
  border-radius: 16px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .90),
      rgba(243, 238, 231, .78)
    );
  color: var(--color-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.home-feature-card__icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.home-feature-card__icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-feature-card__body {
  position: relative;
  z-index: 1;
}

.home-feature-card h3 {
  max-width: 95%;
  margin: 0;
  color: var(--color-primary);
  font-size: 20px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.18;
  letter-spacing: -.02em;
}

.home-feature-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.45;
}

.home-feature-card h3 + p {
  margin-top: 16px;
}

.home-feature-card p + p {
  margin-top: 3px;
  color: rgba(31, 31, 31, .72);
}

.home-benefits--premium {
  margin-top: 42px;
  padding: 30px;
  border: 1px solid rgba(168, 130, 76, .13);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(243, 238, 231, .72));
  box-shadow: 0 18px 48px rgba(31, 31, 31, .055);
}

.home-benefits--premium .home-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.home-benefits--premium .home-benefits__grid article {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(168, 130, 76, .14);
  border-radius: 24px;
  background: rgba(255, 255, 255, .82);
  box-shadow:
    0 12px 30px rgba(31, 31, 31, .040),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}

.home-benefits--premium .home-benefits__grid article::before {
  content: '';
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 2px;
  background:
    linear-gradient(
      90deg,
      rgba(168, 130, 76, .08),
      rgba(168, 130, 76, .72),
      rgba(168, 130, 76, .08)
    );
}

.home-benefits__number {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: .14em;
}

.home-benefits--premium h3 {
  max-width: 90%;
  color: var(--color-primary);
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -.02em;
}

.home-benefits--premium p {
  max-width: 94%;
  margin: 12px 0 0;
  color: var(--color-muted);
  line-height: 1.62;
}

@media (max-width: 1180px) {
  .home-feature-teaser--premium .home-feature-teaser__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .home-feature-teaser--premium .home-feature-teaser__grid,
  .home-benefits--premium .home-benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-benefits--premium {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .home-feature-teaser--premium .home-feature-teaser__grid,
  .home-benefits--premium .home-benefits__grid {
    grid-template-columns: 1fr;
  }

  .home-feature-card,
  .home-benefits--premium .home-benefits__grid article {
    min-height: auto;
  }

  .home-benefits--premium {
    padding: 20px;
    border-radius: 24px;
  }

  .home-feature-card h3,
  .home-benefits--premium h3 {
    font-size: 20px;
  }
}


@media (max-width: 640px) {
  .home-project-card__overlay {
    top: 10px;
    left: 10px;
    gap: 5px;
  }

  .home-project-card__pill {
    width: 102px;
    min-height: 26px;
    padding: 4px 5px;
    font-size: 11px;
  }

  .home-project-card__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .home-project-card__district {
    min-height: 26px;
    font-size: 11px;
  }

  .home-project-card__actions {
    gap: 10px;
  }
}


/* Home isolated patch: premium lower feature and service blocks */
.home-section__head--stacked {
  align-items: flex-start;
}

.home-section__subtitle {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.65;
}

.home-feature-teaser--premium {
  position: relative;
  margin-top: 42px;
}

.home-feature-teaser--premium .home-feature-teaser__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 178px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(168, 130, 76, .16);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(250, 248, 245, .92));
  box-shadow:
    0 14px 34px rgba(31, 31, 31, .045),
    inset 0 1px 0 rgba(255, 255, 255, .92);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.home-feature-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(199, 165, 114, .28), rgba(168, 130, 76, .88), rgba(147, 113, 67, .22));
}

.home-feature-card::after {
  content: '';
  position: absolute;
  right: -42px;
  bottom: -46px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 130, 76, .10), rgba(168, 130, 76, 0) 68%);
  pointer-events: none;
}

.home-feature-card__icon,
.home-benefits__icon {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(168, 130, 76, .18);
  background: linear-gradient(180deg, rgba(255, 255, 255, .90), rgba(243, 238, 231, .78));
  color: var(--color-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.home-feature-card__icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 16px;
}

.home-benefits__icon {
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  border-radius: 16px;
}

.home-feature-card__icon svg,
.home-benefits__icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.home-feature-card__icon path,
.home-benefits__icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-feature-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
}

.home-feature-card__title {
  display: -webkit-box;
  max-width: 95%;
  min-height: calc(20px * 1.18 * 2);
  overflow: hidden;
  color: var(--color-primary);
  font-size: 20px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.18;
  letter-spacing: -.02em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.home-feature-card__count {
  margin-top: auto;
  padding-top: 16px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.45;
}


.home-feature-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.home-feature-card__price {
  margin-top: 3px;
  color: rgba(31, 31, 31, .72);
  font-size: 14px;
  line-height: 1.45;
}

.home-benefits--premium {
  margin-top: 42px;
  padding: 30px;
  border: 1px solid rgba(168, 130, 76, .13);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(243, 238, 231, .72));
  box-shadow: 0 18px 48px rgba(31, 31, 31, .055);
}

.home-benefits--premium .home-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.home-benefits--premium .home-benefits__grid article {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(168, 130, 76, .14);
  border-radius: 24px;
  background: rgba(255, 255, 255, .82);
  box-shadow:
    0 12px 30px rgba(31, 31, 31, .040),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}

.home-benefits--premium .home-benefits__grid article::before {
  content: '';
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 2px;
  background: linear-gradient(90deg, rgba(168, 130, 76, .08), rgba(168, 130, 76, .72), rgba(168, 130, 76, .08));
}

.home-benefits--premium h3 {
  max-width: 90%;
  color: var(--color-primary);
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -.02em;
}

.home-benefits--premium p {
  max-width: 94%;
  margin: 12px 0 0;
  color: var(--color-muted);
  line-height: 1.62;
}

@media (max-width: 1180px) {
  .home-feature-teaser--premium .home-feature-teaser__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .home-feature-teaser--premium .home-feature-teaser__grid,
  .home-benefits--premium .home-benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-benefits--premium {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .home-feature-teaser--premium .home-feature-teaser__grid,
  .home-benefits--premium .home-benefits__grid {
    grid-template-columns: 1fr;
  }

  .home-feature-card,
  .home-benefits--premium .home-benefits__grid article {
    min-height: auto;
  }

  .home-benefits--premium {
    padding: 20px;
    border-radius: 24px;
  }

  .home-feature-card__title,
  .home-benefits--premium h3 {
    font-size: 20px;
  }
}

