:root {
  --bg: #fbfcf8;
  --surface: #ffffff;
  --surface-soft: #f2f6ee;
  --border: #dce6d4;
  --text: #102018;
  --muted: #6b776d;
  --accent: #1e5b3b;
  --accent-strong: #123f2a;
  --accent-soft: #e3f0dc;
  --shadow: 0 22px 70px rgba(18, 63, 42, 0.14);
  --shadow-soft: 0 12px 34px rgba(18, 63, 42, 0.12);
  --radius: 22px;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, 'Helvetica Neue', Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

html,
body {
  margin: 0;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(30, 91, 59, 0.12), transparent 28rem),
    radial-gradient(circle at 90% 12%, rgba(166, 197, 144, 0.22), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, #f7faf3 45%, #eef5e9 100%);
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  background: var(--surface-soft);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.page--center {
  text-align: center;
  padding-top: 15vh;
}

.muted {
  color: var(--muted);
}

.report-page {
  position: relative;
  max-width: 1440px;
  padding: clamp(18px, 3vw, 44px) clamp(14px, 3vw, 44px) 72px;
}

.report-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(30, 91, 59, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 91, 59, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.report-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 42vw, 560px);
  padding: clamp(22px, 4vw, 56px);
  border: 1px solid rgba(30, 91, 59, 0.16);
  border-radius: clamp(26px, 4vw, 48px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 251, 243, 0.88) 58%, rgba(223, 239, 213, 0.9) 100%),
    radial-gradient(circle at 80% 24%, rgba(30, 91, 59, 0.2), transparent 24rem);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.report-hero::before,
.report-hero::after {
  content: '';
  position: absolute;
  border-radius: 999px 999px 140px 999px;
  background: var(--accent);
  opacity: 0.09;
  z-index: -1;
}

.report-hero::before {
  width: min(42vw, 520px);
  height: min(42vw, 520px);
  right: -8%;
  top: -14%;
  transform: rotate(20deg);
}

.report-hero::after {
  width: min(30vw, 360px);
  height: min(30vw, 360px);
  right: 16%;
  bottom: -18%;
  transform: rotate(-28deg);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(30, 91, 59, 0.16);
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 28px rgba(18, 63, 42, 0.08);
  backdrop-filter: blur(12px);
}

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: var(--accent);
  box-shadow: inset 0 -7px 12px rgba(0, 0, 0, 0.12);
}

.brand-mark::before {
  content: '';
  width: 18px;
  height: 14px;
  border-radius: 2px 2px 7px 7px;
  background: #fff;
  transform: translateY(4px);
}

.brand-mark::after {
  content: '';
  position: absolute;
  top: 9px;
  width: 17px;
  height: 17px;
  background: #fff;
  transform: rotate(45deg);
  border-radius: 3px;
}

.brand-mark span {
  position: absolute;
  z-index: 1;
  bottom: 11px;
  width: 5px;
  height: 8px;
  border-radius: 3px 3px 1px 1px;
  background: var(--accent);
}

.brand-word {
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.22em;
}

.hero-content {
  max-width: 860px;
  margin-top: clamp(72px, 10vw, 132px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.report-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(42px, 8vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.065em;
  color: var(--accent-strong);
}

.report-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: clamp(28px, 4vw, 44px) 0 0;
}

.report-stats div {
  min-width: min(100%, 190px);
  padding: 16px 18px;
  border: 1px solid rgba(30, 91, 59, 0.15);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
}

.report-stats dt {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.report-stats dd {
  margin: 0;
  color: var(--accent-strong);
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.report-header h1 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.01em;
}

.report-header .period,
.report-header .meta {
  margin: 4px 0;
  color: var(--muted);
}

.note {
  margin: 24px 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.report-note {
  position: relative;
  margin: clamp(18px, 3vw, 34px) 0;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow-soft);
}

.note h2 {
  margin: 0 0 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.note p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.6;
}

.gallery-section {
  position: relative;
  margin-top: clamp(28px, 5vw, 64px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(16px, 3vw, 28px);
}

.section-heading h2 {
  margin: 0;
  color: var(--accent-strong);
  font-size: clamp(30px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  grid-auto-flow: dense;
  gap: clamp(10px, 1.4vw, 18px);
}

.tile {
  --tile-delay: min(calc(var(--tile-order, 0) * 42ms), 760ms);
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 180px;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(30, 91, 59, 0.14);
  border-radius: clamp(18px, 2vw, 28px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(227, 240, 220, 0.9)),
    var(--surface-soft);
  box-shadow: 0 12px 26px rgba(18, 63, 42, 0.08);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  animation: tile-reveal 650ms cubic-bezier(0.22, 1, 0.36, 1) var(--tile-delay) forwards;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    filter 220ms ease;
}

.tile:nth-child(6n + 1),
.tile:nth-child(6n + 4) {
  aspect-ratio: 1 / 1;
}

.tile:nth-child(9n + 3) {
  grid-row: span 2;
  aspect-ratio: 4 / 6.4;
}

.tile:hover,
.tile:focus-visible {
  transform: translateY(-5px) scale(1.018);
  border-color: rgba(30, 91, 59, 0.42);
  box-shadow: 0 24px 58px rgba(18, 63, 42, 0.2);
  outline: none;
  text-decoration: none;
}

.tile:active {
  transform: translateY(-1px) scale(0.992);
}

.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 32, 20, 0.22));
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.tile:hover::after,
.tile:focus-visible::after {
  opacity: 1;
}

.tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: scale(1);
  transition: opacity 280ms ease, transform 480ms ease;
}

.js-enabled .tile img {
  opacity: 0;
  transform: scale(1.035);
}

.js-enabled .tile.is-loaded img {
  opacity: 1;
  transform: scale(1);
}

.tile-loader {
  display: none;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.65) 40%, transparent 60%),
    linear-gradient(135deg, #eef5e9, #dcebd3);
  background-size: 220% 100%, 100% 100%;
  animation: shimmer 1.35s linear infinite;
}

.js-enabled .tile-loader {
  display: block;
}

.js-enabled .tile.is-loaded .tile-loader,
.js-enabled .tile.is-broken .tile-loader {
  display: none;
}

.tile.is-broken::before {
  content: 'Фото недоступне';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.empty,
.report-empty {
  margin-top: 32px;
  color: var(--muted);
}

.report-empty {
  padding: clamp(26px, 5vw, 54px);
  border: 1px dashed rgba(30, 91, 59, 0.25);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.report-empty h2 {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.report-empty p {
  margin: 0;
}

.report-footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.report-footer strong {
  color: var(--accent-strong);
  letter-spacing: 0.14em;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(54px, 1fr) minmax(0, auto) minmax(54px, 1fr);
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  background: rgba(7, 18, 12, 0.86);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(18px);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox__figure {
  grid-column: 2;
  display: grid;
  gap: 14px;
  max-width: min(86vw, 1380px);
  max-height: 92vh;
  margin: 0;
}

.lightbox__image {
  display: block;
  max-width: min(86vw, 1380px);
  max-height: calc(92vh - 52px);
  width: auto;
  height: auto;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  object-fit: contain;
}

.lightbox__caption {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  text-align: center;
}

.lightbox__button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.lightbox__button:hover,
.lightbox__button:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  outline: none;
  transform: scale(1.05);
}

.lightbox__close {
  position: absolute;
  top: clamp(14px, 2vw, 26px);
  right: clamp(14px, 2vw, 26px);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

.lightbox__nav {
  width: clamp(44px, 5vw, 64px);
  height: clamp(56px, 7vw, 86px);
  border-radius: 999px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.8;
}

.lightbox__nav--prev {
  justify-self: end;
  margin-right: clamp(8px, 2vw, 24px);
}

.lightbox__nav--next {
  justify-self: start;
  margin-left: clamp(8px, 2vw, 24px);
}

@keyframes tile-reveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shimmer {
  to {
    background-position: -220% 0, 0 0;
  }
}

@media (max-width: 760px) {
  .report-page {
    padding-inline: 12px;
  }

  .report-hero {
    min-height: 420px;
  }

  .hero-content {
    margin-top: 88px;
  }

  .report-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .report-stats div {
    min-width: 0;
    padding: 14px;
  }

  .report-stats dd {
    font-size: 20px;
  }

  .section-heading {
    display: block;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tile,
  .tile:nth-child(9n + 3) {
    grid-row: auto;
    min-height: 150px;
    aspect-ratio: 1 / 1.18;
    border-radius: 18px;
  }

  .lightbox {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-bottom: 88px;
  }

  .lightbox__figure {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: 100%;
  }

  .lightbox__image {
    max-width: 100%;
    max-height: calc(88vh - 126px);
    border-radius: 18px;
  }

  .lightbox__nav {
    position: fixed;
    bottom: 18px;
    width: calc(50vw - 26px);
    height: 54px;
    border-radius: 999px;
    font-size: 42px;
  }

  .lightbox__nav--prev {
    left: 14px;
    margin: 0;
  }

  .lightbox__nav--next {
    right: 14px;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .tile,
  .tile:hover,
  .tile:focus-visible,
  .tile:active {
    opacity: 1;
    transform: none;
  }
}
