/* Strona główna wg Figmy (Strona główna desktop 1440, mobile 375). Sekcje wspólne: sections.css.
   Linki i drobny tekst w kolorze primary-700 zamiast primary-500 z Figmy (kontrast WCAG AA, jak w site.css). */

/* Hero: zdjęcie wchodzi pod pasek nawigacji (w Figmie nawigacja leży na zdjęciu) */
.hero--home { margin-top: calc(-1 * var(--nav-h)); min-height: 886px; padding: 0 56px 64px; }
.hero--home::after { background: rgba(0, 0, 0, .18); }
.hero--home .hero__photo { object-position: 50% 62%; }
.hero--home .hero__frame { inset: 144px 80px 110px; }
.hero--home .hero__inner { gap: 160px; }
.hero--home .hero__title { margin-left: 104px; font-size: 64px; font-weight: 500; line-height: 65px; letter-spacing: -.005em; }
/* Niski ekran (mały laptop): zdjęcie nie wyższe niż okno, pasek wyszukiwarki cały widoczny bez przewijania (Wojtek 20.10.2026). */
@media (min-width: 768px) {
    /* Zdjęcie na cały ekran, pasek 64 px nad dolną krawędzią okna, tytuł na środku ramki (Wojtek 21.10.2026). */
    .hero--home { min-height: max(620px, 100svh); padding: 0 var(--hb-side) 64px; }
    .hero--home .hero__frame { top: clamp(112px, calc(100svh - 742px), 144px); left: calc(var(--hb-side) + 24px); right: calc(var(--hb-side) + 24px); bottom: 113px; }
    .hero--home .hero__inner { gap: max(32px, calc((100svh - 584px) / 2)); }
}
.hero__br-m { display: none; }
.napis--a-moze { position: relative; width: 240px; height: 65px; vertical-align: top; }
.napis--a-moze img { position: absolute; left: -6px; top: 5px; width: 246px; height: 54px; }

/* Oferta */
.home-offer { padding: 140px 0 100px; }
.home-offer .sec-head { margin-bottom: 71px; }
.home-offer .sec-title { max-width: 768px; }
.napis--marzysz { display: block; width: 214px; margin: 6px auto 0; }
.napis--marzysz img { width: 214px; height: 57px; }
.home-offer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.home-card { position: relative; display: flex; cursor: pointer; flex-direction: column; min-height: 411px; overflow: hidden; border: 1px solid var(--gray-50); border-radius: var(--radius-lg); background: var(--white); transition: background-color .2s, border-color .2s; }
.home-card__photo { width: 100%; height: 179px; object-fit: cover; }
.home-card__body { flex: 1; display: flex; flex-direction: column; padding: 32px 24px 30px; }
.home-card__title { margin: 0 0 16px; font-size: var(--fs-h4); font-weight: 500; line-height: 1.2; }
.home-card__title a { color: var(--navy-600); text-decoration: none; }
.home-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.home-card__text { flex: 1; margin: 0; font-size: var(--fs-body-3); line-height: 20px; color: var(--gray-500); }
.home-card__more { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; font-size: var(--fs-body-3); font-weight: 700; color: var(--primary-700); }
.home-card__more::after { content: ""; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23006e94' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat; }
/* Figma: karta pod kursorem robi się błękitna z białym tekstem */
.home-card:hover, .home-card:focus-within { background: var(--primary-400); border-color: var(--primary-400); }
.home-card:hover .home-card__title a, .home-card:hover .home-card__text, .home-card:hover .home-card__more,
.home-card:focus-within .home-card__title a, .home-card:focus-within .home-card__text, .home-card:focus-within .home-card__more { color: var(--white); }
.home-card:hover .home-card__more::after, .home-card:focus-within .home-card__more::after { filter: brightness(0) invert(1); }
.home-card:focus-within .home-card__title a:focus-visible { outline: none; }
.home-card:focus-within { outline: 3px solid var(--primary-700); outline-offset: 2px; }

.home-help { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 80px; text-align: center; }
.home-help h3 { margin: 0 0 4px; font-size: var(--fs-h4); font-weight: 500; line-height: 1.2; }
.home-help p { margin: 0; font-size: var(--fs-body-3); line-height: 20px; }
.home-help a { color: var(--primary-700); font-weight: 700; text-decoration: none; }
.home-help a:hover { text-decoration: underline; }
.home-help .home-help__tel { color: var(--navy-600); }

/* Pasek ze zdjęciem */
.home-band img { width: 100%; height: 555px; object-fit: cover; }

/* O nas: „Żeglujemy razem już 26 lat!” */
.home-about { background: linear-gradient(to bottom, var(--primary-100), #f6fcfd 55%, var(--white)); }
.home-about__inner { max-width: calc(1200px + 240px); margin: 0 auto; padding: 120px 120px 120px; }
.home-about__intro { max-width: 800px; margin: 0 auto 120px; text-align: center; }
.home-about__inner { max-width: calc(1220px + 240px); }
.home-about__intro .sec-title { margin-bottom: 40px; }
.napis--lat { display: block; width: fit-content; margin: 8px auto 0; color: var(--primary-500); }
.napis--lat svg { width: auto; height: 49px; }
.napis-lat__text { font-family: var(--font-script); font-size: 1.2em; }
.home-about__intro p { max-width: 760px; margin: 0 auto; font-size: var(--fs-body-1); line-height: 28px; }
.home-about__row { display: grid; grid-template-columns: 560px 560px; width: 100%; max-width: 1220px; justify-content: space-between; align-items: start; }
.home-about__h { margin: 0 0 24px; font-size: var(--fs-h3); font-weight: 500; line-height: 1.2; }
.home-about__lead { margin: 0 0 56px; font-size: var(--fs-body-2); line-height: 22px; }
.home-about__lead strong, .home-about__intro strong, .home-about__name strong { font-weight: 700; }
.home-about__point { padding-left: 38px; border-left: 2px solid var(--primary-400); }
.home-about__point + .home-about__point { margin-top: 56px; }
.home-about__point h4 { margin: 0 0 16px; font-size: var(--fs-h5); font-weight: 500; line-height: 1.2; }
.home-about__point p { margin: 0; font-size: var(--fs-body-3); line-height: 20px; color: var(--gray-500); }
.home-about__photo { width: 560px; height: 522px; border-radius: var(--radius-lg); object-fit: cover; }
.home-about__name { display: grid; grid-template-columns: 660px 460px; width: 100%; max-width: 1220px; justify-content: space-between; align-items: start; margin-top: 120px; }
.home-about__drawing { width: 660px; height: 440px; }
.home-about__name > div { padding-top: 120px; }
.home-about__why { margin: 24px 0 24px; font-size: var(--fs-h3); font-weight: 500; line-height: 1.2; }
.home-about__why em { font-style: italic; }
.home-about__name p { margin: 0; font-size: var(--fs-body-2); line-height: 22px; }
.home-about__more { margin: 120px 0 0; text-align: center; }
.home-about__more .btn, .blog-teasers__head .btn { gap: 12px; }

/* Polecane rejsy */
.home-featured { padding: 108px 0 120px; }
.home-featured .sec-title { margin-bottom: 44px; font-size: var(--fs-h2); }
.home-featured .results { gap: 24px; }
.home-featured__all { margin: 48px 0 0; text-align: center; }
.home-featured__all a { display: inline-flex; align-items: center; gap: 12px; font-size: var(--fs-body-2); font-weight: 700; color: var(--navy-600); text-decoration: none; }
.home-featured__all a:hover { text-decoration: underline; }

/* Wyszukiwarka: zakładki Rejs i Szkolenie mają te same wymiary pól co Czarter (csearch), żeby biały pasek
   nie zmieniał wysokości przy przełączaniu (Wojtek 20.10.2026). */
.hero--home .finder__control { gap: 2px; }
.hero--home .finder__control label { line-height: 1.4; }
.hero--home .finder__control .select { min-height: 28px; padding-top: 2px; padding-bottom: 2px; }

@media (max-width: 1199px) {
    .hero--home .hero__title { margin-left: 48px; }
    .home-offer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-about__inner { padding: 100px var(--gutter); }
    .home-about__row, .home-about__name { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
    .home-about__photo, .home-about__drawing { width: 100%; height: auto; }
    .home-about__name > div { padding-top: 40px; }
}

/* Telefon (Figma mobile 375) */
@media (max-width: 767px) {
    /* Hero mobile: zdjęcie pod nawigacją, ramka z tytułem na środku, wyszukiwarka pełnej szerokości pod spodem */
    .hero--home { min-height: 0; padding: 0; }
    /* Figma: zdjęcie 409, ramka od 100 px do zakładek (261 px, bez dolnej krawędzi), tytuł 40/1 z napisem 53 px */
    .hero--home .hero__photo { height: 409px; object-position: 58% 50%; }
    .hero--home::after { bottom: auto; height: 409px; }
    .hero--home .hero__frame { inset: 100px 24px auto; height: 261px; border-bottom: 0; border-radius: 40px 40px 0 0; }
    .hero--home .hero__inner { gap: 0; padding-top: 164px; }
    .hero--home .hero__title { margin: 0 0 64px; font-size: 40px; line-height: 40px; text-align: center; }
    .hero__br-d { display: none; }
    .hero__br-m { display: inline; }
    .napis--a-moze { width: 170px; height: 53px; }
    .napis--a-moze img { left: 2px; top: 8px; width: 168px; height: auto; }
    .hero--home .finder__tabs { border-radius: 0; }
    .hero--home .finder__tabs li:first-child a { border-top-left-radius: 0; }
    .hero--home .finder__panel { border-radius: 0; box-shadow: none; padding: 24px; }
    .hero--home .finder__panel { gap: 0; }
    .hero--home .finder__field { flex: none; padding: var(--space-3) 0; }
    .hero--home .finder__field + .finder__field { padding-top: var(--space-3); }
    .hero--home .finder__panel .btn { margin: 0; }
    /* Figma: pola co 51 px z odstępem 24, bez kresek; Szukaj 295 px na środku; uchwyty suwaka 16 px */
    .hero--home .csearch { gap: 24px; }
    .hero--home .csearch__field, .hero--home .csearch__field + .csearch__field { padding: 0; border: 0; }
    .hero--home .csearch__control { gap: 8px; }
    .hero--home .csearch__label { line-height: 1.3; }
    .hero--home .csearch__select, .hero--home .csearch__trigger { min-height: 24px; padding-top: 0; padding-bottom: 0; }
    .hero--home .crange { min-height: 24px; }
    .hero--home .crange input[type="range"]::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: 2px; border-width: 1.5px; }
    .hero--home .crange input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border-width: 1.5px; }
    .hero--home .csearch__submit { align-self: center; width: 295px; max-width: 100%; margin: 0; }
    .home-offer { padding: 80px 0; }
    .home-offer .sec-head { margin-bottom: 40px; }
    .home-offer .sec-title { font-size: 40px; line-height: 44px; }
    .napis--marzysz { display: inline-block; width: 153px; margin: 0 0 0 4px; vertical-align: -12px; }
    .napis--marzysz img { width: 153px; height: auto; }
    .home-offer .sec-container { padding: 0 24px; }
    .home-offer__grid { grid-template-columns: 1fr; gap: 32px; }
    .home-card__title { font-size: 24px; font-weight: 600; }
    .home-card__more { margin-top: 40px; }
    .home-card { min-height: 0; }
    .home-help { margin-top: 40px; }
    .home-band img { height: 300px; object-position: 25% 50%; }
    .home-about__inner { padding: 80px 24px 80px; }
    .home-about__intro { margin-bottom: 80px; }
    .home-about__intro .sec-title { margin-bottom: 32px; font-size: 40px; line-height: 40px; }
    .home-about__intro p { font-size: 20px; line-height: 28px; }
    .napis--lat { display: inline-block; width: 140px; margin: 0 0 0 6px; vertical-align: -6px; }
    .napis--lat img { width: 140px; height: auto; }
    .home-about__row, .home-about__name { display: flex; flex-direction: column; gap: 32px; }
    /* Figma mobile: zdjęcie rodziny między wstępem a „Lata doświadczeń” */
    .home-about__row { gap: 0; }
    .home-about__text { display: contents; }
    .home-about__photo { order: 1; height: auto; aspect-ratio: 327 / 300; margin-bottom: 56px; }
    .home-about__point { order: 2; }
    .home-about__h, .home-about__why { font-size: 32px; }
    .home-about__lead { margin-bottom: 24px; }
    .home-about__point { padding-left: 38px; }
    .home-about__point + .home-about__point { margin-top: 56px; }
    .home-about__name { gap: 24px; margin-top: 80px; }
    .home-about__name > div { padding-top: 0; }
    .home-about__more { margin-top: 80px; }
    .home-featured { padding: 80px 0; }
    .home-featured .sec-container--narrow { padding: 0 24px; }
    .home-featured .sec-title { font-size: 40px; margin-bottom: 40px; }
    .home-featured .results { gap: 24px; }
    .home-featured__all { margin-top: 40px; }
    /* Karta rejsu (Figma „Polecane rejsy” mobile): zdjęcie 230, etykieta w lewym górnym rogu, termin nad tytułem */
    .home-featured .event-card { flex-direction: column; flex-wrap: nowrap; }
    .home-featured .event-card__image { height: 230px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    .home-featured .event-card__photo { border-radius: inherit; }
    .home-featured .event-card__badge { top: 10px; left: 10px; bottom: auto; padding: 4px 12px; }
    .home-featured .event-card__main { gap: 8px; padding: 52px 16px 24px; }
    .home-featured .event-card__title { margin: 0 0 4px; font-size: 24px; font-weight: 600; }
    .home-featured .event-card__pills { order: 1; }
    .home-featured .event-card__main > :not(:first-child):not(.event-card__pills) { order: 2; }
    .home-featured .event-card__pills .pill { height: auto; padding: 4px 12px; font-size: 10px; line-height: 1.4; }
    .home-featured .event-card__side { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; }
    .home-featured .event-card__side .btn { align-self: stretch; }
    .home-featured .event-card__side .meta:has(img[src*="ikona-kalendarz"]) { position: absolute; top: 254px; left: 16px; }
}

/* Baner z panelu (Strona → Strona główna): krótki komunikat pod zdjęciem startowym */
.home-banner { padding: 12px 24px; background: var(--navy-600); color: var(--white); font-size: var(--fs-body-3); font-weight: 700; line-height: 20px; text-align: center; }
.home-banner a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
