/* O nas wg Figmy (eksport-2210/o-nas): desktop 1440, mobile 375. Wymiary w px z makiety. */
.ab-pill { display: inline-flex; align-items: center; height: 26px; padding: 4px 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; }
.ab-pill--sky { background: #7bdef4; color: var(--navy-700); }
.ab-sep { width: calc(100% - 2 * var(--gutter)); max-width: var(--container); height: 1px; margin: 0 auto; border: 0; background: #e4e5ea; }
.ab-br-mob { display: none; }

/* Zdjęcie nad treścią */
.ab-hero { height: 320px; overflow: hidden; background: linear-gradient(160deg, var(--primary-300, #6ecceb), var(--primary-600) 55%, var(--navy-600)); }
.ab-hero img { width: 100%; height: 100%; object-fit: cover; }

/* 23 lata i liczby */
.ab-intro { padding: 80px var(--gutter) 0; text-align: center; }
.ab-intro h1 { margin: 10px 0 0; font-size: 64px; font-weight: 500; line-height: 1; letter-spacing: -.01em; }
.ab-intro__script { display: block; width: fit-content; margin: 4px auto 0; color: #7adaf3; }
.ab-intro__script svg { width: auto; height: 80px; }
.ab-intro__script .napis-lat__text { display: block; font-family: var(--font-script); font-size: 76px; line-height: 80px; }
.ab-stats__title { margin: 84px 0 22px; font-size: 20px; font-weight: 700; line-height: 1.2; }
.ab-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: var(--container); margin: 0 auto; padding: 0; list-style: none; }
.ab-stats li { display: flex; flex-direction: column; align-items: center; padding: 0; }
.ab-stats li + li { border-left: 1px solid var(--gray-150); }
.ab-stats strong { font-size: 48px; font-weight: 500; line-height: 56px; color: var(--navy-600); }
.ab-stats span { font-size: 20px; font-weight: 500; line-height: 24px; color: var(--gray-500); }

/* Stary i cieknący drewniany jacht… */
.ab-founder { position: relative; overflow-x: clip; display: grid; grid-template-columns: 446px 448px; gap: 56px; justify-content: center; margin: 139px auto 0; padding: 0 var(--gutter); }
.ab-founder::before { content: "\201C"; position: absolute; left: calc(50% - 720px + 44px); top: 96px; font-size: 620px; font-weight: 700; line-height: 1; color: #e3f8fd; pointer-events: none; z-index: -1; }
.ab-founder__photo { height: 472px; border-radius: 20px; background: linear-gradient(160deg, var(--primary-200), var(--primary-600) 60%, var(--navy-700)); overflow: hidden; }
.ab-founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.ab-founder__text { display: flex; flex-direction: column; }
.ab-founder blockquote { margin: 0; }
.ab-founder blockquote h2 { margin: 0 0 28px; font-size: 48px; font-style: italic; font-weight: 500; line-height: 47px; }
.ab-founder blockquote p { margin: 0 0 20px; font-size: 14px; font-style: italic; font-weight: 500; line-height: 20px; color: var(--navy-600); }
.ab-founder figcaption { margin-top: auto; }
.ab-founder figcaption strong { display: block; font-size: 20px; font-weight: 700; line-height: 28px; color: var(--navy-600); }
.ab-founder figcaption span { display: block; font-size: 14px; line-height: 20px; color: var(--gray-500); }
.ab-founder + .ab-sep { margin-top: 140px; }

/* Gdzie pływamy */
.ab-places { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 80px var(--gutter) 82px; text-align: center; }
.ab-places h2 { margin: 24px 0 80px; font-size: 40px; font-weight: 500; line-height: 48px; }
.ab-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 212px; gap: 32px; margin: 0; padding: 0; list-style: none; text-align: left; }
.ab-tile a { position: relative; display: flex; align-items: flex-end; height: 100%; padding: 20px; overflow: hidden; border-radius: 24px; color: var(--white); text-decoration: none; background: var(--primary-600); }
.ab-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ab-tile a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 18, 45, 0) 45%, rgba(15, 18, 45, .55) 100%); }
.ab-tile a:hover img { transform: scale(1.05); }
.ab-tile span { position: relative; z-index: 1; max-width: 180px; font-size: 20px; font-weight: 700; line-height: 23px; }
.ab-tile--mp { grid-area: 1 / 1; }
.ab-tile--mb { grid-area: 1 / 2 / 2 / 4; }
.ab-tile--no { grid-area: 1 / 4; }
.ab-tile--zn { grid-area: 2 / 1; }
.ab-tile--sk { grid-area: 2 / 2; }
.ab-tile--gr { grid-area: 2 / 3 / 3 / 5; }
.ab-tile--ka { grid-area: 3 / 1 / 4 / 3; }
.ab-tile--ma { grid-area: 3 / 3; }
.ab-tile--all { grid-area: 3 / 4; }
.ab-tile--all a { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 32px; background: var(--primary-500); }
.ab-tile--all a::after { display: none; }
.ab-tile--all a:hover { background: var(--primary-600); }
.ab-tile--all span { max-width: none; font-size: 24px; font-weight: 500; line-height: 29px; }
.ab-places__text { max-width: 880px; margin: 80px auto 0; font-size: 23px; font-weight: 500; line-height: 29px; color: var(--navy-600); }

/* Załoga Kubryka */
.ab-crew { max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: 118px var(--gutter) 132px; }
.ab-crew__head { display: grid; grid-template-columns: 648px minmax(0, 1fr); align-items: start; margin-bottom: 82px; }
.ab-crew__head h2 { margin: 0 0 16px; font-size: 56px; font-weight: 500; line-height: 1; }
.ab-crew__head p { margin: 0; font-size: 20px; font-weight: 500; line-height: 28px; color: var(--navy-600); }
.ab-crew .ab-crew__motto { margin: 0; padding: 0 0 0 32px; border-left: 2px solid var(--primary-500); font-size: 40px; font-style: italic; font-weight: 500; line-height: 40px; color: var(--primary-500); }
.ab-team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 64px; margin: 0; padding: 0; list-style: none; }
.ab-team li { display: flex; flex-direction: column; align-items: flex-start; }
.ab-team__photo { width: 120px; height: 120px; margin-bottom: 26px; border-radius: 50%; object-fit: cover; }
.ab-team h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; line-height: 22px; color: var(--navy-600); }
.ab-team__role { margin: 0 0 6px; font-size: 16px; font-weight: 500; line-height: 22px; color: var(--primary-500); }
.ab-team__bio { margin: 0 0 12px; font-size: 12px; font-weight: 500; line-height: 17px; color: var(--gray-500); }
.ab-team__fav { margin: auto 0 0; font-size: 12px; font-weight: 500; line-height: 17px; color: var(--gray-500); }
.ab-team__fav strong { font-size: 14px; font-weight: 700; color: var(--navy-600); }

/* Spełniamy marzenia */
.ab-dreams { padding: 82px var(--gutter) 86px; background: linear-gradient(160deg, #e0f6fb 0%, #effafc 50%, #e8f8fb 100%); text-align: center; }
.ab-dreams h2 { margin: 24px 0 26px; font-size: 40px; font-weight: 500; line-height: 40px; }
.ab-dreams p { margin: 0; font-size: 16px; font-weight: 500; line-height: 22px; color: var(--navy-600); }
.ab-dreams .ab-dreams__thanks { margin-top: 6px; }
.ab-dreams__thanks img { margin: 0 auto; }

/* Galeria */
.ab-gallery { max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: 80px var(--gutter); }
.ab-gallery__grid { display: grid; grid-template-columns: 470fr 227fr 227fr 228fr; grid-auto-rows: 196px; gap: 16px; margin: 0; padding: 0; list-style: none; }
.ab-gallery__item { overflow: hidden; border-radius: 24px; background: var(--primary-100); }
.ab-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.ab-gallery__item--a { grid-area: 1 / 1; }
.ab-gallery__item--b { grid-area: 1 / 2; }
.ab-gallery__item--c { grid-area: 1 / 3 / 3 / 5; }
.ab-gallery__item--d { grid-area: 2 / 1 / 4 / 2; }
.ab-gallery__item--e { grid-area: 2 / 2; }
.ab-gallery__item--f { grid-area: 3 / 2 / 4 / 4; }
.ab-gallery__item--more { grid-area: 3 / 4; }
.ab-gallery__item--more a { display: flex; flex-direction: column; justify-content: center; gap: 8px; height: 100%; padding: 32px; background: var(--orange-500); color: var(--white); text-decoration: none; }
.ab-gallery__item--more a:hover { background: var(--orange-600); }
.ab-gallery__item--more span { font-size: 24px; font-weight: 500; line-height: 29px; }

@media (max-width: 1199px) {
    .ab-founder { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
    .ab-founder::before { left: 0; }
    .ab-crew__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
    .ab-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 40px; }
    .ab-tiles { gap: 16px; }
}

/* Telefon (makieta mobilna 375 px) */
@media (max-width: 767px) {
    .ab-br-desk { display: none; }
    .ab-br-mob { display: inline; }
    .ab-hero { height: 320px; }
    .ab-intro { padding: 82px 24px 0; }
    .ab-intro h1 { font-size: 64px; }
    .ab-intro__script svg { height: 68px; }
    .ab-intro__script .napis-lat__text { font-size: 60px; line-height: 68px; }
    .ab-stats__title { margin-top: 86px; }
    .ab-stats { display: flex; margin: 0 -24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .ab-stats::-webkit-scrollbar { display: none; }
    .ab-stats li { flex: none; width: 204px; scroll-snap-align: start; }
    .ab-stats li:first-child { width: 195px; }

    .ab-founder { display: block; margin-top: 80px; padding: 0 24px; }
    .ab-founder::before { left: auto; right: -14px; top: 372px; font-size: 420px; }
    .ab-founder__photo { height: 345px; margin-bottom: 56px; }
    .ab-founder blockquote h2 { margin: 0 0 30px; font-size: 40px; line-height: 39px; }
    .ab-founder figcaption { margin-top: 22px; }
    .ab-sep { width: calc(100% - 48px); }
    .ab-founder + .ab-sep { margin-top: 82px; }

    .ab-places { padding: 80px 24px 80px; }
    .ab-places h2 { max-width: 300px; margin: 32px auto 70px; font-size: 30px; line-height: 32px; }
    .ab-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 173px; gap: 8px; }
    .ab-tile--mp { grid-area: 1 / 1; }
    .ab-tile--mb { grid-area: 1 / 2; }
    .ab-tile--no { grid-area: 2 / 1 / 3 / 3; }
    .ab-tile--gr { grid-area: 3 / 1; }
    .ab-tile--ma { grid-area: 3 / 2; }
    .ab-tile--zn { grid-area: 4 / 1 / 5 / 3; }
    .ab-tile--sk { grid-area: 5 / 1; }
    .ab-tile--ka { grid-area: 5 / 2; }
    .ab-tile--all { grid-area: 6 / 1 / 7 / 3; }
    .ab-tile a { padding: 20px; border-radius: 20px; }
    .ab-tile:not(.ab-tile--all) span { max-width: 110px; }
    .ab-tile--all a { padding: 32px; }
    .ab-places__text { margin-top: 80px; font-size: 18px; line-height: 22px; }

    .ab-crew { padding: 80px 24px 105px; }
    .ab-crew__head { display: block; margin-bottom: 85px; }
    .ab-crew__head h2 { margin-bottom: 27px; font-size: 40px; }
    .ab-crew__head p { font-size: 20px; line-height: 28px; }
    .ab-crew .ab-crew__motto { margin-top: 47px; padding: 0; border: 0; font-size: 40px; line-height: 40px; }
    /* Karty z makiety: 300 x 426 px, odstęp 16 px; opis ma stałą wysokość 170 px, żeby „Ulubione akweny” były w jednej linii */
    .ab-team { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .ab-team li { max-width: 300px; min-height: 426px; }
    .ab-team__photo { margin-bottom: 24px; }
    .ab-team__role { margin-bottom: 8px; }
    .ab-team__bio { min-height: 170px; margin-bottom: 8px; }
    .ab-team__fav { margin-top: 0; }
    .ab-team__fav strong { font-size: 12px; }

    .ab-dreams { padding: 80px 24px 96px; }
    .ab-dreams h2 { max-width: 310px; margin: 24px auto 32px; font-size: 24px; line-height: 29px; }
    .ab-dreams p { font-size: 16px; }

    .ab-gallery { padding: 40px 16px 40px; }
    .ab-gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 147px; gap: 8px; }
    .ab-gallery__item { border-radius: 20px; }
    .ab-gallery__item--a, .ab-gallery__item--d { display: none; }
    .ab-gallery__item--b { grid-area: 1 / 1; }
    .ab-gallery__item--c { grid-area: 1 / 2 / 2 / 4; }
    .ab-gallery__item--e { grid-area: 2 / 1 / 3 / 3; }
    .ab-gallery__item--f { grid-area: 2 / 3; }
    .ab-gallery__item--more { grid-area: 3 / 1 / 4 / 4; }
}
