/* ALMS Szkoła – style uzupełniające theme.json. Kierunek: „Ścieżki × Granat i złoto”. */

/* ===== Tryb ciemny: nadpisanie presetów ===== */
:root[data-theme="dark"] {
	--wp--preset--color--base: #060F1C;
	--wp--preset--color--surface: #0D1C30;
	--wp--preset--color--soft: #14273F;
	--wp--preset--color--contrast: #E6EEF7;
	--wp--preset--color--heading: #FFFFFF;
	--wp--preset--color--muted: #A8B8CB;
	--wp--preset--color--border: #22385A;
	--wp--preset--color--primary-2: #14273F;
	--wp--preset--color--accent: #DDB671;
	--wp--preset--color--gold-text: #DDB671;
	color-scheme: dark;
}
:root:not([data-theme="dark"]) { color-scheme: light; }
:root[data-theme="dark"] .wp-element-button,
:root[data-theme="dark"] .wp-block-button__link { background: #DDB671; color: #001A38; }

/* ===== Podstawy ===== */
html { scroll-padding-top: 6rem; }
img { height: auto; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* ===== Nagłówek (pigułka) ===== */
.alms-header-wrap { position: sticky; top: 0; z-index: 50; padding-top: 12px; background: linear-gradient(var(--wp--preset--color--base) 70%, transparent); }
.alms-header { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: 999px; padding: 8px 10px 8px 12px !important; }
.alms-header .wp-block-navigation-item__content { padding: .6rem .85rem; border-radius: 999px; text-decoration: none; }
.alms-header .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--soft); }
.alms-header .wp-block-navigation__submenu-container { background: var(--wp--preset--color--surface) !important; color: var(--wp--preset--color--contrast) !important; border: 1px solid var(--wp--preset--color--border) !important; border-radius: 18px; padding: .4rem; min-width: 16rem !important; box-shadow: 0 16px 40px rgb(0 26 56 / .14); }
.alms-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { border-radius: 10px; }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--surface) !important; color: var(--wp--preset--color--contrast) !important; }
.alms-site-title { max-width: 15rem; }

.alms-logo img { width: clamp(110px, 12vw, 150px); height: auto; }
:root[data-theme="dark"] .alms-logo a { display: inline-block; background: #F3F6FA; border-radius: 999px; padding: 3px 10px; }

/* ===== Przełącznik motywu ===== */
.alms-theme-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; cursor: pointer; border: 0; border-radius: 999px; background: var(--wp--preset--color--soft); color: var(--wp--preset--color--contrast); }
.alms-theme-toggle svg { width: 18px; height: 18px; }
.alms-theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .alms-theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .alms-theme-toggle .i-moon { display: none; }

/* ===== Hero ===== */
.alms-hero { border-radius: 32px; }
.alms-badge { display: inline-block; border: 1px solid #DDB671; color: #DDB671; border-radius: 999px; padding: 6px 14px; font-weight: 700; }
.alms-hero .wp-block-search { width: 100%; max-width: 640px; margin-inline: auto; }
.alms-hero .wp-block-search__inside-wrapper { background: #FFFFFF; border: 0 !important; border-radius: 999px; padding: 6px !important; }
.alms-hero .wp-block-search__input { border: 0; background: transparent; padding: 10px 18px; font: inherit; color: #0D1B2C; min-width: 0; }
.alms-hero .wp-block-search__input:focus-visible { outline: none; }
.alms-hero .wp-block-search__inside-wrapper:focus-within { outline: 3px solid #DDB671; outline-offset: 2px; }
.alms-hero .wp-block-search__button { background: #DDB671 !important; color: #001A38 !important; border-radius: 999px; font-weight: 800; padding: 12px 24px; margin: 0; border: 0; }

/* ===== Karty ścieżek ===== */
.alms-path { border-radius: 28px; border: 1px solid var(--wp--preset--color--border); }
.alms-path--gold { background: #DDB671; color: #001A38; border-color: #DDB671; }
.alms-path--gold :is(h2, h3) { color: #001A38; }
.alms-path--gold .alms-kicker { color: #5C3D00; }
.alms-path--navy { background: var(--wp--preset--color--primary-2); color: #FFFFFF; border-color: var(--wp--preset--color--primary-2); }
:root[data-theme="dark"] .alms-path--navy { border-color: var(--wp--preset--color--border); }
.alms-path--navy :is(h2, h3) { color: #FFFFFF; }
.alms-path--navy .alms-kicker { color: #DDB671; }
.alms-path--plain { background: var(--wp--preset--color--surface); }
.alms-path--plain .alms-kicker { color: var(--wp--preset--color--gold-text); }
.alms-kicker { font-size: .8125rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.alms-links { list-style: none; padding: 0; margin: .5rem 0 0; }
.alms-links li { border-top: 1px solid currentColor; border-top-color: color-mix(in srgb, currentColor 20%, transparent); }
.alms-links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; color: inherit; text-decoration: none; font-weight: 600; }
.alms-links a::after { content: "→"; display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 999px; font-size: 15px; background: color-mix(in srgb, currentColor 12%, transparent); }
.alms-path--gold .alms-links a::after { background: #001A38; color: #DDB671; }
.alms-path--navy .alms-links a::after { color: #DDB671; }
.alms-path--plain .alms-links a::after { background: var(--wp--preset--color--soft); color: var(--wp--preset--color--gold-text); }
.alms-links a:hover { text-decoration: underline; }

/* ===== Karty wpisów ===== */
.alms-card { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: 24px; overflow: hidden; height: 100%; }
.alms-card .wp-block-post-featured-image { margin: 0; }
.alms-card .wp-block-post-featured-image img { aspect-ratio: 16/10; object-fit: cover; width: 100%; border-radius: 0; }
.alms-card .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--heading); }
.alms-card .wp-block-post-title a:hover { color: var(--wp--preset--color--accent); }
.alms-card:not(:has(.wp-block-post-featured-image img))::before { content: ""; display: block; aspect-ratio: 16/10; background: var(--wp--preset--color--soft); }

/* ===== Ważne terminy ===== */
.alms-panel { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: 24px; }
.alms-dates { list-style: none; padding: 0; margin: 0; }
.alms-dates li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--wp--preset--color--border); font-weight: 600; }
.alms-dates li:last-child { border-bottom: 0; }
.alms-dates strong { flex: 0 0 auto; padding: 6px 10px; border-radius: 10px; background: var(--wp--preset--color--soft); color: var(--wp--preset--color--gold-text); font-size: .875rem; }

/* ===== Karta e-sport ===== */
.alms-esport { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: 28px; }

/* ===== Stopka ===== */
.alms-footer { background: #001A38; color: #C9D6E5; }
.alms-footer a { color: #FFFFFF; }
.alms-footer a.alms-gold { color: #DDB671; }
.alms-footer :is(h2, h3) { color: #FFFFFF; }
:root[data-theme="dark"] .alms-footer { background: #030913; border-top: 1px solid #22385A; }

/* ===== Treść zaimportowana ===== */
.wp-block-table { overflow-x: auto; }
.wp-block-table table { border-collapse: collapse; }
.wp-block-table :is(td, th) { border: 1px solid var(--wp--preset--color--border); padding: .5rem .75rem; }
mark { background: #FFE58A; color: #0D1B2C; }

/* ===== Menu: hamburger do 1100 px (domyślnie WP przełącza dopiero przy 600 px) ===== */
@media (max-width: 1100px) {
	.alms-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.alms-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
	.alms-header .wp-block-navigation__responsive-container.is-menu-open { display: flex !important; }
}
.alms-header .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 999px; background: var(--wp--preset--color--soft); }
.alms-site-title { display: none; } /* nazwa szkoły jest w logo; miejsce zajmuje wyszukiwarka */

/* ===== Zdjęcie w hero ===== */
.alms-hero-photo { margin-bottom: 0; }
.alms-hero-photo img { width: 100%; aspect-ratio: 16 / 5; object-fit: cover; border-radius: 24px; display: block; }
@media (max-width: 600px) { .alms-hero-photo img { aspect-ratio: 16 / 9; border-radius: 18px; } }

/* ===== Formularze (Contact Form 7) ===== */
.wpcf7 { --f-radius: 12px; }
.wpcf7 form { display: grid; gap: 1rem; }
.wpcf7 :is(h2, h3, h4) { margin: 1.5rem 0 .25rem; padding-top: 1rem; border-top: 1px solid var(--wp--preset--color--border); font-size: 1.125rem; }
.wpcf7 label { display: grid; gap: .35rem; font-weight: 600; }
.wpcf7 :is(input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=url], select, textarea) {
	width: 100%; box-sizing: border-box; min-height: 48px; padding: .7rem .9rem; font: inherit; font-weight: 400;
	color: var(--wp--preset--color--contrast); background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border); border-radius: var(--f-radius);
}
.wpcf7 textarea { min-height: 8rem; }
.wpcf7 :is(input, select, textarea):focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 1px; border-color: var(--wp--preset--color--accent); }
.wpcf7 .wpcf7-list-item { display: flex; gap: .6rem; align-items: flex-start; margin: .25rem 0; }
.wpcf7 input[type=checkbox] { width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--wp--preset--color--primary-2); flex: 0 0 auto; }
.wpcf7 .wpcf7-submit { justify-self: start; min-height: 52px; padding: .85rem 2rem; border: 0; border-radius: 999px; background: var(--wp--preset--color--primary); color: #FFFFFF; font: inherit; font-weight: 800; cursor: pointer; }
:root[data-theme="dark"] .wpcf7 .wpcf7-submit { background: #DDB671; color: #001A38; }
.wpcf7 .wpcf7-not-valid { border-color: #B42318; }
.wpcf7 .wpcf7-not-valid-tip { color: #B42318; font-size: .9rem; font-weight: 600; margin-top: .25rem; }
:root[data-theme="dark"] .wpcf7 :is(.wpcf7-not-valid-tip) { color: #FF9C8F; }
.wpcf7 .wpcf7-response-output { margin: 0 !important; padding: 1rem 1.2rem !important; border-radius: var(--f-radius); border-width: 2px !important; }
@media (min-width: 700px) { .alms-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }

/* ===== Nagłówek podstron ===== */
.alms-page-head { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: 28px; }
.alms-page-head .wp-block-post-title, .alms-page-head h1 { margin: 0; }
.alms-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: .9375rem; font-weight: 600; }
.alms-breadcrumbs li { display: flex; align-items: center; gap: .5rem; color: var(--wp--preset--color--muted); }
.alms-breadcrumbs li + li::before { content: "›"; color: var(--wp--preset--color--gold-text); font-weight: 800; }
.alms-breadcrumbs a { color: var(--wp--preset--color--accent); text-decoration: none; }
.alms-breadcrumbs a:hover { text-decoration: underline; }
.alms-breadcrumbs [aria-current] { color: var(--wp--preset--color--muted); }
.alms-page-head .wp-block-search { max-width: 560px; }
.alms-single-cover img { border-radius: 24px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.alms-post-nav { margin-top: 1.5rem; }
.alms-post-nav > div { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: 20px; padding: 1rem 1.25rem; }
.alms-post-nav a { text-decoration: none; font-weight: 700; color: var(--wp--preset--color--heading); }
.alms-post-nav a:hover { color: var(--wp--preset--color--accent); }
.alms-post-nav .post-navigation-link-next { text-align: right; }
.wp-block-query-pagination a, .wp-block-query-pagination .current { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.wp-block-query-pagination .current { background: var(--wp--preset--color--primary); color: #FFFFFF; }
:root[data-theme="dark"] .wp-block-query-pagination .current { background: #DDB671; color: #001A38; }
.wp-block-video video { width: 100%; border-radius: 20px; }

/* ===== Karty plików ===== */
.alms-file-row { list-style: none; margin-block: .6rem; }
:is(ul, ol):has(> .alms-file-row) { padding-left: 0; }
.alms-file {
	display: flex; align-items: center; gap: 1rem; min-height: 64px; padding: .8rem 1rem .8rem .8rem;
	background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: 18px;
	color: var(--wp--preset--color--heading); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.alms-file:hover { border-color: var(--wp--preset--color--gold); box-shadow: 0 8px 24px rgb(0 26 56 / .08); transform: translateY(-1px); }
.alms-file__icon { flex: 0 0 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--wp--preset--color--soft); color: var(--wp--preset--color--primary-2); }
:root[data-theme="dark"] .alms-file__icon { color: #DDB671; }
.alms-file__icon .alms-ico { width: 26px; height: 26px; }
.alms-file__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.alms-file__title { font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.alms-file__meta { font-size: .8125rem; font-weight: 700; letter-spacing: .04em; color: var(--wp--preset--color--gold-text); }
.alms-file__dl { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; background: var(--wp--preset--color--primary); color: #FFFFFF; }
:root[data-theme="dark"] .alms-file__dl { background: #DDB671; color: #001A38; }
.alms-file__dl .alms-ico { width: 18px; height: 18px; }
/* Kolory akcentu dla kilku grup tematycznych */
.alms-file--oplaty .alms-file__icon, .alms-file--puchar .alms-file__icon, .alms-file--matura .alms-file__icon { background: #FBF1DC; color: #7A520A; }
.alms-file--rodo .alms-file__icon, .alms-file--cyber .alms-file__icon, .alms-file--zdrowie .alms-file__icon, .alms-file--alarm .alms-file__icon { background: #E6F0F8; color: #1666A6; }
:root[data-theme="dark"] .alms-file__icon { background: var(--wp--preset--color--soft) !important; color: #DDB671 !important; }

/* Link do pliku w zdaniu */
.alms-file-inline { white-space: normal; }
.alms-ico-inline { width: 1.05em; height: 1.05em; vertical-align: -0.15em; margin-right: .3em; }
.alms-file-inline__meta { font-size: .85em; color: var(--wp--preset--color--muted); text-decoration: none; display: inline-block; }

/* ===== Stopka zawsze na dole okna (krótkie strony) ===== */
.wp-site-blocks { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.wp-site-blocks > main, .wp-site-blocks > .wp-block-group:is(main) { flex: 1 0 auto; }
.wp-site-blocks > :last-child { margin-top: auto; }
.wp-site-blocks > :last-child .alms-footer { margin-bottom: 0; }

/* ===== Karty osób (Trenerzy, Nauczyciele) ===== */
.alms-people { gap: 1.25rem; margin-top: var(--wp--preset--spacing--40); }
.alms-person { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: 24px; padding: 1rem 1.1rem 1.25rem; gap: .35rem !important; }
.alms-person > * { margin: 0 !important; }
.alms-person__img { margin-bottom: .6rem !important; }
.alms-person__img img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 18px; background: #F7F9FC; }
:root[data-theme="dark"] .alms-person__img img { background: #E9EEF5; }
.alms-person :is(h2, h3) { font-size: 1.125rem; }
.alms-person p, .alms-person li { font-size: .9375rem; line-height: 1.5; overflow-wrap: anywhere; }
.alms-person ul { padding-left: 1.1rem; }
.alms-person a[href^="mailto:"] { font-weight: 600; }
@media (max-width: 600px) {
	.alms-people { gap: .75rem; }
	.alms-person { display: grid !important; grid-template-columns: 84px minmax(0, 1fr); column-gap: 1rem; align-items: start; padding: .85rem; }
	.alms-person__img { grid-row: 1 / span 8; margin: 0 !important; }
	.alms-person__img img { border-radius: 14px; }
	.alms-person > :not(.alms-person__img) { grid-column: 2; }
}

/* ===== Mapa dojazdu ===== */
.alms-map { position: relative; border-radius: 28px; overflow: hidden; background: #001A38; border: 1px solid var(--wp--preset--color--border); }
.alms-map__canvas { height: clamp(380px, 62vh, 620px); }
.alms-map.is-error .alms-map__canvas { display: grid; place-items: center; }
.alms-map.is-error .alms-map__canvas::after { content: "ALMS · ul. Projektowa 4, 20-209 Lublin\A Budynek C, piętro 1, pokój C115\A\A Ta przeglądarka nie wyświetli mapy interaktywnej – użyj przycisku „Wyznacz trasę” poniżej."; white-space: pre-line; color: #DCE8F5; padding: 2rem; text-align: center; font-weight: 600; line-height: 1.6; max-width: 34rem; }
.alms-map__bar { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; background: #001A38; color: #FFFFFF; }
.alms-map__label { font-family: var(--wp--preset--font-family--display); font-weight: 800; }
.alms-map__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.alms-map__actions :is(a, button) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid #4A6A93; background: transparent; color: #FFFFFF; }
.alms-map__actions .alms-map__route { background: #DDB671; color: #001A38; border-color: #DDB671; }
.alms-map__actions :is(a, button):focus-visible { outline: 3px solid #DDB671; outline-offset: 2px; }
.alms-map.is-flying .alms-map__replay { background: #FFFFFF; color: #001A38; border-color: #FFFFFF; }
.alms-map__pin { width: 34px; height: 44px; }
.alms-map__pin-shape { display: block; width: 100%; height: 100%; background: #DDB671; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M12 0C5.4 0 0 5.2 0 11.7 0 20.4 12 32 12 32s12-11.6 12-20.3C24 5.2 18.6 0 12 0zm0 16.5a4.8 4.8 0 1 1 0-9.6 4.8 4.8 0 0 1 0 9.6z'/%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 32'%3E%3Cpath d='M12 0C5.4 0 0 5.2 0 11.7 0 20.4 12 32 12 32s12-11.6 12-20.3C24 5.2 18.6 0 12 0zm0 16.5a4.8 4.8 0 1 1 0-9.6 4.8 4.8 0 0 1 0 9.6z'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 4px 6px rgb(0 0 0 / .35)); }
.alms-map.is-done .alms-map__pin-shape { animation: alms-pin 1.6s ease-out 1; }
@keyframes alms-pin { 0% { transform: translateY(-18px); } 40% { transform: translateY(0); } 60% { transform: translateY(-6px); } 100% { transform: translateY(0); } }
.alms-map .maplibregl-ctrl-attrib { font-size: 11px; }

/* ===== Karty kontaktowe ===== */
.alms-contact-grid { gap: 1rem; }
.alms-contact { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: 24px; padding: 1.4rem 1.4rem 1.5rem !important; }
.alms-contact > * { margin: 0 !important; }
.alms-contact::before { content: ""; display: block; width: 48px; height: 48px; margin-bottom: .85rem; border-radius: 14px; background: var(--wp--preset--color--soft) var(--alms-ico) center / 26px no-repeat; }
.alms-contact .alms-kicker { color: var(--wp--preset--color--gold-text); margin-bottom: .35rem !important; }
.alms-contact p:not(.alms-kicker) { font-size: 1.0625rem; line-height: 1.55; }
.alms-contact a { font-weight: 700; }
.alms-contact--adres { --alms-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002A5B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.1-7-11.5A7 7 0 0 1 19 9.5C19 14.9 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.alms-contact--telefon { --alms-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002A5B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E"); }
.alms-contact--email { --alms-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002A5B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18v12H3z'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.alms-contact--dyrekcja { --alms-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002A5B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .alms-contact::before { background-color: #E9EEF5; }
.alms-direction-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.alms-direction-list li { padding: .7rem 0; border-bottom: 1px solid var(--wp--preset--color--border); }
.alms-direction-list li:last-child { border-bottom: 0; }
.alms-map__tag { padding: 6px 12px; border-radius: 999px; background: #FFFFFF; color: #001A38; font: 700 13px/1.2 var(--wp--preset--font-family--body); box-shadow: 0 4px 14px rgb(0 26 56 / .25); white-space: nowrap; opacity: 0; transition: opacity .4s; pointer-events: none; }
.alms-map__tag::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: #FFFFFF; transform: translateX(-50%) rotate(45deg); }
.alms-map.show-tags .alms-map__tag { opacity: 1; }
.alms-map__tag--main { background: #001A38; color: #DDB671; font-size: 14px; padding: 7px 14px; z-index: 2; }
.alms-map__tag--main::after { background: #001A38; }

/* ===== Sekcje rozwijane (details) ===== */
.wp-block-details { padding: 0 !important; overflow: hidden; margin-block: .75rem; }
.wp-block-details > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: .9rem 1.25rem; cursor: pointer; font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.0625rem; color: var(--wp--preset--color--heading); }
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::after { content: ""; flex: 0 0 32px; height: 32px; border-radius: 999px; background: var(--wp--preset--color--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A5A00' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform .2s; }
.wp-block-details[open] > summary::after { transform: rotate(180deg); }
.wp-block-details > summary:hover { background: var(--wp--preset--color--soft); }
.wp-block-details[open] > summary { border-bottom: 1px solid var(--wp--preset--color--border); }
.wp-block-details > :not(summary) { padding-inline: 1.25rem; }
.wp-block-details > :not(summary):last-child { padding-bottom: 1.1rem; }
:root[data-theme="dark"] .wp-block-details > summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DDB671' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.alms-legal-title { font-size: 1rem !important; letter-spacing: .02em; line-height: 1.4; margin-top: 1.1rem; }

/* ===== Oś czasu (terminy rekrutacji) ===== */
.alms-timeline { list-style: none; padding: 0; margin: 1rem 0 1.5rem; counter-reset: krok; }
.alms-timeline li { position: relative; counter-increment: krok; padding: 0 0 1.4rem 3.4rem; }
.alms-timeline li::before { content: counter(krok); position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 999px; display: grid; place-items: center; background: #001A38; color: #DDB671; font-family: var(--wp--preset--font-family--display); font-weight: 800; }
.alms-timeline li::after { content: ""; position: absolute; left: calc(1.15rem - 1px); top: 2.5rem; bottom: .2rem; width: 2px; background: var(--wp--preset--color--border); }
.alms-timeline li:last-child { padding-bottom: 0; }
.alms-timeline li:last-child::after { display: none; }
.alms-timeline__date { display: block; font-family: var(--wp--preset--font-family--display); font-size: 1.125rem; color: var(--wp--preset--color--heading); margin-bottom: .2rem; }
:root[data-theme="dark"] .alms-timeline li::before { background: #DDB671; color: #001A38; }

/* ===== Zasady (lista numerowana) ===== */
.alms-rules { padding-left: 1.6rem; }
.alms-rules > li { padding-left: .35rem; margin-bottom: .7rem; }
.alms-rules > li::marker { font-weight: 800; color: var(--wp--preset--color--gold-text); }
.alms-rules ul { margin-top: .4rem; }

/* ===== Karty profili klas ===== */
.alms-profiles { gap: 1.1rem; margin-block: 1.25rem; }
.alms-profile { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-top: 6px solid #DDB671; border-radius: 24px; padding: 1.5rem 1.5rem 1.25rem; }
.alms-profile > :first-child { margin-top: 0; }
.alms-profile h2 { font-size: 1.375rem; margin-bottom: .75rem; }
.alms-profile .alms-kicker { color: var(--wp--preset--color--gold-text); margin: 1rem 0 .3rem !important; }
.alms-profile ul { margin: 0; padding-left: 1.1rem; }
.alms-profile li { margin-bottom: .2rem; }

/* ===== Nasi wychowankowie ===== */
.alms-year { margin-top: var(--wp--preset--spacing--50) !important; margin-bottom: 1rem !important; padding-bottom: .5rem; border-bottom: 2px solid #DDB671; font-size: 1.6rem !important; }
.alms-alumni { gap: 1rem; }
.alms-alumnus { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: 20px; padding: 1.15rem 1.25rem 1.25rem; }
.alms-alumnus > * { margin: 0 !important; }
.alms-alumnus .alms-kicker { color: var(--wp--preset--color--gold-text); }
.alms-alumnus h3 { font-size: 1.125rem; margin: .2rem 0 .45rem !important; }
.alms-alumnus p:not(.alms-kicker) { font-size: .9375rem; line-height: 1.55; color: var(--wp--preset--color--contrast); }

/* ===== Informacje o ALMS: karty oferty, lista z ptaszkami, przyciski lat ===== */
.alms-offers { gap: 1.1rem; margin-block: 1.5rem; }
.alms-offer { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: 24px; padding: 1.5rem; }
.alms-offer h2 { font-size: 1.375rem; margin: 0 0 .75rem; }
.alms-check { list-style: none; padding: 0; margin: 0; }
.alms-check li { position: relative; padding: 0 0 .55rem 2rem; }
.alms-check li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; border-radius: 999px; background: #DDB671 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001A38' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat; }
.alms-years { gap: .5rem; }
.alms-years .wp-block-button__link { min-width: 5.5rem; text-align: center; }
.is-style-outline > .wp-block-button__link { background: transparent; color: var(--wp--preset--color--heading); border: 2px solid var(--wp--preset--color--border); }
.is-style-outline > .wp-block-button__link:hover { border-color: #DDB671; background: var(--wp--preset--color--soft); }
:root[data-theme="dark"] .is-style-outline > .wp-block-button__link { background: transparent; color: #FFFFFF; }
.alms-file__desc { font-size: .9rem; line-height: 1.45; color: var(--wp--preset--color--muted); margin: .1rem 0 .2rem; }

/* ===== Wyszukiwarka w pasku menu ===== */
.alms-header-wrap { position: sticky; }
.alms-header-search { flex: 1 1 220px; max-width: 320px; margin: 0 .5rem; }
.alms-header-search .wp-block-search__inside-wrapper { border: 1px solid var(--wp--preset--color--border) !important; border-radius: 999px; background: var(--wp--preset--color--soft); padding: 3px 3px 3px 14px !important; }
.alms-header-search .wp-block-search__input { border: 0; background: transparent; font: inherit; font-size: .9375rem; color: var(--wp--preset--color--contrast); padding: 8px 4px; min-width: 0; }
.alms-header-search .wp-block-search__input:focus-visible { outline: none; }
.alms-header-search .wp-block-search__inside-wrapper:focus-within { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.alms-header-search .wp-block-search__button { width: 38px; height: 38px; min-width: 38px; margin: 0; padding: 0; border: 0; border-radius: 999px; display: grid; place-items: center; background: #001A38 !important; color: #DDB671 !important; }
.alms-header-search .wp-block-search__button svg { width: 20px; height: 20px; fill: currentColor; }
:root[data-theme="dark"] .alms-header-search .wp-block-search__button { background: #DDB671 !important; color: #001A38 !important; }
.alms-search-toggle { display: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; cursor: pointer; background: var(--wp--preset--color--soft); color: var(--wp--preset--color--contrast); }
.alms-search-toggle svg { width: 18px; height: 18px; }
@media (max-width: 1300px) {
	.alms-search-toggle { display: inline-grid; }
	.alms-header-search { display: none; }
	.alms-header-wrap.search-open .alms-header-search { display: block; position: absolute; left: var(--wp--style--root--padding-left, 1rem); right: var(--wp--style--root--padding-right, 1rem); top: calc(100% + 6px); max-width: none; margin: 0 auto; width: min(100% - 2rem, 1240px); padding: 10px; border-radius: 28px; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); box-shadow: 0 16px 40px rgb(0 26 56 / .14); box-sizing: border-box; z-index: 60; }
	.alms-header-wrap.search-open .alms-search-toggle { background: #001A38; color: #DDB671; }
}

/* ===== Hero: okładka ze zdjęciem i panelem z hasłem ===== */
.alms-cover { border-radius: 32px; overflow: hidden; }
.alms-cover .wp-block-cover__inner-container { width: 100%; }
.alms-hero-panel { max-width: 720px; border-radius: 24px; background: rgb(0 26 56 / .88); color: #FFFFFF; }
.alms-hero-panel h1 { color: #FFFFFF; }
@media (max-width: 600px) {
	.alms-cover { border-radius: 24px; min-height: 420px !important; }
	.alms-hero-panel { border-radius: 18px; }
}
/* Dostępność: linki w podpisie mapy odróżnione nie tylko kolorem */
.alms-map .maplibregl-ctrl-attrib a { text-decoration: underline; color: #1A1A1A; }
.alms-a11y-todo { padding: 1rem 1.25rem; border-radius: 16px; background: #FFF3D9; color: #5C3D00; border: 1px solid #E8C98A; }

/* ===== Stopka (v2) ===== */
.alms-footer { background: #001A38; color: #C9D6E5; border-top: 4px solid #DDB671; font-size: .9375rem; line-height: 1.6; }
.alms-footer a { color: #FFFFFF; text-decoration: none; }
.alms-footer a:hover { color: #DDB671; text-decoration: underline; }
.alms-footer a.alms-gold { color: #DDB671; font-weight: 700; }
.alms-ftop { padding: 2.5rem 0 2rem; border-bottom: 1px solid rgb(255 255 255 / .12); gap: 1.5rem; }
.alms-fbrand { gap: 1.25rem 1.5rem; max-width: 44rem; }
.alms-flogo a { display: inline-block; background: #F3F6FA; border-radius: 14px; padding: 8px 14px; }
.alms-flogo img { width: 150px; height: auto; display: block; }
.alms-ftag { margin: 0; max-width: 30rem; color: #DCE8F5; font-size: 1rem; }
.alms-social { gap: .5rem; }
.alms-social .wp-social-link { background: rgb(255 255 255 / .08) !important; color: #FFFFFF !important; border-radius: 999px; transition: background .15s, color .15s; }
.alms-social .wp-social-link a { padding: .7rem; }
.alms-social .wp-social-link svg { width: 20px; height: 20px; fill: currentColor; }
.alms-social .wp-social-link:hover { background: #DDB671 !important; color: #001A38 !important; }
.alms-fgrid { gap: 2rem 2.5rem; padding: 2.25rem 0; }
.alms-fhead { font-family: var(--wp--preset--font-family--body) !important; font-size: .8125rem !important; font-weight: 800 !important; letter-spacing: .12em; text-transform: uppercase; color: #DDB671 !important; margin: 0 0 .9rem !important; }
.alms-flinks { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.alms-flinks a { color: #DCE8F5; }
.alms-fcontact p { margin: 0 0 .8rem; }
.alms-fmap { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid rgb(221 182 113 / .6); color: #DDB671 !important; font-weight: 700; }
.alms-fmap:hover { background: #DDB671; color: #001A38 !important; text-decoration: none !important; }
.alms-fbottom { padding: 1.1rem 0 1.4rem; border-top: 1px solid rgb(255 255 255 / .12); gap: .5rem 1.5rem; font-size: .875rem; color: #A8B8CB; }
.alms-fbottom p { margin: 0; }
.alms-flegal { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.alms-flegal a, .alms-fbottom a { color: #DCE8F5; }
.alms-totop { font-weight: 700; color: #DDB671 !important; }
:root[data-theme="dark"] .alms-footer { background: #030913; }
@media (max-width: 600px) {
	.alms-ftop { padding: 2rem 0 1.5rem; }
	.alms-fgrid { gap: 1.75rem; }
	.alms-fbottom { flex-direction: column; align-items: flex-start !important; }
}
@media (max-width: 1100px) { .alms-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 600px) {
	.alms-fgrid { gap: 1.5rem 1rem; }
	.alms-fcontact { grid-column: 1 / -1; }
	.alms-flinks a { font-size: .9rem; }
}
/* Podpis źródeł mapy w trybie ciemnym */
:root[data-theme="dark"] .alms-map .maplibregl-ctrl-attrib { background: rgb(6 15 28 / .85); color: #DCE8F5; }
:root[data-theme="dark"] .alms-map .maplibregl-ctrl-attrib a { color: #FFFFFF; }
:root[data-theme="dark"] .alms-map .maplibregl-ctrl-attrib-button { filter: invert(1); }

/* ===== Gradienty w tłach i elementach strony (wytyczne: subtelne, w obrębie palety) ===== */
/* 1. Okładka: przyciemnienie zdjęcia od lewego dołu + panel z hasłem jako gradient */
.alms-cover { position: relative; }
.alms-cover::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(20deg, rgb(0 26 56 / .62) 0%, rgb(0 26 56 / .25) 38%, transparent 62%); }
.alms-cover .wp-block-cover__inner-container { position: relative; z-index: 2; }
.alms-hero-panel { background: linear-gradient(135deg, rgb(0 26 56 / .95) 0%, rgb(0 42 91 / .86) 100%); box-shadow: 0 20px 50px rgb(0 10 25 / .35); }

/* 2. Karty ścieżek */
.alms-path--navy { background: linear-gradient(150deg, #001A38 0%, #002A5B 100%); }
.alms-path--gold { background: linear-gradient(150deg, #E6C88E 0%, #DDB671 55%, #D2A75B 100%); }
.alms-path--plain { background: linear-gradient(150deg, var(--wp--preset--color--surface) 0%, var(--wp--preset--color--soft) 100%); }
:root[data-theme="dark"] .alms-path--navy { background: linear-gradient(150deg, #14273F 0%, #1C3556 100%); }

/* 3. Stopka: granat ciemniejący ku dołowi */
.alms-footer { background: linear-gradient(180deg, #001A38 0%, #001A38 45%, #00112A 100%); }
:root[data-theme="dark"] .alms-footer { background: linear-gradient(180deg, #050E1B 0%, #02070F 100%); }

/* 4. Nagłówki podstron: delikatne przejście + złoty akcent w rogu */
.alms-page-head { background:
	radial-gradient(circle at 100% 0%, rgb(221 182 113 / .22) 0%, transparent 32%),
	linear-gradient(135deg, var(--wp--preset--color--surface) 0%, #EEF3F9 100%); }
:root[data-theme="dark"] .alms-page-head { background:
	radial-gradient(circle at 100% 0%, rgb(221 182 113 / .12) 0%, transparent 32%),
	linear-gradient(135deg, #0D1C30 0%, #12243C 100%); }

/* Organ prowadzący w stopce: logo WSEI na jasnej plakietce (jak logo szkoły), czytelne w obu motywach */
.alms-forg { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.alms-forg__logo { display: inline-block; background: #F3F6FA; border-radius: 12px; padding: 6px 12px; line-height: 0; }
.alms-forg__logo img { width: 112px; height: auto; display: block; }
.alms-forg__logo:hover, .alms-forg__logo:focus-visible { outline: 2px solid #DDB671; outline-offset: 2px; text-decoration: none; }
.alms-forg__txt { margin: 0; line-height: 1.5; }

/* ===== Menu główne: jeden rząd na pulpicie (np. 1920x1080) ===== */
@media (min-width: 1101px) {
	/* nagłówek szerszy niż treść strony, żeby mieściły się wszystkie pozycje */
	.alms-header-wrap > .alms-header { max-width: min(1480px, 100%) !important; flex-wrap: nowrap !important; }
	.alms-header .wp-block-navigation { flex: 0 0 auto; }
	.alms-header .wp-block-navigation__container { flex-wrap: nowrap !important; gap: 0 !important; }
	.alms-header .wp-block-navigation-item__content { white-space: nowrap; padding: .6rem .7rem; }
	/* wyszukiwarka zwęża się zamiast zawijać menu */
	.alms-header-search { flex: 1 1 140px; min-width: 140px; max-width: 280px; margin: 0 .5rem; }
}
/* przy węższych ekranach (1101–1300 px) wyszukiwarka pokazuje się tylko po kliknięciu lupy */
@media (min-width: 1101px) and (max-width: 1300px) {
	.alms-search-toggle { display: inline-grid; }
	.alms-header-search { display: none; }
	.alms-header-wrap.search-open .alms-header-search { display: block; position: absolute; left: 1rem; right: 1rem; top: calc(100% + 6px); max-width: none; margin: 0 auto; width: min(100% - 2rem, 1240px); padding: 10px; border-radius: 28px; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); box-shadow: 0 16px 40px rgb(0 26 56 / .14); box-sizing: border-box; z-index: 60; }
}

/* ===== Karty zawsze wyśrodkowane (także niepełny ostatni rząd) ===== */
.alms-profiles.is-layout-grid, .alms-offers.is-layout-grid, .alms-contact-grid.is-layout-grid { display: flex !important; flex-wrap: wrap; justify-content: center; }
.alms-profiles > * { flex: 1 1 18rem; max-width: 25rem; margin: 0 !important; }
.alms-contact-grid > * { flex: 1 1 16rem; max-width: 25rem; margin: 0 !important; }
.alms-offers > * { flex: 1 1 20rem; max-width: 36rem; margin: 0 !important; }

/* ===== Strona "10 lat ALMS": baner jubileuszowy ===== */
.alms-jubilee { position: relative; overflow: hidden; gap: 1rem 2.5rem !important; padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 5vw, 3.5rem); border-radius: 28px; color: #DCE8F5;
	background: radial-gradient(circle at 12% 50%, rgb(221 182 113 / .22) 0, transparent 38%), linear-gradient(135deg, #001A38 0%, #002A5B 100%);
	box-shadow: 0 20px 50px rgb(0 10 25 / .25); }
.alms-jubilee::after { content: ""; position: absolute; right: -90px; top: -90px; width: 300px; height: 300px; border-radius: 50%; border: 2px solid rgb(221 182 113 / .35); box-shadow: 0 0 0 28px rgb(221 182 113 / .08), 0 0 0 60px rgb(221 182 113 / .05); pointer-events: none; }
.alms-jubilee__num { margin: 0; font-family: var(--wp--preset--font-family--heading, inherit); font-weight: 800; font-size: clamp(6rem, 17vw, 11rem); line-height: .85; letter-spacing: -.04em; color: #DDB671; text-shadow: 0 6px 30px rgb(0 0 0 / .3); }
.alms-jubilee__txt { position: relative; z-index: 1; flex: 1 1 22rem; max-width: 42rem; }
.alms-jubilee__eyebrow { margin: 0 0 .6rem; display: inline-block; padding: .3rem .85rem; border-radius: 999px; border: 1px solid rgb(221 182 113 / .6); color: #DDB671; font-size: .8125rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.alms-jubilee .alms-jubilee__title { margin: 0 0 .75rem; color: #FFFFFF; font-size: clamp(1.5rem, 3.2vw, 2.25rem); line-height: 1.2; }
.alms-jubilee__lead { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: #DCE8F5; }
.alms-jubilee__section { margin: 2.5rem 0 1.25rem; font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.alms-jubilee__section::after { content: ""; display: block; width: 64px; height: 4px; margin-top: .6rem; border-radius: 999px; background: #DDB671; }

/* ===== Baza sportowa i dydaktyczna: karty ===== */
.alms-facts__lead { max-width: 46rem; font-size: 1.1875rem; line-height: 1.6; color: var(--wp--preset--color--heading); margin-bottom: 0; }
.alms-facts__h { margin: 2.75rem 0 .5rem !important; font-size: clamp(1.4rem, 2.8vw, 1.9rem); }
.alms-facts__h::after { content: ""; display: block; width: 64px; height: 4px; margin-top: .6rem; border-radius: 999px; background: #DDB671; }
.alms-facts__intro { max-width: 52rem; margin: 0 0 1.5rem; line-height: 1.65; }
.alms-facts { gap: 1rem !important; }
.alms-fact { position: relative; height: 100%; padding: 1.35rem 1.4rem 1.4rem; border-radius: 20px; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-top: 4px solid #DDB671; transition: transform .15s, box-shadow .15s; }
.alms-fact:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgb(0 26 56 / .12); }
.alms-fact__tag { margin: 0 0 .6rem; display: inline-block; padding: .2rem .7rem; border-radius: 999px; background: #001A38; color: #DDB671; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
:root[data-theme="dark"] .alms-fact__tag { background: #DDB671; color: #001A38; }
.alms-fact .alms-fact__title { margin: 0 0 .4rem; font-size: 1.125rem; line-height: 1.3; }
.alms-fact__txt { margin: 0; line-height: 1.6; }
.alms-fact__addr { margin: .35rem 0 0; font-weight: 600; color: var(--wp--preset--color--accent); }
.alms-fact__addr::before { content: "\2022  "; color: #DDB671; }
@media (prefers-reduced-motion: reduce) { .alms-fact { transition: none; } .alms-fact:hover { transform: none; } }

/* Baza: wyśrodkowane tylko nagłówki sekcji */
.alms-facts__h { text-align: center; }
.alms-facts__h::after { margin-inline: auto; }

/* Baza: nagłówek zajmuje całą szerokość kolumny wide (wcześniej margines !important zrzucał go do lewej, w wąskie pudełko) */
.alms-facts__h { max-width: none !important; width: 100%; margin-inline: 0 !important; box-sizing: border-box; text-align: center; }
.alms-facts__h::after { margin-inline: auto; }

/* ===== Baza: baner na górze strony ===== */
.alms-basehero { position: relative; overflow: hidden; margin-top: 0; padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 5vw, 3.5rem); border-radius: 28px; color: #DCE8F5;
	background: radial-gradient(circle at 88% 20%, rgb(221 182 113 / .22) 0, transparent 40%), linear-gradient(135deg, #001A38 0%, #002A5B 100%);
	box-shadow: 0 20px 50px rgb(0 10 25 / .25); }
.alms-basehero::after { content: ""; position: absolute; right: -80px; bottom: -110px; width: 280px; height: 280px; border-radius: 50%; border: 2px solid rgb(221 182 113 / .3); box-shadow: 0 0 0 26px rgb(221 182 113 / .07), 0 0 0 56px rgb(221 182 113 / .04); pointer-events: none; }
.alms-basehero > * { position: relative; z-index: 1; max-width: 46rem; }
.alms-basehero__eyebrow { margin: 0 0 .9rem; display: inline-block; padding: .3rem .85rem; border-radius: 999px; border: 1px solid rgb(221 182 113 / .6); color: #DDB671; font-size: .8125rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.alms-basehero .alms-basehero__title { margin: 0 0 .8rem; color: #FFFFFF; font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.12; letter-spacing: -.01em; }
.alms-basehero .alms-basehero__title span { color: #DDB671; }
.alms-basehero__lead { margin: 0 0 1.4rem; font-size: 1.125rem; line-height: 1.6; color: #DCE8F5; }
.alms-basehero__nav { display: flex; flex-wrap: wrap; gap: .6rem; }
.alms-basehero__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.2rem; border-radius: 999px; font-weight: 700; text-decoration: none; background: #DDB671; color: #001A38; border: 1px solid #DDB671; }
.alms-basehero__nav a + a { background: transparent; color: #FFFFFF; border-color: rgb(255 255 255 / .45); }
.alms-basehero__nav a:hover, .alms-basehero__nav a:focus-visible { background: #FFFFFF; color: #001A38; border-color: #FFFFFF; text-decoration: none; }
.alms-facts__h { scroll-margin-top: 110px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ===== Banery (10 lat ALMS, Baza): zamiast kółka – znak Uniwersytetu WSEI jak na alms-esport.pl ===== */
.alms-jubilee::after, .alms-basehero::after {
	content: ""; position: absolute; z-index: 1; pointer-events: none;
	right: clamp(1.25rem, 4vw, 2.75rem); bottom: clamp(1rem, 3vw, 1.75rem); left: auto; top: auto;
	width: clamp(110px, 14vw, 170px); height: clamp(51px, 6.5vw, 78px);
	border: 0; border-radius: 0; box-shadow: none;
	background: url("/wp-content/themes/alms-szkola/assets/img/wsei-logo-light.webp") right bottom / contain no-repeat;
	opacity: .95;
}
@media (max-width: 700px) {
	.alms-jubilee, .alms-basehero { padding-bottom: 5rem; }
}

/* ===== Banery: złoty znak (strzałka) z logo Uniwersytetu WSEI zamiast kółka / logo ===== */
.alms-jubilee::after, .alms-basehero::after {
	content: ""; position: absolute; z-index: 0; pointer-events: none;
	right: clamp(1rem, 5vw, 4.5rem); left: auto; top: auto; bottom: -2.5rem;
	width: clamp(120px, 17vw, 240px); height: clamp(144px, 20.4vw, 288px);
	border: 0; border-radius: 0; box-shadow: none;
	background: url("/wp-content/themes/alms-szkola/assets/img/wsei-znak.svg") center bottom / contain no-repeat;
	opacity: .9;
}
@media (max-width: 700px) {
	.alms-jubilee, .alms-basehero { padding-bottom: clamp(1.75rem, 4vw, 3rem); }
	.alms-jubilee::after, .alms-basehero::after { opacity: .35; width: 110px; height: 132px; right: .75rem; bottom: -1.5rem; }
}

/* ===== Czesne: karty kwot, tabela rat, dane do przelewu ===== */
.alms-fact--price { text-align: center; padding-top: 1.5rem; }
.alms-fact--price .alms-fact__tag { margin-inline: auto; }
.alms-price__amount { margin: .3rem 0 .15rem; font-family: var(--wp--preset--font-family--heading, inherit); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: 1.1; color: var(--wp--preset--color--heading); font-variant-numeric: tabular-nums; }
.alms-fact--price .alms-fact__txt { color: var(--wp--preset--color--muted, inherit); font-size: .9375rem; }
.alms-fee-table table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--wp--preset--color--border); border-radius: 18px; overflow: hidden; }
.alms-fee-table th { background: #001A38; color: #FFFFFF; text-align: left; font-size: .875rem; font-weight: 700; padding: .85rem 1rem; border: 0; }
.alms-fee-table td { padding: .9rem 1rem; border: 0; border-top: 1px solid var(--wp--preset--color--border); vertical-align: top; }
.alms-fee-table tbody tr:nth-child(even) td { background: var(--wp--preset--color--soft); }
.alms-fee-table td:first-child { font-weight: 700; white-space: nowrap; }
:root[data-theme="dark"] .alms-fee-table th { background: #0E2748; }
.alms-pay { border: 1px solid var(--wp--preset--color--border); border-top: 4px solid #DDB671; border-radius: 20px; background: var(--wp--preset--color--surface); padding: .5rem 1.5rem; margin-bottom: 1rem; }
.alms-pay__row { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: .25rem 1.5rem; padding: 1.1rem 0; align-items: baseline; }
.alms-pay__row + .alms-pay__row { border-top: 1px solid var(--wp--preset--color--border); }
.alms-pay__label { margin: 0; font-size: .8125rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--accent); }
.alms-pay__value { margin: 0; line-height: 1.55; }
.alms-pay__account { font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; word-break: break-word; user-select: all; }
@media (max-width: 640px) {
	.alms-pay__row { grid-template-columns: 1fr; }
	.alms-fee-table { overflow-x: auto; }
	.alms-fee-table table { min-width: 640px; }
}

/* Czesne: cztery kafelki dokładnie na całą szerokość kolumny (bez pustych kolumn po prawej) */
.alms-facts.alms-facts--prices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .alms-facts.alms-facts--prices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .alms-facts.alms-facts--prices { grid-template-columns: 1fr; } }

/* === Logo ALMS (odznaka + napis), wersja jasna/ciemna === */
.alms-brand { display: inline-flex; align-items: center; line-height: 0; text-decoration: none; }
.alms-brand img { height: clamp(46px, 4.4vw, 58px); width: auto; display: block; }
.alms-brand .alms-brand__dark { display: none; }
:root[data-theme="dark"] .alms-brand .alms-brand__light { display: none; }
:root[data-theme="dark"] .alms-brand .alms-brand__dark { display: block; }

/* Stopka: nowe logo (wersja na ciemne tło, bez plakietki) */
.alms-fbrandlogo { display: inline-flex; align-items: center; line-height: 0; text-decoration: none; }
.alms-fbrandlogo img { height: clamp(64px, 6vw, 84px); width: auto; display: block; }
.alms-fbrand { max-width: 48rem; }

/* Hero: panel z napisem – tło przezroczyste (zdjęcie prześwieca), tekst w 100% */
.alms-hero-panel { background: linear-gradient(135deg, rgb(0 26 56 / .62) 0%, rgb(0 42 91 / .48) 100%); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); border: 1px solid rgb(255 255 255 / .14); box-shadow: 0 16px 40px rgb(0 10 25 / .28); }
.alms-hero-panel h1, .alms-hero-panel p { opacity: 1; text-shadow: 0 1px 3px rgb(0 10 25 / .45); }
/* Hero: warstwa z tekstem nad gradientem zdjęcia (WP ustawia z-index:1, a ::after miał tyle samo i zasłaniał napis) */
.wp-block-cover.alms-cover > .wp-block-cover__inner-container { position: relative; z-index: 3; }
.alms-cover::after { z-index: 0; }

/* ===== Strefa wsparcia: karty osób z inicjałami, wyśrodkowane rzędy ===== */
.alms-support__lead { max-width: 46rem; margin: 0 0 .5rem; font-size: 1.1875rem; line-height: 1.6; color: var(--wp--preset--color--heading); }
.alms-facts.alms-facts--center { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.alms-facts--center > .alms-fact { flex: 0 1 18rem; height: auto; }
.alms-fact--person { text-align: center; padding-top: 1.6rem; }
.alms-fact--person .alms-fact__tag { margin: .5rem auto 0; }
.alms-fact--person .alms-fact__title { margin: .9rem 0 0; font-size: 1.125rem; }
.alms-avatar { width: 76px; height: 76px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #001A38 0%, #002A5B 100%); color: #DDB671; font-family: var(--wp--preset--font-family--heading, inherit); font-weight: 800; font-size: 1.5rem; letter-spacing: .02em; box-shadow: 0 0 0 4px rgb(221 182 113 / .35); }
:root[data-theme="dark"] .alms-avatar { background: linear-gradient(135deg, #0E2748 0%, #14376A 100%); }
.alms-support__links { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.alms-support__links > .wp-block-html, .alms-support__links { margin: 0; }
.alms-support__link { display: grid; gap: .35rem; padding: 1.25rem 1.4rem; border-radius: 20px; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-left: 4px solid #DDB671; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.alms-support__link strong { font-size: 1.0625rem; color: var(--wp--preset--color--heading); }
.alms-support__link span { line-height: 1.55; }
.alms-support__link:hover, .alms-support__link:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 30px rgb(0 26 56 / .12); }
@media (prefers-reduced-motion: reduce) { .alms-support__link { transition: none; } .alms-support__link:hover { transform: none; } }

/* Strefa wsparcia: karty osób równej wysokości, imiona wyśrodkowane w pionie, etykiety stanowisk w jednej linii */
.alms-facts--center > .alms-fact--person { display: flex; flex-direction: column; align-items: center; align-self: stretch; }
.alms-fact--person > * { margin-block: 0 !important; }
.alms-fact--person .alms-fact__title { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 3.2rem; margin-top: .9rem !important; text-align: center; }
.alms-fact--person .alms-fact__tag { margin-top: .6rem !important; }

/* Strefa wsparcia: WordPress dokłada kartom (poza pierwszą) górny margines blockGap – w rzędzie flex przesuwało je w dół */
.alms-facts.alms-facts--center > .alms-fact { margin: 0 !important; }

/* Strefa wsparcia, "Zobacz też": ten sam problem z marginesem blockGap co przy kartach osób – drugi link zjeżdżał w dół */
.alms-support__links { align-items: stretch; }
.alms-support__links > * { margin: 0 !important; }
.alms-support__link { align-content: start; height: 100%; box-sizing: border-box; }

/* ===== Bursa: lead, karty faktów, baner CTA ===== */
.alms-lead { font-family: var(--wp--preset--font-family--display); font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 700; line-height: 1.4; color: var(--wp--preset--color--heading); }
.alms-facts.is-layout-grid { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-block: 1.75rem; }
.alms-fact { flex: 1 1 12rem; max-width: 15rem; background: linear-gradient(150deg, var(--wp--preset--color--surface) 0%, var(--wp--preset--color--soft) 100%); border: 1px solid var(--wp--preset--color--border); border-top: 4px solid #DDB671; border-radius: 22px; padding: 1.2rem 1.25rem 1.3rem; }
.alms-fact > * { margin: 0 !important; }
.alms-fact .alms-kicker { color: var(--wp--preset--color--gold-text); }
.alms-fact__value { font-family: var(--wp--preset--font-family--display); font-size: 1.35rem; line-height: 1.2; color: var(--wp--preset--color--heading); margin: .35rem 0 .3rem !important; }
.alms-fact__note { font-size: .875rem; line-height: 1.45; color: var(--wp--preset--color--muted); }
.alms-cta { margin-block: var(--wp--preset--spacing--50) !important; padding: 2rem 2.25rem; border-radius: 28px; color: #DCE8F5; background: radial-gradient(circle at 100% 0%, rgb(221 182 113 / .25) 0%, transparent 40%), linear-gradient(135deg, #001A38 0%, #002A5B 100%); }
.alms-cta > * { margin-block: 0 .6rem !important; }
.alms-cta .alms-kicker { color: #DDB671; }
.alms-cta h2 { color: #FFFFFF !important; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.alms-cta a { color: #FFFFFF; }
.alms-cta .wp-block-button__link { background: #DDB671 !important; color: #001A38 !important; }
.alms-cta .wp-block-button__link:hover { background: #E6C88E !important; }
:root[data-theme="dark"] .alms-cta { background: radial-gradient(circle at 100% 0%, rgb(221 182 113 / .15) 0%, transparent 40%), linear-gradient(135deg, #0D1C30 0%, #14273F 100%); border: 1px solid #22385A; }

/* ===== Formularze CF7: siatka 12 kolumn z szablonów ALMS (cf-container / cf-col-N) ===== */
.wpcf7 { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: 28px; padding: clamp(1.25rem, 3vw, 2.25rem); }
.wpcf7 .cf-container { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.wpcf7 [class^="cf-col-"], .wpcf7 [class*=" cf-col-"] { grid-column: span 12; min-width: 0; }
.wpcf7 .cf-col-2 { grid-column: span 2; } .wpcf7 .cf-col-3 { grid-column: span 3; } .wpcf7 .cf-col-4 { grid-column: span 4; } .wpcf7 .cf-col-6 { grid-column: span 6; }
.wpcf7 .cf-container > div:has(> [data-class="wpcf7cf_group"].wpcf7cf-hidden):not(:has(label:not([data-class="wpcf7cf_group"].wpcf7cf-hidden label))) { display: none; }
.wpcf7 .title_field { display: block; margin-top: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--wp--preset--color--border); font-family: var(--wp--preset--font-family--display); font-size: 1.05rem; font-weight: 800; letter-spacing: .05em; color: var(--wp--preset--color--heading); }
.wpcf7 .cf-container > div:first-child .title_field { margin-top: 0; padding-top: 0; border-top: 0; }
.wpcf7 label.field { display: grid; gap: .35rem; font-weight: 600; font-size: .9375rem; }
.wpcf7 .req { color: #B42318; margin-left: .15em; }
:root[data-theme="dark"] .wpcf7 .req { color: #FF9C8F; }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label { font-weight: 400; font-size: .9rem; line-height: 1.5; color: var(--wp--preset--color--muted); }
.wpcf7 .wpcf7-checkbox .wpcf7-list-item-label { font-weight: 500; }
.wpcf7 .wpcf7-submit { margin-top: .5rem; }
@media (max-width: 1000px) {
	.wpcf7 .cf-col-2, .wpcf7 .cf-col-3, .wpcf7 .cf-col-4 { grid-column: span 6; }
}
@media (max-width: 640px) {
	.wpcf7 .cf-container { gap: .9rem; }
	.wpcf7 .cf-col-2, .wpcf7 .cf-col-3, .wpcf7 .cf-col-4, .wpcf7 .cf-col-6 { grid-column: span 12; }
}
/* Formularz jako zwykły blok – kolumny cf-col-* poza główną siatką nie mogą rozbijać układu */
.wpcf7 form { display: block !important; }
.wpcf7 form > * + * { margin-top: 1rem; }
.wpcf7 form > [class^="cf-col-"], .wpcf7 form > [class*=" cf-col-"] { display: block; }
@media (max-width: 600px) { .alms-fact { max-width: none; flex-basis: 100%; } .alms-cta { padding: 1.5rem; } }

/* ===== Nauczyciele: dyrekcja + przedmioty (alms-staff) ===== */
.alms-staff-intro { margin-bottom: var(--wp--preset--spacing--40); }
.alms-staff-stats { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.alms-staff-stats li { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: 20px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .15rem; }
.alms-staff-stats strong { font-size: 2rem; line-height: 1; color: var(--wp--preset--color--accent, #002A5B); font-weight: 800; }
.alms-staff-stats span { font-size: .9375rem; opacity: .8; }
.alms-staff-lead { margin: 0 0 .9rem; max-width: 60ch; }
.alms-staff-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.alms-staff-chip { display: inline-block; padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--wp--preset--color--border); background: var(--wp--preset--color--surface); font-size: .875rem; text-decoration: none; font-weight: 600; }
.alms-staff-chip:hover, .alms-staff-chip:focus-visible { border-color: #DDB671; box-shadow: 0 0 0 2px rgb(221 182 113 / .45); }
.alms-staff-h { margin: var(--wp--preset--spacing--50) 0 1rem; font-size: 1.5rem; scroll-margin-top: 6rem; }
.alms-staff-dir { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; }
.alms-dir { display: flex; gap: 1rem; align-items: flex-start; background: linear-gradient(160deg, #001A38, #14273F); color: #fff; border-radius: 24px; padding: 1.25rem; }
.alms-dir__t { min-width: 0; }
.alms-dir__role { margin: 0 0 .25rem; color: #DDB671; font-size: .8125rem; font-weight: 700; letter-spacing: .02em; line-height: 1.35; }
.alms-dir__name { margin: 0 0 .6rem; font-size: 1.2rem; color: #fff; }
.alms-dir__links { margin: 0; display: flex; flex-direction: column; gap: .35rem; font-size: .875rem; }
.alms-dir__links a { display: inline-flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.alms-dir__links a:hover, .alms-dir__links a:focus-visible { color: #DDB671; }
.alms-dir__links svg { flex: none; color: #DDB671; }
.alms-ava { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #E6ECF5; color: #002A5B; font-weight: 800; font-size: .8125rem; letter-spacing: .02em; }
.alms-ava--lg { width: 56px; height: 56px; font-size: 1.1rem; background: #DDB671; color: #001A38; }
.alms-staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1rem; align-items: stretch; }
.alms-subj { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: 24px; padding: 1rem; scroll-margin-top: 6rem; }
.alms-subj--multi { border-color: rgb(221 182 113 / .75); }
.alms-subj__head { display: flex; align-items: center; gap: .75rem; padding-bottom: .8rem; margin-bottom: .4rem; border-bottom: 1px solid var(--wp--preset--color--border); flex-wrap: wrap; }
.alms-subj__head h3 { flex: 1 1 8rem; margin: 0; font-size: 1.0625rem; line-height: 1.25; }
.alms-subj__ic { flex: none; width: 44px; height: 44px; border-radius: 14px; background: #002A5B; color: #DDB671; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem; letter-spacing: .03em; }
.alms-subj__n { font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: #F2F4F8; color: #44546A; white-space: nowrap; }
.alms-subj--multi .alms-subj__n { background: #DDB671; color: #001A38; }
.alms-subj__list { list-style: none; margin: 0; padding: 0; }
.alms-subj__list li { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; }
.alms-subj__list li + li { border-top: 1px dashed var(--wp--preset--color--border); }
.alms-t__name { flex: 1 1 auto; min-width: 0; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.alms-t__mail { flex: none; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--wp--preset--color--border); color: #002A5B; }
.alms-t__mail:hover, .alms-t__mail:focus-visible { background: #DDB671; border-color: #DDB671; color: #001A38; }
:root[data-theme="dark"] .alms-staff-stats strong { color: #DDB671; }
:root[data-theme="dark"] .alms-ava { background: #22385A; color: #DDB671; }
:root[data-theme="dark"] .alms-ava--lg { background: #DDB671; color: #001A38; }
:root[data-theme="dark"] .alms-subj__n { background: #22385A; color: #D6DFEC; }
:root[data-theme="dark"] .alms-subj--multi .alms-subj__n { background: #DDB671; color: #001A38; }
:root[data-theme="dark"] .alms-t__mail { color: #DDB671; }
:root[data-theme="dark"] .alms-t__mail:hover, :root[data-theme="dark"] .alms-t__mail:focus-visible { color: #001A38; }
@media (max-width: 600px) {
	.alms-staff-stats { grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
	.alms-staff-stats li { padding: .75rem; border-radius: 16px; }
	.alms-staff-stats strong { font-size: 1.5rem; }
	.alms-staff-stats span { font-size: .75rem; }
	.alms-staff-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ===== Sporty w szkole: panele dyscyplin z trenerami (alms-sport, alms-coach) ===== */
.alms-sports { display: flex; flex-direction: column; gap: clamp(2rem, 5vw, 3.5rem); margin-top: var(--wp--preset--spacing--50); }
.alms-sport { scroll-margin-top: 6rem; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: 28px; padding: .75rem .75rem clamp(1rem, 3vw, 1.5rem); }
.alms-sport__band { position: relative; height: clamp(200px, 26vw, 320px); border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, #001A38, #14273F); }
.alms-sport__media { position: absolute; inset: 0; margin: 0; }
.alms-sport__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.alms-sport__band::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgb(0 26 56 / .88) 0%, rgb(0 26 56 / .55) 38%, rgb(0 26 56 / 0) 70%); pointer-events: none; }
.alms-sport__media--plain { display: flex; align-items: center; justify-content: flex-end; padding-right: clamp(1.5rem, 6vw, 4rem); color: #DDB671; background: radial-gradient(120% 140% at 85% 50%, #1D3A63 0%, #001A38 60%); }
.alms-sport__glyph { width: clamp(140px, 22vw, 260px); height: auto; opacity: .9; }
.alms-sport__cap { position: absolute; z-index: 1; left: clamp(1.25rem, 4vw, 2.5rem); bottom: clamp(1.1rem, 3vw, 2rem); right: 1.25rem; color: #fff; }
.alms-sport__eyebrow { margin: 0 0 .35rem; color: #DDB671; font-size: .8125rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.alms-sport .alms-sport__title { margin: 0 0 .6rem; color: #fff; font-size: clamp(1.9rem, 4.2vw, 2.8rem); line-height: 1.05; }
.alms-sport__n { margin: 0; display: inline-block; padding: .25rem .75rem; border-radius: 999px; background: #DDB671; color: #001A38; font-size: .8125rem; font-weight: 800; }
.alms-sport__coaches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 1rem; margin-top: 1rem; padding: 0 clamp(0rem, 1vw, .5rem); align-items: stretch; }
.alms-coach { display: flex; flex-direction: column; gap: .8rem; min-width: 0; background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--border); border-radius: 22px; padding: 1.25rem; }
.alms-coach--bio { border-color: rgb(221 182 113 / .7); }
.alms-sport__coaches:has(.alms-coach--bio) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.alms-coach__head { display: flex; align-items: center; gap: .9rem; }
.alms-coach__id { min-width: 0; }
.alms-coach .alms-coach__name { margin: 0; font-size: 1.2rem; line-height: 1.2; }
.alms-coach__role { margin: .2rem 0 0; font-size: .875rem; font-weight: 700; color: var(--wp--preset--color--gold-text, #8A6420); }
.alms-coach__intro { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
.alms-coach__label { margin: .2rem 0 0; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.alms-coach__exp { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.alms-coach__exp li { position: relative; padding-left: 1.6rem; line-height: 1.5; }
.alms-coach__exp li::before { content: ""; position: absolute; left: .1rem; top: .35em; width: .9rem; height: .9rem; border-radius: 50%; background: #DDB671 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23001A38' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.alms-coach__outro { margin: 0; padding: .9rem 1rem; border-radius: 16px; background: var(--wp--preset--color--soft, #F2F4F8); border-left: 3px solid #DDB671; line-height: 1.6; }
.alms-coach__soon { margin: 0; font-size: .9375rem; color: var(--wp--preset--color--muted, #5A6B80); }
.alms-coach__mail { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .55rem; max-width: 100%; min-height: 44px; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--wp--preset--color--border); color: #002A5B; font-size: .875rem; font-weight: 600; text-decoration: none; }
.alms-coach__mail span { overflow-wrap: anywhere; }
.alms-coach__mail svg { flex: none; color: #B08534; }
.alms-coach__mail:hover, .alms-coach__mail:focus-visible { background: #DDB671; border-color: #DDB671; color: #001A38; text-decoration: none; }
.alms-coach__mail:hover svg, .alms-coach__mail:focus-visible svg { color: #001A38; }
.alms-sports-cta { margin: 0; padding: 1.1rem 1.4rem; border-radius: 20px; border: 1px dashed var(--wp--preset--color--border); }
:root[data-theme="dark"] .alms-coach__role { color: #DDB671; }
:root[data-theme="dark"] .alms-coach__mail { color: #E6EEF7; }
:root[data-theme="dark"] .alms-coach__mail svg { color: #DDB671; }
:root[data-theme="dark"] .alms-coach__mail:hover, :root[data-theme="dark"] .alms-coach__mail:focus-visible { color: #001A38; }
:root[data-theme="dark"] .alms-coach__mail:hover svg { color: #001A38; }
:root[data-theme="dark"] .alms-coach__outro { background: #14273F; }
@media (max-width: 600px) {
	.alms-sport { padding: .5rem .5rem 1rem; border-radius: 22px; }
	.alms-sport__band { height: 190px; border-radius: 16px; }
	.alms-sport__band::after { background: linear-gradient(0deg, rgb(0 26 56 / .9) 0%, rgb(0 26 56 / .35) 60%, rgb(0 26 56 / .1) 100%); }
	.alms-sport__glyph { opacity: .35; }
	.alms-coach { padding: 1rem; }
}


/* ===== Telefony zaufania: telefon w szkole, karty numerów, numer alarmowy ===== */
.alms-tz__tag { display: inline-block; margin: 0 0 .7rem; padding: .2rem .7rem; border-radius: 999px; background: #001A38; color: #DDB671; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4; }
:root[data-theme="dark"] .alms-tz__tag { background: #DDB671; color: #001A38; }

.alms-tz-school { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem 2.5rem; align-items: center; padding: clamp(1.4rem, 3.5vw, 2.25rem) clamp(1.4rem, 4vw, 2.75rem); border-radius: 24px; background: linear-gradient(150deg, var(--wp--preset--color--surface) 0%, var(--wp--preset--color--soft) 100%); border: 1px solid var(--wp--preset--color--border); border-left: 6px solid #DDB671; box-shadow: 0 12px 34px rgb(0 26 56 / .1); }
.alms-tz-school__call { display: grid; justify-items: start; }
.alms-tz-school__call .alms-tz__tag { margin-bottom: .5rem; }
.alms-tz-school__num { font-size: clamp(2.1rem, 5.6vw, 3.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; color: var(--wp--preset--color--heading); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.alms-tz-school__num:hover, .alms-tz-school__num:focus-visible { text-decoration: underline; text-decoration-color: #DDB671; text-decoration-thickness: 4px; text-underline-offset: 6px; }
.alms-tz-school__info > * { margin: 0; }
.alms-tz-school__info .alms-tz-school__title { margin: 0 0 .65rem; font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.3; }
.alms-tz-school__hours { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem; border-radius: 999px; background: rgb(221 182 113 / .2); color: var(--wp--preset--color--heading); font-weight: 700; }
.alms-tz-school__hours svg { width: 1.1rem; height: 1.1rem; flex: none; fill: currentColor; }
.alms-tz-school__who { margin-top: .75rem !important; color: var(--wp--preset--color--muted, inherit); }
@media (max-width: 760px) { .alms-tz-school { grid-template-columns: 1fr; } }

.alms-tz__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0 0; }
@media (max-width: 900px) { .alms-tz__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .alms-tz__grid { grid-template-columns: 1fr; } }
.alms-tz__card { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 1.25rem 1.4rem 1.4rem; border-radius: 20px; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-top: 4px solid #DDB671; transition: transform .15s, box-shadow .15s; box-sizing: border-box; }
.alms-tz__card:hover, .alms-tz__card:focus-within { transform: translateY(-2px); box-shadow: 0 12px 30px rgb(0 26 56 / .12); }
.alms-tz__num { font-size: 1.75rem; font-weight: 800; line-height: 1.15; color: var(--wp--preset--color--heading); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.alms-tz__num::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.alms-tz__num:focus-visible { outline: none; }
.alms-tz__card:has(.alms-tz__num:focus-visible) { outline: 3px solid #DDB671; outline-offset: 2px; }
.alms-tz__name { margin: .5rem 0 0 !important; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .alms-tz__card { transition: none; } .alms-tz__card:hover { transform: none; } }

.alms-tz__alarm { grid-column: 1 / -1; display: flex; align-items: center; gap: .75rem; margin: .5rem 0 0 !important; padding: 1rem 1.25rem; border-radius: 16px; background: rgb(221 182 113 / .16); border: 1px solid rgb(221 182 113 / .55); color: var(--wp--preset--color--heading); line-height: 1.5; }
.alms-tz__alarm svg { width: 1.6rem; height: 1.6rem; flex: none; fill: #A77D1E; }
:root[data-theme="dark"] .alms-tz__alarm svg { fill: #DDB671; }
.alms-tz__alarm a { color: inherit; }

/* WordPress (blockGap) dokłada pierwszemu elementowi bloków html górny margines – bez tego odstępy w kartach się rozjeżdżają */
.alms-tz__card > *, .alms-tz-school__call > * { margin-block-start: 0 !important; }

/* Karta pliku wewnątrz listy linków (np. granatowa karta w Strefie ucznia i rodzica): czytelny tytuł, bez dodatkowej strzałki */
.alms-links .alms-file { color: var(--wp--preset--color--heading); text-decoration: none; margin-top: .5rem; }
.alms-links .alms-file::after { content: none; display: none; }
.alms-links .alms-file-row { border-top: 0; }

/* ===== Informacje o rekrutacji: karty kryteriów i tabele punktów ===== */
.alms-crit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 1.25rem; }
.alms-crit__card { padding: 1.35rem 1.5rem 1.5rem; border-radius: 20px; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-top: 4px solid #DDB671; }
.alms-crit__card > * { margin-block: 0 !important; }
.alms-crit__card > * + * { margin-top: .75rem !important; }
.alms-crit__card .alms-fact__tag { margin-bottom: .1rem !important; }
.alms-crit .alms-crit__title { font-size: 1.25rem; line-height: 1.25; }
.alms-crit__card ul { padding-left: 1.25rem; }
.alms-crit__card li + li { margin-top: .4rem; }
.alms-score { margin: 0 !important; }
.alms-score table { width: 100%; }
.alms-score th, .alms-score td { padding: .55rem .9rem; }
.alms-score td:first-child { white-space: normal; }
.alms-score td:last-child, .alms-score th:last-child { text-align: right; font-variant-numeric: tabular-nums; width: 5.5rem; }
@media (max-width: 760px) { .alms-crit { grid-template-columns: minmax(0, 1fr); } }
.alms-crit__card { min-width: 0; }
.alms-facts--prices > .alms-fact--price { max-width: none; height: auto; }
.alms-crit > * { margin: 0 !important; }
.alms-score table { min-width: 0 !important; }

/* ===== Strony-huby (Strefa kandydata, Strefa ucznia i rodzica, O szkole): karty linków ===== */
.alms-hub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0 0; }
@media (max-width: 900px) { .alms-hub { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .alms-hub { grid-template-columns: minmax(0, 1fr); } }
.alms-hub__card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: .6rem; min-height: 5.75rem; padding: 1.2rem 3.4rem 1.1rem 1.4rem; border-radius: 20px; text-decoration: none; color: var(--wp--preset--color--heading); background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-top: 4px solid #DDB671; box-shadow: 0 6px 20px rgb(0 26 56 / .06); transition: transform .15s, box-shadow .15s, border-color .15s; }
.alms-hub__card:hover, .alms-hub__card:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 34px rgb(0 26 56 / .14); border-color: #DDB671; text-decoration: none; }
.alms-hub__name { font-family: var(--wp--preset--font-family--heading, inherit); font-weight: 800; font-size: 1.2rem; line-height: 1.25; }
.alms-hub__meta { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--gold-text); }
.alms-hub__go { position: absolute; right: 1rem; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; background: #001A38; color: #DDB671; font-weight: 800; transition: transform .15s; }
:root[data-theme="dark"] .alms-hub__go { background: #DDB671; color: #001A38; }
.alms-hub__card:hover .alms-hub__go { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .alms-hub__card, .alms-hub__go { transition: none; } .alms-hub__card:hover { transform: none; } }
.alms-hub + * { margin-top: 1.5rem; }

/* Karta pliku tuż pod banerem – odstęp */
.alms-basehero + .alms-file-row { margin-top: 1.5rem; }

/* ===== Informacje o ALMS (id 1339) ===== */
.alms-ia__intro { max-width: 46rem; margin: 2rem auto 0 !important; }
.alms-ia__intro > * { margin: 0 0 1.1rem !important; }
.alms-ia__intro .alms-ia__lead { font-size: 1.1875rem; line-height: 1.65; color: var(--wp--preset--color--heading, #001A38); font-weight: 500; }
.alms-ia__sports { margin: 2rem auto 0 !important; padding: 1.5rem; text-align: center; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: 24px; }
.alms-ia__sports > * { margin: 0 !important; }
.alms-ia__sports .alms-ia__sports-lead { margin-bottom: 1rem !important; font-weight: 700; }
.alms-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 1.25rem !important; }
.alms-chips li { margin: 0; padding: .45rem 1rem; border-radius: 999px; background: rgb(221 182 113 / .22); border: 1px solid rgb(221 182 113 / .75); color: var(--wp--preset--color--heading, #001A38); font-weight: 700; font-size: .9375rem; }
.alms-chips li::first-letter { text-transform: uppercase; }
.alms-ia__sports .wp-block-buttons { justify-content: center; }
.alms-offer h3 { font-size: 1.375rem; margin: 0 0 .75rem; }
.alms-offers { margin-top: 1.25rem; }
.alms-ia__card { max-width: 46rem; margin: 1.25rem auto 0 !important; padding: 1.5rem 1.75rem; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-left: 6px solid #DDB671; border-radius: 20px; }
.alms-ia__card > * { margin: 0 !important; }
.alms-ia__chronicle { position: relative; overflow: hidden; margin-top: 3rem !important; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 28px; color: #DCE8F5; text-align: center; background: linear-gradient(135deg, #001A38 0%, #0B2D57 100%); }
.alms-ia__chronicle > * { position: relative; max-width: 46rem; margin-inline: auto !important; }
.alms-ia__chronicle .alms-ia__chronicle-h { margin: 0 0 .75rem !important; color: #FFFFFF; font-size: clamp(1.4rem, 2.8vw, 1.9rem); }
.alms-ia__chronicle p { margin: 0 0 1.25rem !important; color: #DCE8F5; }
.alms-ia__chronicle a:not(.wp-block-button__link) { color: #DDB671; }
.alms-ia__chronicle .alms-years { justify-content: center; margin: 0 !important; }
.alms-ia__chronicle .alms-years .wp-block-button__link { background: transparent; color: #FFFFFF; border: 1px solid rgb(255 255 255 / .5); }
.alms-ia__chronicle .alms-years .wp-block-button__link:hover, .alms-ia__chronicle .alms-years .wp-block-button__link:focus-visible { background: #DDB671; border-color: #DDB671; color: #001A38; }
.alms-ia__video { max-width: 52rem; margin: 1.25rem auto 0 !important; }
.alms-ia__video video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 24px; background: #001A38; border: 1px solid var(--wp--preset--color--border); }

/* ===== Nowe profile (id 1323): przypis i zakończenie ===== */
.alms-np__note { margin: 1rem auto 0 !important; padding: .85rem 1.25rem; border-radius: 16px; background: rgb(221 182 113 / .16); border: 1px dashed rgb(221 182 113 / .9); }
.alms-np__note > * { margin: 0 !important; }
.alms-np__note p { font-size: .9375rem; line-height: 1.5; }
.alms-np__star { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; margin-right: .6rem; border-radius: 999px; background: #DDB671; color: #001A38; font-weight: 800; line-height: 1; vertical-align: middle; }
.alms-basehero + .alms-profiles { margin-top: 1.5rem; }
.alms-ia__card > * + * { margin-top: .9rem !important; }

/* ===== Nasi wychowankowie (id 1341): nawigacja po rocznikach ===== */
.alms-basehero__nav--years a, .alms-basehero__nav--years a + a { background: transparent; color: #FFFFFF; border: 1px solid rgb(255 255 255 / .45); }
.alms-basehero__nav--years a:hover, .alms-basehero__nav--years a:focus-visible { background: #DDB671; color: #001A38; border-color: #DDB671; }
.alms-year { scroll-margin-top: 6.5rem; }
.alms-basehero + .alms-year { margin-top: 2.25rem !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ===== Strony z listami plików (Dokumenty, Dokumenty kandydata, Podręczniki) ===== */
.alms-filegrid { max-width: 48rem; margin: 0 auto !important; }
.alms-filegrid > * { margin-block: .6rem !important; }
.alms-filegrid > :first-child { margin-top: 1rem !important; }
.alms-facts__h[id] { scroll-margin-top: 6.5rem; }
.alms-basehero + .alms-filegrid { margin-top: 1.5rem !important; }
.alms-basehero + .alms-ia__card { margin-top: 1.5rem !important; }

/* ===== Rekrutacja online: formularz w krokach (alms-rf) ===== */
.alms-rek { margin-top: 1.5rem; }
.alms-rek > * { margin-block: 0 !important; }
.wpcf7:has(.alms-rf) { background: none; border: 0; border-radius: 0; padding: 0; }
.alms-rf { display: grid; gap: 1.25rem; }
.alms-rf__steps { display: grid; gap: 1.25rem; min-width: 0; }
.alms-rf__nav { display: none; }
@media (min-width: 1024px) {
	.alms-rf { grid-template-columns: 15.5rem minmax(0, 1fr); gap: 2rem; align-items: start; }
	.alms-rf__nav { display: block; position: sticky; top: 7rem; padding: 1.25rem 1rem; border-radius: 24px; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); }
}
.alms-rf__navtitle { margin: 0 0 .75rem .5rem; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.alms-rf__nav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.alms-rf__nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .5rem; border-radius: 12px; color: var(--wp--preset--color--heading); text-decoration: none; font-weight: 600; font-size: .9375rem; line-height: 1.25; }
.alms-rf__nav a:hover, .alms-rf__nav a:focus-visible { background: rgb(30 47 86 / .06); text-decoration: none; }
.alms-rf__nav a.is-current { background: rgb(30 47 86 / .08); font-weight: 800; }
.alms-rf__n { flex: 0 0 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--wp--preset--color--border); font-size: .8125rem; font-weight: 800; color: var(--wp--preset--color--muted); }
.alms-rf__nav a.is-current .alms-rf__n { border-color: #1E2F56; color: #1E2F56; }
.alms-rf__nav a.is-done .alms-rf__n { background: #C4962F; border-color: #C4962F; color: transparent; position: relative; }
.alms-rf__nav a.is-done .alms-rf__n::after { content: ""; position: absolute; width: .45rem; height: .8rem; border: solid #0F1A33; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.alms-rf__legend { margin: .9rem 0 0 .5rem; padding-top: .9rem; border-top: 1px solid var(--wp--preset--color--border); font-size: .8125rem; color: var(--wp--preset--color--muted); }

.alms-rf__step { min-width: 0; padding: clamp(1.15rem, 3vw, 2rem); border-radius: 24px; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); scroll-margin-top: 7rem; }
.alms-rf__head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.alms-rf__num { flex: 0 0 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #2A4073, #1E2F56); color: #DEB873; font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 1.1rem; }
.wpcf7 .alms-rf__head h2 { margin: .1rem 0 0; padding: 0; border: 0; font-size: clamp(1.2rem, 2.2vw, 1.4rem); line-height: 1.25; }
.alms-rf__head p { margin: .3rem 0 0; color: var(--wp--preset--color--muted); font-size: .9375rem; line-height: 1.5; }
.alms-rf__head a { font-weight: 700; white-space: nowrap; }

.alms-rf__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.alms-rf .f { grid-column: span 12; min-width: 0; margin: 0; }
@media (min-width: 700px) {
	.alms-rf .c3 { grid-column: span 3; } .alms-rf .c4 { grid-column: span 4; } .alms-rf .c6 { grid-column: span 6; } .alms-rf .c8 { grid-column: span 8; }
	.alms-rf .f--end { align-self: end; }
}
@media (min-width: 700px) and (max-width: 860px) {
	.alms-rf .c3 { grid-column: span 6; } .alms-rf .c4 { grid-column: span 6; } .alms-rf .c8 { grid-column: span 6; }
}
.alms-rf .f:has(> [data-class="wpcf7cf_group"].wpcf7cf-hidden:only-child),
.alms-rf .f:not(:has(> :not([data-class="wpcf7cf_group"].wpcf7cf-hidden))) { display: none; }

.alms-rf label.field { display: grid; gap: .4rem; font-weight: 600; font-size: .9375rem; }
.alms-rf .lbl { display: block; font-weight: 700; font-size: .9375rem; color: var(--wp--preset--color--heading); }
.alms-rf .req { color: #B42318; margin-left: .2em; }
:root[data-theme="dark"] .alms-rf .req { color: #FF9C8F; }
.alms-rf .opt { font-weight: 400; font-size: .85em; color: var(--wp--preset--color--muted); }
.alms-rf__hint { font-size: .85rem; font-weight: 400; color: var(--wp--preset--color--muted); }
.alms-rf :is(input[type=text], input[type=email], input[type=tel], input[type=date], select) { width: 100%; min-height: 48px; }
.alms-rf select { text-overflow: ellipsis; }
.alms-rf textarea { width: 100%; min-height: 7rem; resize: vertical; }

/* Pola wyboru obok opisu, nie pod nim */
.alms-rf :is(.wpcf7-form-control-wrap, .wpcf7-checkbox, .wpcf7-acceptance, .wpcf7-radio) { display: block; }
.alms-rf .wpcf7-list-item { display: block; margin: 0; }
.alms-rf .wpcf7-list-item > label { display: flex; width: 100%; box-sizing: border-box; gap: .7rem; align-items: flex-start; font-weight: 500; cursor: pointer; }
.alms-rf .f > label + [data-class="wpcf7cf_group"] { margin-top: .9rem; }
.alms-rf input[type=checkbox], .alms-rf input[type=radio] { width: 22px; height: 22px; margin: .05rem 0 0; flex: 0 0 auto; accent-color: #1E2F56; }
:root[data-theme="dark"] .alms-rf :is(input[type=checkbox], input[type=radio]) { accent-color: #DEB873; }
.alms-rf__check { padding: .8rem 1rem; border-radius: 14px; background: rgb(30 47 86 / .04); border: 1px solid var(--wp--preset--color--border); }
.alms-rf__check .wpcf7-list-item-label { font-weight: 600; }

/* Kafelki wyboru (opieka, klasa, bursa) */
.alms-rf__fs { margin: 0; padding: 0; border: 0; min-width: 0; }
.alms-rf__fs > legend { padding: 0; margin-bottom: .55rem; }
.alms-rf__tiles .wpcf7-list-item { display: flex; }
.alms-rf__tiles .wpcf7-radio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .75rem; }
.alms-rf__tiles--yn .wpcf7-radio { grid-template-columns: repeat(2, minmax(0, 9rem)); }
.alms-rf__tiles .wpcf7-list-item > label { flex: 1 1 auto; align-items: center; min-height: 56px; padding: .8rem 1rem; border-radius: 14px; border: 1.5px solid var(--wp--preset--color--border); background: var(--wp--preset--color--base); font-weight: 600; line-height: 1.3; transition: border-color .15s, background-color .15s; }
.alms-rf__tiles .wpcf7-list-item > label:hover { border-color: #2A4073; }
.alms-rf__tiles .wpcf7-list-item > label:has(input:checked) { border-color: #1E2F56; background: rgb(30 47 86 / .07); box-shadow: inset 0 0 0 1px #1E2F56; }
.alms-rf__tiles .wpcf7-list-item > label:has(input:focus-visible) { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; }
:root[data-theme="dark"] .alms-rf__tiles .wpcf7-list-item > label:hover { border-color: #DEB873; }
:root[data-theme="dark"] .alms-rf__tiles .wpcf7-list-item > label:has(input:checked) { border-color: #DEB873; background: rgb(222 184 115 / .1); box-shadow: inset 0 0 0 1px #DEB873; }

/* Podsekcje (adres do korespondencji, rodzice) */
.alms-rf__sub { margin-top: 1.4rem; padding-top: 1.25rem; border-top: 1px solid var(--wp--preset--color--border); }
.wpcf7 .alms-rf__subh { margin: 0 0 1rem; padding: 0; border: 0; font-size: 1rem; font-weight: 800; color: var(--wp--preset--color--heading); }
.alms-rf__note { margin: .9rem 0 0; padding: .85rem 1rem; border-radius: 12px; border-left: 4px solid #C4962F; background: rgb(196 150 47 / .08); font-size: .9rem; line-height: 1.5; }
.alms-rf__note a { font-weight: 700; white-space: nowrap; }

/* Oświadczenia */
.alms-rf__acc { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
.alms-rf__acc .f { grid-column: auto; }
.alms-rf__acc .wpcf7-list-item > label { padding: .75rem .9rem; border-radius: 12px; border: 1px solid var(--wp--preset--color--border); background: var(--wp--preset--color--base); }
.alms-rf__acc .wpcf7-list-item-label { font-weight: 400; font-size: .9rem; line-height: 1.55; color: var(--wp--preset--color--text, inherit); }
.alms-rf__acc .wpcf7-list-item-label a { font-weight: 700; }
.alms-rf__all { margin-bottom: .25rem; }
.alms-rf__all label { display: flex; width: 100%; box-sizing: border-box; gap: .7rem; align-items: center; padding: .8rem .9rem; border-radius: 12px; background: rgb(30 47 86 / .06); font-weight: 800; cursor: pointer; }
:root[data-theme="dark"] .alms-rf__all label, :root[data-theme="dark"] .alms-rf__check { background: rgb(255 255 255 / .05); }

/* Wysyłka */
.alms-rf__submit { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: 0 .25rem; }
.alms-rf__submit p { margin: 0; font-size: .9rem; color: var(--wp--preset--color--muted); }
.wpcf7 .alms-rf__send { margin: 0; min-width: 14rem; }
.alms-rf .wpcf7-spinner { margin: 0; }
.wpcf7:has(.alms-rf) .wpcf7-response-output { margin-top: 1.25rem !important; }
@media (min-width: 1024px) { .wpcf7:has(.alms-rf) .wpcf7-response-output { margin-left: calc(15.5rem + 2rem) !important; } }
/* Rekrutacja online: karta bursy Fundacji */
.alms-rf__bursa { position: relative; overflow: hidden; padding: 1.1rem 1.25rem 1.15rem; border-radius: 16px; background: linear-gradient(135deg, #1E2F56, #2A4073); color: #DCE8F5; }
.alms-rf__bursa p { margin: 0; font-size: .9375rem; line-height: 1.55; }
.alms-rf__bursa .alms-rf__bursa-eyebrow { margin-bottom: .35rem; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #DEB873; }
.alms-rf__bursa .alms-rf__bursa-title { margin-bottom: .4rem; font-family: var(--wp--preset--font-family--display); font-size: 1.05rem; font-weight: 800; color: #FFFFFF; }
.alms-rf__bursa a { color: #DEB873; font-weight: 700; white-space: nowrap; }
.alms-rf__bursa a:hover, .alms-rf__bursa a:focus-visible { color: #FFFFFF; }
:root[data-theme="dark"] .alms-rf__bursa { border: 1px solid rgb(222 184 115 / .35); }
.alms-rf .f > fieldset + [data-class="wpcf7cf_group"] .alms-rf__note { margin-top: .9rem; }
:root[data-theme="dark"] .alms-rf__nav a:hover, :root[data-theme="dark"] .alms-rf__nav a:focus-visible, :root[data-theme="dark"] .alms-rf__nav a.is-current { background: rgb(255 255 255 / .06); }
:root[data-theme="dark"] .alms-rf__nav a.is-current .alms-rf__n { border-color: #DEB873; color: #DEB873; }
/* Formularz bursy (alms-rf, kroki jako H3) */
.wpcf7 .alms-rf__head h3 { margin: .1rem 0 0; padding: 0; border: 0; font-size: clamp(1.2rem, 2.2vw, 1.4rem); line-height: 1.25; }
.alms-rf__docs { margin: -.4rem 0 1rem; font-size: .9rem; color: var(--wp--preset--color--muted); }
.alms-rf__docs a, .alms-rf__submit p a { font-weight: 700; white-space: nowrap; }
.alms-rb-h { scroll-margin-top: 6.5rem; }
/* Formularze alms-rf: po nieudanej wysyłce miejsce na komunikaty jest stałe – znikający komunikat nie przesuwa treści pod kursorem */
form:is(.invalid, .unaccepted) .alms-rf .wpcf7-form-control-wrap { position: relative; padding-bottom: 1.5rem; }
form:is(.invalid, .unaccepted) .alms-rf .wpcf7-not-valid-tip { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== Bursa: góra strony – baner, karta „O bursie”, kafelki „Co oferujemy” (alms-bo) ===== */
.alms-facts.alms-bo__facts { margin-top: 1.5rem; }
.alms-bo__intro { margin-top: 1.75rem; }
.alms-bo__intro p { margin: 0; line-height: 1.65; }
.alms-bo__intro p + p { margin-top: .75rem; }
.alms-bo { list-style: none; margin: 1rem auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.alms-bo__item { display: flex; align-items: center; gap: .9rem; margin: 0; padding: 1rem 1.1rem; border-radius: 18px; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); }
.alms-bo__ico { flex: 0 0 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #2A4073, #1E2F56); color: #DEB873; }
.alms-bo__txt { display: block; font-size: .9375rem; font-weight: 600; line-height: 1.4; color: var(--wp--preset--color--heading); }
.alms-bo__txt::first-letter { text-transform: uppercase; }
:root[data-theme="dark"] .alms-bo__ico { border: 1px solid rgb(222 184 115 / .3); }
@media (max-width: 1000px) { .alms-bo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .alms-bo { grid-template-columns: minmax(0, 1fr); } .alms-bo__item { padding: .85rem 1rem; } }
#oferta, #dokumenty { scroll-margin-top: 6.5rem; }
@media (max-width: 600px) {
	.alms-facts.alms-bo__facts { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: .75rem !important; }
	.alms-facts.alms-bo__facts > .alms-fact { max-width: none; margin: 0 !important; padding: .9rem 1rem; }
	.alms-facts.alms-bo__facts > .alms-fact:first-child { grid-column: 1 / -1; }
	.alms-facts.alms-bo__facts .alms-fact__value { font-size: 1.05rem; }
}

/* ===== Kalendarz roku szkolnego (strona w Strefie ucznia i rodzica) ===== */
.alms-cal__legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem .75rem; margin: 1.25rem auto 0; padding: 0; font-size: .875rem; }
.alms-cal__legend li { display: inline-flex; align-items: center; gap: .45rem; margin: 0; }
.alms-cal__legend li::before { content: ""; width: .8rem; height: .8rem; border-radius: 4px; background: color-mix(in srgb, var(--wp--preset--color--heading) 22%, transparent); }
.alms-cal__legend .alms-cal--free::before { background: #DDB671; }
.alms-cal__legend .alms-cal--parents::before { background: #4A90C8; }
.alms-cal__legend .alms-cal--exam::before { background: #0B2D57; box-shadow: 0 0 0 1px rgb(255 255 255 / .35); }
.alms-cal { list-style: none; max-width: 52rem; margin: 1rem auto 0; padding: 0; display: grid; gap: .6rem; }
.alms-cal__row { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr) auto; gap: .9rem; align-items: center; margin: 0; padding: .7rem 1rem .7rem .7rem; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-left: 5px solid color-mix(in srgb, var(--wp--preset--color--heading) 18%, transparent); border-radius: 16px; }
.alms-cal__date { display: grid; place-items: center; align-content: center; min-height: 3.6rem; padding: .3rem .4rem; border-radius: 12px; text-align: center; line-height: 1.1; background: color-mix(in srgb, var(--wp--preset--color--heading) 7%, transparent); color: var(--wp--preset--color--heading); }
.alms-cal__date strong { display: block; font-size: 1.5rem; font-weight: 800; }
.alms-cal__date span { display: block; margin-top: .15rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.alms-cal__date--range strong { font-size: 1.05rem; }
.alms-cal__date--text strong { font-size: .9rem; line-height: 1.2; }
.alms-cal__body { min-width: 0; }
.alms-cal__body p { margin: 0 !important; }
.alms-cal__title { font-weight: 700; line-height: 1.35; color: var(--wp--preset--color--heading); }
.alms-cal__note { margin-top: .15rem !important; font-size: .9375rem; line-height: 1.45; color: var(--wp--preset--color--contrast); }
.alms-cal__badge { align-self: center; white-space: nowrap; padding: .25rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: color-mix(in srgb, var(--wp--preset--color--heading) 10%, transparent); color: var(--wp--preset--color--heading); }
.alms-cal__row.alms-cal--free { border-left-color: #DDB671; }
.alms-cal--free .alms-cal__date, .alms-cal--free .alms-cal__badge { background: rgb(221 182 113 / .28); }
.alms-cal__row.alms-cal--parents { border-left-color: #4A90C8; }
.alms-cal--parents .alms-cal__date, .alms-cal--parents .alms-cal__badge { background: rgb(74 144 200 / .22); }
.alms-cal__row.alms-cal--exam { border-left-color: #0B2D57; }
.alms-cal--exam .alms-cal__date, .alms-cal--exam .alms-cal__badge { background: rgb(11 45 87 / .18); }
:root[data-theme="dark"] .alms-cal--exam .alms-cal__date, :root[data-theme="dark"] .alms-cal--exam .alms-cal__badge { background: rgb(120 160 220 / .25); }
:root[data-theme="dark"] .alms-cal__row.alms-cal--exam { border-left-color: #78A0DC; }
@media (max-width: 560px) {
	.alms-cal__row { grid-template-columns: 4.5rem minmax(0, 1fr); gap: .7rem; }
	.alms-cal__badge { grid-column: 2; justify-self: start; }
}

/* Ważne terminy – automat */
.alms-dates li[hidden] { display: none; }
.alms-dates li.is-last { border-bottom: 0; }
.alms-dates .alms-dates__empty { font-weight: 500; color: var(--wp--preset--color--muted, inherit); }

/* ---------- Treść wpisów od redakcji: pliki, galerie, śródtytuły (0.1.1) ---------- */
.wp-block-post-content > h2.wp-block-heading:not(:first-child) { margin-block-start: 2.25rem; }
.wp-block-post-content .wp-block-file {
	display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center;
	padding: 1rem 1.25rem; border-radius: 18px;
	background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border);
}
.wp-block-post-content .wp-block-file > a:first-child { flex: 1 1 15rem; min-width: 0; font-weight: 600; color: var(--wp--preset--color--heading); overflow-wrap: anywhere; }
.wp-block-post-content .wp-block-file__button { margin: 0; }
.wp-block-post-content .wp-block-gallery { gap: .75rem; }
.wp-block-post-content .wp-block-gallery .wp-block-image img { border-radius: 14px; }
.editor-styles-wrapper .wp-block-file { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; padding: 1rem 1.25rem; border-radius: 18px; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); }

/* ---------- Menu na telefonie (nakładka): lista od lewej, sekcje zamiast pływających kart (0.1.2, 2026-10-20) ---------- */
.alms-header .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: stretch;
	--navigation-layout-justify: flex-start;
	--navigation-layout-align: stretch;
	padding: 0;
}
.alms-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	top: 1rem; right: 1rem; width: 44px; height: 44px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 999px; background: var(--wp--preset--color--soft);
}
.alms-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch !important; gap: 0 !important;
	padding: 4.5rem 1.25rem 2.5rem !important;
}
.alms-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	flex-direction: column; align-items: stretch !important; gap: 0 !important; width: 100%;
}
.alms-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	display: flex; flex-direction: column; align-items: stretch !important; width: 100%;
	padding: .25rem 0; border-bottom: 1px solid var(--wp--preset--color--border);
}
.alms-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block; width: 100%; text-align: left;
}
.alms-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	padding: .75rem 0 !important; font-size: 1.125rem; font-weight: 700;
	color: var(--wp--preset--color--heading) !important;
}
.alms-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	position: static !important; width: 100% !important; min-width: 0 !important; height: auto !important;
	opacity: 1 !important; visibility: visible !important; overflow: visible !important;
	background: transparent !important; border: 0 !important; border-radius: 0; box-shadow: none;
	border-left: 2px solid var(--wp--preset--color--gold) !important;
	margin: 0 0 .75rem .15rem !important; padding: 0 0 0 .75rem !important;
	gap: 0 !important; align-items: stretch !important;
}
.alms-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: .6rem .6rem !important; border-radius: 10px;
	font-size: 1rem; font-weight: 500; color: var(--wp--preset--color--contrast) !important;
}
.alms-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.alms-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
	background: var(--wp--preset--color--soft);
}
.alms-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--primary) !important; font-weight: 700;
}
.alms-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon { display: none !important; }
