.tools-main {
  padding: 2rem 1rem 5rem;
}

.tools-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.tools-breadcrumb {
  color: #6d756d;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.tools-breadcrumb a,
.tools-link {
  color: #23664b;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.tools-hero {
  background: linear-gradient(135deg, #eff8ee, #fffdf5 65%, #f3eee2);
  border: 1px solid #d9e8d8;
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

.tools-kicker {
  color: #3d7c57;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
}

.tools-hero h1 {
  color: #1e3f2e;
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  margin: 0 0 1rem;
  max-width: 820px;
}

.tools-lead {
  color: #526254;
  font-size: 1.1rem;
  line-height: 1.65;
  margin: 0;
  max-width: 760px;
}

.tools-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tools-card,
.tools-panel,
.tools-note {
  background: #fff;
  border: 1px solid #e1e8df;
  border-radius: 1.15rem;
  box-shadow: 0 12px 30px rgba(39, 72, 47, 0.06);
}

.tools-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 1.35rem;
}

.tools-card h2,
.tools-card h3,
.tools-panel h2,
.tools-panel h3 {
  color: #244b35;
  font-family: Outfit, Inter, sans-serif;
  margin: 0 0 0.65rem;
}

.tools-card p,
.tools-panel p,
.tools-note p,
.tools-panel li {
  color: #59665a;
  line-height: 1.6;
}

.tools-card p {
  flex: 1;
  margin: 0 0 1rem;
}

.tools-button,
.tools-card .tools-button {
  align-items: center;
  background: #2f7652;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.6rem 1rem;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.tools-button:hover,
.tools-button:focus-visible {
  background: #1e5d3e;
  transform: translateY(-1px);
}

.tools-button:focus-visible,
.tools-field select:focus-visible,
.tools-field input:focus-visible {
  outline: 3px solid #f0b34c;
  outline-offset: 3px;
}

.tools-button-secondary {
  background: #f1f7ed;
  border: 1px solid #9fc59b;
  color: #245438;
  font-size: 0.9rem;
  min-height: 2.35rem;
}

.tools-button-secondary:hover,
.tools-button-secondary:focus-visible {
  background: #e1f0dc;
  color: #1e4e35;
}

.tools-share {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.tools-share span {
  color: #356444;
  font-size: 0.9rem;
}

.tools-information {
  margin-top: 1.5rem;
}

.tools-info-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tools-info-grid .tools-note {
  margin-top: 0;
}

.tools-related,
.tools-app-cta {
  background: #fff;
  border: 1px solid #e1e8df;
  border-radius: 1.15rem;
  margin-top: 1rem;
  padding: 1.25rem 1.35rem;
}

.tools-related h2,
.tools-app-cta h2 {
  color: #244b35;
  font-family: Outfit, Inter, sans-serif;
  margin: 0 0 0.5rem;
}

.tools-related p,
.tools-app-cta p {
  color: #59665a;
  line-height: 1.6;
  margin: 0 0 0.9rem;
}

.tools-layout {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
}

.tools-panel {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.tools-form {
  display: grid;
  gap: 1rem;
}

.tools-field {
  display: grid;
  gap: 0.4rem;
}

.tools-field label {
  color: #314d38;
  font-size: 0.92rem;
  font-weight: 750;
}

.tools-field small {
  color: #748075;
  line-height: 1.45;
}

.tools-field select,
.tools-field input {
  background: #fff;
  border: 1px solid #cbd9cc;
  border-radius: 0.7rem;
  color: #243d2c;
  font: inherit;
  min-height: 2.8rem;
  padding: 0.55rem 0.7rem;
  width: 100%;
}

.tools-field input[type="range"] {
  accent-color: #2f7652;
  padding: 0;
}

.tools-field output {
  color: #2f7652;
  font-weight: 800;
}

.tools-result {
  background: #f4faef;
  border: 1px solid #d3e8cf;
  border-radius: 1rem;
  margin-top: 1rem;
  padding: 1.15rem;
}

.tools-result[hidden] {
  display: none;
}

.tools-result h2,
.tools-result h3 {
  color: #245438;
  margin-top: 0;
}

.tools-result p:last-child {
  margin-bottom: 0;
}

.tools-result ul {
  color: #526254;
  line-height: 1.6;
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.tools-note {
  margin-top: 1.25rem;
  padding: 1.15rem 1.3rem;
}

.tools-note h2 {
  color: #394f3d;
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.15rem;
  margin: 0 0 0.45rem;
}

.tools-note p {
  margin: 0;
}

.tools-results-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.tools-result-card {
  background: #fbfdf9;
  border: 1px solid #e0e9dd;
  border-radius: 0.8rem;
  padding: 0.9rem;
}

.tools-result-card strong {
  color: #244b35;
  display: block;
  margin-bottom: 0.3rem;
}

.tools-result-card span {
  color: #68776b;
  font-size: 0.92rem;
  line-height: 1.5;
}

.tools-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
}

.tools-tag {
  background: #edf5e9;
  border-radius: 999px;
  color: #356444;
  font-size: 0.8rem;
  padding: 0.3rem 0.55rem;
}

@media (max-width: 850px) {
  .tools-grid,
  .tools-layout,
  .tools-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .tools-main {
    padding-inline: 0.75rem;
  }

  .tools-hero {
    border-radius: 1rem;
  }
}
