/* RemTeam - "О нас" and "Галерея" pages */

.page-hero {
  display: grid;
  gap: 14px;
  max-width: 840px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.page-hero h1 {
  font-size: var(--step-3);
}

.page-hero__lead {
  max-width: 68ch;
  font-size: var(--step-1);
  color: var(--muted);
}

.about-page {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.about-page__story p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.about-page__story p + p {
  margin-top: 14px;
}

.about-page__story h2 {
  margin-top: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
  font-size: var(--step-2);
}

.about-principles {
  display: grid;
  gap: 14px;
}

.about-principles li {
  display: grid;
  gap: 3px;
  padding-left: 18px;
  border-left: 2px solid var(--brand-500);
}

.about-principles strong {
  font-family: var(--font-head);
  color: var(--ink);
}

.about-principles span {
  font-size: 0.92rem;
  color: var(--muted);
}

.about-page__facts {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 28px);
  background: var(--brand-50);
  border-radius: var(--r-lg);
}

.about-fact {
  display: grid;
  gap: 2px;
}

.about-fact + .about-fact {
  padding-top: 14px;
  border-top: 1px solid rgba(31, 151, 233, 0.18);
}

.about-fact span {
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-fact strong {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
  color: var(--brand-700);
}

.about__facts-inline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.about__fact {
  display: grid;
  gap: 4px;
}

.about__fact > span {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.about__fact strong {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.15;
  color: var(--brand-700);
}

.about__fact .about__fact-text {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.about-gallery {
  margin-top: clamp(40px, 6vw, 72px);
}

.gallery-grid {
  columns: 3;
  column-gap: 16px;
}

.gallery-grid--about {
  columns: 2;
}

.gallery-item {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
  break-inside: avoid;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.photo-strip--catalog {
  grid-template-columns: repeat(3, 1fr);
}

.photo-strip a {
  display: block;
  overflow: hidden;
  border-radius: var(--r-md);
}

.photo-strip img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.photo-strip a:hover img {
  transform: scale(1.03);
}

.about__more {
  margin-top: 24px;
}

.about__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-lg);
}

.about__media img:first-child {
  margin-top: 26px;
}

.lightbox {
  width: min(1100px, 94vw);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(12, 13, 15, 0.9);
}

.lightbox__inner {
  position: relative;
  display: grid;
  place-items: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: var(--r-md);
  background: var(--bg-dark);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  backdrop-filter: blur(6px);
  transition: background 0.2s var(--ease);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.26);
}

.lightbox__close {
  top: 10px;
  right: 10px;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--prev {
  left: 10px;
}

.lightbox__nav--next {
  right: 10px;
}

.lightbox__close svg,
.lightbox__nav svg {
  width: 22px;
  height: 22px;
}

.lightbox__nav--prev svg {
  transform: rotate(180deg);
}

@media (min-width: 1025px) and (max-width: 1220px) {
  .blog-nav {
    gap: 12px;
  }

  .blog-nav a {
    font-size: 0.86rem;
  }
}

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

  .gallery-grid {
    columns: 2;
  }

  .photo-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .gallery-grid,
  .gallery-grid--about {
    columns: 1;
  }

  .photo-strip,
  .photo-strip--catalog {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__facts-inline {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about__media img:first-child {
    margin-top: 0;
  }

  .lightbox__close,
  .lightbox__nav {
    width: 40px;
    height: 40px;
  }
}
