:root {
  color-scheme: light;
  --page: #f5f8f7;
  --surface: #ffffff;
  --surface-muted: #eef4f2;
  --ink: #17212b;
  --muted: #5e6d7c;
  --soft: #84919d;
  --line: #d9e2df;
  --blue: #245fa8;
  --blue-dark: #1d4d88;
  --teal: #178f7a;
  --teal-soft: #dcefeb;
  --amber: #b7791f;
  --shadow: 0 18px 45px rgba(31, 48, 62, .1);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.language-option {
  min-width: 34px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.language-option:hover,
.language-option.active {
  background: var(--surface-muted);
  color: var(--ink);
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.btn:hover {
  border-color: #b8c8c4;
  background: #f9fbfb;
}

.btn.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.btn.primary:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.text-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.hero {
  padding: 64px 0 34px;
}

.hero-grid,
.split-grid,
.checker-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
  gap: 52px;
  align-items: center;
}

.hero-copy {
  max-width: 660px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
.page-title {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: 52px;
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 36px;
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.trust-note {
  max-width: 640px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.media-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero .media-frame img {
  aspect-ratio: 16 / 10;
  object-position: center;
}

.section {
  padding: 58px 0;
}

.section.compact {
  padding: 38px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.quiet-band {
  padding: 28px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-strip {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: start;
}

.strip-note {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--muted);
}

.signal-list {
  display: grid;
  gap: 14px;
}

.signal-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.signal-item:last-child {
  border-bottom: 0;
}

.signal-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 900;
}

.document-panel,
.checker,
.result,
.notice-panel,
.cta-band,
.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.document-panel {
  padding: 22px;
}

.document-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.document-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.document-list li:last-child {
  border-bottom: 0;
}

.timeline {
  display: grid;
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.timeline-step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-step::before {
  content: attr(data-step);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--blue);
  font-weight: 900;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.info-card,
.pricing-card,
.legal-note,
.todo-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.info-card,
.pricing-card {
  padding: 20px;
}

.pricing-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.price {
  color: var(--blue);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
}

.price small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.pill {
  width: fit-content;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.topic-link {
  display: block;
  min-height: 76px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.topic-link span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.topic-link:hover {
  border-color: #b8c8c4;
}

.legal-layout {
  max-width: 900px;
}

.legal-layout .article-section {
  padding-bottom: 26px;
}

.legal-note {
  margin: 22px 0;
  padding: 18px;
  background: #fff8ed;
  color: #6b4b13;
}

.todo-list {
  padding: 18px 18px 18px 38px;
  color: var(--muted);
}

.meta-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.meta-list li:last-child {
  border-bottom: 0;
}

.meta-list strong {
  color: var(--ink);
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.checker-grid {
  align-items: start;
}

.checker {
  padding: 22px;
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.field input[type="file"],
.field input[type="text"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfdfd;
  color: var(--ink);
  font-size: 15px;
}

.field input[type="file"]::file-selector-button {
  min-height: 36px;
  margin-right: 10px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.privacy-field {
  grid-template-columns: 28px 1fr;
  align-items: start;
}

.privacy-field input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
}

.fine {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.55;
}

.result {
  margin-top: 18px;
  padding: 20px;
}

.notice-panel {
  padding: 20px;
  background: var(--surface-muted);
}

.faq details {
  padding: 16px 18px;
  margin: 12px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.faq p {
  color: var(--muted);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 44px;
  align-items: start;
}

.article-flow {
  display: grid;
  gap: 34px;
}

.article-section {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.article-section:last-child {
  border-bottom: 0;
}

.side-rail {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 16px;
}

.side-rail .notice-panel {
  background: var(--surface);
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--teal);
}

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .split-grid,
  .checker-grid,
  .intro-strip,
  .page-layout,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: static;
  }

  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 28px, var(--max));
  }

  .site-header .btn {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .language-switcher {
    flex-shrink: 0;
  }

  .nav-inner {
    min-height: 62px;
  }

  .brand {
    gap: 9px;
    font-size: 20px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding: 30px 0 24px;
  }

  .hero-grid,
  .checker-grid {
    gap: 24px;
  }

  .hero .media-frame {
    display: none;
  }

  h1,
  .page-title {
    font-size: 32px;
    line-height: 1.12;
  }

  h2 {
    font-size: 28px;
  }

  .lead {
    font-size: 16px;
    line-height: 1.6;
  }

  .actions {
    margin-top: 20px;
  }

  .trust-note {
    margin-top: 16px;
  }

  .hero .trust-note {
    display: none;
  }

  .section {
    padding: 44px 0;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media print {
  .site-header,
  .actions,
  .site-footer,
  .media-frame {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .shell {
    width: 100%;
  }

  .section,
  .hero {
    padding: 18px 0;
  }
}
