/* ==========================================================================
   Happ Подписка — main.css
   Палитра приложения Happ: графит (#2b2b2b) и индиго кнопки подключения (#5145e4).
   ========================================================================== */

:root {
	--bg: #141416;
	--bg-alt: #1a1a1d;
	--surface: #222226;
	--surface-2: #2b2b2b;
	--line: #2f2f35;
	--line-2: #3e3e46;
	--text: #f2f2f5;
	--muted: #a5a5b0;
	--faint: #83838d;

	--accent: #5145e4;          /* кнопка подключения в Happ */
	--accent-hover: #6358f2;
	--accent-deep: #2c2484;     /* тёмное состояние кнопки */
	--accent-text: #a49dff;     /* индиго для текста на тёмном фоне */
	--accent-rgb: 81, 69, 228;
	--accent-ink: #ffffff;
	--accent-soft: rgba(81, 69, 228, .16);
	--ok: #3fd28c;
	--warn: #f3c26b;

	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 20px 50px -20px rgba(0, 0, 0, .65);

	--font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-display: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--container: 1180px;
	--gutter: 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 600; }
h1, h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 1.05rem + 1.8vw, 2.15rem); }
h3 { font-size: 1.12rem; font-weight: 700; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.ico { width: 20px; height: 20px; flex: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.center { text-align: center; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Кнопки ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px;
	border-radius: 999px; border: 1px solid transparent;
	font-weight: 700; font-size: .98rem; line-height: 1; white-space: nowrap;
	cursor: pointer; transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .ico { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .ico { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -12px rgba(var(--accent-rgb), .6); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ---------- Мелкие элементы ---------- */
.eyebrow, .kicker {
	display: inline-flex; align-items: center; gap: 8px;
	margin: 0 0 14px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text);
}
.eyebrow { padding: 6px 12px; border: 1px solid rgba(var(--accent-rgb), .3); background: var(--accent-soft); border-radius: 999px; letter-spacing: .04em; text-transform: none; font-size: .85rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(63, 210, 140, .2); animation: pulse 2.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(63, 210, 140, 0); } }

.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: .74rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.badge--accent { background: var(--accent-soft); border-color: rgba(var(--accent-rgb), .35); color: var(--accent-text); }

/* ---------- Шапка ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(22, 23, 26, .82);
	backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; }
.logo__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); }
.logo__mark .logo__h { width: 100%; height: 100%; }
.logo__img { height: 34px; width: auto; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; }
.nav__list a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .94rem; transition: color .2s, background .2s; }
.nav__list a:hover { color: var(--text); background: var(--surface); }
.nav__cta-mobile { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 10px; }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
	.burger { display: inline-flex; }
	.site-header__cta { display: none; }
	.site-header__actions { margin-left: auto; }
	.nav {
		position: fixed; inset: 68px 0 auto 0; margin: 0;
		background: var(--bg); border-bottom: 1px solid var(--line);
		padding: 12px var(--gutter) 22px;
		transform: translateY(-8px); opacity: 0; visibility: hidden;
		transition: transform .25s, opacity .25s, visibility .25s;
	}
	.nav { pointer-events: none; }
	.nav.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
	.nav__list { flex-direction: column; }
	.nav__list a { padding: 13px 4px; font-size: 1.05rem; color: var(--text); border-bottom: 1px solid var(--line); border-radius: 0; }
	.nav__cta-mobile { display: flex; width: 100%; margin-top: 16px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero::before {
	content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(var(--accent-rgb), .16), transparent 70%); pointer-events: none;
}
.hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 56px 56px; opacity: .25;
	mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero__title { font-size: clamp(2.3rem, 1.3rem + 3.4vw, 3.6rem); font-weight: 700; line-height: 1.05; margin-bottom: 14px; }
.hero__sub { max-width: 600px; margin: 0 0 22px; font-size: clamp(1.3rem, 1.05rem + 1vw, 1.8rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; color: #c9ccd3; }
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.hero__lead strong { color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .93rem; font-weight: 600; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .ico { color: var(--accent-text); width: 18px; height: 18px; }

/* Мокап телефона */
.hero__visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.phone {
	position: relative; width: 290px; aspect-ratio: 9 / 18.6; border-radius: 44px; padding: 12px;
	background: linear-gradient(160deg, #3a3d45, #1d1f24); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .08);
	transform: rotate(-3deg);
}
.phone__notch { position: absolute; top: 20px; left: 50%; width: 92px; height: 24px; margin-left: -46px; border-radius: 20px; background: #0b0c0e; z-index: 2; }
.phone__screen { height: 100%; border-radius: 34px; background: linear-gradient(180deg, #121316, #17191d); padding: 52px 18px 18px; display: flex; flex-direction: column; overflow: hidden; }
.app-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.app-bar__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.app-bar__plus { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); color: var(--accent-text); font-weight: 700; }
.app-sub { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--surface); font-size: .78rem; }
.app-sub__row { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.app-sub__dots { color: var(--muted); letter-spacing: 1px; }
.app-sub__meta { color: var(--muted); font-size: .7rem; }
.power { position: relative; width: 132px; height: 132px; margin: 26px auto 14px; display: grid; place-items: center; }
.power__ring { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), .35), transparent 68%); animation: glow 3s ease-in-out infinite; }
@keyframes glow { 50% { transform: scale(1.08); opacity: .7; } }
.power__btn { position: relative; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #6c62f5, var(--accent) 55%, #4237cf); color: var(--accent-ink); box-shadow: 0 0 0 8px rgba(var(--accent-rgb), .15); }
.power__btn .ico { width: 38px; height: 38px; stroke-width: 2.2; }
.app-status { text-align: center; margin: 0; font-weight: 800; color: var(--accent-text); }
.app-timer { text-align: center; margin: 0 0 16px; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .85rem; }
.app-list { display: grid; gap: 7px; margin-top: auto; }
.app-row { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 11px; background: var(--surface); font-size: .78rem; font-weight: 600; }
.app-row--on { box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .5); }
.app-row__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.app-row--on .app-row__dot { background: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .2); }
.app-row__ping { color: var(--accent-text); font-size: .72rem; }

.float-card {
	position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px;
	background: rgba(33, 35, 40, .92); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(8px);
	animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }
.float-card strong { display: block; font-size: .9rem; }
.float-card small { display: block; color: var(--muted); font-size: .75rem; }
.float-card__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); }
.float-card--mail { left: 0; top: auto; bottom: 9%; }
.float-card--trial { right: 2%; top: 14%; flex-direction: column; align-items: flex-start; gap: 0; animation-delay: -3s; }
.float-card--trial strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--accent-text); }

@media (max-width: 960px) {
	.hero { padding: 32px 0 56px; }
	.hero__grid { grid-template-columns: 1fr; gap: 24px; }
	.hero__visual { display: none; }
}
@media (max-width: 560px) {
	.hero__actions .btn { flex: 1 1 100%; }
	.float-card--mail { left: -4px; }
	.float-card--trial { right: -4px; }
}

/* ---------- Секции ---------- */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section__head--left { text-align: left; margin-left: 0; }
.section__head h2 { margin-bottom: 14px; }
.section__lead { color: var(--muted); font-size: 1.05rem; margin: 0; }
@media (max-width: 720px) { .section { padding: 64px 0; } .section__head { margin-bottom: 32px; } }

/* Шаги */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; counter-reset: none; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step__num { position: absolute; top: 20px; right: 22px; font-family: var(--font-display); font-size: .85rem; color: var(--faint); }
.step__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 18px; }
.step__ico .ico { width: 22px; height: 22px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Тарифы */
.trial {
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	padding: 26px 30px; margin-bottom: 18px; border-radius: var(--radius);
	background: linear-gradient(110deg, rgba(var(--accent-rgb), .14), rgba(var(--accent-rgb), .02) 60%), var(--surface);
	border: 1px solid rgba(var(--accent-rgb), .3);
}
.trial h3 { font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.2vw, 1.7rem); margin: 10px 0 6px; }
.trial p { color: var(--muted); margin: 0; max-width: 560px; }

.plans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.plan {
	position: relative; display: flex; flex-direction: column; padding: 24px 20px;
	border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
	transition: border-color .2s, transform .2s;
}
.plan:hover { border-color: var(--line-2); transform: translateY(-2px); }
.plan--featured { background: var(--surface-2); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 50px -24px rgba(var(--accent-rgb), .45); }
.plan__top { margin-bottom: 14px; }
.plan__top .badge { position: absolute; top: -12px; left: 18px; background: var(--surface-2); }
.plan__top .badge--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.plan__name { font-size: 1.05rem; }
.plan__price { font-family: var(--font-display); font-size: 1.85rem; font-weight: 700; margin: 0 0 4px; white-space: nowrap; }
.plan__price span { font-family: var(--font); font-size: .9rem; color: var(--muted); font-weight: 600; margin-left: 2px; }
.plan__total { display: grid; gap: 2px; color: var(--muted); font-size: .86rem; margin: 0 0 18px; }
.plan__total s { color: var(--faint); margin-left: 2px; }
.plan__save { color: var(--accent-text); font-weight: 800; margin-left: 4px; }
.plan__list { list-style: none; display: grid; gap: 9px; margin-bottom: 22px; font-size: .9rem; }
.plan__list li { display: flex; gap: 8px; align-items: center; }
.plan__list .ico { width: 16px; height: 16px; color: var(--accent-text); }
.plan .btn { margin-top: auto; }
.tariffs__note { max-width: 860px; margin: 26px auto 0; text-align: center; color: var(--faint); font-size: .88rem; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(3, 1fr); row-gap: 22px; } }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } .trial { padding: 22px; } .trial .btn { width: 100%; } }
@media (max-width: 460px) { .plans { grid-template-columns: 1fr; } }

/* Преимущества */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--bg); padding: 30px 28px; }
.feature__ico { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--accent-text); margin-bottom: 16px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } .feature { padding: 24px 20px; } }

/* Платформы */
.platforms { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.platform {
	display: flex; flex-direction: column; gap: 14px; padding: 20px 16px; border-radius: var(--radius-sm);
	background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, background .2s, transform .2s;
}
.platform:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-2px); }
.platform__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--accent-text); flex: none; }
.platform__body { flex: 1; min-width: 0; }
.platform__body strong { display: block; font-size: .95rem; line-height: 1.3; margin-bottom: 4px; }
.platform__body small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.platform__cta { font-weight: 700; font-size: .85rem; color: var(--accent-text); white-space: nowrap; }
.platform__cta::after { content: " →"; }
@media (max-width: 1100px) { .platforms { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) {
	.platforms { grid-template-columns: 1fr; gap: 10px; }
	.platform { flex-direction: row; align-items: center; padding: 14px 16px; }
}

/* Инструкция */
.guide { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.guide__intro h2 { margin-bottom: 16px; }
.guide__intro > p { color: var(--muted); }
.guide__tip { display: flex; gap: 14px; margin-top: 24px; padding: 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.guide__tip .ico { color: var(--accent-text); margin-top: 3px; }
.guide__tip p { margin: 0; color: var(--muted); font-size: .94rem; }
.guide__tip strong { color: var(--text); }
.guide__tabs { padding: 8px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 13px; background: var(--bg); }
.tabs__btn { flex: 1; padding: 11px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.tabs__btn.is-active { background: var(--surface-2); color: var(--text); }
.tabs__panel { padding: 24px 18px 14px; }
.tabs__panel h3 { margin-bottom: 18px; }
.howto { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.howto li { counter-increment: s; position: relative; padding-left: 44px; color: var(--muted); }
.howto li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 800; font-size: .88rem; }
.howto b { color: var(--text); }
@media (max-width: 960px) { .guide { grid-template-columns: 1fr; gap: 28px; } }

/* SEO-текст / контент страниц */
.prose-wrap { max-width: 860px; }
.prose { color: var(--muted); font-size: 1.02rem; }
.prose h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem); color: var(--text); margin-bottom: 22px; }
.prose h2 { color: var(--text); margin: 0 0 18px; }
.prose h3 { color: var(--text); margin: 30px 0 10px; font-size: 1.2rem; }
.prose strong, .prose b { color: var(--text); }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius-sm); height: auto; }
.prose .btn { text-decoration: none; }
.prose .btn--primary { color: var(--accent-ink); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq-wrap .section__head { position: sticky; top: 100px; margin-bottom: 0; }
.faq { display: grid; gap: 10px; }
.faq__item { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.faq__item[open] { border-color: var(--line-2); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: 1.02rem; font-weight: 700; font-family: var(--font); }
.faq__toggle { position: relative; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); flex: none; }
.faq__toggle::before, .faq__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--accent); transition: transform .2s; }
.faq__toggle::after { transform: rotate(90deg); }
.faq__item[open] .faq__toggle::after { transform: rotate(0); }
.faq__answer { padding: 0 20px 18px; color: var(--muted); }
.faq__answer p { margin: 0; }
@media (max-width: 960px) { .faq-wrap { grid-template-columns: 1fr; gap: 24px; } .faq-wrap .section__head { position: static; } }

/* CTA */
.section--cta { padding-top: 0; }
.cta {
	display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
	padding: 44px 48px; border-radius: 26px;
	background: radial-gradient(120% 140% at 100% 0, rgba(var(--accent-rgb), .25), transparent 55%), var(--surface);
	border: 1px solid var(--line-2);
}
.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--muted); margin: 0; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 720px) { .cta { padding: 30px 22px; } .cta__actions, .cta__actions .btn { width: 100%; } }

/* Подвал */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--bg-alt); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer__brand p { color: var(--muted); font-size: .92rem; max-width: 380px; margin: 16px 0 18px; }
.site-footer__title { font-weight: 800; margin-bottom: 14px; font-size: .95rem; }
.site-footer__list { list-style: none; display: grid; gap: 10px; }
.site-footer__list a { color: var(--muted); font-size: .93rem; word-break: break-word; }
.site-footer__list a:hover { color: var(--accent-text); }
.site-footer__bottom { margin-top: 40px; padding-top: 22px; background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; display: grid; gap: 8px; color: var(--faint); font-size: .82rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__note { max-width: 860px; }
@media (max-width: 1000px) { .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Мобильная панель с кнопкой */
.sticky-cta { display: none; }
@media (max-width: 720px) {
	.sticky-cta {
		position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		padding: 10px 10px 10px 18px; border-radius: 18px;
		background: rgba(33, 35, 40, .94); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(10px);
		transform: translateY(150%); transition: transform .3s;
	}
	.sticky-cta.is-visible { transform: none; }
	.sticky-cta__text strong { display: block; font-size: .95rem; }
	.sticky-cta__text span { display: block; font-size: .78rem; color: var(--muted); }
	.has-sticky-cta .site-footer { padding-bottom: 100px; }
}

/* Внутренние страницы */
.page { padding: 48px 0 80px; }
.page__head { margin-bottom: 28px; }
.crumbs { font-size: .86rem; color: var(--faint); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-text); }
.page__cta { margin-top: 48px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.page__cta p { margin: 0; font-weight: 700; }
.post-list { display: grid; gap: 14px; }
.post-card { padding: 22px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.post-card h2 { font-size: 1.2rem; margin-bottom: 8px; }
.post-card p { color: var(--muted); margin: 0; }
.page--404 { padding: 100px 0; }
.page--404 h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem); margin-bottom: 16px; }

/* Кнопки Gutenberg внутри контента */
.wp-block-button__link { border-radius: 999px; background: var(--accent); color: var(--accent-ink) !important; font-weight: 700; text-decoration: none !important; }

/* ==========================================================================
   Страницы-инструкции
   ========================================================================== */
.link { color: var(--accent-text); text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb), .4); text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--accent-text); }
.nav__list a[aria-current="page"] { color: var(--text); background: var(--surface); }

.section--tight { padding: 40px 0 72px; }
.section--cta-top { padding-top: 72px; }

.more-links { margin: 26px 0 0; text-align: center; color: var(--muted); font-size: .95rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.guide__more { margin-top: 18px; }

/* Шапка страницы */
.page-hero { position: relative; padding: 36px 0 32px; overflow: hidden; }
.page-hero::before {
	content: ""; position: absolute; right: -200px; top: -260px; width: 640px; height: 640px; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(var(--accent-rgb), .14), transparent 70%); pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero__title { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); font-weight: 700; line-height: 1.1; max-width: 900px; margin-bottom: 18px; }
.page-hero__lead { font-size: 1.1rem; color: var(--muted); max-width: 720px; margin-bottom: 26px; }

.toc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; padding-top: 22px; border-top: 1px solid var(--line); }
.toc__label { color: var(--faint); font-size: .86rem; font-weight: 600; margin-right: 4px; }
.toc a { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: .88rem; font-weight: 600; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--accent-text); border-color: var(--accent); }

/* Карточки систем */
.os-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.os-cards--two { grid-template-columns: repeat(2, 1fr); }
.os-card { display: flex; flex-direction: column; padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.os-card__ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 18px; }
.os-card__ico .ico { width: 24px; height: 24px; }
.os-card__title { font-family: var(--font); font-size: 1.2rem; font-weight: 800; letter-spacing: 0; margin-bottom: 14px; }
.os-card__list { list-style: none; display: grid; gap: 9px; margin-bottom: 22px; color: var(--muted); font-size: .93rem; }
.os-card__list li { display: flex; gap: 9px; align-items: flex-start; }
.os-card__list .ico { width: 16px; height: 16px; color: var(--accent-text); margin-top: 4px; }
.os-card__actions { margin-top: auto; display: grid; gap: 12px; text-align: center; }
.os-card__more { color: var(--muted); font-size: .88rem; font-weight: 600; }
.os-card__more:hover { color: var(--accent-text); }
@media (max-width: 860px) { .os-cards, .os-cards--two { grid-template-columns: 1fr; } }

/* Статья: заголовок слева, шаги справа */
.article { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.article__head h2 { margin-bottom: 14px; }
.article__head .section__lead { font-size: 1rem; }
.article__body { display: grid; gap: 20px; }
.article__sub { font-size: 1.05rem; margin-top: 6px; }
.article__sub:first-child { margin-top: 0; }
.article__text { color: var(--muted); margin: 0; }
.article__text b { color: var(--text); }
.article__more { color: var(--muted); margin: 0; font-size: .95rem; }
.howto code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; padding: 2px 7px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); word-break: break-all; }
@media (max-width: 960px) { .article { grid-template-columns: 1fr; gap: 24px; } }

/* Врезка */
.note { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.section--alt .note { background: var(--bg); }
.note__ico { flex: none; width: 20px; height: 20px; color: var(--accent-text); margin-top: 2px; }
.note__ico .ico { width: 20px; height: 20px; }
.note p { margin: 0; color: var(--muted); font-size: .94rem; }
.note strong { color: var(--text); }

/* Плашка «нет ключа» */
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 20px 22px; border-radius: var(--radius); background: linear-gradient(110deg, rgba(var(--accent-rgb), .14), rgba(var(--accent-rgb), .02) 70%), var(--surface); border: 1px solid rgba(var(--accent-rgb), .3); }
.inline-cta strong { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.inline-cta span { display: block; color: var(--muted); font-size: .9rem; }
@media (max-width: 560px) { .inline-cta .btn { width: 100%; } }

/* Способы */
.ways { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ways--three { grid-template-columns: repeat(3, 1fr); }
.way { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.section--alt .way { background: var(--bg); }
.way h3 { margin-bottom: 8px; }
.way p { color: var(--muted); margin: 0; font-size: .94rem; }
@media (max-width: 860px) { .ways, .ways--three { grid-template-columns: 1fr; } }

/* Что нужно */
.need { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.need__card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.need__card--accent { border-color: rgba(var(--accent-rgb), .35); background: linear-gradient(140deg, rgba(var(--accent-rgb), .12), transparent 60%), var(--surface); }
.need__card h3 { font-size: 1.2rem; }
.need__card p { color: var(--muted); margin: 0 0 6px; }
.need__links { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 600; }
@media (max-width: 760px) { .need { grid-template-columns: 1fr; } }

/* Проблемы */
.problems { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.problem { padding: 22px 22px 22px 24px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); position: relative; }
.problem::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; border-radius: 0 3px 3px 0; background: var(--warn); }
.problem h3 { margin-bottom: 8px; font-size: 1.05rem; }
.problem p { color: var(--muted); margin: 0; font-size: .94rem; }
.problems__more { margin-top: 28px; }
@media (max-width: 760px) { .problems { grid-template-columns: 1fr; } }

/* Другие инструкции */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related__card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.related__card:hover { border-color: var(--accent); transform: translateY(-2px); }
.related__card .platform__ico { margin-bottom: 6px; color: var(--accent-text); }
.related__card strong { font-size: 1.02rem; }
.related__card small { color: var(--muted); font-size: .88rem; }


/* ==========================================================================
   Happ Подписка — новые блоки
   ========================================================================== */

/* Выпадающее меню «Скачать» */
.nav__has-sub { position: relative; }
.nav__toggle {
	display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border: 0; border-radius: 10px;
	background: transparent; color: var(--muted); font-weight: 600; font-size: .94rem; cursor: pointer; transition: color .2s, background .2s;
}
.nav__toggle .ico { width: 16px; height: 16px; transition: transform .2s; }
.nav__toggle:hover, .nav__toggle.is-current, .nav__has-sub.is-open .nav__toggle { color: var(--text); background: var(--surface); }
.nav__has-sub.is-open .nav__toggle .ico { transform: rotate(180deg); }
.nav__sub {
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; padding: 6px; list-style: none;
	background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 60;
}
.nav__sub a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: .94rem; }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav__has-sub.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1081px) {
	.nav__has-sub:hover .nav__sub, .nav__has-sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
	.nav__has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
}
@media (max-width: 1080px) {
	.nav__toggle { width: 100%; justify-content: space-between; padding: 13px 4px; font-size: 1.05rem; color: var(--text); border-bottom: 1px solid var(--line); border-radius: 0; }
	.nav__toggle:hover, .nav__toggle.is-current, .nav__has-sub.is-open .nav__toggle { background: transparent; }
	.nav__toggle .ico { display: none; }
	.nav__sub { position: static; opacity: 1; visibility: inherit; transform: none; min-width: 0; padding: 0 0 0 14px; background: transparent; border: 0; box-shadow: none; }
	.nav__sub a { padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--muted); }
	.nav { max-height: calc(100vh - 68px); overflow-y: auto; }
}

/* Заголовок секции в две колонки */
.section__head--split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 48px; align-items: end; max-width: none; text-align: left; margin-left: 0; }
.section__head--split h2 { margin: 0; }
@media (max-width: 860px) { .section__head--split { grid-template-columns: 1fr; } }

/* Управление подпиской */
.manage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.manage__card {
	position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px 22px 20px; border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .2s, transform .2s, background .2s;
}
.manage__card::before {
	content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(var(--accent-rgb), .22), transparent); opacity: 0; transition: opacity .2s;
}
.manage__card:hover { border-color: var(--accent); transform: translateY(-3px); background: var(--surface-2); }
.manage__card:hover::before { opacity: 1; }
.manage__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); margin-bottom: 8px; }
.manage__ico .ico { width: 22px; height: 22px; }
.manage__card strong { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.manage__card small { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.manage__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; color: var(--accent-text); font-weight: 700; font-size: .86rem; }
.manage__more .ico { width: 16px; height: 16px; transition: transform .2s; }
.manage__card:hover .manage__more .ico { transform: translateX(3px); }
@media (max-width: 1000px) { .manage { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .manage { grid-template-columns: 1fr; } .manage__card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; } .manage__ico { margin: 0; } .manage__card small, .manage__more { flex-basis: 100%; } }

/* Выбор срока / что отключить */
.choose { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.choose__card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.section--alt .choose__card { background: var(--bg); }
.choose__card h3 { margin-top: 10px; }
.choose__card p { color: var(--muted); margin: 0; font-size: .93rem; }
.choose__card .choose__price { color: var(--accent-text); font-weight: 800; font-size: 1rem; }
.choose__card--link { transition: border-color .2s, transform .2s; }
.choose__card--link:hover { border-color: var(--accent); transform: translateY(-2px); }
@media (max-width: 1000px) { .choose { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .choose { grid-template-columns: 1fr; } }

/* Цифры */
.stats { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat strong { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .93rem; }
.stat:first-child strong { color: var(--accent-text); }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stat--wide { grid-column: 1 / -1; } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* Короткие шаги в карточках */
.mini-steps { margin: 10px 0 0; padding-left: 1.2em; color: var(--muted); font-size: .93rem; display: grid; gap: 6px; }
.mini-steps li::marker { color: var(--accent-text); font-weight: 800; }
.way .link { display: inline-block; margin-top: 12px; font-weight: 700; }

/* Подсказка-скриншот приложения */
.app-hint { display: grid; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line-2); max-width: 420px; }
.app-hint__card { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--bg); }
.app-hint__name { display: flex; justify-content: space-between; font-weight: 700; }
.app-hint__name span { color: var(--muted); letter-spacing: 1px; }
.app-hint__meta { color: var(--muted); font-size: .86rem; }
.app-hint__toast { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(var(--accent-rgb), .4); font-size: .88rem; font-weight: 600; }
.app-hint__toast .ico { color: var(--accent-text); width: 18px; height: 18px; }

/* Проблемы — позитивный вариант */
.problem--ok::before { background: var(--accent); }

/* Перелинковка */
.section--related { border-top: 1px solid var(--line); }
.related { grid-template-columns: repeat(3, 1fr); }
.related__card { background: var(--surface); }
.related__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 6px; }
.related__ico .ico { width: 22px; height: 22px; }
@media (max-width: 1000px) { .related { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .related { grid-template-columns: 1fr; } }

.more-actions { margin-top: 28px; }
.section__lead b { color: var(--text); }

/* Выделенная панель «Управление подпиской» */
.manage-panel {
	position: relative; overflow: hidden; padding: 40px; border-radius: 28px;
	background:
		radial-gradient(70% 90% at 0% 0%, rgba(var(--accent-rgb), .28), transparent 60%),
		radial-gradient(50% 70% at 100% 100%, rgba(var(--accent-rgb), .16), transparent 60%),
		linear-gradient(180deg, #1c1b2e, #17171b);
	border: 1px solid rgba(var(--accent-rgb), .35);
	box-shadow: 0 30px 80px -40px rgba(var(--accent-rgb), .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.manage-panel::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
	background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: 40px 40px;
	mask-image: radial-gradient(ellipse 60% 80% at 15% 0%, #000, transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse 60% 80% at 15% 0%, #000, transparent 70%);
}
.manage-panel > * { position: relative; z-index: 1; }
.manage-panel__head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px 48px; align-items: end; margin-bottom: 32px; }
.manage-panel__head h2 { margin: 0; }
.manage-panel__head .section__lead { color: #b9b9c6; }
.manage-panel__badge {
	display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 7px 14px 7px 10px; border-radius: 999px;
	background: var(--accent); color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .02em;
	box-shadow: 0 8px 24px -10px rgba(var(--accent-rgb), .8);
}
.manage-panel__badge .ico { width: 16px; height: 16px; }

.manage-panel .manage__card { background: rgba(20, 20, 22, .72); border-color: rgba(255, 255, 255, .08); backdrop-filter: blur(6px); }
.manage-panel .manage__card:hover { background: rgba(30, 29, 44, .9); border-color: var(--accent); }
.manage__num { position: absolute; top: 20px; right: 22px; font-size: .82rem; font-weight: 700; color: var(--faint); letter-spacing: .04em; }
.manage-panel .manage__ico { background: var(--accent-soft); color: var(--accent-text); border: 1px solid rgba(var(--accent-rgb), .35); }

.manage-panel .manage__card--primary { background: linear-gradient(160deg, #6257f0, var(--accent) 55%, #4033c9); border-color: transparent; box-shadow: 0 20px 40px -20px rgba(var(--accent-rgb), .9); }
.manage-panel .manage__card--primary:hover { background: linear-gradient(160deg, #6c62f5, #5a4ef0 55%, #4639d6); border-color: transparent; }
.manage__card--primary small { color: rgba(255, 255, 255, .82); }
.manage__card--primary .manage__num { color: rgba(255, 255, 255, .6); }
.manage__card--primary .manage__more { color: #fff; }
.manage-panel .manage__card--primary .manage__ico { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .25); }
.manage__card--primary::before { display: none; }

@media (max-width: 860px) {
	.manage-panel { padding: 26px 18px; border-radius: 22px; }
	.manage-panel__head { grid-template-columns: 1fr; margin-bottom: 22px; }
}
.manage-panel .manage__more { font-size: .82rem; white-space: nowrap; }
@media (min-width: 1001px) and (max-width: 1180px) { .manage-panel .manage__more { white-space: normal; } }
