:root {
  color-scheme: light;
  --bg: rgb(248, 248, 248);
  --surface: #ffffff;
  --surface-soft: #f3f4f5;
  --ink: #151719;
  --muted: #8b8f95;
  --line: #e6e7e9;
  --accent: #202326;
  --accent-dark: #151719;
  --accent-soft: #f1f2f3;
  --warning: #b45a2a;
  --shadow: 0 18px 45px rgba(21, 23, 25, 0.08);
  --content-width: 1280px;
  --content-gutter: 80px;
  --header-height: 104px;
  --header-height-mobile: 90px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/Inter-normal-400_700-cyrillic.woff2") format("woff2");
  unicode-range: U+0400-04FF, U+0500-052F, U+2DE0-2DFF, U+A640-A69F;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/Inter-normal-400_700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-024F, U+1E00-1EFF;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

body.search-submitting .home-search__inner {
  transform: translateY(2vh) scale(0.985);
  opacity: 0.74;
}

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

button,
textarea,
select {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
}

.mobile-bottom-nav {
  display: none;
}

#app {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: rgb(248, 248, 248);
}

.mobile-preloader {
  display: none;
}

@media (max-width: 760px) {
  #app {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 10px;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 66px;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(21, 23, 25, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    padding: 7px;
    box-shadow: 0 18px 44px rgba(21, 23, 25, 0.13);
    backdrop-filter: blur(18px);
  }

  .mobile-bottom-nav a {
    display: grid;
    min-width: 0;
    min-height: 52px;
    place-items: center;
    gap: 3px;
    border-radius: 22px;
    color: #7a7f85;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    transition:
      background 180ms ease,
      color 180ms ease,
      transform 180ms ease;
  }

  .mobile-bottom-nav a:active {
    transform: scale(0.96);
  }

  .mobile-bottom-nav a.active {
    background: rgb(206, 48, 71);
    color: #ffffff;
  }

  .mobile-bottom-nav svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-bottom-nav span {
    display: block;
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: rgb(246, 240, 236);
    opacity: 1;
    transition:
      opacity 420ms ease,
      visibility 420ms ease;
  }

  .mobile-preloader img {
    width: 118px;
    height: 118px;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.92);
    animation: mobilePreloaderIcon 720ms ease forwards;
  }

  .mobile-preloader.is-hiding {
    visibility: hidden;
    opacity: 0;
  }

  .mobile-preloader.is-hiding img {
    transform: scale(1.04);
    opacity: 0;
    transition:
      opacity 320ms ease,
      transform 320ms ease;
  }
}

@keyframes mobilePreloaderIcon {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-preloader,
  .mobile-preloader img {
    animation: none;
    transition: none;
  }

  .mobile-preloader img {
    opacity: 1;
    transform: none;
  }
}

.home-search {
  position: relative;
  display: grid;
  min-height: 58vh;
  place-items: center;
  padding: 28px;
  background: rgb(248, 248, 248);
}

.home-search__inner {
  width: min(860px, 100%);
  transform: translateY(2vh);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.home-install-banner {
  display: none;
}

.home-brand {
  position: absolute;
  top: 0;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--content-width), calc(100vw - var(--content-gutter)));
  min-height: var(--header-height);
  transform: translateX(-50%);
  gap: 10px;
  border-radius: 0 0 24px 24px;
  background: #ffffff;
  color: #151719;
  padding: 14px 28px;
  box-shadow: 0 12px 36px rgba(21, 23, 25, 0.05);
}

.home-brand img {
  display: block;
  width: 192px;
  height: 76px;
  object-fit: contain;
}

.home-brand span {
  display: none;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.home-brand-stats {
  display: grid;
  gap: 3px;
  margin: 0 14px 0 auto;
  color: #151719;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.home-brand .home-brand-stats span,
.home-brand-stats span {
  display: block;
  color: #151719;
  font-size: inherit;
  font-weight: 400;
}

.home-brand-stats strong {
  display: block;
  color: #7b8087;
  font-size: 14px;
  font-weight: 400;
}

.home-menu,
.dialog-menu,
.detail-menu {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(21, 23, 25, 0.08);
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  padding: 13px;
}

.home-menu span,
.dialog-menu span,
.detail-menu span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #151719;
}

.burger-dropdown {
  position: fixed;
  z-index: 120;
  display: grid;
  width: 230px;
  overflow: hidden;
  border: 1px solid rgba(21, 23, 25, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(21, 23, 25, 0.16);
  animation: dropdownIn 180ms ease both;
}

.burger-dropdown a {
  color: #202326;
  padding: 13px 16px;
  font-size: 14px;
  line-height: 1.2;
}

.burger-dropdown a + a {
  border-top: 1px solid #f1f2f4;
}

.burger-dropdown a:hover {
  background: #f8f8f8;
}

.home-feed {
  padding: 0 28px 56px;
  background: rgb(248, 248, 248);
}

.home-banner-section {
  padding: 0 28px 28px;
  background: rgb(248, 248, 248);
}

.home-banner {
  width: min(var(--content-width), 100%);
  height: 240px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(21, 23, 25, 0.06);
}

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

.home-feed__inner,
.home-blog__inner {
  width: min(var(--content-width), 100%);
  margin: 0 auto;
}

.feed-label {
  margin: 0 0 12px;
  color: #9a9da2;
  font-size: 13px;
  font-weight: 400;
}

.home-blog {
  padding: 0 28px 56px;
  background: rgb(248, 248, 248);
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  color: #151719;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.08;
}

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

.blog-card {
  display: grid;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  color: #151719;
  box-shadow: 0 12px 34px rgba(21, 23, 25, 0.06);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f1f2f4;
}

.blog-card div {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.blog-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
}

.blog-card p {
  margin: 0;
  color: #6f747a;
  font-size: 14px;
  line-height: 1.42;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: min(var(--content-width), calc(100vw - var(--content-gutter)));
  min-height: var(--header-height);
  margin: 0 auto;
  border-radius: 24px 24px 0 0;
  background: #ffffff;
  padding: 18px 28px;
  box-shadow: 0 -12px 36px rgba(21, 23, 25, 0.05);
}

#app > .site-footer,
.content-page > .site-footer,
.rent-page > .site-footer {
  margin-top: auto;
  margin-right: auto;
  margin-left: auto;
}

.footer-brand img {
  display: block;
  width: 144px;
  height: 56px;
  object-fit: contain;
}

.footer-links {
  display: grid;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.footer-center {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  text-align: center;
}

.footer-links a,
.footer-links span,
.footer-contact a,
.footer-disclaimer {
  color: #6f747a;
  font-size: 13px;
}

.footer-disclaimer {
  max-width: 320px;
  margin: 0;
  color: #9a9da2;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.footer-contact {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.footer-feedback {
  min-height: 38px;
  border-radius: 19px;
  background: rgb(206, 48, 71);
  color: #ffffff !important;
  padding: 10px 16px;
}

.content-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: rgb(248, 248, 248);
  padding: 28px 0 0;
}

.article-page,
.legal-page,
.install-page {
  width: min(var(--content-width), calc(100vw - var(--content-gutter)));
  margin: 0 auto 48px;
}

.article-hero,
.article-body,
.legal-page,
.install-hero,
.install-steps,
.install-note {
  border-radius: 22px;
  background: #ffffff;
}

.article-hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 24px;
}

.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  background: #f1f2f4;
}

.article-hero h1,
.legal-page h1,
.install-hero h1 {
  margin: 0 0 12px;
  color: #151719;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
}

.article-hero p,
.legal-page p,
.article-body p,
.install-hero p,
.install-note {
  margin: 0;
  color: #5f646b;
  font-size: 16px;
  line-height: 1.6;
}

.article-body {
  display: grid;
  gap: 22px;
  margin-top: 18px;
  padding: 28px;
}

.article-body h2 {
  margin: 0 0 8px;
  color: #151719;
  font-size: 24px;
}

.legal-page {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.install-page {
  display: grid;
  gap: 18px;
}

.install-hero {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.install-hero img {
  width: 132px;
  height: 132px;
  border-radius: 30px;
}

.install-action {
  min-height: 46px;
  border: 0;
  border-radius: 23px;
  background: rgb(206, 48, 71);
  color: #ffffff;
  cursor: pointer;
  padding: 0 20px;
  margin-top: 18px;
  font-weight: 600;
}

.install-action:disabled {
  cursor: default;
  opacity: 0.65;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
}

.install-steps h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.install-steps ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: #5f646b;
  line-height: 1.5;
}

.install-note {
  padding: 18px 22px;
}

.complexes-hero,
.complexes-list {
  width: min(var(--content-width), calc(100vw - var(--content-gutter)));
  margin: 0 auto 28px;
}

.complexes-hero {
  display: grid;
  gap: 8px;
  border-radius: 22px;
  background: #ffffff;
  padding: 28px;
}

.complexes-hero p,
.complexes-hero span {
  margin: 0;
  color: #7b8087;
  font-size: 14px;
}

.complexes-hero h1 {
  margin: 0;
  color: #151719;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02;
}

.complex-detail {
  display: grid;
  gap: 22px;
}

.complex-layouts {
  display: grid;
  gap: 18px;
}

.complex-room-groups {
  display: grid;
  gap: 16px;
}

.complex-room-group {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(21, 23, 25, 0.08);
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
}

.complex-room-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.complex-room-head h3,
.complex-room-head p {
  margin: 0;
}

.complex-room-head h3 {
  color: #151719;
  font-size: 20px;
}

.complex-room-head p {
  margin-top: 4px;
  color: #6f747a;
  font-size: 14px;
}

.complex-room-head a {
  display: inline-grid;
  min-height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 19px;
  background: rgb(206, 48, 71);
  color: #ffffff;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
}

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

.complex-plan-grid a,
.complex-plan-grid button {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 0;
  border-radius: 16px;
  background: #f8f8f8;
  padding: 10px;
  color: #202326;
  cursor: zoom-in;
  font: inherit;
}

.complex-plan-grid img {
  width: 100%;
  aspect-ratio: 1 / 0.72;
  object-fit: contain;
}

.complex-plan-grid span {
  color: #5f646b;
  font-size: 12px;
  line-height: 1.3;
}

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

.complex-apartment-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  border-radius: 14px;
  background: #f8f8f8;
  color: #202326;
  padding: 0 14px;
}

.complex-apartment-list span {
  color: #6f747a;
  font-size: 13px;
}

.complex-apartment-list strong {
  color: #151719;
  font-size: 14px;
  white-space: nowrap;
}

.rent-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: rgb(248, 248, 248);
  padding: 28px 0 0;
}

.rent-topbar {
  min-height: var(--header-height);
}

.rent-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: 18px;
}

.rent-header-actions a {
  display: inline-grid;
  min-height: 36px;
  place-items: center;
  border: 1px solid rgba(21, 23, 25, 0.08);
  border-radius: 18px;
  background: #ffffff;
  color: #202326;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
}

.rent-hero,
.rent-section,
.rent-form-shell,
.rent-account-grid {
  width: min(var(--content-width), calc(100vw - var(--content-gutter)));
  margin: 0 auto 28px;
}

.rent-hero {
  display: grid;
  place-items: start center;
  background: transparent;
  padding: 34px 0 28px;
}

.rent-hero__inner {
  display: grid;
  width: min(640px, 100%);
  justify-items: center;
  text-align: center;
}

.rent-card p {
  margin: 0 0 8px;
  color: #9a9da2;
  font-size: 13px;
}

.rent-hero h1 {
  margin: 0 0 10px;
  color: #151719;
  font-size: clamp(20px, 3.2vw, 30px);
  font-weight: 760;
  line-height: 1.08;
  text-align: center;
  text-transform: uppercase;
}

.rent-form-card h1,
.rent-auth-form h1 {
  margin: 0 0 10px;
  color: #151719;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.06;
}

.rent-hero p,
.rent-note {
  margin: 0 auto 28px;
  color: #7b8087;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
}

.rent-search-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
  min-height: 64px;
  border: 1px solid rgba(21, 23, 25, 0.08);
  border-radius: 32px;
  background: #ffffff;
  padding: 7px;
  margin: 0 auto;
}

.rent-search-form input {
  min-width: 0;
  border: 0;
  border-radius: 25px;
  background: transparent;
  color: #151719;
  padding: 0 18px;
  font-size: 15px;
  outline: none;
}

.rent-search-placeholder {
  position: absolute;
  left: 24px;
  top: 50%;
  max-width: calc(100% - 145px);
  transform: translateY(-50%);
  overflow: hidden;
  color: #8d9298;
  font-size: 15px;
  pointer-events: none;
  white-space: nowrap;
}

.rent-search-placeholder.hidden {
  display: none;
}

.rent-search-form button {
  display: grid;
  width: 50px;
  min-width: 50px;
  height: 50px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(206, 48, 71);
  color: #ffffff;
  cursor: pointer;
}

.rent-search-form svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rent-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  width: min(100%, 640px);
  margin: 18px auto 0;
}

.rent-suggestions button {
  min-height: 38px;
  border: 1px solid rgba(21, 23, 25, 0.08);
  border-radius: 999px;
  background: #ffffff;
  color: #202326;
  cursor: pointer;
  padding: 0 18px;
  font-size: 13px;
}

.rent-owner-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(var(--content-width), calc(100vw - var(--content-gutter)));
  margin: 0 auto 28px;
  border-radius: 20px;
  background: #ffffff;
  padding: 16px 18px;
}

.rent-owner-strip span {
  color: #151719;
  font-weight: 600;
}

.rent-owner-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rent-hero-actions,
.rent-form-actions,
.rent-listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rent-hero-actions a,
.rent-owner-strip a,
.rent-primary-link,
.rent-form-actions button,
.rent-auth-form button,
.rent-sheet__save {
  display: inline-grid;
  min-height: 46px;
  place-items: center;
  border: 0;
  border-radius: 23px;
  background: rgb(206, 48, 71);
  color: #ffffff;
  cursor: pointer;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
}

.rent-hero-actions a + a,
.rent-owner-strip a + a,
.rent-form-actions a {
  border: 1px solid rgba(21, 23, 25, 0.08);
  background: #ffffff;
  color: #202326;
}

.rent-account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 18px;
}

.rent-card,
.rent-form-card,
.rent-listing-card,
.rent-empty {
  border-radius: 20px;
  background: #ffffff;
  padding: 22px;
}

.rent-auth-form,
.rent-form-card {
  display: grid;
  gap: 16px;
}

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

.rent-form-card label,
.rent-auth-form label {
  display: grid;
  gap: 8px;
  color: #5f646b;
  font-size: 13px;
}

.rent-form-card input,
.rent-form-card select,
.rent-form-card textarea,
.rent-auth-form input {
  min-width: 0;
  min-height: 48px;
  border: 1px solid #eceef0;
  border-radius: 16px;
  background: #ffffff;
  color: #151719;
  padding: 0 14px;
  font: inherit;
  outline: none;
}

.rent-form-card textarea {
  padding-top: 14px;
  resize: vertical;
}

.rent-sheet-buttons,
.rent-bool-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rent-sheet-buttons button {
  min-height: 42px;
  border: 1px solid rgba(21, 23, 25, 0.08);
  border-radius: 21px;
  background: #f3f4f5;
  color: #202326;
  cursor: pointer;
  padding: 0 14px;
}

.rent-bool-grid fieldset {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  margin: 0;
  border: 1px solid rgba(21, 23, 25, 0.08);
  border-radius: 21px;
  padding: 0 14px;
}

.rent-bool-grid legend {
  color: #5f646b;
  font-size: 13px;
}

.rent-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.rent-stepper span {
  border-radius: 999px;
  background: #ffffff;
  color: #8b8f95;
  padding: 8px 12px;
  font-size: 13px;
}

.rent-stepper span.active {
  background: rgb(206, 48, 71);
  color: #ffffff;
}

.rent-upload {
  display: grid;
  min-height: 160px;
  place-items: center;
  border: 1px dashed rgba(206, 48, 71, 0.45);
  border-radius: 20px;
  background: rgba(206, 48, 71, 0.06);
  color: rgb(206, 48, 71);
  cursor: pointer;
  font-weight: 500;
}

.rent-upload input {
  display: none;
}

.rent-photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rent-photo-list span {
  border-radius: 999px;
  background: #f3f4f5;
  padding: 8px 10px;
  color: #5f646b;
  font-size: 12px;
}

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

.rent-listing-card {
  min-width: 0;
}

.rent-listing-card.property-card {
  display: block;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.rent-listing-card.is-hidden {
  opacity: 0.58;
}

.rent-card-photo img.image-fallback {
  object-fit: contain;
  padding: 18%;
}

.rent-empty {
  grid-column: 1 / -1;
}

.rent-listing-actions button {
  min-height: 36px;
  border: 1px solid rgba(21, 23, 25, 0.08);
  border-radius: 18px;
  background: #ffffff;
  color: #202326;
  cursor: pointer;
  padding: 0 12px;
}

.rent-listing-actions button:last-child {
  color: rgb(206, 48, 71);
}

.rent-management {
  width: min(var(--content-width), calc(100vw - var(--content-gutter)));
  margin: 0 auto 28px;
}

.rent-management-list {
  display: grid;
  gap: 12px;
}

.rent-manage-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-radius: 20px;
  background: #ffffff;
  padding: 14px;
}

.rent-manage-card.is-hidden {
  opacity: 0.62;
}

.rent-manage-card img {
  width: 92px;
  height: 72px;
  border-radius: 14px;
  background: #f1f2f4;
  object-fit: cover;
}

.rent-manage-card strong,
.rent-manage-card span {
  display: block;
}

.rent-manage-card strong {
  color: #151719;
  font-size: 15px;
}

.rent-manage-card span,
.rent-manage-card p {
  margin: 4px 0 0;
  color: #6f747a;
  font-size: 13px;
  line-height: 1.35;
}

.rent-manage-card .rent-listing-actions {
  justify-content: flex-end;
}

.rent-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.rent-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 23, 25, 0.28);
}

.rent-sheet__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 14px;
  max-height: 78svh;
  overflow-y: auto;
  border-radius: 28px 28px 0 0;
  background: #ffffff;
  padding: 22px 20px calc(24px + env(safe-area-inset-bottom));
}

.rent-sheet__panel > button:first-child {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f5;
  cursor: pointer;
  font-size: 22px;
}

.rent-sheet__panel h2 {
  margin: 0 44px 0 0;
  color: #151719;
}

.rent-sheet__options {
  display: grid;
  gap: 8px;
}

.rent-sheet__options label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 14px;
  background: #f8f8f8;
  padding: 0 12px;
}

.home-title {
  margin: 0 0 10px;
  color: #151719;
  font-size: clamp(20px, 3.2vw, 30px);
  font-weight: 760;
  line-height: 1.08;
  text-align: center;
  text-transform: uppercase;
}

.home-subtitle {
  margin: 0 auto 28px;
  color: #7b8087;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
}

.hero-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: min(100%, 640px);
  min-height: 64px;
  border-radius: 32px;
  border: 1px solid rgba(21, 23, 25, 0.08);
  background: #ffffff;
  padding: 7px;
  margin: 0 auto;
}

.hero-search input {
  min-width: 0;
  border: 0;
  border-radius: 25px;
  background: transparent;
  color: #151719;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 400;
  outline: none;
}

.typing-placeholder {
  position: absolute;
  left: 24px;
  top: 50%;
  max-width: calc(100% - 145px);
  transform: translateY(-50%);
  overflow: hidden;
  color: #8d9298;
  font-size: 15px;
  line-height: 1.2;
  pointer-events: none;
  white-space: nowrap;
}

.typing-placeholder::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 2px;
  transform: translateY(2px);
  background: #8d9298;
  animation: caretBlink 0.9s steps(1) infinite;
}

.hero-search:focus-within .typing-placeholder,
.hero-search.has-value .typing-placeholder {
  display: none;
}

.hero-search button {
  display: grid;
  width: 50px;
  min-width: 50px;
  height: 50px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(206, 48, 71);
  color: white;
  cursor: pointer;
  padding: 0;
}

.hero-search button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sample-queries {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 18px;
  width: min(100%, 640px);
  margin-right: auto;
  margin-left: auto;
}

.sample-queries button {
  min-height: 40px;
  border: 1px solid rgba(21, 23, 25, 0.08);
  border-radius: 999px;
  background: #ffffff;
  color: #202326;
  cursor: pointer;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 400;
}

.sample-queries button:hover,
.hero-search button:hover {
  transform: translateY(-1px);
}

.dialog-page {
  display: grid;
  grid-template-rows: var(--header-height) minmax(0, 1fr);
  min-height: 100vh;
  padding: 0 0 52px;
  background: #ffffff;
  animation: pageIn 280ms ease both;
}

.dialog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  width: min(var(--content-width), calc(100vw - var(--content-gutter)));
  margin: 0 auto;
  padding: 0 28px;
  border-radius: 0 0 24px 24px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(21, 23, 25, 0.05);
}

.dialog-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #151719;
}

.dialog-brand img {
  display: block;
  width: 192px;
  height: 76px;
  object-fit: contain;
}

.dialog-brand span {
  display: none;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.dialog-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 52px;
  width: min(var(--content-width), calc(100vw - var(--content-gutter)));
  margin: 0 auto;
  min-height: 0;
  padding-top: 32px;
}

.dialog-shell {
  order: 1;
  display: flex;
  width: 100%;
  height: calc(100vh - 184px);
  min-height: 0;
  flex-direction: column;
  border: 1px solid #eceef0;
  border-radius: 28px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(21, 23, 25, 0.08);
}

.search-map-panel {
  order: 2;
  min-width: 0;
  height: calc(100vh - 184px);
  background: #ffffff;
}

.search-map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 28px;
  background: #e6eeee;
  box-shadow: 0 20px 60px rgba(21, 23, 25, 0.12);
}

.search-map__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.search-map__canvas.is-active {
  pointer-events: auto;
}

.search-map__controls {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 4;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(21, 23, 25, 0.1);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(21, 23, 25, 0.14);
}

.search-map__controls button {
  display: grid;
  width: 46px;
  height: 44px;
  place-items: center;
  border: 0;
  background: #ffffff;
  color: #151719;
  cursor: pointer;
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
}

.search-map__controls button + button {
  border-top: 1px solid rgba(21, 23, 25, 0.08);
}

.search-map__controls button:hover {
  background: #f3f4f5;
}

.search-map__empty {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 3;
  display: grid;
  max-width: 320px;
  gap: 4px;
  border: 1px solid rgba(21, 23, 25, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 16px;
  box-shadow: 0 14px 40px rgba(21, 23, 25, 0.12);
  backdrop-filter: blur(12px);
}

.search-map__empty.hidden {
  display: none;
}

.search-map__empty strong {
  color: #151719;
  font-size: 15px;
  line-height: 1.2;
}

.search-map__empty span {
  color: #6f747a;
  font-size: 13px;
  line-height: 1.35;
}

.map-price-marker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(21, 23, 25, 0.12);
  border-radius: 18px;
  background: #ffffff;
  color: #151719;
  padding: 0 12px;
  box-shadow: 0 8px 22px rgba(21, 23, 25, 0.2);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transform: translate(-50%, -100%);
  cursor: pointer;
  pointer-events: auto;
}

.map-price-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(21, 23, 25, 0.12);
  border-bottom: 1px solid rgba(21, 23, 25, 0.12);
  background: #ffffff;
  transform: translateX(-50%) rotate(45deg);
}

.yandex-price-marker {
  position: relative;
  left: auto;
  top: auto;
}

.back-link {
  width: fit-content;
  margin: 28px 52px 0;
  color: #7a7f86;
  font-size: 14px;
}

.dialog-header {
  padding: 18px 52px 10px;
}

.dialog-header p {
  margin: 0 0 6px;
  color: #8b8f95;
  font-size: 14px;
}

.dialog-header h1 {
  margin: 0;
  color: #151719;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
}

.chat-window.dialog-chat {
  flex: 1;
  padding: 18px 52px;
  background: #fafafa;
}

.dialog-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 14px 52px;
  border-top: 1px solid #eceef0;
  background: #ffffff;
}

.dialog-input-wrap {
  position: relative;
  min-width: 0;
}

.dialog-form input {
  min-height: 64px;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(21, 23, 25, 0.08);
  border-radius: 32px;
  background: #ffffff;
  color: #151719;
  padding: 0 22px;
  outline: none;
}

.dialog-placeholder {
  position: absolute;
  left: 16px;
  top: 50%;
  max-width: calc(100% - 32px);
  transform: translateY(-50%);
  overflow: hidden;
  background: linear-gradient(90deg, #b5b8bd 0%, #d9dce0 45%, #b5b8bd 90%);
  background-size: 220% 100%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: placeholderShine 2.4s linear infinite;
  pointer-events: none;
  white-space: nowrap;
}

.dialog-placeholder.hidden {
  display: none;
}

.dialog-form button {
  display: grid;
  width: 64px;
  min-width: 64px;
  height: 64px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(206, 48, 71);
  color: #ffffff;
  cursor: pointer;
  padding: 0;
}

.dialog-form button svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dialog-page .message {
  max-width: min(82%, 560px);
}

.dialog-page .message.is-new {
  animation: messageIn 380ms ease both;
}

.dialog-page .message.user.is-new {
  animation: userBubbleIn 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.dialog-page .message.user {
  align-self: flex-end;
  border-radius: 28px 28px 6px 28px;
  background: rgb(206, 48, 71);
  color: #ffffff;
}

.dialog-page .message.assistant {
  align-self: flex-start;
  border-radius: 22px 22px 22px 6px;
  background: transparent;
  color: #181a1d;
  padding: 6px 0;
  font-size: 20px;
  line-height: 1.45;
}

.dialog-page .message.thinking {
  align-self: flex-start;
  max-width: 88%;
  background: transparent;
  color: #8b8f95;
  padding: 12px 0;
  font-size: 17px;
  line-height: 1.45;
  white-space: pre-line;
}

.dialog-page .message.thinking::first-line {
  color: #8b8f95;
}

.dialog-page .message.thinking::before {
  content: "...";
  display: inline-block;
  margin-right: 10px;
  color: #a8abb0;
  font-weight: 700;
  letter-spacing: 4px;
  animation: thinkingPulse 900ms ease-in-out infinite;
}

.dialog-page .quick-actions.is-new {
  animation: messageIn 380ms ease both;
}

.dialog-results {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  animation: messageIn 420ms ease both;
}

.dialog-results > p {
  margin: 0;
  color: #8b8f95;
  font-size: 13px;
}

.dialog-results .cards-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 10px;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes userBubbleIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }

  60% {
    opacity: 1;
    transform: translateY(-2px) scale(1.01);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes thinkingPulse {
  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }
}

@keyframes caretBlink {
  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}

@keyframes placeholderShine {
  from {
    background-position: 120% 0;
  }

  to {
    background-position: -120% 0;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(219, 227, 223, 0.78);
  background: rgba(246, 247, 243, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.topnav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: white;
}

.topnav {
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.topnav a {
  padding: 8px 10px;
  border-radius: 8px;
}

.topnav a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.search-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1.22fr);
  gap: 20px;
  padding: 22px clamp(14px, 3vw, 42px) 42px;
}

.conversation-panel,
.results-panel {
  min-width: 0;
}

.conversation-panel {
  position: sticky;
  top: 88px;
  display: flex;
  height: calc(100vh - 112px);
  min-height: 620px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.assistant-head,
.result-toolbar,
.page-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.assistant-head {
  padding: 24px 24px 16px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

.assistant-head h1 {
  max-width: 520px;
  font-size: clamp(28px, 4vw, 46px);
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
}

.chat-window {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 8px 18px 18px;
}

.message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.45;
}

.message.assistant {
  align-self: flex-start;
  background: var(--surface-soft);
}

.message.user {
  align-self: flex-end;
  background: var(--accent);
  color: white;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 94%;
}

.quick-actions button,
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  cursor: pointer;
}

.quick-actions button {
  padding: 9px 12px;
}

.quick-actions button:hover {
  border-color: var(--accent);
}

.quick-actions button.selected {
  border-color: rgb(206, 48, 71);
  background: rgba(206, 48, 71, 0.1);
  color: rgb(206, 48, 71);
}

.prompt-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

textarea {
  width: 100%;
  min-height: 54px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  outline: none;
}

textarea:focus,
select:focus {
  border-color: var(--accent);
}

.prompt-form button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 720;
}

.results-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.result-toolbar,
.favorites-page,
.detail-page {
  padding: 24px;
}

.result-toolbar,
.insight-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.result-toolbar h2 {
  font-size: clamp(24px, 3vw, 34px);
}

select {
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px 12px;
}

.insight-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
}

.chip {
  padding: 7px 10px;
  color: var(--muted);
  font-size: 13px;
}

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

.property-card {
  min-width: 0;
  background: transparent;
}

.card-photo {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface-soft);
}

.property-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.34 / 1;
  object-fit: cover;
  transition: transform 220ms ease;
}

.property-card:hover img {
  transform: scale(1.025);
}

.card-badges {
  position: absolute;
  left: 8px;
  top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: calc(100% - 16px);
}

.card-badges span {
  border-radius: 999px;
  background: rgba(21, 23, 25, 0.78);
  color: #ffffff;
  padding: 5px 7px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.card-body {
  display: grid;
  gap: 4px;
  padding: 8px 1px 0;
}

.card-info {
  display: grid;
  gap: 4px;
}

.card-info h3,
.card-info p {
  margin: 0;
}

.card-info h3 {
  color: #151719;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
}

.card-info p {
  color: #6f747a;
  font-size: 12px;
  line-height: 1.3;
}

.card-meta,
.card-footer,
.detail-meta,
.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.price {
  color: #151719;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
}

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

.score {
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
}

.card-footer {
  justify-content: flex-start;
}

.save-button {
  border: 0;
  border-radius: 999px;
  background: #f1f2f4;
  color: #202326;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.save-button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.detail-page,
.favorites-page {
  width: min(var(--content-width), calc(100vw - var(--content-gutter)));
  max-width: none;
  margin: 0 auto;
  padding: 28px 0;
}

.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  width: min(var(--content-width), calc(100vw - var(--content-gutter)));
  margin: -28px auto 24px;
  padding: 0 28px;
  border-radius: 0 0 24px 24px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(21, 23, 25, 0.05);
}

.detail-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #151719;
}

.detail-brand img {
  display: block;
  width: 192px;
  height: 76px;
  object-fit: contain;
}

.detail-brand span {
  display: none;
}

.detail-back {
  display: inline-block;
  margin-bottom: 18px;
  color: #5f646b;
  font-size: 14px;
}

.ya-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.ya-detail-main {
  min-width: 0;
}

.ya-gallery {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 8px;
  margin-bottom: 22px;
}

.ya-gallery.single {
  grid-template-columns: 1fr;
}

.ya-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eceef0;
}

.ya-gallery-main {
  min-height: 430px;
  border-radius: 18px 0 0 18px;
}

.ya-gallery.single .ya-gallery-main {
  border-radius: 18px;
}

.ya-gallery-side {
  display: grid;
  gap: 8px;
}

.ya-gallery-side img {
  min-height: 138px;
}

.ya-gallery-side img:first-child {
  border-radius: 0 18px 0 0;
}

.ya-gallery-side img:last-child {
  border-radius: 0 0 18px 0;
}

.ya-gallery button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 34px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #151719;
  cursor: pointer;
  padding: 0 12px;
  font-size: 13px;
}

.ya-builder-line {
  margin: 0 52px 12px 0;
  color: #202326;
  font-size: 14px;
  font-weight: 500;
}

.ya-title-block,
.ya-section,
.ya-contact-card {
  border-radius: 18px;
  background: #ffffff;
}

.ya-title-block {
  padding: 22px;
}

.ya-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.favorite-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(21, 23, 25, 0.08);
  border-radius: 50%;
  background: #ffffff;
  color: #8b8f95;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.favorite-icon.active {
  border-color: rgba(206, 48, 71, 0.22);
  background: rgba(206, 48, 71, 0.1);
  color: rgb(206, 48, 71);
}

.ya-title-row h1 {
  margin: 0 0 8px;
  color: #151719;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.08;
}

.ya-title-row p {
  margin: 0;
  color: #6f747a;
  font-size: 15px;
}

.ya-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
}

.ya-price-row strong {
  color: #151719;
  font-size: 32px;
  font-weight: 700;
}

.ya-price-row span,
.ya-short-params span {
  color: #6f747a;
  font-size: 14px;
}

.ya-short-params {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.ya-short-params span {
  border-radius: 999px;
  background: #f3f4f5;
  padding: 8px 11px;
}

.ya-section {
  margin-top: 14px;
  padding: 22px;
}

.ya-section h2 {
  margin: 0 0 18px;
  color: #151719;
  font-size: 22px;
  font-weight: 700;
}

.ya-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.ya-section-head h2 {
  margin: 0;
}

.ya-section-head span {
  color: #6f747a;
  font-size: 14px;
}

.ya-param-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}

.ya-param-grid div {
  display: grid;
  gap: 4px;
}

.ya-param-grid span {
  color: #8a8f95;
  font-size: 13px;
}

.ya-param-grid strong {
  color: #202326;
  font-size: 15px;
  font-weight: 500;
}

.ya-plan-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: stretch;
}

.ya-plan-card a,
.ya-plan-card button {
  display: grid;
  min-height: 360px;
  place-items: center;
  border: 1px solid rgba(21, 23, 25, 0.08);
  border-radius: 14px;
  background: #f7f8f8;
  color: inherit;
  cursor: zoom-in;
  font: inherit;
  overflow: hidden;
}

.ya-plan-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  padding: 18px;
}

.plan-preview-button {
  text-align: left;
}

.plan-viewer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.plan-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 23, 25, 0.72);
  backdrop-filter: blur(8px);
}

.plan-viewer__panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(980px, 100%);
  max-height: calc(100svh - 48px);
  gap: 14px;
  border-radius: 24px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.plan-viewer__panel > button {
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f3f4f5;
  color: #151719;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.plan-viewer__panel strong {
  padding-right: 52px;
  color: #151719;
  font-size: 18px;
}

.plan-viewer__panel img {
  display: block;
  width: 100%;
  max-height: calc(100svh - 140px);
  object-fit: contain;
  border-radius: 16px;
  background: #f7f8f8;
}

.ya-plan-meta {
  display: grid;
  gap: 10px;
}

.ya-plan-meta div {
  display: grid;
  align-content: center;
  gap: 6px;
  border-radius: 14px;
  background: #f3f4f5;
  padding: 16px;
}

.ya-plan-meta span {
  color: #8a8f95;
  font-size: 13px;
}

.ya-plan-meta strong {
  color: #202326;
  font-size: 16px;
  font-weight: 600;
}

.ya-description {
  margin: 0;
  color: #33383f;
  font-size: 16px;
  line-height: 1.6;
}

.ya-location {
  display: grid;
  gap: 14px;
}

.ya-location > div:first-child {
  display: grid;
  gap: 5px;
}

.ya-location span {
  color: #6f747a;
}

.ya-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ya-docs span {
  border-radius: 999px;
  background: #f3f4f5;
  padding: 9px 12px;
  color: #202326;
  font-size: 14px;
}

.ya-contact-card {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 14px;
  padding: 18px;
  box-shadow: 0 12px 36px rgba(21, 23, 25, 0.08);
}

.ya-contact-price strong {
  display: block;
  color: #151719;
  font-size: 25px;
  font-weight: 700;
}

.ya-contact-price span,
.ya-contact-card p {
  color: #6f747a;
  font-size: 13px;
  line-height: 1.45;
}

.ya-seller {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.ya-seller div {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: rgb(206, 48, 71);
  color: #ffffff;
  font-weight: 700;
}

.ya-seller span {
  color: #202326;
  font-size: 14px;
  font-weight: 500;
}

.ya-phone,
.ya-message,
.ya-contact-card button {
  display: grid;
  min-height: 44px;
  place-items: center;
  border-radius: 14px;
  font-size: 14px;
}

.ya-phone {
  background: rgb(206, 48, 71);
  color: #ffffff;
  font-weight: 500;
}

.ya-message,
.ya-contact-card button {
  border: 1px solid rgba(21, 23, 25, 0.08);
  background: #ffffff;
  color: #202326;
  cursor: pointer;
}

.object-ai-widget {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 40;
}

.object-ai-toggle {
  position: relative;
  display: inline-grid;
  min-height: 54px;
  place-items: center;
  border: 0;
  border-radius: 27px;
  background: rgb(206, 48, 71);
  color: #ffffff;
  cursor: pointer;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 14px 34px rgba(206, 48, 71, 0.28);
  animation: objectCtaPulse 2.2s ease-in-out infinite;
}

.object-ai-toggle::before,
.object-ai-toggle::after {
  display: none;
}

.object-ai-widget.open .object-ai-toggle::before,
.object-ai-widget.open .object-ai-toggle::after {
  display: none;
}

.object-ai-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  display: grid;
  width: min(380px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(21, 23, 25, 0.08);
  border-radius: 22px;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.96);
  transform-origin: right bottom;
  transition:
    opacity 260ms ease,
    transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 260ms ease;
  visibility: hidden;
  box-shadow: 0 20px 60px rgba(21, 23, 25, 0.16);
}

.object-ai-widget.open .object-ai-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.object-ai-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #eceef0;
}

.object-ai-head strong,
.object-ai-head span {
  display: block;
}

.object-ai-head span {
  margin-top: 2px;
  color: #6f747a;
  font-size: 13px;
}

.object-ai-head button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f5;
  cursor: pointer;
  font-size: 20px;
}

.object-ai-messages {
  display: flex;
  max-height: 330px;
  min-height: 220px;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 14px;
}

.object-ai-message {
  max-width: 86%;
  border-radius: 16px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.42;
  animation: objectMessageIn 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.object-ai-message.assistant,
.object-ai-message.thinking {
  align-self: flex-start;
  background: #f3f4f5;
  color: #202326;
}

.object-ai-message.user {
  align-self: flex-end;
  background: rgb(206, 48, 71);
  color: #ffffff;
  animation-duration: 660ms;
}

.object-ai-message.thinking {
  color: #8b8f95;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 42px;
  min-height: 18px;
}

.typing-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9a9da2;
  animation: typingDot 1s ease-in-out infinite;
}

.typing-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

.object-ai-quick {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 14px 12px;
}

.object-ai-quick.hidden {
  display: none;
}

.object-ai-quick button {
  flex: 0 0 auto;
  border: 1px solid rgba(21, 23, 25, 0.08);
  border-radius: 999px;
  background: #ffffff;
  color: #202326;
  cursor: pointer;
  padding: 8px 10px;
  font-size: 12px;
}

.object-ai-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #eceef0;
}

.object-ai-form input {
  min-width: 0;
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f3f4f5;
  padding: 0 12px;
  outline: none;
}

.object-ai-form button {
  border: 0;
  border-radius: 50%;
  background: #202326;
  color: #ffffff;
  cursor: pointer;
  font-size: 22px;
  font-weight: 300;
}

@keyframes objectMessageIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes widgetPulse {
  0% {
    opacity: 0.6;
    transform: scale(0.86);
  }

  70% {
    opacity: 0;
    transform: scale(1.28);
  }

  100% {
    opacity: 0;
    transform: scale(1.28);
  }
}

@keyframes objectCtaPulse {
  0%,
  100% {
    box-shadow: 0 14px 34px rgba(206, 48, 71, 0.24);
    transform: translateY(0);
  }

  50% {
    box-shadow: 0 18px 42px rgba(206, 48, 71, 0.38);
    transform: translateY(-1px);
  }
}

@keyframes typingDot {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.listing-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.listing-head p,
.listing-subtitle {
  margin: 0;
  color: #6f747a;
  font-size: 14px;
}

.listing-head h1 {
  margin: 5px 0 8px;
  color: #151719;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.08;
}

.photo-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 180px);
  gap: 8px;
  overflow: hidden;
  border-radius: 22px;
  background: #eceef0;
}

.photo-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-gallery .main-photo {
  grid-row: span 2;
}

.photo-gallery button {
  position: absolute;
  right: 16px;
  bottom: 16px;
  min-height: 38px;
  border: 1px solid rgba(21, 23, 25, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #151719;
  cursor: pointer;
  padding: 0 14px;
  font-size: 13px;
}

.listing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 54px;
  align-items: start;
  margin-top: 34px;
}

.listing-section {
  padding: 28px 0;
  border-bottom: 1px solid #e6e7e9;
}

.listing-section:first-child {
  padding-top: 0;
}

.listing-section h2,
.listing-overview h2 {
  margin: 0 0 16px;
  color: #151719;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.listing-overview {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.listing-overview p,
.listing-description,
.deal-list p {
  margin: 0;
  color: #4f555c;
  font-size: 16px;
  line-height: 1.55;
}

.agent-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.agent-badge > span {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgb(206, 48, 71);
  color: #ffffff;
  font-weight: 700;
}

.agent-badge strong {
  display: block;
  font-size: 14px;
}

.agent-badge p {
  margin: 2px 0 0;
  color: #7b8087;
  font-size: 13px;
  line-height: 1.3;
}

.detail-points,
.amenities-grid,
.nearby-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-points div,
.nearby-grid div {
  display: grid;
  gap: 5px;
}

.detail-points strong,
.nearby-grid strong {
  font-size: 15px;
}

.detail-points p,
.nearby-grid span {
  margin: 0;
  color: #6f747a;
  font-size: 14px;
  line-height: 1.45;
}

.amenities-grid span {
  border: 1px solid #e6e7e9;
  border-radius: 14px;
  background: #ffffff;
  padding: 13px 14px;
  color: #202326;
  font-size: 14px;
}

.deal-list {
  display: grid;
  gap: 10px;
}

.map-placeholder {
  display: grid;
  min-height: 230px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(21, 23, 25, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(21, 23, 25, 0.06) 1px, transparent 1px),
    #eef1ef;
  background-size: 34px 34px;
  color: #151719;
  text-align: center;
}

.map-placeholder span {
  color: #6f747a;
}

.real-map {
  width: 100%;
  height: 320px;
  min-height: 320px;
  overflow: hidden;
  border-radius: 22px;
  background: #eef1ef;
}

.real-map .map-placeholder {
  min-height: 320px;
  border-radius: 0;
}

.map-status strong {
  max-width: 420px;
  font-size: 18px;
  font-weight: 600;
}

.map-canvas,
.map-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.object-map-marker {
  width: 22px;
  height: 22px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: rgb(206, 48, 71);
  box-shadow: 0 8px 20px rgba(21, 23, 25, 0.24);
  transform: translate(-50%, -50%);
}

.image-fallback {
  object-fit: contain !important;
  padding: 18%;
  background: #f3f4f5;
}

.purchase-card {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
  border: 1px solid #e6e7e9;
  border-radius: 22px;
  background: #ffffff;
  padding: 22px;
  box-shadow: 0 16px 45px rgba(21, 23, 25, 0.08);
}

.purchase-price {
  margin: 0 0 5px;
  color: #151719;
  font-size: 24px;
  font-weight: 700;
}

.purchase-card span,
.purchase-note {
  color: #6f747a;
  font-size: 13px;
  line-height: 1.45;
}

.mortgage-box {
  display: grid;
  gap: 5px;
  border-radius: 16px;
  background: #f5f7f6;
  padding: 14px;
}

.mortgage-box strong {
  color: #151719;
  font-size: 15px;
}

.request-button {
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  background: rgb(206, 48, 71);
  color: #ffffff;
  cursor: pointer;
  font-weight: 500;
}

.detail-similar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: 8px;
  object-fit: cover;
}

.detail-summary {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 24px;
}

.detail-summary h1 {
  font-size: clamp(30px, 4vw, 48px);
}

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

.feature-list span,
.description-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px;
}

.description-block {
  margin-top: 18px;
  line-height: 1.6;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.secondary-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 30px;
  color: var(--muted);
}

body.offer-open {
  overflow: hidden;
}

.messenger-offer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.messenger-offer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 23, 25, 0.38);
  backdrop-filter: blur(8px);
}

.messenger-offer__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  border: 1px solid rgba(21, 23, 25, 0.08);
  border-radius: 28px;
  background: #ffffff;
  padding: 30px;
  box-shadow: 0 28px 90px rgba(21, 23, 25, 0.22);
  animation: offerIn 260ms ease both;
}

.messenger-offer__close {
  position: absolute;
  right: 16px;
  top: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f3f4f5;
  color: #151719;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.messenger-offer__badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  background: rgba(206, 48, 71, 0.1);
  color: rgb(206, 48, 71);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.messenger-offer h2 {
  margin: 16px 42px 10px 0;
  color: #151719;
  font-size: 30px;
  font-weight: 760;
  line-height: 1.08;
}

.messenger-offer p {
  margin: 0 0 22px;
  color: #5f646b;
  font-size: 15px;
  line-height: 1.5;
}

.messenger-offer__form {
  display: grid;
  gap: 14px;
}

.messenger-offer__field {
  display: grid;
  gap: 8px;
}

.messenger-offer__field span,
.messenger-offer__messengers legend {
  color: #6f747a;
  font-size: 13px;
  font-weight: 600;
}

.messenger-offer__field input {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(21, 23, 25, 0.08);
  border-radius: 29px;
  background: #f8f8f8;
  color: #151719;
  padding: 0 20px;
  font-size: 17px;
  outline: none;
}

.messenger-offer__field input:focus {
  border-color: rgba(206, 48, 71, 0.42);
  background: #ffffff;
}

.messenger-offer__messengers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  border: 0;
  padding: 0;
}

.messenger-offer__messengers legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.messenger-offer__messengers label {
  min-width: 0;
}

.messenger-offer__messengers input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.messenger-offer__messengers span {
  display: grid;
  min-height: 46px;
  place-items: center;
  border: 1px solid rgba(21, 23, 25, 0.08);
  border-radius: 23px;
  background: #ffffff;
  color: #202326;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.messenger-offer__messengers input:checked + span {
  border-color: rgb(206, 48, 71);
  background: rgb(206, 48, 71);
  color: #ffffff;
}

.messenger-offer__consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #6f747a;
  font-size: 12px;
  line-height: 1.4;
}

.messenger-offer__consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: rgb(206, 48, 71);
}

.messenger-offer__submit {
  min-height: 58px;
  border: 0;
  border-radius: 29px;
  background: rgb(206, 48, 71);
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 760;
}

.messenger-offer small {
  color: #8b8f95;
  font-size: 12px;
  text-align: center;
}

.messenger-offer__success {
  display: grid;
  gap: 8px;
  border-radius: 22px;
  background: #f8f8f8;
  padding: 20px;
  text-align: center;
}

.messenger-offer__success strong {
  color: #151719;
  font-size: 18px;
}

.messenger-offer__success span {
  color: #6f747a;
  font-size: 14px;
  line-height: 1.45;
}

@keyframes offerIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .search-layout,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .ya-detail-grid {
    grid-template-columns: 1fr;
  }

  .ya-contact-card {
    display: none;
  }

  .listing-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .purchase-card {
    position: static;
    order: -1;
  }

  .photo-gallery {
    grid-template-rows: repeat(2, 140px);
  }

  .conversation-panel {
    position: relative;
    top: auto;
    height: auto;
    min-height: 620px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
  }
}

@media (max-width: 640px) {
  :root {
    --content-gutter: 20px;
  }

  .home-install-banner {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 30px;
    width: 100%;
    min-height: 66px;
    align-items: center;
    gap: 8px;
    background: rgb(246, 240, 236);
    padding: 8px 10px;
    box-shadow: 0 12px 28px rgba(21, 23, 25, 0.08);
  }

  .home-install-banner__link {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    color: #151719;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.15;
  }

  .home-install-banner__link img {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 12px;
  }

  .home-install-banner__button {
    min-height: 36px;
    border-radius: 18px;
    background: rgb(206, 48, 71);
    color: #ffffff;
    padding: 0 13px;
    font-size: 12px;
    font-weight: 600;
    line-height: 36px;
    white-space: nowrap;
  }

  .home-install-banner__close {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    color: #6f747a;
    cursor: pointer;
    padding: 0;
    font-size: 24px;
    line-height: 1;
  }

  .messenger-offer {
    align-items: end;
    padding: 0;
  }

  .messenger-offer__panel {
    width: 100%;
    max-height: calc(100svh - 24px);
    overflow-y: auto;
    border-radius: 28px 28px 0 0;
    padding: 26px 20px calc(22px + env(safe-area-inset-bottom));
    animation: offerSheetIn 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .messenger-offer h2 {
    margin-right: 34px;
    font-size: 25px;
  }

  .messenger-offer__messengers {
    grid-template-columns: 1fr;
  }

  .messenger-offer__messengers span {
    justify-content: start;
    padding: 0 18px;
  }

  .home-brand {
    width: calc(100% - 20px);
    min-height: var(--header-height-mobile);
    padding: 14px 20px;
    border-radius: 0 0 18px 18px;
  }

  .home-search.has-install-banner .home-brand {
    top: 66px;
  }

  .home-search,
  .home-banner-section,
  .home-feed,
  .home-blog {
    padding-right: 10px;
    padding-left: 10px;
  }

  .home-banner-section {
    padding-bottom: 24px;
  }

  .home-banner {
    height: clamp(220px, 58vw, 270px);
    aspect-ratio: auto;
    border-radius: 16px;
  }

  .home-banner img {
    object-fit: cover;
    object-position: left center;
  }

  .home-search {
    min-height: auto;
    place-items: start center;
    padding-top: 124px;
    padding-bottom: 34px;
  }

  .home-search.has-install-banner {
    padding-top: 190px;
  }

  .home-search__inner {
    transform: none;
  }

  .home-brand img,
  .dialog-brand img,
  .detail-brand img {
    width: 129px;
    height: 51px;
  }

  .home-subtitle {
    max-width: 340px;
    font-size: 14px;
  }

  .home-brand-stats {
    display: grid;
    margin: 0 10px 0 auto;
    font-size: 11px;
    line-height: 1.15;
  }

  .home-brand-stats strong {
    font-size: 11px;
  }

  .detail-page,
  .favorites-page,
  .content-page {
    padding: 18px 0;
  }

  .content-page {
    padding-bottom: 0;
  }

  .detail-page {
    padding-bottom: 96px;
  }

  .detail-topbar {
    min-height: var(--header-height-mobile);
    width: min(var(--content-width), calc(100vw - var(--content-gutter)));
    margin: -18px auto 18px;
    padding: 0 20px;
    border-radius: 0 0 18px 18px;
  }

  .detail-topbar.rent-topbar {
    margin: -18px auto 18px;
  }

  .ya-gallery {
    grid-template-columns: 1fr;
  }

  .ya-gallery-main {
    min-height: 300px;
    border-radius: 18px;
  }

  .ya-gallery-side {
    display: none;
  }

  .ya-title-block,
  .ya-section,
  .ya-contact-card {
    border-radius: 16px;
    padding: 18px;
  }

  .ya-plan-card {
    grid-template-columns: 1fr;
  }

  .ya-plan-card a {
    min-height: 260px;
  }

  .ya-plan-meta {
    grid-template-columns: 1fr;
  }

  .ya-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: start;
    gap: 12px;
  }

  .ya-title-row > div {
    min-width: 0;
  }

  .ya-title-row .favorite-icon {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: end;
  }

  .ya-title-row h1 {
    font-size: 25px;
  }

  .ya-price-row strong {
    font-size: 27px;
  }

  .ya-param-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .object-ai-widget {
    right: 10px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    left: 10px;
    display: flex;
    justify-content: center;
  }

  .object-ai-toggle {
    width: auto;
    min-height: 58px;
    border-radius: 29px;
    padding: 0 20px;
    font-size: 15px;
  }

  .object-ai-panel {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    max-height: 82svh;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    transform-origin: center bottom;
  }

  .object-ai-widget.open .object-ai-panel {
    transform: translateY(0);
  }

  .object-ai-widget.open .object-ai-toggle {
    opacity: 0;
    pointer-events: none;
  }

  .object-ai-messages {
    max-height: 46svh;
  }

  .listing-head {
    display: grid;
  }

  .listing-head h1 {
    font-size: 25px;
  }

  .photo-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 230px 112px 112px;
    border-radius: 18px;
  }

  .photo-gallery .main-photo {
    grid-column: span 2;
    grid-row: span 1;
  }

  .photo-gallery button {
    right: 10px;
    bottom: 10px;
  }

  .listing-layout {
    margin-top: 24px;
  }

  .listing-overview,
  .agent-badge {
    display: grid;
  }

  .detail-points,
  .amenities-grid,
  .nearby-grid,
  .detail-similar {
    grid-template-columns: 1fr;
  }

  .purchase-card {
    border-radius: 18px;
    padding: 18px;
  }

  .dialog-page {
    display: grid;
    grid-template-rows: var(--header-height-mobile) auto;
    grid-template-columns: 1fr;
    min-height: 100svh;
    padding: 0 10px 20px;
  }

  .dialog-topbar {
    min-height: var(--header-height-mobile);
    padding: 0 20px;
    border-radius: 0 0 18px 18px;
  }

  .dialog-content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 20px;
  }

  .dialog-shell {
    order: 2;
  }

  .search-map-panel {
    order: 1;
  }

  .dialog-shell {
    width: 100%;
    height: auto;
    min-height: 72svh;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 16px 42px rgba(21, 23, 25, 0.08);
  }

  .search-map-panel {
    position: relative;
    height: auto;
    min-height: 320px;
    padding: 0;
    border-top: 0;
  }

  .search-map {
    height: 42svh;
    min-height: 300px;
    border-radius: 22px;
  }

  .search-map__empty {
    left: 16px;
    top: 16px;
    max-width: calc(100% - 32px);
  }

  .back-link {
    margin: 18px 28px 0;
    font-size: 13px;
  }

  .dialog-header {
    padding: 18px 22px 10px;
    text-align: center;
  }

  .dialog-header p {
    display: none;
  }

  .dialog-header h1 {
    font-size: 18px;
    font-weight: 500;
  }

  .chat-window.dialog-chat {
    gap: 16px;
    padding: 24px 22px 14px;
    background: #ffffff;
  }

  .dialog-page .message {
    max-width: 88%;
  }

  .dialog-page .message.user {
    padding: 12px 16px;
    border-radius: 23px 23px 6px 23px;
    font-size: 15px;
    line-height: 1.3;
  }

  .dialog-page .message.assistant {
    max-width: 94%;
    font-size: 17px;
    line-height: 1.38;
  }

  .dialog-page .message.thinking {
    max-width: 92%;
    font-size: 15px;
  }

  .dialog-form {
    position: sticky;
    bottom: 0;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 7px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    border-top: 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
  }

  .dialog-form input {
    min-height: 48px;
    border-radius: 24px;
    padding: 0 16px;
    font-size: 15px;
  }

  .dialog-form button {
    min-width: 48px;
    width: 48px;
    height: 48px;
    min-height: 48px;
    align-self: center;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
  }

  .dialog-form button::before {
    content: none;
  }

  .dialog-form button svg {
    width: 21px;
    height: 21px;
  }

  .dialog-placeholder {
    left: 16px;
    max-width: calc(100% - 30px);
    font-size: 14px;
  }

  .dialog-page .quick-actions {
    max-width: 94%;
  }

  .dialog-page .quick-actions button {
    min-height: 42px;
    border-radius: 21px;
    padding: 0 15px;
    background: #f1f2f4;
    font-size: 15px;
  }

  .dialog-results .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-grid,
  .article-hero,
  .install-hero,
  .install-steps,
  .complex-plan-grid,
  .complex-apartment-list {
    grid-template-columns: 1fr;
  }

  .complexes-hero {
    border-radius: 18px;
    padding: 18px;
  }

  .complex-room-head {
    display: grid;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    width: calc(100% - 20px);
    min-height: auto;
    border-radius: 18px 18px 0 0;
    padding: 22px 18px;
    text-align: center;
  }

  .footer-brand img {
    width: 129px;
    height: 51px;
  }

  .footer-contact {
    justify-items: center;
  }

  .article-page,
  .install-page,
  .legal-page {
    margin-bottom: 28px;
  }

  .article-hero,
  .article-body,
  .install-hero,
  .install-steps,
  .legal-page {
    border-radius: 18px;
    padding: 18px;
  }

  .install-hero {
    justify-items: start;
  }

  .install-hero img {
    width: 92px;
    height: 92px;
    border-radius: 22px;
  }

  .install-steps {
    gap: 22px;
  }

  .install-note {
    border-radius: 18px;
    padding: 16px 18px;
  }

  .rent-page {
    padding: 18px 0 0;
  }

  .rent-topbar {
    margin: -18px auto 18px;
  }

  .rent-header-actions {
    gap: 6px;
    margin-right: 10px;
  }

  .rent-header-actions a {
    min-height: 32px;
    border-radius: 16px;
    padding: 0 10px;
    font-size: 11px;
  }

  .rent-hero,
  .rent-account-grid,
  .rent-fields,
  .rent-owner-strip,
  .rent-listings,
  .rent-listing-card {
    grid-template-columns: 1fr;
  }

  .rent-hero,
  .rent-card,
  .rent-form-card,
  .rent-listing-card,
  .rent-empty {
    border-radius: 18px;
    padding: 18px;
  }

  .rent-hero {
    padding: 28px 0 22px;
  }

  .rent-listing-card.property-card {
    border-radius: 0;
    padding: 0;
  }

  .rent-hero h1 {
    font-size: 24px;
  }

  .rent-form-card h1,
  .rent-auth-form h1 {
    font-size: 28px;
  }

  .rent-hero-actions,
  .rent-form-actions,
  .rent-owner-strip {
    display: grid;
  }

  .rent-owner-strip div {
    display: grid;
  }

  .rent-bool-grid,
  .rent-sheet-buttons,
  .rent-manage-card,
  .rent-manage-card .rent-listing-actions {
    display: grid;
  }

  .rent-manage-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .rent-manage-card img {
    width: 76px;
    height: 64px;
  }

  .rent-manage-card .rent-listing-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .topbar,
  .prompt-form,
  .result-toolbar,
  .assistant-head,
  .page-title {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    position: static;
  }

  .prompt-form {
    display: flex;
  }

  .prompt-form button {
    min-height: 48px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .detail-hero img {
    min-height: 280px;
  }

  .object-ai-widget {
    bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .object-ai-panel {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .dialog-form {
    bottom: 0;
  }

  .hero-search input,
  .dialog-form input,
  .rent-search-form input,
  .rent-form-card input,
  .rent-form-card textarea,
  .rent-auth-form input,
  .object-ai-form input,
  .messenger-offer__field input {
    font-size: 16px;
  }
}

@keyframes offerSheetIn {
  from {
    opacity: 0;
    transform: translateY(100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
