/* Главная appark.ru: шапка с доверием, карточки преимуществ, блок «Нужна доработка?».
   Отдельный файл, а не тема: user.css темы подключается с версией темы и застревает в кэше браузеров. */

.ap-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 28%, rgba(47, 85, 212, .10), transparent 42%),
    radial-gradient(circle at 6% 92%, rgba(46, 202, 139, .08), transparent 38%),
    #fff;
}

/* Карточки преимуществ заходят на шапку снизу — полный отступ темы оставлял пустое поле */
.ap-hero.bg-half-170 { padding-bottom: 130px; }

.ap-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(47, 85, 212, .08);
  color: #2f55d4;
  font-size: 14px;
  font-weight: 600;
}

.ap-eyebrow .uil { font-size: 18px; }

.ap-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #e9ecef;
}

.ap-stat-value {
  color: #161c2d;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.ap-stat-label {
  margin-top: 4px;
  color: #8492a6;
  font-size: 14px;
  line-height: 1.35;
}

.ap-hero-media { position: relative; }

.ap-rating-card {
  position: absolute;
  left: -12px;
  bottom: 4%;
  display: block;
  padding: 14px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(22, 28, 45, .13);
  color: #161c2d;
  text-decoration: none;
  transition: transform .2s ease;
}

.ap-rating-card:hover {
  color: #161c2d;
  transform: translateY(-3px);
}

.ap-stars {
  color: #f5b819;
  font-size: 16px;
  line-height: 1;
}

.ap-rating-value {
  margin-top: 6px;
  font-size: 15px;
}

.ap-rating-value b { font-size: 22px; }

.ap-rating-note {
  color: #8492a6;
  font-size: 13px;
}

/* Карточки заходят на нижнюю границу шапки — так шапка не обрывается пустым полем */
.ap-trust {
  position: relative;
  z-index: 1;
  margin-top: -72px;
}

.ap-trust-card {
  height: 100%;
  padding: 28px 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(22, 28, 45, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ap-trust-card:hover {
  box-shadow: 0 16px 40px rgba(22, 28, 45, .12);
  transform: translateY(-4px);
}

.ap-trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(47, 85, 212, .1);
  color: #2f55d4;
  font-size: 26px;
}

.ap-cta { padding: 20px 0 80px; }

.ap-cta-box {
  position: relative;
  overflow: hidden;
  padding: 48px;
  border-radius: 20px;
  background: linear-gradient(135deg, #2f55d4 0%, #5b7cf0 100%);
  color: #fff;
}

.ap-cta-box::before,
.ap-cta-box::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  pointer-events: none;
}

.ap-cta-box::before { width: 260px; height: 260px; right: -60px; top: -110px; }
.ap-cta-box::after { width: 160px; height: 160px; right: 180px; bottom: -100px; }

.ap-cta-box .title { color: #fff; }
.ap-cta-box p { color: rgba(255, 255, 255, .85); }
.ap-cta-box .row { position: relative; z-index: 1; }
.ap-cta-mail { color: rgba(255, 255, 255, .85); font-size: 14px; }
.ap-cta-mail a { color: #fff; }

@media (max-width: 767.98px) {
  .ap-stats { gap: 16px; }
  .ap-stat-value { font-size: 24px; }
  .ap-rating-card { left: 8px; bottom: 0; padding: 10px 14px; }
  .ap-trust { margin-top: -40px; }
  .ap-cta-box { padding: 32px 24px; }
}
