/* КнигДекор · фотографии покупателей */

.customer-photos-page {
  background: var(--surface-page, #f3f3ef);
}

.customer-photos-container {
  width: min(1160px, calc(100% - 48px));
}

.customer-photos-crumbs {
  padding-top: 28px;
  padding-bottom: 20px;
}

.customer-photos {
  padding: 22px 0 clamp(70px, 8vw, 110px);
}

.customer-photos__head {
  margin-bottom: clamp(34px, 4.5vw, 52px);
}

.customer-photos__head h1 {
  max-width: 900px;
  margin: 0;
  font-family: "Nunito Sans", "Inter", system-ui, sans-serif;
  font-size: clamp(3rem, 5.9vw, 5.2rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.customer-photos__intro {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--c-text-muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.65;
}

.customer-photos__intro a {
  color: var(--c-accent);
  font-weight: 800;
  text-underline-offset: 4px;
}

.customer-photos__intro strong {
  color: var(--c-text);
}

.customer-photos__intro--secondary {
  margin-top: 10px;
  font-size: clamp(0.94rem, 1.25vw, 1.05rem);
}

.customer-gallery-title {
  max-width: 820px;
  margin: 0 0 24px;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.05;
  text-wrap: balance;
}

.customer-gallery {
  columns: 2;
  column-gap: 16px;
}

.customer-photo {
  position: relative;
  margin: 0 0 16px;
  overflow: hidden;
  break-inside: avoid;
  border-radius: 24px;
  background: #e4e1da;
  box-shadow: 0 12px 30px rgba(30, 33, 30, 0.055);
}

.customer-photo__open {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
}

.customer-photo__open:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: -5px;
}

.customer-photo img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.42s var(--ease);
}

.customer-photo:hover img,
.customer-photo:focus-within img {
  transform: scale(1.018);
}

.customer-photo__caption {
  display: grid;
  gap: 9px;
  padding: 18px 18px 20px;
  background: var(--surface-card, #fff);
}

.customer-photo__caption > span:first-child {
  color: var(--c-accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.customer-photo__caption strong {
  color: var(--c-text);
  font-size: 1rem;
  line-height: 1.35;
}

.customer-photo__caption p {
  margin: 0;
  color: var(--c-text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.customer-photo__product {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--c-divider);
  color: var(--c-accent);
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
}

.customer-photo__product span:last-child {
  font-size: 1rem;
}

.customer-photo__product:hover {
  color: var(--c-text);
}

.customer-observations {
  margin-top: clamp(60px, 7vw, 92px);
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--c-divider);
  border-radius: 28px;
  background: var(--surface-card, #fff);
}

.customer-observations h2 {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08;
  text-wrap: balance;
}

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

.customer-observations__grid article {
  padding: 20px;
  border-radius: 18px;
  background: var(--surface-warm);
}

.customer-observations__grid h3 {
  margin: 0 0 9px;
  font-size: 1rem;
  line-height: 1.35;
}

.customer-observations__grid p,
.customer-observations__links {
  color: var(--c-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.customer-observations__grid p {
  margin: 0;
}

.customer-observations__links {
  margin: 22px 0 0;
}

.customer-observations__links a {
  color: var(--c-accent);
  font-weight: 800;
  text-underline-offset: 4px;
}

.customer-photos-cta {
  padding: clamp(62px, 7vw, 88px) 0;
  background: #fff9e9;
}

.customer-photos-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.customer-photos-cta h2 {
  max-width: 730px;
  margin: 0;
  font-size: clamp(2.2rem, 4.3vw, 3.65rem);
  line-height: 1.02;
  text-wrap: balance;
}

.customer-photos-cta__inner > div:first-child p {
  max-width: 660px;
  margin: 14px 0 0;
  color: var(--c-text-muted);
  line-height: 1.6;
}

.customer-photos-cta__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.customer-photos-cta .btn {
  flex: 0 0 auto;
}

.customer-lightbox {
  width: min(1120px, calc(100vw - 36px));
  height: min(900px, calc(100vh - 36px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  color: #fff;
  background: #181a18;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.customer-lightbox::backdrop {
  background: rgba(17, 19, 17, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.customer-lightbox__inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.customer-lightbox__image {
  max-width: 100%;
  max-height: 100%;
  display: block;
  border-radius: 16px;
  object-fit: contain;
}

.customer-lightbox__close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #1e201e;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  font-size: 1.6rem;
  cursor: pointer;
}

.customer-lightbox__product {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 50%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  color: #fff;
  background: var(--c-accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .customer-photos-container {
    width: min(100% - 28px, 1160px);
  }

  .customer-photos-crumbs {
    padding-top: 18px;
    padding-bottom: 12px;
  }

  .customer-photos {
    padding-top: 18px;
    padding-bottom: 58px;
  }

  .customer-photos__head {
    margin-bottom: 28px;
  }

  .customer-photos__head h1 {
    font-size: clamp(2.55rem, 12vw, 3.55rem);
  }

  .customer-gallery {
    columns: 1;
    column-gap: 0;
  }

  .customer-photo {
    margin-bottom: 10px;
    border-radius: 20px;
  }

  .customer-observations {
    margin-top: 48px;
    padding: 24px 18px;
    border-radius: 22px;
  }

  .customer-observations__grid {
    grid-template-columns: 1fr;
  }

  .customer-photos-cta {
    padding: 54px 0;
  }

  .customer-photos-cta__inner {
    align-items: stretch;
    flex-direction: column;
    gap: 24px;
  }

  .customer-photos-cta .btn {
    width: 100%;
  }

  .customer-photos-cta__actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .customer-lightbox {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }

  .customer-lightbox__inner {
    padding: 16px;
  }

  .customer-lightbox__product {
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-photo img,
  .customer-photo__product {
    transition-duration: 0.01ms !important;
  }
}
