:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --text: #152033;
  --muted: #49586e;
  --line: #d7deea;
  --brand: #174ea6;
  --brand-strong: #0f3f8f;
  --accent: #0f7a4d;
  --danger: #b3261e;
  --focus: #ffb100;
  --max-width: 1080px;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7f9fd 0%, #f1f5fb 120px, #f3f6fb 100%);
  line-height: 1.65;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -200px;
  background: #111;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 1000;
}

.skip-link:focus {
  top: 10px;
}

.container {
  width: min(var(--max-width), 92%);
  margin: 0 auto;
}

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

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a.active,
.site-nav a[aria-current="page"] {
  color: var(--brand-strong);
  border-bottom-color: var(--brand-strong);
  font-weight: 600;
}

main {
  padding: 30px 0 34px;
}

.hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 18px;
}

.hero h1 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 2.6vw, 2.35rem);
  line-height: 1.25;
}

.hero p {
  margin: 0.9em 0;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #f8fbff;
  color: #18416f;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.83rem;
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 14px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-strong);
  text-decoration: none;
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  background: #f7f9fc;
  text-decoration: none;
}

.page-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.page-card + .page-card {
  margin-top: 16px;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.3;
}

h2 {
  margin-top: 1.5em;
}

h3 {
  margin-top: 1.3em;
}

p,
li {
  color: var(--text);
}

ul,
ol {
  padding-left: 1.2rem;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 14px;
}

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

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
}

.card h3 {
  margin-bottom: 8px;
}

.price {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 8px 0;
}

.price small {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  background: #fff;
}

th,
td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f2f6ff;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}

.alert {
  border: 1px solid #f3c5be;
  background: #fff2f0;
  color: var(--danger);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.ok {
  border: 1px solid #b9e0c9;
  background: #edf8f1;
  color: #1d6a3c;
  border-radius: 8px;
  display: inline-block;
  padding: 6px 10px;
  font-weight: 700;
}

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

.form-row {
  margin-bottom: 12px;
}

.form-row.full {
  grid-column: 1 / -1;
}

label {
  display: inline-block;
  margin-bottom: 4px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

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

.checkbox-row label {
  font-weight: 500;
}

.checkbox-row input {
  width: auto;
  margin-right: 6px;
}

.helper {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.jp-note {
  border-left: 4px solid #7aa3d9;
  background: #eef5ff;
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  margin: 14px 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  margin-top: 24px;
}

.site-footer-inner {
  padding: 24px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}

.site-footer p,
.site-footer li {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 6px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #f3f5f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  white-space: pre-wrap;
}

.small {
  font-size: 0.88rem;
}

.center {
  text-align: center;
}

@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .site-nav.open {
    display: flex;
  }

  .site-header-inner {
    flex-wrap: wrap;
  }

  .grid-2,
  .grid-3,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .page-card {
    padding: 20px;
  }
}
