/* Lingua Life front-end styles. Tokens live in theme.json; this file only covers what block supports cannot express. */

:root {
	--ll-header-h: var(--wp--custom--header--height-mobile);
	--ll-radius-btn: var(--wp--custom--radius--button);
	--ll-violet: var(--wp--preset--color--violet);
	--ll-green: var(--wp--preset--color--green);
	--ll-orange: var(--wp--preset--color--orange);
	--ll-line: rgba(42, 25, 79, 0.08);
}

@media (min-width: 1280px) {
	:root {
		--ll-header-h: var(--wp--custom--header--height);
	}
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* The overlay menu locks page scroll; a stable gutter stops the page from shifting sideways when it opens. */
html {
	scrollbar-gutter: stable;
}

/* Anchored sections stop below the sticky header (and the admin bar when logged in). */
:where(section[id]) {
	scroll-margin-top: calc(var(--ll-header-h) + var(--wp-admin--admin-bar--height, 0px));
}

/* Product cards ("/#product-kids") keep a gap under the header, like the section padding. */
:where(.ll-product[id]) {
	scroll-margin-top: calc(var(--ll-header-h) + 24px + var(--wp-admin--admin-bar--height, 0px));
}

/* Sticky header (client decision, 2026-10-02). The template-part wrapper sticks, because
   the inner group is exactly as tall as its parent and could not stick on its own. */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

/* The admin bar is fixed only above 600px; below that it scrolls away with the page. */
@media (min-width: 601px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: var(--wp-admin--admin-bar--height, 0px);
	}
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--ll-orange);
	outline-offset: 2px;
}

img {
	height: auto;
}

/* Visually hidden, read by screen readers (also defined by core in wp-admin, not always on the front end). */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
	word-wrap: normal !important;
}

/* Header, main and footer touch, and full-width page sections stack without the default block gap (no white stripes between them). */
body .wp-site-blocks > * + *,
.wp-block-post-content > .alignfull + .alignfull {
	margin-block-start: 0;
}

/* Buttons ------------------------------------------------------------------ */

.wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	min-height: 58px;
	box-shadow: var(--wp--preset--shadow--button);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-button .wp-block-button__link:hover {
	box-shadow: var(--wp--preset--shadow--button-hover);
}

/* Secondary (outline) hover fills violet — Figma "Btn / Secondary / Hover". */
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--violet);
	border-color: var(--wp--preset--color--violet);
	color: var(--wp--preset--color--white);
}

.wp-block-button.ll-btn--small .wp-block-button__link {
	min-height: 44px;
	padding: 11px 19px;
	font-size: var(--wp--preset--font-size--b-3);
	white-space: nowrap;
}

/* Self-test CTA: visually disabled, no destination until the client activates it
   (Block Styles → "Default" + real URL). Figma "Btn / Primary / Disabled". */
.wp-block-button.is-style-disabled .wp-block-button__link,
.wp-block-button.is-style-disabled .wp-block-button__link:hover {
	gap: 0.625rem;
	padding: 0.875rem 1.25rem 0.875rem 1.5rem;
	background: var(--wp--preset--color--disabled-bg);
	border-color: var(--wp--preset--color--disabled-bg);
	color: var(--wp--preset--color--white);
	box-shadow: none;
	cursor: not-allowed;
	pointer-events: none;
	white-space: nowrap;
}

/* The badge is the bold word inside the button text ("… <strong>Незабаром</strong>"). */
.wp-block-button.is-style-disabled .wp-block-button__link strong {
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--wp--preset--color--disabled-badge);
	color: var(--wp--preset--color--disabled-text);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 800;
	letter-spacing: 0.2px;
	line-height: 1.4;
}

.ll-btn--telegram .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url(../svg/telegram.svg) center / contain no-repeat;
	mask: url(../svg/telegram.svg) center / contain no-repeat;
}

@media (max-width: 781px) {
	.wp-block-button .wp-block-button__link {
		min-height: 52px;
		padding-top: 14px;
		padding-bottom: 14px;
	}

	/* Figma "Btn / Primary / Disabled" mobile: 52px high with the 29px badge inside. */
	.wp-block-button.is-style-disabled .wp-block-button__link,
	.wp-block-button.is-style-disabled .wp-block-button__link:hover {
		padding-top: 10px;
		padding-bottom: 10px;
	}
}

/* Header ------------------------------------------------------------------- */

/*
 * Figma "Navigation Bar" (335:3118): logo | 7 links | icons + CTA, spread with equal
 * space between the three groups. Gaps are Figma values at 1440px and shrink fluidly
 * down to the 1280px breakpoint, so nothing jumps or overflows in between.
 */
.ll-header {
	--ll-nav-gap: clamp(16px, 7.5vw - 80px, 28px);
	position: relative;
	z-index: 10;
	border-bottom: 1px solid rgba(42, 25, 79, 0.07);
}

/* Figma heights 86 / 72 include the 1px bottom border. */
.ll-header__bar {
	min-height: calc(var(--ll-header-h) - 1px);
	gap: var(--ll-nav-gap);
}

.ll-header .ll-logo {
	flex: none;
	margin: 0;
}

.ll-header .ll-logo a {
	display: block;
}

.ll-header .ll-logo img {
	display: block;
	width: 154px !important;
}

@media (min-width: 1280px) {
	.ll-header .ll-logo img {
		width: 204px !important;
	}
}

.ll-header nav.ll-header__nav {
	font-size: var(--wp--preset--font-size--b-3);
	font-weight: 500;
	line-height: 1.4;
}

.ll-header .wp-block-navigation__responsive-container-open {
	width: 44px;
	height: 44px;
	justify-content: center;
	align-items: center;
	color: var(--ll-violet);
}

.ll-header .wp-block-navigation__responsive-container-open svg,
.ll-header .wp-block-navigation__responsive-container-close svg {
	width: 32px;
	height: 32px;
}

.ll-social {
	gap: 14px !important;
	font-size: 26px;
}

/* Figma "Header social icon": 80% violet at rest, full violet on hover. */
.ll-social .wp-social-link {
	opacity: 0.8;
	transition: opacity 0.2s ease;
}

.ll-social .wp-social-link:hover,
.ll-social .wp-social-link:focus-within {
	opacity: 1;
	transform: none;
}

.ll-social .wp-social-link a {
	padding: 0;
}

.ll-social .wp-social-link svg {
	width: 1em;
	height: 1em;
}

.ll-header .wp-block-navigation-item__content {
	color: var(--ll-violet);
	white-space: nowrap;
	transition: color 0.2s ease;
}

/* Figma "Header link / Hover": green text with a 2px green underline. Pointer devices only, so taps do not leave it stuck. */
@media (hover: hover) {
	.ll-header .wp-block-navigation-item__content:hover {
		color: var(--ll-green);
		text-decoration: underline;
		text-decoration-thickness: 2px;
		text-underline-offset: 4px;
	}
}

/* Desktop: the "always overlay" navigation is shown inline. Below 1280px the 7 links, icons and CTA do not fit, so the burger takes over. */
@media (min-width: 1280px) {
	.ll-header nav.ll-header__nav {
		flex: 1 1 auto;
	}

	.ll-header .wp-block-navigation__responsive-container-open {
		display: none;
	}

	.ll-header nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: block;
		position: relative;
		inset: auto;
		z-index: auto;
		width: 100%;
		padding: 0;
		background: transparent;
	}

	.ll-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-close {
		display: none;
	}

	.ll-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-content {
		display: flex;
		align-items: center;
		gap: 30px;
	}

	.ll-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container {
		flex: 1 1 auto;
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		gap: var(--ll-nav-gap);
		padding: 0;
	}

	/* Equal free space before the links and before the icons = Figma "space between" of the three groups. */
	.ll-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > li:first-child,
	.ll-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > li:has(.ll-social) {
		margin-left: auto;
	}
}

/*
 * Mobile / tablet overlay (Figma "Menu open" 399:1633). Selectors repeat the core
 * chain to outrank core navigation styles. The top bar is drawn by ::before so the
 * logo and the close button sit exactly where the header logo and burger were.
 */
.ll-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 0 var(--wp--style--root--padding-right) 0 var(--wp--style--root--padding-left);
	background: var(--wp--preset--color--white);
	color: var(--ll-violet);
	animation: none;
}

@media (prefers-reduced-motion: no-preference) {
	.ll-header .wp-block-navigation__responsive-container.is-menu-open {
		animation: ll-menu-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
	}

	.ll-header .is-menu-open .wp-block-navigation__responsive-container-content {
		animation: ll-menu-content-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
	}
}

@keyframes ll-menu-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes ll-menu-content-in {
	from { opacity: 0; transform: translate3d(0, -10px, 0); }
	to { opacity: 1; transform: none; }
}

.ll-header .is-menu-open .wp-block-navigation__responsive-dialog::before {
	content: "";
	display: block;
	box-sizing: border-box;
	height: var(--wp--custom--header--height-mobile);
	margin: 0 calc(-1 * var(--wp--style--root--padding-right)) 0 calc(-1 * var(--wp--style--root--padding-left));
	border-bottom: 1px solid rgba(42, 25, 79, 0.05);
	background: url(../images/logo.db42b083.svg) var(--wp--style--root--padding-left) calc((var(--wp--custom--header--height-mobile) - 40px) / 2) / 154px auto no-repeat;
}

.ll-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	top: calc((var(--wp--custom--header--height-mobile) - 45px) / 2);
	right: 0;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ll-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	min-height: calc(100dvh - var(--wp--custom--header--height-mobile) - var(--wp-admin--admin-bar--height, 0px));
	padding: 0 0 48px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.ll-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.ll-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-link {
	width: 100%;
	border-bottom: 1px solid rgba(42, 25, 79, 0.1);
}

.ll-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 18px 0;
	font-size: var(--wp--preset--font-size--b-2);
	font-weight: 400;
	line-height: 1.5;
	white-space: normal;
}

.ll-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > li:has(.ll-social) {
	width: 100%;
	margin-top: auto;
	padding: 40px 0 30px;
}

.ll-header .is-menu-open .ll-social {
	width: 100%;
	justify-content: space-between;
	padding: 0 20px;
	font-size: 32px;
}

.ll-header .wp-block-navigation__responsive-container.is-menu-open .ll-header__cta,
.ll-header .is-menu-open .ll-header__cta .wp-block-button {
	width: 100%;
}

.ll-header .is-menu-open .ll-header__cta .wp-block-button__link {
	width: 100%;
	min-height: 52px;
	font-size: var(--wp--preset--font-size--b-3);
	font-weight: 700;
}

/* Hero --------------------------------------------------------------------- */

.ll-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(38% 55% at 88% 8%, rgba(115, 191, 68, 0.13), transparent 70%),
		radial-gradient(45% 55% at 82% 100%, rgba(247, 145, 30, 0.13), transparent 72%),
		radial-gradient(30% 40% at 5% 100%, rgba(247, 145, 30, 0.07), transparent 70%),
		var(--wp--preset--color--surface-warm);
}

.ll-hero__title {
	margin: 0;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

@media (min-width: 782px) {
	.ll-hero__content {
		max-width: 556px;
	}
}

.ll-hero__subtitle {
	margin-top: 20px;
	font-weight: 600;
}

.ll-hero__content > .ll-badge-list {
	margin-top: 38px;
}

.ll-hero__content > .ll-hero__actions {
	margin-top: 38px;
	gap: 24px;
}

.ll-badge-list {
	list-style: none;
	counter-reset: ll-badge;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 18px;
	font-size: clamp(0.875rem, 0.833rem + 0.185vw, 1rem);
	font-weight: 500;
	line-height: 1.4;
}

.ll-badge-list > li {
	counter-increment: ll-badge;
	position: relative;
	min-height: 32px;
	padding: 0 0 0 48px;
	/* Figma "Benefit": badge and text are centred on each other, one line or two. */
	align-content: center;
}

.ll-badge-list > li::before {
	content: counter(ll-badge, decimal-leading-zero);
	position: absolute;
	top: 50%;
	left: 0;
	translate: 0 -50%;
	width: 34px;
	height: 32px;
	border-radius: 999px;
	background: var(--ll-orange);
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 800;
	letter-spacing: 1px;
	line-height: 32px;
	text-align: center;
}

/*
 * Key visual. The box is the Figma render bounds of "Golden Key Illustration"
 * (753.3 × 651.8; the 736 × 545 frame sits at y = 37.5 inside it), so every layer
 * below uses percentages measured in Figma. In Figma the media column is 706px and
 * the frame overhangs it by 30px into the page padding (736px); the negative
 * margins keep the layout footprint equal to the 736 × 545 frame.
 */
.ll-hero .ll-hero__media > .ll-hero__visual {
	position: relative;
	container-type: inline-size;
	width: 106.7%;
	aspect-ratio: 753.3 / 651.8;
	margin: -5.31% 0 -9.82%;
	background: url(../svg/hero-deco.af1c4a5c.svg) center / 100% 100% no-repeat;
}

/* Chained selector: in the block editor every inner block also carries core's "position: relative". */
.ll-hero .ll-hero__media > .ll-hero__visual > * {
	position: absolute;
	margin: 0 !important;
}

.ll-hero__key {
	left: 13.54%;
	top: 0;
	width: 84.11%;
}

.ll-hero__key img {
	display: block;
	width: 100%;
}

/* Tooltip card (Figma "Tooltip Card"): positioned by its centre, sized with the illustration. */
.ll-tooltip {
	width: max-content;
	translate: -50% -50%;
	padding: 1em 1.125em;
	border-radius: 0.875em;
	background: var(--wp--preset--color--white);
	box-shadow: 0 0.54em 1.62em rgba(41, 26, 79, 0.07);
	font-size: min(16px, 2.124cqw);
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

.ll-hero__visual .ll-tooltip--hello {
	left: 23.52%;
	top: 22.18%;
	rotate: -12deg;
}

.ll-hero__visual .ll-tooltip--goals {
	left: 67.75%;
	top: 78.51%;
	rotate: 2deg;
}

/* Light loop for the key visual (client: "легкий циклічний рух"). Static for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
	.ll-hero__key,
	.ll-contacts__card {
		animation: ll-float 6s ease-in-out infinite;
	}

	.ll-tooltip {
		animation: ll-bob 5s ease-in-out infinite;
	}

	.ll-tooltip--goals {
		animation-duration: 5.5s;
		animation-delay: 0.8s;
	}
}

@keyframes ll-float {
	0%, 100% { transform: translate3d(0, 0, 0); }
	50% { transform: translate3d(0, -1.4%, 0); }
}

@keyframes ll-bob {
	0%, 100% { transform: translate3d(0, 0, 0); }
	50% { transform: translate3d(0, -6px, 0); }
}

/* Mobile values from Figma "Hero / Mobile" (368:3726). */
@media (max-width: 781px) {
	.ll-hero {
		background:
			radial-gradient(95% 24% at 50% 64%, rgba(115, 191, 68, 0.1), transparent 72%),
			radial-gradient(110% 26% at 50% 100%, rgba(247, 145, 30, 0.16), transparent 74%),
			var(--wp--preset--color--surface-warm);
	}

	.ll-hero__cols {
		row-gap: 40px !important;
	}

	.ll-hero__title {
		line-height: 1.182;
		letter-spacing: -0.25px;
	}

	/* Preset classes carry !important, so the mobile override has to as well. */
	.ll-hero__subtitle {
		margin-top: 12px;
		color: var(--wp--preset--color--violet-70) !important;
		font-size: var(--wp--preset--font-size--b-2) !important;
		font-weight: 400;
		line-height: 1.5;
	}

	.ll-hero__content > .ll-badge-list,
	.ll-hero__content > .ll-hero__actions {
		margin-top: 24px;
	}

	.ll-badge-list {
		gap: 14px;
		font-size: var(--wp--preset--font-size--b-3);
		font-weight: 400;
		line-height: 20px;
	}

	/* Mobile Figma aligns badge and text to the top. */
	.ll-badge-list > li {
		min-height: 26px;
		padding: 0 0 0 44px;
		align-content: start;
	}

	.ll-badge-list > li::before {
		top: 0;
		translate: none;
		height: 26px;
		line-height: 26px;
	}

	/* Mobile frame "Golden Key Illustration" render bounds: 360 × 387.1, frame at y = 15.6, full bleed.
	   Core forces flex-basis: 100% !important on stacked columns, so the bleed is set there too. */
	.ll-hero .wp-block-column.ll-hero__media {
		--ll-bleed: min(100% + 2 * var(--wp--style--root--padding-left), 520px);
		flex-basis: var(--ll-bleed) !important;
		width: var(--ll-bleed);
		margin-inline: calc((100% - var(--ll-bleed)) / 2);
	}

	.ll-hero .ll-hero__media > .ll-hero__visual {
		width: 100%;
		aspect-ratio: 360 / 387.1;
		margin: -4.33% 0 -15.7%;
		background-image: url(../svg/hero-deco-mobile.3a6ec068.svg);
	}

	.ll-hero__key {
		left: 4.56%;
		top: 1.03%;
		width: 101.6%;
	}

	.ll-tooltip {
		font-size: min(14px, 3.89cqw);
		padding: 0.92em 1.04em;
	}

	.ll-hero__visual .ll-tooltip--hello {
		left: 39.61%;
		top: 13.55%;
	}

	.ll-hero__visual .ll-tooltip--goals {
		left: 48.94%;
		top: 86.32%;
	}
}

@media (max-width: 599px) {
	.ll-hero__actions {
		flex-direction: column;
		gap: 12px !important;
	}

	.ll-hero__actions > .wp-block-button,
	.ll-hero__actions .wp-block-button__link {
		width: 100%;
	}
}

/* Section heading (shared by the home sections) ----------------------------- */

/* Figma "Section heading": H2 54/64 at 1440, 32/40 at 360; lead 18/1.4 at 80% → 16/1.5 at 70%. */
.ll-section-head > * {
	margin: 0;
}

.ll-section-head .ll-section-head__title {
	text-wrap: balance;
}

.ll-section-head .ll-section-head__lead {
	margin-top: 16px;
	color: var(--wp--preset--color--violet-80);
	font-size: var(--wp--preset--font-size--b-1);
	line-height: 1.4;
}

/* Title left, lead right, both sitting on the same baseline row (Figma "Section Header" in How it works). */
@media (min-width: 782px) {
	.ll-section-head--split {
		display: flex;
		align-items: flex-end;
		justify-content: space-between;
		gap: 32px;
	}

	.ll-section-head--split .ll-section-head__lead {
		max-width: 440px;
		margin-top: 0;
		text-align: right;
	}
}

@media (max-width: 781px) {
	.ll-section-head .ll-section-head__title {
		line-height: 1.2;
	}

	.ll-section-head .ll-section-head__lead {
		color: var(--wp--preset--color--violet-70);
		line-height: 1.5;
	}
}

/* How it works -------------------------------------------------------------- */

/* Figma "How it works" (335:2900): 1312px content (64px side padding, not the usual 70), 90/40px vertical padding. */
section.ll-how {
	--wp--style--global--wide-size: 1312px;
	padding: clamp(2.5rem, 1.458rem + 4.63vw, 5.625rem) clamp(1.25rem, 0.333rem + 4.074vw, 4rem);
	background: var(--wp--preset--color--white);
}

.ll-how > .ll-steps {
	margin-top: clamp(1.75rem, 1.333rem + 1.852vw, 3rem);
}

.ll-steps {
	display: grid;
	gap: 16px;
}

/* Grid items: drop the flow layout's block gap. */
.ll-steps > .ll-step {
	margin: 0;
}

@media (min-width: 1024px) {
	.ll-steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}
}

/*
 * Figma "Step Card" (61:5325). Padding is measured inside the 1px border: 40/32/38 at 1440
 * (the card is 342px high with the bar at y = 299) and 23/23/19 at 360.
 */
.ll-step {
	--ll-accent: var(--ll-green);
	--ll-accent-soft: rgba(115, 191, 68, 0.08);
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.4375rem, 1.083rem + 1.574vw, 2.5rem) clamp(1.4375rem, 1.25rem + 0.833vw, 2rem) clamp(1.1875rem, 0.792rem + 1.759vw, 2.375rem);
	border: 1px solid rgba(42, 25, 79, 0.07);
	border-radius: clamp(18px, 17.333px + 0.185vw, 20px);
	background: var(--wp--preset--color--surface-gray);
}

.ll-step--orange {
	--ll-accent: var(--ll-orange);
	--ll-accent-soft: rgba(247, 145, 30, 0.08);
}

.ll-steps .ll-step > * {
	margin: 0;
}

.ll-steps .ll-step > .ll-step__icon {
	display: grid;
	place-items: center;
	width: clamp(3.75rem, 3.542rem + 0.926vw, 4.375rem);
	height: clamp(3.75rem, 3.542rem + 0.926vw, 4.375rem);
	border-radius: 14px;
	background: var(--ll-accent-soft);
}

.ll-step__icon img {
	display: block;
	width: clamp(1.6875rem, 1.583rem + 0.463vw, 2rem) !important;
	height: auto !important;
}

/* Big pale step number in the top-right corner; decorative, the heading order carries the sequence. */
.ll-steps .ll-step > .ll-step__num {
	position: absolute;
	top: clamp(1.0625rem, 0.792rem + 1.204vw, 1.875rem);
	right: clamp(1.4375rem, 1.25rem + 0.833vw, 2rem);
	color: rgba(42, 25, 79, 0.04);
	font-size: clamp(4.375rem, 3.979rem + 1.759vw, 5.5625rem);
	font-weight: 800;
	line-height: 92px;
	pointer-events: none;
}

.ll-steps .ll-step > .ll-step__title {
	position: relative;
	margin-top: clamp(1.25rem, 1.125rem + 0.556vw, 1.625rem);
	font-size: var(--wp--preset--font-size--s-2);
	line-height: 1.4;
}

.ll-steps .ll-step > .ll-step__text {
	position: relative;
	margin: clamp(0.75rem, 0.708rem + 0.185vw, 0.875rem) 0 clamp(1rem, 0.792rem + 0.926vw, 1.625rem);
	color: var(--wp--preset--color--violet-80);
	font-size: clamp(0.875rem, 0.833rem + 0.185vw, 1rem);
	line-height: 1.4;
}

/* Coloured bar: pinned to the bottom so the bars line up across cards of different text length. */
.ll-step::after {
	content: "";
	display: block;
	height: 4px;
	margin-top: auto;
	border-radius: 2px;
	background: var(--ll-accent);
	transform-origin: 0 50%;
}

/* Figma "Step Card / Hover": the card tilts 1° and lifts, its bar tilts a little further. */
@media (hover: hover) {
	.ll-step:hover {
		cursor: pointer;
		border-color: rgba(42, 25, 79, 0.1);
		box-shadow: 0 4px 34px rgba(0, 0, 0, 0.07);
	}
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.ll-step,
	.ll-step::after {
		transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
	}

	.ll-step:hover {
		transform: rotate(-1deg);
	}

	.ll-step:hover::after {
		transform: rotate(-1deg);
	}
}

@media (max-width: 781px) {
	.ll-steps .ll-step > .ll-step__title {
		line-height: 1.5;
	}

	.ll-steps .ll-step > .ll-step__text {
		color: var(--wp--preset--color--violet-70);
		line-height: 20px;
	}
}

/* Our approach -------------------------------------------------------------- */

/* Figma "Our Approach" (335:2910) and "Our Approach / Mobile". */
section.ll-approach {
	padding-top: clamp(2.5rem, 1.25rem + 5.556vw, 6.25rem);
	padding-bottom: clamp(3.125rem, 2.083rem + 4.63vw, 6.25rem);
	overflow: hidden;
	background:
		radial-gradient(circle 360px at 0 0, rgba(247, 145, 30, 0.12), transparent),
		radial-gradient(circle 240px at 78% 30%, rgba(115, 191, 68, 0.16), transparent),
		radial-gradient(circle 240px at 14% 30%, rgba(247, 145, 30, 0.08), transparent),
		radial-gradient(circle 320px at 50% 100%, rgba(247, 145, 30, 0.12), transparent),
		var(--wp--preset--color--surface-warm);
}

/* Mobile order = DOM order: heading, photo with skill cards, hint, buttons. */
.ll-approach__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.ll-approach__grid > * {
	margin: 0;
}

.ll-approach__grid > .ll-approach__visual,
.ll-approach__grid > .ll-approach__cta,
.ll-approach__grid > .ll-approach__actions {
	margin-top: 28px;
}

.ll-approach .ll-section-head .ll-section-head__lead {
	margin-top: 8px;
	color: var(--wp--preset--color--violet-80);
	line-height: 1.4;
}

.ll-approach .ll-section-head .ll-section-head__title {
	line-height: 1.2;
}

.ll-approach__grid > .ll-approach__divider {
	display: none;
}

.ll-approach__cta > * {
	margin: 0;
}

.ll-approach__cta > .ll-approach__cta-title {
	color: var(--ll-orange);
	font-size: 1.5rem;
	line-height: 1.4;
}

.ll-approach__cta > .ll-approach__cta-text {
	margin-top: 8px;
	color: var(--wp--preset--color--violet-80);
	line-height: 1.4;
}

.ll-approach__actions {
	gap: 12px;
}

/* Skill cards: one style, sized in em so the desktop composition scales with its column. */
.ll-skill {
	--ll-accent: var(--ll-orange);
	--ll-accent-soft: rgba(247, 145, 30, 0.08);
	box-sizing: border-box;
	border-radius: 1.125em;
	background: var(--wp--preset--color--white);
}

.ll-skill--write {
	--ll-accent: var(--ll-green);
	--ll-accent-soft: rgba(115, 191, 68, 0.08);
}

.ll-skill--listen {
	--ll-accent: var(--ll-violet);
	--ll-accent-soft: rgba(42, 25, 79, 0.08);
}

.ll-approach .ll-skill > * {
	margin: 0;
}

.ll-approach .ll-skill > .ll-skill__icon {
	display: grid;
	place-items: center;
	width: 2.8125em;
	height: 2.8125em;
	border-radius: 0.625em;
	background: var(--ll-accent-soft);
}

.ll-skill__icon img {
	display: block;
	width: 1.25em !important;
	height: 1.25em !important;
}

.ll-approach .ll-skill > .ll-skill__title {
	font-size: 1em;
	line-height: 1.4;
}

.ll-approach .ll-skill > .ll-skill__text {
	color: var(--wp--preset--color--violet-70);
	font-size: 0.875em;
	font-weight: 500;
	line-height: 1.4;
}

/* Figma "Example Phrase Container": every pill keeps the orange 30% outline. */
.ll-approach .ll-skill > .ll-skill__phrase {
	padding: 0.5em 0.833em 0.667em;
	border: 1px solid rgba(247, 145, 30, 0.3);
	border-radius: 3.333em;
	background: var(--ll-accent-soft);
	color: var(--ll-accent);
	font-size: 0.75em;
	font-weight: 800;
	letter-spacing: 0.2px;
	line-height: 1.4;
	text-align: center;
}

/* Mobile / tablet: photo, then the three cards as a readable list (Figma "Skills / readable cards"). */
@media (max-width: 1023px) {
	.ll-approach__photo img {
		display: block;
		width: 100%;
	}

	.ll-approach .ll-approach__visual > .ll-skill {
		display: grid;
		grid-template-columns: 45px minmax(0, 1fr);
		grid-template-areas:
			"icon title"
			"icon text"
			"phrase phrase";
		column-gap: 12px;
		align-items: center;
		margin: 12px 0 0;
		padding: 20px;
		font-size: 16px;
		box-shadow: 0 6px 18px rgba(41, 26, 79, 0.07);
		rotate: -1deg;
	}

	.ll-approach .ll-approach__visual > .ll-approach__photo + .ll-skill {
		margin-top: 28px;
	}

	.ll-approach .ll-approach__visual > .ll-skill--write {
		rotate: 1deg;
	}

	.ll-approach .ll-skill > .ll-skill__icon {
		grid-area: icon;
	}

	.ll-approach .ll-skill > .ll-skill__title {
		grid-area: title;
		align-self: end;
		font-weight: 600;
	}

	.ll-approach .ll-skill > .ll-skill__text {
		grid-area: text;
		align-self: start;
		margin-top: 2px;
	}

	.ll-approach .ll-skill > .ll-skill__phrase {
		grid-area: phrase;
		margin-top: 14px;
		padding: 10px;
	}
}

@media (max-width: 781px) {
	.ll-approach__actions {
		flex-direction: column;
	}

	.ll-approach__actions > .wp-block-button,
	.ll-approach__actions .wp-block-button__link {
		width: 100%;
	}

	/* Mobile Figma puts the live Telegram button first. */
	.ll-approach__actions > .ll-btn--tg {
		order: -1;
	}
}

/*
 * Desktop: illustration left (Figma frame 664 × 530), text right, centred on it.
 * Layers use the Figma frame as their box: percentages for position, em (1em = 16px at 664px) for size.
 */
@media (min-width: 1024px) {
	section.ll-approach {
		background:
			radial-gradient(circle 600px at 99px 147px, rgba(247, 145, 30, 0.15), rgba(247, 145, 30, 0.06) 50%, transparent),
			radial-gradient(circle 600px at 449px 869px, rgba(115, 191, 68, 0.15), rgba(115, 191, 68, 0.06) 50%, transparent),
			var(--wp--preset--color--surface-warm);
	}

	.ll-approach__grid {
		grid-template-columns: minmax(0, 664fr) minmax(0, 556fr);
		grid-template-rows: 1fr repeat(4, auto) 1fr;
		column-gap: clamp(40px, 10vw - 64px, 80px);
	}

	.ll-approach__grid > * {
		grid-column: 2;
	}

	.ll-approach__head {
		grid-row: 2;
	}

	.ll-approach .ll-section-head .ll-section-head__title {
		line-height: 1.185;
	}

	.ll-approach .ll-section-head .ll-section-head__lead {
		margin-top: 20px;
	}

	.ll-approach__grid > .ll-approach__divider {
		display: block;
		grid-row: 3;
		width: 60px;
		margin-top: 31px;
		border: 0;
		border-top: 2px solid rgba(42, 25, 79, 0.2);
	}

	.ll-approach__grid > .ll-approach__cta {
		grid-row: 4;
		margin-top: 31px;
	}

	/* Figma row is exactly 556px: 328 + 24 + 204 (the Telegram button is 204 wide with 19px side padding). */
	.ll-approach__grid > .ll-approach__actions {
		grid-row: 5;
		margin-top: 31px;
		gap: 12px 24px;
	}

	.ll-approach__actions > .ll-btn--tg .wp-block-button__link {
		padding-inline: 18px;
		white-space: nowrap;
	}

	.ll-approach__grid > .ll-approach__visual {
		position: relative;
		grid-column: 1;
		grid-row: 1 / -1;
		align-self: center;
		margin: 0;
		container-type: inline-size;
		aspect-ratio: 664 / 530;
	}

	.ll-approach .ll-approach__visual > * {
		position: absolute;
		margin: 0 !important;
	}

	.ll-approach__photo {
		left: -4.22%;
		top: 15.09%;
		width: 91.11%;
	}

	.ll-approach__photo img {
		display: block;
		width: 100%;
	}

	.ll-approach .ll-approach__visual > .ll-skill {
		display: flex;
		flex-direction: column;
		width: 12.125em;
		padding: 1.125em 1.125em 1em;
		font-size: min(16px, 2.4096cqw);
		box-shadow: 0 0.54em 1.62em rgba(41, 26, 79, 0.07);
		translate: -50% -50%;
	}

	.ll-approach .ll-skill > .ll-skill__title {
		margin-top: 0.75em;
	}

	.ll-approach .ll-skill > .ll-skill__text {
		margin-top: 0.25em;
	}

	.ll-approach .ll-skill > .ll-skill__phrase {
		margin-top: 1em;
	}

	/* Positions are the card centres in the Figma frame. Figma rotation is counter-clockwise: CSS = -Figma. */
	.ll-approach .ll-approach__visual > .ll-skill--say {
		left: 15.59%;
		top: 22.92%;
		width: 13em;
		rotate: 1deg;
	}

	.ll-approach .ll-approach__visual > .ll-skill--write {
		left: 74.77%;
		top: 14.34%;
		rotate: -2.13deg;
	}

	.ll-approach .ll-approach__visual > .ll-skill--listen {
		left: 88.55%;
		top: 71.6%;
		rotate: 3deg;
	}

	/* The text column reaches its Figma width (556px) only near 1440: keep the two buttons on one row there. */
	@media (min-width: 1430px) {
		.ll-approach__grid > .ll-approach__actions {
			flex-wrap: nowrap;
		}
	}

	/* Disabled CTA badge on desktop: Figma "Badge / Незабаром" 12/16 with 1px tracking. */
	.wp-block-button.is-style-disabled .wp-block-button__link strong {
		letter-spacing: 1px;
		line-height: 16px;
	}
}

/* Products ------------------------------------------------------------------ */

/* Figma "Products" (335:2929) and "Products / Mobile". */
section.ll-products {
	padding-top: clamp(2.5rem, 1.458rem + 4.63vw, 5.625rem);
	padding-bottom: clamp(3.125rem, 2.292rem + 3.704vw, 5.625rem);
	background: var(--wp--preset--color--white);
}

.ll-products .ll-section-head .ll-section-head__lead {
	margin-top: clamp(1rem, 0.917rem + 0.37vw, 1.25rem);
	color: var(--wp--preset--color--violet-70);
	line-height: 1.4;
}

.ll-products > .ll-product,
.ll-products > .ll-guidance {
	margin-top: 40px;
}


/* Mobile: a hairline between products, 40px either side. */
.ll-products > .ll-product + .ll-product {
	padding-top: 40px;
	border-top: 1px solid rgba(42, 25, 79, 0.1);
}

.ll-products .ll-product > .ll-product__media {
	position: relative;
	box-sizing: border-box;
	margin: 0;
	overflow: hidden;
	aspect-ratio: 480 / 400;
	border: 1px solid rgba(42, 25, 79, 0.07);
	border-radius: clamp(0.833rem, 0.694rem + 0.617vw, 1.25rem);
	transition: box-shadow 0.4s ease;
}

.ll-product__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Figma "Product image / Hover": the photo grows ~4% inside the frame, the frame lifts. */
@media (hover: hover) {
	.ll-products .ll-product > .ll-product__media:hover {
		box-shadow: 0 10px 24px rgba(42, 25, 79, 0.12);
	}

	.ll-product__media:hover img {
		transform: scale(1.04);
	}
}

.ll-products .ll-product > .ll-product__info {
	margin: 24px 0 0;
}

.ll-product__info > * {
	margin: 0;
}

.ll-product__info > .ll-product__title {
	color: var(--ll-orange);
	font-size: var(--wp--preset--font-size--s-1);
	line-height: 1.4;
}

.ll-product__info > .ll-product__subtitle {
	margin-top: clamp(0.75rem, 0.625rem + 0.556vw, 1.125rem);
	font-size: var(--wp--preset--font-size--b-1);
	font-weight: 600;
	line-height: 1.4;
}

.ll-product__info > .ll-product__text,
.ll-product__info > .ll-product__bonus,
.ll-product__info > .ll-product__price,
.ll-product__info > .ll-product__actions {
	margin-top: clamp(0.875rem, 0.625rem + 1.111vw, 1.625rem);
}

.ll-product__info > .ll-product__text {
	color: var(--wp--preset--color--violet-80);
	line-height: 1.4;
}

.ll-product__info > .ll-product__bonus {
	color: var(--ll-green);
	font-weight: 600;
	line-height: 1.4;
}

.ll-product__info > .ll-product__price {
	font-size: var(--wp--preset--font-size--s-1);
	font-weight: 800;
	line-height: 1.4;
}

/* Mobile product CTA: Figma "Product CTA" 320 × 52, 14px label. */
@media (max-width: 781px) {
	.ll-product__actions > .wp-block-button,
	.ll-product__actions .wp-block-button__link {
		width: 100%;
	}

	.ll-product__actions .wp-block-button__link {
		padding: 15px 16px;
		border-radius: 12px;
		font-size: var(--wp--preset--font-size--b-3);
	}
}

@media (min-width: 782px) {
	.ll-products > .ll-product {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 48px;
		margin-top: 28px;
		padding: 32px 0;
	}

	.ll-products > .ll-product + .ll-product {
		padding-top: 32px;
		border-top: 0;
	}

	.ll-products .ll-product > .ll-product__media {
		flex: 0 0 auto;
		width: min(480px, 37%);
	}

	.ll-products .ll-product > .ll-product__info {
		flex: 0 1 720px;
		margin: 0;
	}

	.ll-product__info > .ll-product__title,
	.ll-product__info > .ll-product__price {
		line-height: 1.2;
	}

	.ll-products > .ll-guidance {
		margin-top: 78px;
	}
}

/* Product gallery source: the owner edits it in the editor (full row under the product), visitors see it in the lightbox. */
.ll-product > .ll-gallery {
	flex-basis: 100%;
}

/* In the editor the gallery shows as a strip of thumbnails. */
.editor-styles-wrapper .ll-gallery .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	flex-grow: 0;
	width: 120px;
}

:where(body:not(.editor-styles-wrapper)) .ll-gallery {
	display: none;
}

/* No-JS fallback: the "#gallery-…" button targets the group, which then covers the screen. */
:where(body:not(.editor-styles-wrapper)) .ll-gallery:target {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	margin: 0;
	padding: 20px;
	overflow: auto;
	background: rgba(42, 25, 79, 0.97);
}

.ll-gallery:target .wp-block-gallery.has-nested-images {
	flex-wrap: nowrap;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
}

.ll-gallery:target .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	flex: 0 0 100%;
	width: 100%;
	scroll-snap-align: center;
}

.ll-gallery:target .wp-block-gallery.has-nested-images figure.wp-block-image img {
	max-height: 80vh;
	object-fit: contain;
	border-radius: 14px;
	background: var(--wp--preset--color--white);
}

.ll-gallery:target .ll-gallery__back {
	justify-content: center;
}

.ll-gallery:target .ll-gallery__back .wp-block-button__link {
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--white);
}

/* Guidance cards ------------------------------------------------------------- */

/* Figma "Guidance and Support": two cards with a hairline between them; stacked on mobile. */
.ll-guidance {
	display: grid;
	gap: 20px;
}

.ll-guidance > .ll-guide {
	position: relative;
	margin: 0;
	overflow: hidden;
	padding: 24px 24px 148px;
	border: 1px solid rgba(42, 25, 79, 0.07);
	border-radius: 22px;
	transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Soft glow at the top right plus the flat circle behind the 3D illustration. */
.ll-guide--recommend {
	background:
		radial-gradient(circle 115px at calc(100% - 60px) calc(100% - 55px), rgba(115, 191, 68, 0.07) 99%, transparent 100%),
		radial-gradient(circle 300px at calc(100% - 93px) 80px, rgba(115, 191, 68, 0.11), transparent),
		var(--wp--preset--color--surface-warm);
}

.ll-guide--support {
	background:
		radial-gradient(circle 115px at calc(100% - 60px) calc(100% - 55px), rgba(42, 25, 79, 0.03) 99%, transparent 100%),
		radial-gradient(circle 300px at calc(100% - 93px) 80px, rgba(42, 25, 79, 0.11), transparent),
		var(--wp--preset--color--surface-gray);
}

.ll-guide > * {
	position: relative;
	margin: 0;
}

.ll-guide > .ll-guide__title {
	color: var(--ll-orange);
	font-size: 1.5rem;
	line-height: 1.4;
}

.ll-guide > .ll-guide__text {
	margin-top: 14px;
	line-height: 1.4;
}

.ll-guide > .ll-guide__actions {
	margin-top: 20px;
}

.ll-guide__actions > .wp-block-button,
.ll-guide__actions .wp-block-button__link {
	width: 100%;
}

.ll-guide__actions .wp-block-button__link {
	min-height: 54px;
	padding: 15px 16px;
	line-height: 22px;
}

.ll-guidance .ll-guide > .ll-guide__art {
	position: absolute;
	right: 23px;
	bottom: 11px;
	width: 120px;
}

.ll-guide__art img {
	display: block;
	width: 100%;
}

/* Figma "Guidance card / Hover". */
@media (hover: hover) {
	.ll-guidance > .ll-guide--recommend:hover {
		border-color: rgba(115, 191, 68, 0.38);
		background-color: #f8fff3;
		box-shadow: 0 12px 32px rgba(115, 191, 68, 0.18);
	}

	.ll-guidance > .ll-guide--support:hover {
		border-color: rgba(42, 25, 79, 0.26);
		background-color: #f9f7ff;
		box-shadow: 0 12px 32px rgba(42, 25, 79, 0.15);
	}
}

/* Side by side from 1280px: narrower cards would put the 3D art over the text. */
@media (min-width: 1280px) {
	/* Card | 1px rule | card, 48px apart; the rule is the grid's own pseudo-element. */
	.ll-guidance {
		grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
		align-items: start;
		gap: 48px;
	}

	.ll-guidance::before {
		content: "";
		grid-column: 2;
		grid-row: 1;
		height: 282px;
		background: rgba(42, 25, 79, 0.09);
	}

	.ll-guidance > .ll-guide--recommend {
		grid-column: 1;
		grid-row: 1;
	}

	.ll-guidance > .ll-guide--support {
		grid-column: 3;
		grid-row: 1;
	}

	.ll-guidance > .ll-guide {
		align-self: stretch;
		min-height: 289px;
		padding: 40px 32px 32px;
	}

	.ll-guide--recommend {
		background:
			radial-gradient(circle 125px at calc(100% - 74px) calc(100% - 34px), rgba(115, 191, 68, 0.07) 99%, transparent 100%),
			radial-gradient(circle 320px at calc(100% - 93px) 80px, rgba(115, 191, 68, 0.11), transparent),
			var(--wp--preset--color--surface-warm);
	}

	.ll-guide--support {
		background:
			radial-gradient(circle 125px at calc(100% - 62px) calc(100% - 34px), rgba(42, 25, 79, 0.03) 99%, transparent 100%),
			radial-gradient(circle 320px at calc(100% - 93px) 80px, rgba(42, 25, 79, 0.11), transparent),
			var(--wp--preset--color--surface-gray);
	}

	/* 381px as in Figma, but never under the 3D art on cards narrower than 602px. */
	.ll-guide > .ll-guide__title,
	.ll-guide > .ll-guide__text {
		max-width: min(381px, 100% - 144px);
	}

	.ll-guide--recommend > .ll-guide__title {
		font-size: var(--wp--preset--font-size--s-1);
		line-height: 1.2;
	}

	.ll-guide > .ll-guide__actions {
		margin-top: 26px;
	}

	.ll-guide__actions > .wp-block-button,
	.ll-guide__actions .wp-block-button__link {
		width: auto;
	}

	.ll-guide__actions .wp-block-button__link {
		min-height: 58px;
		padding: 17px 24px;
	}

	/* Figma crops the square render to 166 × 156. */
	.ll-guidance .ll-guide--recommend > .ll-guide__art {
		right: 9px;
		bottom: 17px;
		width: 166px;
	}

	.ll-guide--recommend > .ll-guide__art img {
		height: 156px;
		object-fit: cover;
	}

	.ll-guidance .ll-guide--support > .ll-guide__art {
		right: 13px;
		bottom: 22px;
		width: 133px;
	}
}

/* Lightbox (built by theme.js from a product gallery) ----------------------- */

/* Figma "Product gallery lightbox" 1000 × 626 and "Mobile / Product gallery" 328 × 538. */
html:has(.ll-lightbox[open]) {
	overflow: hidden;
}

.ll-lightbox {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 16px;
	border: 0;
	background: transparent;
	color: var(--ll-violet);
}

.ll-lightbox[open] {
	display: grid;
	place-items: center;
}

.ll-lightbox::backdrop {
	background: rgba(42, 25, 79, 0.45);
}

.ll-lightbox__panel {
	position: relative;
	user-select: none;
	-webkit-user-select: none;
	box-sizing: border-box;
	width: min(328px, 100%);
	padding: 15px 18px;
	border: 1px solid rgba(42, 25, 79, 0.2);
	border-radius: 24px;
	background: var(--wp--preset--color--white);
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
}

.ll-lightbox__head {
	display: flex;
	align-items: flex-start;
	gap: 9px;
}

.ll-lightbox__head .ll-round-btn--close {
	margin-top: 3px;
}

.ll-lightbox__title {
	flex: 1;
	margin: 0;
	font-size: 16.4px;
	font-weight: 600;
	line-height: 1.4;
}

/* Arrows live with the photo: under it on mobile (either side of the counter), on its edges on desktop. */
.ll-lightbox__figure {
	position: relative;
	margin: 10px 0 0;
}

.ll-lightbox__figure .ll-round-btn--prev,
.ll-lightbox__figure .ll-round-btn--next {
	position: absolute;
	top: calc(100% + 10px);
}

.ll-lightbox__figure .ll-round-btn--prev {
	left: 0;
}

.ll-lightbox__figure .ll-round-btn--next {
	right: 0;
}

.ll-lightbox__stage {
	height: min(400px, 100dvh - 200px);
	touch-action: pan-y;
	user-select: none;
}

.ll-lightbox__stage img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ll-lightbox__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	margin-top: 10px;
}

.ll-lightbox__thumbs,
.ll-lightbox__count-long {
	display: none;
}

.ll-lightbox__count {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
}

/* Round icon buttons: Figma "Carousel arrow button" and "Lightbox close button". */
.ll-round-btn {
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--ll-violet);
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	color: var(--ll-violet);
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ll-round-btn svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ll-round-btn--prev svg {
	rotate: 180deg;
}

.ll-round-btn:disabled {
	opacity: 0.35;
	cursor: default;
}

@media (hover: hover) {
	.ll-round-btn:not(:disabled):hover {
		border-color: var(--ll-green);
		background: var(--ll-green);
		color: var(--wp--preset--color--white);
	}

	.ll-round-btn--close:hover {
		border-color: var(--ll-violet) !important;
		background: var(--ll-violet) !important;
		box-shadow: 0 6px 16px rgba(42, 25, 79, 0.22);
	}
}

@media (min-width: 782px) {
	.ll-lightbox__panel {
		width: min(1000px, 100%);
		padding: 40px;
	}

	.ll-lightbox__title {
		margin-right: 64px;
		font-size: 2rem;
		font-weight: 700;
		line-height: 40px;
	}

	.ll-lightbox__head .ll-round-btn--close {
		position: absolute;
		top: 31px;
		right: 39px;
		width: 48px;
		margin: 0;
		height: 48px;
	}

	.ll-round-btn--close svg {
		width: 24px;
		height: 24px;
	}

	.ll-lightbox__figure {
		margin-top: 24px;
	}

	.ll-lightbox__stage {
		height: min(380px, 100dvh - 290px);
	}

	.ll-lightbox__nav {
		justify-content: flex-start;
		gap: 16px;
		min-height: 0;
		margin-top: 24px;
	}

	.ll-lightbox__figure .ll-round-btn--prev,
	.ll-lightbox__figure .ll-round-btn--next {
		top: 50%;
		width: 54px;
		height: 54px;
		translate: 0 -50%;
	}

	.ll-lightbox__figure .ll-round-btn--prev {
		left: -1px;
	}

	.ll-lightbox__figure .ll-round-btn--next {
		right: -1px;
	}

	.ll-lightbox__figure .ll-round-btn svg {
		width: 24px;
		height: 24px;
	}

	/* More thumbnails than fit: the strip scrolls inside, the counter keeps its width. */
	/* 4px inner room (cancelled by the negative margin) keeps the focus ring inside, so the strip never grows a vertical scroll. */
	.ll-lightbox__thumbs {
		display: flex;
		flex: 0 1 auto;
		gap: 16px;
		min-width: 0;
		margin: -4px;
		padding: 4px;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-x: contain;
		scrollbar-width: thin;
	}

	.ll-lightbox__thumb {
		flex: none;
		width: 96px;
		height: 76px;
		padding: 0;
		overflow: hidden;
		border: 3px solid transparent;
		border-radius: 8px;
		background: var(--wp--preset--color--surface-gray);
		cursor: pointer;
	}

	.ll-lightbox__thumb[aria-current="true"] {
		border-color: var(--ll-green);
	}

	.ll-lightbox__thumb img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.ll-lightbox__count-long {
		display: inline;
	}

	.ll-lightbox__count-short {
		display: none;
	}

	.ll-lightbox__count {
		flex: none;
		white-space: nowrap;
		font-size: 16px;
		font-weight: 600;
		letter-spacing: 0.2px;
		line-height: 20px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.ll-lightbox[open] .ll-lightbox__panel {
		animation: ll-menu-content-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
	}
}

/* Team ---------------------------------------------------------------------- */

/* Figma "team" (335:2940, component 170:984) and "Team / Mobile". */
section.ll-team {
	padding-top: clamp(2.5rem, 1.458rem + 4.63vw, 5.625rem);
	padding-bottom: clamp(2.5rem, 1.458rem + 4.63vw, 5.625rem);
	overflow: hidden;
	background:
		radial-gradient(circle 420px at 86px -131px, rgba(247, 145, 30, 0.15), transparent),
		radial-gradient(circle 360px at 160px calc(100% + 190px), rgba(247, 145, 30, 0.15), transparent),
		var(--wp--preset--color--surface-warm);
}

.ll-team .ll-section-head .ll-section-head__lead {
	margin-top: 14px;
	color: var(--wp--preset--color--violet-80);
	line-height: 1.4;
}

.ll-team > .ll-founder {
	margin-top: clamp(1.75rem, 1.083rem + 2.963vw, 3.75rem);
}

.ll-founder > *,
.ll-founder__profile > *,
.ll-story > *,
.ll-story__more > * {
	margin: 0;
}

.ll-founder__profile {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.ll-founder__profile > .ll-founder__photo {
	box-sizing: border-box;
	width: 256px;
	aspect-ratio: 1;
	overflow: hidden;
	border: 4.5px solid var(--wp--preset--color--white);
	border-radius: 50%;
}

.ll-founder__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ll-founder__profile > .ll-founder__name {
	margin-top: 16px;
	font-size: var(--wp--preset--font-size--s-1);
	font-weight: 800;
	line-height: 1.4;
}

.ll-founder__profile > .ll-founder__role {
	margin-top: 16px;
	padding: 10px 24px;
	border-radius: 100px;
	background: rgba(115, 191, 68, 0.08);
	color: var(--ll-green);
	font-weight: 800;
	line-height: 1.4;
}

.ll-founder__profile > .ll-founder__actions {
	align-self: stretch;
	justify-content: center;
	margin-top: 16px;
}

.ll-btn--linkedin .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 24px;
	height: 24px;
	background: currentColor;
	-webkit-mask: url(../svg/linkedin.svg) center / contain no-repeat;
	mask: url(../svg/linkedin.svg) center / contain no-repeat;
}

/* Mobile: full-width button, icon pinned left, label centred (Figma "Btn / Secondary / Icon=Left" 320 × 52). */
@media (max-width: 781px) {
	.ll-founder__actions > .wp-block-button,
	.ll-founder__actions .wp-block-button__link {
		width: 100%;
	}

	.ll-btn--linkedin .wp-block-button__link {
		position: relative;
		padding: 13px 40px;
	}

	.ll-btn--linkedin .wp-block-button__link::before {
		position: absolute;
		top: 50%;
		left: 16px;
		translate: 0 -50%;
	}
}

.ll-team .ll-founder > .ll-story {
	margin-top: 28px;
}

.ll-story > .ll-story__title {
	font-size: 1.5rem;
	line-height: 1.4;
}

.ll-story > p,
.ll-story__more > p {
	color: var(--wp--preset--color--violet-80);
	font-size: var(--wp--preset--font-size--b-1);
	line-height: 1.4;
}

.ll-story > * + *,
.ll-story__more > * + * {
	margin-top: clamp(1rem, 0.875rem + 0.556vw, 1.375rem);
}

/*
 * "Читати більше": without JS the whole story shows and the toggle labels stay hidden.
 * With JS (html.ll-js, set in <head>) the extra paragraphs collapse; mobile also hides
 * the third paragraph, as in Figma "Mobile / Founder story / Collapsed".
 */
.ll-story > .ll-story__toggle,
.ll-story > .ll-story__toggle-less {
	display: none;
}

.ll-js .ll-story > .ll-story__toggle,
.editor-styles-wrapper .ll-story > .ll-story__toggle,
.editor-styles-wrapper .ll-story > .ll-story__toggle-less {
	display: block;
}

.ll-js .ll-story:not(.is-open) > .ll-story__more {
	display: none;
}

@media (max-width: 781px) {
	.ll-js .ll-story:not(.is-open) > .ll-story__peek {
		display: none;
	}
}

.ll-story__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 12px 0;
	border: 0;
	background: none;
	color: var(--ll-violet);
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
}

.ll-story__btn::after {
	content: "";
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url(../svg/caret-down.svg) center / 20px no-repeat;
	mask: url(../svg/caret-down.svg) center / 20px no-repeat;
	transition: rotate 0.2s ease;
}

.ll-story.is-open .ll-story__btn::after {
	rotate: 180deg;
}

@media (hover: hover) {
	.ll-story__btn:hover {
		color: var(--ll-green);
	}
}

@media (min-width: 782px) {
	.ll-founder__profile > .ll-founder__photo {
		width: 340px;
		border-width: 6px;
	}

	.ll-founder__profile > .ll-founder__name {
		margin-top: 18px;
		line-height: 1.2;
	}

	.ll-founder__profile > .ll-founder__role,
	.ll-founder__profile > .ll-founder__actions {
		margin-top: 18px;
	}

	.ll-btn--linkedin .wp-block-button__link {
		padding: 16px 24px 16px 18px;
	}

	.ll-story__btn {
		gap: 10px;
		padding: 10px 8px 10px 0;
	}
}

/* Desktop: profile | 1px rule | story (340 + 44 + 1 + 44 + 770, Figma "Founder / editorial story"). */
@media (min-width: 1024px) {
	section.ll-team {
		background:
			radial-gradient(circle 420px at 86px -131px, rgba(247, 145, 30, 0.15), transparent),
			radial-gradient(circle 360px at -27px 613px, rgba(247, 145, 30, 0.13), transparent),
			radial-gradient(circle 480px at -156px calc(100% + 130px), rgba(115, 191, 68, 0.15), transparent),
			radial-gradient(circle 560px at calc(100% + 140px) -139px, rgba(115, 191, 68, 0.15), transparent),
			var(--wp--preset--color--surface-warm);
	}

	.ll-founder {
		display: grid;
		grid-template-columns: 340px 1px minmax(0, 770px);
		align-items: center;
		column-gap: 44px;
	}

	.ll-founder::before {
		content: "";
		grid-column: 2;
		grid-row: 1;
		align-self: stretch;
		background: rgba(42, 25, 79, 0.1);
	}

	/* The profile always sits at the top: only a short story is centred next to it, a long one never pushes the photo down. */
	.ll-founder > .ll-founder__profile {
		grid-column: 1;
		grid-row: 1;
		align-self: start;
	}

	.ll-team .ll-founder > .ll-story {
		grid-column: 3;
		grid-row: 1;
		margin: 0;
	}

	/* Expanded: the profile stays at the top; theme.js keeps the story where it was, so the text does not jump. */
	.ll-founder:has(.ll-story.is-open) {
		align-items: start;
	}
}

/* Testimonials -------------------------------------------------------------- */

/* Figma "Testimonials" (335:2941), "Testimonials / Mobile" and "Media reviews / Mobile". */
section.ll-testimonials {
	padding-top: clamp(2.5rem, 1.458rem + 4.63vw, 5.625rem);
	padding-bottom: clamp(2.5rem, 1.458rem + 4.63vw, 5.625rem);
	overflow: hidden;
	background: var(--wp--preset--color--white);
}

.ll-testimonials > .ll-testimonials__title {
	margin-bottom: 0;
	line-height: 1.2;
	text-wrap: balance;
}

/* Quote card: Figma "Testimonial card / Accent" (421 wide) and the 248 × 166 mobile card. */
.ll-review {
	--ll-accent: var(--ll-green);
	box-sizing: border-box;
	display: flex;
	flex: 0 0 248px;
	flex-direction: column;
	justify-content: center;
	width: 248px;
	min-height: 166px;
	margin: 0;
	padding: 20px;
	border: 1px solid rgba(42, 25, 79, 0.07);
	border-radius: 20px;
	background: var(--wp--preset--color--white);
	box-shadow: 0 0 26px 3px color-mix(in srgb, var(--ll-accent) 14%, transparent);
}

.ll-review.is-orange {
	--ll-accent: var(--ll-orange);
}

.ll-review > * {
	margin: 0;
}

.ll-review > .ll-review__tag {
	color: var(--ll-accent);
	font-size: var(--wp--preset--font-size--b-3);
	font-weight: 500;
	line-height: 1.4;
}

.ll-review > .ll-review__quote {
	margin-top: 12px;
	font-size: var(--wp--preset--font-size--b-3);
	font-weight: 500;
	line-height: 1.4;
	/* Every card is at least as tall as one with a four-line quote. */
	min-height: calc(4 * 1.4em);
}

/* With JS a quote is cut after four lines; "Показати більше" opens the rest (theme.js). */
.ll-js .ll-review > .ll-review__quote {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
}

.ll-js .ll-review.is-open > .ll-review__quote {
	display: block;
	overflow: visible;
}

.ll-review__more {
	align-self: flex-start;
	margin-top: 12px;
	color: var(--ll-accent);
	font-size: var(--wp--preset--font-size--b-3);
	font-weight: 700;
	line-height: 1.4;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.ll-review__more:focus-visible {
	outline: 2px solid var(--ll-orange);
	outline-offset: 2px;
}

/* Without JS the Query Loop list is one swipeable row (theme.js replaces it with the marquee rows). */
.ll-reviews .wp-block-post-template {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ll-reviews .wp-block-post-template > li {
	flex: none;
	margin: 0;
}

.ll-testimonials > .ll-reviews {
	display: flex;
	gap: 20px;
	margin-top: calc(28px - 30px);
	margin-bottom: -30px;
	padding: 30px var(--wp--style--root--padding-left);
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}

.ll-reviews .wp-block-post-template > li:nth-child(even) .ll-review {
	--ll-accent: var(--ll-orange);
}

/* Each card links to the author's profile (inc/reviews.php). */
a.ll-review {
	color: inherit;
	text-decoration: none;
}

a.ll-review:focus-visible {
	outline: 2px solid var(--ll-orange);
	outline-offset: 3px;
}

/* Reduced motion: one row the visitor scrolls sideways, no copies, no animation. */
.ll-testimonials > .ll-reviews.is-marquee.is-static {
	padding-inline: var(--wp--style--root--padding-left);
	overflow-x: auto;
}

.ll-reviews.is-static .ll-marquee__track {
	animation: none;
}

/* Marquee built by theme.js: N rows, each track holds the row's cards plus aria-hidden copies. */
.ll-testimonials > .ll-reviews.is-marquee {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	padding-inline: 0;
	overflow: hidden;
}

.ll-reviews > .ll-marquee__row {
	min-width: 0;
	margin: 0;
}

.ll-marquee__track {
	display: flex;
	align-items: stretch;
	gap: 20px;
	width: max-content;
	animation: ll-marquee var(--ll-marquee-duration, 40s) linear infinite;
}

.ll-marquee__row:nth-child(even) .ll-marquee__track {
	animation-direction: reverse;
}

.ll-marquee__row:hover .ll-marquee__track,
.ll-marquee__row:focus-within .ll-marquee__track,
.ll-marquee__row:has(.ll-review.is-open) .ll-marquee__track {
	animation-play-state: paused;
}

@keyframes ll-marquee {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(var(--ll-marquee-shift, -50%), 0, 0); }
}

@media (min-width: 782px) {
	.ll-testimonials > .ll-testimonials__title {
		line-height: 1.185;
		text-align: center;
	}

	.ll-testimonials > .ll-reviews {
		margin-top: calc(50px - 30px);
	}

	.ll-testimonials > .ll-reviews.is-marquee {
		gap: 20px;
	}

	.ll-review {
		flex-basis: 421px;
		width: 421px;
		min-height: 192px;
		justify-content: flex-start;
		padding: 32px;
	}

	.ll-review > .ll-review__tag {
		font-size: var(--wp--preset--font-size--b-2);
		font-weight: 600;
	}

	.ll-review > .ll-review__quote {
		margin-top: 20px;
		font-size: 1.25rem;
		font-weight: 600;
	}
}

/* Media carousel --------------------------------------------------------------- */

/* 56px under the last marquee row on mobile (Figma: 16px row slack + 40px padding), 80px on desktop. */
.ll-testimonials > .ll-media {
	margin-top: clamp(3.5rem, 3rem + 2.222vw, 5rem);
}

.ll-media > * {
	margin: 0;
}

.ll-media > .ll-media__title {
	font-size: 2rem;
	line-height: 1.2;
}

/* Track (the Query Loop list): native horizontal scroll with snap, so touch, trackpad and keyboard work without JS. */
.ll-media .ll-media__track {
	display: flex;
	gap: 16px;
	margin-top: 28px;
	margin-left: 0;
	padding-left: 0;
	list-style: none;
	margin-right: calc(-1 * var(--wp--style--root--padding-right));
	padding-right: var(--wp--style--root--padding-right);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.ll-media__track::-webkit-scrollbar,
.ll-reviews::-webkit-scrollbar {
	display: none;
}

/* Slide = one review from «Відгуки → Фото й відео» (rendered in inc/reviews.php). */
.ll-media__track > li {
	display: flex;
	flex: 0 0 288px;
	height: 425px;
	margin: 0;
	scroll-snap-align: start;
}

.ll-media__track .ll-media__item {
	position: relative;
	box-sizing: border-box;
	flex: 1;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	border: 0.69px solid rgba(42, 25, 79, 0.1);
	border-radius: 13.71px;
	background: var(--wp--preset--color--surface-gray);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ll-media__link {
	display: block;
	width: 100%;
	height: 100%;
}

/* Videos play in place, so the author's profile is a small Instagram button in the corner. */
.ll-media__profile {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: var(--ll-violet);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ll-media__profile::before {
	content: "";
	width: 22px;
	height: 22px;
	background: currentColor;
	-webkit-mask: url(../svg/instagram.svg) center / contain no-repeat;
	mask: url(../svg/instagram.svg) center / contain no-repeat;
}

@media (hover: hover) {
	.ll-media__profile:hover {
		background: var(--ll-green);
		color: var(--wp--preset--color--white);
	}
}

.ll-media__item img,
.ll-media__item video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Story screenshots are shown whole on the grey card, as in Figma; video posters fill it. */
.ll-media__item img {
	object-fit: contain;
}

/* Figma "Media card / Hover": photo grows ~4.5%, darker veil on videos. */
@media (hover: hover) {
	.ll-media__track .ll-media__item:hover {
		border-color: rgba(42, 25, 79, 0.2);
		box-shadow: 0 4px 34px rgba(0, 0, 0, 0.07);
	}

	.ll-media__item:not(.is-playing):hover img,
	.ll-media__item:not(.is-playing):hover video {
		transform: scale(1.045);
	}
}

.ll-media__item.wp-block-video::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.3);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

@media (hover: hover) {
	.ll-media__item.wp-block-video:not(.is-playing):hover::after {
		opacity: 1;
	}
}

.ll-media__item.is-playing:is(:hover, :focus-within)::after {
	opacity: 1;
}

/* Play / stop button and timeline (added by theme.js; native controls remain without JS). */
.ll-media__toggle {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 49px;
	height: 49px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	color: var(--ll-violet);
	cursor: pointer;
	translate: -50% -50%;
	transition: opacity 0.2s ease, background-color 0.2s ease;
}

.ll-media__toggle::before {
	content: "";
	width: 16px;
	height: 16px;
	margin-left: 3px;
	background: currentColor;
	clip-path: polygon(14% 0, 100% 50%, 14% 100%);
}

.ll-media__item.is-playing .ll-media__toggle {
	background: rgba(255, 255, 255, 0.7);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
	opacity: 0;
}

.ll-media__item.is-playing .ll-media__toggle::before {
	width: 14px;
	height: 14px;
	margin: 0;
	border-radius: 2px;
	clip-path: none;
}

.ll-media__item.is-playing:is(:hover, :focus-within) .ll-media__toggle,
.ll-media__item.is-playing .ll-media__toggle:focus-visible {
	opacity: 1;
}

.ll-media__time {
	position: absolute;
	right: 16px;
	bottom: 20px;
	left: 16px;
	z-index: 1;
	width: auto;
	height: 22px;
	margin: 0;
	background: transparent;
	opacity: 0;
	cursor: pointer;
	appearance: none;
	transition: opacity 0.2s ease;
}

.ll-media__item.is-playing:is(:hover, :focus-within) .ll-media__time {
	opacity: 1;
}

.ll-media__time::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 2px;
	background: linear-gradient(var(--ll-green), var(--ll-green)) 0 / var(--ll-progress, 0%) 100% no-repeat, var(--wp--preset--color--surface-gray);
}

.ll-media__time::-moz-range-track {
	height: 4px;
	border-radius: 2px;
	background: linear-gradient(var(--ll-green), var(--ll-green)) 0 / var(--ll-progress, 0%) 100% no-repeat, var(--wp--preset--color--surface-gray);
}

.ll-media__time::-webkit-slider-thumb {
	width: 14px;
	height: 14px;
	margin-top: -5px;
	border: 0;
	border-radius: 50%;
	background: var(--ll-green);
	appearance: none;
}

.ll-media__time::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border: 0;
	border-radius: 50%;
	background: var(--ll-green);
}

/* Counter and arrows under the track (Figma "Carousel controls"). */
.ll-media__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 28px;
}

.ll-media__count {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
}

.ll-media__arrows {
	display: flex;
	gap: 12px;
}

.ll-media__arrows .ll-round-btn svg {
	width: 18px;
	height: 18px;
}

@media (min-width: 782px) {
	.ll-media .ll-media__track {
		gap: 20px;
		margin-top: 40px;
		margin-right: 0;
		padding-right: 0;
	}

	/*
	 * Three 420 × 620 cards as in Figma, but on short screens (laptops) the card shrinks so the whole
	 * card plus the arrows fit below the sticky header: 142px = 40px controls gap + 54px arrows + 2 × 24px air.
	 */
	.ll-media__track > li {
		--ll-media-fit-h: max(380px, 100vh - var(--ll-header-h) - var(--wp-admin--admin-bar--height, 0px) - 142px);
		flex-basis: min(calc((100% - 40px) / 3), var(--ll-media-fit-h) * 420 / 620);
		height: auto;
		aspect-ratio: 420 / 620;
	}

	.ll-media__track .ll-media__item {
		border-width: 1px;
		border-radius: 20px;
	}

	.ll-media__toggle {
		width: 72px;
		height: 72px;
	}

	.ll-media__toggle::before {
		width: 24px;
		height: 24px;
		margin-left: 4px;
	}

	.ll-media__item.is-playing .ll-media__toggle::before {
		width: 20px;
		height: 20px;
		border-radius: 3px;
	}

	.ll-media__time {
		right: 24px;
		bottom: 24px;
		left: 24px;
	}

	.ll-media__controls {
		margin-top: 40px;
	}

	.ll-media__count {
		line-height: 20px;
	}

	.ll-media__arrows .ll-round-btn {
		width: 54px;
		height: 54px;
	}

	.ll-media__arrows .ll-round-btn svg {
		width: 24px;
		height: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ll-media .ll-media__track {
		scroll-behavior: auto;
	}
}

/* Contacts ------------------------------------------------------------------ */

/* Figma "CTA Section" (335:2946) and "Contacts / Mobile". */
section.ll-contacts {
	padding-top: clamp(3rem, 1.917rem + 4.815vw, 6.25rem);
	padding-bottom: clamp(3rem, 1.917rem + 4.815vw, 6.25rem);
	overflow: hidden;
	background:
		radial-gradient(circle 280px at 98px 762px, rgba(247, 145, 30, 0.13), transparent),
		radial-gradient(circle 280px at 198px 1067px, rgba(115, 191, 68, 0.13), transparent),
		radial-gradient(circle 280px at 190px -118px, rgba(247, 145, 30, 0.13), transparent),
		var(--wp--preset--color--surface-warm);
}

.ll-contacts__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	row-gap: 28px;
}

.ll-contacts__grid > *,
.ll-contacts__content > * {
	margin: 0;
}

.ll-contacts__content > .ll-contacts__title {
	line-height: 1.2;
}

.ll-contacts__content > .ll-contacts__lead {
	margin-top: 20px;
	color: var(--wp--preset--color--violet-80);
	font-size: var(--wp--preset--font-size--b-1);
	line-height: 1.4;
}

.ll-contacts__content > .ll-contacts__actions,
.ll-contacts__content > .ll-benefits {
	margin-top: 28px;
}

.ll-contacts__actions {
	gap: 12px;
}

@media (max-width: 781px) {
	.ll-contacts__actions {
		flex-direction: column;
	}

	.ll-contacts__actions > .wp-block-button,
	.ll-contacts__actions .wp-block-button__link {
		width: 100%;
	}
}

/* Benefits: 2 + 1 centred on mobile, one row with hairlines on desktop. */
.ll-benefits {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	row-gap: 31px;
}

.ll-benefits > .ll-benefit {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
}

.ll-benefits > .ll-benefit:last-child {
	flex-basis: 100%;
	justify-content: center;
}

.ll-benefit > * {
	margin: 0;
}

.ll-benefit > .ll-benefit__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: 14px;
	background: rgba(247, 145, 30, 0.08);
}

.ll-benefit__icon img {
	display: block;
}

/* Labels break only where the owner put a line break (Figma has two fixed lines). */
.ll-benefit > .ll-benefit__label {
	font-size: var(--wp--preset--font-size--b-3);
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

/* A label edited without a line break still wraps into two balanced lines, like the Figma ones. */
.ll-benefit > .ll-benefit__label:not(:has(br)) {
	max-width: 9em;
	white-space: normal;
	text-wrap: balance;
}

/*
 * Key visual 2. The box is the Figma render bounds of "Golden Key Illustration":
 * 360 × 502.3 on mobile (full bleed), 663.2 × 552.5 on desktop. Orbits, dots, round
 * icons and sparks are the background SVG; the chat card and tooltips are blocks
 * placed by their centres, sized in em of a container-relative font size.
 */
.ll-contacts__grid > .ll-contacts__visual {
	--ll-bleed: min(100% + 2 * var(--wp--style--root--padding-left), 440px);
	position: relative;
	container-type: inline-size;
	width: var(--ll-bleed);
	aspect-ratio: 360 / 502.3;
	margin: 0 calc((100% - var(--ll-bleed)) / 2) calc(var(--ll-bleed) * -0.1008);
	background: url(../svg/contacts-deco-mobile.svg) center / 100% 100% no-repeat;
}

.ll-contacts .ll-contacts__visual > * {
	position: absolute;
	margin: 0 !important;
	translate: -50% -50%;
}

.ll-contacts .ll-contacts__visual > .ll-contacts__card {
	left: 50%;
	top: 50.07%;
	box-sizing: border-box;
	width: 88.89%;
	padding: 1em 1.125em;
	border-radius: 1em;
	background: linear-gradient(#fff, #f9f9f9);
	box-shadow: 0 0.54em 1.62em rgba(41, 26, 79, 0.07);
	font-size: 4.4444cqw; /* cqw on a child of the container: 16px at the 360px Figma box */
	rotate: 2deg;
}

.ll-contacts__card > *,
.ll-chat__profile > *,
.ll-chat__list > *,
.ll-chat__item > * {
	margin: 0;
}

/* Avatar | name over status | "•••" */
.ll-contacts__card > .ll-chat__profile {
	display: grid;
	grid-template-columns: 3.625em minmax(0, 1fr) auto;
	grid-template-areas:
		"avatar name dots"
		"avatar status dots";
	align-items: center;
	column-gap: 0.875em;
}

.ll-contacts__card > .ll-chat__profile::after {
	content: "";
	grid-area: dots;
	align-self: end;
	width: 1.8em;
	height: 0.44em;
	margin-bottom: 0.5em;
	background: radial-gradient(circle, #c7c2d9 0.19em, transparent 0.21em) 0 50% / 0.65em 100% repeat-x;
}

.ll-chat__profile > .ll-chat__avatar {
	display: grid;
	grid-area: avatar;
	place-items: center;
	width: 3.625em;
	height: 3.625em;
	border-radius: 0.75em;
	background: var(--wp--preset--color--green-light);
}

.ll-chat__avatar img {
	display: block;
	width: 2.1875em;
	height: auto;
}

.ll-chat__profile > .ll-chat__name {
	grid-area: name;
	align-self: end;
	font-size: 1em;
	font-weight: 800;
	line-height: 1.4;
}

.ll-chat__profile > .ll-chat__status {
	grid-area: status;
	align-self: start;
	margin-top: 0.125em;
	color: var(--wp--preset--color--violet-70);
	font-size: 0.75em;
	font-weight: 800;
	letter-spacing: 0.2px;
	line-height: 1.4;
}

.ll-chat__status::after {
	content: "●";
	margin-left: 0.5em;
	color: var(--ll-green);
}

.ll-contacts__card > .ll-chat__list {
	display: grid;
	gap: 0.75em;
	margin-top: 1.4375em;
}

.ll-chat__list > .ll-chat__item {
	display: flex;
	align-items: center;
	gap: 0.6875em;
	padding: 0.6875em 1.0625em 0.6875em 1.1875em;
	border-radius: 1.75em;
	background: rgba(115, 191, 68, 0.08);
}

.ll-chat__item > .ll-chat__icon {
	flex: none;
}

.ll-chat__icon img {
	display: block;
	width: 1.5625em !important;
	height: 1.5625em !important;
}

.ll-chat__item > .ll-chat__text {
	font-size: 0.875em;
	font-weight: 600;
	line-height: 1.4;
}

/* Tooltips reuse the hero ".ll-tooltip" card; only size and position differ. */
.ll-contacts__visual .ll-tooltip {
	padding: 0.857em 1.071em;
	font-size: 3.889cqw;
}

.ll-contacts .ll-contacts__visual > .ll-tooltip--aim {
	left: 34.89%;
	top: 11.7%;
	rotate: -7.08deg;
}

.ll-contacts .ll-contacts__visual > .ll-tooltip--together {
	left: 61.03%;
	top: 87.74%;
	rotate: 2deg;
}

@media (min-width: 782px) {
	section.ll-contacts {
		background:
			radial-gradient(circle 560px at 1175px 612px, rgba(247, 145, 30, 0.15), transparent),
			radial-gradient(ellipse 520px 320px at 65px 935px, rgba(247, 145, 30, 0.18), transparent),
			radial-gradient(circle 560px at calc(100% - 198px) -106px, rgba(115, 191, 68, 0.15), transparent),
			var(--wp--preset--color--surface-warm);
	}

	.ll-contacts__content > .ll-contacts__title {
		line-height: 1.185;
	}

	.ll-contacts__content > .ll-contacts__actions,
	.ll-contacts__content > .ll-benefits {
		margin-top: 38px;
	}

	.ll-contacts__actions {
		gap: 24px;
	}

}

/* One row with hairlines needs the full 594px text column, i.e. ~1440px; narrower keeps 2 + 1. */
@media (min-width: 1430px) {
	.ll-benefits {
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 28px;
	}

	.ll-benefits > .ll-benefit:last-child {
		flex-basis: auto;
	}

	.ll-benefits > .ll-benefit + .ll-benefit {
		position: relative;
		padding-left: 28px;
	}

	.ll-benefits > .ll-benefit + .ll-benefit::before {
		content: "";
		position: absolute;
		top: 8px;
		left: 0;
		width: 1px;
		height: 34px;
		background: rgba(42, 25, 79, 0.1);
	}
}

/* Desktop: text left (594), illustration right (Figma frame 646 × 507, render box 663.2 × 552.5 at -0.7 / -9.1). */
@media (min-width: 1024px) {
	.ll-contacts__grid {
		grid-template-columns: minmax(0, 594fr) minmax(0, 646fr);
		align-items: center;
		column-gap: clamp(32px, 6.731vw - 36.92px, 60px);
	}

	.ll-contacts__grid > .ll-contacts__visual {
		width: 102.66%;
		aspect-ratio: 663.2 / 552.5;
		margin: -1.409% 0 -5.635% -0.108%;
		background-image: url(../svg/contacts-deco.svg);
	}

	.ll-contacts .ll-contacts__visual > .ll-contacts__card {
		left: 52.43%;
		top: 49.16%;
		width: 58.81%;
		padding: 1.375em 1.5625em;
		border-radius: 1.375em;
		font-size: min(16px, 2.4125cqw);
		rotate: 3deg;
	}

	.ll-chat__list > .ll-chat__item {
		gap: 0.875em;
		padding: 0.8125em 1.375em 0.8125em 1.5em;
	}

	.ll-chat__item > .ll-chat__text {
		font-size: 1em;
	}

	.ll-contacts__visual .ll-tooltip {
		padding: 1em 1.125em;
		font-size: min(16px, 2.4125cqw);
	}

	.ll-contacts .ll-contacts__visual > .ll-tooltip--aim {
		left: 21.68%;
		top: 10.1%;
	}

	.ll-contacts .ll-contacts__visual > .ll-tooltip--together {
		left: 73.9%;
		top: 88.24%;
	}
}

/* Landing Base starter (lingua-life/landing-starter) --------------------------- */

/* The starter reuses the home components; these rules only fix spacing where a section starts without its heading. */
.ll-landing-intro > .ll-product:first-child {
	margin-top: 0;
}

section.ll-landing-guidance {
	padding-top: 0;
}

.ll-landing-guidance > .ll-guidance {
	margin-top: 0 !important;
}

section.ll-landing-photos {
	padding-top: clamp(2.5rem, 1.458rem + 4.63vw, 5.625rem);
	padding-bottom: clamp(2.5rem, 1.458rem + 4.63vw, 5.625rem);
	background: var(--wp--preset--color--white);
}

.ll-landing-photos > .ll-landing-photos__title {
	margin-bottom: 0;
	line-height: 1.2;
}

.ll-landing-photos > .ll-landing-photos__gallery {
	margin-top: clamp(1.75rem, 1.333rem + 1.852vw, 3rem);
}

.ll-landing-photos__gallery.wp-block-gallery img {
	border-radius: clamp(0.833rem, 0.694rem + 0.617vw, 1.25rem);
}

/* Footer ------------------------------------------------------------------- */

/* Figma "Footer" (335:3047) and "Footer / Mobile" (385:1305). */
.wp-block-columns.ll-footer__cols {
	/* 64px at 1440 (Figma), narrowing to 32px at 1280 so the brand column keeps room for the CTA. */
	gap: clamp(32px, 20vw - 224px, 64px) !important;
	margin: 0;
}

.ll-footer .ll-logo {
	margin: -16px 0 0;
}

.ll-footer .ll-logo a {
	display: block;
}

.ll-footer .ll-logo img {
	display: block;
	width: 278px !important;
	max-width: 100%;
}

.ll-footer__brand > .wp-block-buttons {
	margin-top: 31px;
}

.ll-footer__note {
	margin-top: 16px;
	color: rgba(255, 255, 255, 0.7);
}

.ll-footer__title {
	margin: 0 0 20px;
	color: var(--wp--preset--color--white);
	font-size: 1.3125rem;
	font-weight: 800;
	line-height: 29px;
}

.ll-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	font-size: var(--wp--preset--font-size--b-2);
	font-weight: 400;
	line-height: 1.4;
}

.ll-footer__links > li {
	position: relative;
	margin: 0;
	padding: 20px 22px 20px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.7);
	transition: color 0.2s ease;
}

.ll-footer__links a {
	color: inherit;
	text-decoration: none;
}

/* The whole row is clickable, as in Figma "Footer link". */
.ll-footer__links a::before {
	content: "";
	position: absolute;
	inset: 0;
}

.ll-footer__links > li:has(a):hover,
.ll-footer__links > li:has(a:focus-visible) {
	color: var(--wp--preset--color--white);
}

.ll-footer__links > li.is-disabled {
	color: rgba(255, 255, 255, 0.3);
	cursor: default;
}

/* Figma "Arrow" 18 × 18 at the right edge of each footer link. */
.ll-footer__links > li::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	background: currentColor;
	-webkit-mask: url(../svg/caret-right.svg) center / contain no-repeat;
	mask: url(../svg/caret-right.svg) center / contain no-repeat;
	pointer-events: none;
}

.ll-footer__divider {
	margin-top: 50px !important;
	margin-bottom: 0 !important;
	border: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
	opacity: 1;
}

.ll-footer__legal {
	margin-top: 40px !important;
	color: rgba(255, 255, 255, 0.3);
}

/* Tablet: two columns per row so long Ukrainian link labels keep one line. */
@media (min-width: 782px) and (max-width: 1279px) {
	.wp-block-columns.ll-footer__cols {
		flex-wrap: wrap !important;
		row-gap: 48px !important;
	}

	.wp-block-columns.ll-footer__cols > .wp-block-column {
		flex: 1 1 calc(50% - 32px) !important;
	}
}

@media (max-width: 781px) {
	.wp-block-columns.ll-footer__cols {
		gap: 40px !important;
	}

	.ll-footer__cols > .ll-footer__brand {
		margin-bottom: -8px;
	}

	.ll-footer .ll-logo {
		margin: 0;
	}

	.ll-footer__brand > .wp-block-buttons {
		margin-top: 34px;
	}

	.ll-footer__brand .wp-block-button__link {
		min-height: 52px;
	}

	.ll-footer__title {
		margin-bottom: 22px;
		font-size: var(--wp--preset--font-size--b-2);
		line-height: 1.4;
	}

	.ll-footer__links {
		font-size: var(--wp--preset--font-size--b-3);
		font-weight: 500;
	}

	/* Mobile has no rule above the publisher line (Figma "Footer Bottom"). */
	.ll-footer__divider {
		display: none;
	}

	.ll-footer__legal {
		margin-top: 32px !important;
		color: rgba(255, 255, 255, 0.7);
		font-size: var(--wp--preset--font-size--b-3);
		font-weight: 500;
	}
}

/* Blog: archive, search, article card ---------------------------------------- */

.ll-blog.ll-main {
	--ll-blog-gap: clamp(1.75rem, 1.292rem + 2.037vw, 3.125rem);
	padding-top: clamp(2rem, 1.417rem + 2.593vw, 3.75rem);
	padding-bottom: clamp(3rem, 2.75rem + 1.111vw, 3.75rem);
}

.ll-blog.ll-main > * {
	margin-block: 0;
}

.ll-blog.ll-main > * + * {
	margin-block-start: var(--ll-blog-gap);
}

/* Page title: the H2 token (32 -> 54) with Figma's 64px line at 1440. */
.ll-blog .ll-blog__title {
	max-width: 1000px;
	margin: 0;
	font-size: var(--wp--preset--font-size--h-2);
	line-height: 1.185;
}

.ll-blog .ll-blog__lead {
	max-width: 820px;
	margin: clamp(1.25rem, 1.917rem - 0.741vw, 1.75rem) 0 0;
	line-height: 1.4;
}

/* Featured article ------------------------------------------------------- */

.ll-featured-query .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ll-featured-query .wp-block-post-template > li {
	margin: 0;
}

/* 636 + 604 columns inside 1296 (Figma); the 4px difference to the 1300 grid is kept.
   Figma pads the left side by 20px for a transparent illustration; a real photo would leave
   a green strip there, so the image takes that padding and runs to the card's rounded edge. */
.ll-featured.wp-block-group {
	display: grid;
	grid-template-columns: minmax(0, 656fr) minmax(0, 604fr);
	align-items: center;
	margin: 0 2px;
	padding: 0 36px 0 0;
	overflow: hidden;
	border-radius: 28px;
	background: var(--wp--preset--color--green-light);
}

.ll-featured .ll-featured__media.wp-block-post-featured-image {
	aspect-ratio: 656 / 430;
	margin: 0;
	overflow: hidden;
}

.ll-featured .ll-featured__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ll-featured .ll-featured__body.wp-block-group {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 32px;
	margin: 0;
	padding: 46px 48px;
}

.ll-featured .ll-featured__text.wp-block-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
}

.ll-featured .ll-featured__text > * {
	margin: 0;
}

.ll-featured .ll-tag.wp-block-group {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	margin: 0 0 6px;
	padding: 8px 14px;
	border-radius: 100px;
	background: rgba(247, 145, 30, 0.08);
	color: var(--ll-orange);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.2px;
	text-transform: uppercase;
}

.ll-featured .ll-tag > * {
	margin: 0;
	font: inherit;
	color: inherit;
}

.ll-featured .ll-tag .wp-block-post-terms::before {
	content: "·";
	margin: 0 0.4em;
}

.ll-featured .ll-featured__title {
	font-size: var(--wp--preset--font-size--s-1);
	line-height: 1.2;
}

.ll-featured .ll-featured__title a:hover {
	color: inherit;
}

.ll-featured .ll-featured__excerpt {
	color: var(--wp--preset--color--violet-70);
	line-height: 1.4;
}

.ll-featured .ll-featured__excerpt p {
	margin: 0;
}

/* The primary button, drawn on a core Read More link (Figma "Featured article / Read button"). */
.ll-featured .ll-featured__cta.wp-block-read-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	gap: 10px;
	min-height: 58px;
	margin: 0;
	padding: 17px 20px;
	border-radius: var(--ll-radius-btn);
	background: var(--ll-green);
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--b-2);
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	box-shadow: var(--wp--preset--shadow--button);
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.ll-featured .ll-featured__cta.wp-block-read-more:hover {
	background: #8cc63e;
	box-shadow: var(--wp--preset--shadow--button-hover);
}

.ll-featured .ll-featured__cta.wp-block-read-more::after {
	content: "";
	flex: none;
	width: 24px;
	height: 24px;
	background: currentColor;
	-webkit-mask: url(../svg/arrow-right.svg) center / contain no-repeat;
	mask: url(../svg/arrow-right.svg) center / contain no-repeat;
}

/* Search ------------------------------------------------------------------- */

.ll-blog__search.wp-block-group {
	display: block;
}

.ll-blog .ll-search.wp-block-search {
	max-width: 536px;
	margin: 0;
}

.ll-search .wp-block-search__input {
	box-sizing: border-box;
	width: 100%;
	height: 52px;
	padding: 0 16px 0 49px;
	border: 1px solid rgba(42, 25, 79, 0.07);
	border-radius: 14px;
	background: var(--wp--preset--color--white) url(../svg/search.svg) no-repeat 17px center / 20px 20px;
	color: var(--ll-violet);
	font: 400 var(--wp--preset--font-size--b-2) / 23px var(--wp--preset--font-family--manrope);
	transition: border-color 0.2s ease;
}

.ll-search .wp-block-search__input::placeholder {
	color: #7a7091;
	opacity: 1;
}

.ll-search .wp-block-search__input:hover {
	border-color: rgba(42, 25, 79, 0.1);
}

.ll-search .wp-block-search__input:focus,
.ll-search .wp-block-search__input:focus-visible {
	/* One border only: the global orange focus ring would draw a second one around it. */
	border-color: rgba(42, 25, 79, 0.55);
	outline: none;
}

.ll-blog .ll-blog__rule.wp-block-separator {
	max-width: none;
	margin: 30px 0 0;
	border: 0;
	border-top: 1px solid rgba(42, 25, 79, 0.07);
	background: none;
	opacity: 1;
}

/* Grid and card ------------------------------------------------------------ */

.ll-blog .ll-blog__list {
	margin-block-start: 30px;
}

.ll-grid.wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ll-grid.wp-block-post-template > li {
	display: flex;
	margin: 0;
}

.ll-card.wp-block-group {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	border: 1px solid rgba(42, 25, 79, 0.07);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--white);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ll-card .ll-card__media.wp-block-post-featured-image {
	aspect-ratio: 418 / 250;
	margin: 0;
	overflow: hidden;
	background: #fbf7ef;
}

.ll-card .ll-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ll-card .ll-card__body.wp-block-group {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 22px;
	margin: 0;
	padding: 20px 24px 24px;
}

.ll-card .ll-card__text.wp-block-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	margin: 0;
}

.ll-card .ll-card__text > * {
	margin: 0;
}

.ll-card .ll-meta.wp-block-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	color: var(--ll-orange);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.2px;
	text-transform: uppercase;
}

.ll-card .ll-meta > * {
	margin: 0;
	font: inherit;
	color: inherit;
}

.ll-card .ll-meta .wp-block-post-terms + .wp-block-post-date::before {
	content: "·";
	margin: 0 0.4em;
}

.ll-card .ll-card__title {
	font-size: 24px;
	line-height: 1.4;
}

.ll-card .ll-card__title a:hover {
	color: inherit;
}

.ll-card .ll-card__excerpt {
	color: var(--wp--preset--color--violet-70);
	line-height: 1.4;
}

.ll-card .ll-card__excerpt p {
	margin: 0;
}

/* "Читати статтю →" (Figma "Article CTA Button"); its link is stretched over the whole card. */
.ll-card .ll-card__cta.wp-block-read-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	gap: 8px;
	min-width: 176px;
	min-height: 44px;
	margin-top: auto;
	padding: 0 20px;
	border-radius: 12px;
	background: var(--wp--preset--color--green-light);
	color: var(--ll-green);
	font-size: var(--wp--preset--font-size--b-2);
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ll-card .ll-card__cta.wp-block-read-more::before {
	content: "";
	position: absolute;
	inset: 0;
}

.ll-card .ll-card__cta.wp-block-read-more::after {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url(../svg/arrow-right.svg) center / contain no-repeat;
	mask: url(../svg/arrow-right.svg) center / contain no-repeat;
}

.ll-card .ll-card__cta.wp-block-read-more:focus-visible {
	outline: none;
}

.ll-card:has(.ll-card__cta:focus-visible) {
	outline: 2px solid var(--ll-orange);
	outline-offset: 2px;
}

@media (hover: hover) {
	.ll-card:hover {
		border-color: rgba(42, 25, 79, 0.1);
		box-shadow: 0 4px 34px rgba(0, 0, 0, 0.07);
	}

	.ll-card:hover .ll-card__cta.wp-block-read-more {
		background: #58c532;
		color: var(--wp--preset--color--white);
		box-shadow: 0 8px 18px -6px rgba(64, 166, 31, 0.25);
	}
}

/* Pagination (Figma: 54px arrows, 44px page circles, 40px between) ------------ */

.ll-blog .ll-pg.wp-block-query-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 40px;
	margin: 50px 0 0;
}

.ll-pg .wp-block-query-pagination-numbers {
	display: flex;
	gap: 20px;
	margin: 0;
}

.ll-pg .page-numbers {
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(42, 25, 79, 0.2);
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	color: var(--ll-violet);
	font-size: var(--wp--preset--font-size--b-2);
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.ll-pg .page-numbers.current {
	border-color: var(--ll-violet);
	background: var(--ll-violet);
	color: var(--wp--preset--color--white);
}

.ll-pg .page-numbers.dots {
	border-color: transparent;
	background: none;
}

.ll-pg a.page-numbers:hover {
	border-color: var(--ll-green);
	color: var(--ll-green);
}

.ll-blog .ll-pg .ll-pg__arrow {
	display: grid;
	flex: none;
	place-items: center;
	box-sizing: border-box;
	width: 54px;
	height: 54px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--ll-violet);
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	color: var(--ll-violet);
	font-size: 0;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ll-pg .ll-pg__arrow > * {
	display: none;
}

.ll-pg .ll-pg__arrow::after {
	content: "";
	width: 24px;
	height: 24px;
	background: currentColor;
	-webkit-mask: url(../svg/arrow-right.svg) center / contain no-repeat;
	mask: url(../svg/arrow-right.svg) center / contain no-repeat;
}

.ll-pg .wp-block-query-pagination-previous::after {
	transform: scaleX(-1);
}

.ll-pg .ll-pg__arrow.is-disabled {
	opacity: 0.35;
}

.ll-pg a.ll-pg__arrow:hover {
	border-color: var(--ll-green);
	background: var(--ll-green);
	color: var(--wp--preset--color--white);
}

/* Empty blog / empty search ------------------------------------------------- */

.ll-empty.wp-block-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: clamp(2.5rem, 2rem + 2.2vw, 4rem) 24px;
	border-radius: 28px;
	background: var(--wp--preset--color--green-light);
	text-align: center;
}

.ll-empty > * {
	margin: 0;
}

.ll-empty .ll-empty__text {
	max-width: 560px;
}

.ll-empty .wp-block-buttons {
	margin-top: 8px;
}

@media (max-width: 1099px) {
	.ll-grid.wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 899px) {
	.ll-featured.wp-block-group {
		grid-template-columns: minmax(0, 1fr);
		padding: 0;
	}

	.ll-featured .ll-featured__body.wp-block-group {
		padding: 28px 24px 32px;
	}
}

/* Mobile frame (Figma 360): lighter type, tighter cards, no hairline under the search. */
@media (max-width: 781px) {
	.ll-blog.ll-main {
		--ll-blog-gap: 28px;
	}

	.ll-blog .ll-blog__lead {
		line-height: 23px;
	}

	.ll-blog .ll-blog__title {
		line-height: 1.2;
	}

	.ll-blog .ll-blog__list {
		margin-block-start: 28px;
	}

	.ll-featured.wp-block-group {
		margin: 0;
		border-radius: 20px;
		background: #f0faeb;
	}

	.ll-featured .ll-featured__media.wp-block-post-featured-image {
		aspect-ratio: 320 / 220;
	}

	.ll-featured .ll-featured__body.wp-block-group {
		gap: 16px;
		padding: 20px;
	}

	.ll-featured .ll-featured__text.wp-block-group {
		gap: 16px;
	}

	.ll-featured .ll-tag.wp-block-group {
		margin: 0;
		padding: 0;
		border-radius: 0;
		background: none;
		font-size: 11px;
		line-height: 16px;
	}

	.ll-featured .ll-featured__title {
		font-size: 24px;
		line-height: 35px;
	}

	.ll-featured .ll-featured__excerpt {
		line-height: 23px;
	}

	.ll-featured .ll-featured__cta.wp-block-read-more {
		align-self: stretch;
		width: auto;
		min-height: 52px;
		padding: 14px 24px;
	}

	.ll-search .wp-block-search__input {
		font-size: var(--wp--preset--font-size--b-3);
		font-weight: 500;
		line-height: 1.4;
	}

	.ll-blog .ll-blog__rule.wp-block-separator {
		display: none;
	}

	.ll-card .ll-card__media.wp-block-post-featured-image {
		aspect-ratio: 318 / 180;
	}

	.ll-card .ll-card__body.wp-block-group {
		gap: 12px;
		padding: 20px;
	}

	.ll-card .ll-meta.wp-block-group {
		font-size: 11px;
		line-height: 16px;
	}

	.ll-card .ll-card__title {
		font-size: 22px;
		line-height: 30px;
	}

	.ll-card .ll-card__excerpt {
		font-size: var(--wp--preset--font-size--b-3);
		line-height: 21px;
	}

	.ll-card .ll-card__cta.wp-block-read-more {
		min-width: 166px;
		padding: 0 8px;
	}

	.ll-blog .ll-pg.wp-block-query-pagination {
		margin-top: 28px;
	}

	.ll-pg .page-numbers {
		width: 36px;
		height: 36px;
		font-size: var(--wp--preset--font-size--b-3);
	}

	.ll-blog .ll-pg .ll-pg__arrow {
		width: 44px;
		height: 44px;
	}
}

@media (max-width: 599px) {
	.ll-grid.wp-block-post-template {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

}

/* With four or more page numbers the Figma gaps (40/20) no longer fit one row of a 320px column: tighten them. */
@media (max-width: 599px) {
	.ll-blog .ll-pg.wp-block-query-pagination:has(.wp-block-query-pagination-numbers > :nth-child(4)) {
		flex-wrap: nowrap;
		gap: 8px;
	}

	.ll-pg .wp-block-query-pagination-numbers:has(> :nth-child(4)) {
		gap: 6px;
	}
}

/* Figma has 40px between the arrows and the numbers; only phones narrower than 360 need less. */
@media (max-width: 359px) {
	.ll-blog .ll-pg.wp-block-query-pagination {
		gap: 16px;
	}

	.ll-pg .wp-block-query-pagination-numbers {
		gap: 12px;
	}
}

/* Single article --------------------------------------------------------------- */

.ll-article.ll-main {
	--ll-article-gap: clamp(1.75rem, 1.167rem + 2.593vw, 3.5rem);
	padding-top: clamp(1.75rem, 1rem + 3.333vw, 4rem);
	padding-bottom: clamp(2.5rem, 1.667rem + 3.704vw, 5rem);
}

.ll-article.ll-main > * {
	margin-block: 0;
}

.ll-article.ll-main > * + * {
	margin-block-start: var(--ll-article-gap);
}

.ll-article .ll-article__head.wp-block-group {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 1050px;
	margin-inline: auto;
}

.ll-article__head > * {
	margin: 0;
}

.ll-article__head > * + * {
	margin-block-start: 24px;
}

/* Breadcrumbs: "БЛОГ / КАТЕГОРІЯ" (Figma "Breadcrumb / Link"). */
.ll-breadcrumbs ol {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ll-breadcrumbs li {
	display: flex;
	margin: 0;
	padding: 4px 0;
	color: var(--wp--preset--color--logo-green);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.2px;
	text-transform: uppercase;
}

.ll-breadcrumbs li:first-child {
	flex: none;
}

.ll-breadcrumbs li:last-child {
	min-width: 0;
}

.ll-breadcrumbs li:last-child span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ll-breadcrumbs li + li::before {
	content: "/";
	margin-right: 12px;
	opacity: 0.45;
}

.ll-breadcrumbs a {
	text-decoration: none;
}

.ll-breadcrumbs a:hover {
	text-decoration: underline;
}

.ll-article .ll-article__head > .ll-breadcrumbs + * {
	margin-block-start: 24px;
}

.ll-article .ll-article__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--h-2);
	line-height: 1.185;
}

.ll-article .ll-article__lead {
	font-size: clamp(1rem, 0.917rem + 0.37vw, 1.25rem);
	line-height: 1.5;
	color: var(--wp--preset--color--violet-70);
}

.ll-article .ll-article__lead p {
	margin: 0;
}

.ll-article .ll-article__meta.wp-block-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.ll-article .ll-pill {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 8px 18px;
	border-radius: 100px;
	background: rgba(83, 195, 38, 0.08);
	color: var(--wp--preset--color--logo-green);
	font-size: var(--wp--preset--font-size--b-3);
	font-weight: 600;
	line-height: 1.4;
}

.ll-article .ll-article__info.wp-block-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	color: var(--wp--preset--color--violet-70);
	font-size: var(--wp--preset--font-size--b-3);
	font-weight: 500;
	line-height: 1.4;
}

.ll-article .ll-article__info > * {
	margin: 0;
	font: inherit;
	color: inherit;
}

.ll-article .ll-article__time::before {
	content: "·";
	margin: 0 0.55em;
}

.ll-article .ll-article__cover.wp-block-post-featured-image {
	width: 100%;
	max-width: 1050px;
	margin-inline: auto;
	overflow: hidden;
	border-radius: 24px;
}

/* The whole picture is shown, never cropped; very tall pictures are capped and centred. */
.ll-article .ll-article__cover img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 720px;
	margin-inline: auto;
	object-fit: contain;
}

/* Article body: Figma "Article Body", 856px column ------------------------------- */

.ll-article__content.wp-block-post-content {
	width: 100%;
	color: var(--wp--preset--color--violet-80);
	font-size: var(--wp--preset--font-size--b-1);
	line-height: 30px;
}

.ll-article__content > * {
	margin-block: 0;
}

.ll-article__content > * + * {
	margin-block-start: 24px;
}

.ll-article__content > :is(h2, h3, h4, h5, h6) + *,
.ll-article__content > p + p {
	margin-block-start: 12px;
}

.ll-article__content :is(p, ul, ol) {
	font-size: var(--wp--preset--font-size--b-1);
	line-height: 30px;
}

.ll-article__content :is(h2, h3, h4) {
	color: var(--ll-violet);
}

.ll-article__content h2 {
	font-size: var(--wp--preset--font-size--s-1);
	line-height: 1.2;
}

.ll-article__content h3 {
	font-size: var(--wp--preset--font-size--s-2);
	line-height: 1.4;
}

.ll-article__content h4 {
	font-size: var(--wp--preset--font-size--s-3);
	font-weight: 600;
	line-height: 1.4;
}

.ll-article__content :is(ul, ol) {
	padding-left: 1.4em;
}

.ll-article__content li {
	margin: 0;
	padding: 0;
}

.ll-article__content a:not(.wp-element-button) {
	text-decoration: underline;
	text-decoration-color: rgba(83, 195, 38, 0.6);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.ll-article__content a:not(.wp-element-button):hover {
	color: var(--ll-green);
	text-decoration-color: currentColor;
}

/* Quote: Figma "Quote" (light green block, author in green). */
.ll-article__content .wp-block-quote {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 24px 32px;
	border: 0;
	border-radius: 20px;
	background: var(--wp--preset--color--green-light);
}

.ll-article__content .wp-block-quote > * {
	margin: 0;
}

.ll-article__content .wp-block-quote p {
	color: var(--ll-violet);
	font-size: clamp(1rem, 0.917rem + 0.37vw, 1.25rem);
	font-weight: 600;
	line-height: 1.4;
}

.ll-article__content .wp-block-quote cite {
	color: var(--wp--preset--color--logo-green);
	font-size: var(--wp--preset--font-size--b-3);
	font-style: normal;
	font-weight: 600;
	line-height: 1.4;
}

/* Images, caption, gallery ------------------------------------------------------- */

.ll-article__content .wp-block-image img,
.ll-article__content .wp-block-gallery .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 24px;
}



.ll-article__content .wp-block-gallery {
	gap: 16px;
}

.ll-article__content .wp-block-gallery .wp-block-image img {
	border-radius: 16px;
}

.ll-article__content figcaption {
	margin: 24px 0 0;
	color: var(--wp--preset--color--violet-70);
	font-size: var(--wp--preset--font-size--b-3);
	font-weight: 500;
	line-height: 1.4;
	text-align: left;
}

/* Video and embeds: poster + dark veil + round play button (Figma "Video Embed"). */
.ll-article__content .wp-block-video {
	position: relative;
	overflow: hidden;
	border-radius: 22px;
	background: var(--ll-violet);
}

.ll-article__content .wp-block-video video {
	display: block;
	width: 100%;
	/* WordPress sets the file's own ratio inline; the design shows every video at 856 x 480. */
	aspect-ratio: 856 / 480 !important;
	object-fit: cover;
}

.ll-article__content .wp-block-video figcaption {
	margin: 0;
	padding: 12px 16px;
	background: var(--wp--preset--color--white);
}

.ll-video__play {
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 856 / 480;
	padding: 0;
	border: 0;
	background: rgba(42, 25, 79, 0.34);
	cursor: pointer;
}

.ll-video__play::before {
	content: "";
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	transition: transform 0.2s ease;
}

.ll-video__play::after {
	content: "";
	position: absolute;
	width: 24px;
	height: 24px;
	margin-left: 4px;
	background: var(--ll-violet);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.ll-video__play:hover::before {
	transform: scale(1.06);
}

.wp-block-video.is-playing .ll-video__play {
	display: none;
}

.ll-article__content .wp-block-embed .wp-block-embed__wrapper {
	overflow: hidden;
	border-radius: 22px;
}

/* Table ---------------------------------------------------------------------- */

:is(.ll-article__content, .ll-legal__content) .wp-block-table {
	overflow-x: auto;
	border: 1px solid var(--ll-line);
	border-radius: 16px;
}

:is(.ll-article__content, .ll-legal__content) .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--b-2);
	line-height: 1.4;
}

:is(.ll-article__content, .ll-legal__content) .wp-block-table :is(th, td) {
	padding: 14px 20px;
	border: 0;
	border-top: 1px solid var(--ll-line);
	text-align: left;
}

:is(.ll-article__content, .ll-legal__content) .wp-block-table thead th {
	border-top: 0;
	background: var(--wp--preset--color--surface-gray);
	color: var(--ll-violet);
	font-weight: 700;
}

:is(.ll-article__content, .ll-legal__content) .wp-block-table figcaption {
	margin: 0;
	padding: 12px 20px;
}

/* Inline CTA: light orange block with the Telegram button (Figma "Inline CTA") ------ */

.ll-cta.wp-block-group {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 32px;
	padding: 32px;
	border-radius: 24px;
	background: rgba(247, 145, 30, 0.08);
}

.ll-cta > * {
	margin: 0;
}

.ll-cta .ll-cta__copy.wp-block-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ll-cta .ll-cta__copy > * {
	margin: 0;
}

.ll-cta .ll-cta__title {
	color: var(--ll-violet);
	font-size: var(--wp--preset--font-size--s-2);
	line-height: 1.4;
}

.ll-cta .ll-cta__text {
	font-size: var(--wp--preset--font-size--b-2);
	line-height: 1.4;
}

/* Related articles ------------------------------------------------------------ */

.ll-related.wp-block-group > * {
	margin: 0;
}

.ll-related .ll-related__title {
	margin: 0 0 clamp(1.75rem, 1.667rem + 0.37vw, 2rem);
	line-height: 1.2;
}

/* Legal pages ------------------------------------------------------------------ */

.ll-legal.ll-main {
	--ll-legal-gap: clamp(1.75rem, 1.167rem + 2.593vw, 3.5rem);
	padding-top: clamp(2rem, 1.333rem + 2.963vw, 4rem);
	padding-bottom: clamp(3rem, 2rem + 4.444vw, 6rem);
}

.ll-legal.ll-main > * {
	margin-block: 0;
}

.ll-legal.ll-main > * + * {
	margin-block-start: var(--ll-legal-gap);
}

.ll-legal .ll-legal__head.wp-block-group {
	display: flex;
	flex-direction: column;
	gap: 28px;
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
}

.ll-legal__head > * {
	margin: 0;
}

.ll-legal .ll-legal__eyebrow {
	color: var(--wp--preset--color--logo-green);
	font-size: 11px;
	font-weight: 800;
	line-height: 16px;
	letter-spacing: 0.2px;
	text-transform: uppercase;
}

.ll-legal .ll-legal__title {
	font-size: clamp(1.875rem, 1.375rem + 2.222vw, 3.375rem);
	line-height: 44px;
}

.ll-legal .ll-legal__updated {
	color: var(--wp--preset--color--violet-70);
	font-size: var(--wp--preset--font-size--b-3);
	line-height: 20px;
}

.ll-legal .ll-legal__layout.wp-block-group {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	align-items: start;
}

.ll-legal__layout > * {
	margin: 0;
}

/* Table of contents (built on the server from the page's H2 headings). */
.ll-toc {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 20px;
	border-radius: 16px;
	background: var(--wp--preset--color--surface-gray);
}

.ll-toc__title {
	margin: 0;
	color: var(--ll-violet);
	font-size: var(--wp--preset--font-size--b-2);
	font-weight: 600;
	line-height: 23px;
}

.ll-toc__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ll-toc__list li {
	display: flex;
	margin: 0;
}

.ll-toc__list a {
	color: var(--wp--preset--color--violet-70);
	font-size: var(--wp--preset--font-size--b-2);
	font-weight: 500;
	line-height: 23px;
	text-decoration: none;
	transition: color 0.2s ease;
}

.ll-toc__list a:hover,
.ll-toc__list a.is-active {
	color: var(--ll-violet);
}

.ll-toc__list a.is-active {
	font-weight: 600;
}

/* Legal text: Figma "Legal Text" (18/1.4, sections 40px apart). */
.ll-legal__content.wp-block-post-content {
	color: var(--wp--preset--color--violet-80);
	font-size: var(--wp--preset--font-size--b-1);
	line-height: 1.4;
}

.ll-legal__content > * {
	margin-block: 0;
}

.ll-legal__content > * + * {
	margin-block-start: 16px;
}

.ll-legal__content > h2:not(:first-child) {
	margin-block-start: 40px;
}

.ll-legal__content :is(p, ul, ol) {
	font-size: var(--wp--preset--font-size--b-1);
	line-height: 1.4;
}

.ll-legal__content :is(ul, ol) {
	padding-left: 1.4em;
}

.ll-legal__content li {
	margin: 0;
}

.ll-legal__content h2 {
	scroll-margin-top: calc(var(--ll-header-h) + 24px + var(--wp-admin--admin-bar--height, 0px));
	font-size: 24px;
	line-height: 35px;
}

.ll-legal__content h3 {
	font-size: 20px;
	font-weight: 600;
	line-height: 29px;
}

.ll-legal__content a {
	text-decoration: underline;
	text-decoration-color: rgba(83, 195, 38, 0.6);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

/* 404 -------------------------------------------------------------------------- */

.ll-notfound-main.ll-main {
	padding: 0;
}

.ll-notfound.wp-block-group {
	padding-block: clamp(2rem, 1.2rem + 3.556vw, 6rem);
}

.ll-notfound__cols.wp-block-columns {
	gap: clamp(1.5rem, 1rem + 2.222vw, 4rem);
	margin: 0;
}

.ll-notfound__content > * {
	margin: 0;
}

.ll-notfound__content > * + * {
	margin-block-start: 20px;
}

.ll-notfound .ll-notfound__eyebrow {
	color: var(--wp--preset--color--logo-green);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.2px;
	text-transform: uppercase;
}

.ll-notfound .ll-notfound__title {
	line-height: 1.185;
}

.ll-notfound .ll-notfound__text {
	max-width: 520px;
	line-height: 1.5;
}

.ll-notfound .ll-notfound__actions {
	margin-block-start: 28px;
}

.ll-notfound .ll-notfound__key {
	display: grid;
	place-items: center;
	max-width: 440px;
	margin: 0 auto;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--wp--preset--color--green-light);
}

.ll-notfound .ll-notfound__key img {
	width: 78%;
	height: auto;
	rotate: 8deg;
}

@media (prefers-reduced-motion: no-preference) {
	.ll-notfound .ll-notfound__key img {
		animation: ll-key-float 6s ease-in-out infinite;
	}
}

@keyframes ll-key-float {
	50% {
		translate: 0 -10px;
	}
}

/* Wide screens: contents next to the text (Figma 1440: 280 + 64 + 856). */
@media (min-width: 1000px) {
	.ll-legal .ll-legal__layout.wp-block-group {
		grid-template-columns: 280px minmax(0, 856px);
		gap: 64px;
	}

	.ll-legal .ll-legal__layout.wp-block-group:not(:has(.ll-toc)) {
		grid-template-columns: minmax(0, 856px);
		justify-content: center;
	}

	.ll-toc {
		position: sticky;
		top: calc(var(--ll-header-h) + 24px + var(--wp-admin--admin-bar--height, 0px));
		gap: 20px;
		padding: 24px;
		border-radius: 20px;
	}

	.ll-toc__title {
		font-size: var(--wp--preset--font-size--s-3);
		line-height: 1.4;
	}

	.ll-toc__list {
		gap: 20px;
	}

	.ll-toc__list a {
		font-size: var(--wp--preset--font-size--b-3);
		line-height: 1.4;
	}
}

@media (min-width: 782px) {
	.ll-legal .ll-legal__head.wp-block-group {
		gap: 20px;
	}

	.ll-legal .ll-legal__eyebrow {
		font-size: var(--wp--preset--font-size--caption);
		line-height: 1.4;
	}

	.ll-legal .ll-legal__title {
		line-height: 1.185;
	}

	.ll-legal .ll-legal__updated {
		font-size: var(--wp--preset--font-size--b-2);
		line-height: 1.4;
	}

	.ll-legal__content > h2:not(:first-child) {
		margin-block-start: 40px;
	}

	.ll-legal__content h2 {
		line-height: 1.4;
	}

	.ll-legal__content h3 {
		line-height: 1.4;
	}
}

/* Mobile frame (Figma 360). */
@media (max-width: 781px) {
	.ll-article__head > * + * {
		margin-block-start: 12px;
	}

	.ll-article .ll-article__head > .ll-breadcrumbs + * {
		margin-block-start: 20px;
	}

	.ll-article .ll-article__head > .ll-article__lead + .ll-article__meta {
		margin-block-start: 28px;
	}

	.ll-article .ll-article__lead {
		line-height: 23px;
	}

	.ll-article .ll-article__title {
		line-height: 1.2;
	}

	.ll-article .ll-article__meta.wp-block-group {
		gap: 8px;
	}

	.ll-article .ll-article__cover.wp-block-post-featured-image {
		border-radius: 16px;
	}

	.ll-article .ll-article__cover img {
		max-height: 480px;
	}

	.ll-article__content.wp-block-post-content,
	.ll-article__content :is(p, ul, ol) {
		line-height: 23px;
	}

	.ll-article__content > * + * {
		margin-block-start: 28px;
	}

	.ll-article__content > :is(h2, h3, h4, h5, h6) + * {
		margin-block-start: 16px;
	}

	.ll-article__content h2 {
		line-height: 35px;
	}

	.ll-article__content h3 {
		line-height: 29px;
	}

	.ll-article__content .wp-block-quote {
		gap: 16px;
		padding: 20px;
		border-radius: 16px;
	}

	.ll-article__content .wp-block-quote p {
		line-height: 23px;
	}

	.ll-article__content .wp-block-quote cite {
		font-size: var(--wp--preset--font-size--b-2);
		line-height: 23px;
	}

	.ll-article__content .wp-block-image img {
		border-radius: 16px;
	}

	.ll-article__content > p + p {
		margin-block-start: 16px;
	}

	.ll-article__content figcaption {
		margin-top: 28px;
		font-size: var(--wp--preset--font-size--caption);
		line-height: 17px;
	}

	.ll-cta.wp-block-group {
		gap: 16px;
		padding: 20px;
		border-radius: 16px;
	}

	/* Tables keep readable columns and scroll sideways inside their frame. */
	:is(.ll-article__content, .ll-legal__content) .wp-block-table table {
		min-width: 520px;
	}

	.ll-cta .ll-cta__copy.wp-block-group {
		gap: 16px;
	}

	.ll-cta .ll-cta__title {
		font-size: var(--wp--preset--font-size--b-2);
		line-height: 23px;
	}

	.ll-cta .ll-cta__text {
		line-height: 23px;
	}

	.ll-related .ll-related__title {
		line-height: 35px;
	}

	.ll-legal .ll-legal__layout.wp-block-group {
		gap: 28px;
	}

	.ll-legal__content > h2:not(:first-child) {
		margin-block-start: 28px;
	}

	.ll-notfound .ll-notfound__key {
		max-width: 280px;
	}
}

/* Live search results under the blog search field. */
.ll-blog form.ll-search {
	position: relative;
}

.ll-live {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	left: 0;
	z-index: 20;
	margin: 0;
	padding: 8px;
	overflow: hidden;
	border: 1px solid rgba(42, 25, 79, 0.1);
	border-radius: 14px;
	background: var(--wp--preset--color--white);
	box-shadow: 0 8px 34px rgba(42, 25, 79, 0.12);
	list-style: none;
}

.ll-live[hidden] {
	display: none;
}

.ll-live li {
	margin: 0;
}

.ll-live a {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	border-radius: 10px;
	text-decoration: none;
}

.ll-live a:hover,
.ll-live a:focus-visible {
	background: var(--wp--preset--color--surface-gray);
}

.ll-live strong {
	font-size: var(--wp--preset--font-size--b-2);
	font-weight: 700;
	line-height: 1.3;
}

.ll-live span {
	color: var(--wp--preset--color--violet-70);
	font-size: var(--wp--preset--font-size--b-3);
	line-height: 1.4;
}

.ll-live__empty {
	padding: 10px 12px;
	color: var(--wp--preset--color--violet-70);
	font-size: var(--wp--preset--font-size--b-3);
}

.ll-search .wp-block-search__input::-webkit-search-cancel-button {
	display: none;
	-webkit-appearance: none;
}

/* Invisible tap areas: pagination circles and contents links are 36 px / 23 px in the design; the touch area is ~44 px. */
.ll-pg a.page-numbers,
.ll-toc__list a {
	position: relative;
}

.ll-pg a.page-numbers::after {
	content: "";
	position: absolute;
	inset: -4px;
}

.ll-toc__list a::after {
	content: "";
	position: absolute;
	inset: -10px 0;
}

/* Page switching in the blog: the grid dims while the next page loads and keeps its place under the header. */
.ll-blog__list {
	scroll-margin-top: calc(var(--ll-header-h) + 24px + var(--wp-admin--admin-bar--height, 0px));
	transition: opacity 0.2s ease;
}

.ll-blog__list.is-loading {
	opacity: 0.45;
	pointer-events: none;
}

/* An opened review grows alone: the other cards of its row keep their own height. */
.ll-marquee__row:has(.ll-review.is-open) .ll-marquee__track {
	align-items: flex-start;
}

/* Contents block inside an article (client request): the same box as on legal pages, in the 856px text column. */
.ll-article .ll-toc.ll-toc--deep {
	box-sizing: border-box;
	position: static;
	width: 100%;
	max-width: 856px;
	margin-inline: auto;
}

.ll-article .ll-toc--deep + .ll-article__content {
	margin-block-start: 32px;
}

.ll-toc__list .ll-toc__sub {
	padding-left: 20px;
}

.ll-toc__list .ll-toc__sub a {
	font-weight: 400;
}

.ll-article__content :is(h2, h3) {
	scroll-margin-top: calc(var(--ll-header-h) + 24px + var(--wp-admin--admin-bar--height, 0px));
}
