/* Nunito Sans (OFL), zmienna 500–700, tylko latin i latin-ext */
@font-face {
    font-family: "Tagger";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/tagger.woff2") format("woff2");
}
@font-face {
    font-family: "Nunito Sans";
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("../fonts/nunito-sans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Nunito Sans";
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("../fonts/nunito-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokeny ze zmiennych Figmy (plik Kubryk, final-layouts) */
:root {
    --white: #ffffff;
    --navy-600: #1f2967;
    --navy-700: #191f4c;
    --navy-800: #0f122d;
    --primary-100: #effafc;
    --primary-200: #a1e7f7;
    --primary-400: #6ecceb;
    --primary-500: #10a2c2;
    --primary-600: #168bb5;
    --primary-700: #006e94;
    --orange-100: #fdf6ec;
    --orange-200: #fbe5c6;
    --orange-500: #ffaf44;
    --orange-600: #ef9324;
    --orange-700: #e79034;
    --gray-50: #eff0f5;
    --gray-150: #dddee5;
    --gray-300: #b8b9c4;
    --gray-500: #737482;
    --bg-page: #f8f9fb;      /* tło strony rejsu w Figmie (Rejs_szczegóły) */
    --orange-line: #f1a242;  /* linie i kropki przy „Najważniejszych informacjach” i parametrach jachtu */
    --success-100: #ecfdf5;
    --success-600: #059669;

    /* Poza Figmą: ciemniejsze odcienie tam, gdzie kolor z projektu nie spełnia kontrastu WCAG AA */
    --orange-text: #8a4f0c;
    --danger: #b42318;

    --font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-script: "Tagger", "Segoe Script", "Brush Script MT", cursive; /* napisy odręczne z Figmy (Warszawskie Kroje) */
    --fs-h1: 48px;
    --fs-h2: 40px;
    --fs-h3: 32px;
    --fs-h4: 24px;
    --fs-h5: 20px;
    --fs-body-1: 20px;
    --fs-body-2: 16px;
    --fs-body-3: 14px;
    --fs-small: 12px;

    --radius-full: 9999px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --border: 1px;
    --shadow-1: 0 1px 5px rgba(97, 88, 88, .05);

    --gap: 16px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 40px;
    --space-7: 56px;
    --space-8: 80px;
    --space-9: 100px;

    --container: 1280px;
    --gutter: 80px;
    --nav-h: 80px;

    /* Przyciski: kolory z Figmy, a w nawiasie wersja z projektu, gdy kontrast był za niski */
    --btn-primary-bg: var(--primary-700);  /* nagłówek w Figmie: primary-500 */
    --btn-light-text: var(--primary-700);  /* Figma: primary-500 */
    --btn-orange-text: var(--white);       /* jak w Figmie */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font);
    font-weight: 500;
    font-size: var(--fs-body-2);
    line-height: 1.4;
    font-feature-settings: "salt" 1;
    color: var(--navy-600);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-700); text-underline-offset: 2px; }
a:hover { color: var(--navy-600); }
:focus-visible { outline: 3px solid var(--primary-700); outline-offset: 2px; border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--space-3); color: var(--navy-600); }
h1, .h1 { font-size: var(--fs-h1); font-weight: 500; line-height: 1; }
h2, .h2 { font-size: var(--fs-h2); font-weight: 500; line-height: 1; }
h3, .h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; }
h4, .h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.2; }
h5, .h5, h6 { font-size: var(--fs-h5); font-weight: 600; line-height: 1.2; }
p { margin: 0 0 var(--space-3); }
.body-1 { font-size: var(--fs-body-1); }
.body-2 { font-size: var(--fs-body-2); }
.body-3 { font-size: var(--fs-body-3); }
.small { font-size: var(--fs-small); }
.bold { font-weight: 700; }
.muted { color: var(--gray-500); }
.mt-3 { margin-top: var(--space-3); }
.mb-3 { margin-bottom: var(--space-3); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space-9) 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Fraza, której szukają ludzie, nad hasłem z Figmy w H1 (audyt SEO 21.10.2026): mała linia, hasło zostaje bez zmian. */
.hero__kicker { display: block; margin: 0 0 12px; font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: .01em; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--navy-600); color: var(--white); padding: 12px 20px; border-radius: var(--radius-full); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 16px; color: var(--white); }

/* Przyciski */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    height: 48px; padding: 0 var(--space-5); border: 0; border-radius: var(--radius-full);
    font-size: var(--fs-body-3); font-weight: 700; line-height: 1; white-space: nowrap;
    text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s;
}
.btn--primary { background: var(--btn-primary-bg); color: var(--white); }
.btn--primary:hover { background: var(--navy-600); color: var(--white); }
.btn--light { background: var(--primary-100); color: var(--btn-light-text); }
.btn--light:hover { background: var(--primary-200); color: var(--navy-600); }
.btn--orange { background: var(--orange-600); color: var(--btn-orange-text); box-shadow: 0 1px 1px rgba(55, 54, 68, .06); }
.btn--orange:hover { background: var(--orange-500); color: var(--white); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--radius-full); background: var(--primary-100); cursor: pointer; }
.icon-btn:hover { background: var(--primary-200); }

/* Etykiety (pigułki nad nagłówkami: „O nas”, „Kontakt”) */
.pill { display: inline-flex; align-items: center; height: 26px; padding: var(--space-1) 12px; border-radius: var(--radius-full); background: var(--orange-100); color: var(--orange-text); font-size: var(--fs-body-3); font-weight: 700; line-height: 1.3; }
.pill--blue { background: var(--primary-100); color: var(--primary-700); }
.pill--green { background: var(--success-100); color: #04704f; }

/* Formularze */
.field { display: flex; flex-direction: column; gap: var(--space-1); margin-bottom: var(--space-3); }
.field label, .label { font-size: var(--fs-body-3); font-weight: 700; line-height: 1.3; color: var(--navy-700); }
.input, .textarea, .select {
    width: 100%; min-height: 48px; padding: 13px 12px;
    background: var(--white); border: var(--border) solid var(--gray-150); border-radius: var(--radius-lg);
    font-size: var(--fs-body-3); font-weight: 500; line-height: 1.4; color: var(--navy-700);
}
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--gray-500); opacity: 1; }
.input:focus, .textarea:focus, .select:focus { outline: 2px solid var(--primary-700); outline-offset: 0; border-color: var(--primary-700); }
.field--error .input, .field--error .textarea { border-color: var(--danger); }
.field-error { font-size: var(--fs-small); color: var(--danger); }
.check { display: flex; gap: var(--space-2); align-items: flex-start; font-size: var(--fs-small); color: var(--navy-700); }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary-700); flex: none; }

/* Karty */
.card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); padding: var(--space-4); }
.card--outline { box-shadow: none; border: var(--border) solid var(--gray-150); }

/* Nagłówek */
.site-header { position: sticky; top: 0; z-index: 50; }
.nav {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
    min-height: var(--nav-h); padding: var(--space-3) var(--space-5);
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(5px);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-1);
}
.nav__brand { flex: none; }
.nav__brand img { width: 111px; height: 35px; }
.nav__main { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.nav__links { display: flex; align-items: center; gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
.nav__links a { color: var(--navy-600); font-size: var(--fs-body-3); font-weight: 700; line-height: 1; text-decoration: none; padding: 8px 0; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--primary-700); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav__side { display: flex; align-items: center; gap: var(--space-3); }
.nav__contact { margin: 0; display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-1); font-size: var(--fs-body-3); color: var(--navy-600); }
.nav__contact strong { font-weight: 700; line-height: 1.3; }
.nav__contact a { color: inherit; text-decoration: none; line-height: 1.4; }
.nav__contact a:hover { text-decoration: underline; }
.nav__buttons { display: flex; gap: var(--space-3); }
.nav__toggle { display: none; }
.nav__toggle .ico-close { display: none; }
.nav__toggle[aria-expanded="true"] .ico-menu { display: none; }
.nav__toggle[aria-expanded="true"] .ico-close { display: block; }

/* Newsletter i stopka */
.site-footer { position: relative; overflow: hidden; background: linear-gradient(to bottom, var(--orange-100), var(--white)); padding: var(--space-9) 0 var(--space-6); }
.site-footer .container { display: flex; flex-direction: column; gap: var(--space-7); }
.footer-sep { height: 0; border: 0; border-top: 1px solid var(--gray-150); margin: 0; }

.newsletter { position: relative; display: flex; justify-content: flex-end; }
.newsletter__script { position: absolute; left: -90px; top: 50%; transform: translateY(-50%); width: 696px; height: 146px; pointer-events: none; }
.newsletter__body { position: relative; display: flex; flex-direction: column; gap: var(--space-4); width: 100%; max-width: 620px; }
.newsletter__title { margin: 0; font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; }
.newsletter__points { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding: 0; list-style: none; font-size: var(--fs-small); color: var(--navy-600); }
.newsletter__points li { display: flex; align-items: center; gap: var(--space-2); }
.newsletter__points img { flex: none; width: 12px; height: 12px; }
.newsletter__form .field { margin: 0; }
.newsletter__row { display: flex; align-items: stretch; }
.newsletter__row .input { padding-right: 162px; }
.newsletter__row .btn { width: 150px; margin-left: -150px; position: relative; }

.footer-main { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-6); }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); width: 300px; flex: none; }
.footer-contact__lines { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-contact__lines a { color: var(--navy-600); font-weight: 700; text-decoration: none; }
.footer-contact__lines a:hover { text-decoration: underline; }
.footer-contact p { margin: 0; font-size: var(--fs-small); }
.footer-cols { display: grid; grid-template-columns: repeat(4, 200px); gap: var(--space-6); }
.footer-col h2 { margin: 0 0 var(--space-4); font-size: var(--fs-h5); font-weight: 600; line-height: 1.2; }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: 0; list-style: none; font-size: var(--fs-small); line-height: 1; }
.footer-col a { color: var(--gray-500); font-size: var(--fs-small); font-weight: 600; line-height: 1; text-decoration: none; }
.footer-col a:hover { color: var(--navy-600); text-decoration: underline; }
.footer-flat { display: none; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.footer-bottom__logo img { width: 176px; height: 56px; }
.social { display: flex; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--primary-100); }
.social a:hover { background: var(--primary-200); }
.social img { width: 20px; height: 20px; }

/* Pasek KPO (Kontakt) */
.kpo { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); text-align: center; }
.kpo img { width: 560px; height: auto; }
.kpo p { margin: 0; font-size: var(--fs-small); color: var(--navy-600); max-width: 960px; }

/* Wzornik */
.sg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.sg-swatch { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--gray-150); font-size: var(--fs-small); }
.sg-swatch span { display: block; height: 64px; }
.sg-swatch p { margin: 0; padding: 8px 10px; }
.sg-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-bottom: var(--space-4); }
.sg-type > * { margin-bottom: var(--space-3); }
.sg-block { margin-bottom: var(--space-8); }
.sg-form { max-width: 560px; }
.page-hero { padding: calc(var(--space-9) + 20px) 0 var(--space-9); }

/* Tablet i węższy desktop: menu chowa się pod przyciskiem */
@media (max-width: 1199px) {
    :root { --gutter: 40px; --nav-h: 72px; }
    .nav { padding: var(--space-3) var(--space-4); flex-wrap: wrap; }
    .nav__toggle { display: inline-flex; }
    .js .nav__main { display: none; }
    .js .nav--open .nav__main { display: flex; }
    .nav__main { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: var(--space-4); padding: var(--space-4) 0 var(--space-3); }
    .js .nav--open { position: fixed; inset: 0; align-content: flex-start; overflow-y: auto; border-radius: 0; background: var(--white); }
    .nav__links { flex-direction: column; gap: var(--space-2); }
    .nav__links a { display: block; padding: 12px 0; font-size: var(--fs-h5); font-weight: 500; text-align: center; }
    .nav__side { flex-direction: column; align-items: stretch; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--gray-150); }
    .nav__contact { align-items: center; }
    .nav__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
    .footer-main { flex-direction: column; }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
}

/* Telefon (projekt mobilny: 375 px) */
@media (max-width: 767px) {
    :root { --gutter: 16px; --fs-h1: 40px; --fs-h2: 32px; --fs-h3: 28px; --fs-h4: 22px; --fs-body-1: 18px; }
    .section { padding: var(--space-7) 0; }
    .page-hero { padding: var(--space-7) 0; }
    /* Figma mobile: pasek nawigacji nieprzezroczysty, bez cienia */
    .nav { background: var(--white); box-shadow: none; }
    /* Stopka wg Figmy mobile (1117 px): napis „Newsletter” 389 px wychodzi za krawędzie, tytuł 24 px pod nim,
       bez kreski nad linkami; zamiast kolumn z nagłówkami jedna lista 12 linków w dwóch kolumnach */
    .site-footer { padding-top: var(--space-6); }
    .site-footer .container { gap: var(--space-6); }
    .newsletter__script { left: -23px; top: 0; transform: none; width: 389px; max-width: none; height: 106px; }
    .newsletter__body { padding-top: 130px; }
    .newsletter__title { text-align: center; }
    .newsletter + .footer-sep { display: none; }
    .footer-main { gap: var(--space-6); }
    .footer-cols { display: none; }
    .footer-flat { display: block; width: 100%; }
    .footer-flat ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, auto); grid-auto-flow: column; gap: 16px 40px; width: 100%; margin: 0; padding: 0; list-style: none; }
    .footer-flat a { display: block; color: var(--gray-500); font-size: var(--fs-small); font-weight: 600; line-height: 1; text-decoration: none; }
    .footer-flat a:hover { color: var(--navy-600); text-decoration: underline; }
    .footer-contact { padding-top: var(--space-6); border-top: 1px solid var(--gray-150); }
    .newsletter__row { flex-direction: column; gap: var(--space-4); }
    .newsletter__row .input { padding-right: 12px; }
    .newsletter__row .btn { width: 100%; margin-left: 0; }
    .footer-contact { width: 100%; align-items: center; text-align: center; order: 2; }
    .footer-contact__lines { align-items: center; }
    .footer-cols { gap: var(--space-4); }
    .footer-col h2 { font-size: var(--fs-body-2); margin-bottom: var(--space-3); }
    .kpo img { width: 100%; max-width: 560px; }

    /* Menu mobilne wg Figmy (eksport-2210/figma-03): pozycje co 60 px, kontakt i przyciski w kolumnie 268 px */
    .nav__main { gap: var(--space-3); padding-top: 0; }
    .nav__links { gap: 0; }
    .nav__links a { padding: 20px 0; }
    .nav__side { width: 100%; max-width: 268px; margin: 0 auto; padding-top: 32px; }
    .nav__buttons { display: flex; justify-content: center; }
    .nav__buttons .btn { flex: 1 1 auto; padding: 0 var(--space-5); }
}

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

/* Rejsy i szkolenia: lista i strona imprezy */
:root { --error-600: #cd3d44; --gray-100: #e8e9ee; }
.text-success { color: var(--success-600); }
.text-danger { color: var(--error-600); }
.text-accent { color: var(--primary-700); }
.btn--sky { background: var(--primary-500); color: var(--white); }
.btn--sky:hover { background: var(--primary-600); color: var(--white); }
.btn img { width: 18px; height: 18px; }

.breadcrumbs { padding: var(--space-4) 0 0; font-size: var(--fs-body-3); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: flex; align-items: center; gap: var(--space-2); color: var(--gray-500); }
.breadcrumbs li + li::before { content: "›"; color: var(--gray-300); }
.breadcrumbs a { color: var(--navy-600); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
/* Wariant z Figmy (strona rejsu, karta jachtu, rezerwacja): ikona domu, 12 px, bieżąca strona w kolorze akcentu */
.breadcrumbs--compact { padding-top: 22px; font-size: var(--fs-small); }
.breadcrumbs--compact ol, .breadcrumbs--compact li { gap: 16px; }
.breadcrumbs--compact li + li::before { content: ""; width: 5px; height: 9px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='9' viewBox='0 0 5 9'%3E%3Cpath d='M.6.6 4.4 4.5.6 8.4' fill='none' stroke='%23b8b9c4' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.breadcrumbs--compact a { color: var(--gray-500); }
.breadcrumbs--compact [aria-current] { color: var(--primary-500); }
.breadcrumbs__home { display: inline-flex; color: var(--gray-500); }
.breadcrumbs__home svg { width: 20px; height: 20px; }

.meta { display: flex; align-items: center; gap: 7px; margin: 0; font-size: var(--fs-body-3); }
.meta strong { font-weight: 700; }
.meta__icon { display: inline-flex; flex: none; padding: 4.8px; border-radius: var(--radius-full); background: var(--primary-100); }
.meta__icon img { width: 14.4px; height: 14.4px; }
.meta__icon--white { background: var(--white); }

.route { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-2); margin: 0; padding: 0; list-style: none; font-size: var(--fs-body-3); font-weight: 700; line-height: 1.3; }
.route li { display: inline-flex; align-items: center; gap: var(--space-2); }
.route li + li::before { content: ""; width: 16px; height: 16px; border-radius: var(--radius-full); background: var(--primary-100) url("../img/ikona-strzalka.svg") center / 9.6px no-repeat; }
.route--lg { font-size: var(--fs-body-2); line-height: 1.4; }

.price { display: flex; flex-direction: column; margin: 0; }
.price p { margin: 0; }
.price__label { font-size: var(--fs-small); color: var(--gray-500); }
.price__now strong { font-size: var(--fs-h5); font-weight: 700; }
.price__old s { font-size: var(--fs-body-3); font-weight: 700; color: var(--gray-500); }
.price__omnibus { font-size: 10px; color: var(--gray-500); }
.price--card { align-items: flex-end; padding: 12px 0; text-align: right; }
/* Plakietka rabatu „-N%” przy cenie katalogowej: czartery i imprezy (rejsy, szkolenia) wyglądają tak samo. */
.discount-tag { display: inline-block; padding: 2px 8px; border-radius: var(--radius-full); background: #fde8e8; color: var(--error-600); font-size: var(--fs-small); font-weight: 700; }
.price--card .price__old { display: flex; align-items: center; gap: var(--space-2); }
.price--card .price__old .discount-tag { padding: 3px 10px; font-size: var(--fs-body-3); line-height: 1.3; }
.price--card .price__old s { font-size: var(--fs-body-3); }
.price--summary { gap: var(--space-1); }
.price--summary .price__now { display: flex; justify-content: space-between; align-items: baseline; }
.price--summary .price__now strong { font-size: var(--fs-h4); font-weight: 600; }
.price--summary .price__old { text-align: right; }
.price--summary .price__omnibus { font-size: var(--fs-small); text-align: right; }
.price__promo { margin: 0; font-size: var(--fs-small); font-weight: 700; color: #04704f; }
.price--summary .price__promo { text-align: right; }

/* Lista */
.listing { padding: var(--space-4) 0 var(--space-9); }
.search-bar { margin-bottom: var(--space-6); }
.search-bar__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.search-bar__title { margin: 0; font-size: var(--fs-h4); font-weight: 600; line-height: 1.2; }
.search-bar__lead { margin: var(--space-1) 0 var(--space-3); }
.search-bar__fields { display: flex; align-items: flex-end; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 4px 24px rgba(31, 41, 103, .08); }
.search-field { flex: 1; display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.search-field label { font-size: var(--fs-body-3); font-weight: 700; }
.select { appearance: none; padding-right: 40px; background: var(--white) url("../img/ikona-rozwin.svg") right 12px center / 20px no-repeat; cursor: pointer; }
.kind-tabs { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--radius-full); background: var(--gray-50); }
.kind-tabs a { padding: 8px 16px; border-radius: var(--radius-full); font-size: var(--fs-body-3); font-weight: 700; color: var(--navy-600); text-decoration: none; }
.kind-tabs a[aria-current="page"] { background: var(--white); color: var(--primary-700); box-shadow: var(--shadow-1); }

.listing__grid { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: var(--space-7); align-items: start; }
.filters { display: flex; flex-direction: column; gap: var(--space-3); }
.filters__box { display: flex; flex-direction: column; gap: var(--space-3); }
.filters__toggle { display: none; }
.filters__clear { display: inline-flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); font-size: var(--fs-body-3); font-weight: 700; color: var(--gray-500); text-decoration: none; }
.filters__clear img { width: 18px; height: 18px; }
.filters__sep { height: 0; margin: 0 0 var(--space-3); border: 0; border-top: 1px solid var(--gray-150); }
.filters__group { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.filters__label { font-size: var(--fs-small); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--navy-600); }
.filters .select { min-height: 40px; padding-top: 9px; padding-bottom: 9px; }

.promo { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--primary-100); color: var(--navy-600); }
.promo p { margin: 0; }
.promo__title { font-size: var(--fs-body-2); font-weight: 700; }
.promo--dark { background: var(--navy-700); color: var(--white); }
.promo--dark .promo__title { color: var(--white); }
.promo--dark .btn { margin-top: var(--space-2); }
.promo__contact { display: inline-flex; align-items: center; gap: var(--space-3); margin-top: var(--space-2); font-weight: 700; color: var(--navy-600); text-decoration: none; }
.promo__contact:hover { text-decoration: underline; }
.promo--help { gap: var(--space-4); padding-top: var(--space-6); }
.promo--help p { font-size: var(--fs-body-2); }

.results__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-5); }
.results__count { margin: 0; font-size: var(--fs-h4); font-weight: 600; line-height: 1.2; }
.results__sort { display: flex; align-items: center; gap: var(--space-2); width: 300px; font-size: var(--fs-body-3); font-weight: 700; }
.results__sort .select { flex: 1; }
.results { display: flex; flex-direction: column; gap: var(--space-4); }
.results__head { margin-bottom: var(--space-3); }

.event-card { position: relative; display: flex; align-items: stretch; min-height: 230px; border: 1px solid var(--gray-50); border-radius: var(--radius-lg); background: var(--white); }
.event-card__image { position: relative; flex: none; width: 300px; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--primary-400), var(--primary-700) 70%, var(--navy-600)); }
.event-card__image--baltyk, .event-card__image--morze-polnocne { background: linear-gradient(160deg, var(--primary-200), var(--primary-600) 65%, var(--navy-700)); }
.event-card__image--jachtowy-sternik-morski, .event-card__image--manewrowka-duzym-jachtem, .event-card__image--manewrowka-indywidualna { background: linear-gradient(160deg, var(--orange-200), var(--orange-600) 70%, var(--navy-600)); }
.event-card__badge { position: absolute; left: 16px; bottom: 16px; padding: 4px 12px; border-radius: var(--radius-full); background: var(--gray-50); color: var(--gray-500); font-size: var(--fs-body-3); font-weight: 700; line-height: 1.3; }
.event-card__main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--space-4); padding: var(--space-4) var(--space-5); }
.event-card__main p { margin: 0; }
.event-card__pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.event-card__title { margin: 0 0 var(--space-1); font-size: var(--fs-h4); font-weight: 600; line-height: 1.2; }
.event-card__title a { color: inherit; text-decoration: none; }
.event-card__title a:hover { text-decoration: underline; }
.event-card__label { margin-bottom: var(--space-1) !important; }
.event-card__side { flex: none; width: 260px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: var(--space-2); padding: var(--space-4); border-left: 1px solid var(--gray-50); }
.empty { display: flex; flex-direction: column; gap: var(--space-2); }

/* Strona rejsu / szkolenia */
.event-page { display: grid; grid-template-columns: minmax(0, 800px) 378px; grid-template-areas: "head aside" "body aside"; grid-template-rows: auto 1fr; justify-content: space-between; column-gap: var(--space-6); padding-top: var(--space-6); padding-bottom: var(--space-9); }
.event-head { grid-area: head; margin-bottom: var(--space-6); }
.event-head__title { margin: 0 0 var(--space-3); font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; }
.event-head__code { color: var(--gray-500); margin-left: var(--space-2); white-space: nowrap; }
.event-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); font-size: var(--fs-body-3); }
.event-head__meta p { margin: 0; }
.event-head__meta strong { font-size: var(--fs-body-2); }
.event-aside { grid-area: aside; align-self: start; position: sticky; top: calc(var(--nav-h) + 16px); display: flex; flex-direction: column; gap: var(--space-4); }
.event-body { grid-area: body; min-width: 0; }

.summary { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6) var(--space-5); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); background: var(--white); }
.summary__title { margin: var(--space-3) 0 0; font-size: var(--fs-h5); font-weight: 700; line-height: 1.4; }
.summary__sep { width: 100%; height: 0; margin: var(--space-2) 0; border: 0; border-top: 1px solid var(--gray-150); }
.summary__rows { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; }
.summary__rows div { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.summary__rows dt { font-size: var(--fs-small); color: var(--gray-500); }
.summary__rows dt strong { color: var(--gray-500); }
.summary__rows dd { margin: 0; font-size: var(--fs-h5); font-weight: 700; white-space: nowrap; }
.summary__note, .summary__guarantee, .summary__includes { margin: 0; font-size: var(--fs-small); color: var(--gray-500); }
.summary__guarantee { font-weight: 700; }
.summary__includes p { margin: 0; }
.summary__includes ul { margin: 0; padding-left: 18px; }
.summary__info { margin: 0; padding: 12px 16px; border-radius: var(--radius-md); background: var(--orange-100); color: var(--orange-text); font-size: var(--fs-body-3); font-weight: 700; text-align: center; }

.event-section { padding-bottom: var(--space-6); margin-bottom: var(--space-6); border-bottom: 1px solid var(--gray-150); }
.event-section:last-child { border-bottom: 0; }
.event-section__title { margin-bottom: var(--space-4); font-size: var(--fs-h5); font-weight: 700; line-height: 1.2; }
.event-section__sub { margin: var(--space-5) 0 var(--space-3); font-size: var(--fs-body-2); font-weight: 700; }
.facts { display: flex; flex-direction: column; gap: var(--space-4); margin: 0; padding-left: var(--space-5); border-left: 2px solid var(--orange-600); }
.facts div { display: flex; gap: var(--space-1); align-items: baseline; }
.facts dt { flex: none; width: 120px; font-size: var(--fs-body-3); }
.facts dd { flex: 1; min-width: 0; margin: 0; font-weight: 700; }
.highlights { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; color: var(--gray-500); }
.highlights li { position: relative; padding-left: 20px; }
.highlights li::before { content: ""; position: absolute; left: 0; top: 4px; width: 4px; height: 16px; border-radius: 2px; background: var(--orange-600); }
.prose { color: var(--gray-500); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 var(--space-3); }
.prose ul, .prose ol { padding-left: 20px; }
.prose li + li { margin-top: 4px; }
.prose strong { color: var(--navy-800); }
.placeholder { margin: 0; padding: var(--space-4); border-radius: var(--radius-md); background: var(--gray-50); color: var(--gray-500); }
.placeholder--center { max-width: 760px; margin: 0 auto; text-align: center; }

.terms { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.terms__row { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr .8fr auto; align-items: center; gap: var(--space-3); padding: 12px var(--space-3); border: 1px solid var(--gray-150); border-radius: var(--radius-md); font-size: var(--fs-body-3); }
.terms__row--current { border-color: var(--primary-400); background: var(--primary-100); }
.terms__date .muted { display: block; font-size: var(--fs-small); }
.terms__price { font-weight: 700; text-align: right; white-space: nowrap; }
.terms__link { font-weight: 700; white-space: nowrap; }

.faq { padding: var(--space-9) 0; background: var(--gray-50); }
.faq__title { margin-bottom: var(--space-6); text-align: center; }
.faq .placeholder { background: var(--white); }

@media (max-width: 1199px) {
    .listing__grid { grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-5); }
    .event-card { flex-wrap: wrap; }
    .event-card__image { width: 100%; height: 180px; }
    .event-card__side { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; border-left: 0; border-top: 1px solid var(--gray-50); }
    .event-card__side .btn { width: auto; }
    .price--card { align-items: flex-start; text-align: left; }
    .event-page { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 899px) {
    .listing__grid { grid-template-columns: minmax(0, 1fr); }
    .filters__toggle { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 var(--space-4); border-radius: var(--radius-full); background: var(--primary-100); font-weight: 700; cursor: pointer; list-style: none; }
    .filters__toggle::-webkit-details-marker { display: none; }
    .filters__toggle::after { content: ""; width: 20px; height: 20px; background: url("../img/ikona-rozwin.svg") center / 20px no-repeat; }
    .filters__box[open] .filters__toggle { margin-bottom: var(--space-3); }
    .filters .promo { display: none; }
    .event-page { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "aside" "body"; grid-template-rows: auto; }
    .event-aside { position: static; margin-bottom: var(--space-6); }
    .event-aside .promo--help { display: none; }
}

@media (max-width: 767px) {
    .search-bar__fields { flex-direction: column; align-items: stretch; padding: var(--space-3); }
    .search-bar__submit { width: 100%; }
    .results__sort { width: 100%; }
    .results__count { font-size: var(--fs-h5); }
    .event-card__main { padding: var(--space-4) var(--space-3); gap: var(--space-3); }
    .event-card__side { padding: var(--space-3); }
    .event-card__side .btn { width: 100%; }
    .event-card__title { font-size: var(--fs-h5); }
    .event-head__title { font-size: var(--fs-h4); }
    .event-head__code { display: block; margin: var(--space-1) 0 0; font-size: var(--fs-body-1); }
    .summary { padding: var(--space-5) var(--space-4); }
    .facts { padding-left: var(--space-3); }
    .facts div { flex-direction: column; gap: 2px; }
    .facts dt { width: auto; }
    .terms__row { grid-template-columns: 1fr auto; }
    .terms__yacht, .terms__seats { grid-column: 1; }
    .faq { padding: var(--space-7) 0; }
}

/* Logo Przelewy24 pod przyciskiem płatności/rezerwacji (Wojtek 19.10.2026, zamiast zestawu logo banków z Figmy) */
.pay-logo { display: flex; align-items: center; justify-content: center; gap: var(--space-3, 12px); margin: var(--space-3, 12px) 0 0; font-size: var(--fs-small, 13px); color: var(--gray-500); }
.pay-logo img { width: 96px; height: auto; }

/* Baner zgód na cookies (site.partials.consent-banner) */
.consent { position: fixed; inset: auto var(--space-3) var(--space-3); z-index: 1000; display: flex; justify-content: center; pointer-events: none; }
.consent[hidden] { display: none; }
.consent__box { pointer-events: auto; max-width: 760px; width: 100%; background: var(--white); color: var(--navy-800); border-radius: var(--radius-md); box-shadow: 0 8px 32px rgba(15, 18, 45, .2); padding: var(--space-4); max-height: calc(100vh - 2 * var(--space-3)); overflow-y: auto; }
.consent__title { font-size: var(--fs-h5); margin: 0 0 var(--space-2); }
.consent__text { font-size: var(--fs-body-3); margin: 0 0 var(--space-3); }
.consent__options { display: grid; gap: var(--space-2); margin: 0 0 var(--space-3); font-size: var(--fs-body-3); }
.consent__options[hidden] { display: none; }
.consent__option { display: flex; gap: var(--space-2); align-items: flex-start; }
.consent__option input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.consent__buttons { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.consent__buttons .btn { flex: 1 1 160px; }
.consent__buttons .btn[hidden] { display: none; }
.footer-bottom__cookies { font-size: var(--fs-body-3); color: inherit; }
@media (max-width: 599px) {
    .consent { inset: auto var(--space-2) var(--space-2); }
    .consent__box { padding: var(--space-3); }
}
