/* Patch 05 — премиальный объект, модалка фото, похожие объекты, о компании */

.card-v5 .image-price,
.detail-v5 .detail-price,
.detail-v5 .object-price-box {
  letter-spacing: -0.5px;
}

.gallery-v5 img {
  cursor: zoom-in;
}

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.photo-modal.active {
  display: flex;
}

.photo-modal img {
  max-width: 96vw;
  max-height: 90vh;
  border-radius: 18px;
  object-fit: contain;
}

.photo-modal button {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #181a20;
  font-size: 32px;
  cursor: pointer;
}

.contact-card-v5 {
  padding: 20px;
}

.manager-box {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff6f4;
  border: 1px solid #ffd8d1;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 16px;
}

.manager-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.manager-box b,
.manager-box span {
  display: block;
}

.manager-box span {
  color: var(--muted-foreground);
  font-size: 13px;
  margin-top: 3px;
}

.contact-trust {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 14px;
  border-radius: 16px;
  background: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.description-v5 {
  font-size: 16px;
  line-height: 1.9;
}

.similar-section {
  margin-top: 36px;
}

.districts-grid-v5 a {
  position: relative;
  overflow: hidden;
  min-height: 125px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(24,26,32,.15), rgba(24,26,32,.72)),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=900&q=80") center/cover;
}

.districts-grid-v5 a span {
  position: relative;
  z-index: 2;
}

.districts-grid-v5 a:hover {
  color: #fff;
}

.floating-pick-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 16px 22px;
  font-weight: 900;
  box-shadow: 0 10px 40px rgba(235,103,83,.35);
}

.about-hero {
  padding: 90px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(24,26,32,.78), rgba(24,26,32,.35)),
    url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.about-hero h1 {
  max-width: 850px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  margin: 0 0 18px;
}

.about-hero p {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,.82);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}

.about-text-card {
  padding: 32px;
}

.about-text-card h2 {
  margin-top: 0;
  font-size: 32px;
}

.about-side-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #181a20;
  color: #fff;
  padding: 28px;
  height: fit-content;
}

.about-side-card h3 {
  margin-top: 0;
  font-size: 24px;
}

.about-side-card div {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 14px 0;
  color: rgba(255,255,255,.85);
  font-weight: 700;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .floating-pick-btn {
    display: none;
  }
}

@media (max-width: 560px) {
  .photo-modal {
    padding: 12px;
  }

  .photo-modal button {
    top: 12px;
    right: 12px;
  }

  .about-hero {
    padding: 60px 0;
  }

  .contact-trust {
    display: none;
  }
}
