* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Euclid Circular A", "Segoe UI", Tahoma, sans-serif;
}

html {
  background: var(--tool-bg);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: var(--tool-bg);
  color: var(--tool-text);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.tools-page {
  padding-top: 64px;
}

.tools-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--tool-accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tools-hero {
  padding: 42px 0 30px;
  border-bottom: 1px solid var(--tool-line);
  background: var(--tool-surface);
}

.tools-hero h1 {
  max-width: 760px;
  color: var(--tool-text);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 760px;
  margin-top: 14px;
  color: var(--tool-muted);
  font-size: 17px;
  line-height: 1.75;
}

.tools-section {
  padding: 28px 0 34px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 16px;
}

.section-heading h2,
.seo-section h2 {
  color: var(--tool-text);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: 0;
}

.section-heading p:not(.section-label),
.tool-card p,
.seo-section p {
  color: var(--tool-muted);
  font-size: 14px;
  line-height: 1.68;
}

.section-heading p:not(.section-label) {
  margin-top: 8px;
}

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

.tool-grid + .tool-grid {
  margin-top: 12px;
}

.tool-card {
  display: flex;
  min-width: 0;
  min-height: 210px;
  flex-direction: column;
  border: 1px solid var(--tool-line);
  border-radius: var(--tool-radius);
  background: var(--tool-surface);
  box-shadow: var(--tool-shadow);
  padding: 16px;
  text-decoration: none;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.tool-card:hover {
  border-color: var(--tool-accent);
  background: var(--tool-panel);
}

.tool-status {
  display: inline-flex;
  width: max-content;
  min-height: 28px;
  align-items: center;
  margin-bottom: 22px;
  border-radius: 6px;
  padding: 0 9px;
  color: #ffffff;
  background: var(--tool-accent);
  font-size: 12px;
  font-weight: 800;
}

.tool-status.muted {
  border: 1px solid var(--tool-line);
  color: var(--tool-muted);
  background: var(--tool-panel);
}

.tool-card h3 {
  margin-bottom: 10px;
  color: var(--tool-text);
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: 0;
}

.tool-open-link {
  display: inline-flex;
  width: max-content;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border: 1px solid var(--tool-accent);
  border-radius: 6px;
  padding: 0 12px;
  color: #ffffff;
  background: var(--tool-accent);
  font-size: 13px;
  font-weight: 800;
}

.tool-open-link.muted {
  border-color: var(--tool-line);
  color: var(--tool-muted);
  background: var(--tool-surface);
}

.seo-section {
  display: block;
  padding: 0 0 64px;
}

.seo-section article {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 26px;
  padding: 24px 0;
  border-top: 1px solid var(--tool-line);
}

.seo-section h2 {
  max-width: 220px;
  margin: 0;
  font-size: 22px;
}

.seo-section p {
  margin: 0 0 12px;
}

.seo-section article > *:not(h2) {
  grid-column: 2;
}

.seo-section article h2 + p,
.seo-section article h2 + div {
  margin-top: 0;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--tool-line);
  border-radius: 6px;
  background: var(--tool-surface);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 13px 14px;
  color: var(--tool-text);
  font-weight: 800;
  line-height: 1.35;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--tool-accent-dark);
  font-size: 18px;
  font-weight: 900;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 14px 14px;
}

@media (max-width: 1080px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .seo-section article {
    display: block;
    padding: 22px 0;
  }

  .seo-section h2 {
    max-width: none;
    margin-bottom: 10px;
  }

  .seo-section article > *:not(h2) {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .tools-page {
    padding-top: 60px;
  }

  .tools-shell {
    width: min(100% - 24px, 1080px);
  }

  .tools-hero {
    padding: 30px 0 22px;
  }

  .tools-hero h1 {
    font-size: 34px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .tool-card {
    min-height: 190px;
  }
}
