.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-wrap {
  flex: 1;
}

.main-content {
  display: flex;
  justify-content: center;
  width: 100%;
}

.content-container {
  display: flex;
  align-items: flex-start;
  max-width: 1200px;
  width: 100%;
  padding: 20px;
  gap: 20px;
}

.middle-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
}

.calculators-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 154, 139, 0.42) 0%, transparent 30%),
    radial-gradient(circle at 84% 20%, rgba(254, 207, 239, 0.38) 0%, transparent 30%),
    radial-gradient(circle at 50% 85%, rgba(255, 218, 226, 0.26) 0%, transparent 34%),
    linear-gradient(135deg, #fff2ef 0%, #ffd9d2 30%, #ffe5f6 68%, #fff3fb 100%);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  box-sizing: border-box;
}

.calculators-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.24) 0%, transparent 45%, rgba(255, 255, 255, 0.14) 100%);
  pointer-events: none;
}

.calculators-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.calculators-hero-content {
  max-width: 760px;
  margin: 0 auto;
}

.calculators-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a4a4a;
}

.calculators-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
  color: #111111;
}

.calculators-divider {
  width: 76px;
  height: 4px;
  margin: 14px auto 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9a8b 0%, #ffb4b6 45%, #fecfef 100%);
}

.calculators-description {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #222222;
}

.topics-container {
  width: 100%;
  padding: 40px 0 60px;
}

.topic-group {
  margin-bottom: 55px;
}

.topic-group:last-child {
  margin-bottom: 0;
}

.topic-group-header {
  text-align: left;
  margin-bottom: 22px;
}

.topic-group-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1f1f1f;
}

.topic-group-description {
  margin: 0;
  font-size: 1rem;
  color: #5e5e5e;
  line-height: 1.6;
}

.calculator-search-wrap {
  margin-bottom: 22px;
}

.calculator-search {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #dddddd;
  border-radius: 12px;
  background: #ffffff;
  font-size: 1rem;
  color: #111111;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calculator-search:focus {
  border-color: #ffb4b6;
  box-shadow: 0 0 0 4px rgba(255, 180, 182, 0.18);
}

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

.topic-card {
  background-color: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  padding: 15px;
  text-align: center;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.topic-card a {
  text-decoration: none;
  color: inherit;
  width: 100%;
  display: block;
}

.topic-title {
  font-size: 1rem;
  margin: 0;
  line-height: 1.45;
}

.no-results-message {
  margin: 18px 0 0;
  font-size: 0.95rem;
  color: #666666;
}