:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card-bg: #101627;
  --border: #252b3c;
  --accent: #4f8cff;
  --accent-soft: rgba(79, 140, 255, 0.15);
  --text: #f5f5f7;
  --muted: #a1a6b5;
  --danger: #ff4f6a;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 14px 35px rgba(0, 0, 0, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111a33 0, #050816 42%, #02030a 100%);
  color: var(--text);
  min-height: 100vh;
}

/* Layout basics */

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(5, 8, 22, 0.98), rgba(5, 8, 22, 0.8));
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}

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

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #ffffff, #4f8cff 40%, #152241 75%);
  box-shadow: 0 0 18px rgba(79, 140, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #050816;
}

.logo-text span {
  display: block;
  font-weight: 600;
}

.logo-text small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

/* Navigation */

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--danger));
  transition: width 0.18s ease-out;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  width: 100%;
}

/* Language switch */

.lang-switch {
  display: flex;
  gap: 6px;
  align-items: center;
}

.lang-btn {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s ease-out;
}

.lang-btn:hover {
  background: rgba(19, 25, 48, 0.9);
}

.lang-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text);
}

/* Hero */

.hero {
  padding: 40px 0 24px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
}

.hero-subtitle {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--muted);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.hero-note {
  font-size: 13px;
  color: var(--muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.16s ease-out;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #9b7bff);
  color: #050816;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

.btn.ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(13, 18, 36, 0.6);
}

.btn.ghost:hover {
  background: rgba(25, 31, 57, 0.9);
}

/* Hero media */

.hero-media {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.2), transparent 55%),
    linear-gradient(135deg, #1b2743, #070b18 40%, #050816 100%);
  height: 190px;
  box-shadow: var(--shadow-card);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(79, 140, 255, 0.25), transparent 60%),
    radial-gradient(circle at 10% 80%, rgba(255, 102, 153, 0.2), transparent 60%);
}

.hero-label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 6px 10px;
  font-size: 11px;
  border-radius: 999px;
  background: rgba(5, 8, 22, 0.86);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.hero-list {
  margin: 0;
  padding-left: 16px;
  list-style: disc;
  color: var(--muted);
  font-size: 13px;
}

/* Sections */

.section {
  padding: 32px 0;
}

.section-alt {
  background: radial-gradient(circle at top, #0b1226 0, #050816 45%, #050816 100%);
}

.section h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.section-lead {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--muted);
  max-width: 620px;
}

/* Cards */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: rgba(9, 14, 29, 0.95);
  border-radius: var(--radius-md);
  padding: 14px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-card);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Text block */

.text-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

/* Contacts */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  background: rgba(9, 14, 29, 0.96);
  border-radius: var(--radius-md);
  padding: 14px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.contact-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.contact-card a {
  color: var(--accent);
  text-decoration: none;
}

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

/* Footer */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(5, 8, 22, 0.98);
  padding: 12px 0 16px;
  margin-top: 12px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

/* Responsive */

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .hero-media {
    order: -1;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .cards-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 26px;
  }

  .header-inner {
    align-items: flex-start;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .hero-frame {
    height: 170px;
  }
}
