.tools-page,
.self-check-page {
  background: #f7f8fa;
  color: #172033;
}

.tools-page *,
.self-check-page * {
  box-sizing: border-box;
}

.tools-hero,
.self-check-hero,
.tools-grid,
.self-check-layout,
.self-check-note {
  max-width: 1120px;
  margin: 0 auto;
}

.tools-hero {
  padding: 64px 24px 28px;
}

.tools-kicker {
  margin-bottom: 10px;
  color: #2b5f9e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tools-hero h1,
.self-check-hero h1 {
  margin: 0 0 14px;
  color: #172033;
  font-size: 36px;
  line-height: 1.25;
  letter-spacing: 0;
}

.tools-hero p,
.self-check-hero p {
  max-width: 720px;
  margin: 0;
  color: #465366;
  font-size: 17px;
  line-height: 1.7;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 16px 24px 72px;
}

.tool-card {
  display: flex;
  min-width: 0;
  min-height: 260px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(26, 35, 50, 0.08);
}

.tool-card__label {
  margin-bottom: 18px;
  border-radius: 999px;
  background: #eef4fb;
  color: #2b5f9e;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.tool-card h2 {
  margin: 0 0 12px;
  color: #172033;
  font-size: 21px;
  line-height: 1.35;
}

.tool-card p {
  margin: 0 0 24px;
  color: #465366;
  font-size: 15px;
  line-height: 1.7;
}

.tool-card__button {
  margin-top: auto;
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  background: #2b5f9e;
  color: #fff;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  overflow-wrap: anywhere;
}

.tool-card__button.is-disabled {
  background: #eef1f5;
  color: #6a7280;
}

.tool-card--coming {
  box-shadow: none;
}

.self-check-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 64px 24px 28px;
}

.self-check-logo {
  width: 150px;
  max-width: 28vw;
  height: auto;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(26, 35, 50, 0.08);
}

.self-check-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
  align-items: start;
  padding: 16px 24px 28px;
}

.self-check-form,
.self-check-result,
.self-check-note {
  min-width: 0;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 35, 50, 0.07);
}

.self-check-form {
  padding: 24px;
}

.self-check-form fieldset {
  margin: 0 0 18px;
  border: 0;
  border-top: 1px solid #e6ebf1;
  padding: 18px 0 0;
}

.self-check-form fieldset:first-child {
  border-top: 0;
  padding-top: 0;
}

.self-check-form legend {
  margin-bottom: 12px;
  color: #172033;
  font-size: 17px;
  font-weight: 800;
}

.check-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 10px 0;
  color: #2f3b4c;
  font-size: 15px;
  line-height: 1.6;
  cursor: pointer;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #2b5f9e;
}

.self-check-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.self-check-actions button,
.result-cta a {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: #2b5f9e;
  color: #fff;
  padding: 0 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.self-check-actions button.secondary,
.result-cta a.ghost {
  border: 1px solid #2b5f9e;
  background: #fff;
  color: #2b5f9e;
}

.self-check-result {
  position: sticky;
  top: 92px;
  min-height: 320px;
  padding: 22px;
}

.result-placeholder {
  display: flex;
  min-height: 276px;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  color: #5b6677;
  text-align: center;
}

.result-placeholder span {
  font-size: 14px;
  font-weight: 700;
}

.result-placeholder strong {
  color: #172033;
  font-size: 20px;
  line-height: 1.45;
}

.result-box h2 {
  margin: 12px 0 10px;
  color: #172033;
  font-size: 22px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.result-box p {
  margin: 0 0 18px;
  color: #465366;
  font-size: 15px;
  line-height: 1.7;
}

.result-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.result-box--low .result-badge {
  background: #eef4fb;
  color: #2b5f9e;
}

.result-box--middle .result-badge {
  background: #fff4d7;
  color: #8a5a00;
}

.result-box--high .result-badge {
  background: #ffe8e2;
  color: #b3311f;
}

.result-items {
  border-top: 1px solid #e6ebf1;
  padding-top: 16px;
}

.result-items strong {
  display: block;
  margin-bottom: 8px;
  color: #172033;
  font-size: 14px;
}

.result-items ul {
  margin: 0;
  padding-left: 20px;
  color: #2f3b4c;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.result-empty {
  margin: 0;
}

.result-cta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.self-check-note {
  margin-bottom: 72px;
  padding: 22px 24px;
}

.self-check-note h2 {
  margin: 0 0 8px;
  color: #172033;
  font-size: 19px;
}

.self-check-note p {
  margin: 0;
  color: #465366;
  font-size: 14px;
  line-height: 1.7;
}

.consultation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px 72px;
}

.consultation-form .form-row {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  color: #2f3b4c;
  font-size: 14px;
  font-weight: 800;
}

.consultation-form input,
.consultation-form select,
.consultation-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  padding: 12px 13px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.45;
}

.consultation-form textarea {
  resize: vertical;
}

.consultation-form input:focus,
.consultation-form select:focus,
.consultation-form textarea:focus {
  border-color: #2b5f9e;
  outline: 3px solid rgba(43, 95, 158, 0.14);
}

.consultation-consent {
  margin-top: 4px;
}

.privacy-consent-box {
  margin: 20px 0 10px;
  border: 1px solid #d7e0eb;
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.privacy-consent-box h2 {
  margin: 0 0 10px;
  color: #172033;
  font-size: 15px;
  line-height: 1.35;
}

.privacy-consent-scroll {
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.privacy-consent-scroll::-webkit-scrollbar {
  width: 8px;
}

.privacy-consent-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #b9c7d8;
}

.privacy-consent-box table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.privacy-consent-box th,
.privacy-consent-box td {
  border-bottom: 1px solid #e2e8f0;
  padding: 11px 12px;
  color: #2f3b4c;
  font-size: 12px;
  line-height: 1.6;
  text-align: left;
  vertical-align: top;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.privacy-consent-box tr:last-child th,
.privacy-consent-box tr:last-child td {
  border-bottom: 0;
}

.privacy-consent-box th {
  width: 118px;
  background: #eef4fb;
  color: #244f86;
  font-weight: 800;
}

.privacy-consent-notice {
  margin-top: 12px;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  background: #fff;
  padding: 13px 14px;
}

.privacy-consent-notice strong {
  display: block;
  margin-bottom: 6px;
  color: #172033;
  font-size: 12px;
}

.privacy-consent-notice p,
.privacy-consent-warning {
  margin: 0;
  color: #465366;
  font-size: 12px;
  line-height: 1.7;
}

.privacy-consent-warning {
  margin-top: 10px;
  color: #8a3b13;
}

.self-check-actions a.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #2b5f9e;
  border-radius: 8px;
  background: #fff;
  color: #2b5f9e;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.self-check-actions button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: #465366;
  font-size: 14px;
  line-height: 1.6;
}

.form-message.is-success {
  color: #1f6f4a;
  font-weight: 800;
}

.form-message.is-error {
  color: #b3311f;
  font-weight: 800;
}

.form-message.is-muted {
  color: #5b6677;
}

.consultation-list {
  margin: 16px 0 0;
  padding-left: 20px;
  color: #2f3b4c;
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 860px) {
  .tools-grid,
  .self-check-layout,
  .consultation-layout {
    grid-template-columns: 1fr;
  }

  .self-check-result {
    position: static;
  }
}

@media (max-width: 640px) {
  .tools-hero,
  .self-check-hero {
    padding: 42px 18px 18px;
  }

  .tools-hero h1,
  .self-check-hero h1 {
    font-size: 28px;
  }

  .tools-hero p,
  .self-check-hero p {
    font-size: 15px;
  }

  .tools-grid,
  .self-check-layout,
  .self-check-note,
  .consultation-layout {
    padding-left: 18px;
    padding-right: 18px;
  }

  .self-check-hero {
    align-items: flex-start;
  }

  .self-check-logo {
    display: none;
  }

  .self-check-form,
  .self-check-result,
  .self-check-note {
    padding: 18px;
  }

  .privacy-consent-box {
    padding: 14px;
  }

  .privacy-consent-box table,
  .privacy-consent-box tbody,
  .privacy-consent-box tr,
  .privacy-consent-box th,
  .privacy-consent-box td {
    display: block;
    width: 100%;
  }

  .privacy-consent-box th {
    border-bottom: 0;
    padding-bottom: 4px;
  }

  .privacy-consent-box td {
    padding-top: 4px;
  }
}
