:root {
  --tool-navy: #071b31;
  --tool-navy-2: #0b2b47;
  --tool-teal: #18b8b0;
  --tool-teal-dark: #087d78;
  --tool-bg: #f2f7f9;
  --tool-line: #dbe5eb;
  --tool-text: #24384b;
  --tool-muted: #5b6d7f;
  --tool-warning: #a45f00;
}

.tool-hero {
  padding: 72px 0 58px;
  color: #fff;
  background:
    radial-gradient(circle at 14% 20%, rgba(24, 184, 176, .22), transparent 28%),
    linear-gradient(135deg, #061426, #0b2c49);
}

.tool-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 34px;
  align-items: center;
}

.tool-hero h1 {
  margin: 8px 0 16px;
  max-width: 820px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.35;
}

.tool-hero p {
  max-width: 780px;
  color: #d7e2eb;
  line-height: 2;
}

.tool-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tool-badges span {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: #e8f3f6;
  background: rgba(255, 255, 255, .06);
  font-size: 12px;
}

.tool-hero-visual {
  position: relative;
  min-height: 280px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 24px;
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .22);
}

.tool-mini-screen {
  height: 100%;
  padding: 22px;
  border-radius: 18px;
  color: #173047;
  background: #fff;
  transform: none;
}

.tool-mini-screen strong {
  display: block;
  margin-bottom: 18px;
  color: var(--tool-navy);
  font-size: 19px;
}

.tool-mini-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #e5edf1;
  font-size: 12px;
}

.tool-mini-row b {
  color: var(--tool-teal-dark);
}

.tool-shell {
  padding: 56px 0 72px;
  background: var(--tool-bg);
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
}

.tool-panel,
.tool-side-card,
.result-panel,
.tool-content-card {
  border: 1px solid var(--tool-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(7, 27, 49, .07);
}

.tool-panel {
  padding: 28px;
}

.tool-side-card {
  position: sticky;
  top: 100px;
  padding: 24px;
}

.tool-panel-head {
  margin-bottom: 24px;
}

.tool-panel-head h2,
.result-panel h2,
.tool-content-card h2 {
  margin: 0 0 9px;
  color: var(--tool-navy);
}

.tool-panel-head p,
.tool-side-card p,
.tool-content-card p {
  color: var(--tool-muted);
  line-height: 1.95;
}

.tool-fieldset {
  margin: 0 0 25px;
  padding: 0;
  border: 0;
}

.tool-fieldset legend {
  width: 100%;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--tool-line);
  color: var(--tool-navy);
  font-weight: 800;
  font-size: 17px;
}

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

.tool-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tool-field.full {
  grid-column: 1 / -1;
}

.tool-field label {
  color: #24384b;
  font-size: 13px;
  font-weight: 700;
}

.tool-field small {
  min-height: 18px;
  color: #718194;
  font-size: 10px;
  line-height: 1.7;
}

.tool-field input,
.tool-field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #cad7df;
  border-radius: 10px;
  outline: none;
  color: #163047;
  background: #fff;
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}

.tool-field input:focus,
.tool-field select:focus {
  border-color: var(--tool-teal);
  box-shadow: 0 0 0 4px rgba(24, 184, 176, .12);
}

.tool-inline-input {
  display: grid;
  grid-template-columns: 1fr 105px;
  gap: 8px;
}

.tool-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 6px;
}

.tool-actions button,
.result-actions button,
.result-actions a {
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.tool-primary {
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(135deg, #0b9d96, #18b8b0);
}

.tool-secondary {
  padding: 0 18px;
  color: #1c394f;
  background: #eaf1f4;
}

.tool-error {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #efb1b1;
  border-radius: 10px;
  color: #8b2020;
  background: #fff4f4;
}

.tool-side-card h3 {
  margin: 0 0 12px;
  color: var(--tool-navy);
}

.tool-side-card ul {
  margin: 0;
  padding: 0 20px 0 0;
  color: var(--tool-muted);
}

.tool-side-card li {
  margin-bottom: 9px;
  line-height: 1.8;
}

.tool-warning-box {
  margin-top: 20px;
  padding: 16px;
  border-right: 4px solid #e49a2d;
  border-radius: 10px;
  color: #6e470f;
  background: #fff8eb;
  font-size: 12px;
  line-height: 1.9;
}

.result-panel {
  scroll-margin-top: 90px;
  margin-top: 28px;
  padding: 28px;
}

.result-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 24px;
}

.result-summary article {
  padding: 17px;
  border: 1px solid var(--tool-line);
  border-radius: 13px;
  background: #f7fafb;
}

.result-summary span {
  display: block;
  margin-bottom: 6px;
  color: #718194;
  font-size: 10px;
}

.result-summary strong {
  display: block;
  color: var(--tool-navy);
  font-size: 20px;
}

.result-summary small {
  display: block;
  margin-top: 5px;
  color: var(--tool-muted);
  font-size: 10px;
}

.result-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--tool-line);
  border-radius: 13px;
}

.result-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.result-table th,
.result-table td {
  padding: 15px 16px;
  border-bottom: 1px solid #e5ebef;
  text-align: right;
  vertical-align: top;
  line-height: 1.8;
}

.result-table th {
  width: 220px;
  color: #fff;
  background: var(--tool-navy-2);
  font-size: 12px;
}

.result-table td strong {
  display: block;
  color: #173047;
  font-size: 13px;
}

.result-table td small {
  display: block;
  margin-top: 4px;
  color: #6e7f90;
  font-size: 10px;
}

.result-warning-list {
  margin: 24px 0 0;
  padding: 18px 38px 18px 18px;
  border: 1px solid #ecd1a7;
  border-radius: 12px;
  color: #68491c;
  background: #fffaf1;
}

.result-warning-list li {
  margin-bottom: 7px;
  line-height: 1.8;
}

.result-actions a,
.result-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  text-decoration: none;
}

.result-whatsapp {
  color: #fff;
  background: #178b67;
}

.tool-content {
  padding: 0 0 72px;
  background: var(--tool-bg);
}

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

.tool-content-card {
  padding: 25px;
}

.tool-content-card.full {
  grid-column: 1 / -1;
}

.tool-content-card ul {
  padding-right: 20px;
  color: var(--tool-muted);
  line-height: 1.9;
}

.tool-content-card a {
  color: var(--tool-teal-dark);
}

.tool-faq details {
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid var(--tool-line);
  border-radius: 10px;
}

.tool-faq summary {
  padding: 15px 17px;
  color: var(--tool-navy);
  background: #f7fafb;
  cursor: pointer;
  font-weight: 800;
}

.tool-faq details p {
  margin: 0;
  padding: 0 17px 16px;
}

@media (max-width: 980px) {
  .tool-hero-grid,
  .tool-layout {
    grid-template-columns: 1fr;
  }

  .tool-side-card {
    position: static;
  }

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

@media (max-width: 640px) {
  .tool-hero {
    padding: 52px 0 42px;
  }

  .tool-hero-visual {
    min-height: 235px;
  }

  .tool-panel,
  .result-panel,
  .tool-content-card {
    padding: 19px;
    border-radius: 13px;
  }

  .tool-grid,
  .tool-content-grid,
  .result-summary {
    grid-template-columns: 1fr;
  }

  .tool-field.full,
  .tool-content-card.full {
    grid-column: auto;
  }

  .tool-inline-input {
    grid-template-columns: 1fr 90px;
  }

  .tool-actions > *,
  .result-actions > * {
    flex: 1 1 100%;
  }
}

@media print {
  .topbar,
  .site-header,
  .tool-hero,
  .tool-panel,
  .tool-side-card,
  .tool-content,
  .site-footer,
  .result-actions,
  .internal-cta {
    display: none !important;
  }

  body {
    background: #fff !important;
  }

  .tool-shell {
    padding: 0;
    background: #fff;
  }

  .tool-layout {
    display: block;
  }

  .result-panel {
    display: block !important;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .result-table th {
    color: #000;
    background: #eee;
  }
}
