:root {
  --bg: #020617;
  --bg-soft: #020617;
  --bg-muted: #020617;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --text: #e5e7eb;
  --text-soft: #9ca3af;
  --border-subtle: #1f2937;
  --radius-lg: 18px;
  --radius-full: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.85);
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #020617 0, #000 50%, #000 100%);
  color: var(--text);
}

body {
  min-height: 100vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.88),
    transparent
  );
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

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

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, #22c55e22, transparent 60%),
    radial-gradient(circle at top right, #38bdf822, transparent 55%),
    rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
}

.nav a {
  color: var(--text-soft);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.18s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #38bdf8, #22c55e);
  transition: width 0.18s ease;
}

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

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

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

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-text h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  letter-spacing: 0.02em;
}

.hero-text p {
  margin: 0 0 16px;
  color: var(--text-soft);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.btn {
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #020617;
  box-shadow: 0 14px 35px rgba(56, 189, 248, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(56, 189, 248, 0.5);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.98);
  transform: translateY(-1px);
}

.hero-card {
  padding: 18px 18px 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, #38bdf822, transparent 55%),
    radial-gradient(circle at bottom right, #22c55e22, transparent 60%),
    linear-gradient(135deg, #020617, #020617);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
}

.hero-card h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.hero-card p {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.hero-card ul {
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 0.9rem;
  display: grid;
  gap: 4px;
}

.hero-image {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, 0.9);
}

.section {
  padding: 40px 0;
}

.section.muted {
  background: radial-gradient(circle at top, #020617, #020617 55%, #000 100%);
}

.section-title {
  margin: 0 0 22px;
  font-size: 1.4rem;
}

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

.card {
  padding: 16px 16px 18px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(51, 65, 85, 0.9);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
}

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

.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 20px;
  align-items: flex-start;
}

.about-box {
  padding: 16px 18px 18px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.about-box h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.about-box ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 0.9rem;
  display: grid;
  gap: 4px;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  padding: 16px 16px 18px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(51, 65, 85, 0.9);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
}

.article-card h3,
.article-card h2 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.article-card a {
  color: #e5e7eb;
  text-decoration: none;
}

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

.article-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.page-hero {
  padding: 60px 0 24px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: 1.7rem;
}

.page-hero p {
  margin: 0;
  color: var(--text-soft);
  max-width: 720px;
  line-height: 1.8;
}

.article-detail {
  max-width: 800px;
}

.article-detail p {
  margin: 0 0 12px;
  color: var(--text-soft);
  line-height: 1.8;
}

.detail-image {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(37, 99, 235, 0.9);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: flex-start;
}

.two-column .block {
  color: var(--text-soft);
  line-height: 1.8;
}

.site-footer {
  padding: 18px 0 22px;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-soft);
}

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

  .hero-card {
    order: -1;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .header-inner {
    gap: 10px;
  }

  .nav {
    gap: 14px;
    font-size: 0.8rem;
  }

  .hero {
    padding-top: 44px;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .list-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

