:root {
  --ink: #102137;
  --ink-soft: #4b5d72;
  --navy: #071726;
  --navy-2: #0b253b;
  --cyan: #13b8d4;
  --cyan-deep: #087f9a;
  --gold: #f5b82e;
  --gold-soft: #fff3ce;
  --paper: #f6f8fb;
  --surface: #ffffff;
  --line: #dfe7ef;
  --success: #1f7a5a;
  --danger: #b33b43;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(4, 25, 43, 0.09);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--cyan-deep); text-underline-offset: 3px; }

a:hover { color: #055c70; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
}

.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(223, 231, 239, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-logo { display: block; width: 154px; max-height: 48px; object-fit: contain; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.nav-links { display: flex; align-items: center; gap: 22px; }

.nav-links a {
  color: #23364c;
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a[aria-current="page"], .nav-links a:hover { color: var(--cyan-deep); }

.language-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.language-switcher a {
  min-width: 34px;
  padding: 5px 8px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.82rem;
}

.language-switcher a[aria-current="true"] { color: #fff; background: var(--navy); }

.hero {
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 86% 22%, rgba(19, 184, 212, 0.25), transparent 24rem),
    linear-gradient(135deg, var(--navy), var(--navy-2));
}

.hero-grid {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 68px;
  padding-block: 92px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #84e5f4;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 { margin-top: 0; line-height: 1.16; letter-spacing: -0.025em; }

h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(2.65rem, 6vw, 5.25rem); }

h2 { margin-bottom: 16px; font-size: clamp(1.8rem, 3.5vw, 2.8rem); }

h3 { margin-bottom: 10px; font-size: 1.18rem; }

.hero h1 { font-size: clamp(2.45rem, 5vw, 4.5rem); }

.hero-meta-description {
  max-width: 720px;
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 720;
  line-height: 1.55;
}

.hero-copy { max-width: 720px; margin: 0 0 30px; color: #c6d6e4; font-size: 1rem; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 750;
  text-decoration: none;
}

.button-primary { color: #142231; background: var(--gold); }
.button-primary:hover { color: #142231; background: #ffd25f; }
.button-secondary { color: #fff; border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.07); }
.button-secondary:hover { color: #fff; background: rgba(255,255,255,.13); }

.hero-visual {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
}

.hero-orbit {
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(132, 229, 244, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(19, 184, 212, 0.04), 0 0 0 108px rgba(19, 184, 212, 0.025);
}

.hero-icon {
  position: relative;
  z-index: 2;
  width: min(260px, 72vw);
  border-radius: 25%;
  filter: drop-shadow(0 30px 36px rgba(0,0,0,.35));
}

.trust-note {
  border-bottom: 1px solid var(--line);
  background: var(--gold-soft);
}

.trust-note .container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 16px;
  color: #5f4810;
  font-size: 0.93rem;
}

.trust-note strong { color: #352804; }

.section { padding-block: 84px; }
.section-white { background: var(--surface); }
.section-dark { color: #fff; background: var(--navy); }
.section-dark p, .section-dark .section-intro { color: #c6d6e4; }
.section-header { max-width: 760px; margin-bottom: 38px; }
.section-intro { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }

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

.task-card, .card, .platform-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(4, 25, 43, 0.045);
}

.task-card { padding: 26px; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.task-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.task-card span { display: block; margin-top: 8px; color: var(--ink-soft); font-size: .95rem; }
.task-card strong { color: var(--ink); font-size: 1.12rem; }
.task-number { margin-bottom: 20px; color: var(--cyan-deep); font-weight: 850; }

.card, .platform-card { padding: 28px; }
.card p:last-child, .platform-card p:last-child { margin-bottom: 0; }
.platform-label { color: var(--cyan-deep); font-size: .78rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }

.check-list, .plain-list { margin: 22px 0 0; padding: 0; list-style: none; }
.check-list li, .plain-list li { position: relative; margin: 12px 0; padding-left: 28px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 900; }
.plain-list li::before { content: "•"; position: absolute; left: 5px; color: var(--cyan-deep); font-weight: 900; }

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 64px;
}

.info-panel { padding: 32px; border: 1px solid #244057; border-radius: var(--radius); background: #0c2235; }
.info-panel .check-list li::before { color: #6be3bd; }

.breadcrumb { padding-block: 20px; color: #617287; font-size: .88rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #9aa9b9; }

.page-hero { padding-block: 66px 72px; color: #fff; background: linear-gradient(135deg, var(--navy), #0b2d46); }
.page-hero h1 { max-width: 900px; font-size: clamp(2.35rem, 5vw, 4.2rem); }
.page-hero p { max-width: 760px; margin: 0; color: #c6d6e4; font-size: 1.08rem; }

.prose { max-width: 820px; }
.prose h2 { margin-top: 52px; }
.prose h3 { margin-top: 32px; }
.prose p, .prose li { color: #34495f; }
.prose li { margin-block: 8px; }
.prose a { font-weight: 650; }

.callout { margin-block: 28px; padding: 22px 24px; border-left: 4px solid var(--cyan); border-radius: 0 12px 12px 0; background: #edf9fb; }
.callout-warning { border-left-color: var(--gold); background: #fff8e4; }
.callout-danger { border-left-color: var(--danger); background: #fff0f1; }
.callout p:last-child { margin-bottom: 0; }

.steps { counter-reset: steps; margin: 28px 0; padding: 0; list-style: none; }
.steps li { position: relative; min-height: 54px; margin: 0 0 18px; padding-left: 64px; }
.steps li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  font-weight: 800;
}

.data-table { width: 100%; margin-block: 26px; border-collapse: collapse; border-radius: 12px; overflow: hidden; background: #fff; }
.data-table th, .data-table td { padding: 14px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: var(--ink); background: #eef4f8; }

details { margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
summary { cursor: pointer; padding: 18px 20px; color: var(--ink); font-weight: 750; }
details > div { padding: 0 20px 18px; }

.source-list { font-size: .92rem; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(240px, 1fr);
  align-items: start;
  gap: 64px;
}

.article-side { position: sticky; top: 104px; }
.article-side h2 { font-size: 1.05rem; }
.review-date { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); color: #617287 !important; font-size: .88rem; }

.site-footer { color: #b8c7d5; background: #06121e; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 36px; padding-block: 60px 44px; }
.footer-brand img { width: 150px; margin-bottom: 16px; }
.footer-brand p { max-width: 360px; margin: 0; }
.site-footer h2 { color: #fff; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-block: 8px; }
.site-footer a { color: #c9d9e7; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 22px; border-top: 1px solid #1c3042; font-size: .85rem; }

.site-footer { padding-bottom: 82px; }

.floating-actions {
  position: fixed;
  z-index: 100;
  right: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(calc(100% - 32px), 700px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 9px;
  transform: translateX(50%);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  background: rgba(6, 18, 30, .9);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .3);
  backdrop-filter: blur(14px);
}

.floating-button {
  min-width: 0;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: .87rem;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: .025em;
  text-align: center;
  text-decoration: none;
}

.floating-register { color: #102137; background: var(--gold); }
.floating-register:hover { color: #102137; background: #ffd25f; }
.floating-download { color: #fff; border-color: rgba(132, 229, 244, .52); background: var(--cyan-deep); }
.floating-download:hover { color: #fff; background: #066c83; }
.floating-button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.not-found-page { min-height: 100vh; background: var(--navy); }

@media (max-width: 940px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links {
    position: absolute;
    top: 76px;
    right: 20px;
    left: 20px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .nav-links[data-open="true"] { display: flex; }
  .nav-links a { padding: 10px 12px; }
  .language-switcher { margin: 8px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-grid { gap: 28px; padding-block: 72px; }
  .hero-visual { min-height: 300px; }
  .hero-orbit { width: 270px; height: 270px; }
  .task-grid, .card-grid, .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; gap: 36px; }
  .article-side { position: static; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand-logo { width: 128px; }
  .hero-grid { min-height: auto; padding-block: 58px; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.5rem); }
  .hero-meta-description { font-size: 1rem; }
  .hero-copy { font-size: .95rem; }
  .section { padding-block: 64px; }
  .task-grid, .card-grid, .platform-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .data-table { display: block; overflow-x: auto; }
  .hero-visual { min-height: 260px; }
  .hero-icon { width: 210px; }
  .site-footer { padding-bottom: 88px; }
  .floating-actions { width: calc(100% - 20px); bottom: max(10px, env(safe-area-inset-bottom)); gap: 7px; padding: 7px; border-radius: 15px; }
  .floating-button { height: 50px; padding-inline: 8px; font-size: clamp(.66rem, 3.1vw, .78rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
