:root {
  --bg: #050608;
  --bg-soft: #0f1115;
  --surface: #111317;
  --surface-2: #171a20;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.12);
  --text: #f6f7fb;
  --muted: #c1c6d0;
  --muted-2: #979daa;
  --accent: #67a5ff;
  --accent-2: #4287f5;
  --button-bg: #f5f5f6;
  --button-text: #0f1013;
  --container: 1380px;
  --content: 980px;
  --header-height: 94px;
  --shadow: 0 24px 60px rgba(0,0,0,0.36);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Manrope", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(920px 520px at 10% 10%, rgba(61,117,229,0.18), transparent 55%),
    linear-gradient(180deg, #07080b 0%, #060709 52%, #0a0c11 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
main { flex: 1; }
.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}
.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12,13,17,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.brand-logo {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
}
.brand-name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.04em;
  color: #fff;
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-link {
  color: #d4d8df;
  font-size: 16px;
  font-weight: 500;
  transition: color .18s ease;
}
.nav-link:hover { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 0 30px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--button-bg);
  color: var(--button-text);
  box-shadow: 0 16px 34px rgba(0,0,0,0.24);
}
.btn-primary:hover { background: #fff; }

.hero {
  padding: 68px 0 64px;
}
.hero-grid {
  min-height: calc(100vh - var(--header-height) - 48px);
  display: grid;
  align-items: center;
}
.hero-inner {
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: center;
}
.hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.04em;
  font-size: clamp(28px, 8vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 800;
}
.hero-line {
  display: block;
  white-space: nowrap;
}
.hero-line.accent { color: var(--accent); }
.hero p {
  width: min(940px, 100%);
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.55;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.about {
  padding: 88px 0 72px;
  scroll-margin-top: 120px;
}
.about-panel {
  width: min(var(--content), 100%);
  margin: 0 auto;
  text-align: center;
}
.section-title {
  margin: 0 0 22px;
  font-size: clamp(38px, 4vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 800;
}
.about-panel p {
  margin: 0 auto 26px;
  width: min(930px, 100%);
  color: var(--muted);
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.58;
}
.about-panel p:last-child { margin-bottom: 0; }

.doc-shell {
  padding: 56px 0 40px;
}
.content-card {
  width: min(var(--content), 100%);
  margin: 0 auto;
  padding: 40px 38px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.kicker {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: #dfe4ef;
  font-size: 14px;
  font-weight: 700;
}
.doc-meta {
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 15px;
}
.rich-text h1 {
  margin: 18px 0 0;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}
.rich-text h2 {
  margin: 34px 0 14px;
  font-size: 28px;
  line-height: 1.2;
}
.rich-text p,
.rich-text li {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}
.rich-text ul { padding-left: 22px; }
.rich-text a { color: #8fc0ff; }
.contact {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(103,165,255,0.24);
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
}
.about-mini {
  padding-top: 44px;
}
.about-mini .about-panel p {
  font-size: 20px;
}

.site-footer {
  margin-top: auto;
  padding: 34px 0 30px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(180px, 0.8fr) minmax(260px, 1fr);
  gap: 32px;
  align-items: start;
}
.footer-brand-text {
  margin: 18px 0 0;
  max-width: 520px;
  color: var(--muted-2);
  font-size: 17px;
  line-height: 1.6;
}
.footer-col-title {
  margin: 6px 0 18px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-links a {
  color: var(--muted-2);
  font-size: 17px;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  color: #757b85;
  font-size: 17px;
}

@media (max-width: 1024px) {
  .hero-grid { min-height: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .container { width: min(var(--container), calc(100% - 32px)); }
  .header-inner {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav { width: 100%; justify-content: space-between; }
  .brand-logo { width: 58px; height: 58px; flex-basis: 58px; }
  .brand-name { font-size: 18px; }
  .btn { min-height: 56px; padding: 0 24px; font-size: 17px; }
  .content-card { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 560px) {
  .nav { gap: 14px; }
  .nav-link { font-size: 15px; }
  .hero {
    padding-top: 56px;
    padding-bottom: 48px;
  }
  .hero-title {
    font-size: clamp(24px, 8.8vw, 42px);
  }
  .hero p, .about-panel p { font-size: 18px; }
  .rich-text p, .rich-text li { font-size: 17px; }
}


.hero-404 {
  min-height: calc(100vh - var(--header-height) - 220px);
  display: flex;
  align-items: center;
}

.hero-title-404 .hero-line:first-child {
  white-space: normal;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: none;
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.26);
  background: rgba(255,255,255,0.04);
}

@media (max-width: 720px) {
  .hero-404 {
    min-height: auto;
  }
}
