/* Online tools hub — energo-market.com */

.tools-page {
  padding-top: var(--header-h);
}

.tools-hub {
  overflow-x: hidden;
}

.tools-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, #eef7ff 0%, #fff 100%);
  border-bottom: 1px solid rgba(23, 138, 228, 0.12);
}

.tools-hero__title {
  margin: 0 0 1.2rem;
  font-size: 3.2rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.04rem;
  color: #094879;
}

.tools-hero__lead {
  margin: 0;
  max-width: 62rem;
  font-size: 1.8rem;
  line-height: 1.55;
  color: #4a5c68;
}

.tools-section {
  padding: 4rem 0 6rem;
}

.tools-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  padding: 2.4rem 2rem;
  background: #fff;
  border: 1px solid rgba(23, 138, 228, 0.16);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(23, 138, 228, 0.08);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

a.tool-card {
  color: inherit;
  text-decoration: none;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 138, 228, 0.35);
  box-shadow: 0 12px 32px rgba(23, 138, 228, 0.14);
}

.tool-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.tool-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.6rem;
  height: 5.6rem;
  color: var(--blue-deep, #0b6ec7);
  background: linear-gradient(145deg, #d4ebfc 0%, #eef7ff 100%);
  border-radius: 10px;
  flex-shrink: 0;
}

.tool-card__icon svg {
  width: 3rem;
  height: 3rem;
}

.tool-card__title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.3;
  font-weight: 700;
  color: #094879;
}

.tool-card__text {
  margin: 0;
  flex: 1;
  font-size: 1.5rem;
  line-height: 1.55;
  color: #4a5c68;
}

.tool-card__more {
  margin-top: 0.4rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
}

.tool-card__more::after {
  content: " →";
}

.tool-card--soon {
  opacity: 0.92;
  cursor: default;
  pointer-events: none;
}

.tool-card__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.35rem 0.8rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #5a6570;
  background: #f0f3f6;
  border-radius: 4px;
}

.tools-stub {
  padding: 4rem 0 7rem;
}

.tools-stub__box {
  max-width: 56rem;
  margin: 0 auto;
  padding: 3rem 2.4rem;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(23, 138, 228, 0.14);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(23, 138, 228, 0.08);
}

.tools-stub__title {
  margin: 0 0 1rem;
  font-size: 2.6rem;
  line-height: 1.25;
  font-weight: 700;
  color: #094879;
}

.tools-stub__text {
  margin: 0 0 2rem;
  font-size: 1.6rem;
  line-height: 1.55;
  color: #4a5c68;
}

.footer__links {
  margin: 0.8rem 0;
  font-size: 1.4rem;
}

.footer__links a {
  color: var(--blue);
  text-decoration: none;
}

.footer__links a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .tools-hero {
    padding: 5.5rem 0 4rem;
  }

  .tools-hero__title {
    font-size: 4rem;
  }

  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .tools-section {
    padding: 5rem 0 8rem;
  }
}

@media (min-width: 1200px) {
  .tools-hero__title {
    font-size: 4.4rem;
  }
}
