﻿:root {
  --bg: #f6f4ef;
  --surface: #fffdf8;
  --text: #1f2a32;
  --muted: #5b6670;
  --brand: #0d5a7a;
  --brand-strong: #0a4660;
  --accent: #f29f05;
  --line: #d9e1e7;
  --radius: 16px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Manrope, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 8% 0%, #fff7df 0%, #f6f4ef 42%, #eef3f7 100%);
  line-height: 1.6;
}

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

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Montserrat, sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--brand);
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.95rem;
}

.nav a {
  color: #3f4951;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(115deg, rgba(8, 52, 72, 0.76) 0%, rgba(13, 90, 122, 0.68) 52%, rgba(242, 159, 5, 0.38) 100%),
    url("hero-bg.webp") center 32% / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 86% 10%, rgba(255, 255, 255, 0.3), transparent 36%);
}

.hero-content {
  position: relative;
  color: #fff;
  padding: 72px 0;
  animation: rise 0.7s ease-out both;
}

.hero-kicker {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.95;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  font-family: Montserrat, sans-serif;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  max-width: 900px;
  margin: 14px 0;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.1vw, 1.5rem);
  margin: 0 0 12px;
  color: #fff7cf;
}

.hero-text {
  max-width: 760px;
  font-size: 1.06rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.cta-center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--accent);
  color: #1e1e1e;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-small {
  padding: 9px 14px;
  font-size: 0.9rem;
}

.btn-outline {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.btn-light {
  background: #fff;
  color: var(--brand-strong);
}

.section {
  padding: 78px 0;
}

.muted {
  background: rgba(255, 255, 255, 0.56);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  margin-bottom: 18px;
}

.lead {
  max-width: 760px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.project-card,
.event-card,
.doc-card,
.person-card,
.logo-item,
.gallery-item,
.map-placeholder {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.link {
  color: var(--brand);
  font-weight: 700;
}

.project-media {
  margin: 12px 0 16px;
  border: 1px dashed #91a5b3;
  border-radius: 12px;
  padding: 12px;
  color: #5d6f7c;
}

.meta {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
  font-weight: 700;
}

.event-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.social-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 420px);
  gap: 18px;
  align-items: stretch;
}

.social-card,
.vk-widget-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.social-card h2 {
  margin-bottom: 14px;
}

.vk-widget-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 352px;
  background:
    linear-gradient(140deg, rgba(13, 90, 122, 0.08), rgba(242, 159, 5, 0.1)),
    var(--surface);
}

#vk_groups {
  width: 100%;
  min-height: 320px;
}

.avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: linear-gradient(135deg, #d6e7ef, #f7fbff);
  display: grid;
  place-items: center;
  color: #5f7280;
  font-weight: 700;
  margin-bottom: 12px;
}

.avatar-photo {
  object-fit: cover;
  object-position: center top;
  display: block;
}

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

.logo-item {
  text-align: center;
  font-weight: 700;
  color: #50606b;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 20px;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: #e9f1f6;
  border: 1px solid #c3d6e2;
  font-weight: 700;
}

.step span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.join-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
}

.join-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.join-form input,
.join-form select {
  height: 44px;
  padding: 0 12px;
  border: 1px solid #bccad5;
  border-radius: 10px;
  font: inherit;
}

.join-form button {
  grid-column: 1 / -1;
  justify-self: start;
}

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

.gallery-item {
  min-height: 120px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #5b6a75;
}

.video-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.video-list {
  display: grid;
  gap: 18px;
}

.video-frame {
  border-radius: 18px;
  overflow: hidden;
  background: #07141c;
  box-shadow: var(--shadow);
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
}

.video-content h3 {
  margin-bottom: 12px;
}

.doc-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.doc-card h3 {
  margin-bottom: 0;
}

.doc-card .cta-row {
  margin-top: 8px;
}

.contact-link,
.footer-link {
  color: var(--brand);
  font-weight: 700;
}

.map-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: #60717d;
}

.footer {
  background: #102330;
  color: #dbe6ee;
  padding: 44px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 20px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin: 6px 0;
}

.footer .btn {
  margin-bottom: 8px;
  width: 100%;
}

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

@media (max-width: 1100px) {
  .grid-4,
  .logos,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-list,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .video-card {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .brand {
    gap: 10px;
    font-size: 1.2rem;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .nav {
    display: none;
  }

  .section {
    padding: 60px 0;
  }

  .grid-2,
  .grid-3,
  .event-list,
  .join-form,
  .steps,
  .grid-4,
  .logos,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .join-form button {
    width: 100%;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
