/* ==========================================================================
   ACTIVITY LIFE — PARTNER FLOW (тариф → данные → готово + баннеры кабинета)
   Стиль: как лендинг партнёров (variant F, light liquid glass).
   Scope: всё под .apf (страницы флоу) и .apf-dash (кабинет).
   Шапка/подвал Traveler не трогаются.
   Breakpoints: ≥1200 desktop · 992–1199 laptop · 768–991 tablet · ≤767 phone · ≤414 narrow
   ========================================================================== */

.apf,
.apf-dash {
	--apf-ink: #14202b;
	--apf-muted: #41515e;
	--apf-soft: #6b7b88;
	--apf-bg: #f2f6f9;
	--apf-line: #e3eaf0;
	--apf-accent: #ef7a00;
	--apf-accent-2: #e37600;
	--apf-accent-ink: #b35800;
	--apf-green: #1f9e78;
	--apf-green-ink: #137a5c;
	--apf-blue: #0f6fa8;
	--apf-red: #c8423b;
	--apf-btn-grad: linear-gradient(116deg, var(--apf-accent), var(--apf-accent-2));
	--apf-btn-shadow: 0 16px 32px rgba(239, 122, 0, 0.24);
	--apf-btn-shadow-hover: 0 20px 40px rgba(239, 122, 0, 0.34);
	--apf-glass: rgba(255, 255, 255, 0.66);
	--apf-glass-strong: rgba(255, 255, 255, 0.86);
	--apf-glass-border: rgba(255, 255, 255, 0.82);
	--apf-shadow: 0 16px 48px rgba(20, 45, 70, 0.12);
	--apf-shadow-strong: 0 24px 64px rgba(20, 45, 70, 0.2);
	--apf-radius: 26px;
	--apf-header-offset: 92px;
	--apf-gutter: 40px;
	--apf-ease: cubic-bezier(.2, .7, .2, 1);
	--apf-font: "Montserrat", "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--apf-font-display: "Montserrat", "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	color: var(--apf-ink);
	font-family: var(--apf-font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.apf { display: block; background: var(--apf-bg); overflow-x: clip; padding-bottom: 96px; }

/* ---------- local reset ---------- */
:where(.apf, .apf-dash) *, :where(.apf, .apf-dash) *::before, :where(.apf, .apf-dash) *::after { box-sizing: border-box; }
:where(.apf, .apf-dash) h1, :where(.apf, .apf-dash) h2, :where(.apf, .apf-dash) h3, :where(.apf, .apf-dash) h4,
:where(.apf, .apf-dash) p, :where(.apf, .apf-dash) ul, :where(.apf, .apf-dash) ol, :where(.apf, .apf-dash) li { margin: 0; padding: 0; }
:where(.apf, .apf-dash) ul, :where(.apf, .apf-dash) ol { list-style: none; }
:where(.apf, .apf-dash) h1, :where(.apf, .apf-dash) h2, :where(.apf, .apf-dash) h3, :where(.apf, .apf-dash) h4 {
	color: var(--apf-ink); font-family: var(--apf-font); font-weight: 800; letter-spacing: 0; text-transform: none;
}
:where(.apf, .apf-dash) a, :where(.apf, .apf-dash) a:hover, :where(.apf, .apf-dash) a:focus { text-decoration: none; }
.apf a:focus-visible, .apf button:focus-visible, .apf input:focus-visible, .apf summary:focus-visible,
.apf-dash a:focus-visible {
	outline: 3px solid rgba(239, 122, 0, 0.55); outline-offset: 3px;
}
.apf-ico {
	width: 1em; height: 1em; flex-shrink: 0;
	fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.apf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- layout ---------- */
.apf-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--apf-gutter); }
.apf-wrap--md { max-width: 1120px; }
.apf-section { padding: 56px 0 0; }
.apf-h2 { font-family: var(--apf-font-display) !important; font-size: 30px; line-height: 1.2; font-weight: 700 !important; margin-bottom: 10px; text-wrap: balance; }
.apf-sub { color: var(--apf-muted); font-size: 17px; margin-bottom: 28px; }
.apf-center { text-align: center; }

/* ---------- glass ---------- */
.apf-glass {
	background: var(--apf-glass);
	-webkit-backdrop-filter: blur(20px) saturate(1.8);
	backdrop-filter: blur(20px) saturate(1.8);
	border: 1px solid var(--apf-glass-border);
	box-shadow: var(--apf-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.apf-glass--strong {
	background: var(--apf-glass-strong);
	box-shadow: var(--apf-shadow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.apf-card { background: #fff; border: 1px solid var(--apf-line); box-shadow: 0 10px 30px rgba(20, 45, 70, 0.07); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.apf-glass { background: rgba(255, 255, 255, 0.92); }
	.apf-glass--strong { background: rgba(255, 255, 255, 0.97); }
}
.apf-soft { position: relative; isolation: isolate; }
.apf-soft::before {
	content: ""; position: absolute; inset: -40px 0; z-index: -1; pointer-events: none;
	background: url("../img/partner-landing/soft-480.webp") center 20% / cover no-repeat;
	filter: blur(40px) saturate(1.35) brightness(1.22);
	opacity: .5;
}

/* ---------- buttons ---------- */
.apf-btn,
.apf .apf-form #st_submit_member_package {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; width: auto;
	padding: 16px 30px;
	border: 0 !important; border-radius: 16px !important;
	background: var(--apf-btn-grad) !important;
	box-shadow: var(--apf-btn-shadow);
	color: #fff !important;
	font-family: var(--apf-font); font-weight: 800; font-size: 17px; line-height: 1.2;
	text-align: center; text-transform: none; letter-spacing: 0;
	cursor: pointer;
	transition: transform .2s var(--apf-ease), box-shadow .2s var(--apf-ease), filter .2s ease;
}
.apf-btn--block { display: flex; width: 100%; }
.apf-btn--lg { min-height: 58px; padding: 18px 38px; font-size: 18px; border-radius: 18px !important; }
.apf-btn--ghost {
	background: #fff !important; color: var(--apf-ink) !important;
	border: 1px solid var(--apf-line) !important; box-shadow: 0 6px 18px rgba(20, 45, 70, 0.08);
}
.apf-btn--green { background: linear-gradient(116deg, #22a87f, #188a68) !important; box-shadow: 0 16px 32px rgba(31, 158, 120, 0.24); }
.apf-btn[aria-disabled="true"], .apf-btn:disabled {
	background: #e7edf2 !important; color: var(--apf-soft) !important; box-shadow: none; cursor: not-allowed;
}
@media (hover: hover) and (pointer: fine) {
	.apf-btn:not([aria-disabled="true"]):hover,
	.apf .apf-form #st_submit_member_package:hover { transform: translateY(-2px); box-shadow: var(--apf-btn-shadow-hover); filter: saturate(1.08); }
	.apf-btn--ghost:hover { box-shadow: 0 12px 26px rgba(20, 45, 70, 0.14) !important; }
}
.apf-btn:active { transform: scale(.98); }

/* ---------- badge / pill / chip ---------- */
.apf-badge {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 14px; border-radius: 999px;
	background: rgba(31, 158, 120, 0.12); color: var(--apf-green-ink);
	font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
}
.apf-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--apf-green); }
.apf-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.apf-pill--ok { background: rgba(31, 158, 120, 0.14); color: var(--apf-green-ink); }
.apf-pill--wait { background: rgba(239, 122, 0, 0.14); color: var(--apf-accent-ink); }
.apf-pill--bad { background: rgba(200, 66, 59, 0.12); color: var(--apf-red); }
.apf-pill--info { background: rgba(15, 111, 168, 0.1); color: var(--apf-blue); }
.apf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.apf-chip { display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 999px; background: #f1f5f8; color: var(--apf-ink); font-size: 13px; font-weight: 700; line-height: 1.2; }

/* ==========================================================================
   HERO + STEPPER (все три шага)
   ========================================================================== */
.apf-hero {
	position: relative;
	padding: calc(var(--apf-header-offset) + 40px) 0 36px;
	background-color: #cfe0ec;
	background-image:
		linear-gradient(180deg, rgba(242, 246, 249, 0) 45%, var(--apf-bg) 100%),
		image-set(url("../img/partner-landing/hero-1920.webp") type("image/webp"), url("../img/partner-landing/hero-1280.jpg") type("image/jpeg"));
	background-size: cover; background-position: center 30%; background-repeat: no-repeat;
}
.apf-hero__card { max-width: 980px; margin: 0 auto; padding: 40px 44px 34px; border-radius: 32px; text-align: center; }
.apf-hero__title {
	font-family: var(--apf-font-display) !important; font-weight: 700 !important;
	font-size: 44px; line-height: 1.1; margin: 18px auto 14px; max-width: 800px; text-wrap: balance;
}
.apf-hero__title em { font-style: normal; color: #e46f00; }
.apf-hero__lead { color: var(--apf-muted); font-size: 19px; line-height: 1.55; max-width: 680px; margin: 0 auto; }
.apf-hero__lead b { color: var(--apf-ink); }

.apf-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; counter-reset: apf; }
.apf-step {
	display: flex; align-items: center; gap: 12px;
	padding: 12px 16px; border-radius: 18px;
	background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.85);
	text-align: left; color: var(--apf-soft); font-weight: 700; font-size: 15px; line-height: 1.25;
}
.apf-step__num {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 38px; height: 38px; border-radius: 12px;
	background: #e7edf2; color: var(--apf-soft);
	font-family: var(--apf-font-display); font-size: 16px; font-weight: 700;
}
.apf-step__label small { display: block; font-weight: 600; font-size: 12px; color: var(--apf-soft); }
.apf-step.is-active { background: #fff; color: var(--apf-ink); box-shadow: 0 10px 26px rgba(20, 45, 70, 0.12); }
.apf-step.is-active .apf-step__num { background: var(--apf-accent); color: #fff; box-shadow: 0 8px 18px rgba(239, 122, 0, 0.3); }
.apf-step.is-complete { color: var(--apf-green-ink); }
.apf-step.is-complete .apf-step__num { background: var(--apf-green); color: #fff; }
.apf-step a { color: inherit; }

.apf-crumbs { margin-top: 18px; font-size: 13px; color: var(--apf-soft); text-align: center; }
.apf-crumbs .breadcrumb, .apf-crumbs ul { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; background: none; padding: 0; margin: 0; }
.apf-crumbs a { color: var(--apf-muted); font-weight: 700; }

/* ==========================================================================
   ШАГ 1 — ТАРИФЫ
   ========================================================================== */
.apf-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.apf-plan {
	position: relative; display: flex; flex-direction: column;
	padding: 28px 24px 24px; border-radius: var(--apf-radius);
	transition: transform .25s var(--apf-ease), box-shadow .25s var(--apf-ease);
}
.apf-plan--featured { border: 2px solid rgba(239, 122, 0, 0.55); background: rgba(255, 255, 255, 0.9); }
.apf-plan__flag {
	position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
	padding: 6px 14px; border-radius: 999px; background: var(--apf-btn-grad); color: #fff;
	font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
	box-shadow: 0 8px 18px rgba(239, 122, 0, 0.3);
}
.apf-plan__ico {
	display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; border-radius: 16px; font-size: 26px;
	color: var(--apf-accent-ink); background: rgba(239, 122, 0, 0.12); margin-bottom: 16px;
}
.apf-plan--green .apf-plan__ico { color: var(--apf-green-ink); background: rgba(31, 158, 120, 0.12); }
.apf-plan--blue .apf-plan__ico { color: var(--apf-blue); background: rgba(15, 111, 168, 0.1); }
.apf-plan__name { font-size: 20px; line-height: 1.25; margin-bottom: 6px; }
.apf-plan__for { color: var(--apf-muted); font-size: 14px; line-height: 1.45; min-height: 42px; }
.apf-plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 20px 0 4px; }
.apf-plan__amount { font-family: var(--apf-font-display); font-weight: 700; font-size: 34px; line-height: 1; }
.apf-plan__period { color: var(--apf-soft); font-size: 14px; font-weight: 700; }
.apf-plan__commission { font-size: 14px; color: var(--apf-muted); margin-bottom: 18px; }
.apf-plan__commission b { color: var(--apf-ink); }
.apf-plan__list { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--apf-line); margin-bottom: 22px; flex: 1; }
.apf-plan__list li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.4; }
.apf-plan__list .apf-ico { margin-top: 2px; color: var(--apf-green); stroke-width: 2.8; }
.apf-plan__services { margin-bottom: 18px; }
.apf-plan form { margin: 0; }
.apf-plan__hint { margin-top: 10px; font-size: 13px; color: var(--apf-soft); text-align: center; line-height: 1.4; }
.apf-plan.is-current { border: 2px solid rgba(31, 158, 120, 0.6); }
@media (hover: hover) and (pointer: fine) {
	.apf-plan:hover { transform: translateY(-4px); box-shadow: var(--apf-shadow-strong); }
}

.apf-gate {
	display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
	max-width: 980px; margin: 0 auto 28px; padding: 18px 22px; border-radius: 20px;
}
.apf-gate__ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; font-size: 24px; flex-shrink: 0; }
.apf-gate__ico--wait { color: var(--apf-accent-ink); background: rgba(239, 122, 0, 0.14); }
.apf-gate__ico--info { color: var(--apf-blue); background: rgba(15, 111, 168, 0.1); }
.apf-gate__ico--ok { color: var(--apf-green-ink); background: rgba(31, 158, 120, 0.14); }
.apf-gate__text { flex: 1; min-width: 220px; }
.apf-gate__text b { display: block; font-size: 17px; }
.apf-gate__text span { color: var(--apf-muted); font-size: 15px; }

.apf-faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.apf-faq__item { border-radius: 18px; }
.apf-faq__q {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 18px 22px; list-style: none; cursor: pointer; font-weight: 800; font-size: 17px; line-height: 1.35;
}
.apf-faq__q::-webkit-details-marker { display: none; }
.apf-faq__q .apf-ico { font-size: 20px; color: var(--apf-accent); transition: transform .25s var(--apf-ease); }
.apf-faq__item[open] .apf-faq__q .apf-ico { transform: rotate(180deg); }
.apf-faq__a { padding: 0 22px 18px; color: var(--apf-muted); font-size: 15.5px; line-height: 1.6; }

/* ==========================================================================
   ШАГ 2 — ДАННЫЕ И ОПЛАТА
   ========================================================================== */
.apf-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.apf-panel { border-radius: var(--apf-radius); padding: 30px 32px; }
.apf-panel + .apf-panel { margin-top: 18px; }
.apf-panel__title { display: flex; align-items: center; gap: 12px; font-size: 21px; margin-bottom: 6px; }
.apf-panel__num {
	display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px;
	background: rgba(239, 122, 0, 0.14); color: var(--apf-accent-ink); font-family: var(--apf-font-display); font-size: 14px; font-weight: 700;
}
.apf-panel__text { color: var(--apf-muted); font-size: 15px; margin-bottom: 22px; }

/* Traveler form → glass look (разметка формы штатная) */
.apf-form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 0; }
.apf-form .row > [class*="col-"] { width: auto; max-width: none; padding: 0; float: none; flex: none; }
.apf-form .form-group { position: relative; margin-bottom: 18px; }
.apf-form .form-group .input-icon { display: none; }
.apf-form label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 800; color: var(--apf-ink); }
.apf-form .require { color: var(--apf-accent); margin-left: 2px; }
.apf-form .form-control,
.apf-form input[type="text"], .apf-form input[type="email"], .apf-form input[type="tel"] {
	width: 100%; height: 52px; padding: 0 16px !important;
	border: 1px solid #d6e0e8 !important; border-radius: 14px !important;
	background: #fff !important; color: var(--apf-ink);
	font-family: var(--apf-font); font-size: 16px; font-weight: 600; box-shadow: none !important;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.apf-form .form-control:focus { border-color: var(--apf-accent) !important; box-shadow: 0 0 0 4px rgba(239, 122, 0, 0.14) !important; outline: none; }
.apf-form .form-control.error, .apf-form .has-error .form-control { border-color: var(--apf-red) !important; }
.apf-form .payment-form { margin-top: 10px; padding-top: 24px; border-top: 1px solid var(--apf-line); }
.apf-form .payment-form > .title { font-size: 18px; font-weight: 800; margin: 0 0 14px; text-transform: none; }
.apf-form .payment-form ul, .apf-form .payment-form .st-payment-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.apf-form .payment-form li,
.apf-form .payment-form .payment-item {
	border: 1px solid #d6e0e8; border-radius: 16px; background: #fff; padding: 14px 16px; margin: 0;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.apf-form .payment-form li.active, .apf-form .payment-form li:has(input:checked),
.apf-form .payment-form .payment-item:has(input:checked) { border-color: var(--apf-accent); box-shadow: 0 0 0 4px rgba(239, 122, 0, 0.12); }
.apf-form .payment-form label { margin: 0; font-weight: 700; }
.apf-form .st-icheck, .apf-form .st-icheck-item { margin: 18px 0 0; font-size: 14.5px; color: var(--apf-muted); }
.apf-form .st-icheck a, .apf-form .st-icheck-item a { color: var(--apf-accent-ink); font-weight: 700; text-decoration: underline; }
.apf .apf-form #st_submit_member_package { white-space: normal; width: 100%; margin-top: 22px; min-height: 58px; font-size: 18px; }
.apf-form .alert { border-radius: 14px; margin-top: 12px; }
.apf-form .clearfix .row { display: block; }

.apf-summary { position: sticky; top: 110px; border-radius: var(--apf-radius); overflow: hidden; }
.apf-summary__head { padding: 26px 26px 18px; }
.apf-summary__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--apf-soft); }
.apf-summary__name { font-size: 22px; margin: 6px 0 12px; }
.apf-summary__rows { padding: 4px 26px 8px; }
.apf-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 12px 0; border-top: 1px solid var(--apf-line); font-size: 15px; }
.apf-row span { color: var(--apf-muted); }
.apf-row b { text-align: right; }
.apf-summary__total { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 26px; background: rgba(239, 122, 0, 0.08); }
.apf-summary__total span { font-weight: 800; }
.apf-summary__total b { font-family: var(--apf-font-display); font-size: 26px; }
.apf-summary__trust { padding: 16px 26px 22px; display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--apf-muted); }
.apf-summary__trust li { display: flex; gap: 10px; align-items: center; }
.apf-summary__trust .apf-ico { color: var(--apf-green); stroke-width: 2.6; font-size: 17px; }
.apf-summary__change { display: block; padding: 0 26px 22px; font-size: 14px; font-weight: 800; color: var(--apf-accent-ink) !important; }

.apf-alert { max-width: 760px; margin: 0 auto; padding: 32px; border-radius: var(--apf-radius); text-align: center; }
.apf-alert h2 { font-size: 22px; margin-bottom: 8px; }
.apf-alert p { color: var(--apf-muted); margin-bottom: 20px; }

/* ==========================================================================
   ШАГ 3 — ГОТОВО
   ========================================================================== */
.apf-done { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.apf-result { display: flex; gap: 22px; align-items: flex-start; padding: 32px; border-radius: var(--apf-radius); }
.apf-result__ico {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 64px; height: 64px; border-radius: 20px; font-size: 32px; color: #fff;
	background: var(--apf-green); box-shadow: 0 12px 26px rgba(31, 158, 120, 0.3);
}
.apf-result--wait .apf-result__ico { background: var(--apf-accent); box-shadow: 0 12px 26px rgba(239, 122, 0, 0.3); }
.apf-result--bad .apf-result__ico { background: var(--apf-red); box-shadow: 0 12px 26px rgba(200, 66, 59, 0.25); }
.apf-result__title { font-size: 24px; line-height: 1.25; margin-bottom: 8px; }
.apf-result__text { color: var(--apf-muted); font-size: 16px; }
.apf-result__text b { color: var(--apf-ink); }
.apf-result__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.apf-order { padding: 22px 24px; border-radius: var(--apf-radius); }
.apf-order .apf-row:first-of-type { border-top: 0; }
.apf-order__title { font-size: 17px; margin-bottom: 6px; }
.apf-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.apf-next__item { padding: 24px; border-radius: 22px; }
.apf-next__num {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 14px;
	background: var(--apf-accent); color: #fff; font-family: var(--apf-font-display); font-weight: 700; box-shadow: 0 8px 18px rgba(239, 122, 0, 0.26);
}
.apf-next__item:nth-child(3) .apf-next__num { background: var(--apf-green); box-shadow: 0 8px 18px rgba(31, 158, 120, 0.26); }
.apf-next__item h3 { font-size: 17px; margin-bottom: 6px; }
.apf-next__item p { color: var(--apf-muted); font-size: 14.5px; line-height: 1.55; }
.apf-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.apf-details .apf-panel { padding: 24px 26px; }
.apf-details .apf-row:first-of-type { border-top: 0; }
.apf-razor { margin-bottom: 18px; }

/* ==========================================================================
   КАБИНЕТ — баннеры статуса партнёра
   ========================================================================== */
.apf-dash { display: block; margin: 0 0 24px; }
.apf-dash__card {
	position: relative; overflow: hidden;
	display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
	padding: 26px 28px; border-radius: 24px;
	background: linear-gradient(120deg, #ffffff 0%, #f6fbff 60%, #fff6ec 100%);
	border: 1px solid var(--apf-line); box-shadow: 0 14px 40px rgba(20, 45, 70, 0.1);
}
.apf-dash__card::after {
	content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
	background: radial-gradient(circle, rgba(239, 122, 0, 0.16), rgba(239, 122, 0, 0) 70%); pointer-events: none;
}
.apf-dash--pending .apf-dash__card::after { background: radial-gradient(circle, rgba(15, 111, 168, 0.14), rgba(15, 111, 168, 0) 70%); }
.apf-dash__ico {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 58px; height: 58px; border-radius: 18px; font-size: 28px;
	color: var(--apf-accent-ink); background: rgba(239, 122, 0, 0.14);
}
.apf-dash--pending .apf-dash__ico { color: var(--apf-blue); background: rgba(15, 111, 168, 0.1); }
.apf-dash--declined .apf-dash__ico { color: var(--apf-red); background: rgba(200, 66, 59, 0.1); }
.apf-dash__body { flex: 1; min-width: 240px; position: relative; z-index: 1; }
.apf-dash__title { font-family: var(--apf-font-display) !important; font-weight: 700 !important; font-size: 21px; line-height: 1.25; margin-bottom: 6px !important; }
.apf-dash__text { color: var(--apf-muted); font-size: 15.5px; line-height: 1.55; }
.apf-dash__text b { color: var(--apf-ink); }
.apf-dash__steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.apf-dash__cta { position: relative; z-index: 1; }
.apf-dash .apf-btn { white-space: nowrap; }

/* акцент: оранжевая обводка, полоса слева, 3 мягкие пульсации при загрузке */
.apf-dash__card {
	border: 1.5px solid rgba(239, 122, 0, 0.55);
	box-shadow: 0 0 0 4px rgba(239, 122, 0, 0.10), 0 14px 40px rgba(20, 45, 70, 0.10);
	animation: apf-glow 2.6s ease-in-out .6s 3;
}
.apf-dash__card::before {
	content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
	background: linear-gradient(180deg, #ef7a00, #ffb066);
}
@keyframes apf-glow {
	0%, 100% { box-shadow: 0 0 0 4px rgba(239, 122, 0, 0.10), 0 14px 40px rgba(20, 45, 70, 0.10); }
	50%      { box-shadow: 0 0 0 9px rgba(239, 122, 0, 0.20), 0 18px 46px rgba(239, 122, 0, 0.18); }
}

/* наш баннер заменяет штатный попап «нет тарифа» */
body.apf-dash-has-banner .alert-user-package,
body.apf-dash-has-banner .alert-overlay { display: none !important; }

/* пункт меню кабинета «Выбрать тариф» */
.apf-dash-menu > a {
	font-family: var(--apf-font); text-decoration: none !important; font-size: 15px;
	display: flex !important; align-items: center; gap: 10px;
	margin: 6px 12px; padding: 11px 14px !important; border-radius: 12px;
	background: linear-gradient(116deg, #ef7a00, #e37600); color: #fff !important; font-weight: 800;
	box-shadow: 0 10px 22px rgba(239, 122, 0, 0.24);
}
.apf-dash-menu__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3); flex-shrink: 0; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1199.98px) {
	.apf-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
	.apf-checkout { grid-template-columns: minmax(0, 1fr) 340px; }
	.apf-done { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 991.98px) {
	.apf, .apf-dash { --apf-gutter: 28px; }
	.apf-hero__title { font-size: 36px; }
	.apf-checkout, .apf-done { grid-template-columns: minmax(0, 1fr); }
	.apf-summary { position: static; order: -1; }
	.apf-next { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
	.apf, .apf-dash { --apf-gutter: 16px; --apf-header-offset: 72px; }
	.apf { padding-bottom: 64px; }
	.apf-hero { padding-bottom: 24px; }
	.apf-hero__card { padding: 26px 18px 20px; border-radius: 24px; }
	.apf-hero__title { font-size: 28px; margin-top: 14px; }
	.apf-hero__lead { font-size: 16px; }
	.apf-steps { gap: 6px; margin-top: 20px; }
	.apf-step { flex-direction: column; gap: 6px; padding: 10px 6px; text-align: center; font-size: 12.5px; }
	.apf-step__num { width: 32px; height: 32px; font-size: 14px; border-radius: 10px; }
	.apf-step__label small { display: none; }
	.apf-section { padding-top: 36px; }
	.apf-h2 { font-size: 24px; }
	.apf-plans { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.apf-plan__for { min-height: 0; }
	.apf-panel { padding: 22px 18px; border-radius: 22px; }
	.apf-form .row { grid-template-columns: minmax(0, 1fr); }
	.apf-result { flex-direction: column; padding: 24px 20px; }
	.apf-result__actions .apf-btn { width: 100%; }
	.apf-details { grid-template-columns: minmax(0, 1fr); }
	.apf-dash__card { padding: 20px 18px; gap: 14px; }
	.apf-dash__cta, .apf-dash .apf-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.apf *, .apf-dash * { transition: none !important; animation: none !important; }
}

/* кнопки в узких карточках тарифов не переносятся */
.apf-plan .apf-btn { white-space: nowrap; padding-left: 18px; padding-right: 18px; }
@media (min-width: 1200px) and (max-width: 1320px) { .apf-plan .apf-btn { font-size: 16px; } }

/* лёгкий фон hero на телефонах */
@media (max-width: 767.98px) {
	.apf-hero {
		background-image:
			linear-gradient(180deg, rgba(242, 246, 249, 0) 45%, var(--apf-bg) 100%),
			image-set(url("../img/partner-landing/hero-640.webp") type("image/webp"), url("../img/partner-landing/hero-1280.jpg") type("image/jpeg"));
	}
}

/* activity-life.com: deutsche Texte sind länger — Silbentrennung in Karten */
.apf-plan, .apf-dash, .apf-summary, .apf-result { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.apf-step__label { hyphens: auto; -webkit-hyphens: auto; }
