/*
Theme Name: Happ Start
Description: Тема-лендинг «Happ — быстрый старт» в графитовом стиле. Тексты, тарифы и ссылки — в «Настройки сайта» (ACF Pro).
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: happ-start
*/

/* ========== Токены ========== */
:root {
	--bg: #2b2b2b;
	--bg-2: #262626;
	--surface: #313131;
	--surface-2: #383838;
	--text: #ffffff;
	--muted: rgba(255, 255, 255, .62);
	--dim: rgba(255, 255, 255, .38);
	--line: rgba(255, 255, 255, .1);
	--line-2: rgba(255, 255, 255, .24);
	--ink: #1b1b1b;
	--ok: #8fd9a8;
	--radius: 4px;
	--container: 1180px;
	--font: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
	color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

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

/* Лёгкое зерно поверх фона */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 100;
	pointer-events: none;
	opacity: .07;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--muted); }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: #fff; color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }

.ic { width: 1.2em; height: 1.2em; flex: none; }

/* Надзаголовок «— ТЕКСТ» */
.eyebrow,
.kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--dim);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
}
.eyebrow::before,
.kicker::before { content: ""; width: 18px; height: 1px; background: var(--line-2); }
.kicker:empty { display: none; }

/* ========== Кнопки ========== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6em;
	padding: 13px 22px;
	border-radius: var(--radius);
	border: 1px solid transparent;
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
	white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .ic { width: 1em; height: 1em; }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-lg { padding: 16px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary, .btn-light { background: #fff; color: var(--ink); }
.btn-primary:hover, .btn-light:hover { background: #e6e6e6; color: var(--ink); }
.btn-ghost, .btn-outline { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover, .btn-outline:hover { border-color: rgba(255, 255, 255, .6); color: var(--text); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid rgba(255, 255, 255, .7); outline-offset: 3px; }

/* ========== Шапка ========== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(43, 43, 43, .86);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-mark {
	display: grid; place-items: center;
	width: 30px; height: 30px; border-radius: var(--radius);
	background: #fff; color: var(--ink); font-weight: 800; font-size: 16px;
}
.logo-img { width: 30px; height: 30px; border-radius: var(--radius); object-fit: cover; }
.logo-text { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; }
.logo-text small {
	padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 3px;
	font-weight: 600; font-size: 9px; color: var(--muted); letter-spacing: .2em; text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-list { display: flex; gap: 28px; }
.nav-list a { color: var(--muted); font-weight: 500; font-size: 14px; }
.nav-list a:hover, .nav-list .current-menu-item a { color: var(--text); }
.nav-cabinet { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
	display: none; width: 42px; height: 42px; border-radius: var(--radius);
	border: 1px solid var(--line-2); background: transparent; color: var(--text);
	align-items: center; justify-content: center; cursor: pointer;
}

/* ========== Первый экран ========== */
.hero { padding: 72px 0 0; position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; padding-bottom: 72px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 68px); margin: 22px 0 22px; }
.hero h1 span { color: rgba(255, 255, 255, .5); }
.lead { font-size: 17px; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--dim); font-size: 13px; }
.hero-note .ic { color: var(--ok); }

/* Макет телефона — монохром */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.hero-visual::before {
	content: ""; position: absolute; inset: 8% -10% 8% 12%;
	background: linear-gradient(105deg, transparent 0 30%, rgba(255, 255, 255, .05) 30% 70%, transparent 70%);
	transform: skewX(-8deg);
}
.glow { display: none; }
.phone {
	position: relative; width: 280px; padding: 10px; border-radius: 42px;
	background: #1d1d1d; box-shadow: 0 40px 80px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 86px; height: 24px; border-radius: 20px; background: #1d1d1d; z-index: 2; }
.phone-screen { border-radius: 33px; background: #242424; padding: 54px 18px 20px; min-height: 520px; border: 1px solid rgba(255, 255, 255, .06); }
.app-top { display: flex; justify-content: space-between; align-items: center; }
.app-name { font-weight: 700; font-size: 17px; }
.app-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 3px; border: 1px solid var(--line-2); color: var(--muted); font-weight: 600; font-size: 11px; }
.app-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: blink 1.6s ease-in-out infinite; }
.app-power { position: relative; display: grid; place-items: center; height: 190px; margin: 16px 0 4px; }
.power-btn {
	position: relative; z-index: 2; display: grid; place-items: center;
	width: 112px; height: 112px; border-radius: 50%;
	background: #fff; color: var(--ink);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
}
.power-btn .ic { width: 44px; height: 44px; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); animation: pulse 2.8s ease-out infinite; }
.ring-1, .ring-2 { width: 112px; height: 112px; }
.ring-2 { animation-delay: 1.4s; }
.app-timer { text-align: center; font-weight: 600; font-size: 24px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.app-speed { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.app-speed div { border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 11px; }
.app-speed small { display: block; color: var(--dim); font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.app-speed b { font-size: 16px; font-weight: 700; white-space: nowrap; }
.app-speed em { font-style: normal; font-size: 10px; color: var(--dim); font-weight: 500; }
.app-list li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 11px; font-size: 12px; font-weight: 600; margin-top: 6px; color: var(--muted); }
.app-list li.active { border-color: rgba(255, 255, 255, .5); color: var(--text); }
.app-list .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.app-list .active .dot { background: var(--ok); }
.app-list .ping { margin-left: auto; color: var(--dim); font-size: 11px; font-weight: 500; }

.float-card {
	position: absolute; display: flex; align-items: center; gap: 10px;
	padding: 11px 15px; border-radius: var(--radius); background: #fff; color: var(--ink);
	box-shadow: 0 20px 40px rgba(0, 0, 0, .35); font-weight: 600; font-size: 13px;
	animation: float 6s ease-in-out infinite;
}
.float-card .ic { width: 18px; height: 18px; }
.fc-1 { top: 30%; left: -4%; }
.fc-2 { bottom: 14%; right: -2%; animation-delay: -3s; }

/* Цифры — полоса во всю ширину с разделителями */
.stats {
	display: grid; grid-template-columns: repeat(4, 1fr);
	border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats li { padding: 26px 24px 26px 0; display: flex; flex-direction: column; gap: 2px; }
.stats li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.stats b { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.stats span { color: var(--dim); font-size: 13px; }

/* ========== Секции ========== */
.section { padding: 104px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 640px; margin: 0 0 52px; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 44px); margin-top: 16px; }
.section-head p { color: var(--muted); font-size: 16px; margin-top: 16px; }
.section-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Шаги — колонки с тонкими разделителями */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step { padding: 30px 28px 34px 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step-num { display: block; color: var(--dim); font-size: 12px; font-weight: 600; letter-spacing: .12em; margin-bottom: 36px; }
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14px; }

/* Преимущества — сетка ячеек */
.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { padding: 34px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s ease; }
.feature:hover { background: rgba(255, 255, 255, .03); }
.feature-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--line-2); color: var(--text); margin-bottom: 26px; }
.feature-ic .ic { width: 20px; height: 20px; }
.feature h3 { font-size: 17px; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 14px; }

/* Тарифы */
.tariff-common { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-bottom: 0; }
.tariff-common li { display: flex; gap: 10px; align-items: flex-start; padding: 20px 20px 20px 0; color: var(--muted); font-size: 14px; }
.tariff-common li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.tariff-common .ic { color: var(--text); width: 16px; height: 16px; margin-top: 3px; }
.tariffs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tariff {
	position: relative; display: flex; flex-direction: column; gap: 4px;
	padding: 34px 26px 30px; color: var(--text); isolation: isolate;
}
.tariff + .tariff { border-left: 1px solid var(--line); }
.tariff:hover { color: var(--text); }
.tariff::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(255, 255, 255, 0); transition: background .25s ease;
}
.tariff:hover::before { background: rgba(255, 255, 255, .03); }
.tariff.is-featured::before { background: rgba(255, 255, 255, .07); transform: skewX(-6deg); inset: -1px 14px; }
.tariff-badge {
	position: absolute; top: -11px; left: 26px;
	padding: 4px 9px; border-radius: 3px; background: #fff; color: var(--ink);
	font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.tariff:not(.is-featured) .tariff-badge { background: var(--surface-2); color: var(--text); }
.tariff-period { color: var(--muted); font-size: 13px; font-weight: 500; }
.tariff-price { font-size: 38px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.tariff-name { color: var(--dim); font-size: 13px; }
.tariff-month { color: var(--muted); font-size: 13px; font-weight: 600; min-height: 21px; }
.tariff-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 26px; font-size: 13px; font-weight: 600; }
.tariff-go .ic { width: 14px; height: 14px; transition: transform .2s ease; }
.tariff:hover .tariff-go .ic { transform: translateX(4px); }

/* Платформы */
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.platforms li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.platforms a { display: flex; align-items: center; gap: 14px; padding: 22px 24px; color: var(--text); transition: background .2s ease; height: 100%; }
.platforms a:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.platform-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius); border: 1px solid var(--line-2); }
.platform-ic .ic { width: 18px; height: 18px; }
.platform-name { font-weight: 600; font-size: 15px; }
.platform-go { margin-left: auto; color: var(--dim); transition: color .2s ease; }
.platforms a:hover .platform-go { color: var(--text); }

/* Инструкции / задачи */
.guides { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.guide {
	display: flex; align-items: center; gap: 20px;
	padding: 26px 28px; color: var(--text);
	border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
	transition: background .2s ease;
}
.guide:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.guide-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius); border: 1px solid var(--line-2); flex: none; }
.guide-ic .ic { width: 20px; height: 20px; }
.guide-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.guide-body b { font-size: 16px; font-weight: 600; }
.guide-body span { color: var(--muted); font-size: 14px; }
.guide-arrow { margin-left: auto; color: var(--dim); transition: transform .2s ease, color .2s ease; }
.guide:hover .guide-arrow { color: var(--text); transform: translateX(4px); }
.guide-support { grid-column: 1 / -1; }
.guide-support .guide-ic { background: #fff; color: var(--ink); border-color: #fff; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 24px 0; font-weight: 600; font-size: 17px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--muted); }
.faq-plus { margin-left: auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--radius); border: 1px solid var(--line-2); flex: none; transition: background .2s ease; }
.faq-plus .ic { width: 14px; height: 14px; transition: transform .25s ease; }
.faq-item[open] .faq-plus { background: #fff; color: var(--ink); border-color: #fff; }
.faq-item[open] .faq-plus .ic { transform: rotate(45deg); }
.faq-a { padding: 0 60px 26px 0; color: var(--muted); }

/* Призыв */
.cta-section { padding: 0; border-top: 1px solid var(--line); }
.cta {
	display: flex; align-items: center; justify-content: space-between; gap: 32px;
	padding: 72px 0; position: relative;
}
.cta h2 { font-size: clamp(28px, 3.4vw, 42px); margin-top: 14px; }
.cta p { color: var(--muted); margin-top: 12px; font-size: 16px; }

/* ========== Внутренние страницы ========== */
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 56px); margin-top: 20px; max-width: 820px; }
.page-hero .lead { margin-top: 20px; max-width: 640px; }
.page-hero .hero-actions { margin-top: 28px; }
.page-404 { padding: 120px 0 130px; border-bottom: 0; }
.back-link { color: var(--dim); font-weight: 500; font-size: 13px; }
.back-link:hover { color: var(--text); }
.page-section { padding-top: 72px; }

/* Контент из редактора */
.prose { font-size: 16px; color: var(--muted); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { color: var(--text); font-size: clamp(24px, 2.8vw, 32px); margin-top: 2.2em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { color: var(--text); font-size: 19px; margin-top: 1.8em; }
.prose strong, .prose b { color: var(--text); }
.prose a:not(.btn) { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.prose a:not(.btn):hover { text-decoration-color: #fff; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 22px; }
.prose ul > li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--line-2); }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .5em; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose code { background: var(--surface-2); color: var(--text); padding: 2px 6px; border-radius: 3px; font-size: .88em; }
.prose blockquote, .prose .is-note {
	margin: 1.6em 0; padding: 18px 22px; border-left: 2px solid #fff; background: rgba(255, 255, 255, .04); color: var(--text);
}
.prose blockquote p { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* Нумерованные шаги в инструкциях: <ol class="happ-steps"> */
.prose ol.happ-steps { list-style: none; padding: 0; counter-reset: st; border-top: 1px solid var(--line); }
.prose ol.happ-steps > li { counter-increment: st; position: relative; padding: 20px 0 20px 64px; margin: 0; border-bottom: 1px solid var(--line); }
.prose ol.happ-steps > li::before {
	content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 20px;
	width: 40px; height: 40px; display: grid; place-items: center;
	border: 1px solid var(--line-2); border-radius: var(--radius);
	color: var(--text); font-size: 13px; font-weight: 600;
}
.prose ol.happ-steps > li strong:first-child { display: block; margin-bottom: 2px; font-size: 16px; }

/* Навигация по разделам страницы: <p class="happ-toc"> */
.prose .happ-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.prose .happ-toc a { text-decoration: none; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); font-size: 13px; font-weight: 600; }
.prose .happ-toc a:hover { background: #fff; color: var(--ink); }

/* Раскрывающиеся блоки (блок «Подробности») */
.prose details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: -1px; }
.prose details + details { margin-top: -1px; }
.prose h2 + details, .prose p + details { margin-top: 1.4em; }
.prose details summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; color: var(--text); font-weight: 600; font-size: 16px; }
.prose details summary::-webkit-details-marker { display: none; }
.prose details summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 22px; font-weight: 400; color: var(--muted); transition: transform .2s ease; }
.prose details[open] summary::after { transform: rotate(45deg); }
.prose details > :not(summary) { margin: 0 0 20px; }

/* Кнопки в редакторе (блок «Кнопки») */
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.prose .wp-block-button__link { display: inline-flex; padding: 13px 22px; border-radius: var(--radius); background: #fff; color: var(--ink) !important; font-weight: 600; font-size: 14px; text-decoration: none !important; }
.prose .is-style-outline .wp-block-button__link { background: transparent; color: var(--text) !important; border: 1px solid var(--line-2); }

/* Шорткоды внутри страниц */
.prose .happ-embed { margin: 1.8em 0; color: var(--text); }
.prose .happ-embed ul, .prose .happ-embed ul > li { padding-left: 0; margin-top: 0; }
.prose .happ-embed ul > li::before { display: none; }
.prose .happ-embed a { text-decoration: none; }

.page-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 72px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-cta > div { display: flex; flex-direction: column; margin-right: auto; flex: 1 1 260px; }
.page-cta b { font-size: 18px; }
.page-cta span { color: var(--muted); font-size: 14px; }
.post-list { border-top: 1px solid var(--line); border-left: 1px solid var(--line); display: grid; }
.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination .page-numbers { padding: 8px 14px; border-radius: var(--radius); border: 1px solid var(--line-2); font-weight: 600; }
.pagination .current { background: #fff; color: var(--ink); border-color: #fff; }

/* ========== Подвал ========== */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
.footer-brand { max-width: 420px; }
.footer-note { color: var(--muted); font-size: 13px; margin-top: 18px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-col h4 { margin: 0 0 18px; }
.footer-list { display: grid; gap: 12px; align-content: start; }
.footer-list a { color: var(--muted); font-size: 14px; }
.footer-list a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 22px; color: var(--dim); font-size: 12px; position: relative; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: var(--line); }
.to-top { color: var(--dim); }

/* ========== Анимации ========== */
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes float { 50% { transform: translateY(-10px); } }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ========== Адаптив ========== */
@media (max-width: 1080px) {
	.nav-list { gap: 20px; }
	.tariffs, .tariff-common { grid-template-columns: repeat(2, 1fr); }
	.tariff:nth-child(3) { border-left: 0; }
	.tariff:nth-child(n+3) { border-top: 1px solid var(--line); }
	.tariff-common li:nth-child(3) { border-left: 0; padding-left: 0; }
	.tariff-common li:nth-child(n+3) { border-top: 1px solid var(--line); }
	.steps { grid-template-columns: repeat(2, 1fr); }
	.step:nth-child(3) { border-left: 0; padding-left: 0; }
	.step:nth-child(n+3) { border-top: 1px solid var(--line); }
	.platforms { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 920px) {
	.menu-toggle { display: inline-flex; }
	.header-actions { margin-left: auto; }
	.nav {
		position: fixed; top: 72px; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 8px;
		padding: 12px 24px 24px; background: var(--bg); border-bottom: 1px solid var(--line);
		transform: translateY(-8px); opacity: 0; visibility: hidden;
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
	}
	.nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list a { display: block; padding: 14px 0; font-size: 16px; color: var(--text); border-bottom: 1px solid var(--line); }
	.nav-cabinet { display: inline-flex; margin-top: 10px; }
	.hero-inner { grid-template-columns: 1fr; gap: 24px; }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.stats li:nth-child(3) { border-left: 0; padding-left: 0; }
	.stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
	.features { grid-template-columns: repeat(2, 1fr); }
	.guides { grid-template-columns: 1fr; }
	.cta { flex-direction: column; align-items: flex-start; }
	.footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.container { padding: 0 16px; }
	.header-inner { height: 64px; gap: 12px; }
	.nav { top: 64px; padding: 12px 16px 20px; }
	.header-actions .btn { display: none; }
	.logo-text small { display: none; }
	.hero { padding-top: 44px; }
	.hero-inner { padding-bottom: 48px; }
	.lead { font-size: 16px; }
	.hero-actions .btn { width: 100%; }
	.hero-note { display: block; }
	.hero-note .ic { vertical-align: -3px; margin-right: 4px; }
	.phone { width: 256px; }
	.phone-screen { min-height: 470px; padding: 50px 14px 16px; }
	.app-power { height: 164px; }
	.app-speed div { padding: 8px 9px; }
	.app-speed b { font-size: 14px; }
	.float-card { display: none; }
	.hero-visual::before { display: none; }
	.stats li { padding: 18px 12px 18px 0; }
	.stats li + li { padding-left: 14px; }
	.stats li:nth-child(3) { padding-left: 0; }
	.stats b { font-size: 22px; }
	.section { padding: 72px 0; }
	.section-head { margin-bottom: 36px; }
	.steps, .features, .tariffs, .tariff-common { grid-template-columns: 1fr; }
	.step, .step + .step { padding: 24px 0; border-left: 0; }
	.step + .step { border-top: 1px solid var(--line); }
	.step-num { margin-bottom: 14px; }
	.tariff + .tariff { border-left: 0; border-top: 1px solid var(--line); }
	.tariff { padding: 30px 4px 26px; }
	.tariff.is-featured::before { transform: none; }
	.tariff-common li, .tariff-common li + li { padding: 14px 0; border-left: 0; }
	.tariff-common li + li { border-top: 1px solid var(--line); }
	.platforms { grid-template-columns: repeat(2, 1fr); }
	.platforms a { padding: 18px 16px; gap: 10px; }
	.platform-go { display: none; }
	.guide { padding: 20px 16px; gap: 14px; }
	.guide-ic { width: 40px; height: 40px; }
	.faq-a { padding-right: 0; }
	.cta { padding: 56px 0; }
	.cta .btn { width: 100%; }
	.page-hero { padding: 48px 0 40px; }
	.page-section { padding-top: 48px; }
	.prose ol.happ-steps > li { padding-left: 54px; }
	.page-cta .btn { width: 100%; }
	.footer-links { grid-template-columns: 1fr; gap: 28px; }
	.footer-bottom { flex-direction: column; }
	.footer-bottom::before { left: 16px; right: 16px; }
}
