/*
Theme Name: Aleksandra Wolska
Theme URI: https://dietetykdzieciecy.com.pl
Author: Aleksandra Wolska
Description: Lekki motyw blokowy marki osobistej Aleksandry Wolskiej — dietetyk dziecięcy, terapeuta karmienia, szkoleniowiec. Przygotowany pod późniejsze dodanie sklepu WooCommerce.
Version: 2.0.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aleksandra-wolska
*/

:root {
	--aw-topbar-h: 44px;
	--aw-section: clamp(40px, 5vw, 60px);
	--aw-on-dark: #EAF2F3;
	--aw-on-dark-muted: #B9C6D1;
	--aw-line: rgba(42, 61, 82, 0.12);
	--aw-shadow: 0 10px 30px rgba(42, 61, 82, 0.10);
	--aw-error: #A3331A;
}

/* ---------- Podstawy ---------- */

html {
	scroll-padding-top: 104px;
}

.wp-site-blocks > * + *,
.wp-block-post-content > .alignfull,
main > .wp-block-post-content {
	margin-block-start: 0;
}

:where(.wp-site-blocks) a:focus-visible,
:where(.wp-site-blocks) button:focus-visible,
:where(.wp-site-blocks) .wp-element-button:focus-visible,
:where(.wp-site-blocks) input:focus-visible,
:where(.wp-site-blocks) select:focus-visible,
:where(.wp-site-blocks) textarea:focus-visible {
	outline: 2px solid var(--wp--preset--color--teal);
	outline-offset: 3px;
}

.wp-block-image {
	margin: 0;
}

.aw-section {
	padding-top: var(--aw-section);
	padding-bottom: var(--aw-section);
}

.aw-section--tight {
	padding-top: clamp(20px, 3vw, 32px);
	padding-bottom: clamp(20px, 3vw, 32px);
}

.aw-section--sand {
	background: var(--wp--preset--color--sand);
}

/* Etykieta nad nagłówkiem sekcji, z trzema kropkami w kolorach marki. */
.aw-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-text);
}

.aw-eyebrow::before {
	content: "";
	flex: none;
	width: 27px;
	height: 7px;
	background:
		radial-gradient(circle at 3.5px 3.5px, var(--wp--preset--color--accent) 3.4px, transparent 3.6px),
		radial-gradient(circle at 13.5px 3.5px, var(--wp--preset--color--teal-light) 3.4px, transparent 3.6px),
		radial-gradient(circle at 23.5px 3.5px, var(--wp--preset--color--yellow) 3.4px, transparent 3.6px);
}

.aw-eyebrow--plain::before {
	display: none;
}

/* Nagłówek sekcji: etykieta, H2, opis — do lewej. */
.aw-head {
	display: grid;
	gap: 12px;
	margin-bottom: clamp(24px, 3.5vw, 40px);
}

.aw-head > * {
	max-width: 660px;
	margin: 0;
}

.aw-head > p:last-child:not(.aw-eyebrow) {
	color: var(--wp--preset--color--slate);
}

.aw-icon {
	display: block;
	flex: none;
	width: 32px;
	height: 32px;
	color: var(--wp--preset--color--teal);
}

/* ---------- Przyciski ---------- */

.wp-block-button__link {
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

.aw-btn-arrow .wp-block-button__link,
.aw-more a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.aw-btn-arrow .wp-block-button__link::after,
.aw-more a::after {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 0;
	padding: 0.95rem 1.9rem;
	background: transparent;
	color: var(--wp--preset--color--navy);
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--navy);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
}

.aw-btn-yellow .wp-block-button__link {
	background: var(--wp--preset--color--yellow);
	color: var(--wp--preset--color--navy);
}

.aw-btn-yellow .wp-block-button__link:hover {
	background: #F5D184;
	color: var(--wp--preset--color--navy);
}

/* ---------- Pasek górny ---------- */

/* Pasek odjeżdża przy przewijaniu, owalne menu zostaje u góry. */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--aw-topbar-h));
	z-index: 100;
}

.aw-topbar {
	box-sizing: border-box;
	height: var(--aw-topbar-h);
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--cream);
	font-size: 0.875rem;
	font-weight: 600;
}

.aw-topbar-inner {
	height: 100%;
	align-items: center;
	gap: 16px;
}

.aw-topbar-mail {
	margin: 0;
	min-width: 0;
}

.aw-topbar-mail a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-block: 10px;
	color: var(--wp--preset--color--cream);
	text-decoration: none;
}

.aw-topbar-mail a::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: var(--wp--preset--color--yellow);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm9 7.4L4 7.2V17h16V7.2z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm9 7.4L4 7.2V17h16V7.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.aw-topbar-mail a:hover {
	color: var(--wp--preset--color--accent-hover);
}

/* Okrągłe ikony social (pasek górny i stopka). */
.wp-block-social-links.aw-social {
	gap: 8px;
	margin: 0;
	padding: 0;
}

.aw-social .wp-social-link {
	background: rgba(255, 255, 255, 0.12);
	color: var(--wp--preset--color--cream);
	transition: background-color 0.15s ease;
}

.aw-social .wp-social-link:hover {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--navy);
	transform: none;
}

.wp-block-social-links.aw-social .wp-social-link a {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
}

.wp-block-social-links.aw-social .wp-social-link svg {
	width: 15px;
	height: 15px;
}

/* ---------- Owalne menu ---------- */

.aw-navwrap {
	padding-top: 14px;
	pointer-events: none;
}

.aw-pill {
	gap: 16px;
	padding: 8px 10px 8px 28px;
	background: var(--wp--preset--color--white);
	border-radius: 999px;
	box-shadow: 0 10px 34px rgba(42, 61, 82, 0.13);
	pointer-events: auto;
}

.aw-logo {
	flex: none;
}

.aw-logo img {
	display: block;
	width: 156px;
	height: auto;
	aspect-ratio: 3 / 1;
}

.aw-pill-actions {
	gap: 4px;
	min-width: 0;
}

.aw-nav,
.aw-nav .wp-block-navigation__container {
	gap: 4px;
}

.aw-nav .wp-block-navigation-item__content {
	padding: 12px 14px;
	border-radius: 999px;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

.aw-nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--accent-text);
}

.aw-nav .has-child > .wp-block-navigation-item__content {
	padding-right: 4px;
}

.aw-nav .wp-block-navigation__submenu-icon {
	width: 12px;
	height: 12px;
	margin: 0 14px 0 2px;
}

.aw-nav .wp-block-navigation__submenu-icon svg {
	width: 12px;
	height: 12px;
	stroke-width: 2;
	transition: transform 0.15s ease;
}

.aw-nav .has-child:hover > .wp-block-navigation__submenu-icon svg,
.aw-nav .has-child .wp-block-navigation__submenu-icon[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.aw-nav .wp-block-navigation__submenu-container {
	min-width: 240px !important;
	padding: 8px !important;
	border: 0 !important;
	border-radius: 16px;
	background: var(--wp--preset--color--white) !important;
	box-shadow: var(--aw-shadow);
}

.aw-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 11px 14px;
	border-radius: 10px;
	font-weight: 500;
}

.aw-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--navy);
}

.aw-nav .wp-block-navigation__responsive-container-open {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--navy);
}

.aw-nav .wp-block-navigation__responsive-container-open svg {
	width: 22px;
	height: 22px;
}

/* Menu w owalu od 960 px; węższe ekrany: przycisk otwierający pełnoekranowe menu. */
@media (min-width: 960px) {
	.aw-nav .wp-block-navigation__responsive-container-open.always-shown {
		display: none;
	}

	.aw-nav .wp-block-navigation__responsive-container.hidden-by-default:not(.is-menu-open) {
		display: block;
		position: relative;
		z-index: auto;
		width: 100%;
		background-color: inherit;
	}

	.aw-nav .wp-block-navigation__responsive-container.hidden-by-default:not(.is-menu-open) .wp-block-navigation__responsive-container-close {
		display: none;
	}
}

.aw-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 24px clamp(20px, 6vw, 48px);
}

/* Lista ma klasę items-justified-right (menu w owalu do prawej) — w menu telefonu do lewej. */
.aw-nav .wp-block-navigation__responsive-container.is-menu-open,
.aw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
}

/* „Kontakt” jako pozycja menu tylko w menu telefonu (na szerokich ekranach jest przycisk). */
@media (min-width: 960px) {
	.aw-nav .aw-nav-mobile-only {
		display: none;
	}
}

.aw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.aw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start !important;
	gap: 4px;
}

.aw-nav .is-menu-open .wp-block-navigation-item__content {
	padding: 10px 0;
	font-size: 1.25rem;
}

.aw-nav .is-menu-open .wp-block-navigation__submenu-container {
	min-width: 0 !important;
	padding: 0 0 6px 16px !important;
	box-shadow: none;
}

.aw-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 8px 0;
	font-size: 1.0625rem;
}

.aw-pill-cta .wp-block-button__link {
	padding: 13px 24px;
}

/* Konto i koszyk WooCommerce (pojawiają się po włączeniu sklepu). */
.aw-pill .wc-block-customer-account__link,
.aw-pill .wc-block-mini-cart__button {
	display: inline-flex;
	align-items: center;
	padding: 10px;
	border-radius: 999px;
	color: var(--wp--preset--color--navy);
}

.aw-pill .wc-block-customer-account__link:hover,
.aw-pill .wc-block-mini-cart__button:hover {
	background: var(--wp--preset--color--cream);
	opacity: 1;
}

.aw-pill .wc-block-mini-cart__badge {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--navy);
}

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

.aw-hero.aw-section {
	padding-top: clamp(40px, 6vw, 80px);
}

.wp-block-columns.aw-hero-cols {
	align-items: center;
	gap: clamp(32px, 5vw, 64px);
}

.aw-hero-cols > .wp-block-column > * {
	margin-block: 0;
}

h1.aw-hero-tags {
	font-family: var(--wp--preset--font-family--karla);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
}

.aw-hero-title {
	margin-top: 22px !important;
	font-family: var(--wp--preset--font-family--bodoni);
	font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem);
	font-weight: 500;
	line-height: 1.12;
	text-wrap: balance;
}

.aw-hero-lead {
	max-width: 500px;
	margin-top: 22px !important;
	font-size: 1.125rem;
	color: var(--wp--preset--color--slate);
}

.aw-hero-actions {
	gap: 12px;
	margin-top: 30px !important;
}

.aw-hero-photo {
	box-sizing: border-box;
	width: min(420px, 100%);
	aspect-ratio: 1;
	margin-inline: auto;
	overflow: hidden;
	border: 8px solid var(--wp--preset--color--white);
	border-radius: 50%;
	background: var(--wp--preset--color--mint);
	box-shadow: var(--aw-shadow);
	outline: 2px dashed var(--wp--preset--color--teal-light);
	outline-offset: 14px;
}

.aw-hero-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- O mnie ---------- */

.wp-block-columns.aw-about-cols {
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
}

.aw-portrait {
	position: relative;
	width: min(400px, 100%);
	aspect-ratio: 1;
	margin-inline: auto;
}

.aw-portrait > * {
	margin: 0;
}

.aw-portrait::before {
	content: "";
	position: absolute;
	inset: -14px;
	border: 2px dashed var(--wp--preset--color--teal-light);
	border-radius: 50%;
	pointer-events: none;
}

.aw-portrait::after {
	content: "";
	position: absolute;
	top: 4%;
	right: 6%;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--wp--preset--color--yellow);
	box-shadow: -26px 14px 0 -5px var(--wp--preset--color--accent);
}

.aw-portrait-img {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border: 8px solid var(--wp--preset--color--white);
	border-radius: 50%;
	background: var(--wp--preset--color--mint);
	box-shadow: var(--aw-shadow);
}

.aw-portrait-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 18%;
}

.aw-portrait-card {
	position: absolute;
	left: -8%;
	bottom: 6%;
	padding: 14px 20px;
	background: var(--wp--preset--color--white);
	border-left: 3px solid var(--wp--preset--color--accent);
	border-radius: 14px;
	box-shadow: var(--aw-shadow);
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--wp--preset--color--slate);
}

.aw-portrait-card strong {
	font-size: 1rem;
	color: var(--wp--preset--color--navy);
}

.aw-about-text > * {
	margin-block: 0;
}

.aw-about-text > * + * {
	margin-top: 16px !important;
}

.aw-about-text p:not(.aw-eyebrow) {
	color: var(--wp--preset--color--slate);
	line-height: 1.7;
}

.aw-creds {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0;
	list-style: none;
}

.aw-about-text .aw-creds {
	margin-top: 24px !important;
}

.aw-creds li {
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	box-shadow: inset 0 0 0 1px var(--aw-line);
	font-family: var(--wp--preset--font-family--bodoni);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
}

/* ---------- Karty szkoleń ---------- */

.wp-block-columns.aw-cards {
	gap: clamp(16px, 2.4vw, 28px);
}

.aw-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 32px 28px 26px;
	background: var(--wp--preset--color--white);
	border-top: 3px solid var(--wp--preset--color--accent);
	border-radius: 16px;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.aw-card:hover {
	box-shadow: 0 12px 28px rgba(42, 61, 82, 0.10);
	transform: translateY(-2px);
}

.aw-card > * {
	margin: 0;
}

.aw-card .aw-icon {
	margin-bottom: 6px;
}

.aw-card p {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--wp--preset--color--slate);
}

.aw-card .aw-more {
	margin-top: auto;
	padding-top: 8px;
}

.aw-more a {
	gap: 6px;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--wp--preset--color--navy);
	text-decoration: none;
}

.aw-more a:hover {
	color: var(--wp--preset--color--accent-text);
}

/* ---------- Zaufali mi (karuzela) ---------- */

.aw-trust-head {
	margin-bottom: clamp(24px, 3.5vw, 40px);
}

.aw-arrows {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: calc(-46px - clamp(24px, 3.5vw, 40px)) !important;
	margin-bottom: clamp(24px, 3.5vw, 40px) !important;
}

.aw-arrows[hidden] {
	display: none;
}

.aw-arrow {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
	box-shadow: 0 4px 16px rgba(42, 61, 82, 0.12);
	cursor: pointer;
}

.aw-arrow:hover {
	color: var(--wp--preset--color--accent-text);
}

.aw-arrow:disabled {
	opacity: 0.4;
	cursor: default;
}

.aw-arrow svg {
	width: 18px;
	height: 18px;
}

.aw-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2 * 24px) / 3);
	gap: 24px;
	padding-block: 4px 8px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.aw-track::-webkit-scrollbar {
	display: none;
}

.aw-track > .aw-trust-card {
	margin: 0;
}

.aw-trust-card {
	display: grid;
	justify-items: center;
	align-content: start;
	gap: 8px;
	padding: 30px 26px;
	background: var(--wp--preset--color--white);
	border-radius: 16px;
	box-shadow: inset 0 0 0 1px var(--aw-line);
	text-align: center;
	scroll-snap-align: start;
}

.aw-trust-card > * {
	margin: 0;
}

.aw-trust-card .aw-icon {
	margin-bottom: 8px;
}

.aw-card-type {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
}

.aw-trust-card h3 {
	font-size: 1.125rem;
}

.aw-trust-card p:not(.aw-card-type) {
	font-size: 0.9375rem;
	color: var(--wp--preset--color--slate);
}

.aw-pager {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 24px !important;
}

.aw-pager[hidden] {
	display: none;
}

.aw-pager button {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(42, 61, 82, 0.2);
	cursor: pointer;
	transition: width 0.2s ease, background-color 0.2s ease;
}

.aw-pager button[aria-current="true"] {
	width: 22px;
	background: var(--wp--preset--color--accent);
}

/* W edytorze karty układają się w siatkę, żeby łatwo je edytować. */
.editor-styles-wrapper .aw-track {
	grid-auto-flow: row;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	overflow: visible;
}

/* ---------- Centrum ---------- */

.aw-bridge {
	gap: clamp(20px, 3.5vw, 40px);
	padding: clamp(28px, 4.5vw, 52px);
	border-radius: 24px;
	background: linear-gradient(135deg, #2A3D52 0%, #3C5468 100%);
	color: var(--aw-on-dark);
}

.aw-bridge-logo {
	flex: none;
}

.aw-bridge-logo img {
	display: block;
	box-sizing: border-box;
	width: 88px;
	height: 88px;
	padding: 12px;
	border-radius: 14px;
	background: var(--wp--preset--color--white);
}

.aw-bridge-text {
	display: grid;
	flex: 1 1 340px;
	gap: 10px;
}

.aw-bridge-text > * {
	margin: 0;
}

.aw-bridge-text .aw-eyebrow {
	color: var(--wp--preset--color--teal-light);
}

.aw-bridge-text h2 {
	font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
	color: var(--wp--preset--color--white);
}

.aw-bridge-text p:not(.aw-eyebrow) {
	max-width: 560px;
}

/* ---------- Kontakt ---------- */

.wp-block-columns.aw-cblocks {
	gap: clamp(14px, 2vw, 24px);
	margin-bottom: clamp(20px, 3vw, 28px);
}

.aw-cblock {
	display: grid;
	align-content: start;
	gap: 6px;
	padding: 24px;
	background: var(--wp--preset--color--sand);
	border-bottom: 3px solid var(--wp--preset--color--teal);
	border-radius: 16px;
}

.aw-cblock > * {
	margin: 0;
}

.aw-cblock::before {
	content: "";
	width: 40px;
	height: 40px;
	margin-bottom: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--teal) center / 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFFFFF'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E");
}

.aw-cblock--mail {
	border-bottom-color: var(--wp--preset--color--accent);
}

.aw-cblock--mail::before {
	background-color: var(--wp--preset--color--accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232A3D52'%3E%3Cpath d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm9 7.4L4 7.2V17h16V7.2z'/%3E%3C/svg%3E");
}

.aw-cblock--instagram {
	border-bottom-color: var(--wp--preset--color--yellow);
}

.aw-cblock--instagram::before {
	background-color: var(--wp--preset--color--yellow);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A3D52' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4.2'/%3E%3Ccircle cx='17.3' cy='6.7' r='0.6' fill='%232A3D52' stroke='none'/%3E%3C/svg%3E");
}

.aw-clabel {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
}

.aw-cvalue {
	font-size: 1.0625rem;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.aw-cvalue a {
	text-decoration: none;
}

.aw-cnote {
	font-size: 0.875rem;
	color: var(--wp--preset--color--slate);
}

.wp-block-columns.aw-contact-grid {
	gap: clamp(16px, 2.4vw, 28px);
}

.aw-form-card {
	padding: clamp(24px, 3.5vw, 40px);
	border-radius: 20px;
	background: var(--wp--preset--color--sand);
	box-shadow: var(--aw-shadow);
}

.aw-form-card > * {
	margin-block: 0;
}

.aw-form-card > h3 {
	font-family: var(--wp--preset--font-family--bodoni);
	font-size: 1.6rem;
	font-weight: 500;
	line-height: 1.2;
}

.aw-form-card > p {
	margin-top: 8px;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--slate);
}

.aw-tips {
	align-self: flex-start;
	padding: clamp(24px, 3vw, 32px);
	border-radius: 20px;
	background: var(--wp--preset--color--mint);
}

.aw-tips > * {
	margin-block: 0;
}

.aw-tips > * + * {
	margin-top: 14px;
}

.aw-tips h3 {
	font-family: var(--wp--preset--font-family--bodoni);
	font-size: 1.35rem;
	font-weight: 500;
	line-height: 1.25;
}

/* Lista z „ptaszkami” (podpowiedzi przy formularzu, podstrony szkoleń). */
.aw-checklist {
	display: grid;
	gap: 10px;
	padding: 0;
	list-style: none;
}

.aw-checklist li {
	position: relative;
	padding-left: 32px;
	font-size: 0.9375rem;
}

.aw-prose .aw-checklist li {
	font-size: 1.0625rem;
}

.aw-checklist li::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 0;
	width: 20px;
	height: 20px;
	background: var(--wp--preset--color--teal);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Formularz (Contact Form 7) ---------- */

.wpcf7 form {
	display: grid;
	gap: 16px;
	margin-top: 22px;
}

.wpcf7 .hidden-fields-container {
	display: none;
}

.wpcf7 .screen-reader-response {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
	word-wrap: normal;
}

.aw-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.aw-field {
	display: grid;
	gap: 6px;
}

.aw-field label {
	font-size: 0.875rem;
	font-weight: 700;
}

.wpcf7-form-control-wrap {
	display: block;
	position: relative;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid rgba(42, 61, 82, 0.28);
	border-radius: 12px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
	font: 400 1rem/1.4 var(--wp--preset--font-family--karla);
	box-shadow: inset 0 1px 2px rgba(42, 61, 82, 0.06);
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	border-color: var(--wp--preset--color--teal);
	box-shadow: 0 0 0 3px rgba(127, 196, 192, 0.35);
}

.wpcf7 textarea {
	min-height: 128px;
	resize: vertical;
}

.aw-consent label {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px;
	align-items: start;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--slate);
}

.aw-consent .wpcf7-list-item {
	display: block;
	margin: 0;
}

.aw-consent input {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--wp--preset--color--teal);
}

.aw-consent a {
	color: var(--wp--preset--color--navy);
}

.aw-form-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.wpcf7-submit {
	padding: 14px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--sea);
	color: var(--aw-on-dark);
	font: 700 0.9375rem/1.2 var(--wp--preset--font-family--karla);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.wpcf7-submit:hover {
	background: #2B5A5F;
}

.wpcf7-submit:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.wpcf7-spinner {
	visibility: hidden;
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid var(--wp--preset--color--teal);
	border-right-color: transparent;
	border-radius: 50%;
	animation: aw-spin 0.8s linear infinite;
}

.wpcf7 form.submitting .wpcf7-spinner {
	visibility: visible;
}

@keyframes aw-spin {
	to {
		transform: rotate(360deg);
	}
}

.wpcf7-not-valid-tip {
	display: block;
	margin-top: 4px;
	font-size: 0.8125rem;
	color: var(--aw-error);
}

.wpcf7-response-output {
	margin: 0;
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--wp--preset--color--mint);
	color: var(--wp--preset--color--sea);
	font-size: 0.875rem;
}

.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output {
	display: none;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
	background: #FBE9E5;
	color: var(--aw-error);
}

.aw-form-fallback {
	margin-top: 22px !important;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--wp--preset--color--white);
}

/* ---------- Zaproszenie do kontaktu ---------- */

.aw-cta {
	gap: 24px;
	padding: clamp(28px, 4.5vw, 52px);
	border-radius: 24px;
	background: var(--wp--preset--color--sand);
}

.aw-cta-text {
	flex: 1 1 420px;
}

.aw-cta-text > * {
	margin: 0;
	max-width: 620px;
}

.aw-cta-text > * + * {
	margin-top: 10px;
}

.aw-cta-text p {
	color: var(--wp--preset--color--slate);
}

.aw-cta .wp-block-buttons {
	gap: 12px;
}

/* ---------- Podstrony ---------- */

.aw-page-head {
	padding-top: clamp(32px, 5vw, 56px);
	padding-bottom: clamp(20px, 3vw, 32px);
}

.aw-page-head > * {
	margin-block: 0;
}

.aw-page-head .wp-block-post-title {
	font-size: var(--wp--preset--font-size--xx-large);
	text-wrap: balance;
}

.aw-page-head + .wp-block-post-content > .aw-section:first-child {
	padding-top: 0;
}

.aw-breadcrumbs {
	margin-bottom: 14px;
	font-size: 0.875rem;
	color: var(--wp--preset--color--slate);
}

.aw-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aw-breadcrumbs li + li::before {
	content: "/";
	margin-inline: 8px;
	color: rgba(42, 61, 82, 0.35);
}

.aw-breadcrumbs a {
	color: var(--wp--preset--color--slate);
}

/* Tekst podstron: kolumna 760 px wyrównana do lewej krawędzi treści (1104 px). */
.wp-block-group.aw-prose > * {
	max-width: 760px;
	margin-left: max(0px, (100% - 1104px) / 2) !important;
	margin-right: auto !important;
}

.aw-prose h2 {
	margin-top: clamp(32px, 4vw, 44px);
	font-size: clamp(1.5rem, 1.25rem + 1vw, 1.9rem);
}

.aw-prose h2 + * {
	margin-top: 14px;
}

.aw-lead {
	font-size: 1.1875rem;
	line-height: 1.6;
	color: var(--wp--preset--color--slate);
}

.aw-facts {
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--aw-line);
}

.aw-facts li {
	padding: 12px 0;
	border-bottom: 1px solid var(--aw-line);
}

.aw-note {
	margin-top: clamp(28px, 4vw, 40px) !important;
	padding: 16px 20px;
	border-radius: 14px;
	background: var(--wp--preset--color--mint);
	color: var(--wp--preset--color--sea);
}

.aw-note a {
	color: var(--wp--preset--color--sea);
	font-weight: 700;
}

/* ---------- Stopka ---------- */

.aw-footer {
	padding-top: 56px;
	padding-bottom: 28px;
	background: var(--wp--preset--color--navy);
	color: var(--aw-on-dark);
	font-size: 0.9375rem;
}

.aw-footer > * {
	margin-block: 0;
}

.aw-footer a {
	color: var(--aw-on-dark);
	text-decoration: none;
}

.aw-footer a:hover {
	color: var(--wp--preset--color--accent-hover);
}

.wp-block-columns.aw-footer-cols {
	gap: clamp(24px, 4vw, 48px);
	padding-bottom: 36px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.aw-footer-cols .wp-block-column > * {
	margin-block: 0;
}

.aw-footer-logo img {
	display: block;
	width: 140px;
	height: auto;
	aspect-ratio: 3 / 1;
	filter: brightness(0) invert(1);
}

.aw-footer-desc {
	max-width: 300px;
	margin-top: 14px !important;
	font-size: 0.875rem;
	color: var(--aw-on-dark-muted);
}

.aw-footer .aw-social {
	margin-top: 18px !important;
}

.aw-footer-label {
	margin-bottom: 12px !important;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--teal-light);
}

.aw-footer-links {
	line-height: 2.1;
	overflow-wrap: anywhere;
}

.aw-footer-bottom {
	gap: 8px 24px;
	padding-top: 20px;
	font-size: 0.8125rem;
	color: var(--aw-on-dark-muted);
}

.aw-footer-bottom p {
	margin: 0;
}

.aw-footer-bottom a {
	color: var(--aw-on-dark-muted);
}

/* ---------- Tablet i telefon ---------- */

@media (max-width: 959px) {
	.aw-pill {
		padding: 8px 8px 8px 20px;
		border-radius: 28px;
	}

	.aw-logo img {
		width: 126px;
	}

	.aw-pill-actions .aw-nav {
		order: 3;
	}

	.aw-pill-cta .wp-block-button__link {
		padding: 11px 18px;
		font-size: 0.875rem;
	}

	.aw-track {
		grid-auto-columns: calc((100% - 16px) / 2.15);
		gap: 16px;
	}
}

@media (max-width: 781px) {
	/* Na telefonie zdjęcie z hero i portret z „O mnie” byłyby jedno pod drugim. */
	.aw-hero-photo {
		display: none;
	}

	.aw-portrait {
		width: min(320px, 86%);
	}

	.aw-portrait-card {
		left: 0;
	}

	.aw-track {
		grid-auto-columns: calc((100% - 16px) / 1.15);
	}

	.aw-arrows {
		justify-content: flex-start;
		margin-top: calc(-1 * clamp(24px, 3.5vw, 40px) + 16px) !important;
		margin-bottom: 20px !important;
	}

	.aw-footer-cols > .wp-block-column:first-child {
		flex-basis: 100% !important;
	}
}

@media (max-width: 560px) {
	.aw-topbar-mail a {
		font-size: 0.8125rem;
	}

	.aw-row {
		grid-template-columns: 1fr;
	}

	.aw-pill-cta .wp-block-button__link {
		padding: 10px 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}
