:root {
  --brand: #032c88;
  --brand-dark: #0f2b46;
  --brand-light: #e2ebf8;
  --bg: #f1f5f9;
  --text: #1e293b;
  --muted: #64748b;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  background: var(--brand-dark);
  color: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.lang-btn {
  color: #64748b;
  text-decoration: none;
  padding: 0.25rem 0.35rem;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.lang-btn:hover {
  color: #fff;
  text-decoration: none;
}

.lang-btn.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.lang-sep {
  color: #475569;
  user-select: none;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.logo span {
  color: #93c5fd;
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: #cbd5e1;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav a:hover {
  color: #fff;
  text-decoration: none;
}

.hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  color: #f8fafc;
  padding: 4.5rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin: 0 0 1.75rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #fff;
  color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-light);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.hero-card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: var(--brand);
}

.hero-card .version {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.hero-card li {
  margin-bottom: 0.4rem;
}

.theme-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin-inline: auto;
  border: 1px solid rgba(3, 44, 136, 0.08);
}

.theme-card-head h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.5rem;
  color: var(--brand);
}

.theme-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-light);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.theme-version {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.theme-desc {
  margin: 1.25rem 0 1rem;
  color: var(--text);
  font-size: 1rem;
}

.theme-list {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--muted);
}

.theme-list li {
  margin-bottom: 0.35rem;
}

.theme-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  margin: 0 0 0.5rem;
  font-size: 1.85rem;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
  margin-inline: auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--brand);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--brand);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.feature strong {
  display: block;
  margin-bottom: 0.35rem;
}

.feature span {
  color: var(--muted);
  font-size: 0.92rem;
}

.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.about-grid p {
  color: var(--muted);
  margin-top: 0;
}

.contact-box {
  background: var(--brand-light);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-box p {
  margin: 0.35rem 0;
}

.contact-box a {
  font-weight: 600;
}

.site-footer {
  background: #0a1f33;
  color: #cbd5e1;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: #f8fafc;
}

@media (max-width: 768px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem 0;
  }

  .nav {
    display: none;
  }

  .header-end {
    gap: 0;
  }
}
