/* Страница «О нас»: галерея-мозаика, экипаж, ценности, место, просмотр фото */

/* ---------- Мозаика: разные размеры, лёгкие повороты ---------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 170px;
  grid-auto-flow: dense;
  gap: var(--tile-gap);
}
.mosaic__item { position: relative; border-radius: var(--radius-tile); }
.mosaic__item--tall { grid-row: span 2; }
.mosaic__item--wide { grid-column: span 2; }
.mosaic__item--big { grid-column: span 2; grid-row: span 2; }
.mosaic__item:nth-child(3n + 1) { rotate: -1deg; }
.mosaic__item:nth-child(4n + 2) { rotate: .8deg; }
.mosaic__item button {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  border-radius: inherit;
  overflow: hidden;
  cursor: zoom-in;
}
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s var(--ease-out); }
.mosaic__item button::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(12, 53, 50, .75));
  opacity: .9; transition: opacity .3s;
}
.mosaic__item button:hover img { scale: 1.05; }
.mosaic__cap {
  position: absolute; left: 16px; bottom: 12px; z-index: 1;
  font-family: var(--f-hand); font-weight: 700; font-size: 24px; line-height: 1.1;
  color: var(--c-white); text-align: left;
}
.mosaic__item--note {
  display: grid; place-items: center; align-content: center; gap: 4px;
  background: var(--c-yellow);
  rotate: 2deg;
}
.mosaic__item--note .hand { font-size: 28px; text-align: center; color: var(--c-dark); rotate: -4deg; }
.mosaic__item--note svg { width: 48px; color: var(--c-dark); rotate: 14deg; }

/* ---------- Экипаж (фирменный бирюзовый, а не тёмный — по правкам заказчика) ---------- */
.crew-section { background: var(--c-teal); }
.crew-section .section-lead { color: var(--c-white); }
.crew-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; align-items: start; }
.crew-about__text p { font-size: 18px; line-height: 1.6; color: var(--c-white); }
.crew-about__text p + p { margin-top: 16px; }
.crew-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--tile-gap); }
.crew-rule {
  position: relative;
  padding: 22px 22px 22px 54px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .13);
  font-size: 14.5px; line-height: 1.5; color: var(--c-white);
}
.crew-rule::before {
  content: ""; position: absolute; left: 20px; top: 24px;
  width: 20px; height: 20px; background: var(--c-yellow);
  -webkit-mask: var(--piece-mask) center / contain no-repeat; mask: var(--piece-mask) center / contain no-repeat;
}
.crew-rule b { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 600; color: var(--c-white); }
.crew-rule--accent { grid-column: 1 / -1; background: var(--c-yellow); color: var(--c-dark); }
.crew-rule--accent b { color: var(--c-dark); }
.crew-rule--accent::before { background: var(--c-dark); }

/* ---------- Ценности ---------- */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tile-gap); }
.value { padding: 28px; border-radius: var(--radius-tile); background: var(--c-white); font-size: 15px; line-height: 1.5; }
.value__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--c-mint-cell); color: var(--c-teal); }
.value__icon svg { width: 28px; height: 28px; }
.value__title { margin: 22px 0 8px; font-size: 34px; color: var(--c-dark); }
.value--teal { background: var(--c-teal); color: var(--c-mint-line); }
.value--teal .value__title { color: var(--c-white); }
.value--teal .value__icon { background: rgba(255, 255, 255, .14); color: var(--c-yellow); }
/* Жёлтой становится плитка под курсором, а не одна выделенная заранее (правки v2, п. 26) */
.value, .js .value[data-reveal] { transition: opacity .6s var(--ease-out), translate .6s var(--ease-out), background-color .25s, color .25s; }
.value__icon, .value__title { transition: background-color .25s, color .25s; }
@media (hover: hover) {
  .value:hover { background: var(--c-yellow); color: var(--c-dark); }
  .value:hover .value__title { color: var(--c-dark); }
  .value:hover .value__icon { background: rgba(12, 53, 50, .1); color: var(--c-dark); }
}
.value--mint { background: var(--c-mint-cell); }
.value--mint .value__icon { background: var(--c-white); }

/* ---------- Место ---------- */
.place { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tile-gap); }
.place li { padding: 26px; border-radius: var(--radius-tile); background: var(--c-white); font-size: 15px; line-height: 1.45; }
.place b { display: block; margin-bottom: 8px; font-size: 40px; line-height: .95; color: var(--c-teal); }
.place li:first-child { background: var(--c-dark); color: var(--c-mint-line); }
.place li:first-child b { color: var(--c-yellow); }

/* ---------- Юридическая панель ---------- */
.legal-panel {
  display: grid; grid-template-columns: 72px 1fr; gap: 28px;
  padding: 36px;
  border: 2px solid var(--c-mint-cell);
  border-radius: 32px;
  font-size: 16px; line-height: 1.6;
}
.legal-panel__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--c-teal); color: var(--c-white); }
.legal-panel__icon svg { width: 36px; height: 36px; }
.legal-panel__title { font-size: 40px; color: var(--c-dark); margin-bottom: 12px; }
.legal-panel p + p { margin-top: 10px; }

/* ---------- Просмотр фото ---------- */
.lightbox {
  width: min(1100px, calc(100% - 32px)); max-height: calc(100% - 32px);
  padding: 0; border: 0; background: transparent; overflow: visible;
}
.lightbox::backdrop { background: rgba(12, 53, 50, .88); backdrop-filter: blur(4px); }
.lightbox__fig { margin: 0; text-align: center; }
.lightbox__fig img { max-width: 100%; max-height: calc(100vh - 120px); margin: 0 auto; border-radius: 20px; object-fit: contain; }
.lightbox__fig figcaption { margin-top: 12px; font-family: var(--f-hand); font-weight: 700; font-size: 28px; color: var(--c-white); }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2;
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-yellow); color: var(--c-dark);
}
.lightbox__close svg, .lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__close { top: -12px; right: -12px; }
.lightbox__nav { top: 50%; margin-top: -24px; }
.lightbox__nav--prev { left: -24px; }
.lightbox__nav--next { right: -24px; }

@media (max-width: 1100px) {
  .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .crew-about { grid-template-columns: 1fr; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .place { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 140px; }
  .mosaic__item--big { grid-column: span 2; }
  .mosaic__item:nth-child(7) { grid-column: span 2; }   /* иначе рядом с высокой плиткой остаётся дыра */
  .mosaic__item, .mosaic__item:nth-child(n) { rotate: none; }
  .mosaic__cap { font-size: 20px; left: 12px; bottom: 8px; }
  .mosaic__item--note .hand { font-size: 22px; }
  .crew-about__text p { font-size: 16px; }
  .crew-rules { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .value { padding: 22px; }
  .value__title { font-size: 30px; }
  .place b { font-size: 30px; }
  .place li { padding: 18px; }
  .legal-panel { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
  .legal-panel__title { font-size: 32px; }
  .lightbox__nav--prev { left: 4px; }
  .lightbox__nav--next { right: 4px; }
  .lightbox__close { right: 4px; top: -56px; }
}
