/* Богослужебные указания — подписка PRO. Цвета как в приложении. */
.bogo-subscribe,
.bogo-result {
	--bogo-primary: #567a8c;
	--bogo-primary-dark: #44626f;
	--bogo-accent: #2e7d32;
	--bogo-cinnabar: #a6322a;
	--bogo-text: #1b1b1b;
	--bogo-muted: #6f7478;
	--bogo-line: #d9e1e5;
	--bogo-tint: #eef3f5;
	max-width: 560px;
	margin: 24px auto;
	color: var(--bogo-text);
	font-size: 16px;
	line-height: 1.5;
}

.bogo-subscribe *,
.bogo-result * {
	box-sizing: border-box;
}

/* Плашка тестового режима ЮKassa */
.bogo-test-banner {
	margin-bottom: 20px;
	padding: 14px 16px;
	border: 1px solid #f0c36d;
	border-radius: 14px;
	background: #fff8e5;
	color: #5c4a1a;
	font-size: 14px;
	line-height: 1.5;
}

/* Продление по ссылке из приложения: вместо поля email */
.bogo-renew {
	margin-bottom: 14px;
	padding: 14px 16px;
	border: 1px solid #c9d6dc;
	border-radius: 14px;
	background: #f2f6f8;
	font-size: 14px;
	line-height: 1.5;
}

.bogo-test-banner code {
	padding: 1px 6px;
	border-radius: 6px;
	background: #fff;
	font-size: 14px;
	white-space: nowrap;
}

/* Тарифы */
.bogo-plans {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 20px;
}

@media (max-width: 480px) {
	.bogo-plans { grid-template-columns: 1fr; }
}

.bogo-plan {
	position: relative;
	display: block;
	cursor: pointer;
	margin: 0;
}

.bogo-plan input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.bogo-plan__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	padding: 22px 16px 18px;
	border: 2px solid var(--bogo-line);
	border-radius: 20px;
	background: #fff;
	text-align: center;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}

.bogo-plan:hover .bogo-plan__body {
	border-color: #b9c9d1;
}

.bogo-plan input:checked + .bogo-plan__body {
	border-color: var(--bogo-primary);
	box-shadow: 0 6px 18px rgba(86, 122, 140, .18);
	background: var(--bogo-tint);
}

.bogo-plan input:focus-visible + .bogo-plan__body {
	outline: 3px solid rgba(86, 122, 140, .4);
	outline-offset: 2px;
}

.bogo-plan__badge {
	position: absolute;
	top: -11px;
	left: 50%;
	transform: translateX(-50%);
	padding: 2px 12px;
	border-radius: 12px;
	background: var(--bogo-accent);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.bogo-plan__title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--bogo-muted);
}

.bogo-plan__price {
	margin: 4px 0 2px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--bogo-text);
}

.bogo-plan__note {
	font-size: 14px;
	color: var(--bogo-muted);
}

.bogo-plan__saving {
	color: var(--bogo-accent);
	font-weight: 600;
}

/* Поля */
.bogo-field {
	display: block;
	margin-bottom: 14px;
}

.bogo-field__label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	color: var(--bogo-muted);
}

.bogo-field input {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--bogo-line);
	border-radius: 14px;
	font-size: 16px;
	background: #fff;
}

.bogo-field input:focus {
	border-color: var(--bogo-primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(86, 122, 140, .2);
}

.bogo-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-bottom: 16px;
	font-size: 14px;
	color: var(--bogo-muted);
}

.bogo-consent input {
	margin-top: 4px;
	flex: none;
}

.bogo-consent a {
	color: var(--bogo-primary);
}

/* Кнопка как «К УКАЗАНИЯМ» в приложении */
.bogo-button {
	display: inline-block;
	width: 100%;
	padding: 14px 20px;
	border: 0;
	border-radius: 24px;
	background: var(--bogo-primary);
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .03em;
	text-align: center;
	text-decoration: none !important;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .15s;
}

.bogo-button:hover,
.bogo-button:focus {
	background: var(--bogo-primary-dark);
}

.bogo-button:disabled {
	opacity: .6;
	cursor: wait;
}

.bogo-button--small {
	width: auto;
	padding: 8px 16px;
	font-size: 13px;
}

.bogo-hint {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--bogo-muted);
	text-align: center;
}

.bogo-error {
	margin: 0 0 14px;
	padding: 10px 14px;
	border-radius: 12px;
	background: #fdecea;
	color: #b3261e;
	font-size: 14px;
}

/* Страница результата */
.bogo-result {
	padding: 28px 24px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
	text-align: center;
}

.bogo-result__title {
	margin: 0 0 12px;
	font-size: 22px;
	font-weight: 700;
}

.bogo-key {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: center;
	margin: 6px 0 14px;
}

.bogo-key__value {
	padding: 10px 18px;
	border: 2px dashed var(--bogo-primary);
	border-radius: 14px;
	background: var(--bogo-tint);
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--bogo-text);
	user-select: all;
}

.bogo-steps {
	display: inline-block;
	margin: 10px 0 0;
	padding-left: 22px;
	text-align: left;
}

.bogo-steps li {
	margin-bottom: 4px;
}

.bogo-spinner {
	width: 36px;
	height: 36px;
	margin: 0 auto 14px;
	border: 4px solid var(--bogo-line);
	border-top-color: var(--bogo-primary);
	border-radius: 50%;
	animation: bogo-spin 0.9s linear infinite;
}

@keyframes bogo-spin {
	to { transform: rotate(360deg); }
}

.bogo-subscribe [hidden],
.bogo-result [hidden] {
	display: none !important;
}
