/* Главная платформы онлайн-сервисов (common/home_platform.twig).
   Стиль — как у хаба анализов: Inter, голубой бренд-градиент, скругления, стеклянные карточки. */

.hp, .hp *, .hp *::before, .hp *::after { box-sizing: border-box; }
.hp { font-family: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #0a1a4a; background: #fff; }
.hp a { text-decoration: none; }
.hp h1, .hp h2, .hp h3, .hp p { margin: 0; }
.hp-wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
@media (min-width: 1400px) { .hp-wrap { width: min(1380px, calc(100% - 96px)); } }
.hp-grad { background: linear-gradient(100deg, #0d7bff, #7c5cff); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

.hp-kicker { display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px; background: #eaf2ff; color: #0b63d6; font-size: 14px; font-weight: 600; }

.hp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border: 1.5px solid transparent; border-radius: 14px; font-size: 16px; font-weight: 600; line-height: 1.2; cursor: pointer; transition: transform .15s ease, box-shadow .25s ease, background-color .2s ease, color .2s ease; }
.hp-btn:hover { transform: translateY(-2px); text-decoration: none; }
.hp-btn--primary { color: #fff; background: #0874f9; box-shadow: 0 14px 28px -12px rgba(8, 116, 249, .7); }
.hp-btn--primary:hover { color: #fff; background: #0665dd; }
.hp-btn--ghost { color: #0a1a4a; background: #fff; border-color: #d6e2fb; }
.hp-btn--ghost:hover { color: #0874f9; border-color: #0874f9; }
.hp-btn--light { color: #0a1a4a; background: #fff; }
.hp-btn--light:hover { color: #0874f9; }
.hp-btn--outline { color: #fff; border-color: rgba(255, 255, 255, .45); }
.hp-btn--outline:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .1); }
.hp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hp-actions--center { justify-content: center; }

/* ---------- Герой ---------- */
.hp-hero { position: relative; overflow: hidden; padding: 28px 0 84px; background: linear-gradient(180deg, #f8fbff 0%, #fff 100%); }
.hp-hero::before { content: ''; position: absolute; right: -180px; top: -160px; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(13, 123, 255, .16), transparent 68%); pointer-events: none; }
.hp-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.hp-hero h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.04; font-weight: 800; letter-spacing: -.025em; }
.hp-lead { margin-top: 30px; max-width: 580px; font-size: 19px; line-height: 1.55; color: #50608a; }
.hp-points { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.hp-points li { position: relative; padding-left: 28px; font-size: 15.5px; color: #3a4a74; }
.hp-points li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #e3efff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4.5 8.5l2.4 2.4 4.6-5' stroke='%230874f9' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

.hp-hero__visual { position: relative; min-height: 400px; }
.hp-card { position: absolute; border: 1px solid rgba(80, 109, 163, .16); border-radius: 22px; background: rgba(255, 255, 255, .96); box-shadow: 0 40px 70px -30px rgba(10, 26, 74, .45), 0 2px 8px rgba(10, 26, 74, .06); }
.hp-card--main { left: 4%; right: 10%; top: 20px; padding: 22px 24px 18px; }
.hp-card__top { display: flex; gap: 6px; margin-bottom: 16px; }
.hp-card__top i { width: 10px; height: 10px; border-radius: 50%; background: #d8e2f8; }
.hp-card__title { margin-bottom: 14px; font-size: 18px; font-weight: 700; }
.hp-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid #edf1fb; font-size: 15px; color: #3a4a74; }
.hp-row b { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.hp-row b.ok { color: #0a7a44; background: #eafaf0; }
.hp-row b.warn { color: #a85a00; background: #fff4e0; }
.hp-bar { height: 8px; margin: 16px 0 10px; border-radius: 99px; background: #edf1fb; overflow: hidden; }
.hp-bar i { display: block; width: 72%; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #0d7bff, #7c5cff); animation: hp-fill 2.4s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes hp-fill { from { width: 0; } }
.hp-card small { font-size: 12.5px; color: #8a97bd; }
.hp-card--float { display: grid; gap: 2px; padding: 14px 18px; animation: hp-float 6s ease-in-out infinite alternate; }
.hp-card--float span { font-size: 12.5px; color: #6a7690; }
.hp-card--float b { font-size: 24px; font-weight: 800; }
.hp-card--float em { font-style: normal; font-size: 13px; font-weight: 600; color: #0a7a44; }
.hp-card--bmi { right: 0; top: 0; }
.hp-card--doc { left: 0; bottom: 20px; animation-delay: -3s; }
.hp-card--doc b { font-size: 20px; color: #0874f9; }
@keyframes hp-float { from { transform: translateY(0); } to { transform: translateY(-12px); } }

/* ---------- Секции ---------- */
.hp-section { padding: 84px 0; }
.hp-section--tint { background: #f6f9ff; }
.hp-head { max-width: 720px; margin: 0 0 44px; }
.hp-head h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.hp-head p { margin-top: 14px; font-size: 18px; line-height: 1.55; color: #50608a; }

.hp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.hp-svc { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 22px; border: 1px solid #e3e9f7; border-radius: 24px; background: #fff; color: #0a1a4a; transition: transform .25s ease, box-shadow .3s ease, border-color .25s ease; }
.hp-svc:hover { transform: translateY(-5px); border-color: #b9d2fb; box-shadow: 0 30px 50px -28px rgba(8, 60, 160, .4); text-decoration: none; color: #0a1a4a; }
.hp-svc__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 6px; border-radius: 16px; color: #0874f9; background: #eaf2ff; }
.hp-svc__icon svg { width: 27px; height: 27px; }
.hp-svc__icon--imt { color: #0a9d6a; background: #e5f8ef; }
.hp-svc__icon--psiholog { color: #d6336c; background: #ffe8f0; }
.hp-svc__icon--peresylka { color: #6a4cf0; background: #eeeaff; }
.hp-svc__icon--udalenie { color: #e0701a; background: #fff0e0; }
.hp-svc__icon--scheta { color: #0b8fb5; background: #e0f6fc; }
.hp-svc__icon--akty { color: #3b5bdb; background: #e7ecff; }
.hp-svc__name { font-size: 19px; font-weight: 700; line-height: 1.25; }
.hp-svc__text { flex: 1 1 auto; font-size: 15px; line-height: 1.5; color: #5a6a90; }
.hp-svc__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14.5px; font-weight: 600; color: #0874f9; }
.hp-svc__more svg { transition: transform .2s ease; }
.hp-svc:hover .hp-svc__more svg { transform: translateX(4px); }

.hp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.hp-steps li { padding: 28px 26px; border: 1px solid #e3e9f7; border-radius: 24px; background: #fff; }
.hp-steps__n { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #0d7bff, #7c5cff); font-size: 19px; font-weight: 800; }
.hp-steps h3 { font-size: 20px; font-weight: 700; }
.hp-steps p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: #5a6a90; }

.hp-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hp-feat { padding: 26px 24px; border-radius: 22px; background: #f6f9ff; }
.hp-feat h3 { font-size: 18px; font-weight: 700; }
.hp-feat p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: #5a6a90; }
.hp-feat a { color: #0874f9; text-decoration: underline; text-underline-offset: 3px; }
.hp-note { margin-top: 26px; max-width: 760px; font-size: 14px; line-height: 1.6; color: #7a87a8; }

.hp-cta { padding: 0 0 12px; }
.hp-cta__panel { position: relative; overflow: hidden; padding: 64px 32px; border-radius: 32px; text-align: center; color: #fff; background: linear-gradient(150deg, #07133a 0%, #0a1f5c 60%, #10256b 100%); }
.hp-cta__panel::before { content: ''; position: absolute; left: -120px; top: -180px; width: 460px; height: 460px; border-radius: 50%; background: #1c6dff; opacity: .5; filter: blur(90px); }
.hp-cta__panel::after { content: ''; position: absolute; right: -100px; bottom: -180px; width: 380px; height: 380px; border-radius: 50%; background: #7c5cff; opacity: .4; filter: blur(90px); }
.hp-cta__panel > * { position: relative; z-index: 1; }
.hp-cta h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.02em; }
.hp-cta p { margin-top: 12px; font-size: 18px; color: #c5d3f5; }

@media (max-width: 991px) {
	.hp-hero__grid { grid-template-columns: 1fr; gap: 36px; }
	.hp-hero__visual { min-height: 360px; }
	.hp-steps { grid-template-columns: 1fr; }
	.hp-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
	.hp-wrap { width: calc(100% - 32px); }
	.hp-hero { padding-bottom: 56px; }
	.hp-section { padding: 56px 0; }
	.hp-feats { grid-template-columns: 1fr; }
	.hp-btn { width: 100%; }
	.hp-card--main { right: 4%; }
	.hp-cta__panel { padding: 44px 20px; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) { .hp-card--float, .hp-bar i { animation: none; } }
