:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f9;
  --text: #16181d;
  --text-muted: #5a5f6a;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --border: #e5e7eb;
  --max-width: 860px;
}

[data-theme="dark"] {
  --bg: #0f1115;
  --bg-alt: #171a21;
  --text: #edeef0;
  --text-muted: #9aa0ab;
  --accent: #818cf8;
  --accent-hover: #a5b4fc;
  --border: #262a33;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.nav__logo-img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.nav__links {
  display: flex;
  gap: 24px;
}

.nav__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav__links a:hover {
  color: var(--accent);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-switcher {
  position: relative;
}

.lang-switcher__button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  height: 36px;
  padding: 0 12px 0 14px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lang-switcher__button:hover {
  border-color: var(--accent);
}

.lang-switcher__button[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25);
}

.lang-switcher__caret {
  color: var(--text-muted);
  font-size: 0.7rem;
  margin-left: 2px;
  transition: transform 0.15s ease;
}

.lang-switcher__button[aria-expanded="true"] .lang-switcher__caret {
  transform: rotate(180deg);
}

.lang-switcher__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  list-style: none;
  margin: 0;
  padding: 8px;
  width: 380px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.lang-switcher.is-open .lang-switcher__list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-switcher__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: none;
  color: var(--text);
  font-size: 0.9rem;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}

.lang-switcher__option:hover {
  background: var(--bg-alt);
}

.lang-switcher__option-flag {
  font-size: 1.1rem;
}

.lang-switcher__check {
  margin-left: auto;
  color: var(--accent);
  opacity: 0;
  font-size: 0.85rem;
}

.lang-switcher__option.is-selected {
  font-weight: 600;
  background: var(--bg-alt);
}

.lang-switcher__option.is-selected .lang-switcher__check {
  opacity: 1;
}

.hero {
  padding: 96px 24px 72px;
}

.hero__eyebrow {
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.hero__name {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.1;
}

.hero__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.hero__tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
  margin: 0 0 32px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

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

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.section {
  padding: 56px 24px;
  border-top: 1px solid var(--border);
}

.section__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 16px;
}

.section__text {
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
}

.section__subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 24px 0 8px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-list a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-list__note {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.sponsor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.sponsor-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.sponsor-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.sponsor-card__icon {
  font-size: 1.6rem;
}

.sponsor-card__name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.project-card {
  position: relative;
  width: 100%;
  min-height: 260px;
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background-color: #312e81;
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 30px -12px rgba(79, 70, 229, 0.5);
  transition: transform 0.2s ease;
  border: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.project-card__iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  border: none;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.15) 0%, rgba(17, 24, 39, 0.85) 100%);
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  z-index: 1;
}

.project-card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 1;
}

.project-card__body {
  position: relative;
  z-index: 1;
}

.project-card__eyebrow {
  margin: 0 0 4px;
  font-size: 0.8rem;
  opacity: 0.85;
  font-weight: 600;
}

.project-card__title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
}

.project-card__subtitle {
  margin: 6px 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  opacity: 0.9;
}

@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }

  .nav__links {
    gap: 10px;
  }

  .nav__links a {
    font-size: 0.8rem;
  }

  .lang-switcher__button {
    padding: 0 10px;
  }

  #langButtonName {
    display: none;
  }

  .lang-switcher__list {
    width: calc(100vw - 32px);
    grid-template-columns: 1fr;
    right: -8px;
  }
}

.footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
