:root {
  --sky-deep: #0b2748;
  --sky-mid: #164a7a;
  --cyan: #1f8fbf;
  --cyan-bright: #2eb5d8;
  --ink: #0e2540;
  --ink-soft: #4a6280;
  --fog: #eef5fb;
  --paper: #ffffff;
  --line: #d5e3ef;
  --nav-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--sky-deep);
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  flex: 1;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--sky-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.7rem;
  padding: 0.65rem 1.2rem;
  border-radius: 0.55rem;
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--cyan);
  color: #fff;
}

.btn-primary:hover {
  background: var(--cyan-bright);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: color-mix(in srgb, #fff 55%, transparent);
}

.hero-brand-panel .btn-ghost {
  color: #fff;
}

.btn-ghost:hover {
  background: color-mix(in srgb, #fff 12%, transparent);
}

.btn-outline {
  background: transparent;
  color: var(--sky-deep);
  border-color: color-mix(in srgb, var(--sky-deep) 28%, transparent);
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 0.28rem auto;
  background: currentColor;
}

/* Split hero: brand band (no photo overlay) + 7-photo mosaic */
.hero--split {
  display: grid;
  grid-template-columns: minmax(18rem, 0.92fr) minmax(0, 1.35fr);
  min-height: calc(100svh - var(--nav-h));
  background: var(--sky-deep);
}

.hero-brand-panel {
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.4rem, 3.5vw, 3.25rem);
  background:
    radial-gradient(ellipse 90% 70% at 15% 20%, rgba(46, 181, 216, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 90%, rgba(22, 74, 122, 0.55), transparent 60%),
    linear-gradient(165deg, #0e355c 0%, #0b2748 48%, #071c33 100%);
  overflow: hidden;
  animation: rise 0.85s var(--ease) both;
}

.hero-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 22px,
      rgba(255, 255, 255, 0.015) 22px,
      rgba(255, 255, 255, 0.015) 23px
    );
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 26rem;
}

.hero-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 7.5vw, 6.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 0.95;
}

.hero-sub {
  margin: 1.1rem 0 0;
  max-width: 22rem;
  font-size: clamp(1.02rem, 1.8vw, 1.28rem);
  font-weight: 600;
}

.hero-lead {
  margin: 0.85rem 0 0;
  max-width: 24rem;
  color: color-mix(in srgb, #fff 78%, transparent);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-mosaic {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 0.82fr;
  grid-template-rows: 1fr 1fr 1fr;
  grid-template-areas:
    "m01 m02 m05"
    "m03 m04 m05"
    "m06 m07 m05";
  gap: 0.4rem;
  padding: 0.4rem;
  min-height: 0;
  background: #061524;
  animation: mosaic-in 1s var(--ease) 0.15s both;
}

.mosaic-cell {
  margin: 0;
  min-height: 0;
  overflow: hidden;
  background: #0a2038;
  display: grid;
  place-items: center;
}

.mosaic-cell--01 { grid-area: m01; }
.mosaic-cell--02 { grid-area: m02; }
.mosaic-cell--03 { grid-area: m03; }
.mosaic-cell--04 { grid-area: m04; }
.mosaic-cell--05 { grid-area: m05; }
.mosaic-cell--06 { grid-area: m06; }
.mosaic-cell--07 { grid-area: m07; }

.mosaic-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #0a2038;
}

.page-main {
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(ellipse 80% 40% at 10% 0%, rgba(46, 181, 216, 0.08), transparent 55%),
    linear-gradient(180deg, #f7fbfe, #fff 30%);
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  line-height: 1.15;
  color: var(--sky-deep);
}

.page-lead {
  margin: 1rem 0 0;
  max-width: 46rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section {
  margin-top: 3.25rem;
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--sky-deep);
}

.prose {
  max-width: 48rem;
  color: var(--ink-soft);
}

.prose p + p {
  margin-top: 1rem;
}

.team-list,
.activity-list,
.partner-list {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.team-list li,
.activity-list li,
.partner-list li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.team-list strong,
.activity-list strong {
  display: block;
  color: var(--sky-deep);
  font-size: 1.05rem;
}

.muted {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.news-list {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.news-item {
  display: block;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  transition: background 0.25s var(--ease);
}

.news-item:last-child {
  border-bottom: 1px solid var(--line);
}

.news-item:hover {
  background: color-mix(in srgb, var(--fog) 70%, transparent);
}

.news-date {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.news-item h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--sky-deep);
}

.news-item p {
  margin: 0.55rem 0 0;
  max-width: 48rem;
  color: var(--ink-soft);
}

.news-tags {
  margin-top: 0.75rem;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-item {
  position: relative;
}

.news-thumb {
  margin-top: 1rem;
  max-width: 18rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--fog);
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-title {
  max-width: 22ch;
}

.article .news-date {
  margin-top: 1rem;
}

.crumb {
  color: inherit;
}

.crumb:hover {
  color: var(--sky-deep);
}

.article-media {
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.article-video {
  width: 100%;
  max-height: min(70vh, 520px);
  background: #0a2038;
}

.article-gallery {
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem;
}

.article-figure {
  margin: 0;
  overflow: hidden;
  background: var(--fog);
  aspect-ratio: 4 / 3;
}

.article-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-gallery .article-figure:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.article-body {
  margin-top: 2rem;
}

.article-media-empty {
  margin: 1.75rem 0 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-back {
  margin-top: 2.5rem;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: start;
}

.contact-block {
  margin-bottom: 1.6rem;
}

.contact-block h2 {
  margin: 0 0 0.45rem;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-block a,
.contact-block p {
  margin: 0;
  color: var(--sky-deep);
  font-size: 1.15rem;
  font-weight: 650;
}

.contact-block .muted {
  margin-top: 0.35rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.rekvizity {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--fog) 65%, #fff);
}

.rekvizity h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--sky-deep);
}

.rekvizity dl {
  margin: 0;
}

.rekvizity dt {
  margin-top: 0.85rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rekvizity dd {
  margin: 0.25rem 0 0;
  color: var(--sky-deep);
  font-weight: 600;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  background: #f4f9fc;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--sky-deep);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mosaic-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 960px) {
  .hero--split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-brand-panel {
    min-height: min(58svh, 28rem);
    padding: 2.25rem 1.35rem 2rem;
  }

  .hero-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "m01 m02"
      "m03 m05"
      "m04 m05"
      "m06 m07";
    min-height: 0;
    height: auto;
  }

  .mosaic-cell {
    aspect-ratio: 4 / 3;
  }

  .mosaic-cell--05 {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .mosaic-cell--05 img {
    object-fit: contain;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .header-cta {
    display: none;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "m01 m01"
      "m02 m03"
      "m04 m05"
      "m06 m07";
  }

  .mosaic-cell--01 {
    aspect-ratio: 16 / 10;
  }

  .mosaic-cell--05 {
    aspect-ratio: 3 / 4;
  }
}
