/*
Theme Name: BeVisible Academy
Theme URI: https://bevisible.academy/
Author: BeVisible
Description: bevisible.academy: short video lessons sold by section subscription, full access and single lessons (Stripe). Block (FSE) theme from a-fse-starter, look of BeVisible A (bevisible.social): light, calm, one red accent, Onest. Academy logic: inc/academy/.
Requires at least: 6.6
Requires PHP: 8.1
Version: 1.0
Text Domain: bevisible-academy
*/

/* Classes, in the order of this file:
   site_header_part / brand / main_nav / bva-account   header (parts/header.html)
   bva-btn (is-ghost, is-link, is-sm, is-wide, is-light) buttons; core buttons look the same
   bva-chip (is-free, is-open, is-lock, is-time, is-demo) small labels
   bva-hero, bva-kicker, bva-proof                    home hero (blocks in the home page)
   bva-sections / bva-section                         section cards ([bva_sections])
   bva-steps                                          "how it works" (blocks)
   bva-plans / bva-plan                               plans ([bva_pricing])
   faq                                                FAQ (Details blocks in a group with class faq)
   bva-head, bva-grid, bva-card                       section page and lesson cards
   bva-lesson, bva-player, bva-pay, bva-option        lesson page
   bva-dialog                                         pay dialog (footer)
   bva-login, bva-cabinet, bva-subs, bva-note         account pages
   bva-request                                        order a lesson form
   page_head, page_content                            ordinary pages (legal)
   site_footer                                        footer ([bva_footer]) */

:root {
	--a-bg: #fdfdfc;
	--a-fg: #0b0b0c;
	--a-text: #3b3b40;
	--a-mut: #6d6d72;
	--a-line: #e7e7e4;
	--a-soft: #f4f4f2;
	--a-red: #d3242a;
	--a-radius: 20px;
	--a-wide: 1240px;
	--a-gutter: clamp(1rem, 4vw, 1.75rem);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 84px;
}

body {
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

::selection {
	background: var(--a-red);
	color: #fff;
}

h1, h2, h3, h4, h5, h6 {
	overflow-wrap: break-word;
	text-wrap: balance;
}

p, li, td {
	overflow-wrap: break-word;
}

img, video {
	max-width: 100%;
	height: auto;
}

:where(.wp-site-blocks) a:focus-visible,
:where(.wp-site-blocks) button:focus-visible,
.bva-dialog :focus-visible {
	outline: 2px solid var(--a-red);
	outline-offset: 3px;
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

.bva-ico {
	display: inline-flex;
	width: 1.05em;
	height: 1.05em;
	flex: none;
}

.bva-ico svg {
	width: 100%;
	height: 100%;
}

/* ---------- Header ---------- */

.site_header_part {
	position: sticky;
	top: 0;
	z-index: 500;
}

.admin-bar .site_header_part {
	top: 32px;
}

.site_header {
	background: rgba(253, 253, 252, 0.84);
	backdrop-filter: saturate(1.4) blur(16px);
	-webkit-backdrop-filter: saturate(1.4) blur(16px);
	border-bottom: 1px solid var(--a-line);
}

.site_header_row {
	min-height: 64px;
	gap: 1.5rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--a-fg);
	text-decoration: none;
	font-size: 1.1875rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.brand img {
	width: 30px;
	height: 30px;
	border-radius: 7px;
}

.brand b {
	font-weight: inherit;
	color: var(--a-red);
}

.main_nav {
	flex: 1 1 auto;
	justify-content: flex-end;
}

.main_nav .wp-block-navigation-item__content {
	color: var(--a-text);
	text-decoration: none;
	padding: 0.4rem 0;
}

.main_nav .wp-block-navigation-item__content:hover {
	color: var(--a-fg);
}

.header_actions {
	display: flex;
	align-items: center;
	gap: 18px;
	flex: none;
}

.bva-account {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--a-fg);
	transition: background 0.15s, color 0.15s;
}

.bva-account svg {
	display: block;
}

.bva-account:hover {
	background: var(--a-soft);
	color: var(--a-red);
}

/* Mobile menu from 900px down */
@media (max-width: 899px) {
	.site_header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.site_header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.main_nav {
		order: 3;
		flex: 0 0 auto;
	}

	.header_actions {
		margin-left: auto;
	}
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	color: var(--a-fg);
}

.wp-block-navigation__responsive-container-open svg {
	width: 28px;
	height: 28px;
}

.main_nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--a-bg) !important;
	padding: 1.25rem var(--a-gutter) 2rem;
}

.main_nav .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3.5rem !important;
	align-items: flex-start !important;
}

.main_nav .is-menu-open .wp-block-navigation__container {
	flex-direction: column;
	gap: 0.5rem !important;
	width: 100%;
	align-items: flex-start !important;
}

.main_nav .is-menu-open .wp-block-navigation-item__content {
	color: var(--a-fg) !important;
	font-size: 1.75rem;
	letter-spacing: -0.03em;
}

@media (max-width: 480px) {
	.header_actions .bva-btn {
		display: none;
	}

	.site_header_row {
		gap: 1rem;
	}
}

/* ---------- Buttons ---------- */

.bva-btn,
.wp-block-button__link.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--a-fg);
	color: #fff;
	font: 500 1rem/1.2 var(--wp--preset--font-family--body);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

.bva-btn:hover,
.wp-block-button__link.wp-element-button:hover {
	background: #2a2a2e;
	color: #fff;
	transform: translateY(-1px);
}

.bva-btn.is-ghost,
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--a-fg);
	box-shadow: inset 0 0 0 1px var(--a-line);
}

.bva-btn.is-ghost:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--a-soft);
	color: var(--a-fg);
}

.bva-btn.is-link {
	min-height: 0;
	padding: 6px 0;
	background: none;
	color: var(--a-text);
	font-size: 0.9375rem;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: normal;
}

.bva-btn.is-link:hover {
	background: none;
	color: var(--a-fg);
	transform: none;
}

.bva-btn.is-light {
	color: #fff;
}

.bva-btn.is-sm {
	min-height: 38px;
	padding: 0 18px;
	font-size: 0.875rem;
}

.bva-btn.is-wide {
	width: 100%;
}

.bva-btn .bva-ico {
	width: 18px;
	height: 18px;
}

/* ---------- Chips ---------- */

.bva-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--a-soft);
	color: var(--a-text);
	font-size: 0.8125rem;
	line-height: 1.1;
	white-space: nowrap;
}

.bva-chip .bva-ico {
	width: 14px;
	height: 14px;
}

.bva-chip.is-free {
	background: var(--a-red);
	color: #fff;
}

.bva-chip.is-open {
	background: #e8f6ee;
	color: #146c3c;
}

.bva-chip.is-demo {
	background: #fff3e0;
	color: #8a5200;
}

.bva-chip.is-big {
	padding: 10px 16px;
	font-size: 0.9375rem;
}

/* ---------- Home: hero ---------- */

.bva-hero {
	padding-top: clamp(3rem, 9vw, 7.5rem);
	padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.bva-kicker {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 0.875rem;
	color: var(--a-mut);
}

.bva-kicker::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--a-red);
}

.bva-hero h1 .bva-accent,
.bva-accent {
	color: var(--a-red);
}

.bva-hero .bva-lead,
.bva-lead {
	font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
	color: var(--a-text);
	max-width: 620px;
}

.bva-proof {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	font-size: 0.875rem;
	color: var(--a-mut);
}

.bva-proof span::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 8px;
	border-radius: 50%;
	background: #1faa59;
	box-shadow: 0 0 0 4px rgba(31, 170, 89, 0.14);
	vertical-align: 1px;
}

/* Hero: text on the left, a fan of three lessons on the right ([bva_hero_reels]) */
.bva-hero-cols {
	align-items: center !important;
	gap: clamp(2rem, 5vw, 4rem) !important;
}

.bva-hero-reels {
	position: relative;
	height: 540px;
	max-width: 520px;
	margin-left: auto;
}

.bva-reel {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 230px;
	aspect-ratio: 9 / 16;
	overflow: hidden;
	border-radius: 22px;
	background: #111;
	box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.45);
	color: #fff;
	text-decoration: none;
	transition: transform 0.3s;
}

.bva-reel img,
.bva-reel video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bva-reel.r1 {
	transform: translate(-112%, -46%) rotate(-7deg) scale(0.88);
}

.bva-reel.r3 {
	transform: translate(12%, -46%) rotate(7deg) scale(0.88);
}

.bva-reel.r2 {
	z-index: 2;
	width: 250px;
	transform: translate(-50%, -50%);
	box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.55), 0 0 0 6px var(--a-bg);
}

.bva-reel.r1:hover {
	transform: translate(-112%, -48%) rotate(-5deg) scale(0.9);
}

.bva-reel.r3:hover {
	transform: translate(12%, -48%) rotate(5deg) scale(0.9);
}

.bva-reel.r2:hover {
	transform: translate(-50%, -51%);
}

.bva-reel-cap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 40px 14px 14px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
	font-size: 0.8125rem;
	line-height: 1.3;
}

.bva-reel-cap em {
	display: block;
	margin-bottom: 3px;
	font-style: normal;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.7);
}

.bva-reel .bva-chip {
	position: absolute;
	top: 10px;
	left: 10px;
}

/* The fan needs about 560px: below 1100px it goes under the text, on narrow phones it shrinks */
.bva-hero {
	overflow-x: clip;
}

@media (max-width: 1100px) {
	.bva-hero-cols {
		flex-wrap: wrap !important;
	}

	.bva-hero-cols > .wp-block-column {
		flex-basis: 100% !important;
	}

	.bva-hero-reels {
		margin: 0 auto;
	}
}

@media (max-width: 781px) {
	.bva-hero-reels {
		height: 380px;
		margin: 0 auto;
	}

	.bva-reel {
		width: 160px;
	}

	.bva-reel.r2 {
		width: 176px;
	}

	.bva-reel-cap {
		font-size: 0.75rem;
	}
}

@media (max-width: 400px) {
	.bva-hero-reels {
		height: 320px;
	}

	.bva-reel {
		width: 128px;
	}

	.bva-reel.r2 {
		width: 150px;
	}

	.bva-reel.r1 {
		transform: translate(-102%, -46%) rotate(-7deg) scale(0.86);
	}

	.bva-reel.r3 {
		transform: translate(2%, -46%) rotate(7deg) scale(0.86);
	}

	.bva-reel .bva-chip {
		font-size: 0.6875rem;
		padding: 4px 8px;
	}
}

/* Section headings on the home page. Narrow blocks inside the 1240px column keep to its left edge:
   the constrained layout of the core centres every child with margin auto !important */
.bva-block-head {
	max-width: 760px;
}

.wp-site-blocks .is-layout-constrained > .bva-block-head {
	margin-left: 0 !important;
	margin-right: auto !important;
}

.bva-block-head p {
	color: var(--a-text);
}

/* ---------- Home: section cards ---------- */

/* Flex, not grid: an incomplete last row stays centered (owner rule 19.09.2026) */
.bva-sections {
	--cols: 3;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

.bva-sections > .bva-section {
	flex: 0 0 calc((100% - (var(--cols) - 1) * 16px) / var(--cols));
	min-width: 0;
}

@media (max-width: 1100px) {
	.bva-sections {
		--cols: 2;
	}
}

@media (max-width: 680px) {
	.bva-sections {
		--cols: 1;
	}
}

.bva-section {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--a-radius);
	background: #fff;
	box-shadow: 0 0 0 1px var(--a-line);
	color: var(--a-fg);
	text-decoration: none;
	transition: box-shadow 0.2s, transform 0.2s;
}

.bva-section:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 0 1px var(--a-line), 0 24px 48px -28px rgba(0, 0, 0, 0.35);
}

.bva-section-posters {
	display: flex;
	justify-content: center;
	gap: 10px;
	padding: 22px 22px 0;
	background: var(--a-soft);
	height: 230px;
	overflow: hidden;
}

.bva-section-posters img {
	width: 31%;
	aspect-ratio: 9 / 16;
	height: auto;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.45);
}

.bva-section-posters img:nth-child(2) {
	margin-top: -12px;
}

.bva-section-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 22px 24px 24px;
	flex: 1;
}

.bva-section-name {
	font-size: 1.5rem;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.bva-section-tag {
	color: var(--a-text);
	font-size: 0.9375rem;
}

.bva-section-meta {
	margin-top: 4px;
	color: var(--a-mut);
	font-size: 0.875rem;
}

.bva-section-go {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 12px;
	font-size: 0.9375rem;
	border-bottom: 1px solid var(--a-fg);
}

/* ---------- Home: how it works ---------- */

.bva-steps {
	counter-reset: step;
	gap: 16px !important;
}

.bva-steps > .wp-block-column {
	padding: 26px;
	border-radius: var(--a-radius);
	background: var(--a-soft);
}

.bva-steps > .wp-block-column::before {
	counter-increment: step;
	content: counter(step);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: var(--a-fg);
	color: #fff;
	font-size: 0.9375rem;
}

.bva-steps h3 {
	font-size: 1.25rem;
}

.bva-steps p {
	color: var(--a-text);
	font-size: 0.9375rem;
}

/* ---------- Home: plans ---------- */

.bva-plans {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	align-items: stretch;
}

.bva-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 30px 28px;
	border-radius: var(--a-radius);
	background: #fff;
	box-shadow: 0 0 0 1px var(--a-line);
}

.bva-plan.is-best {
	background: var(--a-fg);
	color: #fff;
	box-shadow: none;
}

.bva-plan p {
	margin: 0;
}

.bva-plan-flag {
	position: absolute;
	top: 18px;
	right: 18px;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--a-red);
	color: #fff;
	font-size: 0.8125rem;
}

.bva-plan-name {
	font-size: 1rem;
	color: var(--a-mut);
}

.bva-plan.is-best .bva-plan-name {
	width: fit-content;
	max-width: calc(100% - 130px);
}

.bva-plan.is-best .bva-plan-name {
	color: #b9b9bf;
}

.bva-plan-price {
	font-size: clamp(2rem, 3.4vw, 2.75rem);
	letter-spacing: -0.04em;
	line-height: 1;
}

.bva-plan-price span {
	font-size: 0.9375rem;
	letter-spacing: 0;
	color: var(--a-mut);
}

.bva-plan.is-best .bva-plan-price span {
	color: #b9b9bf;
}

.bva-plan-list {
	list-style: none;
	margin: 4px 0 8px;
	padding: 0;
	display: grid;
	gap: 9px;
	font-size: 0.9375rem;
	color: var(--a-text);
}

.bva-plan.is-best .bva-plan-list {
	color: #e4e4e7;
}

.bva-plan-list li {
	display: flex;
	gap: 9px;
}

.bva-plan-list .bva-ico {
	color: var(--a-red);
	margin-top: 3px;
}

.bva-plan .bva-btn {
	margin-top: auto;
}

.bva-plan.is-best .bva-btn:not(.is-link) {
	background: #fff;
	color: var(--a-fg);
}

.bva-plan.is-best .bva-btn:not(.is-link):hover {
	background: #e9e9e6;
}

.bva-plan.is-best .bva-btn.is-link {
	margin-top: 0;
	color: #e4e4e7;
}

.bva-select select {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--a-line);
	border-radius: 14px;
	background: #fff;
	color: var(--a-fg);
	font: inherit;
}

.bva-plan .bva-select + .bva-btn {
	margin-top: 0;
}

@media (max-width: 960px) {
	.bva-plans {
		grid-template-columns: 1fr;
		max-width: 520px;
		margin-inline: auto;
	}

	.bva-plan.is-best {
		order: -1;
	}
}

/* ---------- FAQ (Details blocks inside a group with class "faq") ---------- */

.faq .wp-block-details {
	padding: 20px 0;
	border-bottom: 1px solid var(--a-line);
	margin: 0 !important;
}

.faq .wp-block-details summary {
	position: relative;
	padding-right: 36px;
	cursor: pointer;
	font-size: 1.125rem;
	color: var(--a-fg);
	list-style: none;
}

.faq .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.faq .wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: -2px;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--a-mut);
	transition: transform 0.2s;
}

.faq .wp-block-details[open] summary::after {
	transform: rotate(45deg);
}

.faq .wp-block-details p {
	margin-top: 12px;
	color: var(--a-text);
}

/* ---------- Section page ---------- */

.bva-main {
	padding-bottom: clamp(3rem, 7vw, 6rem);
}

.bva-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.bva-head h1,
.bva-lesson-info h1 {
	margin: 0;
	font-weight: 400;
	letter-spacing: -0.04em;
	line-height: 1.04;
}

.bva-head h1 {
	font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.bva-head .bva-lead {
	margin: 0;
}

.bva-meta {
	margin: 0;
	color: var(--a-mut);
	font-size: 0.9375rem;
}

.bva-meta a {
	color: inherit;
}

.bva-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 8px;
}

.bva-crumbs {
	font-size: 0.875rem;
	color: var(--a-mut);
}

.bva-crumbs a {
	color: var(--a-mut);
	text-decoration: none;
}

.bva-crumbs a:hover {
	color: var(--a-fg);
}

.bva-crumbs span {
	margin: 0 6px;
}

/* Lesson cards: vertical posters like Reels */
.bva-grid {
	--cols: 5;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 22px 16px;
}

.bva-grid > .bva-card {
	flex: 0 0 calc((100% - (var(--cols) - 1) * 16px) / var(--cols));
	min-width: 0;
}

@media (max-width: 1100px) {
	.bva-grid {
		--cols: 4;
	}
}

@media (max-width: 820px) {
	.bva-grid {
		--cols: 3;
	}
}

@media (max-width: 560px) {
	.bva-grid {
		--cols: 2;
		gap: 18px 12px;
	}

	.bva-grid > .bva-card {
		flex-basis: calc((100% - 12px) / 2);
	}
}

.bva-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: var(--a-fg);
	text-decoration: none;
}

.bva-card-media {
	position: relative;
	display: block;
	aspect-ratio: 9 / 16;
	overflow: hidden;
	border-radius: 16px;
	background: #111;
}

.bva-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}

.bva-card:hover .bva-card-media img {
	transform: scale(1.03);
}

.bva-card-media .bva-chip {
	position: absolute;
	top: 10px;
	left: 10px;
}

.bva-card-media .bva-chip.is-lock {
	padding: 7px;
	background: rgba(11, 11, 12, 0.66);
	color: #fff;
	backdrop-filter: blur(6px);
}

.bva-card-media .bva-chip.is-time {
	top: auto;
	left: auto;
	right: 10px;
	bottom: 10px;
	background: rgba(11, 11, 12, 0.66);
	color: #fff;
	backdrop-filter: blur(6px);
}

.bva-card-play {
	position: absolute;
	left: 50%;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	margin: -27px 0 0 -27px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--a-fg);
	opacity: 0;
	transition: opacity 0.2s;
}

.bva-card:hover .bva-card-play,
.bva-card:focus-visible .bva-card-play {
	opacity: 1;
}

.bva-card-play .bva-ico {
	width: 24px;
	height: 24px;
	margin-left: 3px;
}

.bva-card-title {
	font-size: 0.9375rem;
	line-height: 1.35;
}

.bva-card.is-current .bva-card-media {
	outline: 2px solid var(--a-red);
	outline-offset: 2px;
}

/* ---------- Lesson page ---------- */

.bva-lesson {
	display: grid;
	grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
	padding-top: clamp(1.5rem, 4vw, 3rem);
}

.bva-player {
	position: sticky;
	top: 84px;
	aspect-ratio: 9 / 16;
	max-height: calc(100vh - 110px);
	overflow: hidden;
	border-radius: 22px;
	background: #111;
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35);
}

.bva-player video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
}

.bva-player .is-preview-tag {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(11, 11, 12, 0.7);
	color: #fff;
	backdrop-filter: blur(6px);
	pointer-events: none;
}

.bva-player-end {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 24px;
	background: rgba(11, 11, 12, 0.78);
	color: #fff;
	text-align: center;
	backdrop-filter: blur(4px);
}

.bva-player-end[hidden] {
	display: none;
}

.bva-player-end p {
	margin: 0 0 6px;
	font-size: 1.125rem;
}

.bva-player-end .bva-btn:not(.is-link) {
	background: #fff;
	color: var(--a-fg);
}

.bva-lesson-info {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.bva-lesson-info h1 {
	font-size: clamp(2rem, 4vw, 3.25rem);
}

.bva-lesson-text {
	color: var(--a-text);
}

.bva-lesson-text > * {
	margin: 0 0 0.9em;
}

.bva-pay {
	display: grid;
	gap: 10px;
	margin-top: 10px;
	padding: 22px;
	border-radius: var(--a-radius);
	background: var(--a-soft);
	scroll-margin-top: 90px;
}

.bva-pay-title {
	margin: 0 0 4px;
	font-size: 1.25rem;
	color: var(--a-fg);
	letter-spacing: -0.02em;
}

.bva-option {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 16px 18px;
	border: 0;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--a-line);
	color: var(--a-fg);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: box-shadow 0.15s, transform 0.15s;
}

.bva-option:hover {
	box-shadow: 0 0 0 2px var(--a-fg);
}

.bva-option span {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.bva-option em {
	font-style: normal;
	font-size: 0.875rem;
	color: var(--a-mut);
}

.bva-option b {
	font-weight: 500;
	font-size: 1.25rem;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.bva-option.is-best {
	box-shadow: 0 0 0 2px var(--a-fg);
}

.bva-option i {
	position: absolute;
	top: -10px;
	right: 14px;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--a-red);
	color: #fff;
	font-style: normal;
	font-size: 0.75rem;
}

.bva-pay-note {
	margin: 4px 0 0;
	font-size: 0.875rem;
	color: var(--a-mut);
}

.bva-more {
	margin-top: clamp(3rem, 7vw, 5rem);
}

.bva-more h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 0 0 22px;
}

@media (max-width: 820px) {
	.bva-lesson {
		grid-template-columns: 1fr;
	}

	.bva-player {
		position: relative;
		top: 0;
		width: min(100%, 420px);
		margin: 0 auto;
		max-height: none;
	}
}

/* ---------- Pay dialog ---------- */

.bva-dialog {
	width: min(100% - 32px, 480px);
	max-height: calc(100% - 32px);
	padding: 0;
	border: 0;
	border-radius: 24px;
	background: #fff;
	color: var(--a-fg);
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5);
}

.bva-dialog::backdrop {
	background: rgba(11, 11, 12, 0.5);
	backdrop-filter: blur(3px);
}

.bva-dialog-box {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 30px 28px 26px;
}

.bva-dialog-box p {
	margin: 0;
}

.bva-dialog-x {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: var(--a-soft);
	color: var(--a-fg);
	font-size: 1.375rem;
	line-height: 1;
	cursor: pointer;
}

.bva-dialog-kicker {
	font-size: 0.875rem;
	color: var(--a-mut);
}

.bva-dialog-title {
	padding-right: 30px;
	font-size: 1.375rem;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.bva-dialog-price span {
	font-size: 2.25rem;
	letter-spacing: -0.04em;
}

.bva-dialog-price em {
	font-style: normal;
	color: var(--a-mut);
}

.bva-dialog-err {
	padding: 10px 14px;
	border-radius: 12px;
	background: #fff1f1;
	color: var(--a-red);
	font-size: 0.9375rem;
}

.bva-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 14px;
	border-radius: 14px;
	background: var(--a-soft);
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--a-text);
	cursor: pointer;
}

.bva-consent input {
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	accent-color: var(--a-fg);
}

.bva-dialog-note {
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--a-mut);
}

/* ---------- Account pages ---------- */

.bva-login {
	display: grid;
	gap: 10px;
	max-width: 560px;
	margin: 6px 0 0;
}

.bva-login label {
	font-size: 0.9375rem;
	color: var(--a-text);
}

.bva-login-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.bva-login input[type="email"] {
	flex: 1 1 240px;
	min-width: 0;
	height: 48px;
	padding: 0 18px;
	border: 1px solid var(--a-line);
	border-radius: 999px;
	background: #fff;
	font: inherit;
	color: var(--a-fg);
}

.bva-note {
	padding: 14px 18px;
	border-radius: 14px;
	background: #fff6e8;
	color: #6b4300;
	max-width: 640px;
}

.bva-note.is-ok {
	background: #e8f6ee;
	color: #146c3c;
}

.bva-cabinet h2 {
	margin: 2.5rem 0 1rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
}

.bva-subs {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: grid;
	gap: 10px;
}

.bva-subs li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 16px;
	padding: 16px 20px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--a-line);
}

.bva-subs li span {
	color: var(--a-mut);
}

.bva-subs li.is-off {
	opacity: 0.6;
}

.bva-cabinet form .bva-btn {
	white-space: normal;
	text-align: center;
}

/* ---------- Ordinary pages (legal, account) ---------- */

.page_head {
	padding-top: clamp(2.5rem, 6vw, 4.5rem);
	padding-bottom: clamp(1rem, 2vw, 1.5rem);
}

.page_head h1 {
	margin: 0;
	font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.page_content {
	padding-bottom: clamp(3rem, 7vw, 6rem);
}

.page_content h2 {
	margin-top: 2.25rem;
	font-size: clamp(1.375rem, 2.6vw, 1.75rem);
	font-weight: 500;
}

.page_content p,
.page_content li {
	color: var(--a-text);
}

.page_content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.page_content th,
.page_content td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--a-line);
	text-align: left;
	vertical-align: top;
}

.page_content .wp-block-table {
	overflow-x: auto;
}

.page_content .wp-block-table table {
	table-layout: auto !important;
}

/* Home sections spacing */
.bva-band {
	padding-top: clamp(3rem, 7vw, 6rem);
	padding-bottom: clamp(1rem, 3vw, 2rem);
}

.bva-band.is-soft {
	margin-top: clamp(2rem, 5vw, 4rem);
	padding-bottom: clamp(3rem, 7vw, 6rem);
	background: var(--a-soft);
}

.bva-final {
	margin-top: clamp(3rem, 7vw, 6rem);
	padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
	border-radius: 28px;
	background: var(--a-fg);
	color: #fff;
}

.bva-final h2 {
	color: #fff;
}

.bva-final p {
	color: #c9c9ce;
}

.bva-final .wp-block-button__link.wp-element-button {
	background: #fff;
	color: var(--a-fg);
}

/* The whole login block (Google + e-mail link) is one block in the page column, its parts keep to its left edge */
.bva-login-box > * {
	max-width: 560px;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.bva-login-box .bva-google {
	display: flex;
}

/* Sign in with Google (inc/academy/google.php) */
.bva-google {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	max-width: 560px;
	min-height: 48px;
	padding: 0 20px;
	border: 1px solid #747775;
	border-radius: 999px;
	background: #fff;
	color: #1f1f1f;
	font-weight: 500;
	text-decoration: none;
}

.bva-google:hover {
	background: #f6f8fb;
	color: #1f1f1f;
}

.bva-or {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 560px;
	margin: 18px 0 6px;
	font-size: 0.875rem;
	color: var(--a-mut);
}

.bva-or::before,
.bva-or::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: var(--a-line);
}

/* ---------- Order a lesson ([bva_request_form]) ---------- */

.bva-request {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 24px 48px;
	margin-top: clamp(3rem, 7vw, 5rem);
	padding: clamp(1.5rem, 4vw, 2.75rem);
	border-radius: 28px;
	background: var(--a-soft);
}

.bva-request-title {
	margin: 0 0 10px;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: var(--a-fg);
}

.bva-request-text p:not(.bva-request-title) {
	margin: 0;
	color: var(--a-text);
}

.bva-request-form {
	display: grid;
	gap: 8px;
}

.bva-request-form label {
	font-size: 0.875rem;
	color: var(--a-text);
}

.bva-request-form textarea {
	width: 100%;
	min-height: 96px;
	padding: 14px 18px;
	border: 1px solid var(--a-line);
	border-radius: 18px;
	background: #fff;
	font: inherit;
	color: var(--a-fg);
	resize: vertical;
}

.bva-request-form .bva-login-row input {
	flex: 1 1 220px;
	min-width: 0;
	height: 48px;
	padding: 0 18px;
	border: 1px solid var(--a-line);
	border-radius: 999px;
	background: #fff;
	font: inherit;
}

.bva-request .bva-note {
	margin: 0;
}

.bva-hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (max-width: 820px) {
	.bva-request {
		grid-template-columns: 1fr;
	}
}

/* ---------- Footer ---------- */

.site_footer {
	margin-top: clamp(4rem, 9vw, 8rem);
	padding: 64px var(--a-gutter) 40px;
	background: #0a0a0b;
	color: #fff;
	font-size: 0.9375rem;
}

.footer-wrap {
	max-width: var(--a-wide);
	margin: 0 auto;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 48px;
	padding-bottom: 48px;
	border-bottom: 1px solid #232327;
}

.footer-col p {
	margin: 0;
}

.footer-col a.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0;
	color: #fff;
	line-height: 30px;
}

.footer-col a.brand:hover {
	text-decoration: none;
}

.footer-col a.brand img {
	display: block;
	flex: none;
}

.footer-tagline {
	margin-top: 16px !important;
	max-width: 340px;
	color: #9a9aa0;
	line-height: 1.55;
}

.footer-title {
	margin-bottom: 14px !important;
	font-size: 0.8125rem;
	color: #7f7f86;
}

.footer-col a {
	display: block;
	padding: 4px 0;
	color: #e4e4e7;
	text-decoration: none;
}

.footer-col a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	padding-top: 24px;
	font-size: 0.8125rem;
	color: #7f7f86;
}

.footer-bottom p {
	margin: 0;
}

.footer-bottom a {
	color: #b9b9bf;
	text-decoration: none;
}

.footer-bottom a:hover {
	color: #fff;
}

@media (max-width: 900px) {
	.footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 36px 24px;
	}

	.footer-grid > .footer-col:first-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 480px) {
	.footer-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

.footer-col a {
	overflow-wrap: anywhere;
}

/* Cookie banner above the sticky pay hints on phones */
body.bva-cc-open .bva-dialog {
	z-index: 1001;
}
