@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #070b17;
  --bg2: #0f1a34;
  --text: #e7eeff;
  --muted: #95a6ce;
  --accent: #6ef4ff;
  --accent2: #9c7bff;
  --anchor-offset: 187px;
  --easing-smooth: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Manrope, Inter, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(circle at top, var(--bg2), var(--bg));
  color: var(--text);
  min-height: 100vh;
  scroll-padding-top: var(--anchor-offset);
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; display: inline-block; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { text-align: center; }

.hidden { display: none !important; }
.app { max-width: 1140px; margin: 0 auto; padding: 18px; }
.page-loader {
  position: fixed; inset: 0; display: grid; place-items: center;
  background: #050916; z-index: 100;
}
.loader-glow {
  width: 80px; height: 80px; border-radius: 50%;
  border: 3px solid #2b3558; border-top-color: var(--accent);
  animation: spin 1.05s linear infinite;
  will-change: transform;
}

.glass {
  background: linear-gradient(130deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
}
.site-header { display: flex; align-items: center; gap: 20px; padding: 14px 16px; position: sticky; top: 12px; z-index: 10; backdrop-filter: blur(6px) saturate(115%); -webkit-backdrop-filter: blur(6px) saturate(115%); transition: background-color .3s var(--easing-smooth), border-color .3s var(--easing-smooth); }
.site-header nav { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; text-align: center; }
.logo { width: 52px; height: 52px; }
.lang-switch { margin-left: auto; display: flex; gap: 8px; justify-content: center; }
.lang-link { padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); color: var(--text); }
.lang-link.active { background: linear-gradient(90deg, var(--accent2), var(--accent)); color: #061223; border: none; }
.hero { padding: 92px 12px 64px; text-align: center; }
.hero h1 { font-size: clamp(2rem, 6vw, 4rem); margin: 0; }
.hero h2 { color: var(--accent); font-weight: 600; }
.hero p { max-width: 720px; margin: 0 auto; color: var(--muted); text-align: center; }
.block { margin: 40px 0; }
.section-intro { max-width: 760px; margin: 0 auto 18px; text-align: center; color: var(--muted); }
section[id] { scroll-margin-top: var(--anchor-offset); }
.block h3 { font-size: 1.6rem; }
#contacts p { text-align: center; }
.contact-social {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cards, .news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.card, .news-item { padding: 18px; content-visibility: auto; contain-intrinsic-size: 250px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(180px, 220px)); justify-content: center; }
.card { max-width: 220px; margin-inline: auto; }
.team-cards {
    --team-card-width: 220px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    padding: 10px;
}
.team-cards .team-card {
  flex: 0 0 var(--team-card-width);
  margin-inline: 0;
  scroll-margin-top: calc(var(--anchor-offset) / 2);
}
.team-card {
  background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  border: none;
  outline: none;
  border-radius: 18px;
  max-width: var(--team-card-width);
  min-height: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 14px;
  box-shadow: 0 14px 32px rgba(0,0,0,.32);
  transition: transform .24s var(--easing-smooth), box-shadow .24s var(--easing-smooth);
}
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,0,0,.42);
}
.team-card.focus-highlight {
  animation: member-focus 3.2s var(--easing-smooth);
}
.team-card h4 { margin: 4px 0 8px; line-height: 1.25; }
.team-card p { margin: 0 0 8px; line-height: 1.35; }
.team-card .links { margin-top: 12px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.team-card .links a {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(110,244,255,.45);
  background: rgba(110,244,255,.08);
}
.team-card .links a:hover { text-decoration: none; background: rgba(110,244,255,.15); }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.social-icon {
  width: 15px;
  height: 15px;
}
.avatar {
  width: 100%;
  max-width: 126px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 999px;
  margin: 0 auto 12px;
  display: block;
  border: 2px solid rgba(255,255,255,.22);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.skill-note { font-size: .92rem; margin-top: -4px; }
.muted, .news-meta { color: var(--muted); }
.badge { background: rgba(156,123,255,.18); border: 1px solid rgba(156,123,255,.5); padding: 4px 10px; border-radius: 999px; font-size: .8rem; }
.news-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.news-item { display: flex; flex-direction: column; min-height: 100%; transition: transform .28s var(--easing-smooth), border-color .28s var(--easing-smooth), background .28s var(--easing-smooth); }
.news-item:hover { transform: translateY(-2px); border-color: rgba(110,244,255,.45); }
.news-body { margin-bottom: 0; }
.news-body a { word-break: break-word; }
.news-meta { margin-top: auto; padding-top: 16px; font-size: .92rem; text-align: center; }
.news-meta a { color: var(--text); border-bottom: 1px dashed rgba(231,238,255,.45); }
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.showcase-card {
  overflow: hidden;
  border-radius: 16px;
}
.showcase-card img {
  width: 100%;
  height: 172px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.showcase-content { padding: 14px; text-align: center; }
.showcase-content h4 { margin: 0 0 10px; }
.showcase-content p { margin: 0; color: var(--muted); text-align: center; }
.showcase-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.showcase-link {
  appearance: none;
  cursor: pointer;
  font: inherit;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(110,244,255,.45);
  background: rgba(110,244,255,.08);
  color: var(--text);
}
.showcase-link:hover { text-decoration: none; background: rgba(110,244,255,.15); }
.site-footer { display: flex; gap: 16px; flex-wrap: wrap; margin: 40px 0 32px; color: var(--muted); justify-content: center; text-align: center; }
.footer-disclaimer { width: 100%; margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.site-footer.reveal { transition-duration: 1s; }
.copyright { width: 100%; margin: 6px 0 0; color: var(--muted); }

.cookie-banner { position: fixed; left: 50%; transform: translateX(-50%); bottom: 12px; width: min(680px, calc(100% - 24px)); max-width: 680px; padding: 14px; border-radius: 14px; background: #121d3c; border: 1px solid rgba(255,255,255,.2); z-index: 30; }
.cookie-banner button { background: linear-gradient(90deg, var(--accent2), var(--accent)); border: 0; padding: 8px 12px; border-radius: 8px; margin-right: 8px; cursor: pointer; }
.cookie-banner .ghost { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.3); }
.doc-container { max-width: 900px; margin: 48px auto; padding: 24px; }
.doc-container h2 { margin: 26px 0 10px; text-align: left; }
.doc-container ul { margin: 8px 0 14px 20px; }
.doc-container li { margin: 5px 0; }
.doc-container hr { border: 0; border-top: 1px solid rgba(255,255,255,.18); margin: 22px 0; }
.back-link { display: inline-block; margin-bottom: 12px; }
.reveal { opacity: 0; transform: translate3d(0, 14px, 0) scale(.995); transition: opacity .85s var(--easing-smooth), transform .85s var(--easing-smooth); will-change: opacity, transform; }
.reveal.visible { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.offscreen { opacity: 0; visibility: hidden; pointer-events: none; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes member-focus {
  0%, 100% { box-shadow: 0 14px 32px rgba(0,0,0,.32); border-color: rgba(255,255,255,.14); }
  20%, 70% { box-shadow: 0 0 0 3px rgba(110,244,255,.45), 0 24px 44px rgba(0,0,0,.45); border-color: rgba(110,244,255,.6); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .offscreen { opacity: 1; visibility: visible; pointer-events: auto; }
  .news-item { transition: none; }
}

@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; justify-content: center; text-align: center; gap: 12px; }
  .site-header nav { width: 100%; justify-content: center; }
  .logo { width: 45px; height: 45px; margin: -3px;}
  .lang-switch { width: 100%; margin-left: 0; justify-content: center; }
  .card { max-width: 210px; }
  .team-cards { --team-card-width: 210px; }
}
