body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  min-height: 100vh;
}

.poleznoe {
  max-width: 1100px;
  margin: 0 auto;
  /* top ad already sits above main — keep only a small gap to the title */
  padding: 0.5rem 1.5rem 3.5rem;
}

.poleznoe h1 {
  margin: 0.25rem 0 0.75rem;
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  color: #222;
}

.poleznoe__subtitle,
.poleznoe__lead {
  margin: 0 auto 2.25rem;
  max-width: 36rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #666;
}

.poleznoe__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.poleznoe-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  height: 100%;
  padding: 1.6rem 1.55rem 1.5rem;
  background: #fff;
  border: 1px solid #e2e2e6;
  border-radius: 12px;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.poleznoe-card:hover,
.poleznoe-card:focus-visible {
  transform: translateY(-2px);
  border-color: #ed1c24;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

.poleznoe-card:focus {
  outline: none;
}

.poleznoe-card:focus-visible {
  outline: 2px solid #ed1c24;
  outline-offset: 2px;
}

.poleznoe-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  background: #f6f6f8;
  color: #ed1c24;
}

.poleznoe-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.poleznoe-card__title {
  margin: 0.2rem 0 0;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.3;
  color: #222;
}

.poleznoe-card__desc {
  margin: 0 0 0.5rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #666;
}

.poleznoe-card .poleznoe-btn {
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.poleznoe-card__partners {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.poleznoe-partner .poleznoe-btn {
  font-size: 0.88rem;
  min-height: 36px;
  padding: 0.45rem 0.85rem;
  line-height: 1.3;
}

.poleznoe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  background: linear-gradient(90deg, #dc3545, #c82333);
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(220, 53, 69, 0.25);
}

.poleznoe-partner--more {
  gap: 0.2rem;
}

.poleznoe-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 28px;
  color: #ed1c24 !important;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

.poleznoe-link::after {
  content: '→';
  text-decoration: none;
  font-weight: 700;
}

.poleznoe-link:hover,
.poleznoe-link:focus-visible {
  color: #c82333 !important;
  text-decoration: underline !important;
}

.poleznoe-btn:hover,
.poleznoe-btn:focus-visible {
  filter: brightness(0.95);
}

.ad-label {
  margin: 0.3rem 0 0;
  font-size: 10px;
  line-height: 1.35;
  color: #888;
}

.poleznoe-partner--more .ad-label {
  margin-top: 0.15rem;
}

@media (max-width: 640px) {
  .poleznoe {
    padding: 0.5rem 1rem 2.75rem;
  }

  .poleznoe__grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
}
