/* ==========================================================================
   Шаблон «Партнёры ДМС» (dms-partners.php)
   Все селекторы изолированы в .aderm-dms, чтобы не конфликтовать
   с глобальными стилями темы. Ширину .container задаёт тема: 1100px.
   ========================================================================== */

.aderm-dms {
  --aderm-navy: #0b3a6c;
  --aderm-text: #34536f;
  --aderm-accent: #1d6fc2;

  position: relative;
  overflow: hidden;
  padding: 56px 0 80px;
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 14px;
  line-height: normal;
  letter-spacing: normal;
  color: var(--aderm-text);
  background:
    radial-gradient(48% 60% at 100% 0%, rgba(206, 232, 252, .7), rgba(206, 232, 252, 0) 70%),
    linear-gradient(180deg, #eef7ff 0%, #f6fbff 45%, #ffffff 100%);
  -webkit-font-smoothing: antialiased;
}
.aderm-dms *, .aderm-dms *::before, .aderm-dms *::after { box-sizing: border-box; }
.aderm-dms :not(.container), .aderm-dms ::before, .aderm-dms ::after { margin: 0; padding: 0; }
.aderm-dms img { display: block; max-width: 100%; }
.aderm-dms .container { position: relative; }

/* ---------- Заголовок ---------- */
.aderm-dms .dms__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  background: #dcedfd;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--aderm-accent);
}
.aderm-dms .dms__kicker svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.aderm-dms .dms__title {
  margin-top: 16px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.015em;
  text-transform: none;
  color: var(--aderm-navy);
}
.aderm-dms .dms__text {
  max-width: 780px;
  margin-top: 18px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--aderm-text);
}
.aderm-dms .dms__text strong {
  font-weight: 700;
  color: var(--aderm-navy);
}

/* ---------- Сетка логотипов ---------- */
.aderm-dms .dms__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
  list-style: none;
}
.aderm-dms .dms__item {
  list-style: none;
}
.aderm-dms .dms__card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  padding: 32px 40px;
  border: 1px solid #e3eef8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(28, 86, 148, .06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.aderm-dms .dms__card::after {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #0a75cf, #4aa3ec);
  opacity: 0;
  transition: opacity .25s ease;
}
.aderm-dms .dms__card:hover {
  transform: translateY(-4px);
  border-color: #c9e1f7;
  box-shadow: 0 14px 30px rgba(28, 86, 148, .13);
}
.aderm-dms .dms__card:hover::after { opacity: 1; }
.aderm-dms .dms__logo {
  width: auto;
  height: auto;
  max-width: min(100%, 300px);
  max-height: 110px;
  object-fit: contain;
}

/* ---------- Адаптив ---------- */
@media (max-width: 768px) {
  .aderm-dms { padding: 40px 0 56px; }
  .aderm-dms .dms__title { font-size: 30px; }
  .aderm-dms .dms__text { font-size: 15px; }
  .aderm-dms .dms__grid { gap: 16px; margin-top: 28px; }
  .aderm-dms .dms__card { height: 170px; padding: 24px; }
  .aderm-dms .dms__logo { max-height: 90px; }
}
@media (max-width: 560px) {
  .aderm-dms .dms__grid { grid-template-columns: 1fr; }
  .aderm-dms .dms__card { height: 150px; }
  .aderm-dms .dms__logo { max-width: min(100%, 260px); max-height: 84px; }
}
@media (max-width: 400px) {
  .aderm-dms .dms__title { font-size: 26px; }
}
