.home-single-tool {
  width: min(520px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.home-single-tool .tools-grid {
  grid-template-columns: 1fr;
}

.home-single-tool .tool-card {
  padding: 22px 24px;
  border-color: #654aa6;
  background: #7558bb;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 7px 18px rgba(63, 40, 115, 0.18);
}

.home-single-tool .tool-card small {
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.home-analysis-section {
  margin: 18px 0;
}

.home-analysis-inner {
  width: min(360px, calc(100% - 40px));
  margin: 0 auto;
}

.home-analysis-section .section-title {
  margin: 0 0 14px;
  text-align: center;
}

.home-analysis-menu {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.home-analysis-card {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 14px;
  box-shadow: 0 7px 18px rgba(17, 24, 39, 0.1);
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.home-analysis-card:nth-child(1) {
  background: #345aa8;
  border-color: #294b92;
}

.home-analysis-card:nth-child(2) {
  background: #2f70c7;
  border-color: #2963b1;
}

.home-analysis-card:nth-child(3) {
  background: #277a55;
  border-color: #206747;
}

.home-analysis-card:nth-child(4) {
  background: #7558bb;
  border-color: #654aa6;
}

.home-analysis-card:nth-child(5) {
  background: #a65a26;
  border-color: #914b1e;
}

.home-analysis-card:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.home-analysis-card:focus-visible {
  outline: 3px solid rgba(109, 94, 252, 0.22);
  outline-offset: 2px;
  border-color: var(--primary);
}

@media (max-width: 480px) {
  .home-single-tool {
    width: calc(100% - 24px);
  }

  .home-single-tool .tool-card {
    padding: 20px 18px;
    font-size: 19px;
  }

  .home-analysis-inner {
    width: calc(100% - 32px);
  }

  .home-analysis-card {
    min-height: 64px;
    padding: 15px 16px;
    font-size: 20px;
  }
}

@media (min-width: 801px) {
  .home-single-tool {
    width: min(480px, 100%);
    margin: 12px auto 4px;
  }

  .home-single-tool .tool-card {
    padding: 12px 18px;
    font-size: 17px;
  }

  .home-single-tool .tool-card small {
    font-size: 13px;
  }

  .home-analysis-section {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto 12px;
  }

  .home-analysis-inner {
    width: min(420px, 100%);
  }

  .home-analysis-section .section-title {
    margin-bottom: 10px;
  }

  .home-analysis-menu {
    gap: 8px;
  }

  .home-analysis-card {
    min-height: 54px;
    padding: 12px 16px;
    font-size: 17px;
  }
}
