/* ==========================================================================
   MAIN.CSS — wygląd całego motywu.

   Spis treści:
    1. Ikony (maski SVG)          14. Kroki
    2. Podstawy i dostępność      15. Karty-panele z ikoną
    3. Typografia                 16. FAQ
    4. Układ i sekcje             17. Zaproszenie (CTA)
    5. Przyciski                  18. Kontakt
    6. Nagłówek i menu            19. Strona kursu
    7. Nagłówek podstron          20. Lekcja / temat / quiz
    8. Style bloków (edytor)      21. Blog, komentarze, paginacja
    9. Hero i slajder             22. Wyszukiwarka, 404, pusta lista
   10. Nagłówki sekcji            23. Stopka
   11. Dwie drogi                 24. Wideo (Loom)
   12. Karty, siatki, postęp      25. Animacje
   13. Klub, opinie               26. Responsywność
   ========================================================================== */

/* 1. IKONY ---------------------------------------------------------------- */

:root {
	--i-check: 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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	--i-arrow: 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%3Cpath d='M5 12h14m0 0-5-5m5 5-5 5'/%3E%3C/svg%3E");
	--i-cap: 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%3Cpath d='M3 7.5 12 4l9 3.5-9 3.5z'/%3E%3Cpath d='M7 10.5V15c0 1.4 2.2 2.5 5 2.5s5-1.1 5-2.5v-4.5'/%3E%3C/svg%3E");
	--i-clock: 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%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 1.8'/%3E%3C/svg%3E");
	--i-users: 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%3Ccircle cx='9' cy='8.5' r='3'/%3E%3Cpath d='M3 19c.7-3 3.2-4.6 6-4.6s5.3 1.6 6 4.6'/%3E%3Cpath d='M16.5 6.2a3 3 0 0 1 0 5.6M19 4a6 6 0 0 1 0 10'/%3E%3C/svg%3E");
	--i-star: 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%3Cpath d='M12 3.5 14.6 9l6 .9-4.3 4.2 1 6-5.3-2.8L6.7 20l1-6L3.4 9.9 9.4 9z'/%3E%3C/svg%3E");
	--i-chat: 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%3Cpath d='M21 11.5a8.4 8.4 0 0 1-9 8.4L3 21l1.1-3.3A8.4 8.4 0 1 1 21 11.5Z'/%3E%3C/svg%3E");
	--i-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 21s-7.5-4.9-9.3-9A5.2 5.2 0 0 1 12 6.6a5.2 5.2 0 0 1 9.3 5.4C19.5 16.1 12 21 12 21Z'/%3E%3C/svg%3E");
	--i-play: 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%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m10 8.5 5 3.5-5 3.5z'/%3E%3C/svg%3E");
	--i-briefcase: 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%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M9 7V5.5A1.5 1.5 0 0 1 10.5 4h3A1.5 1.5 0 0 1 15 5.5V7'/%3E%3C/svg%3E");
	--i-plus: 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.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");

	/* Kolorowe wersje do kafelków z ikoną (niebieski #1565E0, bursztyn #9A6B00). */
	--ib-cap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231565E0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5 12 4l9 3.5-9 3.5z'/%3E%3Cpath d='M7 10.5V15c0 1.4 2.2 2.5 5 2.5s5-1.1 5-2.5v-4.5'/%3E%3C/svg%3E");
	--ib-briefcase: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231565E0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M9 7V5.5A1.5 1.5 0 0 1 10.5 4h3A1.5 1.5 0 0 1 15 5.5V7'/%3E%3C/svg%3E");
	--ib-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231565E0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 1.8'/%3E%3C/svg%3E");
	--ib-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231565E0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8.5' r='3'/%3E%3Cpath d='M3 19c.7-3 3.2-4.6 6-4.6s5.3 1.6 6 4.6'/%3E%3Cpath d='M16.5 6.2a3 3 0 0 1 0 5.6M19 4a6 6 0 0 1 0 10'/%3E%3C/svg%3E");
	--ib-users-amber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A6B00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8.5' r='3'/%3E%3Cpath d='M3 19c.7-3 3.2-4.6 6-4.6s5.3 1.6 6 4.6'/%3E%3Cpath d='M16.5 6.2a3 3 0 0 1 0 5.6M19 4a6 6 0 0 1 0 10'/%3E%3C/svg%3E");
	--ib-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231565E0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 14.6 9l6 .9-4.3 4.2 1 6-5.3-2.8L6.7 20l1-6L3.4 9.9 9.4 9z'/%3E%3C/svg%3E");
	--ib-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231565E0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-9 8.4L3 21l1.1-3.3A8.4 8.4 0 1 1 21 11.5Z'/%3E%3C/svg%3E");
	--ib-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231565E0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m10 8.5 5 3.5-5 3.5z'/%3E%3C/svg%3E");
	--ib-doc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231565E0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M15 3v4h4M9 12h6M9 16h4'/%3E%3C/svg%3E");
	--ib-video: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231565E0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='13' height='12' rx='2'/%3E%3Cpath d='m16 10 5-3v10l-5-3'/%3E%3C/svg%3E");
	--ib-heart-amber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%239A6B00' d='M12 21s-7.5-4.9-9.3-9A5.2 5.2 0 0 1 12 6.6a5.2 5.2 0 0 1 9.3 5.4C19.5 16.1 12 21 12 21Z'/%3E%3C/svg%3E");
}

/* Ikona z maski: kolor = currentColor albo background. */
.ag-mask {
	display: inline-block;
	width: 1.25em;
	height: 1.25em;
	background-color: currentColor;
	-webkit-mask: var(--icon) center / contain no-repeat;
	mask: var(--icon) center / contain no-repeat;
}

/* 2. PODSTAWY I DOSTĘPNOŚĆ ------------------------------------------------ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--f-body);
	font-size: var(--t-body);
	line-height: 1.65;
	color: var(--c-body);
	background: var(--c-surface);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img,
video,
svg {
	max-width: 100%;
	height: auto;
}

.ag-icon {
	display: inline-block;
	flex: none;
	vertical-align: middle;
}

:focus-visible {
	outline: 3px solid var(--c-blue);
	outline-offset: 2px;
	border-radius: 4px;
}

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

.skip-link:focus {
	position: fixed !important;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.75rem 1.25rem;
	clip: auto;
	clip-path: none;
	background: var(--c-navy);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	border-radius: var(--r-sm);
}

/* Wyrównania z edytora klasycznego. */
.alignleft {
	float: left;
	margin: 0.4rem 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.4rem 0 1rem 1.5rem;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption-text,
figcaption {
	font-size: var(--t-sm);
	color: var(--c-muted);
}

/* 3. TYPOGRAFIA ----------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--f-display);
	color: var(--c-ink);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

p,
li {
	text-wrap: pretty;
}

a {
	color: var(--c-blue);
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
	transition: color var(--dur) var(--ease);
}

a:hover {
	color: var(--c-blue-dark);
}

mark {
	background: var(--c-yellow-soft);
	color: inherit;
	padding: 0 0.1em;
}

/* Kolorowy fragment nagłówka (format „Kolor tekstu" w edytorze). */
mark.has-inline-color {
	background: transparent;
	padding: 0;
}

.ag-eyebrow,
.is-style-nadtytul {
	font-family: var(--f-body);
	font-size: var(--t-xs);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-blue);
	margin: 0 0 var(--s-3);
}

.ag-lead,
.ag-lead p {
	font-size: var(--t-lead);
	line-height: 1.65;
	color: var(--c-body);
}

.ag-accent {
	color: var(--c-blue);
}

.ag-note {
	padding: var(--s-4) var(--s-5);
	border: 1px dashed var(--c-line);
	border-radius: var(--r-md);
	color: var(--c-muted);
	font-size: var(--t-sm);
	background: var(--c-surface);
}

.ag-placeholder {
	padding: var(--s-6) var(--s-5);
	border: 2px dashed #B9D0F4;
	border-radius: var(--r-md);
	background: var(--c-sky-2);
	color: var(--c-muted);
	text-align: center;
	font-size: var(--t-sm);
}

/* 4. UKŁAD I SEKCJE ------------------------------------------------------- */

.ag-wrap {
	width: 100%;
	max-width: calc(var(--wrap) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.ag-wrap--narrow {
	max-width: calc(var(--wrap-nar) + 2 * var(--gutter));
}

.ag-main {
	display: block;
	min-height: 50vh;
}

/* Treść z edytora — szerokości pilnuje WordPress (theme.json → layout). */
.ag-canvas > .ag-section,
.ag-canvas > .alignfull {
	margin-block: 0;
}

/* Kasa, koszyk, konto — szerszy układ niż zwykły tekst. */
.ag-canvas--wide {
	--wp--style--global--content-size: var(--wp--style--global--wide-size, 1200px);
}

.ag-page-body {
	padding-block: var(--s-7) var(--s-section);
}

.ag-section {
	position: relative;
	padding-block: var(--s-section);
}

.ag-section--tight {
	padding-top: 0;
}

/* Odstęp między nagłówkiem sekcji a jej treścią. */
.ag-section .ag-section-head + *,
.ag-section .ag-head-row + * {
	margin-block-start: var(--s-6);
}

/* Gęstszy rytm w kartach i małych grupach (zamiast 1.5rem z theme.json). */
.ag-mini > *,
.ag-quote__meta > *,
.ag-club__box > *,
.ag-head-row > * {
	margin-block: 0;
}

/* 5. PRZYCISKI ------------------------------------------------------------ */

.ag-btn,
.wp-element-button,
.wp-block-button__link,
.ag-canvas .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--s-2);
	min-height: 48px;
	padding: 0.85rem 1.6rem;
	border: 1.5px solid transparent;
	border-radius: var(--r-full);
	background: var(--g-blue);
	background-color: var(--c-blue);
	color: #fff;
	font-family: var(--f-body);
	font-size: var(--t-sm);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-shadow: var(--sh-blue);
	transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
		background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.ag-btn:hover,
.wp-element-button:hover,
.wp-block-button__link:hover {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 18px 36px -14px rgba(21, 101, 224, 0.7);
}

.ag-btn:active,
.wp-block-button__link:active {
	transform: translateY(0);
}

.ag-btn .ag-icon {
	transition: transform var(--dur) var(--ease);
}

.ag-btn:hover .ag-icon--arrow {
	transform: translateX(3px);
}

/* Obrys */
.ag-btn--ghost,
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: var(--c-surface);
	border-color: var(--c-line);
	color: var(--c-navy);
	box-shadow: none;
}

.ag-btn--ghost:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--c-surface);
	border-color: var(--c-blue);
	color: var(--c-blue);
	box-shadow: var(--sh-md);
}

/* Żółty */
.ag-btn--yellow,
.wp-block-button.is-style-zolty > .wp-block-button__link {
	background: var(--c-yellow);
	border-color: var(--c-yellow);
	color: var(--c-navy);
	box-shadow: 0 14px 30px -14px rgba(255, 196, 61, 0.7);
}

.ag-btn--yellow:hover,
.wp-block-button.is-style-zolty > .wp-block-button__link:hover {
	background: #FFB91F;
	color: var(--c-navy);
}

.ag-btn--block {
	width: 100%;
}

.ag-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	font-weight: 700;
	text-decoration: none;
}

.ag-link-arrow .ag-icon {
	transition: transform var(--dur) var(--ease);
}

.ag-link-arrow:hover .ag-icon {
	transform: translateX(3px);
}

.ag-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--r-full);
	background: transparent;
	color: var(--c-navy);
	cursor: pointer;
	transition: background-color var(--dur) var(--ease);
}

.ag-icon-btn:hover {
	background: var(--c-blue-tint);
	color: var(--c-navy);
}

/* 6. NAGŁÓWEK I MENU ------------------------------------------------------ */

.ag-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--c-line);
	transition: box-shadow var(--dur) var(--ease);
}

.admin-bar .ag-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.ag-header.is-scrolled {
	box-shadow: var(--sh-md);
}

/*
 * Przezroczysty nagłówek nad jasnym hero (strona główna, podstrony z nagłówkiem).
 * Hero „wchodzi" pod nagłówek, a nagłówek robi się biały dopiero po przewinięciu.
 * Wysokość nagłówka (--ag-header-h) mierzy app.js; 64px to zapas bez JS.
 */
:root {
	--ag-header-h: 64px;
}

body:has(.ag-main > .ag-page-hero:first-child, .ag-main > .ag-canvas > .ag-hero:first-child, .ag-main > .ag-canvas > .ag-intro:first-child) .ag-header {
	margin-bottom: calc(-1 * var(--ag-header-h));
	transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

body:has(.ag-main > .ag-page-hero:first-child, .ag-main > .ag-canvas > .ag-hero:first-child, .ag-main > .ag-canvas > .ag-intro:first-child) .ag-header:not(.is-scrolled):not(:has(.ag-nav.is-open, .ag-search[open])) {
	background: transparent;
	border-bottom-color: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.ag-main > .ag-page-hero:first-child {
	padding-top: calc(clamp(1.5rem, 1rem + 2vw, 2.75rem) + var(--ag-header-h));
}

.ag-main > .ag-canvas > .ag-hero:first-child {
	padding-top: calc(clamp(1.75rem, 1rem + 2.5vw, 3.25rem) + var(--ag-header-h));
}

.ag-main > .ag-canvas > .ag-intro:first-child {
	padding-top: calc(clamp(2rem, 1.5rem + 2.5vw, 3.5rem) + var(--ag-header-h));
}

.ag-header__inner {
	display: flex;
	align-items: center;
	gap: var(--s-5);
	min-height: 72px;
}

.ag-header__brand {
	flex: none;
}

.ag-header__brand .custom-logo {
	display: block;
	width: auto;
	max-height: 56px;
}

.ag-logo {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	color: var(--c-navy);
	text-decoration: none;
}

.ag-logo:hover {
	color: var(--c-navy);
}

.ag-logo__text {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
}

.ag-logo__name {
	font-family: var(--f-display);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.ag-logo__tagline {
	margin-top: 3px;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.ag-logo__heart {
	display: inline-block;
	margin-left: 0.3em;
	color: var(--c-yellow);
	vertical-align: -0.05em;
	transform: rotate(-10deg);
}

.ag-logo__heart .ag-icon {
	display: block;
	width: 0.8em;
	height: 0.8em;
}

.ag-nav {
	margin-left: auto;
}

.ag-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s-1) var(--s-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ag-nav__list > li {
	position: relative;
}

.ag-nav__list a {
	position: relative;
	display: block;
	padding: var(--s-2) 0;
	font-size: var(--t-sm);
	font-weight: 600;
	color: var(--c-navy);
	text-decoration: none;
}

.ag-nav__list > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 2px;
	height: 2px;
	border-radius: 2px;
	background: var(--c-blue);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--dur) var(--ease);
}

.ag-nav__list > li > a:hover::after,
.ag-nav__list > .current-menu-item > a::after,
.ag-nav__list > .current-menu-ancestor > a::after,
.ag-nav__list > .current_page_item > a::after {
	transform: scaleX(1);
}

/* Podmenu */
.ag-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: -1rem;
	z-index: 10;
	min-width: 220px;
	margin: 0;
	padding: var(--s-2);
	list-style: none;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	box-shadow: var(--sh-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}

.ag-nav li:hover > .sub-menu,
.ag-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.ag-nav .sub-menu a {
	padding: var(--s-2) var(--s-3);
	border-radius: var(--r-sm);
}

.ag-nav .sub-menu a:hover {
	background: var(--c-blue-tint);
}

.ag-nav__cta {
	display: none;
}

.ag-header__actions {
	display: flex;
	align-items: center;
	gap: var(--s-1);
}

.ag-header__cta {
	min-height: 44px;
	margin-left: var(--s-2);
	padding: 0.6rem 1.25rem;
	box-shadow: 0 6px 16px -8px rgba(21, 101, 224, 0.55);
}

.ag-nav-toggle {
	display: none;
}

.ag-nav-toggle__close {
	display: none;
}

.ag-nav-toggle[aria-expanded="true"] .ag-nav-toggle__open {
	display: none;
}

.ag-nav-toggle[aria-expanded="true"] .ag-nav-toggle__close {
	display: inline-flex;
}

/* Koszyk w nagłówku */
.ag-cart__count {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: var(--r-full);
	background: var(--c-yellow);
	color: var(--c-navy);
	font-size: 11px;
	font-weight: 800;
	line-height: 18px;
	text-align: center;
}

/* Wyszukiwarka w nagłówku */
.ag-search {
	position: relative;
}

.ag-search > summary {
	list-style: none;
}

.ag-search > summary::-webkit-details-marker {
	display: none;
}

.ag-search__panel {
	position: absolute;
	top: calc(100% + 12px);
	right: -60px;
	z-index: 20;
	width: min(420px, 90vw);
	padding: var(--s-3);
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	box-shadow: var(--sh-lg);
}

/* 7. NAGŁÓWEK PODSTRON ---------------------------------------------------- */

.ag-page-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
	background: var(--g-hero);
}

.ag-page-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--g-glow);
	pointer-events: none;
}

.ag-page-hero__inner {
	position: relative;
	z-index: 1;
}

.ag-page-hero__title {
	max-width: 22ch;
	margin: 0;
	font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem);
	line-height: 1.08;
}

.ag-page-hero__lead {
	max-width: 62ch;
	margin-top: var(--s-4);
}

.ag-page-hero__lead p {
	margin: 0;
}

.ag-meta {
	margin: var(--s-4) 0 0;
	font-size: var(--t-sm);
	color: var(--c-muted);
}

/* Okruszki */
.ag-crumbs {
	margin-bottom: var(--s-4);
	font-size: var(--t-sm);
	color: var(--c-muted);
}

.ag-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-1) var(--s-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ag-crumbs li + li::before {
	content: "›";
	margin-right: var(--s-2);
	color: #9AA8BC;
}

.ag-crumbs a {
	color: var(--c-muted);
	text-decoration: none;
}

.ag-crumbs a:hover {
	color: var(--c-blue);
	text-decoration: underline;
}

.ag-crumbs [aria-current] {
	color: var(--c-navy);
	font-weight: 600;
}

/* 8. STYLE BLOKÓW (wybierane w edytorze) ---------------------------------- */

/* Odręczny dopisek */
.is-style-odreczny {
	display: inline-block;
	font-family: var(--f-hand);
	font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--c-blue);
	transform: rotate(-3deg);
}

/* Wyśrodkowany / do prawej: jako blok, żeby wyrównanie działało. */
.is-style-odreczny.has-text-align-center,
.is-style-odreczny.has-text-align-right {
	display: block;
}

/* Lista z ptaszkami */
ul.is-style-ptaszki {
	padding-left: 0;
	list-style: none;
}

ul.is-style-ptaszki > li {
	position: relative;
	padding-left: 1.9rem;
}

ul.is-style-ptaszki > li + li {
	margin-top: var(--s-2);
}

ul.is-style-ptaszki > li::before {
	content: "";
	position: absolute;
	top: 0.22em;
	left: 0;
	width: 1.25rem;
	height: 1.25rem;
	background-color: var(--c-blue);
	-webkit-mask: var(--i-check) center / contain no-repeat;
	mask: var(--i-check) center / contain no-repeat;
}

/* Karta */
.wp-block-group.is-style-karta {
	padding: var(--s-5);
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	box-shadow: var(--sh-sm);
	transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.wp-block-group.is-style-karta:hover {
	transform: translateY(-3px);
	box-shadow: var(--sh-lg);
}

/* Zaokrąglone zdjęcia z edytora */
.wp-block-image img {
	border-radius: var(--r-lg);
}

.wp-block-image.is-style-rounded img {
	border-radius: var(--r-full);
}

/* 9. HERO I SLAJDER ------------------------------------------------------- */

.ag-hero {
	overflow: hidden;
	padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.75rem) clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

.ag-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--g-glow);
	pointer-events: none;
}

.ag-hero > * {
	position: relative;
	z-index: 1;
}

.wp-block-columns.ag-hero__cols {
	gap: clamp(1.5rem, 1rem + 3vw, 4.5rem);
	margin: 0;
}

.ag-hero__copy h1 {
	margin-block: 0 var(--s-4);
}

.ag-hero__copy .ag-lead {
	max-width: 36rem;
}

.ag-hero__copy .wp-block-buttons {
	margin-top: var(--s-5);
}

ul.ag-hero__trust {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2) var(--s-5);
	margin-top: var(--s-5);
	font-size: var(--t-sm);
	color: var(--c-muted);
}

ul.ag-hero__trust > li + li {
	margin-top: 0;
}

.ag-hero__media {
	position: relative;
}

.ag-hero__img {
	margin: 0;
}

.ag-hero__img img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--r-xl);
	box-shadow: var(--sh-lg);
}

.ag-hero__note {
	position: absolute;
	top: -0.5rem;
	right: -0.5rem;
	z-index: 2;
	max-width: 15rem;
	margin: 0;
	padding: var(--s-2) var(--s-4);
	background: rgba(255, 255, 255, 0.9);
	border-radius: var(--r-md);
	box-shadow: var(--sh-md);
	transform: rotate(-4deg);
}

/* Slajdy: bez JS widać pierwszy; po starcie JS przełączamy klasą is-active. */
.ag-hero__slide + .ag-hero__slide {
	margin-top: var(--s-7);
}

.ag-js .ag-hero__slide:not(:first-child) {
	display: none;
}

.ag-hero.is-ready .ag-hero__slide {
	display: none;
	margin-top: 0;
}

.ag-hero.is-ready .ag-hero__slide.is-active {
	display: block;
	animation: agSlideIn 0.7s var(--ease) both;
}

.ag-hero__dots {
	display: flex;
	gap: var(--s-2);
	margin-top: var(--s-6);
}

.ag-hero__dots button {
	width: 36px;
	height: 6px;
	padding: 0;
	border: 0;
	border-radius: var(--r-full);
	background: rgba(11, 42, 91, 0.18);
	cursor: pointer;
	transition: background-color var(--dur) var(--ease), width var(--dur) var(--ease);
}

.ag-hero__dots button:hover {
	background: rgba(11, 42, 91, 0.35);
}

.ag-hero__dots button[aria-selected="true"] {
	width: 56px;
	background: var(--c-blue);
}

/* Kafelki korzyści pod slajdami */
.ag-hero__cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--s-4);
	margin-top: var(--s-7);
}

.ag-mini {
	display: grid;
	grid-template-columns: 44px 1fr;
	align-items: center;
	column-gap: var(--s-3);
	padding: var(--s-3) var(--s-4);
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	box-shadow: var(--sh-md);
	animation: agFloat 6s ease-in-out infinite;
}

.ag-mini:nth-child(2) { animation-delay: -1.5s; }
.ag-mini:nth-child(3) { animation-delay: -3s; }
.ag-mini:nth-child(4) { animation-delay: -4.5s; }

/* Kafelek z ikoną: kolor tła + ikona jako obrazek w tle. */
.ag-mini::before {
	content: "";
	grid-row: span 2;
	width: 44px;
	height: 44px;
	border-radius: var(--r-md);
	background: var(--c-blue-tint) var(--ib-cap) center / 22px no-repeat;
}

.ag-mini--live::before { background-image: var(--ib-clock); }
.ag-mini--ludzie::before { background-color: var(--c-yellow-soft); background-image: var(--ib-users-amber); }
.ag-mini--gwiazda::before { background-image: var(--ib-star); }

.ag-mini__title {
	font-size: var(--t-sm);
	font-weight: 700;
	line-height: 1.3;
	color: var(--c-navy);
}

.ag-mini__text {
	font-size: var(--t-xs);
	line-height: 1.4;
	color: var(--c-muted);
}

/* Statyczna wersja hero (np. „O mnie") */
.ag-hero--static .ag-hero__img img {
	aspect-ratio: 4 / 5;
}

/* 10. NAGŁÓWKI SEKCJI ----------------------------------------------------- */

.ag-section-head h2 {
	margin: 0;
}

.ag-section-head .ag-lead {
	max-width: 60ch;
	margin-top: var(--s-4);
}

.ag-section-head--center .ag-lead {
	margin-inline: auto;
}

.ag-head-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--s-4) var(--s-6);
}

.ag-head-row .wp-block-buttons {
	margin: 0;
}

/* Grupy ułożone siatką/flexem: odstępy robi gap, nie marginesy z edytora. */
.ag-hero__cards > *,
.ag-quote__who > * {
	margin-block: 0;
}

.ag-section .ag-head-row > .ag-section-head + * {
	margin-block-start: 0;
}

/* Sekcja wyśrodkowana (np. nagłówek Klubu) */
.ag-intro {
	padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
	overflow: hidden;
}

.ag-intro::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--g-glow);
	pointer-events: none;
}

.ag-intro > * {
	position: relative;
	z-index: 1;
}

.ag-intro h1 {
	margin-block: 0;
}

/* 11. DWIE DROGI ---------------------------------------------------------- */

.wp-block-columns.ag-doors {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--s-5);
}

.ag-door {
	position: relative;
	overflow: hidden;
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-xl);
	transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.ag-door::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--g-glow);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--dur) var(--ease);
}

.ag-door:hover {
	transform: translateY(-4px);
	border-color: #C8DAF5;
	box-shadow: var(--sh-lg);
}

.ag-door:hover::after {
	opacity: 1;
}

.ag-door::before {
	content: "";
	display: block;
	width: 52px;
	height: 52px;
	margin-bottom: var(--s-4);
	border-radius: var(--r-full);
	background: var(--c-blue-tint) var(--ib-cap) center / 24px no-repeat;
}

.ag-door--dorosli::before {
	background-image: var(--ib-briefcase);
}

.ag-door > h3 {
	margin-top: 0;
	font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
}

.ag-door > p {
	color: var(--c-muted);
}

.ag-door__link {
	margin-top: var(--s-5);
	font-weight: 700;
}

.ag-door__link a {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	text-decoration: none;
}

.ag-door__link a::after {
	content: "";
	width: 18px;
	height: 18px;
	background-color: currentColor;
	-webkit-mask: var(--i-arrow) center / contain no-repeat;
	mask: var(--i-arrow) center / contain no-repeat;
	transition: transform var(--dur) var(--ease);
}

/* Cała karta klikalna (link rozciągnięty na kartę). */
.ag-door__link a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.ag-door:hover .ag-door__link a::after {
	transform: translateX(4px);
}

/* 12. KARTY, SIATKI, POSTĘP ----------------------------------------------- */

.ag-grid {
	display: grid;
	gap: var(--s-5);
}

.ag-grid--kursy {
	/* maks. 3 kolumny — karty nie robią się za wąskie */
	grid-template-columns: repeat(auto-fill, minmax(max(250px, calc((100% - 2 * var(--s-5)) / 3)), 1fr));
}

.ag-grid--wpisy {
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.ag-grid--dash {
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: var(--s-4);
}

.ag-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.ag-card:hover {
	transform: translateY(-4px);
	border-color: #C8DAF5;
	box-shadow: var(--sh-lg);
}

.ag-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(135deg, #DCE8FD 0%, #C9DCFB 100%);
}

.ag-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	transition: transform 0.6s var(--ease);
}

.ag-card:hover .ag-card__media img {
	transform: scale(1.04);
}

.ag-card__ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #6E8CBE;
}

.ag-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--s-2);
	padding: var(--s-5);
}

.ag-card__eyebrow {
	margin: 0;
	font-size: var(--t-xs);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-blue);
}

.ag-card__title {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.25;
}

.ag-card__title a {
	color: var(--c-navy);
	text-decoration: none;
}

.ag-card__title a:hover {
	color: var(--c-blue);
}

.ag-card__text {
	flex: 1;
	margin: 0;
	font-size: var(--t-sm);
	color: var(--c-muted);
}

.ag-card__meta {
	display: flex;
	align-items: center;
	gap: var(--s-2);
	margin: 0;
	font-size: var(--t-xs);
	font-weight: 600;
	color: var(--c-muted);
}

.ag-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-3);
	margin-top: var(--s-3);
}

.ag-card__foot .ag-btn {
	width: 100%;
}

.ag-badge {
	display: inline-flex;
	align-items: center;
	padding: 5px 11px;
	border-radius: var(--r-full);
	background: var(--c-yellow);
	color: var(--c-navy);
	font-size: var(--t-xs);
	font-weight: 700;
	line-height: 1.2;
}

.ag-badge--float {
	position: absolute;
	top: var(--s-3);
	left: var(--s-3);
	z-index: 2;
	box-shadow: var(--sh-md);
}

.ag-badge.is-progress,
.ag-badge.is-access {
	background: var(--c-surface);
	color: var(--c-blue-dark);
}

.ag-badge.is-done {
	background: var(--c-success-bg);
	color: var(--c-success);
}

.ag-progress {
	height: 8px;
	overflow: hidden;
	border-radius: var(--r-full);
	background: var(--c-surface-2);
}

.ag-progress > span {
	display: block;
	height: 100%;
	border-radius: var(--r-full);
	background: var(--g-blue);
	transition: width 0.8s var(--ease);
}

.ag-progress-block__label {
	margin: 6px 0 0;
	font-size: var(--t-xs);
	color: var(--c-muted);
}

/* Pigułki kategorii */
.ag-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2);
	margin-bottom: var(--s-6);
}

.ag-chip {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 var(--s-4);
	border: 1px solid var(--c-line);
	border-radius: var(--r-full);
	background: var(--c-surface);
	color: var(--c-navy);
	font-size: var(--t-sm);
	font-weight: 600;
	text-decoration: none;
	transition: all var(--dur) var(--ease);
}

.ag-chip:hover,
.ag-chip[aria-current] {
	background: var(--c-blue);
	border-color: var(--c-blue);
	color: #fff;
}

/* 13. KLUB, OPINIE -------------------------------------------------------- */

.ag-club {
	position: relative;
	overflow: hidden;
	padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
	border-radius: var(--r-xl);
	background: var(--g-club);
	color: #DCE8FD;
}

.ag-club::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(50% 80% at 85% 10%, rgba(255, 196, 61, 0.22) 0%, rgba(255, 196, 61, 0) 70%);
	pointer-events: none;
}

.ag-club > * {
	position: relative;
	z-index: 1;
}

.ag-club h2,
.ag-club h3,
.ag-club strong {
	color: #fff;
}

.ag-club h2 {
	margin-top: 0;
}

.ag-club .is-style-nadtytul {
	color: var(--c-yellow);
}

.ag-club .ag-lead {
	color: #DCE8FD;
}

.ag-club ul.is-style-ptaszki > li::before {
	background-color: var(--c-yellow);
}

.wp-block-columns.ag-club__cols {
	gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
	margin: 0;
}

.ag-club__box {
	padding: var(--s-6);
	text-align: center;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: var(--r-lg);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.ag-club__small {
	font-size: var(--t-sm);
	color: #BED3F6;
}

.ag-club__box .ag-club__price {
	margin-top: var(--s-2);
	font-family: var(--f-display);
	font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem);
	font-weight: 700;
	line-height: 1;
	color: #fff;
}

.ag-club__box .ag-club__cta {
	margin-top: var(--s-5);
}

.ag-club__cta .wp-block-button {
	width: 100%;
}

.ag-club__cta .wp-block-button__link {
	width: 100%;
	min-height: 56px;
	font-size: 1.0625rem;
}

.ag-club__box .ag-club__note {
	margin-top: var(--s-3);
	font-size: var(--t-sm);
	color: #BED3F6;
}

/* Opinie */
.wp-block-columns.ag-quotes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--s-5);
}

.ag-quotes > .wp-block-column {
	display: flex;
}

.ag-quote {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.ag-quote::before {
	content: "\201D";
	display: block;
	height: 1.6rem;
	font-family: var(--f-display);
	font-size: 3.5rem;
	line-height: 1;
	color: #B9D0F4;
}

.ag-quote__text {
	flex: 1;
	font-style: italic;
	color: var(--c-body);
}

.ag-quote__who {
	display: flex;
	align-items: center;
	gap: var(--s-3);
	margin-top: var(--s-5);
}

.ag-quote__avatar {
	flex: none;
	margin: 0;
}

.ag-quote__avatar img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: var(--r-full);
}

.ag-quote__name {
	font-weight: 700;
	color: var(--c-navy);
	line-height: 1.3;
}

.ag-quote__role {
	font-size: var(--t-xs);
	color: var(--c-muted);
}

.ag-stars {
	font-size: var(--t-sm);
	letter-spacing: 0.08em;
	color: #E8A317;
}

/* 14. KROKI --------------------------------------------------------------- */

.wp-block-columns.ag-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--s-6) var(--s-5);
	counter-reset: none;
}

.ag-step > * {
	margin-block: 0;
}

.ag-step > * + * {
	margin-top: var(--s-3);
}

.ag-step .ag-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--r-full);
	background: var(--g-blue);
	color: #fff;
	font-weight: 800;
	box-shadow: var(--sh-blue);
}

.ag-step h3 {
	font-size: 1.2rem;
}

.ag-step p:not(.ag-step__num) {
	font-size: var(--t-sm);
	color: var(--c-muted);
}

/* 15. KARTY-PANELE Z IKONĄ ------------------------------------------------ */

.wp-block-columns.ag-panels {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--s-5);
}

.wp-block-columns.ag-panels--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ag-panels > .wp-block-column {
	display: flex;
}

.ag-panel {
	width: 100%;
}

.ag-panel > * {
	margin-block: 0;
}

.ag-panel > * + * {
	margin-top: var(--s-3);
}

.ag-panel::before {
	content: "";
	display: block;
	width: 44px;
	height: 44px;
	margin-bottom: var(--s-4);
	border-radius: var(--r-md);
	background: var(--c-blue-tint) var(--ib-star) center / 22px no-repeat;
}

.ag-panel--chat::before { background-image: var(--ib-chat); }
.ag-panel--clock::before { background-image: var(--ib-clock); }
.ag-panel--users::before { background-image: var(--ib-users); }
.ag-panel--heart::before { background-color: var(--c-yellow-soft); background-image: var(--ib-heart-amber); }

.ag-panel h3 {
	font-size: 1.2rem;
}

.ag-panel p {
	font-size: var(--t-sm);
	color: var(--c-muted);
}

/* 16. FAQ ----------------------------------------------------------------- */

.ag-faq > .wp-block-details,
.ag-ld-content details.ag-faq {
	margin: 0 0 var(--s-3);
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	transition: box-shadow var(--dur) var(--ease);
}

.ag-faq > .wp-block-details[open] {
	box-shadow: var(--sh-md);
}

.ag-faq > .wp-block-details > summary {
	position: relative;
	padding: var(--s-4) 3.25rem var(--s-4) var(--s-5);
	font-weight: 700;
	color: var(--c-navy);
	cursor: pointer;
	list-style: none;
}

.ag-faq > .wp-block-details > summary::-webkit-details-marker {
	display: none;
}

.ag-faq > .wp-block-details > summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: var(--s-5);
	width: 18px;
	height: 18px;
	margin-top: -9px;
	background-color: var(--c-blue);
	-webkit-mask: var(--i-plus) center / contain no-repeat;
	mask: var(--i-plus) center / contain no-repeat;
	transition: transform var(--dur) var(--ease);
}

.ag-faq > .wp-block-details[open] > summary::after {
	transform: rotate(45deg);
}

.ag-faq > .wp-block-details > :not(summary) {
	margin: 0;
	padding: 0 var(--s-5) var(--s-4);
	color: var(--c-body);
}

/* 17. ZAPROSZENIE (CTA) --------------------------------------------------- */

.ag-cta-band {
	padding: clamp(1.75rem, 1rem + 3vw, 3rem);
	border-radius: var(--r-xl);
	background: var(--c-sky);
}

.ag-cta-band > .wp-block-columns {
	gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
	margin: 0;
}

.ag-cta-band__img {
	margin: 0;
}

.ag-cta-band__img img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--r-xl);
	box-shadow: var(--sh-lg);
}

.ag-cta-band h2 {
	margin-top: 0;
}

/* Wersja z szablonu PHP (katalog kursów) */
.ag-cta-band--compact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-5);
}

.ag-cta-band--compact h2 {
	margin: 0;
}

.ag-cta-band--compact .ag-lead {
	max-width: 52ch;
	margin: var(--s-3) 0 0;
}

/* 18. KONTAKT ------------------------------------------------------------- */

.wp-block-columns.ag-contact {
	gap: clamp(1.5rem, 1rem + 3vw, 4rem);
	margin: 0;
}

.ag-contact__list {
	padding-left: 0;
	list-style: none;
}

.ag-contact__list li {
	padding: var(--s-2) 0;
	border-bottom: 1px solid var(--c-line);
}

/* 19. STRONA KURSU -------------------------------------------------------- */

.ag-course-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(1.5rem, 1rem + 3vw, 4rem);
}

.ag-course-hero__inner:not(:has(.ag-course-hero__media)) {
	grid-template-columns: minmax(0, 1fr);
}

.ag-course-hero .ag-lead {
	max-width: 58ch;
	margin: var(--s-4) 0 0;
}

.ag-course-hero__media {
	margin: 0;
}

.ag-course-hero__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--r-xl);
	box-shadow: var(--sh-lg);
}

.ag-course-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2);
	margin: var(--s-5) 0 0;
	padding: 0;
	list-style: none;
}

.ag-course-meta li {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	padding: var(--s-2) var(--s-4);
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid var(--c-line);
	border-radius: var(--r-full);
	font-size: var(--t-sm);
	font-weight: 600;
	color: var(--c-navy);
}

.ag-course-meta .ag-icon {
	color: var(--c-blue);
}

.ag-course {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	align-items: start;
	gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
	padding-block: var(--s-7) var(--s-section);
}

.ag-course__aside {
	display: grid;
	gap: var(--s-4);
	position: sticky;
	top: 100px;
}

.ag-side-card {
	padding: var(--s-5);
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
}

.ag-side-card__eyebrow {
	margin: 0 0 var(--s-1);
	font-size: var(--t-xs);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-blue);
}

.ag-side-card__big {
	margin: 0 0 var(--s-3);
	font-family: var(--f-display);
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1;
	color: var(--c-navy);
}

.ag-side-card__note {
	margin: var(--s-2) 0 var(--s-4);
	font-size: var(--t-sm);
	color: var(--c-muted);
}

.ag-side-card__name {
	margin: 0 0 var(--s-3);
	font-weight: 700;
	color: var(--c-navy);
}

.ag-klub-box {
	position: relative;
	overflow: hidden;
	padding: var(--s-6) var(--s-5);
	border-radius: var(--r-lg);
	background: var(--g-club);
	color: #DCE8FD;
}

.ag-klub-box::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(60% 70% at 90% 0%, rgba(255, 196, 61, 0.25) 0%, rgba(255, 196, 61, 0) 70%);
	pointer-events: none;
}

.ag-klub-box > * {
	position: relative;
	z-index: 1;
}

.ag-klub-box__eyebrow {
	margin: 0 0 var(--s-2);
	font-size: var(--t-xs);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-yellow);
}

.ag-klub-box__title {
	margin: 0 0 var(--s-3);
	font-size: 1.5rem;
	color: #fff;
}

.ag-klub-box__text {
	margin: 0 0 var(--s-4);
	font-size: var(--t-sm);
}

.ag-klub-box__price {
	margin: 0 0 var(--s-4);
	font-family: var(--f-display);
	font-size: 1.8rem;
	font-weight: 700;
	color: #fff;
}

.ag-klub-box__more {
	display: block;
	margin-top: var(--s-3);
	color: #DCE8FD;
	font-size: var(--t-sm);
	text-align: center;
}

.ag-klub-box__more:hover {
	color: #fff;
}

/* Widżety (panel boczny kursu, dół katalogu) */
.ag-widgets {
	display: grid;
	gap: var(--s-4);
}

.ag-widget__title {
	margin: 0 0 var(--s-3);
	font-size: 1.2rem;
}

/* 20. LEKCJA / TEMAT / QUIZ ----------------------------------------------- */

.ag-step-layout {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	align-items: start;
	gap: clamp(1.5rem, 1rem + 2.5vw, 3rem);
	padding-block: var(--s-6) var(--s-section);
}

.ag-step-layout:not(:has(.ag-step-nav)) {
	grid-template-columns: minmax(0, 1fr);
	max-width: calc(var(--wrap-nar) + 2 * var(--gutter));
}

.ag-step-nav {
	position: sticky;
	top: 100px;
	max-height: calc(100vh - 120px);
	overflow: auto;
	padding: var(--s-4);
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	scrollbar-width: thin;
}

.ag-step-nav__summary {
	display: flex;
	align-items: center;
	gap: var(--s-2);
	padding: var(--s-1) 0 var(--s-3);
	font-size: var(--t-xs);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-blue);
	cursor: pointer;
	list-style: none;
}

.ag-step-nav__summary::-webkit-details-marker {
	display: none;
}

.ag-step-nav__head {
	padding-bottom: var(--s-4);
	margin-bottom: var(--s-3);
	border-bottom: 1px solid var(--c-line);
}

.ag-step-nav__course {
	display: block;
	margin-bottom: var(--s-3);
	font-family: var(--f-display);
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--c-navy);
	text-decoration: none;
}

.ag-step-nav__note {
	margin: 6px 0 0;
	font-size: var(--t-xs);
	color: var(--c-muted);
}

.ag-step-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ag-step-list a {
	display: flex;
	align-items: flex-start;
	gap: var(--s-2);
	padding: var(--s-2) var(--s-2);
	border-radius: var(--r-sm);
	font-size: var(--t-sm);
	line-height: 1.4;
	color: var(--c-body);
	text-decoration: none;
	transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.ag-step-list a:hover {
	background: var(--c-blue-tint);
	color: var(--c-navy);
}

.ag-step-list .ag-icon {
	margin-top: 1px;
	color: #9AA8BC;
}

.ag-step-list__item.is-done > a .ag-icon {
	color: var(--c-success);
}

.ag-step-list__item.is-current > a {
	background: var(--g-blue);
	color: #fff;
	font-weight: 700;
}

.ag-step-list__item.is-current > a .ag-icon {
	color: #fff;
}

.ag-step-list--sub {
	margin: var(--s-1) 0 var(--s-2) var(--s-4);
	padding-left: var(--s-2);
	border-left: 2px solid var(--c-line);
}

.ag-step-list--sub a {
	font-size: var(--t-xs);
}

.ag-step-main__head {
	margin-bottom: var(--s-5);
}

.ag-step-main__title {
	margin: 0;
	font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem);
	line-height: 1.12;
}

/* Treść lekcji/opisu kursu (wnętrze LearnDash) */
.ag-prose > * + *,
.ag-ld-content .ld-tab-content > * + * {
	margin-top: var(--s-4);
}

.ag-prose h2,
.ag-ld-content .ld-tab-content h2 {
	margin-top: var(--s-7);
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.ag-prose h3,
.ag-ld-content .ld-tab-content h3 {
	margin-top: var(--s-6);
	font-size: 1.35rem;
}

/* 21. BLOG, KOMENTARZE, PAGINACJA ----------------------------------------- */

.ag-post__cover {
	margin-top: calc(-1 * var(--s-6));
	margin-bottom: 0;
	position: relative;
	z-index: 2;
}

.ag-post__cover img {
	display: block;
	width: 100%;
	max-height: 520px;
	object-fit: cover;
	border-radius: var(--r-xl);
	box-shadow: var(--sh-lg);
}

.ag-post__footer {
	padding-bottom: var(--s-7);
}

.ag-tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2);
	margin: 0 0 var(--s-6);
	padding: 0;
	list-style: none;
}

.ag-tags a {
	display: inline-block;
	padding: 4px 12px;
	border-radius: var(--r-full);
	background: var(--c-blue-tint);
	color: var(--c-blue-dark);
	font-size: var(--t-sm);
	text-decoration: none;
}

.ag-post-nav .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--s-4);
}

.ag-post-nav a {
	display: block;
	height: 100%;
	padding: var(--s-4) var(--s-5);
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	text-decoration: none;
	transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.ag-post-nav a:hover {
	border-color: var(--c-blue);
	box-shadow: var(--sh-md);
}

.ag-post-nav .nav-next {
	grid-column: 2;
	text-align: right;
}

.ag-post-nav__label {
	display: block;
	font-size: var(--t-xs);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.ag-post-nav__title {
	display: block;
	margin-top: var(--s-1);
	font-family: var(--f-display);
	font-weight: 700;
	color: var(--c-navy);
}

.ag-comments {
	padding-bottom: var(--s-section);
}

.ag-comments__title {
	font-size: 1.6rem;
}

.ag-comments__list,
.ag-comments__list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ag-comments__list .children {
	margin-left: var(--s-6);
}

.ag-comments__list .comment-body {
	margin: var(--s-4) 0;
	padding: var(--s-5);
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
}

.ag-comments__list .avatar {
	border-radius: var(--r-full);
	vertical-align: middle;
	margin-right: var(--s-2);
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: var(--c-navy);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
}

/* Wspólne pola formularzy */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
	min-height: 48px;
	padding: 0.65rem 1rem;
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	background: var(--c-surface);
	color: var(--c-body);
	font: inherit;
	font-size: var(--t-sm);
	transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

textarea {
	min-height: 140px;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--c-blue);
	outline: none;
	box-shadow: 0 0 0 3px rgba(21, 101, 224, 0.18);
}

/* Paginacja */
.ag-pagination,
.navigation.pagination {
	margin-top: var(--s-7);
}

.ag-pagination .nav-links,
.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--s-2);
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 var(--s-3);
	border: 1px solid var(--c-line);
	border-radius: var(--r-full);
	background: var(--c-surface);
	color: var(--c-navy);
	font-weight: 600;
	text-decoration: none;
}

a.page-numbers:hover {
	border-color: var(--c-blue);
	color: var(--c-blue);
}

.page-numbers.current {
	border-color: var(--c-blue);
	background: var(--c-blue);
	color: #fff;
}

.ag-page-links {
	margin-top: var(--s-6);
	font-weight: 600;
}

/* 22. WYSZUKIWARKA, 404, PUSTA LISTA -------------------------------------- */

.ag-searchform {
	display: flex;
	gap: var(--s-2);
}

.ag-searchform__input {
	flex: 1;
	min-width: 0;
	border-radius: var(--r-full);
	padding-inline: 1.25rem;
}

.ag-searchform__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: var(--r-full);
	background: var(--g-blue);
	color: #fff;
	cursor: pointer;
}

.ag-search-again {
	max-width: 560px;
	margin-bottom: var(--s-6);
}

.ag-404 {
	padding-block: var(--s-section);
	background: var(--g-hero);
	text-align: center;
}

.ag-404__inner {
	max-width: 680px;
}

.ag-404__code {
	margin: 0;
	font-family: var(--f-hand);
	font-size: clamp(5rem, 3rem + 8vw, 9rem);
	font-weight: 700;
	line-height: 1;
	color: var(--c-blue);
	transform: rotate(-4deg);
}

.ag-404 h1 {
	margin: var(--s-4) 0;
	font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem);
}

.ag-404__search {
	max-width: 480px;
	margin: var(--s-6) auto var(--s-5);
}

.ag-404__actions,
.ag-dash__empty {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--s-3);
}

.ag-empty {
	max-width: 560px;
	margin-inline: auto;
	padding: var(--s-7) var(--s-5);
	text-align: center;
}

.ag-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: var(--r-full);
	background: var(--c-blue-tint);
	color: var(--c-blue);
}

.ag-empty__search {
	margin: var(--s-5) 0;
}

/* 23. STOPKA -------------------------------------------------------------- */

.ag-footer {
	padding-block: var(--s-8) var(--s-6);
	background: var(--c-navy);
	color: #B9CBE8;
	font-size: var(--t-sm);
}

.ag-footer a {
	color: #D8E5F8;
	text-decoration: none;
}

.ag-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.ag-footer .ag-logo,
.ag-footer .ag-logo:hover {
	color: #fff;
	text-decoration: none;
}

.ag-footer .ag-logo__tagline {
	color: #90A9D0;
}

.ag-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
	gap: var(--s-6);
}

.ag-footer__text {
	max-width: 32ch;
	margin: var(--s-4) 0 0;
}

.ag-footer__title {
	margin: 0 0 var(--s-4);
	font-family: var(--f-body);
	font-size: var(--t-xs);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
}

.ag-footer__list {
	display: grid;
	gap: var(--s-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ag-social {
	display: flex;
	gap: var(--s-2);
	margin-top: var(--s-5);
}

.ag-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--r-full);
	background: rgba(255, 255, 255, 0.1);
	transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.ag-social a:hover {
	background: var(--c-blue);
	transform: translateY(-2px);
}

.ag-footer__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-4);
	margin-top: var(--s-7);
	padding-top: var(--s-5);
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: var(--t-xs);
}

.ag-footer__bar p {
	margin: 0;
}

.ag-footer__legal-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2) var(--s-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* 24. WIDEO (LOOM I INNE OSADZENIA) --------------------------------------- */

.ag-video {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: var(--r-lg);
	background: var(--c-navy);
	box-shadow: var(--sh-lg);
}

.ag-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.wp-block-embed {
	margin-block: var(--s-5);
}

.wp-block-embed__wrapper .ag-video {
	margin: 0;
}

/* 25. ANIMACJE ------------------------------------------------------------ */

@keyframes agSlideIn {
	from {
		opacity: 0;
		transform: translateY(14px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes agFloat {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-6px);
	}
}

@keyframes agNoteIn {
	from {
		opacity: 0;
		transform: rotate(-12deg) scale(0.85);
	}

	to {
		opacity: 1;
		transform: rotate(-4deg) scale(1);
	}
}

.ag-hero__slide.is-active .ag-hero__note {
	animation: agNoteIn 0.8s 0.25s var(--ease) both;
}

/* Pojawianie się przy przewijaniu (włącza JS: klasa ag-reveal-on na <html>). */
.ag-reveal-on .ag-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
	transition-delay: var(--ag-delay, 0s);
}

.ag-reveal-on .ag-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* 25b. SMUKLEJSZY UKŁAD (wersja 1.1) ---------------------------------------
   Mniejsze odstępy, cieńszy nagłówek, niższe hero, mniejsze karty.
   Stoi przed responsywnością, żeby reguły dla telefonów dalej wygrywały. */

/* Nagłówek */
.ag-header__inner {
	min-height: 64px;
	gap: var(--s-4);
}

.ag-logo__name {
	font-size: 1.2rem;
}

.ag-nav__list a {
	font-size: 0.9375rem;
}

.ag-header .ag-icon-btn {
	width: 40px;
	height: 40px;
}

.ag-header__cta {
	min-height: 40px;
	padding: 0.5rem 1.1rem;
	font-size: 0.875rem;
}

/* Rytm sekcji */
.ag-section .ag-section-head + *,
.ag-section .ag-head-row + * {
	margin-block-start: var(--s-5);
}

.ag-section-head .ag-lead {
	margin-top: var(--s-3);
}

.ag-lead,
.ag-lead p {
	line-height: 1.6;
}

/* Hero na stronie głównej */
.ag-hero {
	padding-block: clamp(1.75rem, 1rem + 2.5vw, 3.25rem) clamp(1.5rem, 1rem + 2vw, 2.75rem);
}

.wp-block-columns.ag-hero__cols {
	gap: clamp(1.5rem, 1rem + 3vw, 4rem);
}

.ag-hero__copy .ag-lead {
	max-width: 34rem;
}

.ag-hero__copy .wp-block-buttons {
	margin-top: var(--s-4);
}

.ag-hero__media {
	max-width: 340px;
	margin-left: auto;
}

.ag-hero__note {
	max-width: 12.5rem;
	font-size: 1.35rem;
}

.ag-hero__dots {
	margin-top: var(--s-5);
}

/* Nagłówek podstron i kursów */
.ag-page-hero {
	padding-block: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}

.ag-page-hero__title {
	font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
}

.ag-page-hero__lead {
	margin-top: var(--s-3);
}

.ag-page-hero__lead,
.ag-page-hero__lead p {
	font-size: var(--t-body);
}

.ag-course-meta {
	margin-top: var(--s-4);
}

.ag-course-meta li {
	padding: 0.3rem var(--s-3);
	font-size: var(--t-xs);
}

.ag-course-hero__media {
	max-width: 420px;
	justify-self: end;
}

.ag-intro {
	padding-block: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
}

/* Jak to działa: cztery kafelki */
.ag-features {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--s-4);
}

.ag-features > *,
.ag-feature > * {
	margin-block: 0;
}

.ag-feature {
	padding: var(--s-5);
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
}

.ag-feature::before {
	content: "";
	display: block;
	width: 40px;
	height: 40px;
	margin-bottom: var(--s-3);
	border-radius: var(--r-md);
	background: var(--c-blue-tint) var(--ib-video) center / 20px no-repeat;
}

.ag-feature--materialy::before { background-image: var(--ib-doc); }
.ag-feature--online::before { background-image: var(--ib-chat); }
.ag-feature--discord::before { background-color: var(--c-yellow-soft); background-image: var(--ib-users-amber); }

.ag-feature h3 {
	margin-bottom: var(--s-2);
	font-size: 1.0625rem;
	line-height: 1.3;
}

.ag-feature p {
	font-size: var(--t-sm);
	line-height: 1.55;
	color: var(--c-muted);
}

/* Karty kursów */
.ag-card__media {
	aspect-ratio: 16 / 9;
}

.ag-card__body {
	padding: var(--s-4) var(--s-5) var(--s-5);
}

.ag-card__title {
	font-size: 1.125rem;
}

.ag-card--soon {
	border-style: dashed;
	border-color: #B9D0F4;
	background: rgba(255, 255, 255, 0.55);
}

.ag-card--soon:hover {
	transform: none;
	box-shadow: none;
}

.ag-card--soon .ag-card__body {
	justify-content: center;
	gap: var(--s-3);
}

.ag-card--soon .ag-card__text {
	flex: 0 0 auto;
}

.ag-card--soon .ag-badge {
	align-self: flex-start;
	background: var(--c-sky);
	color: var(--c-blue-dark);
}

/* Klub */
.ag-club {
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.ag-club__box {
	padding: var(--s-5);
}

.ag-club__box .ag-club__price {
	font-size: clamp(2rem, 1.7rem + 1vw, 2.5rem);
}

.ag-club__cta .wp-block-button__link {
	min-height: 48px;
	font-size: var(--t-sm);
}

.ag-club ul.is-style-ptaszki {
	font-size: var(--t-sm);
}

/* Opinie */
.wp-block-columns.ag-quotes {
	gap: var(--s-4);
}

.ag-quote::before {
	height: 1.1rem;
	font-size: 2.5rem;
}

.ag-quote__text {
	font-size: var(--t-sm);
	line-height: 1.6;
}

.ag-quote__who {
	margin-top: var(--s-4);
}

.ag-quote__avatar img {
	width: 44px;
	height: 44px;
}

/* Kim jestem */
.wp-block-columns.ag-me__cols {
	gap: clamp(1.5rem, 1rem + 3vw, 4rem);
	margin: 0;
}

.ag-me__img {
	max-width: 360px;
	margin: 0;
}

.ag-me__img img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--r-xl);
	box-shadow: var(--sh-lg);
}

.ag-me__copy h2 {
	margin-top: 0;
}

.ag-me__copy p {
	max-width: 60ch;
}

ul.ag-me__facts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2);
	margin-top: var(--s-4);
	padding: 0;
	list-style: none;
}

ul.ag-me__facts > li {
	margin: 0;
	padding: 0.3rem 0.8rem;
	border-radius: var(--r-full);
	background: var(--c-sky);
	color: var(--c-navy);
	font-size: var(--t-xs);
	font-weight: 700;
}

.ag-me .wp-block-buttons {
	margin-top: var(--s-5);
}

/* Zaproszenie na końcu */
.ag-cta-band {
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.ag-cta-band__img {
	max-width: 280px;
}

/* 26. RESPONSYWNOŚĆ ------------------------------------------------------- */

@media (max-width: 1100px) {
	.ag-hero__cards,
	.ag-features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wp-block-columns.ag-steps,
	.wp-block-columns.ag-panels--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ag-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ag-course {
		grid-template-columns: minmax(0, 1fr) 290px;
	}

	.ag-header__cta {
		display: none;
	}
}

@media (max-width: 960px) {
	/* Menu mobilne: z JS chowamy pod przyciskiem, bez JS zostaje widoczne. */
	.ag-js .ag-nav-toggle {
		display: inline-flex;
		order: 3;
	}

	.ag-header__inner {
		flex-wrap: wrap;
	}

	.ag-header__actions {
		margin-left: auto;
	}

	.ag-nav {
		order: 4;
		width: 100%;
		margin: 0;
		padding-bottom: var(--s-3);
	}

	.ag-js .ag-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: calc(100vh - 76px);
		overflow: auto;
		padding: var(--s-4) var(--gutter) var(--s-5);
		background: var(--c-surface);
		border-bottom: 1px solid var(--c-line);
		box-shadow: var(--sh-lg);
	}

	.ag-js .ag-nav.is-open {
		display: block;
		animation: agSlideIn 0.3s var(--ease) both;
	}

	.ag-js .ag-nav .ag-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.ag-js .ag-nav .ag-nav__list a {
		padding: var(--s-3) 0;
		font-size: 1.05rem;
		border-bottom: 1px solid var(--c-line);
	}

	.ag-js .ag-nav .ag-nav__list > li > a::after {
		display: none;
	}

	.ag-nav .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 0 var(--s-4);
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.ag-js .ag-nav__cta {
		display: flex;
		width: 100%;
		margin-top: var(--s-4);
	}

	.ag-course,
	.ag-step-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.ag-course__aside,
	.ag-step-nav {
		position: static;
		max-height: none;
	}

	.ag-course-hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.ag-course-hero__media {
		order: -1;
	}

	.wp-block-columns.ag-quotes,
	.wp-block-columns.ag-panels {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 781px) {
	/* Na telefonie najpierw hasło i przyciski, zdjęcie pod nimi. */
	.ag-hero__media {
		max-width: 22rem;
		width: 100%;
		margin-inline: auto;
	}

	.ag-hero__img img {
		aspect-ratio: 1 / 1;
	}

	.ag-hero__cards {
		gap: var(--s-3);
		margin-top: var(--s-6);
	}

	.ag-hero__note {
		right: 0.5rem;
		top: auto;
		bottom: 1rem;
	}

	.wp-block-columns.ag-doors {
		grid-template-columns: minmax(0, 1fr);
	}

	.ag-cta-band__img {
		max-width: 20rem;
	}

	.ag-me__img {
		max-width: 280px;
		margin-inline: auto;
	}

	.ag-post-nav .nav-links {
		grid-template-columns: minmax(0, 1fr);
	}

	.ag-post-nav .nav-next {
		grid-column: auto;
		text-align: left;
	}
}

@media (max-width: 560px) {
	.ag-features,
	.ag-hero__cards,
	.wp-block-columns.ag-steps,
	.wp-block-columns.ag-panels--4,
	.ag-footer__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ag-search__panel {
		right: -100px;
	}

	.ag-header__inner {
		gap: var(--s-2);
	}

	.ag-logo__name {
		font-size: 1.15rem;
	}
}

/* Link „Zaloguj się" / „Moje konto" w nagłówku */
.ag-account-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 var(--s-3);
	border-radius: var(--r-full);
	color: var(--c-navy);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.ag-account-link:hover {
	background: var(--c-blue-tint);
	color: var(--c-blue-dark);
}

/* Link do sekcji (#jak-to-dziala) nie świeci się jako „bieżąca strona" */
.ag-nav__list > .current-menu-item > a[href*="#"]:not(:hover)::after {
	transform: scaleX(0);
}

/* Kotwice nie chowają się pod nagłówkiem */
[id] {
	scroll-margin-top: calc(var(--ag-header-h, 64px) + 1rem);
}

@media (max-width: 640px) {
	.ag-account-link {
		width: 40px;
		padding: 0;
		justify-content: center;
	}

	.ag-account-link__text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}