/*
 * Owner requirements foundation R1.
 * Shared responsive design, visible brand, accessible navigation and reusable content cards.
 */

:root {
	--dark: #0c0c0c;
	--vtakt-ink: #121212;
	--vtakt-muted: #5d6268;
	--vtakt-surface: #ffffff;
	--vtakt-surface-soft: #f5f5f1;
	--vtakt-yellow: #fff200;
	--vtakt-yellow-strong: #e7db00;
	--vtakt-blue: #00a9ed;
	--vtakt-pink: #ef4f92;
	--vtakt-border: #dfe2e4;
	--vtakt-radius-sm: 10px;
	--vtakt-radius-md: 18px;
	--vtakt-shadow: 0 14px 38px rgba(0, 0, 0, 0.1);
}

/* Direction CTA: keep the permanent trial form compact and separate from the popup form. */
.danceTypePage .bCallToAction {
	margin-top: 0;
	padding: clamp(36px, 6vw, 72px) 20px;
	background: var(--dark);
}

.danceTypePage .bCallToAction__wrap {
	width: 100%;
	max-width: 1170px;
	margin: 0 auto;
	padding: clamp(28px, 5vw, 54px);
	border-radius: var(--vtakt-radius-md);
	background: var(--vtakt-surface-soft);
	box-shadow: var(--vtakt-shadow);
}

.danceTypePage .bContactForm--style-1 {
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
}

.danceTypePage .bContactForm .wpcf7,
.danceTypePage .bContactForm .wpcf7-form {
	width: 100%;
	max-width: 100%;
}

.danceTypePage .bContactForm .wpcf7-text,
.danceTypePage .bContactForm .wpcf7-tel {
	width: 100%;
	max-width: 100%;
	min-height: 50px;
	padding: 13px 16px;
	border: 1px solid var(--vtakt-border);
	border-radius: var(--vtakt-radius-sm);
	background: var(--vtakt-surface);
}

.danceTypePage .bContactForm .wpcf7-submit {
	width: 100%;
	min-height: 52px;
	margin: 8px 0 0;
}

.danceTypePage .bContactForm .vtakt-form__consent {
	margin: 10px 0 16px;
	text-align: left;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--vtakt-surface-soft);
	color: var(--vtakt-ink);
	font-size: 17px;
	line-height: 1.6;
}

body,
button,
input,
select,
textarea {
	font-family: "Exo 2", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
	text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--vtakt-blue) !important;
	outline-offset: 3px;
}

.header {
	padding-top: 18px;
	background-color: #050505;
	background-position: center;
	border-bottom-color: var(--vtakt-yellow);
}

.header > .container.d-flex {
	display: grid;
	grid-template-columns: minmax(170px, 250px) minmax(160px, 0.8fr) minmax(220px, 1.25fr) auto;
	gap: 18px;
	align-items: center;
}

.header .logo {
	width: min(250px, 100%);
	margin: 0;
}

.header .logo img {
	display: block;
	width: 100%;
	max-height: 92px;
	object-fit: contain;
	object-position: left center;
}

.header .logo img[src$="black-logo.svg"] {
	filter: invert(1);
}

.header_phone,
.header_adress,
.header_content {
	min-width: 0;
}

.header_phone a {
	padding: 0;
	font-size: clamp(19px, 2vw, 24px);
	text-align: left;
	white-space: nowrap;
}

.header_adress {
	font-size: clamp(16px, 1.65vw, 21px);
	line-height: 1.35;
}

.header_socials {
	flex-wrap: nowrap;
	gap: 10px;
	justify-content: flex-end;
}

.header_socials .soc_link {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 9px;
	color: var(--vtakt-yellow);
}

.header_socials .soc_link:hover,
.header_socials .soc_link:focus-visible {
	border-color: var(--vtakt-blue);
	background: rgba(0, 169, 237, 0.15);
	color: var(--vtakt-blue);
	opacity: 1;
}

.header_socials .soc_link svg,
.header_socials .soc_link:hover svg,
.header_socials .soc_link:focus-visible svg {
	fill: currentColor;
}

.header_socials .vtakt-social--tiktok svg {
	fill: none;
	stroke: currentColor;
}

.header_nav {
	margin-top: 16px;
}

.header .menu {
	gap: 4px;
	justify-content: center;
}

.header .menu a {
	min-height: 46px;
	padding: 11px 15px;
	border-radius: 9px 9px 0 0;
	font-size: clamp(15px, 1.45vw, 18px);
	line-height: 1.25;
}

.header .menu a:hover,
.header .menu a:focus-visible,
.header .menu .current-menu-item > a,
.header .menu .current_page_item > a {
	background: var(--vtakt-yellow);
	color: var(--vtakt-ink);
}

.header .menu > li:last-child > a {
	background: var(--vtakt-yellow);
	color: var(--vtakt-ink);
	font-weight: 700;
}

.header .menu > li:last-child > a:hover,
.header .menu > li:last-child > a:focus-visible {
	background: var(--vtakt-blue);
	color: #fff;
}

.content-wrap,
.post-wrap,
.danceTypePage,
.bPrice {
	background: var(--vtakt-surface-soft);
}

h1,
.danceTypePage__h1,
.post_title,
.bPrice__headline h1 {
	font-size: clamp(34px, 5vw, 56px);
	line-height: 1.12;
	letter-spacing: -0.025em;
}

h2,
.bTitle {
	line-height: 1.2;
}

.post_content,
.content-text,
.bWysiwyg {
	font-size: clamp(16px, 1.6vw, 18px);
	line-height: 1.7;
}

.post_content > :where(p, ul, ol, h2, h3, figure, blockquote),
.bWysiwyg > :where(p, ul, ol, h2, h3, figure, blockquote) {
	max-width: 820px;
	margin-right: auto;
	margin-left: auto;
}

.posts-list .post-item,
.bTeacherItem,
.bGroupItem {
	border: 1px solid var(--vtakt-border);
	border-radius: var(--vtakt-radius-md);
	background: var(--vtakt-surface);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
	overflow: hidden;
}

.posts-list .post-item:hover,
.posts-list .post-item:focus-visible {
	background: #fffef0;
	box-shadow: var(--vtakt-shadow);
	transform: translateY(-2px);
}

.posts-list .post-item .post_img,
.bTeacherItem__photo {
	overflow: hidden;
}

.posts-list .post-item img,
.bTeacherItem__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 22%;
}

.posts-list .post-item[data-post-id="2459"] img,
.postid-2459 .article-post .post_img img,
.bTeacherItem[data-teacher-id="2459"] .bTeacherItem__img {
	object-position: 50% 16%;
}

/* WR1-08: restore readable, proportionate teacher cards on direction pages. */
.bTeachers__list {
	gap: 32px;
}

.bTeacherItem {
	display: grid;
	grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
	gap: 0;
	min-height: 290px;
	color: var(--vtakt-ink);
}

.bTeacherItem__photo {
	box-sizing: border-box;
	width: auto;
	min-width: 0;
	min-height: 288px;
	height: 100%;
}

.bTeacherItem__img {
	width: 100%;
	min-height: 288px;
	height: 100%;
}

.bTeacherItem__info {
	min-width: 0;
	padding: 28px 32px;
	color: var(--vtakt-ink);
}

.bTeacherItem__name {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	margin-bottom: 10px;
}

.bTeacherItem__desc {
	display: -webkit-box;
	overflow: hidden;
	margin-bottom: 20px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
	color: var(--vtakt-ink);
	font-size: 16px;
	line-height: 1.55;
}

.bTeacherItem__signup {
	width: min(100%, 360px);
	min-height: 52px;
	margin-top: auto;
}

.postid-1953 .article-post .post_img img,
.postid-1964 .article-post .post_img img,
.postid-1967 .article-post .post_img img {
	object-position: 50% 18%;
}

.article-post .post_img > img {
	width: min(100%, 360px);
	aspect-ratio: 4 / 5;
	border-radius: var(--vtakt-radius-md);
	object-fit: cover;
	object-position: 50% 20%;
}

.bbtn,
.btn-yellow,
.yellow-btn,
.js-appointment,
input[type="submit"] {
	min-height: 48px;
	border-radius: 999px !important;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
	font-weight: 700;
	line-height: 1.2;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.bbtn:hover,
.btn-yellow:hover,
.yellow-btn:hover,
.js-appointment:hover,
input[type="submit"]:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.danceTypePage__hero {
	border-radius: var(--vtakt-radius-md);
	box-shadow: var(--vtakt-shadow);
}

.danceTypePage__signup {
	min-width: min(360px, calc(100% - 32px));
	padding: 14px 26px;
	font-size: clamp(17px, 2vw, 21px);
}

.vtakt-direction-principles {
	max-width: 920px;
	margin: 34px auto;
	padding: clamp(22px, 4vw, 42px);
	border: 1px solid rgba(0, 169, 237, 0.28);
	border-radius: var(--vtakt-radius-md);
	background: linear-gradient(135deg, #fff 0%, #f4fbfe 100%);
	box-shadow: 0 10px 32px rgba(0, 0, 0, 0.07);
}

.vtakt-direction-principles h2 {
	margin: 0 0 14px;
	color: var(--vtakt-ink);
	font-size: clamp(27px, 3.8vw, 40px);
	text-align: left;
}

.vtakt-direction-principles p {
	margin: 0 0 18px;
}

.vtakt-direction-principles ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vtakt-direction-principles li {
	position: relative;
	padding-left: 28px;
}

.vtakt-direction-principles li::before {
	position: absolute;
	top: 0;
	left: 0;
	color: var(--vtakt-blue);
	font-weight: 900;
	content: "✓";
}

.footer .vtakt-social--tiktok,
.header_bottom .vtakt-social--tiktok {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0 5px;
	border: 1px solid var(--vtakt-yellow);
	border-radius: 50%;
	color: var(--vtakt-yellow);
	vertical-align: middle;
}

.footer .vtakt-social--tiktok svg,
.header_bottom .vtakt-social--tiktok svg {
	width: 22px;
	height: 22px;
}

.vtakt-legacy-logo img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 960px) {
	.header {
		padding-top: 12px;
	}

	.header > .container.d-flex {
		display: grid;
		grid-template-columns: minmax(150px, 210px) 1fr auto;
		gap: 10px 16px;
	}

	.header .logo {
		grid-row: 1 / span 2;
		width: 100%;
	}

	.header_phone {
		align-self: end;
	}

	.header_adress {
		align-self: start;
		font-size: 15px;
	}

	.header_content {
		grid-column: 3;
		grid-row: 1 / span 2;
	}

	.header_nav {
		margin-top: 6px;
	}

	.header .menu {
		position: absolute;
		z-index: 1000;
		top: 100%;
		right: 15px;
		left: 15px;
		gap: 0;
		border-radius: 0 0 var(--vtakt-radius-md) var(--vtakt-radius-md);
		background: #080808;
		box-shadow: var(--vtakt-shadow);
	}

	.header .menu a {
		border-radius: 0;
	}

	.header_nav {
		position: relative;
	}
}

@media (max-width: 760px) {
	body {
		font-size: 16px;
	}

	.header > .container.d-flex {
		grid-template-columns: minmax(128px, 0.9fr) minmax(0, 1.1fr);
		gap: 8px 12px;
	}

	.header .logo {
		grid-row: 1 / span 3;
		align-self: start;
	}

	.header .logo img {
		margin: 0;
		max-height: 78px;
		object-position: left top;
	}

	.header_phone,
	.header_adress,
	.header_content {
		grid-column: 2;
		grid-row: auto;
		justify-content: flex-end;
		text-align: right;
	}

	.header_phone a {
		width: 100%;
		margin: 0;
		font-size: 18px;
		text-align: right;
	}

	.header_adress {
		margin: 0;
		font-size: 13px;
		line-height: 1.3;
	}

	.header_socials {
		gap: 7px;
		justify-content: flex-end;
	}

	.header_socials .soc_link,
	.header_socials .soc_link:first-child,
	.header_socials .soc_link:last-child {
		flex-basis: 36px;
		width: 36px;
		height: 36px;
		margin: 0;
		padding: 7px;
	}

	#hamburger-icon {
		margin: 4px auto 7px;
	}

	.header .menu {
		right: 0;
		left: 0;
	}

	.header .menu a {
		justify-content: flex-start;
		padding: 12px 18px;
		text-align: left;
	}

	.posts-list .post-item {
		width: min(100%, 360px);
		margin-right: auto;
		margin-left: auto;
	}

	.vtakt-direction-principles {
		margin: 22px 0;
		padding: 22px 18px;
	}

	.vtakt-direction-principles ul {
		grid-template-columns: 1fr;
	}

	.danceTypePage__signup {
		bottom: 16px;
		font-size: 17px;
	}

	/* Owner requirement: these teachers do not appear inside directions on mobile. */
	.danceTypePage .bTeacherItem--mobile-hidden,
	.danceTypePage .bTeacherItem[data-teacher-id="2880"] {
		display: none !important;
	}

	.article-post {
		padding: 20px 16px;
		border-radius: var(--vtakt-radius-md);
		background: var(--vtakt-surface);
	}
}

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

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* WR1-06: visitor-controlled external media and mobile touch targets. */
.vtakt-external-media {
	display: flex;
	min-height: 220px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: 100%;
	padding: 28px;
	border: 1px solid rgba(0, 169, 237, 0.35);
	border-radius: var(--vtakt-radius-md);
	background: #f5fbfd;
	color: var(--vtakt-ink);
	text-align: center;
}

.vtakt-external-media[data-vtakt-external-kind="map"] {
	min-height: 360px;
}

.vtakt-external-media p {
	max-width: 560px;
	margin: 0;
}

.vtakt-external-media__load,
.vtakt-media-consent__button {
	min-width: 160px;
	min-height: 48px;
	padding: 12px 20px;
	border: 2px solid var(--vtakt-ink);
	border-radius: 999px;
	background: var(--vtakt-yellow);
	color: var(--vtakt-ink);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.vtakt-external-media--loaded {
	min-height: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.vtakt-external-media__frame {
	display: block;
	width: 100%;
	min-height: 220px;
	border: 0;
	border-radius: var(--vtakt-radius-sm);
}

.vtakt-external-media[data-vtakt-external-kind="map"] .vtakt-external-media__frame {
	min-height: 360px;
}

.vtakt-media-consent {
	position: fixed;
	z-index: 100000;
	right: 16px;
	bottom: 16px;
	left: 16px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 12px;
	max-width: 920px;
	margin: 0 auto;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: var(--vtakt-radius-md);
	background: #080808;
	box-shadow: var(--vtakt-shadow);
	color: #fff;
}

.vtakt-media-consent p {
	margin: 0;
	line-height: 1.45;
}

.vtakt-media-consent a {
	color: var(--vtakt-yellow);
}

.vtakt-media-consent__button--secondary {
	border-color: #fff;
	background: transparent;
	color: #fff;
}

@media (max-width: 760px) {
	.bTeacherItem {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.bTeacherItem__photo,
	.bTeacherItem__img {
		min-height: 280px;
		height: 280px;
	}

	.bTeacherItem__info {
		padding: 22px 20px 24px;
	}

	.bTeacherItem__desc {
		-webkit-line-clamp: 6;
	}

	.header .logo,
	.header_phone a,
	.header_socials .soc_link,
	.header_socials .soc_link:first-child,
	.header_socials .soc_link:last-child,
	a.home,
	.taxonomy.category,
	.bSwitcher__btn,
	.bStyles__item,
	.bTeacherItem__name,
	.camp-button,
	.marina-button,
	.phone-info a,
	.wpcf7-list-item-label a,
	.social_icons a[href*="polityka-konfidenczijnosti"] {
		display: inline-flex;
		min-height: 44px;
		align-items: center;
	}

	.header_socials .soc_link,
	.header_socials .soc_link:first-child,
	.header_socials .soc_link:last-child {
		flex-basis: 44px;
		width: 44px;
		height: 44px;
	}

	.header_phone a {
		justify-content: flex-end;
	}

	.bStyles__item,
	.bSwitcher__btn {
		width: 100%;
	}

	.owl-dots .owl-dot {
		min-width: 44px;
		min-height: 44px;
	}

	.vtakt-media-consent {
		grid-template-columns: 1fr;
	}

	.vtakt-media-consent__button {
		width: 100%;
	}
}

/* WR1-10: compact, phone-first layout and a hard guard against body.home flexing. */
@media (max-width: 760px) {
	body.home {
		display: block;
		width: 100%;
	}

	body {
		font-size: 15px;
		line-height: 1.5;
	}

	.header {
		padding-top: 8px;
	}

	.header > .container.d-flex {
		grid-template-columns: minmax(108px, 0.8fr) minmax(0, 1.2fr);
		gap: 4px 10px;
	}

	.header .logo img {
		max-height: 58px;
	}

	.header_phone a {
		margin-bottom: 0;
		font-size: 16px;
		line-height: 1.2;
	}

	.header_adress {
		margin-bottom: 0;
		font-size: 12px;
		line-height: 1.2;
	}

	.header_socials {
		gap: 5px;
	}

	#hamburger-icon {
		margin-top: 0;
		margin-bottom: 3px;
	}

	h1,
	.danceTypePage__h1,
	.vtakt-home-h1 {
		font-size: 28px;
		line-height: 1.2;
	}

	.breadcrumbs,
	.breadcrumbs--new {
		margin-bottom: 12px;
		font-size: 14px !important;
	}

	.breadcrumbs span,
	.breadcrumbs--new span {
		font-size: 14px;
	}

	.danceTypePage {
		padding-top: 12px;
	}

	.danceTypePage::before {
		height: 430px;
	}

	.danceTypePage__hero {
		height: 330px;
	}

	.danceTypePage__img {
		height: 350px;
	}

	.danceTypePage__signup {
		top: 34px;
		bottom: auto;
		max-width: 310px;
		min-height: 50px;
		padding: 12px 16px;
		font-size: 14px;
	}

	.danceTypeGroups {
		padding-top: 36px;
		margin-bottom: -90px;
	}

	.danceTypeGroups__textWrap {
		gap: 16px;
		padding-bottom: 24px;
	}

	.danceTypeGroups__title,
	.lessonsPhoto__title,
	.bTeachers__title {
		font-size: 26px;
		line-height: 1.2;
	}

	.danceTypeGroups__text {
		font-size: 15px;
		line-height: 1.5;
	}

	.lessonsPhoto {
		padding-top: 125px;
		padding-bottom: 42px;
	}

	.lessonsPhoto__title {
		margin-bottom: 28px;
	}

	.lessonsPhoto__img {
		height: 190px;
	}

	.lessonsPhoto__slide {
		gap: 12px;
	}

	.lessonsPhoto .owl-stage-outer,
	.lessonsPhoto .owl-stage,
	.lessonsPhoto .owl-item,
	.lessonsPhoto .lessonsPhoto__slide {
		height: 392px !important;
	}

	.lessonsPhoto .owl-dots {
		padding-top: 20px;
	}

	.bTeachers {
		padding: 38px 0;
	}

	.bTeachers__title {
		margin-bottom: 28px;
	}

	.bTeachers__list {
		gap: 24px;
	}

	.bTeacherItem__photo,
	.bTeacherItem__img {
		min-height: 210px;
		height: 210px;
	}

	.bTeacherItem__info {
		padding: 18px 18px 20px;
	}

	.bTeacherItem__name {
		min-height: 0;
		margin-bottom: 10px;
		font-size: 18px;
		line-height: 1.25;
	}

	.bTeacherItem__desc {
		display: -webkit-box;
		margin-bottom: 16px;
		overflow: hidden;
		font-size: 14px;
		line-height: 1.4;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 4;
	}

	.bTeacherItem__signup {
		min-height: 48px;
		padding: 12px 14px;
		font-size: 14px;
	}

	.danceTypePage .bCallToAction {
		padding: 30px 14px;
	}

	.danceTypePage .bCallToAction__wrap {
		padding: 24px 16px;
	}

	.bCallToAction__title {
		font-size: 24px;
		line-height: 1.2;
	}

	.bCallToAction__desc {
		margin-bottom: 18px;
		font-size: 14px;
	}

	.danceTypePage .bContactForm .wpcf7-text,
	.danceTypePage .bContactForm .wpcf7-tel,
	.danceTypePage .bContactForm .wpcf7-submit {
		min-height: 46px;
	}

	.article-post {
		padding: 16px 14px;
	}

	.bPrice__list {
		gap: 30px 20px;
	}

	.bPriceItem {
		padding: 12px;
	}

	.bPriceItem__info {
		width: 170px;
		margin-bottom: 36px;
	}

	.bPriceItem__box {
		width: 170px;
		padding-bottom: 8px;
	}

	.bPriceItem__descr {
		padding-left: 0;
		font-size: 15px;
		line-height: 1.45;
	}

	.bPriceItem__price {
		bottom: -18px;
		min-width: 108px;
		padding: 6px 10px;
		font-size: 28px;
	}

	body .bPriceItem__count span {
		font-size: 38px;
		line-height: 1.2;
	}

	body .bPriceItem__count span.mini {
		font-size: 12px;
		line-height: 1.2;
	}
}
