/**
 * Cultart NEXT — стилове по Figma дизайна (рамка 1920px, мобилна 375px).
 * Размерите са плавни: clamp(мобилно, стойност/1920 в vw, desktop).
 * Същият файл се зарежда и в редактора, за да изглежда като сайта.
 */

:root {
	--cn-ink: #171719;
	--cn-lav: #9393ff;
	--cn-lav-nav: #9396f8;
	--cn-paper: #f4f4f3;
	--cn-cream: #f4f0e8;
	--cn-muted: #66645f;
	--cn-rule: #cbc5b9;
	--cn-pink: #ff0474;
	--cn-orange: #ff9b00;
	--cn-star: #ff8aa0;

	--cn-pad: clamp(16px, 3.75vw, 72px);
	--cn-sec: clamp(64px, 5.625vw, 108px);

	--cn-fs-88: clamp(32px, 4.5833vw, 88px);
	--cn-fs-72: clamp(34px, 3.75vw, 72px);
	--cn-fs-54: clamp(44px, 2.8125vw, 54px);
	--cn-fs-52: clamp(30px, 2.7083vw, 52px);
	--cn-fs-48: clamp(30px, 2.5vw, 48px);
	--cn-fs-40: clamp(24px, 2.0833vw, 40px);
	--cn-fs-26: clamp(18px, 1.3542vw, 26px);
	--cn-fs-24: clamp(20px, 1.25vw, 24px);
	--cn-fs-22: clamp(16px, 1.1458vw, 22px);
	--cn-fs-20: clamp(17px, 1.0417vw, 20px);
	--cn-fs-18: clamp(16px, 0.9375vw, 18px);
}

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

body {
	font-family: var(--wp--preset--font-family--unica, "Helvetica Neue", Helvetica, Arial, sans-serif);
	font-feature-settings: "ss01" 1, "salt" 1;
	-webkit-font-smoothing: antialiased;
	color: var(--cn-ink);
}

:where(.cn-header, .cn-main, .cn-footer, .editor-styles-wrapper .cn-section) *,
:where(.cn-header, .cn-main, .cn-footer, .editor-styles-wrapper .cn-section) *::before,
:where(.cn-header, .cn-main, .cn-footer, .editor-styles-wrapper .cn-section) *::after,
.cn-section {
	box-sizing: border-box;
}

:where(.cn-header, .cn-main, .cn-footer, .editor-styles-wrapper) :where(h1, h2, h3, h4, h5, h6, p, figure, ul) {
	margin: 0;
}
.cn-section .wp-block-image {
	margin: 0;
}
.cn-section .wp-block-image img {
	display: block;
}

/* ---------- Надпис с точка ---------- */

.cn-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	font-weight: 700;
	line-height: normal;
	text-transform: uppercase;
	color: var(--cn-ink);
}
.cn-eyebrow::before {
	content: "";
	width: 8px;
	height: 8px;
	flex: none;
	border-radius: 50%;
	background: var(--cn-orange);
}
.cn-label {
	font-size: 11px;
	font-weight: 700;
	line-height: normal;
	text-transform: uppercase;
	color: var(--cn-lav-nav);
}
.cn-h-xl {
	font-size: var(--cn-fs-72);
	font-weight: 400;
	line-height: 0.95;
}
.cn-h-lg {
	font-size: var(--cn-fs-52);
	font-weight: 400;
	line-height: 1;
}

/* ---------- Бутони: заоблени само отляво ---------- */

.wp-block-button.cn-btn .wp-block-button__link,
a.cn-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 20px 32px;
	border: 0;
	border-radius: 200px 0 0 200px;
	font-family: inherit;
	font-size: var(--cn-fs-18);
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s, color 0.2s, border-radius 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.wp-block-button.cn-btn--dark .wp-block-button__link,
a.cn-btn--dark {
	background: var(--cn-ink);
	color: #fff;
}
.wp-block-button.cn-btn--dark .wp-block-button__link:hover,
a.cn-btn--dark:hover {
	background: #000;
}
.wp-block-button.cn-btn--light .wp-block-button__link {
	background: #fff;
	color: var(--cn-ink);
}
.wp-block-button.cn-btn--light .wp-block-button__link:hover {
	background: var(--cn-paper);
}
.wp-block-button.cn-btn--outline .wp-block-button__link {
	background: transparent;
	color: var(--cn-ink);
	border: 1.5px solid var(--cn-ink);
	border-radius: 999px 0 0 999px;
}
.wp-block-button.cn-btn--outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.2);
}
.wp-block-button[class*="cn-ico-"] .wp-block-button__link::after {
	content: "";
	width: 32px;
	height: 32px;
	flex: none;
	background: currentColor;
	-webkit-mask: var(--cn-ico) center / contain no-repeat;
	mask: var(--cn-ico) center / contain no-repeat;
}
.wp-block-button.cn-ico-up-right {
	--cn-ico: url(../icons/arrow-up-right.svg);
}
.wp-block-button.cn-ico-down {
	--cn-ico: url(../icons/arrow-down.svg);
}
.wp-block-button.cn-ico-right {
	--cn-ico: url(../icons/arrow-right-dark.svg);
}
.cn-btn .cn-icon {
	width: 24px;
	height: 24px;
	flex: none;
}

/* ---------- Горна част ---------- */

.cn-announce {
	background: var(--cn-ink);
	color: #fff;
	padding: 10px var(--cn-pad);
	text-align: center;
}
.cn-announce p {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
}
.cn-nav {
	background: var(--cn-lav-nav);
	padding: 24px;
}
.cn-nav__inner {
	max-width: 1800px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.cn-nav__logo img {
	display: block;
	width: 150px;
	height: auto;
}
.cn-nav__menu {
	display: flex;
	align-items: center;
	gap: 24px;
}
.cn-nav__link {
	padding: 10px 6px;
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
}
.cn-nav__link:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}
a.cn-btn--nav {
	padding: 14px 24px;
	font-size: 16px;
}

/* ---------- Начало (Hero) ---------- */

.cn-hero {
	position: relative;
	overflow: hidden;
	background: var(--cn-lav);
	color: #fff;
	padding: clamp(40px, 4.1667vw, 80px) clamp(16px, 3.125vw, 60px);
	/* Фонът „next“ следва мишката (десктоп) или скрола (телефон): −1…1, задава ги site.js. */
	--hero-x: 0;
	--hero-y: 0;
}
.cn-hero::after {
	content: "";
	position: absolute;
	left: 1vw;
	top: 47.4%;
	width: 95.3vw;
	aspect-ratio: 1829 / 641;
	background: url(../img/hero-next-2.webp) center / contain no-repeat;
	pointer-events: none;
	transform-origin: 50% 40%;
	transform: perspective(1600px) rotateX(calc(var(--hero-y) * -3deg)) rotateY(calc(var(--hero-x) * 4deg)) translate3d(calc(var(--hero-x) * 18px), calc(var(--hero-y) * 14px), 0) scale(1.04);
	will-change: transform;
}
.cn-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 1800px;
	margin: 0 auto;
	min-height: clamp(360px, 28.125vw, 540px);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 48px;
}
.cn-hero__row {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}
.cn-hero__title {
	flex: 1 1 0;
	min-width: 0;
	font-size: var(--cn-fs-88);
	font-weight: 500;
	line-height: 1.1;
	color: #fff;
}
.cn-hero__intro {
	flex: 1 1 0;
	min-width: 0;
	max-width: 656px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.cn-hero__name {
	font-size: var(--cn-fs-40);
	font-weight: 500;
	line-height: 1.1;
}
.cn-hero__text {
	font-size: var(--cn-fs-22);
	line-height: 1.4;
}
.cn-hero__bottom {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
}
.cn-hero__actions {
	flex: none;
}
/* „Финансирано от Европейския съюз“: част от дизайна, не се редактира. */
.cn-hero__bottom::after {
	content: "";
	flex: none;
	width: clamp(200px, 16.25vw, 312px);
	aspect-ratio: 312 / 72;
	background: url(../img/logos/eu-hero.svg) center / contain no-repeat;
}

/* ---------- Числа ---------- */

.cn-facts-section {
	background: var(--cn-ink);
	color: #fff;
	padding: 40px var(--cn-pad);
}
.cn-facts__list {
	display: flex;
	align-items: center;
	min-height: 144px;
}
.cn-fact {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	padding: 0 30px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.cn-fact:first-child {
	padding-left: 0;
}
.cn-fact:last-child {
	padding-right: 0;
}
.cn-fact + .cn-fact::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 1px;
	height: 116px;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.18);
}
.cn-fact__value {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: clamp(22px, 1.6667vw, 32px);
	line-height: 1;
	color: #fff;
}
.cn-fact__icon {
	width: 32px;
	height: 32px;
	flex: none;
}
.cn-fact__label {
	font-size: 14px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.72);
}

/* ---------- Защо Cultart NEXT ---------- */

.cn-story {
	background: var(--cn-paper);
	padding: clamp(64px, 5.4167vw, 104px) var(--cn-pad);
	display: flex;
	align-items: center;
	gap: clamp(32px, 3.9583vw, 76px);
}
.cn-story__media {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	height: clamp(240px, 28.385vw, 545px);
	overflow: hidden;
}
.cn-story__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.cn-story__media::after {
	content: "";
	position: absolute;
	left: -4.6%;
	top: 12.1%;
	width: 109%;
	height: 75.6%;
	background: url(../img/story-next.svg) center / 100% 100% no-repeat;
	pointer-events: none;
}
.cn-story__copy {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.cn-story__title {
	font-size: var(--cn-fs-48);
	font-weight: 400;
	line-height: 1;
}
.cn-story__text {
	font-size: var(--cn-fs-18);
	line-height: 1.55;
	color: var(--cn-muted);
}
.cn-transitions {
	container-type: inline-size;
}
.cn-transitions__list {
	display: flex;
	flex-direction: column;
}
.cn-transition {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 17px 0;
	border-top: 1px solid var(--cn-rule);
}
.cn-transition__label {
	width: 64px;
	flex: none;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--cn-muted);
}
.cn-transition__arrow {
	flex: none;
	font-size: 24px;
	line-height: 1;
	color: var(--cn-pink);
}
.cn-transition__target {
	flex: 0 1 320px;
	font-size: 19px;
	color: var(--cn-ink);
}
.cn-transition__note {
	flex: 1 1 0;
	min-width: 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--cn-muted);
}
/* Тясна колона (таблет, малък телефон): пояснението минава на свой ред. */
@container (max-width: 600px) {
	.cn-transition {
		flex-wrap: wrap;
		row-gap: 10px;
	}
	.cn-transition__target {
		flex: 1 1 0;
	}
	.cn-transition__note {
		flex-basis: 100%;
	}
}

/* ---------- Въведение с бележка (Направления, Как работи) ---------- */

.cn-intro {
	display: flex;
	align-items: flex-end;
	gap: clamp(32px, 4.1667vw, 80px);
}
.cn-intro__title {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.cn-intro__title--fixed {
	flex: 0 1 760px;
	gap: 20px;
}
.cn-intro__note {
	flex: 1 1 0;
	min-width: min(100%, 260px);
	display: flex;
	flex-direction: column;
	gap: 16px;
	font-size: 16px;
	line-height: 1.1;
}
.cn-intro__note--rule::before {
	content: "";
	width: 64px;
	height: 5px;
	background: var(--cn-lav);
}

/* ---------- Направления ---------- */

.cn-fields-section {
	background: var(--cn-paper);
	padding: var(--cn-sec) var(--cn-pad);
	display: flex;
	flex-direction: column;
	gap: clamp(32px, 2.8125vw, 54px);
}
.cn-fields-section .cn-intro__note {
	color: #000;
}
.cn-fields__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	counter-reset: cn-field;
}
.cn-field {
	--c: var(--cn-pink);
	counter-increment: cn-field;
	display: flex;
	align-items: center;
	gap: 8px;
	height: clamp(72px, 7.0833vw, 136px);
	padding: 20px clamp(24px, 3.125vw, 60px);
	border: 3px solid #fff;
	border-radius: 300px;
	color: var(--cn-ink);
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.cn-field:nth-child(10n + 1) { --c: #ff0474; }
.cn-field:nth-child(10n + 2) { --c: #bab454; }
.cn-field:nth-child(10n + 3) { --c: #f893ff; }
.cn-field:nth-child(10n + 4) { --c: #ff9b00; }
.cn-field:nth-child(10n + 5) { --c: #00a6ff; }
.cn-field:nth-child(10n + 6) { --c: #ff8aa0; }
.cn-field:nth-child(10n + 7) { --c: #9393ff; }
.cn-field:nth-child(10n + 8) { --c: #00bcba; }
.cn-field:nth-child(10n + 9) { --c: #5550ff; }
.cn-field:nth-child(10n + 10) { --c: #ff56ff; }
.cn-field__num {
	width: 40px;
	flex: none;
	font-size: 14px;
	font-weight: 700;
	color: var(--c);
}
.cn-field__num::before {
	content: counter(cn-field, decimal-leading-zero);
}
.cn-field__title {
	flex: 1 1 0;
	min-width: 0;
	font-size: var(--cn-fs-26);
	line-height: 1.1;
}
.cn-field__chev,
.cn-field__chev svg {
	width: 32px;
	height: 32px;
	flex: none;
	color: var(--c);
}
.cn-field:hover {
	background: var(--c);
	border-color: var(--c);
	color: #fff;
}
.cn-field:hover .cn-field__num,
.cn-field:hover .cn-field__chev,
.cn-field:hover .cn-field__chev svg {
	color: #fff;
}
.cn-fields__float {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 50;
	width: clamp(240px, 20.52vw, 394px);
	aspect-ratio: 394 / 262;
	object-fit: cover;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.15s;
}
.cn-fields__float.is-visible {
	opacity: 1;
}
.cn-fields-section__note {
	padding-top: 8px;
	font-size: var(--cn-fs-24);
	font-weight: 700;
	line-height: normal;
}

/* ---------- Как работи (стъпки) ---------- */

.cn-journey {
	background: var(--cn-ink);
	color: #fff;
	padding: var(--cn-sec) var(--cn-pad);
	display: flex;
	flex-direction: column;
	gap: clamp(32px, 2.6042vw, 50px);
}
.cn-journey .cn-eyebrow {
	color: var(--cn-cream);
}
.cn-journey .cn-h-lg {
	color: #fff;
}
.cn-journey .cn-intro__note {
	gap: 10px;
	color: var(--cn-cream);
}
.cn-steps__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	counter-reset: cn-step;
}
.cn-step {
	counter-increment: cn-step;
	position: relative;
	height: 300px;
	color: #fff;
}
.cn-step:not(:has(> .cn-step__card)),
.cn-step__face {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 22px;
	background: var(--cn-lav);
	border: 1px solid rgba(255, 255, 255, 0.21);
	border-radius: 48px 48px 0 0;
	overflow: hidden;
}
.cn-step--flip:not(:has(> .cn-step__card)),
.cn-step__face {
	background: var(--cn-ink);
}
.cn-step__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.cn-step__num::before {
	content: counter(cn-step, decimal-leading-zero);
	font-size: var(--cn-fs-54);
	line-height: normal;
	color: var(--cn-ink);
}
.cn-step--flip .cn-step__num::before {
	color: #fff;
}
.cn-step__copy {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.cn-step__bar {
	width: 48px;
	height: 5px;
	background: var(--cn-ink);
}
.cn-step--flip .cn-step__bar {
	background: #fff;
}
.cn-step__title {
	font-size: var(--cn-fs-24);
	line-height: 1.05;
	color: #fff;
}
.cn-step__text {
	font-size: 14px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.8);
}
.cn-step__arrow {
	width: 22px;
	height: 22px;
	flex: none;
	color: #fff;
}
.cn-step__arrow--back {
	transform: rotate(180deg);
}
.cn-step__card {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	position: relative;
	transform-style: preserve-3d;
	transition: transform 0.6s ease;
}
.cn-step__card:focus-visible {
	outline: 2px solid var(--cn-lav);
	outline-offset: 4px;
	border-radius: 48px 48px 0 0;
}
.cn-step__face {
	position: absolute;
	inset: 0;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}
.cn-step__back {
	transform: rotateY(180deg);
}
.cn-step.is-flipped .cn-step__card {
	transform: rotateY(180deg);
}
@media (prefers-reduced-motion: reduce) {
	.cn-step__card {
		transition: none;
	}
}
.cn-journey__action {
	justify-content: flex-end;
}

/* ---------- Сертификат ---------- */

.cn-cert {
	background: var(--cn-paper);
	padding: var(--cn-sec) var(--cn-pad);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 80px;
	overflow: hidden;
}
.cn-cert__copy {
	flex: 0 1 560px;
	align-self: stretch;
	display: flex;
	flex-direction: column;
	gap: 26px;
}
.cn-cert .cn-h-lg {
	line-height: 0.95;
}
.cn-cert__text {
	font-size: var(--cn-fs-18);
	line-height: 1.55;
	color: var(--cn-muted);
}
.cn-cert__visual {
	position: relative;
	flex: none;
	width: clamp(260px, 25.57vw, 491px);
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
.cn-cert__image {
	width: 93.7%;
	aspect-ratio: 1;
	background: #fff;
	transform: rotate(4deg);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.cn-cert__badge {
	display: none;
}
.cn-cert__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.cn-cert__badge {
	position: absolute;
	left: 69.74%;
	top: 62.57%;
	width: 49.51%;
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 19%;
	background: url(../img/star.svg) center / contain no-repeat;
	font-size: clamp(12px, 0.9375vw, 18px);
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	color: var(--cn-ink);
	transform: rotate(3.08deg);
}

/* ---------- Въпроси ---------- */

.cn-faq {
	background: var(--cn-paper);
	padding: var(--cn-sec) var(--cn-pad);
	display: flex;
	align-items: flex-start;
	gap: clamp(32px, 4.1667vw, 80px);
}
.cn-faq__intro {
	flex: 0 1 760px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}
.cn-faq__text {
	font-size: var(--cn-fs-18);
	line-height: 1.55;
	color: var(--cn-muted);
}
.cn-faq__actions .wp-block-button__link {
	padding: 15px 24px;
}
.cn-faq__list.wp-block-accordion {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.cn-faq__list .wp-block-accordion-item {
	margin: 0;
	padding: 24px 32px;
	background: #fff;
	border: 3px solid #fff;
	border-radius: 48px 48px 0 48px;
}
.cn-faq__list .wp-block-accordion-heading {
	margin: 0;
	font-size: var(--cn-fs-24);
	font-weight: 400;
	line-height: 1.05;
}
.cn-faq__list .wp-block-accordion-heading__toggle {
	padding: 0;
	gap: 16px;
	color: var(--cn-ink);
}
.cn-faq__list .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title {
	text-decoration: none;
}
.cn-faq__list .wp-block-accordion-heading__toggle-icon {
	width: 40px;
	height: 40px;
	flex: none;
	border-radius: 999px;
	background: var(--cn-ink);
	font-size: 0;
	color: #fff;
}
.cn-faq__list .wp-block-accordion-heading__toggle-icon::before {
	content: "";
	width: 24px;
	height: 24px;
	background: currentColor;
	-webkit-mask: url(../icons/plus.svg) center / contain no-repeat;
	mask: url(../icons/plus.svg) center / contain no-repeat;
}
.cn-faq__list .wp-block-accordion-panel {
	padding-top: 18px;
}
.cn-faq__list .wp-block-accordion-panel p {
	font-size: 15px;
	line-height: 1.55;
	color: var(--cn-muted);
}

/* ---------- Кога и къде ---------- */

.cn-cta {
	background: var(--cn-paper);
}
.cn-cta__inner {
	background: var(--cn-lav);
	border-radius: 9999px 9999px 0 0;
	padding: clamp(80px, 6.25vw, 120px) var(--cn-pad);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	text-align: center;
}
.cn-cta__title {
	max-width: 8.4em;
	margin-top: -18px;
	line-height: 0.93;
	color: #000;
}
.cn-chips {
	max-width: 750px;
}
.cn-chips__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	padding-block: 30px;
}
.cn-chip {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	padding: 16px 32px;
	border: 2px solid #fff;
	border-radius: 48px;
	color: #fff;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.05;
	text-align: left;
}
.cn-chip .cn-icon {
	width: 32px;
	height: 32px;
	flex: none;
}
.cn-cta__buttons {
	width: 100%;
	max-width: 600px;
	flex-direction: column;
	gap: 14px;
}
.cn-cta__buttons .wp-block-button {
	width: 100%;
}
.cn-cta__buttons .wp-block-button .wp-block-button__link {
	width: 100%;
	justify-content: space-between;
	padding: 24px 32px 24px 40px;
	font-size: var(--cn-fs-20);
}
.cn-cta__buttons .wp-block-button.cn-btn--outline .wp-block-button__link {
	padding: 24px 40px;
}

/* ---------- Долна част ---------- */

.cn-footer {
	position: relative;
	overflow: hidden;
	background: var(--cn-lav);
	color: var(--cn-ink);
}
.cn-footer__inner {
	position: relative;
	z-index: 1;
	padding: 72px var(--cn-pad) 30px;
	display: flex;
	flex-direction: column;
	gap: 58px;
}
.cn-footer__logo {
	align-self: flex-start;
}
.cn-footer__logo img {
	display: block;
	width: clamp(220px, 18.646vw, 358px);
	height: auto;
}
.cn-footer__main {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
}
.cn-footer__identity {
	width: 430px;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.cn-footer__text {
	max-width: 390px;
	padding-bottom: 1.55em;
	font-size: 15px;
	line-height: 1.55;
	color: rgba(0, 0, 0, 0.6);
}
.cn-social {
	display: flex;
	gap: 10px;
	padding: 0;
	list-style: none;
}
.cn-social__link {
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 999px;
	color: #000;
}
.cn-social__link:hover {
	background: rgba(255, 255, 255, 0.25);
}
.cn-social__link .cn-icon {
	width: 16px;
	height: 16px;
}
.cn-footer__nav {
	display: flex;
	gap: 92px;
}
.cn-footer__col {
	display: flex;
	flex-direction: column;
	gap: 13px;
	white-space: nowrap;
	font-size: 15px;
}
.cn-footer__col a,
.cn-footer__col span {
	color: #000;
	text-decoration: none;
}
.cn-footer__col a:hover {
	text-decoration: underline;
}
.cn-footer__title {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--cn-ink);
}
.cn-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 18px;
	border-top: 1px solid rgba(0, 0, 0, 0.15);
	font-size: 10px;
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.4);
}
.cn-footer__legal {
	display: flex;
	gap: 22px;
}
.cn-footer__legal a {
	color: inherit;
	text-decoration: none;
}
.cn-footer__next {
	position: absolute;
	left: 31.09%;
	top: 54.15%;
	z-index: 0;
	width: 36.25%;
	height: auto;
	pointer-events: none;
}

/* ---------- Обикновени страници ---------- */

.cn-page {
	padding: var(--cn-sec) var(--cn-pad);
	max-width: 900px;
	margin: 0 auto;
}
.cn-page__title {
	margin-bottom: 32px;
	font-size: var(--cn-fs-52);
	font-weight: 400;
	line-height: 1;
}
.cn-page__content > * + * {
	margin-top: 1em;
}

/* ---------- Loading екран: видеото минава ~2 s и се издърпва нагоре ---------- */

.cn-loader {
	display: none;
}
.cn-loading .cn-loader {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: #f4417d;
	transform: translateY(0);
	transition: transform 1.002s cubic-bezier(0.65, 0, 0.35, 1);
	will-change: transform;
}
@media (orientation: portrait) {
	.cn-loading .cn-loader {
		background: #cfb600;
	}
}
.cn-loading body {
	overflow: hidden;
}
.cn-loader__frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0; /* вижда се само фонът, докато първият кадър се зареди */
}
.cn-loader__frame.is-on {
	opacity: 1;
}
.cn-loaded .cn-loader {
	transform: translateY(-100%);
}

/* ---------- Таблет ---------- */

@media (max-width: 1100px) {
	.cn-steps__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.cn-faq {
		flex-direction: column;
		align-items: stretch;
	}
	.cn-faq__intro {
		flex: none;
	}
}

@media (max-width: 960px) {
	.cn-nav__link {
		display: none;
	}
	.cn-story {
		flex-direction: column;
		align-items: stretch;
	}
	.cn-story__media {
		flex: none;
		height: auto;
		aspect-ratio: 850 / 545;
	}
	.cn-intro {
		flex-direction: column;
		align-items: stretch;
	}
	.cn-intro__title--fixed {
		flex: none;
	}
	.cn-cert {
		flex-direction: column-reverse;
		align-items: center;
	}
	.cn-cert__copy {
		flex: none;
		width: 100%;
	}
	.cn-cert__visual {
		margin-right: 20%;
	}
	.cn-footer__main {
		flex-direction: column;
	}
}

/* ---------- Телефон ---------- */

@media (max-width: 760px) {
	/* Сертификатът е под текста (само на телефон). */
	.cn-cert {
		flex-direction: column;
		align-items: center;
		gap: 48px;
	}
	.cn-nav {
		padding: 16px;
	}
	.cn-nav__logo img {
		width: 100px;
	}
	a.cn-btn--nav {
		padding: 12px 20px;
	}
	a.cn-btn--nav .cn-icon {
		display: none;
	}
	.cn-hero__inner {
		min-height: 0;
	}
	.cn-hero::after {
		top: auto;
		bottom: -10%;
		left: -10vw;
		width: 120vw;
		transform-origin: 50% 30%;
		transform: perspective(1200px) rotateX(calc(var(--hero-y) * -5deg)) translate3d(0, calc(var(--hero-y) * 36px), 0) scale(1.04);
	}
	.cn-hero__row {
		flex-direction: column;
	}
	.cn-hero__bottom {
		flex-wrap: wrap;
	}
	.cn-hero__intro {
		max-width: none;
	}
	.cn-facts__list {
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
	}
	.cn-fact,
	.cn-fact:first-child,
	.cn-fact:last-child {
		padding: 20px 0;
	}
	.cn-fact:first-child {
		padding-top: 0;
	}
	.cn-fact + .cn-fact::before {
		top: 0;
		left: 0;
		right: 0;
		width: auto;
		height: 1px;
		transform: none;
	}
	.cn-fields__list {
		grid-template-columns: minmax(0, 1fr);
	}
	.cn-footer__nav {
		gap: 24px;
		flex-wrap: wrap;
	}
	.cn-footer__col {
		flex: 1 1 140px;
		min-width: 0;
		white-space: normal;
	}
}

@media (max-width: 640px) {
	.cn-steps__list {
		grid-template-columns: minmax(0, 1fr);
	}
	.cn-chip {
		padding: 12px 24px;
		font-size: 16px;
	}
	.cn-cta__inner {
		gap: 32px;
	}
}

/* ---------- Направления: линк към страницата ---------- */

a.cn-field {
	text-decoration: none;
}

/* ---------- Долна част: организатори и партньори ---------- */

.cn-footer__partners {
	width: 702px;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.cn-footer__eu-logo {
	display: block;
	width: 160px;
	height: auto;
	color: #000;
}
.cn-footer__partners .cn-footer__title + .cn-footer__logos {
	margin-top: -8px;
}
.cn-footer__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 24px;
}
.cn-footer__logos img {
	display: block;
	height: auto;
}
.cn-footer__logos a {
	display: inline-flex;
	align-items: flex-end;
	color: inherit;
	transition: opacity 0.2s;
}
.cn-footer__logos a:hover {
	opacity: 0.7;
}
.cn-logo-obshtina {
	display: inline-flex;
	align-items: center;
	gap: 9px;
}
.cn-logo-obshtina__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}


/* ---------- Страница на направление ---------- */

.cn-dir {
	position: relative;
	overflow: hidden;
	background: var(--dir-bg, var(--cn-lav));
	color: #fff;
}
.cn-dir__hero {
	position: relative;
}
.cn-dir__next {
	position: absolute;
	left: var(--next-left, 10%);
	top: var(--next-top, 0);
	width: var(--next-w, 76%);
	height: auto;
	color: var(--dir-accent, #4c4cd8);
	pointer-events: none;
}
.cn-has-dir .cn-nav,
.cn-has-dir .cn-footer {
	background: var(--dir-bg, var(--cn-lav));
}
.cn-dir__media {
	position: relative;
	z-index: 1;
	margin: 0 var(--cn-pad);
	aspect-ratio: 1776 / 500;
	border-radius: 0 0 9999px 9999px;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.1);
}
.cn-dir__photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.cn-dir__title {
	position: relative;
	z-index: 1;
	max-width: 800px;
	margin: 54px auto 0;
	padding: 0 var(--cn-pad);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	text-align: center;
}
.cn-eyebrow--light {
	color: var(--cn-paper);
}
.cn-eyebrow--light::before {
	background: var(--cn-ink);
}
.cn-dir__name {
	margin: 0;
	font-size: var(--cn-fs-72);
	font-weight: 500;
	line-height: 0.95;
	color: var(--cn-paper);
}
.cn-dir__content {
	position: relative;
	z-index: 1;
	max-width: calc(800px + 2 * var(--cn-pad));
	margin: 80px auto 0;
	padding: 0 var(--cn-pad);
	display: flex;
	flex-direction: column;
	gap: 80px;
}
.cn-dir__card {
	background: var(--cn-paper);
	border: 1px solid rgba(255, 255, 255, 0.21);
	border-radius: 72px 72px 0 0;
	padding: 54px;
	color: var(--cn-ink);
	display: flex;
	flex-direction: column;
}
.cn-dir__card > * {
	margin: 0;
}
.cn-dir__h {
	font-size: var(--cn-fs-24);
	font-weight: 400;
	line-height: 1.05;
	color: var(--cn-ink);
	margin-bottom: 40px;
}
.cn-dir__card p {
	font-size: var(--cn-fs-18);
	line-height: 1.55;
	color: var(--cn-muted);
}
.cn-dir__card p + p,
.cn-dir__card p + ul,
.cn-dir__card ul + p {
	margin-top: 28px;
}
.cn-dir__card ul {
	padding-left: 1.2em;
	font-size: var(--cn-fs-18);
	line-height: 1.55;
	color: var(--cn-muted);
}
.cn-dir__card--curator {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr) auto;
	grid-auto-rows: auto;
	column-gap: 28px;
	row-gap: 8px;
	align-items: end;
	padding-bottom: 102px;
}
.cn-dir__curator-photo {
	grid-row: 1 / 3;
	width: 180px;
	height: 180px;
	border-radius: 300px 300px 0 300px;
	overflow: hidden;
	background: #d9d9d9;
}
.cn-dir__curator-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.cn-dir__card--curator .cn-dir__label {
	align-self: end;
	font-size: var(--cn-fs-24);
	line-height: 1.05;
	color: var(--cn-ink);
}
.cn-dir__card--curator .cn-dir__h {
	margin: 0;
}
.cn-dir__card--curator p:not(.cn-dir__label) {
	grid-column: 1 / -1;
	margin-top: 32px;
}
.cn-dir__card--curator p:not(.cn-dir__label) + p {
	margin-top: 28px;
}

@media (max-width: 760px) {
	.cn-dir__media {
		margin: 0;
		aspect-ratio: 375 / 290;
	}
	.cn-dir__next {
		left: -20%;
		top: 30vw;
		width: 140%;
	}
	.cn-dir__title {
		margin-top: 28px;
		gap: 12px;
	}
	.cn-dir__name {
		font-size: 40px;
		line-height: 1;
	}
	.cn-dir__content {
		margin-top: 40px;
		gap: 32px;
		padding: 0 12px;
	}
	.cn-dir__card {
		padding: 24px;
		border-radius: 48px 48px 0 0;
	}
	.cn-dir__h {
		margin-bottom: 24px;
	}
	.cn-dir__card--curator {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto;
		padding-bottom: 48px;
	}
	.cn-dir__curator-photo {
		grid-row: auto;
		width: 150px;
		height: 150px;
	}
	.cn-dir__card--curator .cn-dir__label {
		margin-top: 16px;
	}
	.cn-footer__partners {
		width: auto;
	}
}

/* ---------- Стрелките в бутоните: движение при посочване ---------- */

.wp-block-button[class*="cn-ico-"] .wp-block-button__link::after,
a.cn-btn .cn-icon,
.cn-field__chev,
.cn-step__arrow,
.cn-sitebar__btn {
	transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.wp-block-button.cn-ico-up-right .wp-block-button__link:hover::after,
a.cn-btn:hover .cn-icon {
	transform: translate(3px, -3px);
}
.wp-block-button.cn-ico-right .wp-block-button__link:hover::after {
	transform: translateX(5px);
}
.wp-block-button.cn-ico-down .wp-block-button__link:hover::after {
	animation: cn-arrow-down 0.9s ease-in-out infinite;
}
.cn-field:hover .cn-field__chev {
	transform: translateX(5px);
}
.cn-step--flip .cn-step__card:hover .cn-step__arrow {
	transform: translateX(4px);
}
.cn-nav__link {
	position: relative;
}
.cn-nav__link::after {
	content: "";
	position: absolute;
	left: 6px;
	right: 6px;
	bottom: 6px;
	height: 1.5px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cn-nav__link:hover {
	text-decoration: none;
}
.cn-nav__link:hover::after {
	transform: scaleX(1);
}
@keyframes cn-arrow-down {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
	.wp-block-button.cn-ico-down .wp-block-button__link:hover::after {
		animation: none;
	}
}
.cn-footer__legal span {
	color: inherit;
}

/* Без движение, ако потребителят го е изключил в системата. */
@media (prefers-reduced-motion: reduce) {
	.cn-hero::after {
		transform: none;
	}
}

/* При посочване ръбовете на всеки бутон се заоблят и той става „пил“ (менюто, „Научи повече“, „Включи се“, имейлът, долните бутони). */
a.cn-btn:hover,
a.cn-btn:focus-visible,
.wp-block-button.cn-btn .wp-block-button__link:hover,
.wp-block-button.cn-btn .wp-block-button__link:focus-visible,
.cn-cta__buttons .wp-block-button .wp-block-button__link:hover,
.cn-faq__actions .wp-block-button .wp-block-button__link:hover {
	border-radius: 200px;
}

/* ---------- „Как работи“ на телефон: картите са тесте; при скрол горната излиза наляво/надясно.
   Класът cn-steps--deck и променливите ги слага site.js (само до 760px, без reduce-motion). ---------- */
.cn-journey:has(.cn-steps--deck) {
	overflow-x: clip;
}
.cn-steps--deck {
	position: relative;
	height: var(--deck-track, auto);
}
.cn-steps--deck .cn-steps__list {
	position: sticky;
	top: var(--deck-top, 96px);
	display: block;
	height: var(--deck-card, 300px);
}
.cn-steps--deck .cn-step {
	position: absolute;
	inset: 0;
	height: var(--deck-card, 310px);
	transform-origin: 50% 100%;
	will-change: transform, opacity;
}
/* На телефон картите са с 10px по-високи. */
@media (max-width: 760px) {
	.cn-step {
		height: 310px;
	}
}
