:root {
  --navy: #071a3a;
  --ink: #122033;
  --muted: #5a6c82;
  --blue: #0b7cff;
  --blue-deep: #0556d6;
  --glow: #3ec6ff;
  --line: #d5e2f0;
  --light: #f3f7fd;
  --ice: #e7f1ff;
  --gold: #7eb6ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 16px/1.7 system-ui, -apple-system, "Segoe UI", sans-serif;
}
h1, h2, h3 {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.18;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); margin: 0.3em 0; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.45rem); margin: 0.25em 0 0.55em; }
h3 { font-size: 1.2rem; margin: 0.55em 0 0.4em; }
p { margin: 0.45em 0 1.1em; }
a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--glow);
  outline-offset: 3px;
}

.wrap { width: min(1140px, calc(100% - 40px)); margin: auto; }
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 99;
  background: #fff;
  padding: 10px;
}
.skip:focus { top: 10px; }

.site-header {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(7, 26, 58, 0.04);
}
.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-deep), var(--glow));
}
.head-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  line-height: 0;
}
.brand img {
  display: block;
  height: 58px;
  width: auto;
  object-fit: contain;
}
.brand-footer img { height: 64px; }
.head-inner nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.head-inner nav a {
  color: #31465f;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.head-inner nav a:hover,
.head-inner nav a[aria-current] {
  color: var(--blue-deep);
  text-decoration: none;
  border-bottom-color: var(--blue);
}
.head-contact {
  color: #fff;
  background: var(--blue);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.head-contact span { margin-left: 8px; }
.head-contact:hover { background: var(--blue-deep); text-decoration: none; color: #fff; }

.hero {
  background:
    radial-gradient(900px 420px at 88% 10%, rgba(62, 198, 255, 0.28), transparent 60%),
    linear-gradient(180deg, #f7fbff 0%, #fff 78%);
  color: var(--ink);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: 48px;
  padding: 64px 0 72px;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 { max-width: 640px; color: var(--navy); }
.hero p {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.7;
}
.hero-visual { position: relative; }
.hero-art {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(7, 26, 58, 0.16);
}
.hero-badge {
  position: absolute;
  width: 118px;
  height: auto;
  left: -28px;
  bottom: -22px;
  filter: drop-shadow(0 12px 18px rgba(5, 86, 214, 0.35));
}

.eyebrow {
  display: block;
  color: var(--blue-deep);
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.eyebrow-light { color: var(--blue); }
.actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font: 700 14px system-ui, sans-serif;
  padding: 14px 20px;
  cursor: pointer;
}
.button:hover { background: var(--blue-deep); text-decoration: none; color: #fff; }
.button-dark { background: var(--navy); color: #fff; }
.button-dark:hover { background: #12315f; }
.text-link { color: var(--navy); font-weight: 700; font-size: 14px; }

.content-section { padding: 72px 0; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 28px;
}
.section-heading p { color: var(--muted); margin: 0 0 8px; }
.section-heading a { font-weight: 700; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.steps > div {
  background: #fff;
  padding: 26px 26px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(7, 26, 58, 0.04);
}
.steps span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ice);
  font: 800 13px system-ui, sans-serif;
  color: var(--blue-deep);
}
.steps p, .card p { color: var(--muted); }

.soft {
  background: linear-gradient(180deg, var(--light), #fff 70%);
}
.cards {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}
.card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  border-color: #8eb7f5;
  box-shadow: 0 16px 32px rgba(11, 124, 255, 0.1);
}
.card p { font-size: 15px; line-height: 1.65; }
.card-link { margin-top: auto; color: var(--blue-deep); font-size: 14px; font-weight: 700; }
.card-link b { margin-left: 7px; }

.closing-wrap { padding: 10px 0 80px; }
.closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px 52px;
  border-radius: 28px;
  background:
    radial-gradient(500px 180px at 100% 0%, rgba(62, 198, 255, 0.35), transparent 55%),
    linear-gradient(135deg, #071a3a, #0b4db8);
  color: #fff;
}
.closing > div { max-width: 640px; }
.closing .eyebrow { color: #9fd7ff; }
.closing h2 { color: #fff; }
.closing p { color: #d5e6f8; font-size: 18px; }
.closing .button { background: #fff; color: var(--navy); }
.closing .button:hover { background: var(--ice); color: var(--navy); }

.page-intro {
  padding: 64px 0 44px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f7fbff, #fff);
}
.page-intro h1 { max-width: 920px; font-size: clamp(2.3rem, 4vw, 3.8rem); }
.page-intro p { max-width: 750px; color: var(--muted); font-size: 1.12rem; }

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 750px) 300px;
  justify-content: space-between;
  gap: 60px;
  padding: 56px 0 90px;
}
.article-body { font-size: 1.06rem; line-height: 1.85; }
.article-body h2 { font-size: 1.55rem; margin: 1.7em 0 0.45em; }
.article-body h2:first-child { margin-top: 0; }
.article-body ol { padding-left: 25px; }
.article-body li { padding-left: 8px; margin-bottom: 12px; }
.article-body code {
  background: var(--ice);
  border-radius: 4px;
  padding: 2px 5px;
  overflow-wrap: anywhere;
}
.aside {
  align-self: start;
  background: var(--light);
  padding: 26px;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.aside a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  border-top: 1px solid #c9d9ea;
  padding: 16px 0;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.45;
}
.aside .eyebrow { margin-bottom: 12px; }
.aside.note p { font-size: 15px; }
.resource-list { border-top: 1px solid var(--line); margin: 25px 0 35px; }
.resource-list a {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
}
.resource-list span { color: var(--blue-deep); }
.article-intro { max-width: 850px; }
.article-intro .back { display: block; margin-bottom: 26px; font-size: 14px; }
.byline { font-size: 14px; color: var(--muted); }
.article-page { max-width: 760px; padding: 48px 0 100px; }
.article-end {
  background: var(--light);
  border-left: 4px solid var(--blue);
  border-radius: 0 14px 14px 0;
  padding: 22px 26px;
  margin-top: 48px;
  font-size: 15px;
}
.article-end p { margin: 0.4em 0; }
.small-note { background: var(--light); padding: 22px; font-size: 14px; border-radius: 14px; }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 650px) 340px;
  gap: 72px;
  padding: 56px 0 90px;
}
.form-field { display: block; margin-bottom: 18px; font-weight: 700; font-size: 14px; }
.form-field input, .form-field textarea {
  display: block;
  width: 100%;
  border: 1px solid #c5d4e6;
  border-radius: 10px;
  padding: 13px 14px;
  font: 16px/1.5 inherit;
  margin-top: 7px;
  color: var(--ink);
  background: #fff;
}
.form-field textarea { min-height: 165px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: start; font-size: 14px; margin: 15px 0 25px; }
.check input { margin-top: 6px; }
.notice { padding: 15px 20px; background: #e8f3ff; border-left: 4px solid var(--blue); margin-bottom: 25px; border-radius: 0 10px 10px 0; }
.notice.error { background: #fff0ed; border-color: #c74430; }
.honeypot { position: absolute; left: -9999px; }

footer {
  background: #f7faff;
  color: #3e5168;
  padding: 56px 0 18px;
  border-top: 1px solid var(--line);
}
footer a { color: #3e5168; }
footer h2 { font-size: 14px; color: var(--navy); letter-spacing: 0; margin: 0 0 14px; }
footer p { font-size: 14px; line-height: 1.8; }
footer .brand { color: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.6fr; gap: 48px; }
.footer-grid > div > a:not(.brand) { display: block; font-size: 14px; margin-bottom: 10px; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 42px;
  font-size: 12px;
}

@media (max-width: 980px) {
  .head-inner { flex-wrap: wrap; padding: 12px 0; gap: 12px; }
  .head-inner nav { order: 3; width: 100%; overflow-x: auto; margin: 0; padding: 4px 0 8px; gap: 18px; }
  .head-contact { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; padding: 42px 0 56px; }
  .hero-art { height: 320px; }
  .hero-badge { width: 92px; left: 12px; bottom: -16px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .guide-layout, .contact-layout { gap: 32px; grid-template-columns: minmax(0, 1fr) 250px; }
  .footer-grid { gap: 28px; }
  .closing { padding: 36px 28px; }
}

@media (max-width: 700px) {
  .wrap { width: min(100% - 32px, 1140px); }
  .brand img, .brand-footer img { height: 48px; }
  .head-inner { min-height: 72px; }
  .head-inner nav a { font-size: 13px; }
  .head-contact { font-size: 12px; padding: 9px 12px; }
  .hero h1 { font-size: clamp(2.15rem, 8vw, 3.2rem); }
  .hero p { font-size: 1rem; }
  .hero-art { height: 230px; border-radius: 18px; }
  .actions { gap: 14px; flex-wrap: wrap; }
  .content-section { padding: 48px 0; }
  .section-heading { display: block; }
  .steps, .cards, .guide-layout, .contact-layout, .footer-grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .closing { display: block; padding: 28px 22px; border-radius: 20px; }
  .closing .button { margin-top: 8px; }
  .closing-wrap { padding-bottom: 48px; }
  .page-intro { padding: 42px 0 28px; }
  .guide-layout, .contact-layout { padding: 36px 0 64px; }
  .article-page { padding: 32px 0 70px; }
  .aside { order: 2; }
  .foot-bottom { display: block; }
  .foot-bottom span { display: block; margin-bottom: 8px; }
  .resource-list a { display: block; }
  .resource-list span { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
