.snimu-detail {
  width: min(1208px, calc(100% - 48px));
  margin: 20px auto 72px;
  color: #322744;
  font-family: Manrope, sans-serif;
}

.snimu-detail__crumbs {
  margin: 0 0 28px;
  color: #5f5671;
  font-size: 14px;
  line-height: 20px;
}

.snimu-detail__crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 16px;
}

.snimu-detail__crumbs a::before {
  content: "";
  width: 16px;
  height: 16px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.snimu-detail__top {
  display: grid;
  grid-template-columns: minmax(0, 800px) 368px;
  gap: 40px;
  align-items: start;
}

.snimu-detail__hero {
  position: relative;
  display: block;
  width: 100%;
  height: 533px;
  overflow: hidden;
  border-radius: 10px;
  background: #f4f2f7;
}

.snimu-detail__photo {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #ebe8f1;
  cursor: pointer;
}

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

.snimu-detail__hero-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 60px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: #322744;
  box-shadow: 0 6px 18px rgba(24, 18, 39, 0.18);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 160ms ease;
}

.snimu-detail__hero:hover .snimu-detail__hero-nav,
.snimu-detail__hero:focus-within .snimu-detail__hero-nav,
.snimu-detail__hero.snimu-detail__hero--active .snimu-detail__hero-nav {
  opacity: 1;
  pointer-events: auto;
}

.snimu-detail__hero-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.snimu-detail__hero-nav--prev {
  left: 16px;
}

.snimu-detail__hero-nav--prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.snimu-detail__hero-nav--next {
  right: 16px;
}

.snimu-detail__hero-nav--next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.snimu-detail__photo--empty::after {
  content: "Фото не загружено";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #8b849a;
  font-size: 16px;
}

.snimu-detail__all-photos {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
  color: #322744;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  box-shadow: 0 6px 18px rgba(24, 18, 39, 0.18);
  cursor: pointer;
}

.snimu-detail__all-photos svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.snimu-detail__layout {
  display: block;
  width: 800px;
  max-width: 100%;
  margin-top: 16px;
}

.snimu-detail__main {
  min-width: 0;
}

.snimu-detail__price {
  margin: 0 0 8px;
  color: #322744;
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
}

.snimu-detail__summary {
  margin: 0 0 6px;
  color: #322744;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
}

.snimu-detail__title {
  margin: 0 0 8px;
  color: #322744;
  font-size: 24px;
  font-weight: 700;
  line-height: 34px;
  letter-spacing: 0;
}

.snimu-detail__address {
  margin: 0 0 14px;
  color: #66616f;
  font-size: 17px;
  line-height: 26px;
}

.snimu-detail__quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
}

.snimu-detail__quick-fact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #ded9e7;
  border-radius: 4px;
  background: #fff;
  color: #322744;
  font-size: 15px;
  line-height: 20px;
}

.snimu-detail__quick-fact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #322744;
  flex: 0 0 auto;
}

.snimu-detail__quick-fact-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.snimu-detail__quick-fact span {
  color: #746e82;
  font-weight: 500;
}

.snimu-detail__quick-fact .snimu-detail__quick-fact-icon {
  color: #322744;
}

.snimu-detail__quick-fact strong {
  font-weight: 700;
}

.snimu-detail__section {
  padding: 30px 0;
  border-top: 1px solid #ded9e7;
}

.snimu-detail__section h2 {
  margin: 0 0 16px;
  color: #322744;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0;
}

.snimu-detail__section p {
  max-width: 800px;
  margin: 0;
  color: #322744;
  font-size: 16px;
  line-height: 26px;
}

.snimu-detail__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  max-width: 800px;
  margin: 0;
}

.snimu-detail__features div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #ebe7f1;
}

.snimu-detail__features dt {
  color: #746e82;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.snimu-detail__features dd {
  margin: 0;
  color: #322744;
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
}

.snimu-detail__contact {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid #ded9e7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(24, 18, 39, 0.08);
}

.snimu-detail__agent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 16px;
  align-items: start;
  padding-bottom: 8px;
  border-bottom: 0;
}

.snimu-detail__agent-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #322744;
  font-size: 14px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.snimu-detail__agent-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.snimu-detail__agent-info {
  min-width: 0;
}

.snimu-detail__agent-label {
  display: none;
}

.snimu-detail__agent-name {
  overflow: hidden;
  color: #322744;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snimu-detail__agent-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: #322744;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  text-decoration: underline;
  text-decoration-color: #6f3ff5;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.snimu-detail__agent-link::after {
  content: "";
  width: 14px;
  height: 14px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.snimu-detail__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  width: 100%;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: #6f3ff5;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
  cursor: pointer;
}

.snimu-detail__phone--secondary {
  border: 2px solid #322744;
  background: #fff;
  color: #322744;
}

.snimu-detail__phone svg {
  display: block;
  width: 24px;
  height: 24px;
}

.snimu-detail-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: 48px;
  background: rgba(21, 16, 34, 0.86);
}

.snimu-detail-lightbox[hidden] {
  display: none;
}

.snimu-detail-lightbox img {
  display: block;
  max-width: min(1100px, 88vw);
  max-height: 84vh;
  object-fit: contain;
}

.snimu-detail-lightbox__close,
.snimu-detail-lightbox__nav {
  position: absolute;
  border: 0;
  background: #fff;
  color: #322744;
  cursor: pointer;
}

.snimu-detail-lightbox__close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  font-size: 32px;
  line-height: 40px;
}

.snimu-detail-lightbox__nav {
  top: 50%;
  width: 48px;
  height: 64px;
  border-radius: 6px;
  transform: translateY(-50%);
}

.snimu-detail-lightbox__nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.snimu-detail-lightbox__nav--prev {
  left: 24px;
}

.snimu-detail-lightbox__nav--prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.snimu-detail-lightbox__nav--next {
  right: 24px;
}

.snimu-detail-lightbox__nav--next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.snimu-detail-lightbox__count {
  position: absolute;
  right: 24px;
  bottom: 24px;
  min-width: 58px;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(49, 37, 74, 0.94);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

@media (max-width: 900px) {
  .snimu-detail {
    width: calc(100% - 32px);
    margin: 20px auto 48px;
    padding-bottom: 82px;
  }

  .snimu-detail__crumbs {
    margin-bottom: 11px;
  }

  .snimu-detail__top {
    display: block;
  }

  .snimu-detail__hero {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 64px;
    aspect-ratio: 358 / 239;
    border-radius: 6px;
    overflow: visible;
  }

  .snimu-detail__hero-nav {
    width: 38px;
    height: 52px;
  }

  .snimu-detail__layout {
    display: block;
    width: 100%;
    margin-top: 0;
  }

  .snimu-detail__all-photos {
    right: auto;
    bottom: -50px;
    left: 0;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #ded9e7;
    border-radius: 4px;
    box-shadow: none;
  }

  .snimu-detail__price {
    font-size: 30px;
    line-height: 38px;
  }

  .snimu-detail__summary {
    font-size: 16px;
    line-height: 24px;
  }

  .snimu-detail__title {
    font-size: 20px;
    line-height: 28px;
  }

  .snimu-detail__address {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 23px;
  }

  .snimu-detail__quick-facts {
    gap: 8px;
    margin-bottom: 24px;
  }

  .snimu-detail__quick-fact {
    min-height: 34px;
    padding: 0 11px;
    font-size: 14px;
  }

  .snimu-detail__section {
    padding: 24px 0;
  }

  .snimu-detail__section h2 {
    font-size: 22px;
    line-height: 30px;
  }

  .snimu-detail__features {
    display: block;
  }

  .snimu-detail__features div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .snimu-detail__contact {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 220;
    display: block;
    margin: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid #ded9e7;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 -8px 24px rgba(24, 18, 39, 0.08);
  }

  .snimu-detail__agent {
    display: none;
  }

  .snimu-detail__phone {
    width: 100%;
    min-height: 48px;
  }

  .snimu-detail-lightbox {
    padding: 16px;
  }
}
