:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-subtle: #eef5fa;
  --primary: #2f8cff;
  --accent: #78ccff;
  --ink: #12283d;
  --ink-soft: #40576b;
  --muted: #6d8092;
  --line: #dce5ec;
  --line-strong: #c9d7e2;
  --navy: #143a5d;
  --container: 1180px;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.68 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #176eaf; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #0d4d7d; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; color: #fff; background: var(--ink); }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { min-height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { color: var(--ink); font-size: 1.05rem; font-weight: 800; letter-spacing: -.025em; text-decoration: none; }
.brand::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: var(--primary); border-radius: 2px; }
.header-inner nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.header-inner nav a { color: #53697b; font-size: .91rem; font-weight: 600; text-decoration: none; transition: color .16s ease; }
.header-inner nav a:hover { color: var(--ink); }
.menu-toggle { display: none; margin-left: auto; padding: 8px 10px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; }
.home-page .site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; color: #fff; background: transparent; border-bottom: 0; backdrop-filter: none; }
.home-page .header-inner { position: relative; min-height: 82px; }
.home-page .brand { color: #fff; font-size: .95rem; font-weight: 720; letter-spacing: -.03em; }
.home-page .brand::before { display: inline-block; width: 38px; height: 20px; margin-right: 11px; vertical-align: middle; background: linear-gradient(125deg, #67dcff 0%, #7167ff 48%, #e96fc8 100%); border: 1px solid rgba(255,255,255,.42); border-radius: 3px; box-shadow: 0 0 24px rgba(108,119,255,.38); }
.home-page .header-inner nav { position: absolute; left: 50%; gap: 26px; margin-left: 0; transform: translateX(-50%); }
.home-page .header-inner nav a { position: relative; padding: 9px 0; color: rgba(255,255,255,.76); background: transparent; border: 0; border-radius: 0; font-size: .7rem; font-weight: 650; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; transition: color .2s ease; }
.home-page .header-inner nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: #fff; transform: scaleX(0); transform-origin: right center; transition: transform .28s cubic-bezier(.22,.8,.25,1); }
.home-page .header-inner nav a:hover { color: #fff; }
.home-page .header-inner nav a:hover::after { transform: scaleX(1); transform-origin: left center; }
.home-page .header-cta { position: relative; flex: 0 0 auto; min-width: max-content; min-height: 34px; margin-left: auto; padding: 7px 15px 7px 37px; color: #090a0e; background: #fff; border-color: #fff; border-radius: 999px; font-size: .68rem; font-weight: 720; letter-spacing: .045em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.home-page .header-cta::before { content: "↗"; position: absolute; left: 4px; top: 50%; display: grid; place-items: center; width: 22px; height: 22px; color: #090a0e; background: #eef0f4; border-radius: 50%; transform: translateY(-50%); transition: transform .22s ease; }
.home-page .header-cta:hover { color: #090a0e; background: rgba(255,255,255,.9); border-color: rgba(255,255,255,.9); }
.home-page .header-cta:hover::before { transform: translate(3px, -50%) rotate(8deg); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 17px;
  color: #fff; background: var(--navy); border: 1px solid var(--navy); border-radius: 7px;
  font-size: .93rem; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.button:hover { color: #fff; background: #0d2d49; border-color: #0d2d49; transform: translateY(-1px); }
.button:active { transform: scale(.985); }
.button.compact { min-height: 36px; padding: 8px 12px; font-size: .84rem; }
.text-link { color: var(--ink-soft); font-size: .92rem; font-weight: 650; text-decoration: none; }
.text-link span { display: inline-block; margin-left: 4px; transition: transform .16s ease; }
.text-link:hover span { transform: translateX(3px); }

.hero {
  position: relative; left: 50%; isolation: isolate; width: 100vw; height: 100svh; min-height: 560px;
  margin-left: -50vw; overflow: hidden; color: #fff; background: #02030a;
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.08) 20%, rgba(0,0,0,.72) 100%); pointer-events: none; }
.hero-mesh {
  position: absolute; inset: -24%; z-index: -3;
  background:
    radial-gradient(ellipse at 18% 28%, rgba(255,255,255,.98) 0 3%, rgba(157,194,255,.72) 10%, transparent 30%),
    radial-gradient(ellipse at 72% 20%, rgba(116,80,255,.96) 0 9%, rgba(48,30,122,.72) 25%, transparent 48%),
    radial-gradient(ellipse at 48% 76%, rgba(139,92,246,.92) 0 8%, rgba(61,35,134,.68) 28%, transparent 50%),
    radial-gradient(ellipse at 92% 76%, rgba(244,244,255,.75) 0 4%, rgba(83,70,152,.48) 20%, transparent 40%),
    #02030a;
  filter: saturate(1.1) contrast(1.08); transform: scale(1.06); animation: heroMesh 14s ease-in-out infinite alternate;
}
.hero-wire { position: absolute; inset: -20%; z-index: -2; opacity: .22; transform: rotate(-8deg); background: repeating-linear-gradient(104deg, transparent 0 42px, rgba(255,255,255,.22) 43px, transparent 44px 86px); mask-image: radial-gradient(ellipse at 65% 30%, #000, transparent 66%); animation: heroWire 18s linear infinite; }
.hero-filters { position: absolute; width: 0; height: 0; }
.hero-copy { position: absolute; left: max(24px, calc((100vw - var(--container)) / 2)); right: max(24px, calc((100vw - var(--container)) / 2)); bottom: clamp(28px, 5vw, 52px); z-index: 2; max-width: 900px; min-width: 0; }
.hero-badge { position: relative; display: inline-flex; margin: 0 0 18px; padding: 7px 13px; color: rgba(255,255,255,.9); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; backdrop-filter: blur(12px); filter: url(#hero-glass); font-size: .72rem; font-weight: 400; }
.hero-badge::before { content: ""; position: absolute; top: 0; left: 10px; right: 10px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent); }
.eyebrow { margin: 0 0 20px; color: #2d6f9e; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1, .page-header h1, .article-content > header h1 { max-width: 860px; margin: 0; font-size: clamp(2.55rem, 6vw, 4.85rem); line-height: 1.02; letter-spacing: -.052em; text-wrap: balance; }
.hero h1 { color: #fff; font-size: clamp(3rem, 6.6vw, 5.35rem); line-height: .94; letter-spacing: -.06em; }
.hero-title-accent { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-style: italic; letter-spacing: -.07em; }
.hero-title-tail { white-space: nowrap; }
.lead { max-width: 690px; margin: 24px 0 0; color: var(--ink-soft); font-size: clamp(1.03rem, 1.8vw, 1.2rem); }
.hero .lead { max-width: 590px; margin-top: 18px; color: rgba(255,255,255,.7); font-size: .82rem; font-weight: 400; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.hero-primary, .hero-secondary { min-height: 54px; padding: 15px 31px; border-radius: 999px; font-size: .72rem; font-weight: 760; letter-spacing: .075em; text-transform: uppercase; }
.hero-primary { color: #090a0e; background: #fff; border-color: #fff; box-shadow: 0 10px 34px rgba(255,255,255,.2); }
.hero-primary:hover { color: #090a0e; background: #dff6ff; border-color: #dff6ff; box-shadow: 0 12px 42px rgba(117,211,255,.3); }
.hero-secondary { display: inline-flex; align-items: center; justify-content: center; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.58); box-shadow: none; text-decoration: none; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.hero-secondary:hover { color: #090a0e; background: #fff; border-color: #fff; box-shadow: none; transform: translateY(-1px); }
.hero-disclosure { display: block; margin-top: 15px; color: rgba(255,255,255,.45); font-size: .66rem; }

@keyframes heroMesh { 0% { transform: translate3d(-2%, -2%, 0) scale(1.05) rotate(-1deg); } 50% { transform: translate3d(3%, 1%, 0) scale(1.12) rotate(1deg); } 100% { transform: translate3d(-1%, 4%, 0) scale(1.08) rotate(-.5deg); } }
@keyframes heroWire { to { transform: translate3d(86px, 0, 0) rotate(-8deg); } }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: clamp(70px, 10vw, 112px) 0 24px; }
.section-heading h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.15; letter-spacing: -.035em; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card, .notice, .toc, .author-box, .responsible-note, .affiliate-note { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card { display: flex; min-height: 240px; padding: 22px; flex-direction: column; transition: border-color .18s ease, transform .18s ease; }
.card:hover { transform: translateY(-2px); border-color: #9dbfd7; }
.card .eyebrow { margin-bottom: 8px; color: #4f7a98; }
.card h2 { margin: 8px 0 10px; font-size: 1.17rem; line-height: 1.35; letter-spacing: -.02em; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card p { margin: 0 0 18px; color: var(--muted); font-size: .93rem; }
.card > a:last-child { margin-top: auto; font-size: .88rem; font-weight: 650; text-decoration: none; }
.notice { margin: 26px 0; padding: 20px 22px; border-left: 3px solid var(--primary); }
.notice strong { display: block; margin-bottom: 4px; }
.notice p { margin: 0; }
.warning { background: #fffdf7; border-left-color: #c59033; }

.cta-block { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 32px; margin: clamp(64px, 9vw, 104px) 0; padding: clamp(26px, 4vw, 42px); background: #e9f3fa; border: 1px solid #c9dce9; border-radius: var(--radius); text-align: left; }
.cta-block h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.2; letter-spacing: -.035em; }
.cta-block p { max-width: 650px; margin: 2px 0 0; color: var(--ink-soft); }
.cta-block .button, .cta-block .link-disabled { grid-column: 2; grid-row: 1 / span 2; margin: 0; white-space: nowrap; }
.cta-block small { grid-column: 1 / -1; margin-top: 12px; color: var(--muted); font-size: .79rem; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 26px 0; color: var(--muted); font-size: .86rem; }
.page-header { padding: 30px 0 54px; border-bottom: 1px solid var(--line); }
.page-header .lead { margin-top: 18px; }
.article-content, .page-content { min-width: 0; max-width: 800px; margin-inline: auto; }
.article-content > header { padding: 38px 0 20px; }
.article-content h2, .page-content h2 { margin: 54px 0 14px; font-size: clamp(1.5rem, 3.5vw, 2rem); line-height: 1.24; letter-spacing: -.03em; }
.article-content h3 { margin: 36px 0 12px; font-size: 1.28rem; }
.article-content p, .page-content p { color: #354e63; overflow-wrap: break-word; }
.article-content a, .page-content a { overflow-wrap: anywhere; }
.article-content img, .page-content img { max-width: 100%; height: auto; border-radius: 4px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 24px 0; color: var(--muted); font-size: .82rem; }
.article-meta > * { padding-right: 18px; border-right: 1px solid var(--line-strong); }
.article-meta > *:last-child { padding-right: 0; border-right: 0; }
.toc { margin: 28px 0 42px; padding: 22px; background: #f0f5f8; }
.toc ol { columns: 2; margin-bottom: 0; padding-left: 20px; }
.toc li { break-inside: avoid; margin-bottom: 6px; }
.faq { margin-block: 64px; }
.faq details { margin: 0; padding: 17px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; color: var(--ink); font-weight: 700; }
.faq details p { margin-bottom: 0; }
.catalog-tools { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 20px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.catalog-tools label { color: var(--muted); font-size: .85rem; }
input, select { display: block; width: 100%; margin-top: 5px; padding: 10px 11px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; }

.site-footer { margin-top: clamp(80px, 12vw, 140px); padding: 52px 0 26px; color: #dce7ef; background: #102b44; border-top: 1px solid #0c2338; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.footer-grid p, .legal { color: #aebfcd; }
.footer-grid a { color: #dbe9f3; }
.footer-grid nav { display: grid; gap: 7px; }
.legal { margin-top: 34px; padding-top: 22px; font-size: .81rem; border-top: 1px solid rgba(255,255,255,.12); }
.link-disabled { color: var(--muted); }
:focus-visible { outline: 3px solid #68b6e7; outline-offset: 3px; }

.motion-ready .reveal { opacity: 0; transform: translateY(10px); transition: opacity .42s ease, transform .42s ease; }
.motion-ready .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { min-height: 560px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner nav { gap: 15px; }
}
@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner .button { display: none; }
  .menu-toggle { display: block; }
  .header-inner nav { display: none; position: absolute; top: 68px; left: 14px; right: 14px; margin: 0; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); flex-direction: column; align-items: stretch; }
  .header-inner nav.open { display: flex; }
  .header-inner nav a { padding: 8px; }
  .hero { height: 100dvh; min-height: 560px; }
  .home-page .header-inner { min-height: 70px; }
  .home-page .menu-toggle { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.24); border-radius: 999px; }
  .home-page .header-inner nav { top: 64px; left: 14px; right: 14px; gap: 2px; transform: none; background: rgba(8,9,18,.94); border-color: rgba(255,255,255,.16); backdrop-filter: blur(18px); }
  .home-page .header-inner nav a { color: rgba(255,255,255,.78); }
  .hero-copy { left: 20px; right: 20px; bottom: 24px; }
  .hero h1 { font-size: clamp(2.7rem, 14vw, 4.5rem); }
  .hero-title-tail { white-space: normal; }
  .hero-actions { align-items: stretch; flex-direction: column-reverse; gap: 10px; }
  .hero-primary, .hero-secondary { width: 100%; }
  .card-grid, .catalog-tools, .footer-grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .cta-block { display: block; }
  .cta-block .button, .cta-block .link-disabled { display: inline-flex; margin-top: 18px; white-space: normal; }
  .cta-block small { display: block; }
  .toc ol { columns: 1; }
}
@media (max-width: 380px) { .container { width: min(calc(100% - 20px), var(--container)); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
