/* ============ BASE ============ */
:root {
	--blue: #0F3BBD;
	--blue-dark: #1B2A5E;
	--cyan: #00C4D4;
	--cyan-light: #E4FAFB;
	--ink: #232A43;
	--muted: #6B7490;
	--bg: #F2F5FA;
	--card: #FFFFFF;
	--radius: 20px;
	--shadow: 0 10px 40px rgba(27, 42, 94, .08);
	--container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, p, ul { margin: 0; }

a { color: inherit; text-decoration: none; }

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

/* ============ REVEAL ANIMATION ============ */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .7s ease, transform .7s ease;
}
.reveal--delay-1 { transition-delay: .12s; }
.reveal--delay-2 { transition-delay: .24s; }
.reveal--delay-3 { transition-delay: .36s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ NAV ============ */
.nav { padding: 28px 0 0; }

.nav__brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.nav__logo { width: 40px; height: auto; }

.nav__name {
	font-size: 26px;
	font-weight: 700;
	color: var(--blue);
	letter-spacing: -.01em;
}

.nav__name--footer { font-size: 22px; }

/* ============ HERO ============ */
.hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(160deg, #FAFCFE 0%, #EEF3FA 55%, #E7EEF8 100%);
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.hero__blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
}
.hero__blob--1 {
	width: 640px; height: 640px;
	right: -160px; top: -220px;
	background: radial-gradient(circle, rgba(0, 196, 212, .16), rgba(15, 59, 189, .07) 60%, transparent 75%);
}
.hero__blob--2 {
	width: 480px; height: 480px;
	left: -200px; bottom: -260px;
	background: radial-gradient(circle, rgba(15, 59, 189, .10), transparent 70%);
}

.hero__dots {
	position: absolute;
	width: 140px; height: 90px;
	background-image: radial-gradient(rgba(15, 59, 189, .22) 1.6px, transparent 1.6px);
	background-size: 18px 18px;
}
.hero__dots--1 { right: 8%; top: 60px; }
.hero__dots--2 { left: 46%; bottom: 40px; }

.hero__grid {
	display: grid;
	grid-template-columns: minmax(320px, 5fr) 7fr;
	align-items: center;
	gap: 40px;
	padding: 56px 0 72px;
	position: relative;
}

.hero__title {
	font-size: clamp(30px, 3.4vw, 46px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.02em;
	color: var(--blue-dark);
}

.hero__title-accent { color: var(--blue); }

.hero__text {
	margin-top: 24px;
	max-width: 380px;
	color: var(--muted);
	font-size: 17px;
}
.hero__text b { color: var(--ink); font-weight: 600; }

/* --- store badges --- */
.hero__stores {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.store-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 9px 18px 9px 14px;
	background: #0B0F1A;
	color: #fff;
	border-radius: 12px;
	transition: transform .25s ease, box-shadow .25s ease;
}
.store-badge:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 24px rgba(11, 15, 26, .28);
}

.store-badge__icon { width: 26px; height: 26px; flex: none; }

.store-badge__text {
	display: flex;
	flex-direction: column;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.15;
	white-space: nowrap;
}
.store-badge__text small {
	font-size: 10px;
	font-weight: 400;
	opacity: .8;
}

/* --- safe note --- */
.hero__safe {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 32px;
	color: var(--muted);
	font-size: 14px;
}
.hero__safe p { line-height: 1.45; }
.hero__safe-icon { width: 30px; height: 30px; flex: none; }

/* --- phones --- */
.hero__phones {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.hero__phone {
	width: 31%;
	max-width: 250px;
	filter: drop-shadow(0 24px 40px rgba(27, 42, 94, .18));
}
.hero__phone--1 { transform: translateX(6%) rotate(-2deg); z-index: 1; }
.hero__phone--2 { transform: translateY(-10px) scale(1.06); z-index: 2; }
.hero__phone--3 { transform: translateX(-2%) rotate(2deg); z-index: 1; }

/* ============ FEATURES ============ */
.features { padding: 72px 0 36px; }

.features__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.feature-card {
	background: var(--card);
	border-radius: var(--radius);
	padding: 32px 28px;
	box-shadow: var(--shadow);
	transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 48px rgba(27, 42, 94, .12);
}

.feature-card__icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	margin-bottom: 40px;
}
.feature-card__icon svg { width: 34px; height: 34px; }
.feature-card__icon--violet { background: #EAEDFB; }
.feature-card__icon--cyan { background: var(--cyan-light); }

.feature-card__title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 12px;
}

.feature-card__text {
	font-size: 14.5px;
	color: var(--muted);
}

/* ============ PAYMENTS ============ */
.payments { padding: 48px 0; }

.payments__grid {
	display: grid;
	grid-template-columns: minmax(220px, 3fr) 5fr 5fr;
	gap: 24px;
	align-items: center;
}

.payments__heading {
	font-size: clamp(28px, 3vw, 36px);
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--ink);
	margin-bottom: 14px;
}

.payments__sub {
	color: var(--muted);
	font-size: 15px;
	max-width: 240px;
}

.pay-card {
	display: flex;
	gap: 24px;
	background: var(--card);
	border-radius: var(--radius);
	padding: 36px 32px;
	box-shadow: var(--shadow);
	min-height: 100%;
	transition: transform .3s ease, box-shadow .3s ease;
}
.pay-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 48px rgba(27, 42, 94, .12);
}

.pay-card__icon {
	width: 72px;
	height: 72px;
	flex: none;
	border-radius: 50%;
	display: grid;
	place-items: center;
}
.pay-card__icon svg { width: 38px; height: 38px; }
.pay-card__icon--violet { background: #EAEDFB; }
.pay-card__icon--cyan { background: var(--cyan-light); }

.pay-card__title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 10px;
}

.pay-card__text {
	font-size: 14.5px;
	color: var(--muted);
	margin-bottom: 18px;
}

.pay-card__list {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 8px;
}
.pay-card__list li {
	position: relative;
	padding-left: 26px;
	font-size: 14.5px;
	color: var(--ink);
}
.pay-card__list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 3px;
	width: 16px;
	height: 16px;
	background: no-repeat center / contain
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.4 3.4 3.4L13 5.2' fill='none' stroke='%230F3BBD' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ============ HOW IT WORKS ============ */
.how { padding: 48px 0 88px; }

.how__heading {
	text-align: center;
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 800;
	letter-spacing: -.02em;
	margin-bottom: 44px;
}

.how__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 56px;
}

.step-card {
	position: relative;
	background: var(--card);
	border-radius: var(--radius);
	padding: 36px 28px 32px;
	box-shadow: var(--shadow);
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 20px;
	align-items: center;
}

.step-card__num {
	position: absolute;
	top: 22px;
	left: 22px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	z-index: 1;
}
.step-card__num--violet { background: var(--blue); }
.step-card__num--cyan { background: #12CDD9; }

.step-card__illustration { width: 120px; }

.step-card__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 10px;
}
.step-card__title--violet { color: var(--blue); }
.step-card__title--cyan { color: #12CDD9; }

.step-card__text {
	font-size: 13.5px;
	color: var(--muted);
}

.step-card__arrow {
	position: absolute;
	right: -50px;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	z-index: 1;
}

/* ============ DOC PAGE ============ */
.doc-header {
	background: linear-gradient(160deg, #FAFCFE 0%, #EEF3FA 100%);
	border-bottom: 1px solid #E6EAF3;
	padding-bottom: 24px;
}

.nav--doc {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.doc-header__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--blue);
	transition: opacity .2s ease;
}
.doc-header__back:hover { opacity: .75; }
.doc-header__back svg { width: 15px; height: 15px; }

.doc { padding: 48px 0 72px; }

.container--doc { max-width: 860px; }

.doc__card {
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 56px 64px;
}

.doc__title {
	font-size: clamp(26px, 3.4vw, 38px);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.15;
	color: var(--blue-dark);
	margin-bottom: 8px;
}

.doc__section { margin-top: 36px; }

.doc__section h2 {
	font-size: 19px;
	font-weight: 700;
	color: var(--ink);
	margin-bottom: 14px;
}

.doc__section p {
	font-size: 15px;
	color: #3D465F;
	margin-bottom: 12px;
}
.doc__section p:last-child { margin-bottom: 0; }

.doc__section ul {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}
.doc__section ul li {
	position: relative;
	padding-left: 22px;
	font-size: 15px;
	color: #3D465F;
}
.doc__section ul li::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 9px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--cyan);
}

.doc__section a {
	color: var(--blue);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.doc__section a:hover { text-decoration: none; }

/* --- контент документа с бекенда --- */
.doc__content { margin-top: 24px; }

.doc__content p {
	font-size: 15px;
	color: #3D465F;
	margin-bottom: 12px;
}

.doc__content b { color: var(--ink); }

/* абзац-подзаголовок (содержит только <b>) */
.doc__content p:has(> b:only-child):not([style*="center"]) {
	margin-top: 30px;
	font-size: 17px;
}

.doc__content ul {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}
.doc__content ul li {
	position: relative;
	padding-left: 22px;
	font-size: 15px;
	color: #3D465F;
}
.doc__content ul li::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 9px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--cyan);
}

.doc__content a {
	color: var(--blue);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.doc__content a:hover { text-decoration: none; }

.doc__error {
	padding: 20px 24px;
	background: #FDF1F1;
	border-radius: 12px;
	color: #8A3A3A !important;
}

/* --- скелетон загрузки --- */
.doc__card--loading .doc__content::before {
	content: '';
	display: block;
	height: 320px;
	border-radius: 12px;
	background: linear-gradient(100deg, #EEF1F9 40%, #F7F9FD 50%, #EEF1F9 60%);
	background-size: 200% 100%;
	animation: doc-shimmer 1.4s infinite linear;
}
@keyframes doc-shimmer {
	to { background-position: -200% 0; }
}

@media (max-width: 640px) {
	.doc { padding: 32px 0 48px; }
	.doc__card { padding: 32px 24px; }
	.doc-header__back { font-size: 13px; }
}

/* ============ FOOTER ============ */
.footer {
	background: #fff;
	border-top: 1px solid #E6EAF3;
	padding: 44px 0;
}

.footer__grid {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 32px;
	align-items: start;
}

.footer__copy {
	margin-top: 14px;
	font-size: 13px;
	color: var(--muted);
	line-height: 1.6;
}

.footer__links {
	display: grid;
	gap: 12px;
	padding-top: 6px;
	font-size: 14px;
	color: var(--muted);
}
.footer__links a:hover { color: var(--blue); }

.footer__contact {
	justify-self: end;
	padding-top: 6px;
	font-size: 14px;
	color: var(--muted);
}
.footer__contact a:hover { color: var(--blue); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
	.features__grid { grid-template-columns: repeat(2, 1fr); }

	.payments__grid { grid-template-columns: 1fr 1fr; }
	.payments__intro { grid-column: 1 / -1; }
	.payments__sub { max-width: 420px; }

	.how__grid { gap: 32px; }
	.step-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
	.step-card__arrow { display: none; }
}

@media (max-width: 900px) {
	.hero__grid {
		grid-template-columns: 1fr;
		gap: 56px;
		padding-bottom: 56px;
	}
	.hero__text { max-width: 460px; }
	.hero__phones { max-width: 640px; margin: 0 auto; }

	.how__grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
	.step-card { grid-template-columns: 120px 1fr; text-align: left; justify-items: start; }
}

@media (max-width: 640px) {
	.features__grid,
	.payments__grid { grid-template-columns: 1fr; }

	.pay-card { flex-direction: column; }

	.hero__phone--1, .hero__phone--3 { display: none; }
	.hero__phone--2 { width: 68%; max-width: 300px; transform: none; }

	.step-card { grid-template-columns: 96px 1fr; padding: 30px 22px 26px; }
	.step-card__illustration { width: 96px; }
	.step-card__num { top: 14px; left: 14px; }

	.footer__grid { grid-template-columns: 1fr; }
	.footer__contact { justify-self: start; }
}
