@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: 110px;
}
* { box-sizing: border-box; }
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);
}
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 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.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(8px) saturate(120%); -webkit-backdrop-filter: blur(8px) saturate(120%); }
.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[id] { scroll-margin-top: var(--anchor-offset); }
.block h3 { font-size: 1.6rem; }
.cards, .news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.card, .news-item { padding: 18px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(180px, 220px)); justify-content: center; }
.card { max-width: 220px; margin-inline: auto; }
.team-card { background: transparent; border: 0; border-radius: 0; max-width: 220px; min-height: 292px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 10px; transition: transform .28s ease, opacity .28s ease; }
.team-card .links { margin-top: auto; display: flex; justify-content: center; }
.avatar { width: 100%; max-width: 126px; aspect-ratio: 1/1; object-fit: cover; border-radius: 999px; margin: 0 auto 10px; display: block; 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-meta { margin-top: 16px; font-size: .92rem; text-align: center; }
.news-meta a { color: var(--text); border-bottom: 1px dashed rgba(231,238,255,.45); }
.site-footer { display: flex; gap: 16px; flex-wrap: wrap; margin: 40px 0 18px; color: var(--muted); justify-content: center; text-align: center; }


.news-item { transition: transform .28s ease, box-shadow .28s ease; }
.news-item:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.team-card:hover { transform: translateY(-3px); opacity: .98; }

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

.cookie-banner { position: fixed; bottom: 12px; right: 12px; max-width: 420px; padding: 14px; border-radius: 14px; background: #121d3c; border: 1px solid rgba(255,255,255,.2); }
.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; }
.back-link { display: inline-block; margin-bottom: 12px; }
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); animation: fadeInUp .5s ease both; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .loader-glow { animation: 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; }
  .lang-switch { width: 100%; margin-left: 0; justify-content: center; }
  .card { max-width: 210px; }
}
