:root {
  --bg: #dfe3e9;
  --paper: rgba(255, 255, 255, 0.62);
  --ink: #1a1d23;
  --muted: #5d6470;
  --line: rgba(26, 29, 35, 0.12);
  --deep: #2a2e36;
  --steel: #6b7585;
  --mist: #f3f5f8;
  --glow: rgba(255, 255, 255, 0.7);
  --shadow: 0 18px 50px rgba(28, 33, 42, 0.12);
  --font: "Manrope", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --radius: 999px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #d9dee6;
  line-height: 1.55;
  min-height: 100%;
}
body > :not(.bg-scene) { position: relative; z-index: 1; }

a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; }

.wrap { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }

.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
  background:
    radial-gradient(900px 620px at 8% -8%, #f7f8fa 0%, transparent 58%),
    radial-gradient(760px 540px at 108% 12%, #c5ccd6 0%, transparent 52%),
    linear-gradient(165deg, #eceff3 0%, #d5dae3 42%, #c8ced8 100%);
}
.bg-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(42, 46, 54, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 46, 54, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 18%, transparent 72%);
  animation: gridshift 48s linear infinite;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.85;
  mix-blend-mode: multiply;
}
.o1 {
  width: 52vw;
  height: 52vw;
  max-width: 640px;
  max-height: 640px;
  left: -12%;
  top: -18%;
  background: radial-gradient(circle, #ffffff 0%, #d5dbe4 42%, transparent 70%);
  animation: floatA 22s ease-in-out infinite;
}
.o2 {
  width: 46vw;
  height: 46vw;
  max-width: 560px;
  max-height: 560px;
  right: -16%;
  top: 8%;
  background: radial-gradient(circle, #b7c0cc 0%, #9aa5b4 38%, transparent 68%);
  animation: floatB 28s ease-in-out infinite;
}
.o3 {
  width: 58vw;
  height: 58vw;
  max-width: 720px;
  max-height: 720px;
  left: 22%;
  bottom: -28%;
  background: radial-gradient(circle, #cfd5de 0%, #8f99a8 40%, transparent 70%);
  animation: floatC 26s ease-in-out infinite;
}
.bg-dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.topline {
  background: rgba(42, 46, 54, 0.88);
  color: #d8dde5;
  font-size: 0.82rem;
  padding: 0.5rem 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.topline .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topline a {
  color: #f4f6f8;
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 246, 248, 0.35);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.9rem 0 0.4rem;
  padding: 0.5rem 0.55rem 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(28, 33, 42, 0.08);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand strong { display: block; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand span { color: var(--muted); font-size: 0.78rem; }
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(28, 33, 42, 0.16);
}

nav { display: flex; flex-wrap: wrap; gap: 0.2rem; font-size: 0.9rem; }
nav a {
  text-decoration: none;
  color: var(--deep);
  padding: 0.48rem 0.9rem;
  border-radius: var(--radius);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
nav a:hover { background: rgba(42, 46, 54, 0.08); }
nav a.is-on {
  background: var(--deep);
  color: #f4f6f8;
  box-shadow: 0 8px 18px rgba(42, 46, 54, 0.22);
}
.menu { display: none; }

.hero {
  padding: 3.4rem 0 2.6rem;
  background: transparent;
}
.hero .wrap { animation: rise 0.85s ease both; }
.kicker {
  margin: 0 0 0.7rem;
  color: var(--steel);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
h1, h2, h3 { font-family: var(--serif); letter-spacing: -0.03em; }
h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.15rem, 5vw, 3.55rem);
  line-height: 1.06;
  max-width: 18ch;
  background: linear-gradient(180deg, #11141a 20%, #4b5563 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { max-width: 40rem; color: var(--muted); font-size: 1.08rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.55rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.88rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn.main {
  background: linear-gradient(180deg, #4d5563 0%, #2a2e36 100%);
  color: #f6f7f9;
  box-shadow:
    0 12px 28px rgba(28, 33, 42, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.btn.main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.28) 48%, transparent 64%);
  transform: translateX(-140%);
  transition: transform 0.7s ease;
}
.btn.main:hover {
  box-shadow: 0 16px 34px rgba(28, 33, 42, 0.3);
}
.btn.main:hover::after { transform: translateX(140%); }
.btn.ghost {
  border-color: rgba(42, 46, 54, 0.14);
  background: rgba(255, 255, 255, 0.62);
  color: var(--deep);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(28, 33, 42, 0.08);
}
.btn.ghost:hover {
  background: #fff;
  border-color: rgba(42, 46, 54, 0.22);
}

h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 1rem; }
.prose h3 { margin: 1.4rem 0 0.4rem; }
.table-wrap {
  overflow-x: auto;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  padding: 0 0 2rem;
}
.strip div {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  padding: 1.05rem 1.1rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(28, 33, 42, 0.06);
  animation: rise 0.7s ease both;
}
.strip div:nth-child(2) { animation-delay: 0.08s; }
.strip div:nth-child(3) { animation-delay: 0.16s; }
.strip div:nth-child(4) { animation-delay: 0.24s; }
.strip b { display: block; font-family: var(--serif); font-size: 1.45rem; color: var(--deep); }
.strip span { color: var(--muted); font-size: 0.85rem; }

.section { padding: 1.2rem 0 3.2rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  padding: 1.2rem 1.2rem 1.3rem;
  text-decoration: none;
  display: block;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(28, 33, 42, 0.07);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  animation: rise 0.75s ease both;
}
.grid .card:nth-child(2) { animation-delay: 0.08s; }
.grid .card:nth-child(3) { animation-delay: 0.16s; }
.grid .card:nth-child(4) { animation-delay: 0.08s; }
.grid .card:nth-child(5) { animation-delay: 0.16s; }
.grid .card:nth-child(6) { animation-delay: 0.24s; }
.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 44px rgba(28, 33, 42, 0.14);
  border-color: rgba(255, 255, 255, 0.95);
}
.card h3 { margin: 0.3rem 0 0.45rem; font-size: 1.25rem; color: var(--ink); }
.card p, .muted { color: var(--muted); }
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--deep);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(42, 46, 54, 0.08);
  border-radius: var(--radius);
  padding: 0.22rem 0.6rem;
}

.prose { max-width: 42rem; }
.prose p { color: #3a404a; }
.meta { color: var(--muted); font-size: 0.88rem; }

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
}
th, td { text-align: left; padding: 0.9rem 0.85rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 0.8rem; }
table a { color: var(--deep); font-weight: 600; text-decoration: none; }
table a:hover { text-decoration: underline; }

form {
  display: grid;
  gap: 0.75rem;
  max-width: 28rem;
  padding: 1.2rem;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
label { display: grid; gap: 0.35rem; font-size: 0.88rem; color: var(--muted); }
input, textarea, select {
  padding: 0.78rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  font: inherit;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #6b7585;
  box-shadow: 0 0 0 4px rgba(107, 117, 133, 0.18);
}
.ok {
  margin-top: 0.8rem;
  padding: 0.85rem 1.05rem;
  background: rgba(232, 240, 230, 0.9);
  border-radius: 16px;
  color: #215c32;
}

footer {
  background: linear-gradient(180deg, rgba(42, 46, 54, 0.94), #1f232a);
  color: #c5cbd4;
  padding: 2.2rem 0 2.5rem;
  font-size: 0.88rem;
  margin-top: 1rem;
}
footer a {
  color: #e8ebf0;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
footer a:hover { color: #fff; padding-left: 4px; }
footer strong { color: #fff; display: block; margin-bottom: 0.45rem; }
.sitemap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}
.block-head { margin: 2.4rem 0 1rem; }
.sitemap a { display: block; padding: 0.18rem 0; }
.copy {
  border-top: 1px solid rgba(232, 235, 240, 0.12);
  padding-top: 1rem;
  color: #9aa3b0;
}

@keyframes floatA {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6%, 8%) scale(1.08); }
  100% { transform: translate(-4%, 12%) scale(0.96); }
}
@keyframes floatB {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-8%, 6%) scale(1.1); }
  100% { transform: translate(5%, -6%) scale(1.02); }
}
@keyframes floatC {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6%, -8%) scale(1.06); }
  100% { transform: translate(7%, 4%) scale(0.94); }
}
@keyframes gridshift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-56px, -56px, 0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .sitemap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .strip, .grid, .sitemap { grid-template-columns: 1fr 1fr; }
  header { border-radius: 24px; align-items: flex-start; }
  .menu {
    display: inline-flex;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    padding: 0.45rem 0.85rem;
    font: inherit;
    font-weight: 700;
    color: var(--deep);
  }
  nav { display: none; }
  nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 10px;
    top: 64px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 22px;
    padding: 0.65rem;
    z-index: 20;
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
  }
  header { position: relative; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .strip, .grid, .sitemap { grid-template-columns: 1fr; }
  header { padding: 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .bg-grid, .card, .strip div, .hero .wrap, .section .wrap, .btn.main::after {
    animation: none !important;
    transition: none !important;
  }
  .card:hover, .btn:hover { transform: none; }
}
