/* Patch 03 — районы, доверие, карточки, мобильная связь */

.topbar-v3 {
  box-shadow: 0 3px 18px rgba(24,26,32,.04);
}

.header-select-btn {
  padding: 11px 16px;
  min-height: auto;
  font-size: 14px;
}

.hero-v3-content {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: center;
}

.hero-v3-left h1 {
  max-width: 720px;
}

.hero-trust-cards {
  display: grid;
  gap: 14px;
}

.hero-trust-cards div {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,.12);
}

.hero-trust-cards b {
  display: block;
  color: var(--primary);
  font-size: 26px;
  margin-bottom: 4px;
}

.hero-trust-cards span {
  color: #33363c;
  font-weight: 600;
}

.districts-section {
  padding-top: 110px;
  padding-bottom: 20px;
}

.districts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.districts-grid a {
  min-height: 92px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #fff4f1);
  padding: 20px;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: end;
  transition: .2s;
}

.districts-grid a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--primary);
}

.why-section {
  padding-top: 30px;
  padding-bottom: 30px;
}

.why-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 34px;
  background: #181a20;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.why-card h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  margin: 0 0 16px;
}

.why-card p {
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  max-width: 680px;
}

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

.why-list div {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 17px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.why-list b {
  color: var(--primary);
  font-size: 20px;
}

.card-v3 {
  overflow: hidden;
}

.card-v3 .card-img {
  height: 285px;
}

.card-v3 .card-img:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.45));
  pointer-events: none;
}

.image-price {
  position: absolute;
  left: 16px;
  bottom: 15px;
  color: #fff;
  z-index: 2;
  font-size: 24px;
  font-weight: 900;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}

.card-v3 .card-badges {
  z-index: 2;
}

.card-v3 .price {
  display: none;
}

.card-v3:hover .card-img img {
  transform: scale(1.05);
}

.card-v3 .card-img img {
  transition: transform .35s ease;
}

.detail-main-top {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 26px;
  align-items: start;
  margin-bottom: 30px;
}

.detail-main-top .gallery {
  margin-bottom: 0;
}

.desktop-contact {
  position: sticky;
  top: 96px;
}

.object-price-box {
  font-size: 30px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 12px;
}

.detail-layout-v3 {
  grid-template-columns: 1fr 300px;
}

.mini-help-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
  height: fit-content;
}

.mini-help-card p {
  color: var(--muted-foreground);
  line-height: 1.55;
}

.mobile-contact-bar {
  display: none;
}

@media (max-width: 1050px) {
  .header-select-btn {
    display: none;
  }

  .hero-v3-content {
    grid-template-columns: 1fr;
  }

  .hero-trust-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-main-top,
  .detail-layout-v3 {
    grid-template-columns: 1fr;
  }

  .desktop-contact {
    position: static;
  }

  .mini-help-card {
    display: none;
  }
}

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

  .why-card {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .hero-trust-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    padding-bottom: 74px;
  }

  .districts-section {
    padding-top: 145px;
  }

  .districts-grid {
    grid-template-columns: 1fr;
  }

  .card-v3 .card-img {
    height: 260px;
  }

  .mobile-contact-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(24,26,32,.18);
    padding: 8px;
    border-radius: 18px;
  }

  .mobile-contact-bar a {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 12px 8px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-contact-bar a:nth-child(2),
  .mobile-contact-bar a:nth-child(3) {
    background: #181a20;
  }
}
