.tools-main {
  min-height: calc(100vh - 140px);
}
.tools-hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 78px 24px 40px;
  text-align: center;
}
.tools-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
  margin: 19px 0 16px;
}
.tools-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: #5f697d;
  font-size: 1.08rem;
  line-height: 1.65;
}
.tool-section {
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto 82px;
}
.tool-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0;
}
.tool-section-header h2 {
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  margin: 0;
}
.tool-section-header p {
  margin: 0;
  color: #717b8d;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 25px;
  border: 1px solid #e0e3ec;
  border-radius: 20px;
  background: #fff;
  color: #172033;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(32, 38, 68, 0.05);
  transition:
    transform 0.16s,
    box-shadow 0.16s,
    border-color 0.16s;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(32, 38, 68, 0.11);
  border-color: #c5beed;
}
.tool-card:focus-visible {
  outline: 3px solid #6b5aea;
  outline-offset: 3px;
}
.tool-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  margin-bottom: 22px;
  background: #eeecff;
  color: #4d3bd1;
}
.tool-icon svg {
  width: 25px;
  height: 25px;
}
.tool-card h3 {
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.tool-card p {
  margin: 0;
  color: #687286;
  line-height: 1.55;
  font-size: 0.9rem;
}
.tool-card .open {
  margin-top: auto;
  padding-top: 22px;
  color: #4939cc;
  font-weight: 850;
  font-size: 0.82rem;
}
.featured {
  grid-column: span 2;
  background: linear-gradient(145deg, #242843, #332b62);
  color: #fff;
  border: 0;
}
.featured p {
  color: #c9cede;
}
.featured .tool-icon {
  background: #ffffff18;
  color: #fff;
}
.featured .open {
  color: #fff;
}
.tools-trust {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto 80px;
  padding: 25px 28px;
  border-radius: 18px;
  background: #edf8f2;
  color: #28553f;
  line-height: 1.6;
}
.tools-trust strong {
  color: #17452f;
}
.tools-footer a {
  color: inherit;
  font-weight: 750;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}
.tool-card p,
.tools-hero p,
.tools-trust {
  overflow-wrap: anywhere;
}
.active-link {
  color: #4334cd !important;
}
@media (max-width: 850px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .featured {
    grid-column: span 2;
  }
}
@media (max-width: 580px) {
  .tools-hero {
    padding-top: 50px;
  }
  .tool-section {
    width: calc(100% - 28px);
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .featured {
    grid-column: auto;
  }
  .tool-card {
    min-height: 240px;
  }
  .tool-section-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .topbar .tools-nav-secondary {
    display: none;
  }
}
